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.d.ts +28 -28
- package/node.js +86 -86
- package/node.js.map +1 -1
- package/node.mjs +86 -86
- package/node.test.js +94 -94
- package/node.test.js.map +1 -1
- package/node.view.tree +29 -29
- package/package.json +1 -1
- package/web.d.ts +28 -28
- package/web.js +86 -86
- package/web.js.map +1 -1
- package/web.mjs +86 -86
- package/web.test.js +8 -8
- package/web.test.js.map +1 -1
- package/web.view.tree +29 -29
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?
|
|
96
|
-
start_distance?
|
|
97
|
-
zoom?
|
|
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?
|
|
102
|
-
action_point?
|
|
101
|
+
action_type? \
|
|
102
|
+
action_point? $mol_vector_2d /
|
|
103
103
|
NaN
|
|
104
104
|
NaN
|
|
105
105
|
-
|
|
106
|
-
start_pan?
|
|
106
|
+
start_pan? /
|
|
107
107
|
0
|
|
108
108
|
0
|
|
109
|
-
pan?
|
|
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?
|
|
116
|
+
start_pos? null
|
|
117
117
|
swipe_precision 16
|
|
118
118
|
-
|
|
119
|
-
swipe_right?
|
|
120
|
-
swipe_bottom?
|
|
121
|
-
swipe_left?
|
|
122
|
-
swipe_top?
|
|
119
|
+
swipe_right? null
|
|
120
|
+
swipe_bottom? null
|
|
121
|
+
swipe_left? null
|
|
122
|
+
swipe_top? null
|
|
123
123
|
-
|
|
124
|
-
swipe_from_right?
|
|
125
|
-
swipe_from_bottom?
|
|
126
|
-
swipe_from_left?
|
|
127
|
-
swipe_from_top?
|
|
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?
|
|
130
|
-
swipe_to_bottom?
|
|
131
|
-
swipe_to_left?
|
|
132
|
-
swipe_to_top?
|
|
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?
|
|
155
|
-
hue_shift?
|
|
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?
|
|
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?
|
|
194
|
+
scale? $mol_vector_2d /
|
|
195
195
|
1
|
|
196
196
|
-1
|
|
197
|
-
scale_x?
|
|
198
|
-
scale_y?
|
|
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?
|
|
227
|
-
pan?
|
|
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?
|
|
347
|
+
normalize? 0
|
|
348
348
|
precision 1
|
|
349
349
|
sub /
|
|
350
350
|
<= Background $mol_svg_rect
|
package/package.json
CHANGED
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(
|
|
993
|
-
start_distance(
|
|
994
|
-
zoom(
|
|
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(
|
|
999
|
-
action_point(
|
|
1000
|
-
start_pan(
|
|
1001
|
-
pan(
|
|
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(
|
|
1003
|
+
start_pos(next?: any): any;
|
|
1004
1004
|
swipe_precision(): number;
|
|
1005
|
-
swipe_right(
|
|
1006
|
-
swipe_bottom(
|
|
1007
|
-
swipe_left(
|
|
1008
|
-
swipe_top(
|
|
1009
|
-
swipe_from_right(
|
|
1010
|
-
swipe_from_bottom(
|
|
1011
|
-
swipe_from_left(
|
|
1012
|
-
swipe_from_top(
|
|
1013
|
-
swipe_to_right(
|
|
1014
|
-
swipe_to_bottom(
|
|
1015
|
-
swipe_to_left(
|
|
1016
|
-
swipe_to_top(
|
|
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(
|
|
1055
|
-
hue_shift(
|
|
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(
|
|
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(
|
|
1069
|
-
scale_x(
|
|
1070
|
-
scale_y(
|
|
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(
|
|
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(
|
|
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(
|
|
3013
|
-
if (
|
|
3014
|
-
return
|
|
3012
|
+
start_zoom(next) {
|
|
3013
|
+
if (next !== undefined)
|
|
3014
|
+
return next;
|
|
3015
3015
|
return 0;
|
|
3016
3016
|
}
|
|
3017
|
-
start_distance(
|
|
3018
|
-
if (
|
|
3019
|
-
return
|
|
3017
|
+
start_distance(next) {
|
|
3018
|
+
if (next !== undefined)
|
|
3019
|
+
return next;
|
|
3020
3020
|
return 0;
|
|
3021
3021
|
}
|
|
3022
|
-
zoom(
|
|
3023
|
-
if (
|
|
3024
|
-
return
|
|
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(
|
|
3037
|
-
if (
|
|
3038
|
-
return
|
|
3036
|
+
action_type(next) {
|
|
3037
|
+
if (next !== undefined)
|
|
3038
|
+
return next;
|
|
3039
3039
|
return "";
|
|
3040
3040
|
}
|
|
3041
|
-
action_point(
|
|
3042
|
-
if (
|
|
3043
|
-
return
|
|
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(
|
|
3048
|
-
if (
|
|
3049
|
-
return
|
|
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(
|
|
3056
|
-
if (
|
|
3057
|
-
return
|
|
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(
|
|
3066
|
-
if (
|
|
3067
|
-
return
|
|
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(
|
|
3074
|
-
if (
|
|
3075
|
-
return
|
|
3073
|
+
swipe_right(next) {
|
|
3074
|
+
if (next !== undefined)
|
|
3075
|
+
return next;
|
|
3076
3076
|
return null;
|
|
3077
3077
|
}
|
|
3078
|
-
swipe_bottom(
|
|
3079
|
-
if (
|
|
3080
|
-
return
|
|
3078
|
+
swipe_bottom(next) {
|
|
3079
|
+
if (next !== undefined)
|
|
3080
|
+
return next;
|
|
3081
3081
|
return null;
|
|
3082
3082
|
}
|
|
3083
|
-
swipe_left(
|
|
3084
|
-
if (
|
|
3085
|
-
return
|
|
3083
|
+
swipe_left(next) {
|
|
3084
|
+
if (next !== undefined)
|
|
3085
|
+
return next;
|
|
3086
3086
|
return null;
|
|
3087
3087
|
}
|
|
3088
|
-
swipe_top(
|
|
3089
|
-
if (
|
|
3090
|
-
return
|
|
3088
|
+
swipe_top(next) {
|
|
3089
|
+
if (next !== undefined)
|
|
3090
|
+
return next;
|
|
3091
3091
|
return null;
|
|
3092
3092
|
}
|
|
3093
|
-
swipe_from_right(
|
|
3094
|
-
if (
|
|
3095
|
-
return
|
|
3093
|
+
swipe_from_right(next) {
|
|
3094
|
+
if (next !== undefined)
|
|
3095
|
+
return next;
|
|
3096
3096
|
return null;
|
|
3097
3097
|
}
|
|
3098
|
-
swipe_from_bottom(
|
|
3099
|
-
if (
|
|
3100
|
-
return
|
|
3098
|
+
swipe_from_bottom(next) {
|
|
3099
|
+
if (next !== undefined)
|
|
3100
|
+
return next;
|
|
3101
3101
|
return null;
|
|
3102
3102
|
}
|
|
3103
|
-
swipe_from_left(
|
|
3104
|
-
if (
|
|
3105
|
-
return
|
|
3103
|
+
swipe_from_left(next) {
|
|
3104
|
+
if (next !== undefined)
|
|
3105
|
+
return next;
|
|
3106
3106
|
return null;
|
|
3107
3107
|
}
|
|
3108
|
-
swipe_from_top(
|
|
3109
|
-
if (
|
|
3110
|
-
return
|
|
3108
|
+
swipe_from_top(next) {
|
|
3109
|
+
if (next !== undefined)
|
|
3110
|
+
return next;
|
|
3111
3111
|
return null;
|
|
3112
3112
|
}
|
|
3113
|
-
swipe_to_right(
|
|
3114
|
-
if (
|
|
3115
|
-
return
|
|
3113
|
+
swipe_to_right(next) {
|
|
3114
|
+
if (next !== undefined)
|
|
3115
|
+
return next;
|
|
3116
3116
|
return null;
|
|
3117
3117
|
}
|
|
3118
|
-
swipe_to_bottom(
|
|
3119
|
-
if (
|
|
3120
|
-
return
|
|
3118
|
+
swipe_to_bottom(next) {
|
|
3119
|
+
if (next !== undefined)
|
|
3120
|
+
return next;
|
|
3121
3121
|
return null;
|
|
3122
3122
|
}
|
|
3123
|
-
swipe_to_left(
|
|
3124
|
-
if (
|
|
3125
|
-
return
|
|
3123
|
+
swipe_to_left(next) {
|
|
3124
|
+
if (next !== undefined)
|
|
3125
|
+
return next;
|
|
3126
3126
|
return null;
|
|
3127
3127
|
}
|
|
3128
|
-
swipe_to_top(
|
|
3129
|
-
if (
|
|
3130
|
-
return
|
|
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(
|
|
3536
|
-
if (
|
|
3537
|
-
return
|
|
3535
|
+
hue_base(next) {
|
|
3536
|
+
if (next !== undefined)
|
|
3537
|
+
return next;
|
|
3538
3538
|
return +NaN;
|
|
3539
3539
|
}
|
|
3540
|
-
hue_shift(
|
|
3541
|
-
if (
|
|
3542
|
-
return
|
|
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(
|
|
3576
|
-
if (
|
|
3577
|
-
return
|
|
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(
|
|
3590
|
-
if (
|
|
3591
|
-
return
|
|
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(
|
|
3596
|
-
if (
|
|
3597
|
-
return
|
|
3595
|
+
scale_x(next) {
|
|
3596
|
+
if (next !== undefined)
|
|
3597
|
+
return next;
|
|
3598
3598
|
return 1;
|
|
3599
3599
|
}
|
|
3600
|
-
scale_y(
|
|
3601
|
-
if (
|
|
3602
|
-
return
|
|
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(
|
|
3686
|
-
if (
|
|
3687
|
-
return
|
|
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 = (
|
|
3726
|
-
obj.pan = (
|
|
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(
|
|
4890
|
-
if (
|
|
4891
|
-
return
|
|
4889
|
+
normalize(next) {
|
|
4890
|
+
if (next !== undefined)
|
|
4891
|
+
return next;
|
|
4892
4892
|
return 0;
|
|
4893
4893
|
}
|
|
4894
4894
|
precision() {
|