aptechka 0.1.16 → 0.1.18
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/{Composed-DhtYBEmo.js → Composed-ClTo1f0b.js} +19 -19
- package/lib/Composed-Mdr4ZFbI.cjs +1 -0
- package/lib/attribute/index.cjs +1 -1
- package/lib/attribute/index.d.ts +2 -0
- package/lib/attribute/index.js +43 -34
- package/lib/component/Component.d.ts +1 -5
- package/lib/component/hooks/attributes.d.ts +2 -0
- package/lib/component/index.cjs +1 -1
- package/lib/component/index.d.ts +1 -1
- package/lib/component/index.js +135 -132
- package/lib/element-resizer/index.cjs +1 -1
- package/lib/element-resizer/index.js +16 -16
- package/lib/en3/index.cjs +5 -5
- package/lib/en3/index.js +501 -499
- package/lib/intersector/index.cjs +1 -1
- package/lib/intersector/index.js +14 -14
- package/lib/ladder/index.cjs +1 -1
- package/lib/ladder/index.d.ts +18 -3
- package/lib/ladder/index.js +124 -68
- package/lib/layout-box/index.cjs +1 -1
- package/lib/layout-box/index.js +61 -61
- package/lib/store/DerivedArray.d.ts +1 -1
- package/lib/store/index.cjs +1 -1
- package/lib/store/index.js +2 -2
- package/lib/window-resizer/index.cjs +1 -1
- package/lib/window-resizer/index.js +16 -16
- package/package.json +1 -1
- package/lib/Composed-C2Vv1xxR.cjs +0 -1
- package/lib/component/hooks/context.d.ts +0 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var y=(
|
|
1
|
+
"use strict";var y=(n,t,r)=>{if(!t.has(n))throw TypeError("Cannot "+r)};var s=(n,t,r)=>(y(n,t,"read from private field"),r?r.call(n):t.get(n)),b=(n,t,r)=>{if(t.has(n))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(n):t.set(n,r)},f=(n,t,r,e)=>(y(n,t,"write to private field"),e?e.call(n,r):t.set(n,r),r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("../browser-CpzFX2xg.cjs"),d=require("../dom-qY2LdCVL.cjs");var i,u,l;class m{constructor(){b(this,i,[]);b(this,u,null);b(this,l,t=>{s(this,i).map(e=>({subscriber:e,entry:t.find(o=>o.target===e.element)})).forEach(e=>{e.entry&&(e.subscriber.entry=e.entry,e.subscriber.callback(e.entry))})});w.isBrowser&&window.IntersectionObserver&&f(this,u,new IntersectionObserver(s(this,l)))}subscribe(t,r){const e=d.getElement(t);if(!e)return()=>{};const o=s(this,i).find(c=>c.element===e);if(!o)s(this,u).observe(e);else{const c=s(this,i).find(h=>h.element===e&&h.entry);c!=null&&c.entry.isIntersecting&&r(c.entry)}return s(this,i).push({element:e,callback:r,entry:(o==null?void 0:o.entry)||null}),()=>{this.unsubscribe(r)}}unsubscribe(t){const r=s(this,i).find(e=>e.callback===t);r&&(f(this,i,s(this,i).filter(e=>e.callback===t)),s(this,i).find(e=>e.element===r.element)||s(this,u).unobserve(r.element))}}i=new WeakMap,u=new WeakMap,l=new WeakMap;const g=new m;exports.Intersector=m;exports.intersector=g;
|
package/lib/intersector/index.js
CHANGED
|
@@ -2,19 +2,19 @@ var m = (n, t, s) => {
|
|
|
2
2
|
if (!t.has(n))
|
|
3
3
|
throw TypeError("Cannot " + s);
|
|
4
4
|
};
|
|
5
|
-
var r = (n, t, s) => (m(n, t, "read from private field"), s ? s.call(n) : t.get(n)),
|
|
5
|
+
var r = (n, t, s) => (m(n, t, "read from private field"), s ? s.call(n) : t.get(n)), f = (n, t, s) => {
|
|
6
6
|
if (t.has(n))
|
|
7
7
|
throw TypeError("Cannot add the same private member more than once");
|
|
8
8
|
t instanceof WeakSet ? t.add(n) : t.set(n, s);
|
|
9
9
|
}, h = (n, t, s, e) => (m(n, t, "write to private field"), e ? e.call(n, s) : t.set(n, s), s);
|
|
10
10
|
import { i as y } from "../browser-0zX67oeU.js";
|
|
11
11
|
import { g as p } from "../dom-BY7JhTx5.js";
|
|
12
|
-
var i,
|
|
13
|
-
class
|
|
12
|
+
var i, b, u;
|
|
13
|
+
class w {
|
|
14
14
|
constructor() {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
f(this, i, []);
|
|
16
|
+
f(this, b, null);
|
|
17
|
+
f(this, u, (t) => {
|
|
18
18
|
r(this, i).map((e) => ({
|
|
19
19
|
subscriber: e,
|
|
20
20
|
entry: t.find((o) => o.target === e.element)
|
|
@@ -22,8 +22,8 @@ class g {
|
|
|
22
22
|
e.entry && (e.subscriber.entry = e.entry, e.subscriber.callback(e.entry));
|
|
23
23
|
});
|
|
24
24
|
});
|
|
25
|
-
y && h(this,
|
|
26
|
-
r(this,
|
|
25
|
+
y && window.IntersectionObserver && h(this, b, new IntersectionObserver(
|
|
26
|
+
r(this, u)
|
|
27
27
|
));
|
|
28
28
|
}
|
|
29
29
|
subscribe(t, s) {
|
|
@@ -35,7 +35,7 @@ class g {
|
|
|
35
35
|
(c) => c.element === e
|
|
36
36
|
);
|
|
37
37
|
if (!o)
|
|
38
|
-
r(this,
|
|
38
|
+
r(this, b).observe(e);
|
|
39
39
|
else {
|
|
40
40
|
const c = r(this, i).find(
|
|
41
41
|
(l) => l.element === e && l.entry
|
|
@@ -56,12 +56,12 @@ class g {
|
|
|
56
56
|
);
|
|
57
57
|
s && (h(this, i, r(this, i).filter(
|
|
58
58
|
(e) => e.callback === t
|
|
59
|
-
)), r(this, i).find((e) => e.element === s.element) || r(this,
|
|
59
|
+
)), r(this, i).find((e) => e.element === s.element) || r(this, b).unobserve(s.element));
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
|
-
i = new WeakMap(),
|
|
63
|
-
const
|
|
62
|
+
i = new WeakMap(), b = new WeakMap(), u = new WeakMap();
|
|
63
|
+
const d = new w();
|
|
64
64
|
export {
|
|
65
|
-
|
|
66
|
-
|
|
65
|
+
w as Intersector,
|
|
66
|
+
d as intersector
|
|
67
67
|
};
|
package/lib/ladder/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var j=Object.defineProperty;var w=Object.getOwnPropertySymbols;var C=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable;var x=(s,t,e)=>t in s?j(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e,S=(s,t)=>{for(var e in t||(t={}))C.call(t,e)&&x(s,e,t[e]);if(w)for(var e of w(t))E.call(t,e)&&x(s,e,t[e]);return s};var q=(s,t,e)=>{if(!t.has(s))throw TypeError("Cannot "+e)};var i=(s,t,e)=>(q(s,t,"read from private field"),e?e.call(s):t.get(s)),h=(s,t,e)=>{if(t.has(s))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(s):t.set(s,e)},c=(s,t,e,n)=>(q(s,t,"write to private field"),n?n.call(s,e):t.set(s,e),e);var M=(s,t,e)=>(q(s,t,"access private method"),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const N=require("../Store-D0_rDIsE.cjs"),O=require("../math-GDWEqu7y.cjs"),U=require("../number-yVpzMdbQ.cjs"),m=require("../ticker/index.cjs");var v,u,p,d;class P{constructor(t){h(this,v,void 0);h(this,u,void 0);h(this,p,void 0);h(this,d,void 0);c(this,v,t.operation),c(this,u,t.value),c(this,p,i(this,u)),c(this,d,t.damping||0)}get operation(){return i(this,v)}get value(){return i(this,u)}set value(t){c(this,p,t),i(this,d)||c(this,u,t)}get damping(){return i(this,d)}set damping(t){c(this,d,t)}update(t){let e=0;for(const n in i(this,u))i(this,u)[n]=O.damp(i(this,u)[n],i(this,p)[n],this.damping,t),U.preciseNumber(i(this,u)[n],4)!==U.preciseNumber(i(this,p)[n],4)&&e++;return e===0}}v=new WeakMap,u=new WeakMap,p=new WeakMap,d=new WeakMap;var g,f,l,y,V,b;class T extends N.Store{constructor(e){super(e,{equalityCheck:()=>!1});h(this,y);h(this,g,void 0);h(this,f,void 0);h(this,l,void 0);h(this,b,e=>{let n=0;for(const r of this.steps){const a=r[1].update(e.elapsed);n+=a?0:1}this.calculate(),n||m.ticker.unsubscribe(i(this,b))});c(this,g,S({},e)),c(this,f,new Map),c(this,l,new Set)}get base(){return i(this,g)}get steps(){return i(this,f)}close(){super.close(),i(this,l).clear(),i(this,f).clear(),m.ticker.unsubscribe(i(this,b))}bind(e){i(this,l).add(e)}unbind(e){i(this,l).delete(e)}deleteStep(e){this.steps.delete(e)}getStepValue(e){return this.steps.get(e).value}setStep(e,n,r,o){const a={};for(const L in this.current)a[L]=r[L]||0;let k=this.steps.get(e);k||(k=new P({operation:n,value:S({},i(this,g)),damping:o}),this.steps.set(e,k)),k.value=a,k.damping=o||0,M(this,y,V).call(this)}calculate(){const e={};for(const n in this.base)e[n]=this.base[n];for(const n of this.steps){const r=n[1];if(r.operation==="+")for(const o in this.base){const a=r.value[o];e[o]+=a}else if(r.operation==="*")for(const o in this.base){const a=r.value[o];e[o]*=a}else if(r.operation==="/")for(const o in this.base){const a=r.value[o];e[o]/=a}else if(r.operation==="-")for(const o in this.base){const a=r.value[o];e[o]-=a}}for(const n of i(this,l))for(const r in e)n[r]=e[r];this.current=e}}g=new WeakMap,f=new WeakMap,l=new WeakMap,y=new WeakSet,V=function(){let e=!1;i(this,f).forEach(n=>{n.damping&&(e=!0)}),e?m.ticker.subscribe(i(this,b)):m.ticker.unsubscribe(i(this,b))},b=new WeakMap;exports.Ladder=T;
|
package/lib/ladder/index.d.ts
CHANGED
|
@@ -1,11 +1,25 @@
|
|
|
1
1
|
import { Store } from '../store';
|
|
2
2
|
export type LadderDefaultStepName = number | string;
|
|
3
3
|
export type LadderOperation = '+' | '*' | '/' | '-';
|
|
4
|
-
export type
|
|
5
|
-
export type LadderSteps<K, T> = Map<K, LadderStep<T>>;
|
|
4
|
+
export type LadderSteps<K, T extends LadderDefaultValueType = LadderDefaultValueType> = Map<K, LadderStep<T>>;
|
|
6
5
|
export type LadderDefaultValueType = {
|
|
7
6
|
[key: string]: number;
|
|
8
7
|
};
|
|
8
|
+
interface LadderStepParameters<T extends LadderDefaultValueType = LadderDefaultValueType> {
|
|
9
|
+
operation: LadderOperation;
|
|
10
|
+
value: T;
|
|
11
|
+
damping?: number;
|
|
12
|
+
}
|
|
13
|
+
declare class LadderStep<T extends LadderDefaultValueType = LadderDefaultValueType> {
|
|
14
|
+
#private;
|
|
15
|
+
constructor(parameters: LadderStepParameters<T>);
|
|
16
|
+
get operation(): LadderOperation;
|
|
17
|
+
get value(): T;
|
|
18
|
+
set value(value: T);
|
|
19
|
+
get damping(): number;
|
|
20
|
+
set damping(value: number);
|
|
21
|
+
update(elapsed: number): boolean;
|
|
22
|
+
}
|
|
9
23
|
export declare class Ladder<V extends LadderDefaultValueType = LadderDefaultValueType, K extends LadderDefaultStepName = LadderDefaultStepName> extends Store<V> {
|
|
10
24
|
#private;
|
|
11
25
|
constructor(base: V);
|
|
@@ -16,6 +30,7 @@ export declare class Ladder<V extends LadderDefaultValueType = LadderDefaultValu
|
|
|
16
30
|
unbind(sub: V): void;
|
|
17
31
|
deleteStep(stepName: K): void;
|
|
18
32
|
getStepValue(stepName: K): V;
|
|
19
|
-
setStep(stepName: K,
|
|
33
|
+
setStep(stepName: K, operation: LadderOperation, setValue: Partial<V>, damping?: number): void;
|
|
20
34
|
calculate(): void;
|
|
21
35
|
}
|
|
36
|
+
export {};
|
package/lib/ladder/index.js
CHANGED
|
@@ -1,96 +1,152 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
for (var
|
|
6
|
-
|
|
7
|
-
if (
|
|
8
|
-
for (var
|
|
9
|
-
|
|
10
|
-
return
|
|
1
|
+
var E = Object.defineProperty;
|
|
2
|
+
var x = Object.getOwnPropertySymbols;
|
|
3
|
+
var M = Object.prototype.hasOwnProperty, j = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var U = (s, e, t) => e in s ? E(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, S = (s, e) => {
|
|
5
|
+
for (var t in e || (e = {}))
|
|
6
|
+
M.call(e, t) && U(s, t, e[t]);
|
|
7
|
+
if (x)
|
|
8
|
+
for (var t of x(e))
|
|
9
|
+
j.call(e, t) && U(s, t, e[t]);
|
|
10
|
+
return s;
|
|
11
11
|
};
|
|
12
|
-
var
|
|
13
|
-
if (!
|
|
14
|
-
throw TypeError("Cannot " +
|
|
12
|
+
var w = (s, e, t) => {
|
|
13
|
+
if (!e.has(s))
|
|
14
|
+
throw TypeError("Cannot " + t);
|
|
15
15
|
};
|
|
16
|
-
var
|
|
17
|
-
if (
|
|
16
|
+
var i = (s, e, t) => (w(s, e, "read from private field"), t ? t.call(s) : e.get(s)), u = (s, e, t) => {
|
|
17
|
+
if (e.has(s))
|
|
18
18
|
throw TypeError("Cannot add the same private member more than once");
|
|
19
|
-
|
|
20
|
-
},
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
19
|
+
e instanceof WeakSet ? e.add(s) : e.set(s, t);
|
|
20
|
+
}, h = (s, e, t, n) => (w(s, e, "write to private field"), n ? n.call(s, t) : e.set(s, t), t);
|
|
21
|
+
var V = (s, e, t) => (w(s, e, "access private method"), t);
|
|
22
|
+
import { S as z } from "../Store-JOKrNVEr.js";
|
|
23
|
+
import { d as A } from "../math-BOBiC4TN.js";
|
|
24
|
+
import { p as q } from "../number-Bo5RdrA1.js";
|
|
25
|
+
import { ticker as k } from "../ticker/index.js";
|
|
26
|
+
var v, c, l, d;
|
|
27
|
+
class B {
|
|
24
28
|
constructor(e) {
|
|
25
|
-
|
|
29
|
+
u(this, v, void 0);
|
|
30
|
+
u(this, c, void 0);
|
|
31
|
+
u(this, l, void 0);
|
|
32
|
+
u(this, d, void 0);
|
|
33
|
+
h(this, v, e.operation), h(this, c, e.value), h(this, l, i(this, c)), h(this, d, e.damping || 0);
|
|
34
|
+
}
|
|
35
|
+
get operation() {
|
|
36
|
+
return i(this, v);
|
|
37
|
+
}
|
|
38
|
+
get value() {
|
|
39
|
+
return i(this, c);
|
|
40
|
+
}
|
|
41
|
+
set value(e) {
|
|
42
|
+
h(this, l, e), i(this, d) || h(this, c, e);
|
|
43
|
+
}
|
|
44
|
+
get damping() {
|
|
45
|
+
return i(this, d);
|
|
46
|
+
}
|
|
47
|
+
set damping(e) {
|
|
48
|
+
h(this, d, e);
|
|
49
|
+
}
|
|
50
|
+
update(e) {
|
|
51
|
+
let t = 0;
|
|
52
|
+
for (const n in i(this, c))
|
|
53
|
+
i(this, c)[n] = A(
|
|
54
|
+
i(this, c)[n],
|
|
55
|
+
i(this, l)[n],
|
|
56
|
+
this.damping,
|
|
57
|
+
e
|
|
58
|
+
), q(i(this, c)[n], 4) !== q(i(this, l)[n], 4) && t++;
|
|
59
|
+
return t === 0;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
v = new WeakMap(), c = new WeakMap(), l = new WeakMap(), d = new WeakMap();
|
|
63
|
+
var g, f, p, y, C, b;
|
|
64
|
+
class J extends z {
|
|
65
|
+
constructor(t) {
|
|
66
|
+
super(t, {
|
|
26
67
|
equalityCheck: () => !1
|
|
27
68
|
});
|
|
28
|
-
u(this,
|
|
29
|
-
u(this,
|
|
30
|
-
u(this,
|
|
31
|
-
|
|
69
|
+
u(this, y);
|
|
70
|
+
u(this, g, void 0);
|
|
71
|
+
u(this, f, void 0);
|
|
72
|
+
u(this, p, void 0);
|
|
73
|
+
u(this, b, (t) => {
|
|
74
|
+
let n = 0;
|
|
75
|
+
for (const o of this.steps) {
|
|
76
|
+
const a = o[1].update(t.elapsed);
|
|
77
|
+
n += a ? 0 : 1;
|
|
78
|
+
}
|
|
79
|
+
this.calculate(), n || k.unsubscribe(i(this, b));
|
|
80
|
+
});
|
|
81
|
+
h(this, g, S({}, t)), h(this, f, /* @__PURE__ */ new Map()), h(this, p, /* @__PURE__ */ new Set());
|
|
32
82
|
}
|
|
33
83
|
get base() {
|
|
34
|
-
return
|
|
84
|
+
return i(this, g);
|
|
35
85
|
}
|
|
36
86
|
get steps() {
|
|
37
|
-
return
|
|
87
|
+
return i(this, f);
|
|
38
88
|
}
|
|
39
89
|
close() {
|
|
40
|
-
super.close(),
|
|
90
|
+
super.close(), i(this, p).clear(), i(this, f).clear(), k.unsubscribe(i(this, b));
|
|
41
91
|
}
|
|
42
|
-
bind(
|
|
43
|
-
|
|
92
|
+
bind(t) {
|
|
93
|
+
i(this, p).add(t);
|
|
44
94
|
}
|
|
45
|
-
unbind(
|
|
46
|
-
|
|
95
|
+
unbind(t) {
|
|
96
|
+
i(this, p).delete(t);
|
|
47
97
|
}
|
|
48
|
-
deleteStep(
|
|
49
|
-
this.steps.delete(
|
|
98
|
+
deleteStep(t) {
|
|
99
|
+
this.steps.delete(t);
|
|
50
100
|
}
|
|
51
|
-
getStepValue(
|
|
52
|
-
return this.steps.get(
|
|
101
|
+
getStepValue(t) {
|
|
102
|
+
return this.steps.get(t).value;
|
|
53
103
|
}
|
|
54
|
-
setStep(
|
|
55
|
-
const
|
|
56
|
-
for (const
|
|
57
|
-
|
|
58
|
-
this.steps.
|
|
104
|
+
setStep(t, n, o, r) {
|
|
105
|
+
const a = {};
|
|
106
|
+
for (const L in this.current)
|
|
107
|
+
a[L] = o[L] || 0;
|
|
108
|
+
let m = this.steps.get(t);
|
|
109
|
+
m || (m = new B({ operation: n, value: S({}, i(this, g)), damping: r }), this.steps.set(t, m)), m.value = a, m.damping = r || 0, V(this, y, C).call(this);
|
|
59
110
|
}
|
|
60
111
|
calculate() {
|
|
61
|
-
const
|
|
62
|
-
for (const
|
|
63
|
-
|
|
64
|
-
for (const
|
|
65
|
-
const
|
|
66
|
-
if (
|
|
67
|
-
for (const
|
|
68
|
-
const
|
|
69
|
-
|
|
112
|
+
const t = {};
|
|
113
|
+
for (const n in this.base)
|
|
114
|
+
t[n] = this.base[n];
|
|
115
|
+
for (const n of this.steps) {
|
|
116
|
+
const o = n[1];
|
|
117
|
+
if (o.operation === "+")
|
|
118
|
+
for (const r in this.base) {
|
|
119
|
+
const a = o.value[r];
|
|
120
|
+
t[r] += a;
|
|
70
121
|
}
|
|
71
|
-
else if (
|
|
72
|
-
for (const
|
|
73
|
-
const
|
|
74
|
-
|
|
122
|
+
else if (o.operation === "*")
|
|
123
|
+
for (const r in this.base) {
|
|
124
|
+
const a = o.value[r];
|
|
125
|
+
t[r] *= a;
|
|
75
126
|
}
|
|
76
|
-
else if (
|
|
77
|
-
for (const
|
|
78
|
-
const
|
|
79
|
-
|
|
127
|
+
else if (o.operation === "/")
|
|
128
|
+
for (const r in this.base) {
|
|
129
|
+
const a = o.value[r];
|
|
130
|
+
t[r] /= a;
|
|
80
131
|
}
|
|
81
|
-
else if (
|
|
82
|
-
for (const
|
|
83
|
-
const
|
|
84
|
-
|
|
132
|
+
else if (o.operation === "-")
|
|
133
|
+
for (const r in this.base) {
|
|
134
|
+
const a = o.value[r];
|
|
135
|
+
t[r] -= a;
|
|
85
136
|
}
|
|
86
137
|
}
|
|
87
|
-
for (const
|
|
88
|
-
for (const
|
|
89
|
-
o
|
|
90
|
-
this.current =
|
|
138
|
+
for (const n of i(this, p))
|
|
139
|
+
for (const o in t)
|
|
140
|
+
n[o] = t[o];
|
|
141
|
+
this.current = t;
|
|
91
142
|
}
|
|
92
143
|
}
|
|
93
|
-
|
|
144
|
+
g = new WeakMap(), f = new WeakMap(), p = new WeakMap(), y = new WeakSet(), C = function() {
|
|
145
|
+
let t = !1;
|
|
146
|
+
i(this, f).forEach((n) => {
|
|
147
|
+
n.damping && (t = !0);
|
|
148
|
+
}), t ? k.subscribe(i(this, b)) : k.unsubscribe(i(this, b));
|
|
149
|
+
}, b = new WeakMap();
|
|
94
150
|
export {
|
|
95
|
-
|
|
151
|
+
J as Ladder
|
|
96
152
|
};
|
package/lib/layout-box/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var K=(i,e,s)=>{if(!e.has(i))throw TypeError("Cannot "+s)};var t=(i,e,s)=>(K(i,e,"read from private field"),s?s.call(i):e.get(i)),h=(i,e,s)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,s)},n=(i,e,s,
|
|
1
|
+
"use strict";var K=(i,e,s)=>{if(!e.has(i))throw TypeError("Cannot "+s)};var t=(i,e,s)=>(K(i,e,"read from private field"),s?s.call(i):e.get(i)),h=(i,e,s)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,s)},n=(i,e,s,a)=>(K(i,e,"write to private field"),a?a.call(i,s):e.set(i,s),s);var q=(i,e,s)=>(K(i,e,"access private method"),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const rt=require("../css-unit-parser/index.cjs"),I=require("../ladder/index.cjs"),lt=require("../order/index.cjs"),at=require("../scroll-entries/index.cjs"),F=require("../ticker/index.cjs"),G=require("../browser-CpzFX2xg.cjs"),J=require("../dom-qY2LdCVL.cjs"),O=require("../layout-8ryRAMGJ.cjs"),N=require("../element-resizer/index.cjs");function Q(i){const e=Math.sqrt(i.m11*i.m11+i.m12*i.m12+i.m13*i.m13),s=Math.sqrt(i.m21*i.m21+i.m22*i.m22+i.m23*i.m23),a=Math.sqrt(i.m31*i.m31+i.m32*i.m32+i.m33*i.m33),T=Math.atan2(i.m32,i.m33),H=Math.atan2(-i.m31,Math.sqrt(i.m32*i.m32+i.m33*i.m33)),U=Math.atan2(i.m21,i.m11),u=i.m41,b=i.m42*-1,L=i.m43;return{scaleX:e,scaleY:s,scaleZ:a,rotationX:T,rotationY:H,rotationZ:U,translationX:u,translationY:b,translationZ:L}}var o,f,p,_,X,w,x,v,Y,z,M,P,S,d,C,E,R,Z,g,m,y,c,r,l,B,$,A,j,V,tt,D,et,W,k;class ot{constructor(e,s){h(this,B);h(this,A);h(this,V);h(this,D);h(this,o,null);h(this,f,null);h(this,p,[]);h(this,_,"auto");h(this,X,"top");h(this,w,!1);h(this,x,!0);h(this,v,!0);h(this,Y,!0);h(this,z,0);h(this,M,0);h(this,P,0);h(this,S,0);h(this,d,0);h(this,C,0);h(this,E,0);h(this,R,0);h(this,Z,0);h(this,g,{x:0,y:0,z:0});h(this,m,{x:0,y:0,z:0});h(this,y,{x:1,y:1,z:1});h(this,c,new I.Ladder({x:0,y:0,z:0}));h(this,r,new I.Ladder({x:0,y:0,z:0}));h(this,l,new I.Ladder({x:0,y:0,z:0}));h(this,W,()=>{G.isBrowser&&q(this,V,tt).call(this)});h(this,k,()=>{q(this,D,et).call(this),q(this,B,$).call(this)});G.isBrowser&&(n(this,o,J.getElement(e)||document.body),n(this,f,J.getElement(s==null?void 0:s.containerElement)||document.body),n(this,_,(s==null?void 0:s.scrollAxis)||"auto"),n(this,X,(s==null?void 0:s.frontSide)||"top"),n(this,w,(s==null?void 0:s.cartesian)||!1),n(this,x,(s==null?void 0:s.sizeStep)!==void 0?s.sizeStep:!0),n(this,v,(s==null?void 0:s.positionStep)!==void 0?s.positionStep:!0),n(this,Y,(s==null?void 0:s.transformStep)!==void 0?s.transformStep:!0),t(this,l).setStep("_size","+",{x:1,y:1,z:1}),t(this,r).setStep("_position","+",{x:0,y:0,z:0}),t(this,l).setStep("_scale","*",{x:1,y:1,z:1}),t(this,r).setStep("_translation","+",{x:0,y:0,z:0}),t(this,c).setStep("_rotation","+",{x:0,y:0,z:0}),addEventListener("DOMContentLoaded",()=>{at.scrollEntries.getAll(this.element).forEach(a=>{this.setScrollStep(()=>a)})}),F.ticker.subscribe(t(this,k),{order:lt.TICK_ORDER.LAYOUT_BOX,culling:s!=null&&s.culling?this.element:void 0}),N.elementResizer.subscribe(this.element,t(this,W)))}get element(){return t(this,o)}get containerElement(){return t(this,f)}get position(){return t(this,r).current}get rotation(){return t(this,c).current}get scale(){return t(this,l).current}get left(){return t(this,d)}get top(){return t(this,S)}get front(){return t(this,C)}get width(){return t(this,z)}get height(){return t(this,M)}get depth(){return t(this,P)}bindObject(e){e.position&&t(this,r).bind(e.position),e.rotation&&t(this,c).bind(e.rotation),e.scale&&t(this,l).bind(e.scale)}unbindObject(e){e.position&&t(this,r).unbind(e.position),e.rotation&&t(this,c).unbind(e.rotation),e.scale&&t(this,l).unbind(e.scale)}setScrollStep(e){return t(this,p).includes(e)||t(this,p).push(e),()=>this.deleteScrollStep(e)}deleteScrollStep(e){n(this,p,t(this,p).filter(s=>s!==e))}destroy(){F.ticker.unsubscribe(t(this,k)),N.elementResizer.unsubscribe(t(this,W)),t(this,r).close(),t(this,c).close(),t(this,l).close()}setPositionStep(...e){t(this,r).setStep(...e)}getPositionStep(...e){return t(this,r).getStepValue(...e)}setRotationStep(...e){t(this,c).setStep(...e)}getRotationStep(...e){return t(this,c).getStepValue(...e)}setScaleStep(...e){t(this,l).setStep(...e)}getScaleStep(...e){return t(this,l).getStepValue(...e)}deletePositionStep(...e){t(this,r).deleteStep(...e)}deleteRotationStep(...e){t(this,c).deleteStep(...e)}deleteScaleStep(...e){t(this,l).deleteStep(...e)}}o=new WeakMap,f=new WeakMap,p=new WeakMap,_=new WeakMap,X=new WeakMap,w=new WeakMap,x=new WeakMap,v=new WeakMap,Y=new WeakMap,z=new WeakMap,M=new WeakMap,P=new WeakMap,S=new WeakMap,d=new WeakMap,C=new WeakMap,E=new WeakMap,R=new WeakMap,Z=new WeakMap,g=new WeakMap,m=new WeakMap,y=new WeakMap,c=new WeakMap,r=new WeakMap,l=new WeakMap,B=new WeakSet,$=function(){t(this,l).calculate(),t(this,r).calculate(),t(this,c).calculate()},A=new WeakSet,j=function(){t(this,l).setStep("_size","+",{x:t(this,x)?t(this,z):1,y:t(this,x)?t(this,M):1,z:t(this,x)?t(this,P):1});const e=t(this,v)?t(this,E):0,s=t(this,v)?t(this,R):0,a=t(this,v)?t(this,Z):0;t(this,r).setStep("_position","+",{x:e,y:s,z:a}),t(this,Y)?(t(this,l).setStep("_scale","*",{x:t(this,y).x,y:t(this,y).y,z:t(this,y).z}),t(this,r).setStep("_translation","+",{x:t(this,g).x,y:t(this,g).y,z:t(this,g).z}),t(this,c).setStep("_rotation","+",{x:t(this,m).x,y:t(this,m).y,z:t(this,m).z})):(t(this,l).setStep("_scale","*",{x:1,y:1,z:1}),t(this,r).setStep("_translation","+",{x:0,y:0,z:0}),t(this,c).setStep("_rotation","+",{x:0,y:0,z:0}))},V=new WeakSet,tt=function(){const e=getComputedStyle(t(this,o));n(this,z,Math.max(t(this,o).clientWidth,1)),n(this,M,Math.max(t(this,o).clientHeight,1)),n(this,P,Math.max(rt.cssUnitParser.parse(e.getPropertyValue("--depth")||"0px"),1));const s=O.getCumulativeOffsetLeft(t(this,f)),a=O.getCumulativeOffsetTop(t(this,f)),T=t(this,f).clientWidth,H=t(this,f).clientHeight;if(n(this,d,O.getCumulativeOffsetLeft(t(this,o))-s),n(this,S,O.getCumulativeOffsetTop(t(this,o))-a),t(this,_)==="z"){const b=t(this,d)/T,L=t(this,S)/H;n(this,d,(b-Math.floor(b))*T),n(this,S,(L-Math.floor(L))*H),t(this,X)==="left"?n(this,C,O.getCumulativeOffsetLeft(t(this,o))-s-t(this,d)):n(this,C,O.getCumulativeOffsetTop(t(this,o))-a-t(this,S))}if(n(this,d,t(this,d)+t(this,o).clientLeft),n(this,S,t(this,S)+t(this,o).clientTop),t(this,w)){const b=Math.round(T/2),L=Math.round(H/2),st=t(this,z)?Math.round(t(this,z)/2):0,it=t(this,M)?Math.round(t(this,M)/2):0,ht=t(this,d)-b+st,nt=(t(this,S)-L+it)*-1;n(this,E,ht),n(this,R,nt)}else n(this,E,t(this,d)),n(this,R,t(this,S));n(this,Z,t(this,C)*-1);const U=new WebKitCSSMatrix(e.transform),u=Q(U);t(this,g).x=u.translationX,t(this,g).y=u.translationY,t(this,g).z=u.translationZ,t(this,y).x=u.scaleX,t(this,y).y=u.scaleY,t(this,y).z=u.scaleZ,t(this,m).x=u.rotationX,t(this,m).y=u.rotationY,t(this,m).z=u.rotationZ,q(this,A,j).call(this),q(this,B,$).call(this)},D=new WeakSet,et=function(){for(let e=0;e<t(this,p).length;e++){const s=t(this,p)[e]();let a=s.axis;t(this,_)!=="auto"&&(a=t(this,_)),t(this,r).setStep(`_scroll_${e}`,"+",{[a]:s.value*(a==="x"?-1:t(this,w)?1:-1)})}},W=new WeakMap,k=new WeakMap;exports.LayoutBox=ot;exports.decomposeCSSMatrix=Q;
|
package/lib/layout-box/index.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
var
|
|
1
|
+
var K = (i, e, s) => {
|
|
2
2
|
if (!e.has(i))
|
|
3
3
|
throw TypeError("Cannot " + s);
|
|
4
4
|
};
|
|
5
|
-
var t = (i, e, s) => (
|
|
5
|
+
var t = (i, e, s) => (K(i, e, "read from private field"), s ? s.call(i) : e.get(i)), h = (i, e, s) => {
|
|
6
6
|
if (e.has(i))
|
|
7
7
|
throw TypeError("Cannot add the same private member more than once");
|
|
8
8
|
e instanceof WeakSet ? e.add(i) : e.set(i, s);
|
|
9
|
-
}, n = (i, e, s, o) => (
|
|
10
|
-
var
|
|
11
|
-
import { cssUnitParser as
|
|
12
|
-
import { Ladder as
|
|
13
|
-
import { TICK_ORDER as
|
|
14
|
-
import { windowResizer as J } from "../window-resizer/index.js";
|
|
9
|
+
}, n = (i, e, s, o) => (K(i, e, "write to private field"), o ? o.call(i, s) : e.set(i, s), s);
|
|
10
|
+
var P = (i, e, s) => (K(i, e, "access private method"), s);
|
|
11
|
+
import { cssUnitParser as rt } from "../css-unit-parser/index.js";
|
|
12
|
+
import { Ladder as U } from "../ladder/index.js";
|
|
13
|
+
import { TICK_ORDER as lt } from "../order/index.js";
|
|
15
14
|
import { scrollEntries as ot } from "../scroll-entries/index.js";
|
|
16
|
-
import { ticker as
|
|
17
|
-
import { i as
|
|
18
|
-
import { g as
|
|
15
|
+
import { ticker as G } from "../ticker/index.js";
|
|
16
|
+
import { i as J } from "../browser-0zX67oeU.js";
|
|
17
|
+
import { g as N } from "../dom-BY7JhTx5.js";
|
|
19
18
|
import { g as I, a as $ } from "../layout-HoBT_Da2.js";
|
|
19
|
+
import { elementResizer as Q } from "../element-resizer/index.js";
|
|
20
20
|
function at(i) {
|
|
21
21
|
const e = Math.sqrt(
|
|
22
22
|
i.m11 * i.m11 + i.m12 * i.m12 + i.m13 * i.m13
|
|
@@ -24,60 +24,60 @@ function at(i) {
|
|
|
24
24
|
i.m21 * i.m21 + i.m22 * i.m22 + i.m23 * i.m23
|
|
25
25
|
), o = Math.sqrt(
|
|
26
26
|
i.m31 * i.m31 + i.m32 * i.m32 + i.m33 * i.m33
|
|
27
|
-
),
|
|
27
|
+
), R = Math.atan2(i.m32, i.m33), X = Math.atan2(
|
|
28
28
|
-i.m31,
|
|
29
29
|
Math.sqrt(i.m32 * i.m32 + i.m33 * i.m33)
|
|
30
|
-
),
|
|
30
|
+
), k = Math.atan2(i.m21, i.m11), u = i.m41, b = i.m42 * -1, w = i.m43;
|
|
31
31
|
return {
|
|
32
32
|
scaleX: e,
|
|
33
33
|
scaleY: s,
|
|
34
34
|
scaleZ: o,
|
|
35
|
-
rotationX:
|
|
36
|
-
rotationY:
|
|
37
|
-
rotationZ:
|
|
35
|
+
rotationX: R,
|
|
36
|
+
rotationY: X,
|
|
37
|
+
rotationZ: k,
|
|
38
38
|
translationX: u,
|
|
39
|
-
translationY:
|
|
40
|
-
translationZ:
|
|
39
|
+
translationY: b,
|
|
40
|
+
translationZ: w
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
|
-
var a, p, f, _,
|
|
43
|
+
var a, p, f, _, Y, L, v, x, T, y, M, E, S, d, C, H, O, Z, m, z, g, c, r, l, W, F, V, j, B, tt, D, et, q, A;
|
|
44
44
|
class Mt {
|
|
45
45
|
constructor(e, s) {
|
|
46
|
-
h(this,
|
|
47
|
-
h(this, B);
|
|
46
|
+
h(this, W);
|
|
48
47
|
h(this, V);
|
|
48
|
+
h(this, B);
|
|
49
49
|
h(this, D);
|
|
50
50
|
h(this, a, null);
|
|
51
51
|
h(this, p, null);
|
|
52
52
|
h(this, f, []);
|
|
53
53
|
h(this, _, "auto");
|
|
54
|
-
h(this,
|
|
55
|
-
h(this,
|
|
54
|
+
h(this, Y, "top");
|
|
55
|
+
h(this, L, !1);
|
|
56
56
|
h(this, v, !0);
|
|
57
57
|
h(this, x, !0);
|
|
58
58
|
h(this, T, !0);
|
|
59
59
|
h(this, y, 0);
|
|
60
60
|
h(this, M, 0);
|
|
61
|
-
h(this,
|
|
61
|
+
h(this, E, 0);
|
|
62
62
|
h(this, S, 0);
|
|
63
63
|
h(this, d, 0);
|
|
64
|
-
h(this,
|
|
65
|
-
h(this,
|
|
66
|
-
h(this,
|
|
64
|
+
h(this, C, 0);
|
|
65
|
+
h(this, H, 0);
|
|
66
|
+
h(this, O, 0);
|
|
67
67
|
h(this, Z, 0);
|
|
68
68
|
h(this, m, { x: 0, y: 0, z: 0 });
|
|
69
69
|
h(this, z, { x: 0, y: 0, z: 0 });
|
|
70
70
|
h(this, g, { x: 1, y: 1, z: 1 });
|
|
71
|
-
h(this, c, new
|
|
72
|
-
h(this, r, new
|
|
73
|
-
h(this, l, new
|
|
74
|
-
h(this, W, () => {
|
|
75
|
-
Q && L(this, V, et).call(this);
|
|
76
|
-
});
|
|
71
|
+
h(this, c, new U({ x: 0, y: 0, z: 0 }));
|
|
72
|
+
h(this, r, new U({ x: 0, y: 0, z: 0 }));
|
|
73
|
+
h(this, l, new U({ x: 0, y: 0, z: 0 }));
|
|
77
74
|
h(this, q, () => {
|
|
78
|
-
|
|
75
|
+
J && P(this, B, tt).call(this);
|
|
79
76
|
});
|
|
80
|
-
|
|
77
|
+
h(this, A, () => {
|
|
78
|
+
P(this, D, et).call(this), P(this, W, F).call(this);
|
|
79
|
+
});
|
|
80
|
+
J && (n(this, a, N(e) || document.body), n(this, p, N(s == null ? void 0 : s.containerElement) || document.body), n(this, _, (s == null ? void 0 : s.scrollAxis) || "auto"), n(this, Y, (s == null ? void 0 : s.frontSide) || "top"), n(this, L, (s == null ? void 0 : s.cartesian) || !1), n(this, v, (s == null ? void 0 : s.sizeStep) !== void 0 ? s.sizeStep : !0), n(this, x, (s == null ? void 0 : s.positionStep) !== void 0 ? s.positionStep : !0), n(this, T, (s == null ? void 0 : s.transformStep) !== void 0 ? s.transformStep : !0), t(this, l).setStep("_size", "+", {
|
|
81
81
|
x: 1,
|
|
82
82
|
y: 1,
|
|
83
83
|
z: 1
|
|
@@ -101,10 +101,10 @@ class Mt {
|
|
|
101
101
|
ot.getAll(this.element).forEach((o) => {
|
|
102
102
|
this.setScrollStep(() => o);
|
|
103
103
|
});
|
|
104
|
-
}),
|
|
105
|
-
order:
|
|
104
|
+
}), G.subscribe(t(this, A), {
|
|
105
|
+
order: lt.LAYOUT_BOX,
|
|
106
106
|
culling: s != null && s.culling ? this.element : void 0
|
|
107
|
-
}),
|
|
107
|
+
}), Q.subscribe(this.element, t(this, q)));
|
|
108
108
|
}
|
|
109
109
|
get element() {
|
|
110
110
|
return t(this, a);
|
|
@@ -128,7 +128,7 @@ class Mt {
|
|
|
128
128
|
return t(this, S);
|
|
129
129
|
}
|
|
130
130
|
get front() {
|
|
131
|
-
return t(this,
|
|
131
|
+
return t(this, C);
|
|
132
132
|
}
|
|
133
133
|
get width() {
|
|
134
134
|
return t(this, y);
|
|
@@ -137,7 +137,7 @@ class Mt {
|
|
|
137
137
|
return t(this, M);
|
|
138
138
|
}
|
|
139
139
|
get depth() {
|
|
140
|
-
return t(this,
|
|
140
|
+
return t(this, E);
|
|
141
141
|
}
|
|
142
142
|
bindObject(e) {
|
|
143
143
|
e.position && t(this, r).bind(e.position), e.rotation && t(this, c).bind(e.rotation), e.scale && t(this, l).bind(e.scale);
|
|
@@ -154,7 +154,7 @@ class Mt {
|
|
|
154
154
|
));
|
|
155
155
|
}
|
|
156
156
|
destroy() {
|
|
157
|
-
|
|
157
|
+
G.unsubscribe(t(this, A)), Q.unsubscribe(t(this, q)), t(this, r).close(), t(this, c).close(), t(this, l).close();
|
|
158
158
|
}
|
|
159
159
|
setPositionStep(...e) {
|
|
160
160
|
t(this, r).setStep(...e);
|
|
@@ -184,15 +184,15 @@ class Mt {
|
|
|
184
184
|
t(this, l).deleteStep(...e);
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
|
-
a = new WeakMap(), p = new WeakMap(), f = new WeakMap(), _ = new WeakMap(),
|
|
187
|
+
a = new WeakMap(), p = new WeakMap(), f = new WeakMap(), _ = new WeakMap(), Y = new WeakMap(), L = new WeakMap(), v = new WeakMap(), x = new WeakMap(), T = new WeakMap(), y = new WeakMap(), M = new WeakMap(), E = new WeakMap(), S = new WeakMap(), d = new WeakMap(), C = new WeakMap(), H = new WeakMap(), O = new WeakMap(), Z = new WeakMap(), m = new WeakMap(), z = new WeakMap(), g = new WeakMap(), c = new WeakMap(), r = new WeakMap(), l = new WeakMap(), W = new WeakSet(), F = function() {
|
|
188
188
|
t(this, l).calculate(), t(this, r).calculate(), t(this, c).calculate();
|
|
189
|
-
},
|
|
189
|
+
}, V = new WeakSet(), j = function() {
|
|
190
190
|
t(this, l).setStep("_size", "+", {
|
|
191
191
|
x: t(this, v) ? t(this, y) : 1,
|
|
192
192
|
y: t(this, v) ? t(this, M) : 1,
|
|
193
|
-
z: t(this, v) ? t(this,
|
|
193
|
+
z: t(this, v) ? t(this, E) : 1
|
|
194
194
|
});
|
|
195
|
-
const e = t(this, x) ? t(this,
|
|
195
|
+
const e = t(this, x) ? t(this, H) : 0, s = t(this, x) ? t(this, O) : 0, o = t(this, x) ? t(this, Z) : 0;
|
|
196
196
|
t(this, r).setStep("_position", "+", {
|
|
197
197
|
x: e,
|
|
198
198
|
y: s,
|
|
@@ -222,34 +222,34 @@ a = new WeakMap(), p = new WeakMap(), f = new WeakMap(), _ = new WeakMap(), R =
|
|
|
222
222
|
y: 0,
|
|
223
223
|
z: 0
|
|
224
224
|
}));
|
|
225
|
-
},
|
|
225
|
+
}, B = new WeakSet(), tt = function() {
|
|
226
226
|
const e = getComputedStyle(t(this, a));
|
|
227
|
-
n(this, y, Math.max(t(this, a).clientWidth, 1)), n(this, M, Math.max(t(this, a).clientHeight, 1)), n(this,
|
|
228
|
-
|
|
227
|
+
n(this, y, Math.max(t(this, a).clientWidth, 1)), n(this, M, Math.max(t(this, a).clientHeight, 1)), n(this, E, Math.max(
|
|
228
|
+
rt.parse(e.getPropertyValue("--depth") || "0px"),
|
|
229
229
|
1
|
|
230
230
|
));
|
|
231
|
-
const s = I(t(this, p)), o = $(t(this, p)),
|
|
231
|
+
const s = I(t(this, p)), o = $(t(this, p)), R = t(this, p).clientWidth, X = t(this, p).clientHeight;
|
|
232
232
|
if (n(this, d, I(t(this, a)) - s), n(this, S, $(t(this, a)) - o), t(this, _) === "z") {
|
|
233
|
-
const
|
|
234
|
-
n(this, d, (
|
|
233
|
+
const b = t(this, d) / R, w = t(this, S) / X;
|
|
234
|
+
n(this, d, (b - Math.floor(b)) * R), n(this, S, (w - Math.floor(w)) * X), t(this, Y) === "left" ? n(this, C, I(t(this, a)) - s - t(this, d)) : n(this, C, $(t(this, a)) - o - t(this, S));
|
|
235
235
|
}
|
|
236
|
-
if (n(this, d, t(this, d) + t(this, a).clientLeft), n(this, S, t(this, S) + t(this, a).clientTop), t(this,
|
|
237
|
-
const
|
|
238
|
-
n(this,
|
|
236
|
+
if (n(this, d, t(this, d) + t(this, a).clientLeft), n(this, S, t(this, S) + t(this, a).clientTop), t(this, L)) {
|
|
237
|
+
const b = Math.round(R / 2), w = Math.round(X / 2), st = t(this, y) ? Math.round(t(this, y) / 2) : 0, it = t(this, M) ? Math.round(t(this, M) / 2) : 0, ht = t(this, d) - b + st, nt = (t(this, S) - w + it) * -1;
|
|
238
|
+
n(this, H, ht), n(this, O, nt);
|
|
239
239
|
} else
|
|
240
|
-
n(this,
|
|
241
|
-
n(this, Z, t(this,
|
|
242
|
-
const
|
|
243
|
-
t(this, m).x = u.translationX, t(this, m).y = u.translationY, t(this, m).z = u.translationZ, t(this, g).x = u.scaleX, t(this, g).y = u.scaleY, t(this, g).z = u.scaleZ, t(this, z).x = u.rotationX, t(this, z).y = u.rotationY, t(this, z).z = u.rotationZ,
|
|
244
|
-
}, D = new WeakSet(),
|
|
240
|
+
n(this, H, t(this, d)), n(this, O, t(this, S));
|
|
241
|
+
n(this, Z, t(this, C) * -1);
|
|
242
|
+
const k = new WebKitCSSMatrix(e.transform), u = at(k);
|
|
243
|
+
t(this, m).x = u.translationX, t(this, m).y = u.translationY, t(this, m).z = u.translationZ, t(this, g).x = u.scaleX, t(this, g).y = u.scaleY, t(this, g).z = u.scaleZ, t(this, z).x = u.rotationX, t(this, z).y = u.rotationY, t(this, z).z = u.rotationZ, P(this, V, j).call(this), P(this, W, F).call(this);
|
|
244
|
+
}, D = new WeakSet(), et = function() {
|
|
245
245
|
for (let e = 0; e < t(this, f).length; e++) {
|
|
246
246
|
const s = t(this, f)[e]();
|
|
247
247
|
let o = s.axis;
|
|
248
248
|
t(this, _) !== "auto" && (o = t(this, _)), t(this, r).setStep(`_scroll_${e}`, "+", {
|
|
249
|
-
[o]: s.value * (o === "x" ? -1 : t(this,
|
|
249
|
+
[o]: s.value * (o === "x" ? -1 : t(this, L) ? 1 : -1)
|
|
250
250
|
});
|
|
251
251
|
}
|
|
252
|
-
},
|
|
252
|
+
}, q = new WeakMap(), A = new WeakMap();
|
|
253
253
|
export {
|
|
254
254
|
Mt as LayoutBox,
|
|
255
255
|
at as decomposeCSSMatrix
|