mol_plot_all 1.2.52 → 1.2.56

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.test.js CHANGED
@@ -2242,7 +2242,7 @@ var $;
2242
2242
  "use strict";
2243
2243
  var $;
2244
2244
  (function ($) {
2245
- $.$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\tcontain: style;\n\ttab-size: 4;\n}\n\n[mol_view]::selection {\n\tbackground: var(--mol_theme_current);\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: var(--mol_skin_font);\n\tbackground: var(--mol_theme_back);\n\tcolor: var(--mol_theme_text);\n}\n\n[mol_view][mol_view_error]:not([mol_view_error=\"Promise\"]) {\n\tbackground-image: repeating-linear-gradient(\n\t\t135deg,\n\t\thsl(0, 30%, 60%),\n\t\thsl(0, 30%, 60%) 11px,\n\t\thsl(60, 100%, 90%) 10px,\n\t\thsl(60, 100%, 90%) 20px\n\t);\n\tbackground-size: 28px 28px;\n\tcolor: black;\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% , .25 ) 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% , .25 ) 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% , .25 ) 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");
2245
+ $.$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\tmax-width: 100%;\n\tcontain: style;\n\ttab-size: 4;\n}\n\n[mol_view]::selection {\n\tbackground: var(--mol_theme_current);\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: var(--mol_skin_font);\n\tbackground: var(--mol_theme_back);\n\tcolor: var(--mol_theme_text);\n}\n\n[mol_view][mol_view_error]:not([mol_view_error=\"Promise\"]) {\n\tbackground-image: repeating-linear-gradient(\n\t\t135deg,\n\t\thsl(0, 30%, 60%),\n\t\thsl(0, 30%, 60%) 11px,\n\t\thsl(60, 100%, 90%) 10px,\n\t\thsl(60, 100%, 90%) 20px\n\t);\n\tbackground-size: 28px 28px;\n\tcolor: black;\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% , .25 ) 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% , .25 ) 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% , .25 ) 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");
2246
2246
  })($ || ($ = {}));
2247
2247
  //view.css.js.map
2248
2248
  ;
@@ -2312,11 +2312,22 @@ var $;
2312
2312
  if (!sub)
2313
2313
  return 0;
2314
2314
  let min = 0;
2315
- sub.forEach(view => {
2316
- if (view instanceof $mol_view) {
2317
- min = Math.max(min, view.minimal_width());
2315
+ try {
2316
+ sub.forEach(view => {
2317
+ if (view instanceof $mol_view) {
2318
+ min = Math.max(min, view.minimal_width());
2319
+ }
2320
+ });
2321
+ }
2322
+ catch (error) {
2323
+ if (error instanceof Promise) {
2324
+ $.$mol_atom2.current.subscribe(error);
2318
2325
  }
2319
- });
2326
+ else if ($.$mol_fail_catch(error)) {
2327
+ console.error(error);
2328
+ }
2329
+ return 24;
2330
+ }
2320
2331
  return min;
2321
2332
  }
2322
2333
  maximal_width() {
@@ -4259,7 +4270,7 @@ var $;
4259
4270
  return graphs;
4260
4271
  }
4261
4272
  dimensions() {
4262
- const graphs = this.graphs();
4273
+ const graphs = this.graphs_enriched();
4263
4274
  let next = new this.$.$mol_vector_2d($.$mol_vector_range_full.inversed, $.$mol_vector_range_full.inversed);
4264
4275
  for (let graph of graphs) {
4265
4276
  next = next.expanded2(graph.dimensions());
@@ -5986,7 +5997,7 @@ var $;
5986
5997
  $.$mol_jsx_booked = null;
5987
5998
  $.$mol_jsx_document = {
5988
5999
  getElementById: () => null,
5989
- createElement: (name) => $.$mol_dom_context.document.createElement(name),
6000
+ createElementNS: (space, name) => $.$mol_dom_context.document.createElementNS(space, name),
5990
6001
  createDocumentFragment: () => $.$mol_dom_context.document.createDocumentFragment(),
5991
6002
  };
5992
6003
  $.$mol_jsx_frag = '';
@@ -6028,8 +6039,11 @@ var $;
6028
6039
  }
6029
6040
  }
6030
6041
  }
6031
- if (!node)
6032
- node = Elem ? $.$mol_jsx_document.createElement(Elem) : $.$mol_jsx_document.createDocumentFragment();
6042
+ if (!node) {
6043
+ node = Elem
6044
+ ? $.$mol_jsx_document.createElementNS(props?.xmlns ?? 'http://www.w3.org/1999/xhtml', Elem)
6045
+ : $.$mol_jsx_document.createDocumentFragment();
6046
+ }
6033
6047
  $.$mol_dom_render_children(node, [].concat(...childNodes));
6034
6048
  if (!Elem)
6035
6049
  return node;
@@ -6046,7 +6060,9 @@ var $;
6046
6060
  continue;
6047
6061
  }
6048
6062
  }
6049
- node[key] = props[key];
6063
+ else {
6064
+ node[key] = props[key];
6065
+ }
6050
6066
  }
6051
6067
  if (guid)
6052
6068
  node.id = guid;