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/node.d.ts +1 -1
- package/node.esm.js +2 -2
- package/node.esm.js.map +1 -1
- package/node.js +2 -2
- package/node.js.map +1 -1
- package/node.test.js +2 -2
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.d.ts +1 -1
- package/web.esm.js +2 -2
- package/web.esm.js.map +1 -1
- package/web.js +2 -2
- package/web.js.map +1 -1
package/node.d.ts
CHANGED
|
@@ -674,7 +674,7 @@ declare namespace $ {
|
|
|
674
674
|
plugins(): readonly $mol_view[];
|
|
675
675
|
view_find(check: (path: $mol_view, text?: string) => boolean, path?: $mol_view[]): Generator<$mol_view[]>;
|
|
676
676
|
force_render(path: Set<$mol_view>): void;
|
|
677
|
-
ensure_visible(view: $mol_view, align?: ScrollLogicalPosition):
|
|
677
|
+
ensure_visible(view: $mol_view, align?: ScrollLogicalPosition): void;
|
|
678
678
|
bring(): void;
|
|
679
679
|
}
|
|
680
680
|
type $mol_view_all = $mol_type_pick<$, typeof $mol_view>;
|
package/node.esm.js
CHANGED
|
@@ -2637,7 +2637,7 @@ var $;
|
|
|
2637
2637
|
kids[index].force_render(path);
|
|
2638
2638
|
}
|
|
2639
2639
|
}
|
|
2640
|
-
|
|
2640
|
+
ensure_visible(view, align = "start") {
|
|
2641
2641
|
const path = this.view_find(v => v === view).next().value;
|
|
2642
2642
|
this.force_render(new Set(path));
|
|
2643
2643
|
this.dom_final();
|
|
@@ -2645,7 +2645,7 @@ var $;
|
|
|
2645
2645
|
}
|
|
2646
2646
|
bring() {
|
|
2647
2647
|
new $mol_after_frame(() => {
|
|
2648
|
-
this.dom_node().scrollIntoView();
|
|
2648
|
+
this.dom_node().scrollIntoView({ inline: 'start' });
|
|
2649
2649
|
this.focused(true);
|
|
2650
2650
|
});
|
|
2651
2651
|
}
|