mol_dump_lib 0.0.648 → 0.0.650
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.js +10 -10
- package/node.js.map +1 -1
- package/node.mjs +10 -10
- package/node.test.js +10 -10
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.js +10 -10
- package/web.js.map +1 -1
- package/web.mjs +10 -10
package/node.mjs
CHANGED
|
@@ -700,7 +700,7 @@ var $;
|
|
|
700
700
|
return $mol_promise_like(this.cache);
|
|
701
701
|
}
|
|
702
702
|
field() {
|
|
703
|
-
return this.task.name + '
|
|
703
|
+
return this.task.name + '()';
|
|
704
704
|
}
|
|
705
705
|
constructor(id, task, host, args) {
|
|
706
706
|
super();
|
|
@@ -1791,18 +1791,18 @@ var $;
|
|
|
1791
1791
|
(function ($) {
|
|
1792
1792
|
class $mol_wire_atom extends $mol_wire_fiber {
|
|
1793
1793
|
static solo(host, task) {
|
|
1794
|
-
const field = task.name + '
|
|
1794
|
+
const field = task.name + '()';
|
|
1795
1795
|
const existen = Object.getOwnPropertyDescriptor(host ?? task, field)?.value;
|
|
1796
1796
|
if (existen)
|
|
1797
1797
|
return existen;
|
|
1798
1798
|
const prefix = host?.[Symbol.toStringTag] ?? (host instanceof Function ? $$.$mol_func_name(host) : host);
|
|
1799
|
-
const key = prefix + ('.' +
|
|
1799
|
+
const key = prefix + ('.' + task.name + '<>');
|
|
1800
1800
|
const fiber = new $mol_wire_atom(key, task, host, []);
|
|
1801
1801
|
(host ?? task)[field] = fiber;
|
|
1802
1802
|
return fiber;
|
|
1803
1803
|
}
|
|
1804
1804
|
static plex(host, task, key) {
|
|
1805
|
-
const field = task.name + '
|
|
1805
|
+
const field = task.name + '()';
|
|
1806
1806
|
let dict = Object.getOwnPropertyDescriptor(host ?? task, field)?.value;
|
|
1807
1807
|
const prefix = host?.[Symbol.toStringTag] ?? (host instanceof Function ? $$.$mol_func_name(host) : host);
|
|
1808
1808
|
const key_str = $mol_key(key);
|
|
@@ -4607,7 +4607,7 @@ var $;
|
|
|
4607
4607
|
min = 0;
|
|
4608
4608
|
top = Math.ceil(rect?.top ?? 0);
|
|
4609
4609
|
while (min < (kids.length - 1)) {
|
|
4610
|
-
const height = kids[min]
|
|
4610
|
+
const height = kids[min]?.minimal_height() ?? 0;
|
|
4611
4611
|
if (top + height >= limit_top)
|
|
4612
4612
|
break;
|
|
4613
4613
|
top += height;
|
|
@@ -4629,21 +4629,21 @@ var $;
|
|
|
4629
4629
|
}
|
|
4630
4630
|
while (anchoring && ((top2 > limit_top) && (min2 > 0))) {
|
|
4631
4631
|
--min2;
|
|
4632
|
-
top2 -= kids[min2]
|
|
4632
|
+
top2 -= kids[min2]?.minimal_height() ?? 0;
|
|
4633
4633
|
}
|
|
4634
4634
|
while (bottom2 < limit_bottom && max2 < kids.length) {
|
|
4635
|
-
bottom2 += kids[max2]
|
|
4635
|
+
bottom2 += kids[max2]?.minimal_height() ?? 0;
|
|
4636
4636
|
++max2;
|
|
4637
4637
|
}
|
|
4638
4638
|
return [min2, max2];
|
|
4639
4639
|
}
|
|
4640
4640
|
gap_before() {
|
|
4641
4641
|
const skipped = this.sub().slice(0, this.view_window()[0]);
|
|
4642
|
-
return Math.max(0, skipped.reduce((sum, view) => sum + view
|
|
4642
|
+
return Math.max(0, skipped.reduce((sum, view) => sum + (view?.minimal_height() ?? 0), 0));
|
|
4643
4643
|
}
|
|
4644
4644
|
gap_after() {
|
|
4645
4645
|
const skipped = this.sub().slice(this.view_window()[1]);
|
|
4646
|
-
return Math.max(0, skipped.reduce((sum, view) => sum + view
|
|
4646
|
+
return Math.max(0, skipped.reduce((sum, view) => sum + (view?.minimal_height() ?? 0), 0));
|
|
4647
4647
|
}
|
|
4648
4648
|
sub_visible() {
|
|
4649
4649
|
return [
|
|
@@ -4655,7 +4655,7 @@ var $;
|
|
|
4655
4655
|
minimal_height() {
|
|
4656
4656
|
return this.sub().reduce((sum, view) => {
|
|
4657
4657
|
try {
|
|
4658
|
-
return sum + view
|
|
4658
|
+
return sum + (view?.minimal_height() ?? 0);
|
|
4659
4659
|
}
|
|
4660
4660
|
catch (error) {
|
|
4661
4661
|
$mol_fail_log(error);
|
package/node.test.js
CHANGED
|
@@ -691,7 +691,7 @@ var $;
|
|
|
691
691
|
return $mol_promise_like(this.cache);
|
|
692
692
|
}
|
|
693
693
|
field() {
|
|
694
|
-
return this.task.name + '
|
|
694
|
+
return this.task.name + '()';
|
|
695
695
|
}
|
|
696
696
|
constructor(id, task, host, args) {
|
|
697
697
|
super();
|
|
@@ -1782,18 +1782,18 @@ var $;
|
|
|
1782
1782
|
(function ($) {
|
|
1783
1783
|
class $mol_wire_atom extends $mol_wire_fiber {
|
|
1784
1784
|
static solo(host, task) {
|
|
1785
|
-
const field = task.name + '
|
|
1785
|
+
const field = task.name + '()';
|
|
1786
1786
|
const existen = Object.getOwnPropertyDescriptor(host ?? task, field)?.value;
|
|
1787
1787
|
if (existen)
|
|
1788
1788
|
return existen;
|
|
1789
1789
|
const prefix = host?.[Symbol.toStringTag] ?? (host instanceof Function ? $$.$mol_func_name(host) : host);
|
|
1790
|
-
const key = prefix + ('.' +
|
|
1790
|
+
const key = prefix + ('.' + task.name + '<>');
|
|
1791
1791
|
const fiber = new $mol_wire_atom(key, task, host, []);
|
|
1792
1792
|
(host ?? task)[field] = fiber;
|
|
1793
1793
|
return fiber;
|
|
1794
1794
|
}
|
|
1795
1795
|
static plex(host, task, key) {
|
|
1796
|
-
const field = task.name + '
|
|
1796
|
+
const field = task.name + '()';
|
|
1797
1797
|
let dict = Object.getOwnPropertyDescriptor(host ?? task, field)?.value;
|
|
1798
1798
|
const prefix = host?.[Symbol.toStringTag] ?? (host instanceof Function ? $$.$mol_func_name(host) : host);
|
|
1799
1799
|
const key_str = $mol_key(key);
|
|
@@ -4598,7 +4598,7 @@ var $;
|
|
|
4598
4598
|
min = 0;
|
|
4599
4599
|
top = Math.ceil(rect?.top ?? 0);
|
|
4600
4600
|
while (min < (kids.length - 1)) {
|
|
4601
|
-
const height = kids[min]
|
|
4601
|
+
const height = kids[min]?.minimal_height() ?? 0;
|
|
4602
4602
|
if (top + height >= limit_top)
|
|
4603
4603
|
break;
|
|
4604
4604
|
top += height;
|
|
@@ -4620,21 +4620,21 @@ var $;
|
|
|
4620
4620
|
}
|
|
4621
4621
|
while (anchoring && ((top2 > limit_top) && (min2 > 0))) {
|
|
4622
4622
|
--min2;
|
|
4623
|
-
top2 -= kids[min2]
|
|
4623
|
+
top2 -= kids[min2]?.minimal_height() ?? 0;
|
|
4624
4624
|
}
|
|
4625
4625
|
while (bottom2 < limit_bottom && max2 < kids.length) {
|
|
4626
|
-
bottom2 += kids[max2]
|
|
4626
|
+
bottom2 += kids[max2]?.minimal_height() ?? 0;
|
|
4627
4627
|
++max2;
|
|
4628
4628
|
}
|
|
4629
4629
|
return [min2, max2];
|
|
4630
4630
|
}
|
|
4631
4631
|
gap_before() {
|
|
4632
4632
|
const skipped = this.sub().slice(0, this.view_window()[0]);
|
|
4633
|
-
return Math.max(0, skipped.reduce((sum, view) => sum + view
|
|
4633
|
+
return Math.max(0, skipped.reduce((sum, view) => sum + (view?.minimal_height() ?? 0), 0));
|
|
4634
4634
|
}
|
|
4635
4635
|
gap_after() {
|
|
4636
4636
|
const skipped = this.sub().slice(this.view_window()[1]);
|
|
4637
|
-
return Math.max(0, skipped.reduce((sum, view) => sum + view
|
|
4637
|
+
return Math.max(0, skipped.reduce((sum, view) => sum + (view?.minimal_height() ?? 0), 0));
|
|
4638
4638
|
}
|
|
4639
4639
|
sub_visible() {
|
|
4640
4640
|
return [
|
|
@@ -4646,7 +4646,7 @@ var $;
|
|
|
4646
4646
|
minimal_height() {
|
|
4647
4647
|
return this.sub().reduce((sum, view) => {
|
|
4648
4648
|
try {
|
|
4649
|
-
return sum + view
|
|
4649
|
+
return sum + (view?.minimal_height() ?? 0);
|
|
4650
4650
|
}
|
|
4651
4651
|
catch (error) {
|
|
4652
4652
|
$mol_fail_log(error);
|