mol_plot_all 1.2.262 → 1.2.265

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/web.js CHANGED
@@ -396,6 +396,27 @@ var $;
396
396
  ;
397
397
  "use strict";
398
398
  var $;
399
+ (function ($) {
400
+ $mol_style_attach("mol/gap/gap.css", ":root {\n\t--mol_gap_block: .75rem;\n\t--mol_gap_text: .5rem .75rem;\n\t--mol_gap_round: .25rem;\n\t--mol_gap_space: .25rem;\n\t--mol_gap_blur: .5rem;\n}\n");
401
+ })($ || ($ = {}));
402
+ //mol/gap/-css/gap.css.ts
403
+ ;
404
+ "use strict";
405
+ var $;
406
+ (function ($) {
407
+ const { vary } = $mol_style_func;
408
+ $.$mol_gap = {
409
+ block: vary('--mol_gap_block'),
410
+ text: vary('--mol_gap_text'),
411
+ round: vary('--mol_gap_round'),
412
+ space: vary('--mol_gap_space'),
413
+ blur: vary('--mol_gap_blur'),
414
+ };
415
+ })($ || ($ = {}));
416
+ //mol/gap/gap.ts
417
+ ;
418
+ "use strict";
419
+ var $;
399
420
  (function ($_1) {
400
421
  let $$;
401
422
  (function ($$) {
@@ -1234,37 +1255,31 @@ var $;
1234
1255
  var $;
1235
1256
  (function ($) {
1236
1257
  class $mol_wire_atom extends $mol_wire_fiber {
1237
- static getter(task, keys) {
1258
+ static solo(host, task) {
1238
1259
  const field = task.name + '()';
1239
- if (keys) {
1240
- return function $mol_wire_atom_get(host, args) {
1241
- let dict, key, fiber;
1242
- key = `${host?.[Symbol.toStringTag] ?? host}.${task.name}(${args.map(v => $mol_key(v)).join(',')})`;
1243
- dict = Object.getOwnPropertyDescriptor(host ?? task, field)?.value;
1244
- if (dict) {
1245
- const existen = dict.get(key);
1246
- if (existen)
1247
- return existen;
1248
- }
1249
- else {
1250
- dict = (host ?? task)[field] = new Map();
1251
- }
1252
- fiber = new $mol_wire_atom(key, task, host, args);
1253
- dict.set(key, fiber);
1254
- return fiber;
1255
- };
1260
+ const existen = Object.getOwnPropertyDescriptor(host ?? task, field)?.value;
1261
+ if (existen)
1262
+ return existen;
1263
+ const key = `${host?.[Symbol.toStringTag] ?? host}.${field}`;
1264
+ const fiber = new $mol_wire_atom(key, task, host, []);
1265
+ (host ?? task)[field] = fiber;
1266
+ return fiber;
1267
+ }
1268
+ static plex(host, task, key) {
1269
+ const field = task.name + '()';
1270
+ let dict = Object.getOwnPropertyDescriptor(host ?? task, field)?.value;
1271
+ const id = `${host?.[Symbol.toStringTag] ?? host}.${task.name}(${$mol_key(key)})`;
1272
+ if (dict) {
1273
+ const existen = dict.get(id);
1274
+ if (existen)
1275
+ return existen;
1256
1276
  }
1257
1277
  else {
1258
- return function $mol_wire_atom_get(host, args) {
1259
- const existen = Object.getOwnPropertyDescriptor(host ?? task, field)?.value;
1260
- if (existen)
1261
- return existen;
1262
- const key = `${host?.[Symbol.toStringTag] ?? host}.${field}`;
1263
- const fiber = new $mol_wire_atom(key, task, host, args);
1264
- (host ?? task)[field] = fiber;
1265
- return fiber;
1266
- };
1278
+ dict = (host ?? task)[field] = new Map();
1267
1279
  }
1280
+ const fiber = new $mol_wire_atom(id, task, host, [key]);
1281
+ dict.set(id, fiber);
1282
+ return fiber;
1268
1283
  }
1269
1284
  static watching = new Set();
1270
1285
  static watch() {
@@ -1341,33 +1356,64 @@ var $;
1341
1356
  //mol/wire/atom/atom.ts
1342
1357
  ;
1343
1358
  "use strict";
1359
+ //mol/type/tail/tail.ts
1360
+ ;
1361
+ "use strict";
1344
1362
  var $;
1345
1363
  (function ($) {
1346
- function $mol_wire_mem(keys) {
1347
- const wrap = $mol_wire_mem_func(keys);
1348
- return (host, field, descr) => {
1349
- if (!descr)
1350
- descr = Reflect.getOwnPropertyDescriptor(host, field);
1351
- const orig = descr?.value ?? host[field];
1352
- const sup = Reflect.getPrototypeOf(host);
1353
- if (typeof sup[field] === 'function') {
1354
- Object.defineProperty(orig, 'name', { value: sup[field].name });
1355
- }
1356
- const descr2 = {
1357
- ...descr,
1358
- value: wrap(orig)
1359
- };
1360
- Reflect.defineProperty(host, field, descr2);
1361
- return descr2;
1364
+ function $mol_wire_solo(host, field, descr) {
1365
+ if (!descr)
1366
+ descr = Reflect.getOwnPropertyDescriptor(host, field);
1367
+ const orig = descr?.value ?? host[field];
1368
+ const sup = Reflect.getPrototypeOf(host);
1369
+ if (typeof sup[field] === 'function') {
1370
+ Object.defineProperty(orig, 'name', { value: sup[field].name });
1371
+ }
1372
+ const descr2 = {
1373
+ ...descr,
1374
+ value: function (...args) {
1375
+ let atom = $mol_wire_atom.solo(this, orig);
1376
+ if ((args.length === 0) || (args[0] === undefined)) {
1377
+ if (!$mol_wire_fiber.warm)
1378
+ return atom.result();
1379
+ if ($mol_wire_auto() instanceof $mol_wire_task) {
1380
+ return atom.once();
1381
+ }
1382
+ else {
1383
+ return atom.sync();
1384
+ }
1385
+ }
1386
+ return atom.resync(args);
1387
+ }
1362
1388
  };
1389
+ Reflect.defineProperty(descr2.value, 'name', { value: orig.name + ' ' });
1390
+ Object.assign(descr2.value, { orig });
1391
+ Reflect.defineProperty(host, field, descr2);
1392
+ return descr2;
1363
1393
  }
1364
- $.$mol_wire_mem = $mol_wire_mem;
1365
- function $mol_wire_mem_func(keys) {
1366
- return (func) => {
1367
- const persist = $mol_wire_atom.getter(func, keys);
1368
- const wrapper = function (...args) {
1369
- let atom = persist(this, args.slice(0, keys));
1370
- if (args.length <= keys || args[keys] === undefined) {
1394
+ $.$mol_wire_solo = $mol_wire_solo;
1395
+ })($ || ($ = {}));
1396
+ //mol/wire/solo/solo.ts
1397
+ ;
1398
+ "use strict";
1399
+ //mol/type/error/error.ts
1400
+ ;
1401
+ "use strict";
1402
+ var $;
1403
+ (function ($) {
1404
+ function $mol_wire_plex(host, field, descr) {
1405
+ if (!descr)
1406
+ descr = Reflect.getOwnPropertyDescriptor(host, field);
1407
+ const orig = descr?.value ?? host[field];
1408
+ const sup = Reflect.getPrototypeOf(host);
1409
+ if (typeof sup[field] === 'function') {
1410
+ Object.defineProperty(orig, 'name', { value: sup[field].name });
1411
+ }
1412
+ const descr2 = {
1413
+ ...descr,
1414
+ value: function (...args) {
1415
+ let atom = $mol_wire_atom.plex(this, orig, args[0]);
1416
+ if ((args.length === 1) || (args[1] === undefined)) {
1371
1417
  if (!$mol_wire_fiber.warm)
1372
1418
  return atom.result();
1373
1419
  if ($mol_wire_auto() instanceof $mol_wire_task) {
@@ -1378,23 +1424,22 @@ var $;
1378
1424
  }
1379
1425
  }
1380
1426
  return atom.resync(args);
1381
- };
1382
- Object.defineProperty(wrapper, 'name', { value: func.name + ' ' });
1383
- Object.assign(wrapper, { orig: func });
1384
- return wrapper;
1427
+ }
1385
1428
  };
1429
+ Reflect.defineProperty(descr2.value, 'name', { value: orig.name + ' ' });
1430
+ Object.assign(descr2.value, { orig });
1431
+ Reflect.defineProperty(host, field, descr2);
1432
+ return descr2;
1386
1433
  }
1387
- $.$mol_wire_mem_func = $mol_wire_mem_func;
1434
+ $.$mol_wire_plex = $mol_wire_plex;
1388
1435
  })($ || ($ = {}));
1389
- //mol/wire/mem/mem.ts
1436
+ //mol/wire/plex/plex.ts
1390
1437
  ;
1391
1438
  "use strict";
1392
1439
  var $;
1393
1440
  (function ($) {
1394
- $.$mol_mem = $mol_wire_mem(0);
1395
- $.$mol_mem_key = $mol_wire_mem(1);
1396
- $.$mol_mem_key2 = $mol_wire_mem(2);
1397
- $.$mol_mem_key3 = $mol_wire_mem(3);
1441
+ $.$mol_mem = $mol_wire_solo;
1442
+ $.$mol_mem_key = $mol_wire_plex;
1398
1443
  })($ || ($ = {}));
1399
1444
  //mol/mem/mem.ts
1400
1445
  ;
@@ -2161,7 +2206,7 @@ var $;
2161
2206
  "use strict";
2162
2207
  var $;
2163
2208
  (function ($) {
2164
- $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");
2209
+ $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\tscrollbar-color: var(--mol_theme_line) transparent;\n\tscrollbar-width: thin;\n}\t\n\n[mol_view]::selection {\n\tbackground: var(--mol_theme_line);\n}\t\n\n[mol_view]::-webkit-scrollbar {\n\twidth: .25rem;\n\theight: .25rem;\n}\n\n[mol_view]::-webkit-scrollbar-corner {\n\tbackground-color: var(--mol_theme_line);\n}\n\n[mol_view]::-webkit-scrollbar-track {\n\tbackground-color: transparent;\n}\n\n[mol_view]::-webkit-scrollbar-thumb {\n\tbackground-color: var(--mol_theme_line);\n\tborder-radius: var(--mol_gap_round);\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\ttab-size: 4;\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");
2165
2210
  })($ || ($ = {}));
2166
2211
  //mol/view/view/-css/view.css.ts
2167
2212
  ;