aptechka 0.4.6 → 0.4.7
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/en3/core/en3.d.ts +1 -1
- package/lib/en3/index.cjs +6 -6
- package/lib/en3/index.js +358 -358
- package/lib/gestures-D2Fdra_G.js +11 -0
- package/lib/gestures-DHLrn6Q8.cjs +1 -0
- package/lib/scroll/index.cjs +1 -1
- package/lib/scroll/index.js +120 -122
- package/lib/utils/gestures.d.ts +1 -0
- package/lib/utils/index.cjs +1 -1
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/index.js +51 -49
- package/package.json +1 -1
package/lib/utils/index.js
CHANGED
|
@@ -1,28 +1,29 @@
|
|
|
1
1
|
import { a as S, p as I } from "../attributes-69we3byR.js";
|
|
2
|
-
import { i as
|
|
3
|
-
import { f as
|
|
2
|
+
import { i as D } from "../browser-0zX67oeU.js";
|
|
3
|
+
import { f as v, b as P, a as T, g as A } from "../dom-0S_WDL4g.js";
|
|
4
4
|
import { c as B, n as M, f as N, p as j, b as z, i as U, m as V, e as q, g as J, j as K, d as $, o as F, a as G, h as W, k as X, l as Y } from "../easings-BKi40vHz.js";
|
|
5
5
|
import { d as _ } from "../events-_C2CztxR.js";
|
|
6
6
|
import { c as L } from "../file-lxi_oXJf.js";
|
|
7
7
|
import { d as te, t as ae } from "../function-C10DGppn.js";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
8
|
+
import { s as ne } from "../gestures-D2Fdra_G.js";
|
|
9
|
+
import { g as ie, a as re, b as ue } from "../layout-HoBT_Da2.js";
|
|
10
|
+
import { e as ce, f as me, c as de, d as pe, l as fe, m as xe, r as he, b as ge, a as be, s as ye } from "../math-BOBiC4TN.js";
|
|
11
|
+
import { p as Ce, r as Ee } from "../number-Bo5RdrA1.js";
|
|
12
|
+
import { c as Se, d as Ie, i as Re, b as De, a as Qe, m as ve, e as Pe, o as Te, p as Ae } from "../object-R34VLqhp.js";
|
|
13
|
+
import { n as Be } from "../polyfills-DJUYczFm.js";
|
|
14
|
+
import { c as Ne, a as je, g as ze, k as Ue, s as Ve, t as qe, u as Je } from "../string-3lAkpJJP.js";
|
|
15
|
+
import { g as $e, a as Fe } from "../style-j2TwriJ_.js";
|
|
15
16
|
function c(t, e, ...a) {
|
|
16
17
|
return [...t.slice(0, e), ...a, ...t.slice(e)];
|
|
17
18
|
}
|
|
18
|
-
function
|
|
19
|
+
function m(t, e) {
|
|
19
20
|
const a = t.measureText(e), s = a.actualBoundingBoxAscent + a.actualBoundingBoxDescent, n = a.width;
|
|
20
21
|
return {
|
|
21
22
|
height: s,
|
|
22
23
|
width: n
|
|
23
24
|
};
|
|
24
25
|
}
|
|
25
|
-
function
|
|
26
|
+
function d(t) {
|
|
26
27
|
return Math.floor(t) + 0.5;
|
|
27
28
|
}
|
|
28
29
|
function p(t, e, a, s, n, o) {
|
|
@@ -79,16 +80,16 @@ function C(t) {
|
|
|
79
80
|
return window.btoa(e);
|
|
80
81
|
}
|
|
81
82
|
export {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
83
|
+
ce as calculateDistance,
|
|
84
|
+
me as calculateDistanceWithRadius,
|
|
85
|
+
Ne as camelToKebab,
|
|
86
|
+
je as capitalize,
|
|
87
|
+
de as clamp,
|
|
88
|
+
Se as cloneDeep,
|
|
89
|
+
Ie as compareObjects,
|
|
89
90
|
p as cover,
|
|
90
91
|
L as createJSONAndSave,
|
|
91
|
-
|
|
92
|
+
pe as damp,
|
|
92
93
|
te as debounce,
|
|
93
94
|
C as decode,
|
|
94
95
|
_ as dispatchSizeChangeEvent,
|
|
@@ -110,46 +111,47 @@ export {
|
|
|
110
111
|
W as easeOutQuart,
|
|
111
112
|
X as easeOutQuint,
|
|
112
113
|
w as encode,
|
|
113
|
-
|
|
114
|
+
v as findParentElement,
|
|
114
115
|
P as findScrollParentElement,
|
|
115
|
-
|
|
116
|
-
|
|
116
|
+
d as fixPosition,
|
|
117
|
+
ze as generateId,
|
|
117
118
|
T as getAllParentElements,
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
119
|
+
ie as getCumulativeOffsetLeft,
|
|
120
|
+
re as getCumulativeOffsetTop,
|
|
121
|
+
ue as getCumulativePosition,
|
|
121
122
|
A as getElement,
|
|
122
|
-
|
|
123
|
-
|
|
123
|
+
$e as getElementTransitionDurationMS,
|
|
124
|
+
Fe as getElementTransitionDurationS,
|
|
124
125
|
b as getPointerPosition,
|
|
125
126
|
y as getRootVariables,
|
|
126
127
|
c as insert,
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
128
|
+
D as isBrowser,
|
|
129
|
+
Re as isESClass,
|
|
130
|
+
De as isNullish,
|
|
131
|
+
Qe as isObject,
|
|
132
|
+
Ue as kebabToCamel,
|
|
133
|
+
fe as lerp,
|
|
133
134
|
Y as linear,
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
135
|
+
xe as mapRange,
|
|
136
|
+
m as measureText,
|
|
137
|
+
ve as mergeDeep,
|
|
138
|
+
Pe as mixin,
|
|
138
139
|
g as normalize,
|
|
139
|
-
|
|
140
|
-
|
|
140
|
+
Be as nullishCoalescing,
|
|
141
|
+
Te as omit,
|
|
141
142
|
S as parseAttribute,
|
|
142
143
|
I as parseAttributeValue,
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
144
|
+
Ae as pick,
|
|
145
|
+
Ce as preciseNumber,
|
|
146
|
+
he as round,
|
|
147
|
+
Ee as roundNumberTo,
|
|
147
148
|
h as screenToCartesian,
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
149
|
+
ne as setupDrag,
|
|
150
|
+
ge as smootherstep,
|
|
151
|
+
be as smoothstep,
|
|
152
|
+
Ve as snakeToDotted,
|
|
153
|
+
ye as step,
|
|
152
154
|
ae as throttle,
|
|
153
|
-
|
|
154
|
-
|
|
155
|
+
qe as toPascalCase,
|
|
156
|
+
Je as uncapitalize
|
|
155
157
|
};
|