mol_plot_all 1.2.354 → 1.2.356

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 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): Promise<void>;
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>;
@@ -843,7 +843,7 @@ declare namespace $ {
843
843
  front(): readonly $mol_svg[];
844
844
  back(): readonly $mol_svg[];
845
845
  Hint(): $mol_svg_title;
846
- hue(): any;
846
+ hue(): number;
847
847
  Sample(): any;
848
848
  type(): string;
849
849
  color(): string;
@@ -960,7 +960,7 @@ declare namespace $.$$ {
960
960
  declare namespace $ {
961
961
  class $mol_plot_pane extends $mol_svg_root {
962
962
  aspect(): string;
963
- hue_base(val?: any): any;
963
+ hue_base(val?: any): number;
964
964
  hue_shift(val?: any): number;
965
965
  gap_hor(): number;
966
966
  gap_vert(): number;
package/node.esm.js CHANGED
@@ -2637,7 +2637,7 @@ var $;
2637
2637
  kids[index].force_render(path);
2638
2638
  }
2639
2639
  }
2640
- async ensure_visible(view, align = "start") {
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
  }
@@ -3076,8 +3076,7 @@ var $;
3076
3076
  return obj;
3077
3077
  }
3078
3078
  hue() {
3079
- const obj = new this.$.NaN();
3080
- return obj;
3079
+ return +NaN;
3081
3080
  }
3082
3081
  Sample() {
3083
3082
  return null;
@@ -3148,9 +3147,6 @@ var $;
3148
3147
  __decorate([
3149
3148
  $mol_mem
3150
3149
  ], $mol_plot_graph.prototype, "Hint", null);
3151
- __decorate([
3152
- $mol_mem
3153
- ], $mol_plot_graph.prototype, "hue", null);
3154
3150
  __decorate([
3155
3151
  $mol_mem
3156
3152
  ], $mol_plot_graph.prototype, "viewport_x", null);
@@ -3808,8 +3804,7 @@ var $;
3808
3804
  hue_base(val) {
3809
3805
  if (val !== undefined)
3810
3806
  return val;
3811
- const obj = new this.$.NaN();
3812
- return obj;
3807
+ return +NaN;
3813
3808
  }
3814
3809
  hue_shift(val) {
3815
3810
  if (val !== undefined)