mol_plot_all 1.2.646 → 1.2.648

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.view.tree CHANGED
@@ -92,44 +92,44 @@ $mol_plot_graph_sample $mol_view
92
92
  color <= color \black
93
93
 
94
94
  $mol_touch $mol_plugin
95
- start_zoom?val 0
96
- start_distance?val 0
97
- zoom?val 1
95
+ start_zoom? 0
96
+ start_distance? 0
97
+ zoom? 1
98
98
  allow_draw true
99
99
  allow_pan true
100
100
  allow_zoom true
101
- action_type?val \
102
- action_point?val $mol_vector_2d /
101
+ action_type? \
102
+ action_point? $mol_vector_2d /
103
103
  NaN
104
104
  NaN
105
105
  -
106
- start_pan?val /
106
+ start_pan? /
107
107
  0
108
108
  0
109
- pan?val $mol_vector_2d /
109
+ pan? $mol_vector_2d /
110
110
  0
111
111
  0
112
112
  pointer_center $mol_vector_2d /
113
113
  NaN
114
114
  NaN
115
115
  -
116
- start_pos?val null
116
+ start_pos? null
117
117
  swipe_precision 16
118
118
  -
119
- swipe_right?val null
120
- swipe_bottom?val null
121
- swipe_left?val null
122
- swipe_top?val null
119
+ swipe_right? null
120
+ swipe_bottom? null
121
+ swipe_left? null
122
+ swipe_top? null
123
123
  -
124
- swipe_from_right?val null
125
- swipe_from_bottom?val null
126
- swipe_from_left?val null
127
- swipe_from_top?val null
124
+ swipe_from_right? null
125
+ swipe_from_bottom? null
126
+ swipe_from_left? null
127
+ swipe_from_top? null
128
128
  -
129
- swipe_to_right?val null
130
- swipe_to_bottom?val null
131
- swipe_to_left?val null
132
- swipe_to_top?val null
129
+ swipe_to_right? null
130
+ swipe_to_bottom? null
131
+ swipe_to_left? null
132
+ swipe_to_top? null
133
133
  -
134
134
  draw_start?event null
135
135
  draw?event null
@@ -151,8 +151,8 @@ $mol_touch $mol_plugin
151
151
  $mol_plot_pane $mol_svg_root
152
152
  aspect \none
153
153
  -
154
- hue_base?val +NaN
155
- hue_shift?val 111
154
+ hue_base? +NaN
155
+ hue_shift? 111
156
156
  -
157
157
  gap_hor 48
158
158
  gap_vert 24
@@ -178,7 +178,7 @@ $mol_plot_pane $mol_svg_root
178
178
  shift_default $mol_vector_2d /
179
179
  0
180
180
  0
181
- shift?val $mol_vector_2d /
181
+ shift? $mol_vector_2d /
182
182
  0
183
183
  0
184
184
  scale_limit $mol_vector_2d /
@@ -191,11 +191,11 @@ $mol_plot_pane $mol_svg_root
191
191
  scale_default $mol_vector_2d /
192
192
  0
193
193
  0
194
- scale?val $mol_vector_2d /
194
+ scale? $mol_vector_2d /
195
195
  1
196
196
  -1
197
- scale_x?val 1
198
- scale_y?val -1
197
+ scale_x? 1
198
+ scale_y? -1
199
199
  size $mol_vector_2d /
200
200
  0
201
201
  0
@@ -223,8 +223,8 @@ $mol_plot_pane $mol_svg_root
223
223
  plugins /
224
224
  ^
225
225
  <= Touch $mol_touch
226
- zoom?val <=> zoom?val 1
227
- pan?val <=> shift?val
226
+ zoom? <=> zoom? 1
227
+ pan? <=> shift?
228
228
  pointer_center => cursor_position
229
229
  allow_draw <= allow_draw true
230
230
  allow_pan <= allow_pan true
@@ -344,7 +344,7 @@ $mol_plot_ruler $mol_plot_graph
344
344
  Infinity
345
345
  -Infinity
346
346
  axis_points /number
347
- normalize?val 0
347
+ normalize? 0
348
348
  precision 1
349
349
  sub /
