aptechka 0.25.1 → 0.26.0
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/lib/Animation-B9m8bw96.cjs +1 -0
- package/lib/Animation-DN95L7Xo.js +105 -0
- package/lib/Damped-CTsV8tl_.cjs +1 -0
- package/lib/Damped-Chu29wn-.js +53 -0
- package/lib/Tweened-BUuSLSF7.js +44 -0
- package/lib/Tweened-BttGiyB0.cjs +1 -0
- package/lib/animation/index.cjs +1 -1
- package/lib/animation/index.js +6 -53
- package/lib/canvas-CU5Xjahf.cjs +1 -0
- package/lib/canvas-DeZ0SLUJ.js +34 -0
- package/lib/connector/index.cjs +1 -1
- package/lib/connector/index.js +1 -1
- package/lib/controls/index.cjs +1 -1
- package/lib/controls/index.js +3 -3
- package/lib/coordinates-CgdGoSYs.js +24 -0
- package/lib/coordinates-D8Np3cPD.cjs +1 -0
- package/lib/css-property/index.cjs +1 -1
- package/lib/css-property/index.js +1 -1
- package/lib/dev/index.cjs +1 -1
- package/lib/dev/index.js +1 -1
- package/lib/device/index.cjs +1 -1
- package/lib/device/index.js +1 -1
- package/lib/element-resizer/react/index.cjs +1 -0
- package/lib/element-resizer/react/index.js +8 -0
- package/lib/element-resizer/vanilla/index.cjs +1 -0
- package/lib/element-resizer/{index.js → vanilla/index.js} +2 -2
- package/lib/en3/index.cjs +8 -0
- package/lib/en3/index.js +374 -0
- package/lib/events-CsVF98U6.js +6 -0
- package/lib/events-KVanG9sR.cjs +1 -0
- package/lib/intersector/react/index.cjs +1 -0
- package/lib/intersector/react/index.js +12 -0
- package/lib/intersector/vanilla/index.cjs +1 -0
- package/lib/intersector/{index.js → vanilla/index.js} +2 -2
- package/lib/jss-CjccJC-K.js +21 -0
- package/lib/jss-GJLvaNfT.cjs +1 -0
- package/lib/layout-box/index.cjs +1 -1
- package/lib/layout-box/index.js +3 -3
- package/lib/loading/index.cjs +1 -1
- package/lib/loading/index.js +42 -85
- package/lib/math-BOBiC4TN.js +45 -0
- package/lib/math-GDWEqu7y.cjs +1 -0
- package/lib/media/index.cjs +1 -1
- package/lib/media/index.js +1 -1
- package/lib/media-elements/index.cjs +5 -0
- package/lib/media-elements/index.js +389 -0
- package/lib/morph/index.cjs +1 -0
- package/lib/morph/index.js +227 -0
- package/lib/need_redo_tweaker/index.cjs +4 -4
- package/lib/need_redo_tweaker/index.js +100 -82
- package/lib/object-CCiXnER2.cjs +1 -0
- package/lib/object-D6MVWB4l.js +85 -0
- package/lib/pointer/index.cjs +1 -0
- package/lib/pointer/index.js +151 -0
- package/lib/polyfills-CM4SCDTt.cjs +1 -0
- package/lib/polyfills-X6KXuHg-.js +33 -0
- package/lib/router/index.cjs +1 -0
- package/lib/router/index.js +266 -0
- package/lib/scroll/react/index.cjs +30 -0
- package/lib/scroll/react/index.js +761 -0
- package/lib/scroll/vanilla/index.cjs +1 -0
- package/lib/scroll/vanilla/index.js +1120 -0
- package/lib/slicer/index.cjs +11 -0
- package/lib/slicer/index.js +108 -0
- package/lib/source/index.cjs +1 -1
- package/lib/source/index.js +1 -1
- package/lib/style-BqzUd8Fy.cjs +1 -0
- package/lib/style-M-RBTQxT.js +21 -0
- package/lib/ticker/react/index.cjs +1 -0
- package/lib/ticker/react/index.js +19 -0
- package/lib/ticker/vanilla/index.cjs +1 -0
- package/lib/ticker/{index.js → vanilla/index.js} +2 -2
- package/lib/url-BDc0awLa.js +22 -0
- package/lib/url-C3Vj8msL.cjs +1 -0
- package/lib/utils/index.cjs +1 -1
- package/lib/utils/index.js +146 -220
- package/lib/window-resizer/react/index.cjs +1 -0
- package/lib/window-resizer/react/index.js +8 -0
- package/lib/window-resizer/vanilla/index.cjs +1 -0
- package/lib/window-resizer/vanilla/index.js +32 -0
- package/package.json +132 -20
- package/lib/Tweened-CDYmG9hk.js +0 -138
- package/lib/Tweened-DlyMbHu_.cjs +0 -1
- package/lib/animation/Animation.d.ts +0 -34
- package/lib/animation/Damped.d.ts +0 -18
- package/lib/animation/Tweened.d.ts +0 -14
- package/lib/animation/index.d.ts +0 -3
- package/lib/attribute/index.d.ts +0 -14
- package/lib/class-linked-status/index.d.ts +0 -11
- package/lib/connector/index.d.ts +0 -15
- package/lib/controls/AutoplayControls.d.ts +0 -16
- package/lib/controls/Controls.d.ts +0 -8
- package/lib/controls/DragControls.d.ts +0 -15
- package/lib/controls/KeyboardControls.d.ts +0 -13
- package/lib/controls/WheelControls.d.ts +0 -18
- package/lib/controls/index.d.ts +0 -5
- package/lib/css-property/index.d.ts +0 -16
- package/lib/css-unit-parser/index.d.ts +0 -6
- package/lib/css-value-parser/index.d.ts +0 -6
- package/lib/dev/index.d.ts +0 -1
- package/lib/device/Device.d.ts +0 -16
- package/lib/device/Viewport.d.ts +0 -28
- package/lib/device/index.d.ts +0 -2
- package/lib/element-resizer/index.cjs +0 -1
- package/lib/element-resizer/index.d.ts +0 -9
- package/lib/intersector/index.cjs +0 -1
- package/lib/intersector/index.d.ts +0 -9
- package/lib/ladder/index.d.ts +0 -23
- package/lib/layout-box/index.d.ts +0 -95
- package/lib/loading/index.d.ts +0 -38
- package/lib/media/index.d.ts +0 -11
- package/lib/need_redo_tweaker/CheckboxElement.d.ts +0 -14
- package/lib/need_redo_tweaker/TweakerBooleanManagerElement.d.ts +0 -10
- package/lib/need_redo_tweaker/TweakerColorManagerElement.d.ts +0 -10
- package/lib/need_redo_tweaker/TweakerElement.d.ts +0 -17
- package/lib/need_redo_tweaker/TweakerFieldElement.d.ts +0 -19
- package/lib/need_redo_tweaker/TweakerFolderElement.d.ts +0 -23
- package/lib/need_redo_tweaker/TweakerLinkManagerElement.d.ts +0 -10
- package/lib/need_redo_tweaker/TweakerNumberManagerElement.d.ts +0 -13
- package/lib/need_redo_tweaker/TweakerSelectManagerElement.d.ts +0 -10
- package/lib/need_redo_tweaker/TweakerStoreManagerElement.d.ts +0 -9
- package/lib/need_redo_tweaker/TweakerStringManagerElement.d.ts +0 -10
- package/lib/need_redo_tweaker/element-constructor/ElementConstructor.d.ts +0 -74
- package/lib/need_redo_tweaker/element-constructor/createStylesheet.d.ts +0 -2
- package/lib/need_redo_tweaker/element-constructor/createTheme.d.ts +0 -12
- package/lib/need_redo_tweaker/element-constructor/index.d.ts +0 -4
- package/lib/need_redo_tweaker/element-constructor/knownSvgTags.d.ts +0 -1
- package/lib/need_redo_tweaker/element-constructor/tags.d.ts +0 -118
- package/lib/need_redo_tweaker/index.d.ts +0 -1
- package/lib/need_redo_tweaker/select/SelectElement.d.ts +0 -24
- package/lib/need_redo_tweaker/select/SelectHeadElement.d.ts +0 -12
- package/lib/need_redo_tweaker/select/SelectOptionElement.d.ts +0 -13
- package/lib/need_redo_tweaker/select/SelectUserElement.d.ts +0 -6
- package/lib/need_redo_tweaker/select/index.d.ts +0 -4
- package/lib/need_redo_tweaker/theme/index.d.ts +0 -35
- package/lib/need_redo_tweaker/tweakerManagerConstructors.d.ts +0 -14
- package/lib/need_redo_tweaker/tweakerStorage.d.ts +0 -23
- package/lib/notifier/index.d.ts +0 -8
- package/lib/order/index.d.ts +0 -22
- package/lib/polyfills-AItxku8u.js +0 -76
- package/lib/polyfills-Caa6z-Ay.cjs +0 -1
- package/lib/scroll-entries/index.d.ts +0 -20
- package/lib/source/SourceClass.d.ts +0 -11
- package/lib/source/SourceManager.d.ts +0 -13
- package/lib/source/SourceSet.d.ts +0 -8
- package/lib/source/index.d.ts +0 -3
- package/lib/store/Composed.d.ts +0 -7
- package/lib/store/Derived.d.ts +0 -7
- package/lib/store/DerivedArray.d.ts +0 -7
- package/lib/store/Resource.d.ts +0 -11
- package/lib/store/Store.d.ts +0 -35
- package/lib/store/StoreRegistry.d.ts +0 -22
- package/lib/store/index.d.ts +0 -6
- package/lib/style-3MQV6Cnl.js +0 -122
- package/lib/style-BoXabX_p.cjs +0 -1
- package/lib/ticker/index.cjs +0 -1
- package/lib/ticker/index.d.ts +0 -21
- package/lib/utils/array.d.ts +0 -2
- package/lib/utils/attributes.d.ts +0 -2
- package/lib/utils/browser.d.ts +0 -1
- package/lib/utils/bytes.d.ts +0 -1
- package/lib/utils/canvas.d.ts +0 -7
- package/lib/utils/collisions.d.ts +0 -3
- package/lib/utils/coordinates.d.ts +0 -13
- package/lib/utils/cssom.d.ts +0 -5
- package/lib/utils/decoding.d.ts +0 -2
- package/lib/utils/dom.d.ts +0 -5
- package/lib/utils/easings.d.ts +0 -17
- package/lib/utils/events.d.ts +0 -8
- package/lib/utils/file.d.ts +0 -1
- package/lib/utils/function.d.ts +0 -2
- package/lib/utils/gestures.d.ts +0 -1
- package/lib/utils/index.d.ts +0 -27
- package/lib/utils/jss.d.ts +0 -12
- package/lib/utils/layout.d.ts +0 -3
- package/lib/utils/math.d.ts +0 -11
- package/lib/utils/number.d.ts +0 -3
- package/lib/utils/object.d.ts +0 -9
- package/lib/utils/polyfills.d.ts +0 -1
- package/lib/utils/promises.d.ts +0 -1
- package/lib/utils/string.d.ts +0 -8
- package/lib/utils/style.d.ts +0 -2
- package/lib/utils/ts-shape.d.ts +0 -20
- package/lib/utils/ts-utility.d.ts +0 -26
- package/lib/utils/url.d.ts +0 -9
- package/lib/window-resizer/index.cjs +0 -1
- package/lib/window-resizer/index.d.ts +0 -9
- package/lib/window-resizer/index.js +0 -42
package/lib/utils/index.js
CHANGED
|
@@ -1,30 +1,36 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import { i as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { d as
|
|
7
|
-
import {
|
|
8
|
-
import { c as
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
1
|
+
import { a as b, p as y } from "../attributes-69we3byR.js";
|
|
2
|
+
import { i as w } from "../browser-0zX67oeU.js";
|
|
3
|
+
import { a as S, c as O, f as B, m as I } from "../canvas-DeZ0SLUJ.js";
|
|
4
|
+
import { g as P, n as v, s as A } from "../coordinates-CgdGoSYs.js";
|
|
5
|
+
import { f as D, b as M, a as R, g as k } from "../dom-0S_WDL4g.js";
|
|
6
|
+
import { c as j, n as N, f as V, p as U, b as $, i as F, m as K, e as W, g as q, j as G, d as H, o as J, a as L, h as Y, k as Z, l as X } from "../easings-BKi40vHz.js";
|
|
7
|
+
import { d as ee } from "../events-CsVF98U6.js";
|
|
8
|
+
import { c as te, a as se, g as oe } from "../style-M-RBTQxT.js";
|
|
9
|
+
import { d as re, t as ie } from "../function-C10DGppn.js";
|
|
10
|
+
import { s as ue } from "../gestures-D2Fdra_G.js";
|
|
11
|
+
import { c as fe, s as pe } from "../jss-CjccJC-K.js";
|
|
12
|
+
import { g as de, a as xe, b as ge } from "../layout-HoBT_Da2.js";
|
|
13
|
+
import { e as be, f as ye, c as Ce, d as we, l as Ee, m as Se, r as Oe, b as Be, a as Ie, s as Te } from "../math-BOBiC4TN.js";
|
|
14
|
+
import { n as ve, p as Ae, r as Qe, t as De } from "../polyfills-X6KXuHg-.js";
|
|
15
|
+
import { c as Re, d as ke, i as ze, b as je, a as Ne, m as Ve, e as Ue, o as $e, p as Fe } from "../object-D6MVWB4l.js";
|
|
16
|
+
import { c as We, a as qe, g as Ge, i as He, k as Je, s as Le, t as Ye, u as Ze } from "../string-f0Dnk0L1.js";
|
|
17
|
+
import { c as _e, n as ea, s as aa } from "../url-BDc0awLa.js";
|
|
18
|
+
function i(a, e, ...t) {
|
|
19
|
+
return [...a.slice(0, e), ...t, ...a.slice(e)];
|
|
20
|
+
}
|
|
21
|
+
function c(a, e) {
|
|
22
|
+
const t = a.length;
|
|
23
|
+
e = e % t;
|
|
24
|
+
const s = new Array(t);
|
|
25
|
+
for (let o = 0; o < t; o++) {
|
|
26
|
+
const n = (o + e) % t;
|
|
27
|
+
s[n] = a[o];
|
|
22
28
|
}
|
|
23
|
-
return
|
|
29
|
+
return s;
|
|
24
30
|
}
|
|
25
|
-
function
|
|
26
|
-
if (!+
|
|
27
|
-
const
|
|
31
|
+
function u(a, e = 2) {
|
|
32
|
+
if (!+a) return "0 Bytes";
|
|
33
|
+
const t = 1024, s = e < 0 ? 0 : e, o = [
|
|
28
34
|
"Bytes",
|
|
29
35
|
"KiB",
|
|
30
36
|
"MiB",
|
|
@@ -34,214 +40,134 @@ function x(e, t = 2) {
|
|
|
34
40
|
"EiB",
|
|
35
41
|
"ZiB",
|
|
36
42
|
"YiB"
|
|
37
|
-
],
|
|
38
|
-
return `${parseFloat((
|
|
39
|
-
}
|
|
40
|
-
function S(e, t) {
|
|
41
|
-
const s = e.measureText(t), n = s.actualBoundingBoxAscent + s.actualBoundingBoxDescent, a = s.width;
|
|
42
|
-
return {
|
|
43
|
-
height: n,
|
|
44
|
-
width: a
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
function w(e) {
|
|
48
|
-
return Math.floor(e) + 0.5;
|
|
49
|
-
}
|
|
50
|
-
function C(e, t, s, n, a, o) {
|
|
51
|
-
let i = e / t, l = s / n, r = 0, u = 0;
|
|
52
|
-
return a = typeof a == "undefined" ? 0.5 : a, o = typeof o == "undefined" ? 0.5 : o, i > l ? (r = n, u = n * i) : (u = s, r = s / i), [
|
|
53
|
-
(s - u) * a,
|
|
54
|
-
(n - r) * o,
|
|
55
|
-
u,
|
|
56
|
-
r
|
|
57
|
-
];
|
|
58
|
-
}
|
|
59
|
-
function B(e, t, s, n, a, o) {
|
|
60
|
-
let i = e / t, l = s / n, r = 0, u = 0;
|
|
61
|
-
return a = typeof a == "undefined" ? 0.5 : a, o = typeof o == "undefined" ? 0.5 : o, i > l ? (u = s, r = s / i) : (r = n, u = n * i), [
|
|
62
|
-
(s - u) * a,
|
|
63
|
-
(n - r) * o,
|
|
64
|
-
u,
|
|
65
|
-
r
|
|
66
|
-
];
|
|
67
|
-
}
|
|
68
|
-
function E(e, t) {
|
|
69
|
-
return e.x < t.x + t.width && e.x > t.x && e.y < t.y + t.height && e.y > t.y;
|
|
70
|
-
}
|
|
71
|
-
function O(e, t) {
|
|
72
|
-
return Math.sqrt((e.x - t.x) ** 2 + (e.y - t.y) ** 2) < t.radius;
|
|
73
|
-
}
|
|
74
|
-
function b(e, t, s = !1) {
|
|
75
|
-
let n = e.x - t.width / 2, a = t.height / 2 - e.y;
|
|
76
|
-
return s && (n = n / (t.width / 2), a = a / (t.height / 2)), { x: n, y: a };
|
|
43
|
+
], n = Math.floor(Math.log(a) / Math.log(t));
|
|
44
|
+
return `${parseFloat((a / Math.pow(t, n)).toFixed(s))} ${o[n]}`;
|
|
77
45
|
}
|
|
78
|
-
function
|
|
79
|
-
|
|
80
|
-
return { x: s, y: n };
|
|
46
|
+
function l(a, e) {
|
|
47
|
+
return a.x < e.x + e.width && a.x > e.x && a.y < e.y + e.height && a.y > e.y;
|
|
81
48
|
}
|
|
82
|
-
function
|
|
83
|
-
return
|
|
84
|
-
x: 0,
|
|
85
|
-
y: 0,
|
|
86
|
-
width: document.documentElement.offsetWidth,
|
|
87
|
-
height: innerHeight
|
|
88
|
-
}, {
|
|
89
|
-
x: (e.x - t.x) / t.width * t.width,
|
|
90
|
-
y: (e.y - t.y) / t.height * t.height
|
|
91
|
-
};
|
|
49
|
+
function f(a, e) {
|
|
50
|
+
return Math.sqrt((a.x - e.x) ** 2 + (a.y - e.y) ** 2) < e.radius;
|
|
92
51
|
}
|
|
93
|
-
function
|
|
94
|
-
const
|
|
95
|
-
if (
|
|
96
|
-
const
|
|
97
|
-
return
|
|
52
|
+
function r(a, e) {
|
|
53
|
+
const t = a.styleMap.get(e);
|
|
54
|
+
if (t) {
|
|
55
|
+
const s = t.toString();
|
|
56
|
+
return s.startsWith("var") ? r(a, s.slice(4, -1)) : s;
|
|
98
57
|
}
|
|
99
58
|
}
|
|
100
|
-
function
|
|
101
|
-
const
|
|
102
|
-
return Array.from(document.styleSheets).forEach((
|
|
103
|
-
Array.from(
|
|
104
|
-
|
|
105
|
-
const
|
|
106
|
-
|
|
59
|
+
function p(...a) {
|
|
60
|
+
const e = {};
|
|
61
|
+
return Array.from(document.styleSheets).forEach((t) => {
|
|
62
|
+
Array.from(t.cssRules).forEach((s) => {
|
|
63
|
+
s instanceof CSSStyleRule && s.selectorText === ":root" && a.forEach((o) => {
|
|
64
|
+
const n = r(s, o);
|
|
65
|
+
n && (e[o] = n);
|
|
107
66
|
});
|
|
108
67
|
});
|
|
109
|
-
}),
|
|
110
|
-
t
|
|
111
|
-
}),
|
|
68
|
+
}), a.forEach((t) => {
|
|
69
|
+
e[t] || console.warn(`variable named ${t} not found`);
|
|
70
|
+
}), e;
|
|
112
71
|
}
|
|
113
|
-
function
|
|
114
|
-
const
|
|
115
|
-
return decodeURIComponent(window.escape(
|
|
72
|
+
function m(a) {
|
|
73
|
+
const e = window.atob(a);
|
|
74
|
+
return decodeURIComponent(window.escape(e));
|
|
116
75
|
}
|
|
117
|
-
function
|
|
118
|
-
const
|
|
119
|
-
return window.btoa(
|
|
76
|
+
function d(a) {
|
|
77
|
+
const e = window.unescape(encodeURIComponent(a));
|
|
78
|
+
return window.btoa(e);
|
|
120
79
|
}
|
|
121
|
-
function
|
|
122
|
-
|
|
123
|
-
for (const s in e) {
|
|
124
|
-
const n = e[s];
|
|
125
|
-
typeof n == "object" ? (t += `${s} {`, t += h(n), t += "}") : t += `${p(s)}: ${n};`;
|
|
126
|
-
}
|
|
127
|
-
return t;
|
|
128
|
-
}
|
|
129
|
-
function M(e) {
|
|
130
|
-
if (f) {
|
|
131
|
-
const t = new CSSStyleSheet();
|
|
132
|
-
return t.replaceSync(h(e)), t;
|
|
133
|
-
}
|
|
134
|
-
return null;
|
|
135
|
-
}
|
|
136
|
-
function Q(e) {
|
|
137
|
-
return new Promise((t) => {
|
|
80
|
+
function x(a) {
|
|
81
|
+
return new Promise((e) => {
|
|
138
82
|
setTimeout(() => {
|
|
139
|
-
|
|
140
|
-
},
|
|
83
|
+
e();
|
|
84
|
+
}, a);
|
|
141
85
|
});
|
|
142
86
|
}
|
|
143
|
-
function $(e, t = "") {
|
|
144
|
-
t = t.endsWith("/") ? t.slice(0, -1) : t, e = e.replace(t, ""), e.startsWith("/") && (e = e.slice(1));
|
|
145
|
-
const s = e.split("#"), n = s[0].split("?"), a = n[0].startsWith("/") ? n[0] : "/" + n[0], o = t + a, i = n == null ? void 0 : n[1], l = s == null ? void 0 : s[1];
|
|
146
|
-
return {
|
|
147
|
-
leaf: a,
|
|
148
|
-
pathname: o,
|
|
149
|
-
parameters: i,
|
|
150
|
-
hash: l
|
|
151
|
-
};
|
|
152
|
-
}
|
|
153
|
-
function k(e = "/") {
|
|
154
|
-
return e.endsWith("/") || (e += "/"), e.startsWith("/") || (e += "/"), e;
|
|
155
|
-
}
|
|
156
|
-
function T(e, t, s, n) {
|
|
157
|
-
const a = s || location.search, o = n ? n.startsWith("#") ? n : "#" + n : "", i = a ? a.startsWith("?") ? a : "?" + a : "", l = `${t}${o}${i}`;
|
|
158
|
-
e === "push" ? history.pushState(null, "", l) : e === "replace" && history.replaceState(null, "", l);
|
|
159
|
-
}
|
|
160
87
|
export {
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
mt as getElementTransitionDurationS,
|
|
88
|
+
be as calculateDistance,
|
|
89
|
+
ye as calculateDistanceWithRadius,
|
|
90
|
+
We as camelToKebab,
|
|
91
|
+
qe as capitalize,
|
|
92
|
+
_e as changeHistory,
|
|
93
|
+
Ce as clamp,
|
|
94
|
+
Re as cloneDeep,
|
|
95
|
+
ke as compareObjects,
|
|
96
|
+
S as contain,
|
|
97
|
+
O as cover,
|
|
98
|
+
te as createJSONAndSave,
|
|
99
|
+
fe as createStylesheet,
|
|
100
|
+
we as damp,
|
|
101
|
+
re as debounce,
|
|
102
|
+
d as decode,
|
|
103
|
+
ee as dispatchEvent,
|
|
104
|
+
f as dotCircleCollision,
|
|
105
|
+
l as dotRectCollision,
|
|
106
|
+
j as easeInCubic,
|
|
107
|
+
N as easeInExpo,
|
|
108
|
+
V as easeInOutCubic,
|
|
109
|
+
U as easeInOutExpo,
|
|
110
|
+
$ as easeInOutQuad,
|
|
111
|
+
F as easeInOutQuart,
|
|
112
|
+
K as easeInOutQuint,
|
|
113
|
+
W as easeInQuad,
|
|
114
|
+
q as easeInQuart,
|
|
115
|
+
G as easeInQuint,
|
|
116
|
+
H as easeOutCubic,
|
|
117
|
+
J as easeOutExpo,
|
|
118
|
+
L as easeOutQuad,
|
|
119
|
+
Y as easeOutQuart,
|
|
120
|
+
Z as easeOutQuint,
|
|
121
|
+
m as encode,
|
|
122
|
+
D as findParentElement,
|
|
123
|
+
M as findScrollParentElement,
|
|
124
|
+
B as fixPosition,
|
|
125
|
+
u as formatBytes,
|
|
126
|
+
Ge as generateId,
|
|
127
|
+
R as getAllParentElements,
|
|
128
|
+
de as getCumulativeOffsetLeft,
|
|
129
|
+
xe as getCumulativeOffsetTop,
|
|
130
|
+
ge as getCumulativePosition,
|
|
131
|
+
k as getElement,
|
|
132
|
+
se as getElementTransitionDurationMS,
|
|
133
|
+
oe as getElementTransitionDurationS,
|
|
208
134
|
P as getPointerPosition,
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
135
|
+
p as getRootVariables,
|
|
136
|
+
i as insert,
|
|
137
|
+
w as isBrowser,
|
|
138
|
+
ze as isESClass,
|
|
139
|
+
je as isNullish,
|
|
140
|
+
Ne as isObject,
|
|
141
|
+
He as isUppercase,
|
|
142
|
+
Je as kebabToCamel,
|
|
143
|
+
Ee as lerp,
|
|
144
|
+
X as linear,
|
|
145
|
+
Se as mapRange,
|
|
146
|
+
I as measureText,
|
|
147
|
+
Ve as mergeDeep,
|
|
148
|
+
Ue as mixin,
|
|
149
|
+
v as normalize,
|
|
150
|
+
ea as normalizeBase,
|
|
151
|
+
ve as nullishCoalescing,
|
|
152
|
+
$e as omit,
|
|
153
|
+
b as parseAttribute,
|
|
154
|
+
y as parseAttributeValue,
|
|
155
|
+
Fe as pick,
|
|
156
|
+
Ae as preciseNumber,
|
|
157
|
+
Oe as round,
|
|
158
|
+
Qe as roundNumberTo,
|
|
159
|
+
A as screenToCartesian,
|
|
160
|
+
ue as setupDrag,
|
|
161
|
+
c as shiftArray,
|
|
162
|
+
Be as smootherstep,
|
|
163
|
+
Ie as smoothstep,
|
|
164
|
+
Le as snakeToDotted,
|
|
165
|
+
aa as splitPath,
|
|
166
|
+
Te as step,
|
|
167
|
+
pe as styleToString,
|
|
168
|
+
ie as throttle,
|
|
169
|
+
Ye as toPascalCase,
|
|
170
|
+
De as toStep,
|
|
171
|
+
Ze as uncapitalize,
|
|
172
|
+
x as wait
|
|
247
173
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react"),n=require("../vanilla/index.cjs");function s([e,i]){r.useEffect(()=>n.windowResizer.subscribe(e,i),[e,i])}exports.useWindowResizer=s;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var w=e=>{throw TypeError(e)};var f=(e,i,s)=>i.has(e)||w("Cannot "+s);var t=(e,i,s)=>(f(e,i,"read from private field"),s?s.call(e):i.get(e)),u=(e,i,s)=>i.has(e)?w("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(e):i.set(e,s),c=(e,i,s,o)=>(f(e,i,"write to private field"),o?o.call(e,s):i.set(e,s),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const z=require("../../notifier/index.cjs"),l=require("../../browser-CpzFX2xg.cjs"),R=require("../../function-MthRj-GJ.cjs");var r,n,d;class h extends z.Notifier{constructor(){super();u(this,r,!1);u(this,n,()=>{t(this,r)||(c(this,r,!0),t(this,d).call(this))});u(this,d,R.debounce(()=>{this.notify(),c(this,r,!1)},0));l.isBrowser&&(window.addEventListener("resize",t(this,n)),t(this,n).call(this))}subscribe(s,o){const b=super.subscribe(s,o);return t(this,r)||s(),b}}r=new WeakMap,n=new WeakMap,d=new WeakMap;const a=new h;exports.WindowResizer=h;exports.windowResizer=a;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
var h = (s) => {
|
|
2
|
+
throw TypeError(s);
|
|
3
|
+
};
|
|
4
|
+
var c = (s, e, i) => e.has(s) || h("Cannot " + i);
|
|
5
|
+
var t = (s, e, i) => (c(s, e, "read from private field"), i ? i.call(s) : e.get(s)), u = (s, e, i) => e.has(s) ? h("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(s) : e.set(s, i), f = (s, e, i, n) => (c(s, e, "write to private field"), n ? n.call(s, i) : e.set(s, i), i);
|
|
6
|
+
import { Notifier as m } from "../../notifier/index.js";
|
|
7
|
+
import { i as p } from "../../browser-0zX67oeU.js";
|
|
8
|
+
import { d as z } from "../../function-C10DGppn.js";
|
|
9
|
+
var r, o, d;
|
|
10
|
+
class b extends m {
|
|
11
|
+
constructor() {
|
|
12
|
+
super();
|
|
13
|
+
u(this, r, !1);
|
|
14
|
+
u(this, o, () => {
|
|
15
|
+
t(this, r) || (f(this, r, !0), t(this, d).call(this));
|
|
16
|
+
});
|
|
17
|
+
u(this, d, z(() => {
|
|
18
|
+
this.notify(), f(this, r, !1);
|
|
19
|
+
}, 0));
|
|
20
|
+
p && (window.addEventListener("resize", t(this, o)), t(this, o).call(this));
|
|
21
|
+
}
|
|
22
|
+
subscribe(i, n) {
|
|
23
|
+
const w = super.subscribe(i, n);
|
|
24
|
+
return t(this, r) || i(), w;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
r = new WeakMap(), o = new WeakMap(), d = new WeakMap();
|
|
28
|
+
const L = new b();
|
|
29
|
+
export {
|
|
30
|
+
b as WindowResizer,
|
|
31
|
+
L as windowResizer
|
|
32
|
+
};
|