mol_dump_lib 0.0.1029 → 0.0.1031
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.d.ts +1 -0
- package/node.d.ts.map +1 -1
- package/node.deps.json +1 -1
- package/node.js +3 -2
- package/node.js.map +1 -1
- package/node.mjs +3 -2
- package/node.test.js +3 -2
- package/node.test.js.map +1 -1
- package/node.view.tree +5 -5
- package/package.json +1 -1
- package/web.d.ts +1 -0
- package/web.d.ts.map +1 -1
- package/web.deps.json +1 -1
- package/web.js +3 -2
- package/web.js.map +1 -1
- package/web.mjs +3 -2
- package/web.view.tree +5 -5
package/node.mjs
CHANGED
|
@@ -5308,6 +5308,7 @@ var $;
|
|
|
5308
5308
|
render_visible_only() {
|
|
5309
5309
|
return this.$.$mol_support_css_overflow_anchor();
|
|
5310
5310
|
}
|
|
5311
|
+
_view_window_last = [0, 0];
|
|
5311
5312
|
view_window(next) {
|
|
5312
5313
|
const kids = this.sub();
|
|
5313
5314
|
if (kids.length < 3)
|
|
@@ -5317,7 +5318,7 @@ var $;
|
|
|
5317
5318
|
const rect = this.view_rect();
|
|
5318
5319
|
if (next)
|
|
5319
5320
|
return next;
|
|
5320
|
-
let [min, max] = $mol_mem_cached(() => this.view_window()) ??
|
|
5321
|
+
let [min, max] = $mol_mem_cached(() => this.view_window()) ?? this._view_window_last;
|
|
5321
5322
|
const shift = this.view_window_shift();
|
|
5322
5323
|
this.view_window_shift(0);
|
|
5323
5324
|
min += shift;
|
|
@@ -5412,7 +5413,7 @@ var $;
|
|
|
5412
5413
|
sub_visible() {
|
|
5413
5414
|
return [
|
|
5414
5415
|
...this.gap_before() ? [this.Gap_before()] : [],
|
|
5415
|
-
...this.sub().slice(...this.view_window()),
|
|
5416
|
+
...this.sub().slice(...this._view_window_last = this.view_window()),
|
|
5416
5417
|
...this.gap_after() ? [this.Gap_after()] : [],
|
|
5417
5418
|
];
|
|
5418
5419
|
}
|
package/node.test.js
CHANGED
|
@@ -5299,6 +5299,7 @@ var $;
|
|
|
5299
5299
|
render_visible_only() {
|
|
5300
5300
|
return this.$.$mol_support_css_overflow_anchor();
|
|
5301
5301
|
}
|
|
5302
|
+
_view_window_last = [0, 0];
|
|
5302
5303
|
view_window(next) {
|
|
5303
5304
|
const kids = this.sub();
|
|
5304
5305
|
if (kids.length < 3)
|
|
@@ -5308,7 +5309,7 @@ var $;
|
|
|
5308
5309
|
const rect = this.view_rect();
|
|
5309
5310
|
if (next)
|
|
5310
5311
|
return next;
|
|
5311
|
-
let [min, max] = $mol_mem_cached(() => this.view_window()) ??
|
|
5312
|
+
let [min, max] = $mol_mem_cached(() => this.view_window()) ?? this._view_window_last;
|
|
5312
5313
|
const shift = this.view_window_shift();
|
|
5313
5314
|
this.view_window_shift(0);
|
|
5314
5315
|
min += shift;
|
|
@@ -5403,7 +5404,7 @@ var $;
|
|
|
5403
5404
|
sub_visible() {
|
|
5404
5405
|
return [
|
|
5405
5406
|
...this.gap_before() ? [this.Gap_before()] : [],
|
|
5406
|
-
...this.sub().slice(...this.view_window()),
|
|
5407
|
+
...this.sub().slice(...this._view_window_last = this.view_window()),
|
|
5407
5408
|
...this.gap_after() ? [this.Gap_after()] : [],
|
|
5408
5409
|
];
|
|
5409
5410
|
}
|