mol_plot_all 1.2.1284 → 1.2.1286

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.mjs CHANGED
@@ -1954,6 +1954,38 @@ var $;
1954
1954
  $.$mol_style_attach = $mol_style_attach;
1955
1955
  })($ || ($ = {}));
1956
1956
 
1957
+ ;
1958
+ "use strict";
1959
+ var $;
1960
+ (function ($) {
1961
+ class $mol_promise extends Promise {
1962
+ done;
1963
+ fail;
1964
+ constructor(executor) {
1965
+ let done;
1966
+ let fail;
1967
+ super((d, f) => {
1968
+ done = d;
1969
+ fail = f;
1970
+ executor?.(d, f);
1971
+ });
1972
+ this.done = done;
1973
+ this.fail = fail;
1974
+ }
1975
+ }
1976
+ $.$mol_promise = $mol_promise;
1977
+ })($ || ($ = {}));
1978
+
1979
+ ;
1980
+ "use strict";
1981
+ var $;
1982
+ (function ($) {
1983
+ class $mol_promise_blocker extends $mol_promise {
1984
+ static [Symbol.toStringTag] = '$mol_promise_blocker';
1985
+ }
1986
+ $.$mol_promise_blocker = $mol_promise_blocker;
1987
+ })($ || ($ = {}));
1988
+
1957
1989
  ;
1958
1990
  "use strict";
1959
1991
  var $;
@@ -2604,7 +2636,7 @@ var $;
2604
2636
  "use strict";
2605
2637
  var $;
2606
2638
  (function ($) {
2607
- $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\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\toverscroll-behavior: contain; /** Disable navigation gestures **/\n}\n\n@media print {\n\t[mol_view_root] {\n\t\theight: auto;\n\t}\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\tjustify-content: center;\n}\n\n@keyframes mol_view_wait {\n\tfrom {\n\t\topacity: .25;\n\t}\n\t20% {\n\t\topacity: .75;\n\t}\n\tto {\n\t\topacity: .25;\n\t}\n}\n\n:where([mol_view][mol_view_error=\"Promise\"]) {\n\tbackground: var(--mol_theme_hover);\n}\n\n[mol_view][mol_view_error=\"Promise\"] {\n\tanimation: mol_view_wait 1s steps(20,end) infinite;\n}\n");
2639
+ $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\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\toverscroll-behavior: contain; /** Disable navigation gestures **/\n}\n\n@media print {\n\t[mol_view_root] {\n\t\theight: auto;\n\t}\n}\n[mol_view][mol_view_error]:not([mol_view_error=\"Promise\"], [mol_view_error=\"$mol_promise_blocker\"]) {\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\tjustify-content: center;\n}\n\n@keyframes mol_view_wait {\n\tfrom {\n\t\topacity: .25;\n\t}\n\t20% {\n\t\topacity: .75;\n\t}\n\tto {\n\t\topacity: .25;\n\t}\n}\n\n:where([mol_view][mol_view_error=\"$mol_promise_blocker\"]),\n:where([mol_view][mol_view_error=\"Promise\"]) {\n\tbackground: var(--mol_theme_hover);\n}\n\n[mol_view][mol_view_error=\"Promise\"] {\n\tanimation: mol_view_wait 1s steps(20,end) infinite;\n}\n");
2608
2640
  })($ || ($ = {}));
2609
2641
 
2610
2642
  ;
package/web.test.js CHANGED
@@ -1193,25 +1193,6 @@ var $;
1193
1193
  ;
1194
1194
  "use strict";
1195
1195
 
1196
- ;
1197
- "use strict";
1198
- var $;
1199
- (function ($) {
1200
- function $mol_promise() {
1201
- let done;
1202
- let fail;
1203
- const promise = new Promise((d, f) => {
1204
- done = d;
1205
- fail = f;
1206
- });
1207
- return Object.assign(promise, {
1208
- done,
1209
- fail,
1210
- });
1211
- }
1212
- $.$mol_promise = $mol_promise;
1213
- })($ || ($ = {}));
1214
-
1215
1196
  ;
1216
1197
  "use strict";
1217
1198
  var $;
@@ -1432,7 +1413,7 @@ var $;
1432
1413
  var $;
1433
1414
  (function ($) {
1434
1415
  function $mol_wait_timeout_async(timeout) {
1435
- const promise = $mol_promise();
1416
+ const promise = new $mol_promise();
1436
1417
  const task = new this.$mol_after_timeout(timeout, () => promise.done());
1437
1418
  return Object.assign(promise, {
1438
1419
  destructor: () => task.destructor()