mol_plot_all 1.2.345 → 1.2.348

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/node.js CHANGED
@@ -2014,7 +2014,7 @@ var $;
2014
2014
  new $mol_after_tick(() => {
2015
2015
  const element = this.focused()[0];
2016
2016
  if (element)
2017
- element.focus({ preventScroll: true });
2017
+ element.focus();
2018
2018
  else
2019
2019
  $mol_dom_context.blur();
2020
2020
  });
@@ -2312,30 +2312,6 @@ var $;
2312
2312
  //mol/func/name/name.ts
2313
2313
  ;
2314
2314
  "use strict";
2315
- var $;
2316
- (function ($) {
2317
- class $mol_after_work extends $mol_object2 {
2318
- delay;
2319
- task;
2320
- id;
2321
- constructor(delay, task) {
2322
- super();
2323
- this.delay = delay;
2324
- this.task = task;
2325
- this.id = requestIdleCallback(task, { timeout: delay });
2326
- }
2327
- destructor() {
2328
- cancelIdleCallback(this.id);
2329
- }
2330
- }
2331
- $.$mol_after_work = $mol_after_work;
2332
- if (typeof requestIdleCallback !== 'function') {
2333
- $.$mol_after_work = $mol_after_timeout;
2334
- }
2335
- })($ || ($ = {}));
2336
- //mol/after/work/work.ts
2337
- ;
2338
- "use strict";
2339
2315
  //mol/type/keys/extract/extract.ts
2340
2316
  ;
2341
2317
  "use strict";
@@ -2664,13 +2640,13 @@ var $;
2664
2640
  async ensure_visible(view, align = "start") {
2665
2641
  const path = this.view_find(v => v === view).next().value;
2666
2642
  this.force_render(new Set(path));
2667
- $mol_wire_fiber.sync();
2643
+ this.dom_final();
2668
2644
  view.dom_node().scrollIntoView({ block: align });
2669
2645
  }
2670
2646
  bring() {
2671
- new $mol_after_work(150, () => {
2647
+ new $mol_after_frame(() => {
2648
+ this.dom_node().scrollIntoView();
2672
2649
  this.focused(true);
2673
- this.dom_node().scrollIntoView({ behavior: 'smooth' });
2674
2650
  });
2675
2651
  }
2676
2652
  }