350
350
  <= Background $mol_svg_rect
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mol_plot_all",
3
- "version": "1.2.646",
3
+ "version": "1.2.648",
4
4
  "exports": {
5
5
  "node": {
6
6
  "import": "./node.mjs",
package/web.d.ts CHANGED
@@ -989,31 +989,31 @@ declare namespace $ {
989
989
 
990
990
  declare namespace $ {
991
991
  class $mol_touch extends $mol_plugin {
992
- start_zoom(val?: any): number;
993
- start_distance(val?: any): number;
994
- zoom(val?: any): number;
992
+ start_zoom(next?: any): number;
993
+ start_distance(next?: any): number;
994
+ zoom(next?: any): number;
995
995
  allow_draw(): boolean;
996
996
  allow_pan(): boolean;
997
997
  allow_zoom(): boolean;
998
- action_type(val?: any): string;
999
- action_point(val?: any): $mol_vector_2d<number>;
1000
- start_pan(val?: any): readonly any[];
1001
- pan(val?: any): $mol_vector_2d<number>;
998
+ action_type(next?: any): string;
999
+ action_point(next?: any): $mol_vector_2d<number>;
1000
+ start_pan(next?: any): readonly any[];
1001
+ pan(next?: any): $mol_vector_2d<number>;
1002
1002
  pointer_center(): $mol_vector_2d<number>;
1003
- start_pos(val?: any): any;
1003
+ start_pos(next?: any): any;
1004
1004
  swipe_precision(): number;
1005
- swipe_right(val?: any): any;
1006
- swipe_bottom(val?: any): any;
1007
- swipe_left(val?: any): any;
1008
- swipe_top(val?: any): any;
1009
- swipe_from_right(val?: any): any;
1010
- swipe_from_bottom(val?: any): any;
1011
- swipe_from_left(val?: any): any;
1012
- swipe_from_top(val?: any): any;
1013
- swipe_to_right(val?: any): any;
1014
- swipe_to_bottom(val?: any): any;
1015
- swipe_to_left(val?: any): any;
1016
- swipe_to_top(val?: any): any;
1005
+ swipe_right(next?: any): any;
1006
+ swipe_bottom(next?: any): any;
1007
+ swipe_left(next?: any): any;
1008
+ swipe_top(next?: any): any;
1009
+ swipe_from_right(next?: any): any;
1010
+ swipe_from_bottom(next?: any): any;
1011
+ swipe_from_left(next?: any): any;
1012
+ swipe_from_top(next?: any): any;
1013
+ swipe_to_right(next?: any): any;
1014
+ swipe_to_bottom(next?: any): any;
1015
+ swipe_to_left(next?: any): any;
1016
+ swipe_to_top(next?: any): any;
1017
1017
  draw_start(event?: any): any;
1018
1018
  draw(event?: any): any;
1019
1019
  draw_end(event?: any): any;
@@ -1051,8 +1051,8 @@ declare namespace $.$$ {
1051
1051
  declare namespace $ {
1052
1052
  class $mol_plot_pane extends $mol_svg_root {
1053
1053
  aspect(): string;
1054
- hue_base(val?: any): number;
1055
- hue_shift(val?: any): number;
1054
+ hue_base(next?: any): number;
1055
+ hue_shift(next?: any): number;
1056
1056
  gap_hor(): number;
1057
1057
  gap_vert(): number;
1058
1058
  gap_left(): number;
@@ -1062,12 +1062,12 @@ declare namespace $ {
1062
1062
  gap(): $mol_vector_2d<$mol_vector_range<number>>;
1063
1063
  shift_limit(): $mol_vector_2d<$mol_vector_range<number>>;
1064
1064
  shift_default(): $mol_vector_2d<number>;
1065
- shift(val?: any): $mol_vector_2d<number>;
1065
+ shift(next?: any): $mol_vector_2d<number>;
1066
1066
  scale_limit(): $mol_vector_2d<$mol_vector_range<number>>;
1067
1067
  scale_default(): $mol_vector_2d<number>;
1068
- scale(val?: any): $mol_vector_2d<number>;
1069
- scale_x(val?: any): number;
1070
- scale_y(val?: any): number;
1068
+ scale(next?: any): $mol_vector_2d<number>;
1069
+ scale_x(next?: any): number;
1070
+ scale_y(next?: any): number;
1071
1071
  size(): $mol_vector_2d<number>;
1072
1072
  size_real(): $mol_vector_2d<number>;
1073
1073
  dimensions(): $mol_vector_2d<$mol_vector_range<number>>;
@@ -1089,7 +1089,7 @@ declare namespace $ {
1089
1089
  graphs(): readonly $mol_plot_graph[];
1090
1090
  graphs_positioned(): readonly $mol_plot_graph[];
1091
1091
  graphs_visible(): readonly $mol_plot_graph[];
1092
- zoom(val?: any): number;
1092
+ zoom(next?: any): number;
1093
1093
  allow_draw(): boolean;
1094
1094
  allow_pan(): boolean;
1095
1095
  allow_zoom(): boolean;
@@ -1344,7 +1344,7 @@ declare namespace $ {
1344
1344
  dimensions_axis(): $mol_vector_range<number>;
1345
1345
  viewport_axis(): $mol_vector_range<number>;
1346
1346
  axis_points(): readonly number[];
1347
- normalize(val?: any): number;
1347
+ normalize(next?: any): number;
1348
1348
  precision(): number;
1349
1349
  sub(): readonly any[];
1350
1350
  Label(id: any): $$.$mol_svg_text;
package/web.js CHANGED
@@ -3009,19 +3009,19 @@ var $;
3009
3009
  var $;
3010
3010
  (function ($) {
3011
3011
  class $mol_touch extends $mol_plugin {
3012
- start_zoom(val) {
3013
- if (val !== undefined)
3014
- return val;
3012
+ start_zoom(next) {
3013
+ if (next !== undefined)
3014
+ return next;
3015
3015
  return 0;
3016
3016
  }
3017
- start_distance(val) {
3018
- if (val !== undefined)
3019
- return val;
3017
+ start_distance(next) {
3018
+ if (next !== undefined)
3019
+ return next;
3020
3020
  return 0;
3021
3021
  }
3022
- zoom(val) {
3023
- if (val !== undefined)
3024
- return val;
3022
+ zoom(next) {
3023
+ if (next !== undefined)
3024
+ return next;
3025
3025
  return 1;
3026
3026
  }
3027
3027
  allow_draw() {
@@ -3033,28 +3033,28 @@ var $;
3033
3033
  allow_zoom() {
3034
3034
  return true;
3035
3035
  }
3036
- action_type(val) {
3037
- if (val !== undefined)
3038
- return val;
3036
+ action_type(next) {
3037
+ if (next !== undefined)
3038
+ return next;
3039
3039
  return "";
3040
3040
  }
3041
- action_point(val) {
3042
- if (val !== undefined)
3043
- return val;
3041
+ action_point(next) {
3042
+ if (next !== undefined)
3043
+ return next;
3044
3044
  const obj = new this.$.$mol_vector_2d(NaN, NaN);
3045
3045
  return obj;
3046
3046
  }
3047
- start_pan(val) {
3048
- if (val !== undefined)
3049
- return val;
3047
+ start_pan(next) {
3048
+ if (next !== undefined)
3049
+ return next;
3050
3050
  return [
3051
3051
  0,
3052
3052
  0
3053
3053
  ];
3054
3054
  }
3055
- pan(val) {
3056
- if (val !== undefined)
3057
- return val;
3055
+ pan(next) {
3056
+ if (next !== undefined)
3057
+ return next;
3058
3058
  const obj = new this.$.$mol_vector_2d(0, 0);
3059
3059
  return obj;
3060
3060
  }
@@ -3062,72 +3062,72 @@ var $;
3062
3062
  const obj = new this.$.$mol_vector_2d(NaN, NaN);
3063
3063
  return obj;
3064
3064
  }
3065
- start_pos(val) {
3066
- if (val !== undefined)
3067
- return val;
3065
+ start_pos(next) {
3066
+ if (next !== undefined)
3067
+ return next;
3068
3068
  return null;
3069
3069
  }
3070
3070
  swipe_precision() {
3071
3071
  return 16;
3072
3072
  }
3073
- swipe_right(val) {
3074
- if (val !== undefined)
3075
- return val;
3073
+ swipe_right(next) {
3074
+ if (next !== undefined)
3075
+ return next;
3076
3076
  return null;
3077
3077
  }
3078
- swipe_bottom(val) {
3079
- if (val !== undefined)
3080
- return val;
3078
+ swipe_bottom(next) {
3079
+ if (next !== undefined)
3080
+ return next;
3081
3081
  return null;
3082
3082
  }
3083
- swipe_left(val) {
3084
- if (val !== undefined)
3085
- return val;
3083
+ swipe_left(next) {
3084
+ if (next !== undefined)
3085
+ return next;
3086
3086
  return null;
3087
3087
  }
3088
- swipe_top(val) {
3089
- if (val !== undefined)
3090
- return val;
3088
+ swipe_top(next) {
3089
+ if (next !== undefined)
3090
+ return next;
3091
3091
  return null;
3092
3092
  }
3093
- swipe_from_right(val) {
3094
- if (val !== undefined)
3095
- return val;
3093
+ swipe_from_right(next) {
3094
+ if (next !== undefined)
3095
+ return next;
3096
3096
  return null;
3097
3097
  }
3098
- swipe_from_bottom(val) {
3099
- if (val !== undefined)
3100
- return val;
3098
+ swipe_from_bottom(next) {
3099
+ if (next !== undefined)
3100
+ return next;
3101
3101
  return null;
3102
3102
  }
3103
- swipe_from_left(val) {
3104
- if (val !== undefined)
3105
- return val;
3103
+ swipe_from_left(next) {
3104
+ if (next !== undefined)
3105
+ return next;
3106
3106
  return null;
3107
3107
  }
3108
- swipe_from_top(val) {
3109
- if (val !== undefined)
3110
- return val;
3108
+ swipe_from_top(next) {
3109
+ if (next !== undefined)
3110
+ return next;
3111
3111
  return null;
3112
3112
  }
3113
- swipe_to_right(val) {
3114
- if (val !== undefined)
3115
- return val;
3113
+ swipe_to_right(next) {
3114
+ if (next !== undefined)
3115
+ return next;
3116
3116
  return null;
3117
3117
  }
3118
- swipe_to_bottom(val) {
3119
- if (val !== undefined)
3120
- return val;
3118
+ swipe_to_bottom(next) {
3119
+ if (next !== undefined)
3120
+ return next;
3121
3121
  return null;
3122
3122
  }
3123
- swipe_to_left(val) {
3124
- if (val !== undefined)
3125
- return val;
3123
+ swipe_to_left(next) {
3124
+ if (next !== undefined)
3125
+ return next;
3126
3126
  return null;
3127
3127
  }
3128
- swipe_to_top(val) {
3129
- if (val !== undefined)
3130
- return val;
3128
+ swipe_to_top(next) {
3129
+ if (next !== undefined)
3130
+ return next;
3131
3131
  return null;
3132
3132
  }
3133
3133
  draw_start(event) {
@@ -3532,14 +3532,14 @@ var $;
3532
3532
  aspect() {
3533
3533
  return "none";
3534
3534
  }
3535
- hue_base(val) {
3536
- if (val !== undefined)
3537
- return val;
3535
+ hue_base(next) {
3536
+ if (next !== undefined)
3537
+ return next;
3538
3538
  return +NaN;
3539
3539
  }
3540
- hue_shift(val) {
3541
- if (val !== undefined)
3542
- return val;
3540
+ hue_shift(next) {
3541
+ if (next !== undefined)
3542
+ return next;
3543
3543
  return 111;
3544
3544
  }
3545
3545
  gap_hor() {
@@ -3572,9 +3572,9 @@ var $;
3572
3572
  const obj = new this.$.$mol_vector_2d(0, 0);
3573
3573
  return obj;
3574
3574
  }
3575
- shift(val) {
3576
- if (val !== undefined)
3577
- return val;
3575
+ shift(next) {
3576
+ if (next !== undefined)
3577
+ return next;
3578
3578
  const obj = new this.$.$mol_vector_2d(0, 0);
3579
3579
  return obj;
3580
3580
  }
@@ -3586,20 +3586,20 @@ var $;
3586
3586
  const obj = new this.$.$mol_vector_2d(0, 0);
3587
3587
  return obj;
3588
3588
  }
3589
- scale(val) {
3590
- if (val !== undefined)
3591
- return val;
3589
+ scale(next) {
3590
+ if (next !== undefined)
3591
+ return next;
3592
3592
  const obj = new this.$.$mol_vector_2d(1, -1);
3593
3593
  return obj;
3594
3594
  }
3595
- scale_x(val) {
3596
- if (val !== undefined)
3597
- return val;
3595
+ scale_x(next) {
3596
+ if (next !== undefined)
3597
+ return next;
3598
3598
  return 1;
3599
3599
  }
3600
- scale_y(val) {
3601
- if (val !== undefined)
3602
- return val;
3600
+ scale_y(next) {
3601
+ if (next !== undefined)
3602
+ return next;
3603
3603
  return -1;
3604
3604
  }
3605
3605
  size() {
@@ -3682,9 +3682,9 @@ var $;
3682
3682
  graphs_visible() {
3683
3683
  return this.graphs_positioned();
3684
3684
  }
3685
- zoom(val) {
3686
- if (val !== undefined)
3687
- return val;
3685
+ zoom(next) {
3686
+ if (next !== undefined)
3687
+ return next;
3688
3688
  return 1;
3689
3689
  }
3690
3690
  allow_draw() {
@@ -3722,8 +3722,8 @@ var $;
3722
3722
  }
3723
3723
  Touch() {
3724
3724
  const obj = new this.$.$mol_touch();
3725
- obj.zoom = (val) => this.zoom(val);
3726
- obj.pan = (val) => this.shift(val);
3725
+ obj.zoom = (next) => this.zoom(next);
3726
+ obj.pan = (next) => this.shift(next);
3727
3727
  obj.allow_draw = () => this.allow_draw();
3728
3728
  obj.allow_pan = () => this.allow_pan();
3729
3729
  obj.allow_zoom = () => this.allow_zoom();
@@ -4886,9 +4886,9 @@ var $;
4886
4886
  axis_points() {
4887
4887
  return [];
4888
4888
  }
4889
- normalize(val) {
4890
- if (val !== undefined)
4891
- return val;
4889
+ normalize(next) {
4890
+ if (next !== undefined)
4891
+ return next;
4892
4892
  return 0;
4893
4893
  }
4894
4894
  precision() {