mol_plot_all 1.2.51 → 1.2.55
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.deps.json +1 -1
- package/node.esm.js +21 -7
- package/node.esm.js.map +1 -1
- package/node.js +21 -7
- package/node.js.map +1 -1
- package/node.test.js +21 -7
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.deps.json +1 -1
- package/web.esm.js +21 -7
- package/web.esm.js.map +1 -1
- package/web.js +21 -7
- package/web.js.map +1 -1
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
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
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() {
|
|
@@ -2404,7 +2415,10 @@ var $;
|
|
|
2404
2415
|
}
|
|
2405
2416
|
dom_node_actual() {
|
|
2406
2417
|
const node = this.dom_node();
|
|
2407
|
-
$.$mol_dom_render_styles(node, {
|
|
2418
|
+
$.$mol_dom_render_styles(node, {
|
|
2419
|
+
minHeight: this.minimal_height(),
|
|
2420
|
+
minWidth: this.minimal_width(),
|
|
2421
|
+
});
|
|
2408
2422
|
const attr = this.attr();
|
|
2409
2423
|
const style = this.style();
|
|
2410
2424
|
const fields = this.field();
|
|
@@ -4256,7 +4270,7 @@ var $;
|
|
|
4256
4270
|
return graphs;
|
|
4257
4271
|
}
|
|
4258
4272
|
dimensions() {
|
|
4259
|
-
const graphs = this.
|
|
4273
|
+
const graphs = this.graphs_enriched();
|
|
4260
4274
|
let next = new this.$.$mol_vector_2d($.$mol_vector_range_full.inversed, $.$mol_vector_range_full.inversed);
|
|
4261
4275
|
for (let graph of graphs) {
|
|
4262
4276
|
next = next.expanded2(graph.dimensions());
|