mol_plot_all 1.2.263 → 1.2.266

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.esm.js CHANGED
@@ -911,6 +911,27 @@ var $;
911
911
  ;
912
912
  "use strict";
913
913
  var $;
914
+ (function ($) {
915
+ $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");
916
+ })($ || ($ = {}));
917
+ //mol/gap/-css/gap.css.ts
918
+ ;
919
+ "use strict";
920
+ var $;
921
+ (function ($) {
922
+ const { vary } = $mol_style_func;
923
+ $.$mol_gap = {
924
+ block: vary('--mol_gap_block'),
925
+ text: vary('--mol_gap_text'),
926
+ round: vary('--mol_gap_round'),
927
+ space: vary('--mol_gap_space'),
928
+ blur: vary('--mol_gap_blur'),
929
+ };
930
+ })($ || ($ = {}));
931
+ //mol/gap/gap.ts
932
+ ;
933
+ "use strict";
934
+ var $;
914
935
  (function ($_1) {
915
936
  let $$;
916
937
  (function ($$) {
@@ -1758,37 +1779,31 @@ var $;
1758
1779
  var $;
1759
1780
  (function ($) {
1760
1781
  class $mol_wire_atom extends $mol_wire_fiber {
1761
- static getter(task, keys) {
1782
+ static solo(host, task) {
1762
1783
  const field = task.name + '()';
1763
- if (keys) {
1764
- return function $mol_wire_atom_get(host, args) {
1765
- let dict, key, fiber;
1766
- key = `${host?.[Symbol.toStringTag] ?? host}.${task.name}(${args.map(v => $mol_key(v)).join(',')})`;
1767
- dict = Object.getOwnPropertyDescriptor(host ?? task, field)?.value;
1768
- if (dict) {
1769
- const existen = dict.get(key);
1770
- if (existen)
1771
- return existen;
1772
- }
1773
- else {
1774
- dict = (host ?? task)[field] = new Map();
1775
- }
1776
- fiber = new $mol_wire_atom(key, task, host, args);
1777
- dict.set(key, fiber);
1778
- return fiber;
1779
- };
1784
+ const existen = Object.getOwnPropertyDescriptor(host ?? task, field)?.value;
1785
+ if (existen)
1786
+ return existen;
1787
+ const key = `${host?.[Symbol.toStringTag] ?? host}.${field}`;
1788
+ const fiber = new $mol_wire_atom(key, task, host, []);
1789
+ (host ?? task)[field] = fiber;
1790
+ return fiber;
1791
+ }
1792
+ static plex(host, task, key) {
1793
+ const field = task.name + '()';
1794
+ let dict = Object.getOwnPropertyDescriptor(host ?? task, field)?.value;
1795
+ const id = `${host?.[Symbol.toStringTag] ?? host}.${task.name}(${$mol_key(key)})`;
1796
+ if (dict) {
1797
+ const existen = dict.get(id);
1798
+ if (existen)
1799
+ return existen;
1780
1800
  }
1781
1801
  else {
1782
- return function $mol_wire_atom_get(host, args) {
1783
- const existen = Object.getOwnPropertyDescriptor(host ?? task, field)?.value;
1784
- if (existen)
1785
- return existen;
1786
- const key = `${host?.[Symbol.toStringTag] ?? host}.${field}`;
1787
- const fiber = new $mol_wire_atom(key, task, host, args);
1788
- (host ?? task)[field] = fiber;
1789
- return fiber;
1790
- };
1802
+ dict = (host ?? task)[field] = new Map();
1791
1803
  }
1804
+ const fiber = new $mol_wire_atom(id, task, host, [key]);
1805
+ dict.set(id, fiber);
1806
+ return fiber;
1792
1807
  }
1793
1808
  static watching = new Set();
1794
1809
  static watch() {
@@ -1865,33 +1880,64 @@ var $;
1865
1880
  //mol/wire/atom/atom.ts
1866
1881
  ;
1867
1882
  "use strict";
1883
+ //mol/type/tail/tail.ts
1884
+ ;
1885
+ "use strict";
1868
1886
  var $;
1869
1887
  (function ($) {
1870
- function $mol_wire_mem(keys) {
1871
- const wrap = $mol_wire_mem_func(keys);
1872
- return (host, field, descr) => {
1873
- if (!descr)
1874
- descr = Reflect.getOwnPropertyDescriptor(host, field);
1875
- const orig = descr?.value ?? host[field];
1876
- const sup = Reflect.getPrototypeOf(host);
1877
- if (typeof sup[field] === 'function') {
1878
- Object.defineProperty(orig, 'name', { value: sup[field].name });
1879
- }
1880
- const descr2 = {
1881
- ...descr,
1882
- value: wrap(orig)
1883
- };
1884
- Reflect.defineProperty(host, field, descr2);
1885
- return descr2;
1888
+ function $mol_wire_solo(host, field, descr) {
1889
+ if (!descr)
1890
+ descr = Reflect.getOwnPropertyDescriptor(host, field);
1891
+ const orig = descr?.value ?? host[field];
1892
+ const sup = Reflect.getPrototypeOf(host);
1893
+ if (typeof sup[field] === 'function') {
1894
+ Object.defineProperty(orig, 'name', { value: sup[field].name });
1895
+ }
1896
+ const descr2 = {
1897
+ ...descr,
1898
+ value: function (...args) {
1899
+ let atom = $mol_wire_atom.solo(this, orig);
1900
+ if ((args.length === 0) || (args[0] === undefined)) {
1901
+ if (!$mol_wire_fiber.warm)
1902
+ return atom.result();
1903
+ if ($mol_wire_auto() instanceof $mol_wire_task) {
1904
+ return atom.once();
1905
+ }
1906
+ else {
1907
+ return atom.sync();
1908
+ }
1909
+ }
1910
+ return atom.resync(args);
1911
+ }
1886
1912
  };
1913
+ Reflect.defineProperty(descr2.value, 'name', { value: orig.name + ' ' });
1914
+ Object.assign(descr2.value, { orig });
1915
+ Reflect.defineProperty(host, field, descr2);
1916
+ return descr2;
1887
1917
  }
1888
- $.$mol_wire_mem = $mol_wire_mem;
1889
- function $mol_wire_mem_func(keys) {
1890
- return (func) => {
1891
- const persist = $mol_wire_atom.getter(func, keys);
1892
- const wrapper = function (...args) {
1893
- let atom = persist(this, args.slice(0, keys));
1894
- if (args.length <= keys || args[keys] === undefined) {
1918
+ $.$mol_wire_solo = $mol_wire_solo;
1919
+ })($ || ($ = {}));
1920
+ //mol/wire/solo/solo.ts
1921
+ ;
1922
+ "use strict";
1923
+ //mol/type/error/error.ts
1924
+ ;
1925
+ "use strict";
1926
+ var $;
1927
+ (function ($) {
1928
+ function $mol_wire_plex(host, field, descr) {
1929
+ if (!descr)
1930
+ descr = Reflect.getOwnPropertyDescriptor(host, field);
1931
+ const orig = descr?.value ?? host[field];
1932
+ const sup = Reflect.getPrototypeOf(host);
1933
+ if (typeof sup[field] === 'function') {
1934
+ Object.defineProperty(orig, 'name', { value: sup[field].name });
1935
+ }
1936
+ const descr2 = {
1937
+ ...descr,
1938
+ value: function (...args) {
1939
+ let atom = $mol_wire_atom.plex(this, orig, args[0]);
1940
+ if ((args.length === 1) || (args[1] === undefined)) {
1895
1941
  if (!$mol_wire_fiber.warm)
1896
1942
  return atom.result();
1897
1943
  if ($mol_wire_auto() instanceof $mol_wire_task) {
@@ -1902,23 +1948,22 @@ var $;
1902
1948
  }
1903
1949
  }
1904
1950
  return atom.resync(args);
1905
- };
1906
- Object.defineProperty(wrapper, 'name', { value: func.name + ' ' });
1907
- Object.assign(wrapper, { orig: func });
1908
- return wrapper;
1951
+ }
1909
1952
  };
1953
+ Reflect.defineProperty(descr2.value, 'name', { value: orig.name + ' ' });
1954
+ Object.assign(descr2.value, { orig });
1955
+ Reflect.defineProperty(host, field, descr2);
1956
+ return descr2;
1910
1957
  }
1911
- $.$mol_wire_mem_func = $mol_wire_mem_func;
1958
+ $.$mol_wire_plex = $mol_wire_plex;
1912
1959
  })($ || ($ = {}));
1913
- //mol/wire/mem/mem.ts
1960
+ //mol/wire/plex/plex.ts
1914
1961
  ;
1915
1962
  "use strict";
1916
1963
  var $;
1917
1964
  (function ($) {
1918
- $.$mol_mem = $mol_wire_mem(0);
1919
- $.$mol_mem_key = $mol_wire_mem(1);
1920
- $.$mol_mem_key2 = $mol_wire_mem(2);
1921
- $.$mol_mem_key3 = $mol_wire_mem(3);
1965
+ $.$mol_mem = $mol_wire_solo;
1966
+ $.$mol_mem_key = $mol_wire_plex;
1922
1967
  })($ || ($ = {}));
1923
1968
  //mol/mem/mem.ts
1924
1969
  ;
@@ -2273,7 +2318,7 @@ var $;
2273
2318
  "use strict";
2274
2319
  var $;
2275
2320
  (function ($) {
2276
- $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}\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\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");
2321
+ $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");
2277
2322
  })($ || ($ = {}));
2278
2323
  //mol/view/view/-css/view.css.ts
2279
2324
  ;