mol_plot_all 1.2.54 → 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 +15 -4
- package/node.esm.js.map +1 -1
- package/node.js +15 -4
- package/node.js.map +1 -1
- package/node.test.js +15 -4
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.deps.json +1 -1
- package/web.esm.js +15 -4
- package/web.esm.js.map +1 -1
- package/web.js +15 -4
- package/web.js.map +1 -1
package/web.js
CHANGED
|
@@ -1979,11 +1979,22 @@ var $;
|
|
|
1979
1979
|
if (!sub)
|
|
1980
1980
|
return 0;
|
|
1981
1981
|
let min = 0;
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1982
|
+
try {
|
|
1983
|
+
sub.forEach(view => {
|
|
1984
|
+
if (view instanceof $mol_view) {
|
|
1985
|
+
min = Math.max(min, view.minimal_width());
|
|
1986
|
+
}
|
|
1987
|
+
});
|
|
1988
|
+
}
|
|
1989
|
+
catch (error) {
|
|
1990
|
+
if (error instanceof Promise) {
|
|
1991
|
+
$.$mol_atom2.current.subscribe(error);
|
|
1985
1992
|
}
|
|
1986
|
-
|
|
1993
|
+
else if ($.$mol_fail_catch(error)) {
|
|
1994
|
+
console.error(error);
|
|
1995
|
+
}
|
|
1996
|
+
return 24;
|
|
1997
|
+
}
|
|
1987
1998
|
return min;
|
|
1988
1999
|
}
|
|
1989
2000
|
maximal_width() {
|