mol_plot_all 1.2.241 → 1.2.244
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 +2 -3
- package/node.deps.json +1 -1
- package/node.esm.js +20 -38
- package/node.esm.js.map +1 -1
- package/node.js +20 -38
- package/node.js.map +1 -1
- package/node.test.js +22 -65
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.d.ts +2 -3
- package/web.deps.json +1 -1
- package/web.esm.js +20 -38
- package/web.esm.js.map +1 -1
- package/web.js +20 -38
- package/web.js.map +1 -1
- package/web.test.js +2 -27
- package/web.test.js.map +1 -1
package/web.js
CHANGED
|
@@ -369,7 +369,7 @@ var $;
|
|
|
369
369
|
"use strict";
|
|
370
370
|
var $;
|
|
371
371
|
(function ($) {
|
|
372
|
-
$mol_style_attach("mol/theme/theme.css", ":root {\n\t--mol_theme_hue: 210deg;\n\t--mol_theme_luma: 1;\n\t--mol_theme_image: none;\n}\n\n[mol_theme] {\n\tbackground-color: var(--mol_theme_back);\n\tcolor: var(--mol_theme_text);\n\tfill: var(--mol_theme_text);\n}\n\t\n:root, [mol_theme] {\n\t--mol_theme_back: hsl( var(--mol_theme_hue), 50% , calc( 54% + 44% * var(--mol_theme_luma) ) );\n\t--mol_theme_text: hsl( var(--mol_theme_hue), 0% , calc( 50% - 30% * var(--mol_theme_luma) ) );\n\t--mol_theme_field: hsl( var(--mol_theme_hue), 0%, calc( 50% + 50% * var(--mol_theme_luma) ), .2 );\n\t\n\t--mol_theme_card: hsl( var(--mol_theme_hue), 0%, 50%, .05 );\n\t--mol_theme_hover: hsl( var(--mol_theme_hue), 0%, 50%, .1 );\n\t--mol_theme_line: hsl( var(--mol_theme_hue), 0%, 50%, .25 );\n\t--mol_theme_shade: hsl( var(--mol_theme_hue), 0%, 50%, 1 );\n\t\n\t--mol_theme_control: hsl( var(--mol_theme_hue), 50%, calc( 50% - 5% * var(--mol_theme_luma) ) );\n\t--mol_theme_current: hsl( calc( var(--mol_theme_hue) - 90deg ), 50%, calc( 50% - 10% * var(--mol_theme_luma) ) );\n\t--mol_theme_special: hsl( calc( var(--mol_theme_hue) + 90deg ), 50%, calc( 50% - 10% * var(--mol_theme_luma) ) );\n\t--mol_theme_focus: hsl( calc( var(--mol_theme_hue) + 180deg ), 100%, calc( 50% - 15% * var(--mol_theme_luma) ) );\n\t\n}\n\n[mol_theme=\"$mol_theme_light\"] {\n\t--mol_theme_luma: 1;\n\t--mol_theme_image: none;\n}\n\n[mol_theme=\"$mol_theme_dark\"] {\n\t--mol_theme_luma: -1;\n\t--mol_theme_image: invert(1) hue-rotate( 180deg );\n}\n\n[mol_theme=\"$mol_theme_base\"] {\n\t--mol_theme_luma: -2;\n\t--mol_theme_back: hsl( var(--mol_theme_hue), 50%, 40% );\n\t--mol_theme_hover: hsl( var(--mol_theme_hue), 60%, 30% );\n\t--mol_theme_current: hsl( var(--mol_theme_hue), 100%, 20% );\n}\n\n[mol_theme=\"$mol_theme_current\"] {\n\t--mol_theme_back: hsl( calc( var(--mol_theme_hue) - 90deg ), 50%, calc( 50% + 25% * var(--mol_theme_luma) ) );\n}\n\n[mol_theme=\"$mol_theme_special\"] {\n\t--mol_theme_back: hsl( calc( var(--mol_theme_hue) + 90deg ), 50%, calc( 50% + 25% * var(--mol_theme_luma) ) );\n}\n\n[mol_theme=\"$mol_theme_accent\"] {\n\t--mol_theme_luma: -2;\n\t--mol_theme_back: hsl( calc( var(--mol_theme_hue) + 180deg ), 80%, 40% );\n\t--mol_theme_hover: hsl( calc( var(--mol_theme_hue) + 180deg ), 80%, 35% );\n}\n\n[mol_theme=\"$mol_theme_accent\"] [mol_theme=\"$mol_theme_accent\"] {\n\t--mol_theme_back: black;\n}\n");
|
|
372
|
+
$mol_style_attach("mol/theme/theme.css", ":root {\n\t--mol_theme_hue: 210deg;\n\t--mol_theme_luma: -1;\n\t--mol_theme_image: none;\n}\n\n[mol_theme] {\n\tbackground-color: var(--mol_theme_back);\n\tcolor: var(--mol_theme_text);\n\tfill: var(--mol_theme_text);\n}\n\t\n:root, [mol_theme] {\n\t--mol_theme_back: hsl( var(--mol_theme_hue), 50% , calc( 54% + 44% * var(--mol_theme_luma) ) );\n\t--mol_theme_text: hsl( var(--mol_theme_hue), 0% , calc( 50% - 30% * var(--mol_theme_luma) ) );\n\t--mol_theme_field: hsl( var(--mol_theme_hue), 0%, calc( 50% + 50% * var(--mol_theme_luma) ), .2 );\n\t\n\t--mol_theme_card: hsl( var(--mol_theme_hue), 0%, 50%, .05 );\n\t--mol_theme_hover: hsl( var(--mol_theme_hue), 0%, 50%, .1 );\n\t--mol_theme_line: hsl( var(--mol_theme_hue), 0%, 50%, .25 );\n\t--mol_theme_shade: hsl( var(--mol_theme_hue), 0%, 50%, 1 );\n\t\n\t--mol_theme_control: hsl( var(--mol_theme_hue), 50%, calc( 50% - 5% * var(--mol_theme_luma) ) );\n\t--mol_theme_current: hsl( calc( var(--mol_theme_hue) - 90deg ), 50%, calc( 50% - 10% * var(--mol_theme_luma) ) );\n\t--mol_theme_special: hsl( calc( var(--mol_theme_hue) + 90deg ), 50%, calc( 50% - 10% * var(--mol_theme_luma) ) );\n\t--mol_theme_focus: hsl( calc( var(--mol_theme_hue) + 180deg ), 100%, calc( 50% - 15% * var(--mol_theme_luma) ) );\n\t\n}\n\n[mol_theme=\"$mol_theme_light\"] {\n\t--mol_theme_luma: 1;\n\t--mol_theme_image: none;\n}\n\n[mol_theme=\"$mol_theme_dark\"] {\n\t--mol_theme_luma: -1;\n\t--mol_theme_image: invert(1) hue-rotate( 180deg );\n}\n\n[mol_theme=\"$mol_theme_base\"] {\n\t--mol_theme_luma: -2;\n\t--mol_theme_back: hsl( var(--mol_theme_hue), 50%, 40% );\n\t--mol_theme_hover: hsl( var(--mol_theme_hue), 60%, 30% );\n\t--mol_theme_current: hsl( var(--mol_theme_hue), 100%, 20% );\n}\n\n[mol_theme=\"$mol_theme_current\"] {\n\t--mol_theme_back: hsl( calc( var(--mol_theme_hue) - 90deg ), 50%, calc( 50% + 25% * var(--mol_theme_luma) ) );\n}\n\n[mol_theme=\"$mol_theme_special\"] {\n\t--mol_theme_back: hsl( calc( var(--mol_theme_hue) + 90deg ), 50%, calc( 50% + 25% * var(--mol_theme_luma) ) );\n}\n\n[mol_theme=\"$mol_theme_accent\"] {\n\t--mol_theme_luma: -2;\n\t--mol_theme_back: hsl( calc( var(--mol_theme_hue) + 180deg ), 80%, 40% );\n\t--mol_theme_hover: hsl( calc( var(--mol_theme_hue) + 180deg ), 80%, 35% );\n}\n\n[mol_theme=\"$mol_theme_accent\"] [mol_theme=\"$mol_theme_accent\"] {\n\t--mol_theme_back: black;\n}\n");
|
|
373
373
|
})($ || ($ = {}));
|
|
374
374
|
//mol/theme/-css/theme.css.ts
|
|
375
375
|
;
|
|
@@ -805,9 +805,12 @@ var $;
|
|
|
805
805
|
}
|
|
806
806
|
static sync() {
|
|
807
807
|
while (this.planning.size) {
|
|
808
|
-
const
|
|
809
|
-
|
|
810
|
-
|
|
808
|
+
for (const fiber of this.planning) {
|
|
809
|
+
this.planning.delete(fiber);
|
|
810
|
+
if (fiber.cursor >= 0)
|
|
811
|
+
continue;
|
|
812
|
+
if (fiber.cursor === $mol_wire_cursor.final)
|
|
813
|
+
continue;
|
|
811
814
|
fiber.refresh();
|
|
812
815
|
}
|
|
813
816
|
}
|
|
@@ -835,12 +838,13 @@ var $;
|
|
|
835
838
|
field() {
|
|
836
839
|
return this.task.name + '()';
|
|
837
840
|
}
|
|
838
|
-
constructor(id, task, host,
|
|
841
|
+
constructor(id, task, host, args) {
|
|
839
842
|
super();
|
|
840
843
|
this.task = task;
|
|
841
844
|
this.host = host;
|
|
842
|
-
|
|
843
|
-
|
|
845
|
+
if (args)
|
|
846
|
+
this.data.push(...args);
|
|
847
|
+
this.pub_from = this.sub_from = args?.length ?? 0;
|
|
844
848
|
this[Symbol.toStringTag] = id;
|
|
845
849
|
}
|
|
846
850
|
plan() {
|
|
@@ -901,7 +905,7 @@ var $;
|
|
|
901
905
|
result = this.task.call(this.host, this.data[0]);
|
|
902
906
|
break;
|
|
903
907
|
default:
|
|
904
|
-
result = this.task.call(this.host, ...this.
|
|
908
|
+
result = this.task.call(this.host, ...this.args);
|
|
905
909
|
break;
|
|
906
910
|
}
|
|
907
911
|
if (result instanceof Promise) {
|
|
@@ -1167,7 +1171,7 @@ var $;
|
|
|
1167
1171
|
break reuse;
|
|
1168
1172
|
return existen;
|
|
1169
1173
|
}
|
|
1170
|
-
return new $mol_wire_task(`${host?.[Symbol.toStringTag] ?? host}.${task.name}(#)`, task, host,
|
|
1174
|
+
return new $mol_wire_task(`${host?.[Symbol.toStringTag] ?? host}.${task.name}(#)`, task, host, args);
|
|
1171
1175
|
};
|
|
1172
1176
|
}
|
|
1173
1177
|
complete() {
|
|
@@ -1240,7 +1244,7 @@ var $;
|
|
|
1240
1244
|
else {
|
|
1241
1245
|
dict = (host ?? task)[field] = new Map();
|
|
1242
1246
|
}
|
|
1243
|
-
fiber = new $mol_wire_atom(key, task, host,
|
|
1247
|
+
fiber = new $mol_wire_atom(key, task, host, args);
|
|
1244
1248
|
dict.set(key, fiber);
|
|
1245
1249
|
return fiber;
|
|
1246
1250
|
};
|
|
@@ -1251,33 +1255,14 @@ var $;
|
|
|
1251
1255
|
if (existen)
|
|
1252
1256
|
return existen;
|
|
1253
1257
|
const key = `${host?.[Symbol.toStringTag] ?? host}.${field}`;
|
|
1254
|
-
const fiber = new $mol_wire_atom(key, task, host,
|
|
1258
|
+
const fiber = new $mol_wire_atom(key, task, host, args);
|
|
1255
1259
|
(host ?? task)[field] = fiber;
|
|
1256
1260
|
return fiber;
|
|
1257
1261
|
};
|
|
1258
1262
|
}
|
|
1259
1263
|
}
|
|
1260
|
-
resync(
|
|
1261
|
-
|
|
1262
|
-
try {
|
|
1263
|
-
res = this.recall(...args);
|
|
1264
|
-
}
|
|
1265
|
-
catch (error) {
|
|
1266
|
-
if (error instanceof Promise)
|
|
1267
|
-
$mol_fail_hidden(error);
|
|
1268
|
-
res = error;
|
|
1269
|
-
}
|
|
1270
|
-
try {
|
|
1271
|
-
this.once();
|
|
1272
|
-
}
|
|
1273
|
-
catch (error) {
|
|
1274
|
-
if (error instanceof Promise)
|
|
1275
|
-
$mol_fail_hidden(error);
|
|
1276
|
-
}
|
|
1277
|
-
return this.put(res);
|
|
1278
|
-
}
|
|
1279
|
-
recall(...args) {
|
|
1280
|
-
return this.task.call(this.host, ...args);
|
|
1264
|
+
resync(args) {
|
|
1265
|
+
return this.put(this.task.call(this.host, ...args));
|
|
1281
1266
|
}
|
|
1282
1267
|
once() {
|
|
1283
1268
|
return this.sync();
|
|
@@ -1326,9 +1311,6 @@ var $;
|
|
|
1326
1311
|
__decorate([
|
|
1327
1312
|
$mol_wire_method
|
|
1328
1313
|
], $mol_wire_atom.prototype, "resync", null);
|
|
1329
|
-
__decorate([
|
|
1330
|
-
$mol_wire_method
|
|
1331
|
-
], $mol_wire_atom.prototype, "recall", null);
|
|
1332
1314
|
__decorate([
|
|
1333
1315
|
$mol_wire_method
|
|
1334
1316
|
], $mol_wire_atom.prototype, "once", null);
|
|
@@ -1365,7 +1347,7 @@ var $;
|
|
|
1365
1347
|
let atom = persist(this, args.slice(0, keys));
|
|
1366
1348
|
if (args.length <= keys || args[keys] === undefined) {
|
|
1367
1349
|
if (!$mol_wire_fiber.warm)
|
|
1368
|
-
return atom.
|
|
1350
|
+
return atom.result();
|
|
1369
1351
|
if ($mol_wire_auto() instanceof $mol_wire_task) {
|
|
1370
1352
|
return atom.once();
|
|
1371
1353
|
}
|
|
@@ -1373,7 +1355,7 @@ var $;
|
|
|
1373
1355
|
return atom.sync();
|
|
1374
1356
|
}
|
|
1375
1357
|
}
|
|
1376
|
-
return atom.resync(
|
|
1358
|
+
return atom.resync(args);
|
|
1377
1359
|
};
|
|
1378
1360
|
Object.defineProperty(wrapper, 'name', { value: func.name + ' ' });
|
|
1379
1361
|
Object.assign(wrapper, { orig: func });
|
|
@@ -2117,7 +2099,7 @@ var $;
|
|
|
2117
2099
|
"use strict";
|
|
2118
2100
|
var $;
|
|
2119
2101
|
(function ($) {
|
|
2120
|
-
$mol_style_attach("mol/view/view/view.css", "[mol_view] {\n\ttransition-property: height, width, min-height, min-width, max-width, max-height, transform;\n\ttransition-duration: .2s;\n\ttransition-timing-function: ease-out;\n\t-webkit-appearance: none;\n\tword-break: break-word;\n\tbox-sizing: border-box;\n\tdisplay: flex;\n\tflex-shrink: 0;\n\tcontain: style;\n\ttab-size: 4;\n}\n\n[mol_view]::selection {\n\tbackground: var(--mol_theme_line);\n}\n\n[mol_view] > * {\n\tword-break: inherit;\n}\n\n[mol_view_root] {\n\tmargin: 0;\n\tpadding: 0;\n\twidth: 100%;\n\theight: 100%;\n
|
|
2102
|
+
$mol_style_attach("mol/view/view/view.css", "[mol_view] {\n\ttransition-property: height, width, min-height, min-width, max-width, max-height, transform;\n\ttransition-duration: .2s;\n\ttransition-timing-function: ease-out;\n\t-webkit-appearance: none;\n\tword-break: break-word;\n\tbox-sizing: border-box;\n\tdisplay: flex;\n\tflex-shrink: 0;\n\tcontain: style;\n\ttab-size: 4;\n}\n\n[mol_view]::selection {\n\tbackground: var(--mol_theme_line);\n}\n\n[mol_view] > * {\n\tword-break: inherit;\n}\n\n[mol_view_root] {\n\tmargin: 0;\n\tpadding: 0;\n\twidth: 100%;\n\theight: 100%;\n\tbox-sizing: border-box;\n\tfont-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;\n\tfont-size: 1rem;\n\tline-height: 1.5rem;\n\tbackground: var(--mol_theme_back);\n\tcolor: var(--mol_theme_text);\n\tcontain: unset; /** Fixes bg ignoring when applied to body on Chrome */\n}\n\n[mol_view][mol_view_error]:not([mol_view_error=\"Promise\"]) {\n\tbackground-image: repeating-linear-gradient(\n\t\t-45deg,\n\t\t#f92323,\n\t\t#f92323 .5rem,\n\t\t#ff3d3d .5rem,\n\t\t#ff3d3d 1.5rem\n\t);\n\tcolor: black;\n\talign-items: center;\n justify-content: center;\n}\n\n@keyframes mol_view_wait_move {\n\tfrom {\n\t\tbackground-position: 0 0;\n\t}\n\tto {\n\t\tbackground-position: 200vmax 0;\n\t}\n}\n\n@keyframes mol_view_wait_show {\n\tto {\n\t\tbackground-image: repeating-linear-gradient(\n\t\t\t45deg,\n\t\t\thsla( 0 , 0% , 50% , .5 ) 0% ,\n\t\t\thsla( 0 , 0% , 50% , 0 ) 5% ,\n\t\t\thsla( 0 , 0% , 50% , 0 ) 45% ,\n\t\t\thsla( 0 , 0% , 50% , .5 ) 50% ,\n\t\t\thsla( 0 , 0% , 50% , 0 ) 55% ,\n\t\t\thsla( 0 , 0% , 50% , 0 ) 95% ,\n\t\t\thsla( 0 , 0% , 50% , .5 ) 100%\n\t\t);\n\t\tbackground-size: 200vmax 200vmax;\n\t}\n}\n\n[mol_view][mol_view_error=\"Promise\"] {\n\tanimation: mol_view_wait_show .5s .5s linear forwards , mol_view_wait_move 1s linear infinite;\n\topacity: .75;\n}\n");
|
|
2121
2103
|
})($ || ($ = {}));
|
|
2122
2104
|
//mol/view/view/-css/view.css.ts
|
|
2123
2105
|
;
|