mol_plot_all 1.2.355 → 1.2.357

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mol_plot_all",
3
- "version": "1.2.355",
3
+ "version": "1.2.357",
4
4
  "main": "node.js",
5
5
  "module": "node.esm.js",
6
6
  "browser": "web.js",
package/web.d.ts CHANGED
@@ -569,7 +569,7 @@ declare namespace $ {
569
569
  plugins(): readonly $mol_view[];
570
570
  view_find(check: (path: $mol_view, text?: string) => boolean, path?: $mol_view[]): Generator<$mol_view[]>;
571
571
  force_render(path: Set<$mol_view>): void;
572
- ensure_visible(view: $mol_view, align?: ScrollLogicalPosition): Promise<void>;
572
+ ensure_visible(view: $mol_view, align?: ScrollLogicalPosition): void;
573
573
  bring(): void;
574
574
  }
575
575
  type $mol_view_all = $mol_type_pick<$, typeof $mol_view>;
package/web.esm.js CHANGED
@@ -2152,7 +2152,7 @@ var $;
2152
2152
  kids[index].force_render(path);
2153
2153
  }
2154
2154
  }
2155
- async ensure_visible(view, align = "start") {
2155
+ ensure_visible(view, align = "start") {
2156
2156
  const path = this.view_find(v => v === view).next().value;
2157
2157
  this.force_render(new Set(path));
2158
2158
  this.dom_final();
@@ -2160,7 +2160,7 @@ var $;
2160
2160
  }
2161
2161
  bring() {
2162
2162
  new $mol_after_frame(() => {
2163
- this.dom_node().scrollIntoView();
2163
+ this.dom_node().scrollIntoView({ inline: 'start' });
2164
2164
  this.focused(true);
2165
2165
  });
2166
2166
  }