mol_plot_all 1.2.283 → 1.2.286
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 +12 -1
- package/node.deps.json +1 -1
- package/node.esm.js +33 -1
- package/node.esm.js.map +1 -1
- package/node.js +33 -1
- package/node.js.map +1 -1
- package/node.test.js +42 -1
- package/node.test.js.map +1 -1
- package/package.json +2 -1
- package/web.d.ts +22 -11
- package/web.deps.json +1 -1
- package/web.esm.js +55 -23
- package/web.esm.js.map +1 -1
- package/web.js +55 -23
- package/web.js.map +1 -1
- package/web.test.js +9 -0
- package/web.test.js.map +1 -1
package/web.esm.js
CHANGED
|
@@ -1498,13 +1498,15 @@ var $;
|
|
|
1498
1498
|
var $;
|
|
1499
1499
|
(function ($) {
|
|
1500
1500
|
class $mol_view_selection extends $mol_object {
|
|
1501
|
-
static focused(next) {
|
|
1501
|
+
static focused(next, notify) {
|
|
1502
1502
|
const parents = [];
|
|
1503
1503
|
let element = next?.[0] ?? $mol_dom_context.document.activeElement;
|
|
1504
1504
|
while (element) {
|
|
1505
1505
|
parents.push(element);
|
|
1506
1506
|
element = element.parentNode;
|
|
1507
1507
|
}
|
|
1508
|
+
if (!next || notify)
|
|
1509
|
+
return parents;
|
|
1508
1510
|
new $mol_after_tick(() => {
|
|
1509
1511
|
const element = this.focused()[0];
|
|
1510
1512
|
if (element)
|
|
@@ -1537,7 +1539,7 @@ var $;
|
|
|
1537
1539
|
(function ($) {
|
|
1538
1540
|
if ($mol_dom_context.document) {
|
|
1539
1541
|
$mol_dom_context.document.documentElement.addEventListener('focus', (event) => {
|
|
1540
|
-
$mol_view_selection.focused($mol_maybe($mol_dom_context.document.activeElement));
|
|
1542
|
+
$mol_view_selection.focused($mol_maybe($mol_dom_context.document.activeElement), 'notify');
|
|
1541
1543
|
}, true);
|
|
1542
1544
|
}
|
|
1543
1545
|
})($ || ($ = {}));
|
|
@@ -1827,6 +1829,51 @@ var $;
|
|
|
1827
1829
|
//mol/func/name/name.ts
|
|
1828
1830
|
;
|
|
1829
1831
|
"use strict";
|
|
1832
|
+
var $;
|
|
1833
|
+
(function ($) {
|
|
1834
|
+
class $mol_after_timeout extends $mol_object2 {
|
|
1835
|
+
delay;
|
|
1836
|
+
task;
|
|
1837
|
+
id;
|
|
1838
|
+
constructor(delay, task) {
|
|
1839
|
+
super();
|
|
1840
|
+
this.delay = delay;
|
|
1841
|
+
this.task = task;
|
|
1842
|
+
this.id = setTimeout(task, delay);
|
|
1843
|
+
}
|
|
1844
|
+
destructor() {
|
|
1845
|
+
clearTimeout(this.id);
|
|
1846
|
+
}
|
|
1847
|
+
}
|
|
1848
|
+
$.$mol_after_timeout = $mol_after_timeout;
|
|
1849
|
+
})($ || ($ = {}));
|
|
1850
|
+
//mol/after/timeout/timeout.ts
|
|
1851
|
+
;
|
|
1852
|
+
"use strict";
|
|
1853
|
+
var $;
|
|
1854
|
+
(function ($) {
|
|
1855
|
+
class $mol_after_work extends $mol_object2 {
|
|
1856
|
+
delay;
|
|
1857
|
+
task;
|
|
1858
|
+
id;
|
|
1859
|
+
constructor(delay, task) {
|
|
1860
|
+
super();
|
|
1861
|
+
this.delay = delay;
|
|
1862
|
+
this.task = task;
|
|
1863
|
+
this.id = requestIdleCallback(task, { timeout: delay });
|
|
1864
|
+
}
|
|
1865
|
+
destructor() {
|
|
1866
|
+
cancelIdleCallback(this.id);
|
|
1867
|
+
}
|
|
1868
|
+
}
|
|
1869
|
+
$.$mol_after_work = $mol_after_work;
|
|
1870
|
+
if (typeof requestIdleCallback !== 'function') {
|
|
1871
|
+
$.$mol_after_work = $mol_after_timeout;
|
|
1872
|
+
}
|
|
1873
|
+
})($ || ($ = {}));
|
|
1874
|
+
//mol/after/work/work.ts
|
|
1875
|
+
;
|
|
1876
|
+
"use strict";
|
|
1830
1877
|
//mol/type/keys/extract/extract.ts
|
|
1831
1878
|
;
|
|
1832
1879
|
"use strict";
|
|
@@ -2146,6 +2193,12 @@ var $;
|
|
|
2146
2193
|
$mol_wire_fiber.sync();
|
|
2147
2194
|
view.dom_node().scrollIntoView({ block: align });
|
|
2148
2195
|
}
|
|
2196
|
+
bring() {
|
|
2197
|
+
new $mol_after_work(16, () => {
|
|
2198
|
+
this.dom_node().scrollIntoView({ behavior: 'smooth' });
|
|
2199
|
+
new $mol_after_timeout(400, () => this.focused(true));
|
|
2200
|
+
});
|
|
2201
|
+
}
|
|
2149
2202
|
}
|
|
2150
2203
|
__decorate([
|
|
2151
2204
|
$mol_mem
|
|
@@ -2241,27 +2294,6 @@ var $;
|
|
|
2241
2294
|
;
|
|
2242
2295
|
"use strict";
|
|
2243
2296
|
var $;
|
|
2244
|
-
(function ($) {
|
|
2245
|
-
class $mol_after_timeout extends $mol_object2 {
|
|
2246
|
-
delay;
|
|
2247
|
-
task;
|
|
2248
|
-
id;
|
|
2249
|
-
constructor(delay, task) {
|
|
2250
|
-
super();
|
|
2251
|
-
this.delay = delay;
|
|
2252
|
-
this.task = task;
|
|
2253
|
-
this.id = setTimeout(task, delay);
|
|
2254
|
-
}
|
|
2255
|
-
destructor() {
|
|
2256
|
-
clearTimeout(this.id);
|
|
2257
|
-
}
|
|
2258
|
-
}
|
|
2259
|
-
$.$mol_after_timeout = $mol_after_timeout;
|
|
2260
|
-
})($ || ($ = {}));
|
|
2261
|
-
//mol/after/timeout/timeout.ts
|
|
2262
|
-
;
|
|
2263
|
-
"use strict";
|
|
2264
|
-
var $;
|
|
2265
2297
|
(function ($) {
|
|
2266
2298
|
class $mol_state_time extends $mol_object {
|
|
2267
2299
|
static task(precision, reset) {
|