aptechka 0.25.1 → 0.25.2
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/need_redo_tweaker/index.cjs +4 -4
- package/lib/need_redo_tweaker/index.js +96 -80
- package/lib/{style-3MQV6Cnl.js → style-B2GS6rev.js} +19 -37
- package/lib/style-qftK_UJp.cjs +1 -0
- package/lib/utils/index.cjs +1 -1
- package/lib/utils/index.js +87 -85
- package/package.json +1 -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.d.ts +0 -9
- 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/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-BoXabX_p.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.d.ts +0 -9
package/lib/utils/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("../attributes-Bf2svn4j.cjs"),S=require("../browser-CpzFX2xg.cjs"),m=require("../dom-JBOkFLTh.cjs"),a=require("../easings-DsS5-Kqc.cjs"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("../attributes-Bf2svn4j.cjs"),S=require("../browser-CpzFX2xg.cjs"),m=require("../dom-JBOkFLTh.cjs"),a=require("../easings-DsS5-Kqc.cjs"),u=require("../style-qftK_UJp.cjs"),C=require("../function-MthRj-GJ.cjs"),w=require("../gestures-DHLrn6Q8.cjs"),p=require("../string-DhgS_iFl.cjs"),f=require("../layout-8ryRAMGJ.cjs"),r=require("../polyfills-Caa6z-Ay.cjs");function x(t,e,...n){return[...t.slice(0,e),...n,...t.slice(e)]}function O(t,e){const n=t.length;e=e%n;const s=new Array(n);for(let i=0;i<n;i++){const o=(i+e)%n;s[o]=t[i]}return s}function b(t,e=2){if(!+t)return"0 Bytes";const n=1024,s=e<0?0:e,i=["Bytes","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],o=Math.floor(Math.log(t)/Math.log(n));return`${parseFloat((t/Math.pow(n,o)).toFixed(s))} ${i[o]}`}function I(t,e){const n=t.measureText(e),s=n.actualBoundingBoxAscent+n.actualBoundingBoxDescent,i=n.width;return{height:s,width:i}}function P(t){return Math.floor(t)+.5}function B(t,e,n,s,i,o){let l=t/e,h=n/s,c=0,d=0;return i=typeof i=="undefined"?.5:i,o=typeof o=="undefined"?.5:o,l>h?(c=s,d=s*l):(d=n,c=n/l),[(n-d)*i,(s-c)*o,d,c]}function T(t,e,n,s,i,o){let l=t/e,h=n/s,c=0,d=0;return i=typeof i=="undefined"?.5:i,o=typeof o=="undefined"?.5:o,l>h?(d=n,c=n/l):(c=s,d=s*l),[(n-d)*i,(s-c)*o,d,c]}function Q(t,e){return t.x<e.x+e.width&&t.x>e.x&&t.y<e.y+e.height&&t.y>e.y}function D(t,e){return Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2)<e.radius}function v(t,e,n=!1){let s=t.x-e.width/2,i=e.height/2-t.y;return n&&(s=s/(e.width/2),i=i/(e.height/2)),{x:s,y:i}}function R(t,e){const n=t.x/e.width,s=t.y/e.height;return{x:n,y:s}}function A(t,e){return e=e||{x:0,y:0,width:document.documentElement.offsetWidth,height:innerHeight},{x:(t.x-e.x)/e.width*e.width,y:(t.y-e.y)/e.height*e.height}}function E(t,e){const n=t.styleMap.get(e);if(n){const s=n.toString();return s.startsWith("var")?E(t,s.slice(4,-1)):s}}function q(...t){const e={};return Array.from(document.styleSheets).forEach(n=>{Array.from(n.cssRules).forEach(s=>{s instanceof CSSStyleRule&&s.selectorText===":root"&&t.forEach(i=>{const o=E(s,i);o&&(e[i]=o)})})}),t.forEach(n=>{e[n]||console.warn(`variable named ${n} not found`)}),e}function M(t){const e=window.atob(t);return decodeURIComponent(window.escape(e))}function $(t){const e=window.unescape(encodeURIComponent(t));return window.btoa(e)}function k(t,e,n){n!=null&&n.custom?t.dispatchEvent(new CustomEvent(e,n)):t.dispatchEvent(new Event(e,n))}function g(t){let e="";for(const n in t){const s=t[n];typeof s=="object"?(e+=`${n} {`,e+=g(s),e+="}"):e+=`${p.camelToKebab(n)}: ${s};`}return e}function z(t){if(S.isBrowser){const e=new CSSStyleSheet;return e.replaceSync(g(t)),e}return null}function N(t){return new Promise(e=>{setTimeout(()=>{e()},t)})}function W(t,e=""){e=e.endsWith("/")?e.slice(0,-1):e,t=t.replace(e,""),t.startsWith("/")&&(t=t.slice(1));const n=t.split("#"),s=n[0].split("?"),i=s[0].startsWith("/")?s[0]:"/"+s[0],o=e+i,l=s==null?void 0:s[1],h=n==null?void 0:n[1];return{leaf:i,pathname:o,parameters:l,hash:h}}function j(t="/"){return t.endsWith("/")||(t+="/"),t.startsWith("/")||(t+="/"),t}function V(t,e,n,s){const i=n||location.search,o=s?s.startsWith("#")?s:"#"+s:"",l=i?i.startsWith("?")?i:"?"+i:"",h=`${e}${o}${l}`;t==="push"?history.pushState(null,"",h):t==="replace"&&history.replaceState(null,"",h)}exports.parseAttribute=y.parseAttribute;exports.parseAttributeValue=y.parseAttributeValue;exports.isBrowser=S.isBrowser;exports.findParentElement=m.findParentElement;exports.findScrollParentElement=m.findScrollParentElement;exports.getAllParentElements=m.getAllParentElements;exports.getElement=m.getElement;exports.easeInCubic=a.easeInCubic;exports.easeInExpo=a.easeInExpo;exports.easeInOutCubic=a.easeInOutCubic;exports.easeInOutExpo=a.easeInOutExpo;exports.easeInOutQuad=a.easeInOutQuad;exports.easeInOutQuart=a.easeInOutQuart;exports.easeInOutQuint=a.easeInOutQuint;exports.easeInQuad=a.easeInQuad;exports.easeInQuart=a.easeInQuart;exports.easeInQuint=a.easeInQuint;exports.easeOutCubic=a.easeOutCubic;exports.easeOutExpo=a.easeOutExpo;exports.easeOutQuad=a.easeOutQuad;exports.easeOutQuart=a.easeOutQuart;exports.easeOutQuint=a.easeOutQuint;exports.linear=a.linear;exports.cloneDeep=u.cloneDeep;exports.compareObjects=u.compareObjects;exports.createJSONAndSave=u.createJSONAndSave;exports.getElementTransitionDurationMS=u.getElementTransitionDurationMS;exports.getElementTransitionDurationS=u.getElementTransitionDurationS;exports.isESClass=u.isESClass;exports.isNullish=u.isNullish;exports.isObject=u.isObject;exports.mergeDeep=u.mergeDeep;exports.mixin=u.mixin;exports.omit=u.omit;exports.pick=u.pick;exports.debounce=C.debounce;exports.throttle=C.throttle;exports.setupDrag=w.setupDrag;exports.camelToKebab=p.camelToKebab;exports.capitalize=p.capitalize;exports.generateId=p.generateId;exports.isUppercase=p.isUppercase;exports.kebabToCamel=p.kebabToCamel;exports.snakeToDotted=p.snakeToDotted;exports.toPascalCase=p.toPascalCase;exports.uncapitalize=p.uncapitalize;exports.getCumulativeOffsetLeft=f.getCumulativeOffsetLeft;exports.getCumulativeOffsetTop=f.getCumulativeOffsetTop;exports.getCumulativePosition=f.getCumulativePosition;exports.calculateDistance=r.calculateDistance;exports.calculateDistanceWithRadius=r.calculateDistanceWithRadius;exports.clamp=r.clamp;exports.damp=r.damp;exports.lerp=r.lerp;exports.mapRange=r.mapRange;exports.nullishCoalescing=r.nullishCoalescing;exports.preciseNumber=r.preciseNumber;exports.round=r.round;exports.roundNumberTo=r.roundNumberTo;exports.smootherstep=r.smootherstep;exports.smoothstep=r.smoothstep;exports.step=r.step;exports.toStep=r.toStep;exports.changeHistory=V;exports.contain=T;exports.cover=B;exports.createStylesheet=z;exports.decode=$;exports.dispatchEvent=k;exports.dotCircleCollision=D;exports.dotRectCollision=Q;exports.encode=M;exports.fixPosition=P;exports.formatBytes=b;exports.getPointerPosition=A;exports.getRootVariables=q;exports.insert=x;exports.measureText=I;exports.normalize=R;exports.normalizeBase=j;exports.screenToCartesian=v;exports.shiftArray=O;exports.splitPath=W;exports.styleToString=g;exports.wait=N;
|
package/lib/utils/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { a as
|
|
1
|
+
import { a as z, p as N } from "../attributes-69we3byR.js";
|
|
2
2
|
import { i as f } from "../browser-0zX67oeU.js";
|
|
3
|
-
import { f as
|
|
4
|
-
import { c as
|
|
5
|
-
import {
|
|
6
|
-
import { d as
|
|
7
|
-
import { s as
|
|
3
|
+
import { f as U, b as F, a as K, g as q } from "../dom-0S_WDL4g.js";
|
|
4
|
+
import { c as J, n as Y, f as Z, p as X, b as _, i as H, m as L, e as tt, g as et, j as st, d as nt, o as at, a as ot, h as it, k as rt, l as ut } from "../easings-BKi40vHz.js";
|
|
5
|
+
import { a as ct, d as ht, c as ft, h as pt, g as dt, e as mt, b as gt, i as yt, m as xt, f as wt, o as St, p as Et } from "../style-B2GS6rev.js";
|
|
6
|
+
import { d as Bt, t as Ot } from "../function-C10DGppn.js";
|
|
7
|
+
import { s as It } from "../gestures-D2Fdra_G.js";
|
|
8
8
|
import { c as p } from "../string-f0Dnk0L1.js";
|
|
9
|
-
import { a as
|
|
10
|
-
import { g as
|
|
11
|
-
import { e as
|
|
9
|
+
import { a as Rt, g as At, i as vt, k as Dt, s as Mt, t as Qt, u as $t } from "../string-f0Dnk0L1.js";
|
|
10
|
+
import { g as kt, a as Wt, b as jt } from "../layout-HoBT_Da2.js";
|
|
11
|
+
import { e as Nt, f as Vt, c as Ut, d as Ft, l as Kt, m as qt, n as Gt, p as Jt, r as Yt, g as Zt, b as Xt, a as _t, s as Ht, t as Lt } from "../polyfills-AItxku8u.js";
|
|
12
12
|
function g(e, t, ...s) {
|
|
13
13
|
return [...e.slice(0, t), ...s, ...e.slice(t)];
|
|
14
14
|
}
|
|
@@ -37,17 +37,17 @@ function x(e, t = 2) {
|
|
|
37
37
|
], o = Math.floor(Math.log(e) / Math.log(s));
|
|
38
38
|
return `${parseFloat((e / Math.pow(s, o)).toFixed(n))} ${a[o]}`;
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function w(e, t) {
|
|
41
41
|
const s = e.measureText(t), n = s.actualBoundingBoxAscent + s.actualBoundingBoxDescent, a = s.width;
|
|
42
42
|
return {
|
|
43
43
|
height: n,
|
|
44
44
|
width: a
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function S(e) {
|
|
48
48
|
return Math.floor(e) + 0.5;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function E(e, t, s, n, a, o) {
|
|
51
51
|
let i = e / t, l = s / n, r = 0, u = 0;
|
|
52
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
53
|
(s - u) * a,
|
|
@@ -56,7 +56,7 @@ function C(e, t, s, n, a, o) {
|
|
|
56
56
|
r
|
|
57
57
|
];
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function C(e, t, s, n, a, o) {
|
|
60
60
|
let i = e / t, l = s / n, r = 0, u = 0;
|
|
61
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
62
|
(s - u) * a,
|
|
@@ -65,7 +65,7 @@ function B(e, t, s, n, a, o) {
|
|
|
65
65
|
r
|
|
66
66
|
];
|
|
67
67
|
}
|
|
68
|
-
function
|
|
68
|
+
function B(e, t) {
|
|
69
69
|
return e.x < t.x + t.width && e.x > t.x && e.y < t.y + t.height && e.y > t.y;
|
|
70
70
|
}
|
|
71
71
|
function O(e, t) {
|
|
@@ -114,10 +114,13 @@ function A(e) {
|
|
|
114
114
|
const t = window.atob(e);
|
|
115
115
|
return decodeURIComponent(window.escape(t));
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function v(e) {
|
|
118
118
|
const t = window.unescape(encodeURIComponent(e));
|
|
119
119
|
return window.btoa(t);
|
|
120
120
|
}
|
|
121
|
+
function D(e, t, s) {
|
|
122
|
+
s != null && s.custom ? e.dispatchEvent(new CustomEvent(t, s)) : e.dispatchEvent(new Event(t, s));
|
|
123
|
+
}
|
|
121
124
|
function h(e) {
|
|
122
125
|
let t = "";
|
|
123
126
|
for (const s in e) {
|
|
@@ -150,98 +153,97 @@ function $(e, t = "") {
|
|
|
150
153
|
hash: l
|
|
151
154
|
};
|
|
152
155
|
}
|
|
153
|
-
function
|
|
156
|
+
function T(e = "/") {
|
|
154
157
|
return e.endsWith("/") || (e += "/"), e.startsWith("/") || (e += "/"), e;
|
|
155
158
|
}
|
|
156
|
-
function
|
|
159
|
+
function k(e, t, s, n) {
|
|
157
160
|
const a = s || location.search, o = n ? n.startsWith("#") ? n : "#" + n : "", i = a ? a.startsWith("?") ? a : "?" + a : "", l = `${t}${o}${i}`;
|
|
158
161
|
e === "push" ? history.pushState(null, "", l) : e === "replace" && history.replaceState(null, "", l);
|
|
159
162
|
}
|
|
160
163
|
export {
|
|
161
|
-
|
|
162
|
-
|
|
164
|
+
Nt as calculateDistance,
|
|
165
|
+
Vt as calculateDistanceWithRadius,
|
|
163
166
|
p as camelToKebab,
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
167
|
+
Rt as capitalize,
|
|
168
|
+
k as changeHistory,
|
|
169
|
+
Ut as clamp,
|
|
170
|
+
ct as cloneDeep,
|
|
171
|
+
ht as compareObjects,
|
|
172
|
+
C as contain,
|
|
173
|
+
E as cover,
|
|
174
|
+
ft as createJSONAndSave,
|
|
172
175
|
M as createStylesheet,
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
pt as dispatchSizeChangeEvent,
|
|
176
|
+
Ft as damp,
|
|
177
|
+
Bt as debounce,
|
|
178
|
+
v as decode,
|
|
179
|
+
D as dispatchEvent,
|
|
178
180
|
O as dotCircleCollision,
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
181
|
+
B as dotRectCollision,
|
|
182
|
+
J as easeInCubic,
|
|
183
|
+
Y as easeInExpo,
|
|
184
|
+
Z as easeInOutCubic,
|
|
185
|
+
X as easeInOutExpo,
|
|
186
|
+
_ as easeInOutQuad,
|
|
187
|
+
H as easeInOutQuart,
|
|
188
|
+
L as easeInOutQuint,
|
|
189
|
+
tt as easeInQuad,
|
|
190
|
+
et as easeInQuart,
|
|
191
|
+
st as easeInQuint,
|
|
192
|
+
nt as easeOutCubic,
|
|
193
|
+
at as easeOutExpo,
|
|
194
|
+
ot as easeOutQuad,
|
|
195
|
+
it as easeOutQuart,
|
|
196
|
+
rt as easeOutQuint,
|
|
195
197
|
A as encode,
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
198
|
+
U as findParentElement,
|
|
199
|
+
F as findScrollParentElement,
|
|
200
|
+
S as fixPosition,
|
|
199
201
|
x as formatBytes,
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
202
|
+
At as generateId,
|
|
203
|
+
K as getAllParentElements,
|
|
204
|
+
kt as getCumulativeOffsetLeft,
|
|
203
205
|
Wt as getCumulativeOffsetTop,
|
|
204
206
|
jt as getCumulativePosition,
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
207
|
+
q as getElement,
|
|
208
|
+
pt as getElementTransitionDurationMS,
|
|
209
|
+
dt as getElementTransitionDurationS,
|
|
208
210
|
P as getPointerPosition,
|
|
209
211
|
R as getRootVariables,
|
|
210
212
|
g as insert,
|
|
211
213
|
f as isBrowser,
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
214
|
+
mt as isESClass,
|
|
215
|
+
gt as isNullish,
|
|
216
|
+
yt as isObject,
|
|
217
|
+
vt as isUppercase,
|
|
218
|
+
Dt as kebabToCamel,
|
|
219
|
+
Kt as lerp,
|
|
220
|
+
ut as linear,
|
|
221
|
+
qt as mapRange,
|
|
222
|
+
w as measureText,
|
|
223
|
+
xt as mergeDeep,
|
|
222
224
|
wt as mixin,
|
|
223
225
|
I as normalize,
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
226
|
+
T as normalizeBase,
|
|
227
|
+
Gt as nullishCoalescing,
|
|
228
|
+
St as omit,
|
|
229
|
+
z as parseAttribute,
|
|
230
|
+
N as parseAttributeValue,
|
|
231
|
+
Et as pick,
|
|
232
|
+
Jt as preciseNumber,
|
|
233
|
+
Yt as round,
|
|
234
|
+
Zt as roundNumberTo,
|
|
233
235
|
b as screenToCartesian,
|
|
234
|
-
|
|
236
|
+
It as setupDrag,
|
|
235
237
|
y as shiftArray,
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
238
|
+
Xt as smootherstep,
|
|
239
|
+
_t as smoothstep,
|
|
240
|
+
Mt as snakeToDotted,
|
|
239
241
|
$ as splitPath,
|
|
240
|
-
|
|
242
|
+
Ht as step,
|
|
241
243
|
h as styleToString,
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
244
|
+
Ot as throttle,
|
|
245
|
+
Qt as toPascalCase,
|
|
246
|
+
Lt as toStep,
|
|
247
|
+
$t as uncapitalize,
|
|
246
248
|
Q as wait
|
|
247
249
|
};
|
package/package.json
CHANGED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { Store, StoreOptions } from '../store';
|
|
2
|
-
import { TickerAddOptions, TickerCallbackEntry } from '../ticker';
|
|
3
|
-
export interface AnimationOptions extends TickerAddOptions {
|
|
4
|
-
min?: number;
|
|
5
|
-
max?: number;
|
|
6
|
-
equalize?: boolean;
|
|
7
|
-
restart?: boolean;
|
|
8
|
-
}
|
|
9
|
-
export type AnimationConstructorOptions<Options extends AnimationOptions> = StoreOptions<number> & Options;
|
|
10
|
-
export declare abstract class Animation<Options extends AnimationOptions = AnimationOptions> extends Store<number> {
|
|
11
|
-
#private;
|
|
12
|
-
constructor(initial?: number, options?: StoreOptions<number>);
|
|
13
|
-
get direction(): number;
|
|
14
|
-
get target(): number;
|
|
15
|
-
get min(): number;
|
|
16
|
-
set min(value: number);
|
|
17
|
-
get max(): number;
|
|
18
|
-
set max(value: number);
|
|
19
|
-
get from(): number;
|
|
20
|
-
get isRunning(): Store<boolean>;
|
|
21
|
-
get delta(): number;
|
|
22
|
-
get deltaProgress(): number;
|
|
23
|
-
get distance(): number;
|
|
24
|
-
get distanceProgress(): number;
|
|
25
|
-
set(value: number, options?: Options): void;
|
|
26
|
-
shift(value: number, options?: Options): void;
|
|
27
|
-
reset(): void;
|
|
28
|
-
close(): void;
|
|
29
|
-
listenAnimationFrame(): void;
|
|
30
|
-
unlistenAnimationFrame(): void;
|
|
31
|
-
updateOptions(options?: AnimationOptions): void;
|
|
32
|
-
protected start(): void;
|
|
33
|
-
protected abstract handleAnimationFrame(e: TickerCallbackEntry): void;
|
|
34
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { TickerCallbackEntry } from '../ticker';
|
|
2
|
-
import { Animation, AnimationConstructorOptions, AnimationOptions } from './Animation';
|
|
3
|
-
export interface DampedOptions extends AnimationOptions {
|
|
4
|
-
stiffness?: number;
|
|
5
|
-
damping?: number;
|
|
6
|
-
mass?: number;
|
|
7
|
-
}
|
|
8
|
-
export declare class Damped extends Animation<DampedOptions> {
|
|
9
|
-
#private;
|
|
10
|
-
damping: number;
|
|
11
|
-
stiffness: number;
|
|
12
|
-
mass: number;
|
|
13
|
-
constructor(initial?: number, options?: AnimationConstructorOptions<DampedOptions>);
|
|
14
|
-
get velocity(): number;
|
|
15
|
-
get speed(): number;
|
|
16
|
-
updateOptions(options?: DampedOptions): void;
|
|
17
|
-
protected handleAnimationFrame(e: TickerCallbackEntry): void;
|
|
18
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { TickerCallbackEntry } from '../ticker';
|
|
2
|
-
import { EasingFunction } from '../utils';
|
|
3
|
-
import { Animation, AnimationConstructorOptions, AnimationOptions } from './Animation';
|
|
4
|
-
export interface TweenedOptions extends AnimationOptions {
|
|
5
|
-
easing?: EasingFunction;
|
|
6
|
-
duration?: number;
|
|
7
|
-
}
|
|
8
|
-
export declare class Tweened extends Animation<TweenedOptions> {
|
|
9
|
-
#private;
|
|
10
|
-
constructor(initial?: number, options?: AnimationConstructorOptions<TweenedOptions>);
|
|
11
|
-
updateOptions(options?: TweenedOptions): void;
|
|
12
|
-
protected handleAnimationFrame(e: TickerCallbackEntry): void;
|
|
13
|
-
protected start(): void;
|
|
14
|
-
}
|
package/lib/animation/index.d.ts
DELETED
package/lib/attribute/index.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Store, StoreCallback, StoreOptions } from '../store';
|
|
2
|
-
import { ElementOrSelector } from '../utils';
|
|
3
|
-
export interface AttributeOptions<T> extends StoreOptions<T> {
|
|
4
|
-
sync?: boolean;
|
|
5
|
-
}
|
|
6
|
-
export declare class Attribute<T extends string | number | boolean> extends Store<T> {
|
|
7
|
-
#private;
|
|
8
|
-
constructor(elementOrSelector: ElementOrSelector, name: string, defaultValue: T, options?: AttributeOptions<T>);
|
|
9
|
-
subscribe(callback: StoreCallback<T>): () => void;
|
|
10
|
-
unsubscribe(callback: StoreCallback<T>): void;
|
|
11
|
-
observe(): void;
|
|
12
|
-
unobserve(): void;
|
|
13
|
-
close(): void;
|
|
14
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Store } from '../store';
|
|
2
|
-
export declare class ClassLinkedStatus<T extends {
|
|
3
|
-
[key in string]: boolean;
|
|
4
|
-
}> extends Store<T> {
|
|
5
|
-
#private;
|
|
6
|
-
constructor(element: HTMLElement, value: T);
|
|
7
|
-
isTrue(key: keyof T): boolean;
|
|
8
|
-
isFalse(key: keyof T): boolean;
|
|
9
|
-
reset(): void;
|
|
10
|
-
set(key: keyof T, value?: boolean): void;
|
|
11
|
-
}
|
package/lib/connector/index.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export type ConnectorConnectCallback<T extends Node = Node> = (node: T) => void;
|
|
2
|
-
export type ConnectorDisconnectCallback<T extends Node = Node> = (node: T, expired?: boolean) => void;
|
|
3
|
-
export interface ConnectorOptions {
|
|
4
|
-
connectCallback?: ConnectorConnectCallback;
|
|
5
|
-
disconnectCallback?: ConnectorDisconnectCallback;
|
|
6
|
-
maxWaitSec?: number;
|
|
7
|
-
unsubscribeAfterDisconnect?: boolean;
|
|
8
|
-
}
|
|
9
|
-
export declare class Connector {
|
|
10
|
-
#private;
|
|
11
|
-
subscribe(node: Node, options: ConnectorOptions): () => void;
|
|
12
|
-
unsubscribe(options: ConnectorOptions): void;
|
|
13
|
-
destroy(): void;
|
|
14
|
-
}
|
|
15
|
-
export declare const connector: Connector;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { TickerAddOptions } from '../ticker';
|
|
2
|
-
import { Controls } from './Controls';
|
|
3
|
-
export interface AutoplayControlsOptions extends TickerAddOptions {
|
|
4
|
-
speed?: number;
|
|
5
|
-
interval?: boolean;
|
|
6
|
-
}
|
|
7
|
-
export declare class AutoplayControls extends Controls {
|
|
8
|
-
#private;
|
|
9
|
-
direction: number;
|
|
10
|
-
constructor(options?: AutoplayControlsOptions);
|
|
11
|
-
set interval(value: boolean);
|
|
12
|
-
set speed(value: number);
|
|
13
|
-
connect(): void;
|
|
14
|
-
disconnect(): void;
|
|
15
|
-
pauseAndContinue(duration: number): void;
|
|
16
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Notifier } from '../notifier';
|
|
2
|
-
export type ControlsCallback = (type: string, value: number) => void;
|
|
3
|
-
export declare abstract class Controls {
|
|
4
|
-
#private;
|
|
5
|
-
get changeEvent(): Notifier<ControlsCallback>;
|
|
6
|
-
abstract connect(): void;
|
|
7
|
-
abstract disconnect(): void;
|
|
8
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Axes2D } from '../utils';
|
|
2
|
-
import { Controls } from './Controls';
|
|
3
|
-
export interface DragControlsOptions {
|
|
4
|
-
element?: HTMLElement;
|
|
5
|
-
axis?: Axes2D;
|
|
6
|
-
swipe?: boolean;
|
|
7
|
-
}
|
|
8
|
-
export declare class DragControls extends Controls {
|
|
9
|
-
#private;
|
|
10
|
-
axis: Axes2D;
|
|
11
|
-
swipe: boolean;
|
|
12
|
-
constructor(options?: DragControlsOptions);
|
|
13
|
-
connect(): void;
|
|
14
|
-
disconnect(): void;
|
|
15
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Controls } from './Controls';
|
|
2
|
-
export type KeyboardControlsDimension = 'height' | 'width';
|
|
3
|
-
export interface KeyboardControlsOptions {
|
|
4
|
-
element?: HTMLElement;
|
|
5
|
-
dimension?: KeyboardControlsDimension;
|
|
6
|
-
}
|
|
7
|
-
export declare class KeyboardControls extends Controls {
|
|
8
|
-
#private;
|
|
9
|
-
constructor(options?: KeyboardControlsOptions);
|
|
10
|
-
set dimension(value: KeyboardControlsDimension | undefined | null);
|
|
11
|
-
connect(): void;
|
|
12
|
-
disconnect(): void;
|
|
13
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Axes2D } from '../utils';
|
|
2
|
-
import { Controls } from './Controls';
|
|
3
|
-
export type WheelControlsAxis = Axes2D | 'max';
|
|
4
|
-
export interface WheelControlsOptions {
|
|
5
|
-
axis?: WheelControlsAxis;
|
|
6
|
-
speed?: number;
|
|
7
|
-
debounce?: boolean;
|
|
8
|
-
element?: HTMLElement;
|
|
9
|
-
}
|
|
10
|
-
export declare class WheelControls extends Controls {
|
|
11
|
-
#private;
|
|
12
|
-
axis: WheelControlsAxis;
|
|
13
|
-
speed: number;
|
|
14
|
-
debounce: boolean;
|
|
15
|
-
constructor(options?: WheelControlsOptions);
|
|
16
|
-
connect(): void;
|
|
17
|
-
disconnect(): void;
|
|
18
|
-
}
|
package/lib/controls/index.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { Controls } from './Controls';
|
|
2
|
-
export { KeyboardControls } from './KeyboardControls';
|
|
3
|
-
export { AutoplayControls, type AutoplayControlsOptions, } from './AutoplayControls';
|
|
4
|
-
export { WheelControls, type WheelControlsOptions } from './WheelControls';
|
|
5
|
-
export { DragControls, type DragControlsOptions } from './DragControls';
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Store, StoreCallback, StoreOptions } from '../store';
|
|
2
|
-
import { ElementOrSelector } from '../utils';
|
|
3
|
-
export interface CSSPropertyOptions<StoreType extends number | boolean | string> extends StoreOptions<StoreType> {
|
|
4
|
-
rawValueCheck?: boolean;
|
|
5
|
-
}
|
|
6
|
-
export declare class CSSProperty<StoreType extends number | boolean | string> extends Store<StoreType> {
|
|
7
|
-
#private;
|
|
8
|
-
constructor(elementOrSelector: ElementOrSelector<HTMLElement>, property: string, defaultValue: StoreType, options?: CSSPropertyOptions<StoreType>);
|
|
9
|
-
get currentRawValue(): string;
|
|
10
|
-
observe(): void;
|
|
11
|
-
unobserve(): void;
|
|
12
|
-
subscribe(callback: StoreCallback<StoreType>): () => void;
|
|
13
|
-
unsubscribe(callback: StoreCallback<StoreType>): void;
|
|
14
|
-
close(): void;
|
|
15
|
-
check(): void;
|
|
16
|
-
}
|
package/lib/dev/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function devMode(): void;
|
package/lib/device/Device.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export type DeviceOS = 'macOS' | 'iOS' | 'Windows' | 'Android' | 'Linux' | 'unknown';
|
|
2
|
-
declare class Device {
|
|
3
|
-
#private;
|
|
4
|
-
constructor();
|
|
5
|
-
get OS(): string;
|
|
6
|
-
get gpu(): string;
|
|
7
|
-
get gpuTier(): number;
|
|
8
|
-
get isMobile(): boolean;
|
|
9
|
-
get isTouch(): boolean;
|
|
10
|
-
get isWebgl(): boolean;
|
|
11
|
-
get isWebp(): boolean;
|
|
12
|
-
get isApple(): boolean;
|
|
13
|
-
resize: () => void;
|
|
14
|
-
}
|
|
15
|
-
export declare const device: Device;
|
|
16
|
-
export {};
|
package/lib/device/Viewport.d.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { Store } from '../store';
|
|
2
|
-
export declare enum ViewportBreakpoints {
|
|
3
|
-
'mobile' = "600px",
|
|
4
|
-
'tablet' = "1024px",
|
|
5
|
-
'notebook' = "1280px",
|
|
6
|
-
'desktop' = "1281px"
|
|
7
|
-
}
|
|
8
|
-
export declare enum ViewportMediaRules {
|
|
9
|
-
'<=mobile' = "(max-width: 600px)",
|
|
10
|
-
'>=mobile' = "(min-width: 601px)",
|
|
11
|
-
'<=tablet' = "(max-width: 1024px)",
|
|
12
|
-
'>=tablet' = "(min-width: 1025px)",
|
|
13
|
-
'<=notebook' = "(max-width: 1280px)",
|
|
14
|
-
'>=notebook' = "(min-width: 1281px)",
|
|
15
|
-
'<=desktop' = "(max-width: 1280px)",
|
|
16
|
-
'>=desktop' = "(min-width: 1281px)"
|
|
17
|
-
}
|
|
18
|
-
declare class Viewport {
|
|
19
|
-
#private;
|
|
20
|
-
constructor();
|
|
21
|
-
get width(): number;
|
|
22
|
-
get height(): number;
|
|
23
|
-
get type(): Store<"mobile" | "tablet" | "notebook" | "desktop" | undefined>;
|
|
24
|
-
get pixelRatio(): number;
|
|
25
|
-
resize: () => void;
|
|
26
|
-
}
|
|
27
|
-
export declare const viewport: Viewport;
|
|
28
|
-
export {};
|
package/lib/device/index.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ElementOrSelector } from '../utils';
|
|
2
|
-
export type ElementResizerCallback = (entry: ResizeObserverEntry) => void;
|
|
3
|
-
export declare class ElementResizer {
|
|
4
|
-
#private;
|
|
5
|
-
constructor();
|
|
6
|
-
subscribe(elementOrSelector: ElementOrSelector, callback: ElementResizerCallback): () => void;
|
|
7
|
-
unsubscribe(callback: ElementResizerCallback): void;
|
|
8
|
-
}
|
|
9
|
-
export declare const elementResizer: ElementResizer;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ElementOrSelector } from '../utils';
|
|
2
|
-
export type IntersectorCallback = (entry: IntersectionObserverEntry) => void;
|
|
3
|
-
export declare class Intersector {
|
|
4
|
-
#private;
|
|
5
|
-
constructor();
|
|
6
|
-
subscribe(elementOrSelector: ElementOrSelector, callback: IntersectorCallback): () => void;
|
|
7
|
-
unsubscribe(callback: IntersectorCallback): void;
|
|
8
|
-
}
|
|
9
|
-
export declare const intersector: Intersector;
|
package/lib/ladder/index.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { Store } from '../store';
|
|
2
|
-
export type LadderDefaultStepName = number | string;
|
|
3
|
-
export type LadderOperation = '+' | '*' | '/' | '-';
|
|
4
|
-
export type LadderStep<T> = [LadderOperation, T];
|
|
5
|
-
export type LadderSteps<K, T> = Map<K, LadderStep<T>>;
|
|
6
|
-
export type LadderDefaultValueType = {
|
|
7
|
-
[key: string]: number;
|
|
8
|
-
};
|
|
9
|
-
export declare class Ladder<V extends LadderDefaultValueType = LadderDefaultValueType, K extends LadderDefaultStepName = LadderDefaultStepName> extends Store<V> {
|
|
10
|
-
#private;
|
|
11
|
-
constructor(base: V);
|
|
12
|
-
get base(): V;
|
|
13
|
-
get steps(): LadderSteps<K, V>;
|
|
14
|
-
close(): void;
|
|
15
|
-
bind(sub: V): void;
|
|
16
|
-
unbind(sub: V): void;
|
|
17
|
-
deleteStep(stepName: K): void;
|
|
18
|
-
getStepValue(stepName: K): V;
|
|
19
|
-
getExcludedStepsValue(...stepNames: Array<K>): V;
|
|
20
|
-
getIncludedStepsValue(...stepNames: Array<K>): V;
|
|
21
|
-
setStep(stepName: K, action: LadderOperation, value: Partial<V>): void;
|
|
22
|
-
calculate(): void;
|
|
23
|
-
}
|