aptechka 0.1.3 → 0.1.6

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.
Files changed (210) hide show
  1. package/lib/Animated-CJcYqJzq.js +130 -0
  2. package/lib/Animated-DyZuTEQE.cjs +1 -0
  3. package/lib/Damped-AHRBHNEQ.cjs +1 -0
  4. package/lib/Damped-Csj-9_gH.js +36 -0
  5. package/lib/Derived-Bc88XJ8J.js +27 -0
  6. package/lib/Derived-SjPdLJiZ.cjs +1 -0
  7. package/lib/ElementConstructor-9f-12v7T.cjs +1 -0
  8. package/lib/ElementConstructor-CoKM2CTK.js +228 -0
  9. package/lib/{SourceManager-vXInLlh_.js → SourceManager-BoP9RAJr.js} +26 -26
  10. package/lib/SourceManager-CI6NfLzW.cjs +1 -0
  11. package/lib/Store-D0_rDIsE.cjs +1 -0
  12. package/lib/Store-JOKrNVEr.js +152 -0
  13. package/lib/Viewport-COsaberc.cjs +1 -0
  14. package/lib/Viewport-CXY5xcGJ.js +129 -0
  15. package/lib/WheelControls-CX9WUbBC.js +83 -0
  16. package/lib/WheelControls-CfDeGCOU.cjs +1 -0
  17. package/lib/abstract-elements/AbstractButtonElement.d.ts +5 -0
  18. package/lib/abstract-elements/index.cjs +1 -0
  19. package/lib/abstract-elements/index.d.ts +1 -0
  20. package/lib/abstract-elements/index.js +27 -0
  21. package/lib/accordion/AccordionElement.d.ts +24 -1
  22. package/lib/accordion/index.cjs +1 -0
  23. package/lib/accordion/index.js +166 -0
  24. package/lib/animation/Animated.d.ts +9 -12
  25. package/lib/animation/Tweened.d.ts +1 -1
  26. package/lib/animation/index.cjs +1 -1
  27. package/lib/animation/index.d.ts +1 -1
  28. package/lib/animation/index.js +11 -17
  29. package/lib/attribute/index.cjs +1 -1
  30. package/lib/attribute/index.d.ts +8 -4
  31. package/lib/attribute/index.js +44 -35
  32. package/lib/canvas/index.cjs +1 -0
  33. package/lib/{canvas-2d → canvas}/index.d.ts +4 -3
  34. package/lib/canvas/index.js +97 -0
  35. package/lib/connector/index.cjs +1 -0
  36. package/lib/connector/index.d.ts +15 -0
  37. package/lib/connector/index.js +54 -0
  38. package/lib/controls/WheelControls.d.ts +3 -2
  39. package/lib/controls/index.cjs +1 -1
  40. package/lib/controls/index.js +23 -27
  41. package/lib/createStylesheet-BON7aJYs.js +10 -0
  42. package/lib/createStylesheet-uicRVW05.cjs +1 -0
  43. package/lib/createTheme-BMH9cRrS.js +15 -0
  44. package/lib/createTheme-COo8IzPG.cjs +1 -0
  45. package/lib/custom-element/index.cjs +1 -1
  46. package/lib/custom-element/index.d.ts +3 -1
  47. package/lib/custom-element/index.js +19 -9
  48. package/lib/device/Viewport.d.ts +1 -1
  49. package/lib/device/index.cjs +1 -1
  50. package/lib/device/index.js +5 -121
  51. package/lib/element-constructor/ElementConstructor.d.ts +15 -17
  52. package/lib/element-constructor/createStylesheet.d.ts +2 -0
  53. package/lib/element-constructor/createTheme.d.ts +12 -0
  54. package/lib/element-constructor/htmlTags.d.ts +115 -113
  55. package/lib/element-constructor/index.cjs +1 -1
  56. package/lib/element-constructor/index.d.ts +2 -1
  57. package/lib/element-constructor/index.js +387 -1136
  58. package/lib/element-constructor/svgTags.d.ts +63 -63
  59. package/lib/element-resizer/index.cjs +1 -0
  60. package/lib/element-resizer/index.d.ts +9 -0
  61. package/lib/element-resizer/index.js +64 -0
  62. package/lib/en3/attachments/En3SourceManager.d.ts +2 -2
  63. package/lib/en3/index.cjs +7 -7
  64. package/lib/en3/index.js +252 -242
  65. package/lib/en3/objects/En3Clip.d.ts +2 -2
  66. package/lib/events-CoqmkUxo.js +11 -0
  67. package/lib/events-D68xg4dy.cjs +1 -0
  68. package/lib/file-EevnUtRj.cjs +1 -0
  69. package/lib/file-lxi_oXJf.js +13 -0
  70. package/lib/htmlTags-BCNUG7oK.js +683 -0
  71. package/lib/htmlTags-BSQys9wH.cjs +1 -0
  72. package/lib/image/index.cjs +1 -1
  73. package/lib/image/index.js +13 -20
  74. package/lib/index-DgtdcBEI.js +310 -0
  75. package/lib/index-i_Ki9M-w.cjs +9 -0
  76. package/lib/intersector/index.cjs +1 -1
  77. package/lib/intersector/index.d.ts +2 -1
  78. package/lib/intersector/index.js +33 -22
  79. package/lib/jsx/ComponentElement.d.ts +17 -0
  80. package/lib/jsx/h.d.ts +8 -0
  81. package/lib/jsx/hooks.d.ts +25 -0
  82. package/lib/jsx/index.cjs +1 -0
  83. package/lib/jsx/index.d.ts +4 -0
  84. package/lib/jsx/index.js +116 -0
  85. package/lib/jsx/render.d.ts +2 -0
  86. package/lib/jsx/type.d.ts +186 -0
  87. package/lib/ladder/index.cjs +1 -1
  88. package/lib/ladder/index.js +3 -4
  89. package/lib/layout-box/index.cjs +1 -1
  90. package/lib/layout-box/index.d.ts +1 -0
  91. package/lib/layout-box/index.js +113 -99
  92. package/lib/loading/index.cjs +1 -1
  93. package/lib/loading/index.js +1 -1
  94. package/lib/media/index.cjs +1 -1
  95. package/lib/media/index.js +17 -20
  96. package/lib/modal/ModalElement.d.ts +12 -0
  97. package/lib/modal/index.cjs +1 -0
  98. package/lib/modal/index.d.ts +1 -0
  99. package/lib/modal/index.js +144 -0
  100. package/lib/morph/index.cjs +1 -1
  101. package/lib/morph/index.js +1 -1
  102. package/lib/number-Bo5RdrA1.js +23 -0
  103. package/lib/number-yVpzMdbQ.cjs +1 -0
  104. package/lib/popover/PopoverButtonElement.d.ts +14 -0
  105. package/lib/popover/PopoverElement.d.ts +19 -0
  106. package/lib/popover/index.cjs +1 -0
  107. package/lib/popover/index.d.ts +2 -0
  108. package/lib/popover/index.js +122 -0
  109. package/lib/router/index.cjs +1 -1
  110. package/lib/router/index.js +2 -2
  111. package/lib/scroll/ScrollElement.d.ts +5 -3
  112. package/lib/scroll/index.cjs +1 -71
  113. package/lib/scroll/index.js +349 -314
  114. package/lib/scroll-entries/index.cjs +1 -1
  115. package/lib/scroll-entries/index.d.ts +1 -1
  116. package/lib/scroll-entries/index.js +4 -2
  117. package/lib/select/SelectElement.d.ts +25 -0
  118. package/lib/select/SelectHeadElement.d.ts +12 -0
  119. package/lib/select/SelectOptionElement.d.ts +13 -0
  120. package/lib/select/SelectUserElement.d.ts +7 -0
  121. package/lib/select/index.cjs +1 -0
  122. package/lib/select/index.d.ts +4 -0
  123. package/lib/select/index.js +7 -0
  124. package/lib/source/SourceClass.d.ts +1 -1
  125. package/lib/source/index.cjs +2 -2
  126. package/lib/source/index.js +13 -18
  127. package/lib/store/CumulativeResource.d.ts +2 -2
  128. package/lib/store/Resource.d.ts +1 -1
  129. package/lib/store/Store.d.ts +55 -9
  130. package/lib/store/StoreRegistry.d.ts +2 -2
  131. package/lib/store/index.cjs +1 -1
  132. package/lib/store/index.d.ts +2 -1
  133. package/lib/store/index.js +105 -66
  134. package/lib/string-BrDhnNUL.js +39 -0
  135. package/lib/string-DzUwFYSS.cjs +1 -0
  136. package/lib/studio/StudioElement.d.ts +3 -0
  137. package/lib/studio/index.cjs +10 -0
  138. package/lib/studio/index.js +1004 -0
  139. package/lib/studio/studioStorage.d.ts +14 -0
  140. package/lib/studio/tweaker/TweakerBooleanManagerElement.d.ts +10 -0
  141. package/lib/studio/tweaker/TweakerColorManagerElement.d.ts +10 -0
  142. package/lib/studio/tweaker/TweakerElement.d.ts +17 -0
  143. package/lib/studio/tweaker/TweakerFieldElement.d.ts +21 -0
  144. package/lib/studio/tweaker/TweakerFolderElement.d.ts +22 -0
  145. package/lib/studio/tweaker/TweakerLinkManagerElement.d.ts +10 -0
  146. package/lib/studio/tweaker/TweakerNumberManagerElement.d.ts +17 -0
  147. package/lib/studio/tweaker/TweakerRangeManagerElement.d.ts +10 -0
  148. package/lib/studio/tweaker/TweakerSelectManagerElement.d.ts +10 -0
  149. package/lib/studio/tweaker/TweakerStoreManagerElement.d.ts +10 -0
  150. package/lib/studio/tweaker/TweakerStringManagerElement.d.ts +12 -0
  151. package/lib/studio/tweaker/tweakerManagerConstructors.d.ts +5 -0
  152. package/lib/style-At6aDoqG.cjs +1 -0
  153. package/lib/style-j2TwriJ_.js +10 -0
  154. package/lib/theme/index.cjs +1 -0
  155. package/lib/theme/index.d.ts +90 -0
  156. package/lib/theme/index.js +34 -0
  157. package/lib/ticker/index.cjs +1 -1
  158. package/lib/ticker/index.js +1 -1
  159. package/lib/utils/events.d.ts +6 -0
  160. package/lib/utils/index.cjs +1 -1
  161. package/lib/utils/index.d.ts +8 -7
  162. package/lib/utils/index.js +95 -105
  163. package/lib/utils/number.d.ts +2 -3
  164. package/lib/utils/string.d.ts +1 -0
  165. package/lib/utils/style.d.ts +2 -0
  166. package/lib/utils/ts-utility.d.ts +2 -0
  167. package/lib/video/index.cjs +1 -1
  168. package/lib/video/index.js +13 -20
  169. package/lib/window-resizer/index.cjs +1 -0
  170. package/lib/window-resizer/index.d.ts +9 -0
  171. package/lib/window-resizer/index.js +46 -0
  172. package/package.json +91 -28
  173. package/lib/Damped-DdPj4Sho.cjs +0 -1
  174. package/lib/Damped-H3PuZwKV.js +0 -152
  175. package/lib/SourceManager-tmQlXkSD.cjs +0 -1
  176. package/lib/Store-qq7IjRLE.js +0 -136
  177. package/lib/Store-txkR3wXU.cjs +0 -1
  178. package/lib/WheelControls-9ZQKSYYq.js +0 -83
  179. package/lib/WheelControls-TYhGU6oA.cjs +0 -1
  180. package/lib/canvas-2d/index.cjs +0 -5
  181. package/lib/canvas-2d/index.js +0 -90
  182. package/lib/element-constructor/specialObjects.d.ts +0 -2
  183. package/lib/measurer/CumulativeOffsetLeft.d.ts +0 -4
  184. package/lib/measurer/CumulativeOffsetTop.d.ts +0 -4
  185. package/lib/measurer/Meaurer.d.ts +0 -8
  186. package/lib/measurer/index.cjs +0 -1
  187. package/lib/measurer/index.d.ts +0 -3
  188. package/lib/measurer/index.js +0 -48
  189. package/lib/number-2bR0KBcX.cjs +0 -1
  190. package/lib/number-bCHB2GAD.js +0 -31
  191. package/lib/resizer/index.cjs +0 -1
  192. package/lib/resizer/index.d.ts +0 -10
  193. package/lib/resizer/index.js +0 -45
  194. package/lib/string-GmxZA5Nq.js +0 -31
  195. package/lib/string-WmNOGq16.cjs +0 -1
  196. package/lib/utils/dev.d.ts +0 -3
  197. /package/lib/{attributes-w0u-KiIb.js → attributes-69we3byR.js} +0 -0
  198. /package/lib/{attributes-_2U65GDl.cjs → attributes-Bf2svn4j.cjs} +0 -0
  199. /package/lib/{browser-S4eq8AeN.js → browser-0zX67oeU.js} +0 -0
  200. /package/lib/{browser-QbF6EW-w.cjs → browser-CpzFX2xg.cjs} +0 -0
  201. /package/lib/{dom-bHEwc_xV.js → dom-BY7JhTx5.js} +0 -0
  202. /package/lib/{dom-QhWsdQS2.cjs → dom-qY2LdCVL.cjs} +0 -0
  203. /package/lib/{easings-uF-tgahf.js → easings-BKi40vHz.js} +0 -0
  204. /package/lib/{easings-_wFs9ZWc.cjs → easings-DsS5-Kqc.cjs} +0 -0
  205. /package/lib/{function-zwSFehNd.js → function-C10DGppn.js} +0 -0
  206. /package/lib/{function-QP7IreXR.cjs → function-MthRj-GJ.cjs} +0 -0
  207. /package/lib/{layout-rZzbsLPd.cjs → layout-8ryRAMGJ.cjs} +0 -0
  208. /package/lib/{layout-5SJlcXTY.js → layout-HoBT_Da2.js} +0 -0
  209. /package/lib/{math-_a3IpKOc.js → math-BOBiC4TN.js} +0 -0
  210. /package/lib/{math-FNUBmQPK.cjs → math-GDWEqu7y.cjs} +0 -0
@@ -0,0 +1,116 @@
1
+ var j = Object.defineProperty, x = Object.defineProperties;
2
+ var F = Object.getOwnPropertyDescriptors;
3
+ var b = Object.getOwnPropertySymbols;
4
+ var L = Object.prototype.hasOwnProperty, O = Object.prototype.propertyIsEnumerable;
5
+ var f = (e, n, t) => n in e ? j(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t, d = (e, n) => {
6
+ for (var t in n || (n = {}))
7
+ L.call(n, t) && f(e, t, n[t]);
8
+ if (b)
9
+ for (var t of b(n))
10
+ O.call(n, t) && f(e, t, n[t]);
11
+ return e;
12
+ }, h = (e, n) => x(e, F(n));
13
+ var l = (e, n, t) => (f(e, typeof n != "symbol" ? n + "" : n, t), t), w = (e, n, t) => {
14
+ if (!n.has(e))
15
+ throw TypeError("Cannot " + t);
16
+ };
17
+ var E = (e, n, t) => (w(e, n, "read from private field"), t ? t.call(e) : n.get(e)), k = (e, n, t) => {
18
+ if (n.has(e))
19
+ throw TypeError("Cannot add the same private member more than once");
20
+ n instanceof WeakSet ? n.add(e) : n.set(e, t);
21
+ }, v = (e, n, t, s) => (w(e, n, "write to private field"), s ? s.call(e, t) : n.set(e, t), t);
22
+ import { E as m } from "../ElementConstructor-CoKM2CTK.js";
23
+ import { g as D } from "../dom-BY7JhTx5.js";
24
+ import "../window-resizer/index.js";
25
+ import "../element-resizer/index.js";
26
+ import "../Store-JOKrNVEr.js";
27
+ import "../intersector/index.js";
28
+ import "../ticker/index.js";
29
+ import { i as y } from "../browser-0zX67oeU.js";
30
+ let C = null;
31
+ var a;
32
+ class N extends HTMLElement {
33
+ constructor(t) {
34
+ super();
35
+ l(this, "createCallbacks", /* @__PURE__ */ new Set());
36
+ l(this, "connectCallbacks", /* @__PURE__ */ new Set());
37
+ l(this, "disconnectCallbacks", /* @__PURE__ */ new Set());
38
+ l(this, "stores", /* @__PURE__ */ new Set());
39
+ k(this, a, void 0);
40
+ C = this, v(this, a, t(this)), this.createCallbacks.forEach((s) => {
41
+ s(this);
42
+ });
43
+ }
44
+ connectedCallback() {
45
+ this.connectCallbacks.forEach((t) => {
46
+ t(this) && this.disconnectCallbacks.add(t);
47
+ });
48
+ }
49
+ disconnectedCallback() {
50
+ this.disconnectCallbacks.forEach((t) => {
51
+ t(this);
52
+ }), E(this, a).destroy(), this.disconnectCallbacks.clear(), this.connectCallbacks.clear(), this.stores.forEach((t) => t.close()), this.stores.clear();
53
+ }
54
+ }
55
+ a = new WeakMap();
56
+ let r;
57
+ function g(e, n, ...t) {
58
+ if (typeof e == "function") {
59
+ if (e.isFragment)
60
+ return e(h(d({}, n), { children: t }));
61
+ const o = `component-${e.name.toLowerCase()}`;
62
+ let c = customElements.get(
63
+ o
64
+ );
65
+ return c || (c = class extends N {
66
+ constructor(i) {
67
+ super(i);
68
+ }
69
+ }, customElements.define(o, c)), new c((i) => {
70
+ const p = e(h(d({}, n), { children: t }));
71
+ let u = null;
72
+ return !r && p ? u = new m(i, {
73
+ children: p
74
+ }) : r && (r.shadow && i.attachShadow({ mode: "open" }), u = new m(
75
+ i,
76
+ r
77
+ )), r = void 0, u;
78
+ });
79
+ }
80
+ const s = {
81
+ shadowChildren: t
82
+ };
83
+ if (n)
84
+ for (const o of Object.keys(n)) {
85
+ const c = n[o];
86
+ o.startsWith("on") ? (s.events || (s.events = {}), s.events[o.split("on")[1].toLowerCase()] = c) : o === "class" ? s.class = c : o === "style" ? s.style = c : o === "ref" ? s.ref = c : o === "shadow" ? s.shadow = !0 : (s.attributes || (s.attributes = {}), s.attributes[o] = c);
87
+ }
88
+ return e === "component" ? (r = s, S({ children: t })) : new m({
89
+ [e]: s
90
+ });
91
+ }
92
+ function S({
93
+ children: e
94
+ }) {
95
+ return new m(document.createDocumentFragment(), {
96
+ children: e
97
+ });
98
+ }
99
+ S.isFragment = !0;
100
+ function G(e, n) {
101
+ const t = D(e), s = /* @__PURE__ */ g(n, null);
102
+ t && s instanceof Node && t.appendChild(s);
103
+ }
104
+ function I(e) {
105
+ y && C.connectCallbacks.add(e);
106
+ }
107
+ function J(e) {
108
+ y && C.disconnectCallbacks.add(e);
109
+ }
110
+ export {
111
+ S as Fragment,
112
+ g as h,
113
+ G as render,
114
+ I as useConnect,
115
+ J as useDisconnect
116
+ };
@@ -0,0 +1,2 @@
1
+ import { ElementOrSelector } from '../utils';
2
+ export declare function render(elementOrSelector: ElementOrSelector, App: JSX.Component): void;
@@ -0,0 +1,186 @@
1
+ import type { ElementConstructor, ElementConstructorClass, ElementConstructorEventMap, ElementConstructorStyle, ElementConstructorTagNames } from '../element-constructor';
2
+ import type { Store } from '../store';
3
+ import type { Split } from '../utils';
4
+ type StoreOr<T> = T | Store<T | null | undefined>;
5
+ declare global {
6
+ namespace JSX {
7
+ type ComponentChild = Node | string | number | boolean | undefined | null | void | Store<any> | ElementConstructor;
8
+ type ComponentChildren = ComponentChild | ComponentChild[];
9
+ interface BaseProps {
10
+ children?: ComponentChildren;
11
+ }
12
+ type Component<TProps extends object = object> = (props?: BaseProps & TProps) => Element;
13
+ type Element = ComponentChild;
14
+ interface ElementAttributesProperty {
15
+ props: any;
16
+ }
17
+ interface ElementChildrenAttribute {
18
+ children: any;
19
+ }
20
+ type HTMLOrSVGEvents = Partial<{
21
+ [K in `on${Capitalize<keyof ElementConstructorEventMap>}`]: (event: ElementConstructorEventMap[Extract<Uncapitalize<Split<K, 'on'>[1]>, keyof ElementConstructorEventMap>]) => void;
22
+ }>;
23
+ interface DOMAttributes {
24
+ children?: ComponentChildren;
25
+ ref?: {
26
+ current: any;
27
+ };
28
+ }
29
+ interface HTMLAttributes extends DOMAttributes {
30
+ accept?: StoreOr<string>;
31
+ acceptCharset?: StoreOr<string>;
32
+ accessKey?: StoreOr<string>;
33
+ action?: StoreOr<string>;
34
+ allowFullScreen?: StoreOr<boolean>;
35
+ allowTransparency?: StoreOr<boolean>;
36
+ alt?: StoreOr<string>;
37
+ as?: StoreOr<string>;
38
+ async?: StoreOr<boolean>;
39
+ autocomplete?: StoreOr<string>;
40
+ autoComplete?: StoreOr<string>;
41
+ autocorrect?: StoreOr<string>;
42
+ autoCorrect?: StoreOr<string>;
43
+ autofocus?: StoreOr<boolean>;
44
+ autoFocus?: StoreOr<boolean>;
45
+ autoPlay?: StoreOr<boolean>;
46
+ capture?: StoreOr<boolean | string>;
47
+ cellPadding?: StoreOr<number | string>;
48
+ cellSpacing?: StoreOr<number | string>;
49
+ charSet?: StoreOr<string>;
50
+ challenge?: StoreOr<string>;
51
+ checked?: StoreOr<boolean>;
52
+ class?: ElementConstructorClass;
53
+ cols?: StoreOr<number>;
54
+ colSpan?: StoreOr<number>;
55
+ content?: StoreOr<string>;
56
+ contentEditable?: StoreOr<boolean>;
57
+ contextMenu?: StoreOr<string>;
58
+ controls?: StoreOr<boolean>;
59
+ controlsList?: StoreOr<string>;
60
+ coords?: StoreOr<string>;
61
+ crossOrigin?: StoreOr<string>;
62
+ data?: StoreOr<string>;
63
+ dateTime?: StoreOr<string>;
64
+ default?: StoreOr<boolean>;
65
+ defer?: StoreOr<boolean>;
66
+ dir?: StoreOr<'auto' | 'rtl' | 'ltr'>;
67
+ disabled?: StoreOr<boolean>;
68
+ disableRemotePlayback?: StoreOr<boolean>;
69
+ download?: StoreOr<string>;
70
+ draggable?: StoreOr<boolean>;
71
+ encType?: StoreOr<string>;
72
+ form?: StoreOr<string>;
73
+ formAction?: StoreOr<string>;
74
+ formEncType?: StoreOr<string>;
75
+ formMethod?: StoreOr<string>;
76
+ formNoValidate?: StoreOr<boolean>;
77
+ formTarget?: StoreOr<string>;
78
+ frameBorder?: StoreOr<number | string>;
79
+ headers?: StoreOr<string>;
80
+ height?: StoreOr<number | string>;
81
+ hidden?: StoreOr<boolean>;
82
+ high?: StoreOr<number>;
83
+ href?: StoreOr<string>;
84
+ hrefLang?: StoreOr<string>;
85
+ for?: StoreOr<string>;
86
+ htmlFor?: StoreOr<string>;
87
+ httpEquiv?: StoreOr<string>;
88
+ icon?: StoreOr<string>;
89
+ id?: StoreOr<string>;
90
+ inputMode?: StoreOr<string>;
91
+ integrity?: StoreOr<string>;
92
+ is?: StoreOr<string>;
93
+ keyParams?: StoreOr<string>;
94
+ keyType?: StoreOr<string>;
95
+ kind?: StoreOr<string>;
96
+ label?: StoreOr<string>;
97
+ lang?: StoreOr<string>;
98
+ list?: StoreOr<string>;
99
+ loading?: StoreOr<'eager' | 'lazy'>;
100
+ loop?: StoreOr<boolean>;
101
+ low?: StoreOr<number>;
102
+ manifest?: StoreOr<string>;
103
+ marginHeight?: StoreOr<number>;
104
+ marginWidth?: StoreOr<number>;
105
+ max?: StoreOr<number | string>;
106
+ maxLength?: StoreOr<number>;
107
+ media?: StoreOr<string>;
108
+ mediaGroup?: StoreOr<string>;
109
+ method?: StoreOr<string>;
110
+ min?: StoreOr<number | string>;
111
+ minLength?: StoreOr<number>;
112
+ multiple?: StoreOr<boolean>;
113
+ muted?: StoreOr<boolean>;
114
+ name?: StoreOr<string>;
115
+ nonce?: StoreOr<string>;
116
+ noValidate?: StoreOr<boolean>;
117
+ open?: StoreOr<boolean>;
118
+ optimum?: StoreOr<number>;
119
+ pattern?: StoreOr<string>;
120
+ placeholder?: StoreOr<string>;
121
+ playsInline?: StoreOr<boolean>;
122
+ poster?: StoreOr<string>;
123
+ preload?: StoreOr<string>;
124
+ radioGroup?: StoreOr<string>;
125
+ readOnly?: StoreOr<boolean>;
126
+ rel?: StoreOr<string>;
127
+ required?: StoreOr<boolean>;
128
+ role?: StoreOr<string>;
129
+ rows?: StoreOr<number>;
130
+ rowSpan?: StoreOr<number>;
131
+ sandbox?: StoreOr<string>;
132
+ scope?: StoreOr<string>;
133
+ scoped?: StoreOr<boolean>;
134
+ scrolling?: StoreOr<string>;
135
+ seamless?: StoreOr<boolean>;
136
+ selected?: StoreOr<boolean>;
137
+ shape?: StoreOr<string>;
138
+ size?: StoreOr<number>;
139
+ sizes?: StoreOr<string>;
140
+ slot?: StoreOr<string>;
141
+ span?: StoreOr<number>;
142
+ spellcheck?: StoreOr<boolean>;
143
+ src?: StoreOr<string>;
144
+ srcset?: StoreOr<string>;
145
+ srcDoc?: StoreOr<string>;
146
+ srcLang?: StoreOr<string>;
147
+ srcSet?: StoreOr<string>;
148
+ start?: StoreOr<number>;
149
+ step?: StoreOr<number | string>;
150
+ style?: ElementConstructorStyle;
151
+ summary?: StoreOr<string>;
152
+ tabIndex?: StoreOr<number>;
153
+ target?: StoreOr<string>;
154
+ title?: StoreOr<string>;
155
+ type?: StoreOr<string>;
156
+ useMap?: StoreOr<string>;
157
+ value?: StoreOr<string | string[] | number>;
158
+ volume?: StoreOr<string | number>;
159
+ width?: StoreOr<number | string>;
160
+ wmode?: StoreOr<string>;
161
+ wrap?: StoreOr<string>;
162
+ about?: StoreOr<string>;
163
+ datatype?: StoreOr<string>;
164
+ inlist?: StoreOr<boolean>;
165
+ prefix?: StoreOr<string>;
166
+ property?: StoreOr<string>;
167
+ resource?: StoreOr<string>;
168
+ typeof?: StoreOr<string>;
169
+ vocab?: StoreOr<string>;
170
+ itemProp?: StoreOr<string>;
171
+ itemScope?: StoreOr<boolean>;
172
+ itemType?: StoreOr<string>;
173
+ itemID?: StoreOr<string>;
174
+ itemRef?: StoreOr<string>;
175
+ shadow?: boolean;
176
+ }
177
+ type UnknownAttributes = {
178
+ [key: string]: any;
179
+ };
180
+ type IntrinsicElementsHTML = {
181
+ [TKey in ElementConstructorTagNames | 'component']?: UnknownAttributes & HTMLAttributes & HTMLOrSVGEvents;
182
+ };
183
+ type IntrinsicElements = IntrinsicElementsHTML;
184
+ }
185
+ }
186
+ export {};
@@ -1 +1 @@
1
- "use strict";var k=Object.defineProperty;var f=Object.getOwnPropertySymbols;var S=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable;var p=(s,t,e)=>t in s?k(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e,b=(s,t)=>{for(var e in t||(t={}))S.call(t,e)&&p(s,e,t[e]);if(f)for(var e of f(t))g.call(t,e)&&p(s,e,t[e]);return s};var y=(s,t,e)=>{if(!t.has(s))throw TypeError("Cannot "+e)};var c=(s,t,e)=>(y(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)},d=(s,t,e,o)=>(y(s,t,"write to private field"),o?o.call(s,e):t.set(s,e),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("../Store-txkR3wXU.cjs");require("../browser-QbF6EW-w.cjs");var u,l,a;class q extends v.Store{constructor(e){super(e,{equalityCheck:()=>!1});h(this,u,void 0);h(this,l,void 0);h(this,a,void 0);d(this,u,b({},e)),d(this,l,new Map),d(this,a,new Set)}get base(){return c(this,u)}get steps(){return c(this,l)}close(){super.close(),c(this,a).clear(),c(this,l).clear()}bind(e){c(this,a).add(e)}unbind(e){c(this,a).delete(e)}deleteStep(e){this.steps.delete(e)}getStepValue(e){return this.steps.get(e)[1]}setStep(e,o,n){const i={};for(const r in this.current)i[r]=n[r]||0;this.steps.set(e,[o,i])}calculate(){const e={};for(const o in this.base)e[o]=this.base[o];for(const o of this.steps){const n=o[1];if(n[0]==="+")for(const i in this.base){const r=n[1][i];e[i]+=r}else if(n[0]==="*")for(const i in this.base){const r=n[1][i];e[i]*=r}else if(n[0]==="/")for(const i in this.base){const r=n[1][i];e[i]/=r}else if(n[0]==="-")for(const i in this.base){const r=n[1][i];e[i]-=r}}for(const o of c(this,a))for(const n in e)o[n]=e[n];this.current=e}}u=new WeakMap,l=new WeakMap,a=new WeakMap;exports.Ladder=q;
1
+ "use strict";var k=Object.defineProperty;var f=Object.getOwnPropertySymbols;var S=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable;var p=(s,t,e)=>t in s?k(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e,b=(s,t)=>{for(var e in t||(t={}))S.call(t,e)&&p(s,e,t[e]);if(f)for(var e of f(t))g.call(t,e)&&p(s,e,t[e]);return s};var y=(s,t,e)=>{if(!t.has(s))throw TypeError("Cannot "+e)};var c=(s,t,e)=>(y(s,t,"read from private field"),e?e.call(s):t.get(s)),u=(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)},d=(s,t,e,o)=>(y(s,t,"write to private field"),o?o.call(s,e):t.set(s,e),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("../Store-D0_rDIsE.cjs");var h,l,a;class m extends v.Store{constructor(e){super(e,{equalityCheck:()=>!1});u(this,h,void 0);u(this,l,void 0);u(this,a,void 0);d(this,h,b({},e)),d(this,l,new Map),d(this,a,new Set)}get base(){return c(this,h)}get steps(){return c(this,l)}close(){super.close(),c(this,a).clear(),c(this,l).clear()}bind(e){c(this,a).add(e)}unbind(e){c(this,a).delete(e)}deleteStep(e){this.steps.delete(e)}getStepValue(e){return this.steps.get(e)[1]}setStep(e,o,n){const i={};for(const r in this.current)i[r]=n[r]||0;this.steps.set(e,[o,i])}calculate(){const e={};for(const o in this.base)e[o]=this.base[o];for(const o of this.steps){const n=o[1];if(n[0]==="+")for(const i in this.base){const r=n[1][i];e[i]+=r}else if(n[0]==="*")for(const i in this.base){const r=n[1][i];e[i]*=r}else if(n[0]==="/")for(const i in this.base){const r=n[1][i];e[i]/=r}else if(n[0]==="-")for(const i in this.base){const r=n[1][i];e[i]-=r}}for(const o of c(this,a))for(const n in e)o[n]=e[n];this.current=e}}h=new WeakMap,l=new WeakMap,a=new WeakMap;exports.Ladder=m;
@@ -18,10 +18,9 @@ var c = (t, s, e) => (y(t, s, "read from private field"), e ? e.call(t) : s.get(
18
18
  throw TypeError("Cannot add the same private member more than once");
19
19
  s instanceof WeakSet ? s.add(t) : s.set(t, e);
20
20
  }, f = (t, s, e, o) => (y(t, s, "write to private field"), o ? o.call(t, e) : s.set(t, e), e);
21
- import { S as m } from "../Store-qq7IjRLE.js";
22
- import "../browser-S4eq8AeN.js";
21
+ import { S as v } from "../Store-JOKrNVEr.js";
23
22
  var l, h, a;
24
- class V extends m {
23
+ class x extends v {
25
24
  constructor(e) {
26
25
  super(e, {
27
26
  equalityCheck: () => !1
@@ -93,5 +92,5 @@ class V extends m {
93
92
  }
94
93
  l = new WeakMap(), h = new WeakMap(), a = new WeakMap();
95
94
  export {
96
- V as Ladder
95
+ x as Ladder
97
96
  };
@@ -1 +1 @@
1
- "use strict";var I=(i,e,s)=>{if(!e.has(i))throw TypeError("Cannot "+s)};var t=(i,e,s)=>(I(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,l)=>(I(i,e,"write to private field"),l?l.call(i,s):e.set(i,s),s);var m=(i,e,s)=>(I(i,e,"access private method"),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const lt=require("../css-unit-parser/index.cjs"),V=require("../ladder/index.cjs"),G=require("../order/index.cjs"),J=require("../resizer/index.cjs"),ot=require("../scroll-entries/index.cjs"),N=require("../ticker/index.cjs"),Q=require("../browser-QbF6EW-w.cjs"),w=require("../layout-rZzbsLPd.cjs");require("../Store-txkR3wXU.cjs");require("../notifier/index.cjs");require("../function-QP7IreXR.cjs");require("../intersector/index.cjs");function j(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),l=Math.sqrt(i.m31*i.m31+i.m32*i.m32+i.m33*i.m33),v=Math.atan2(i.m32,i.m33),Y=Math.atan2(-i.m31,Math.sqrt(i.m32*i.m32+i.m33*i.m33)),K=Math.atan2(i.m21,i.m11),u=i.m41,L=i.m42,b=i.m43;return{scaleX:e,scaleY:s,scaleZ:l,rotationX:v,rotationY:Y,rotationZ:K,translationX:u,translationY:L,translationZ:b}}var o,f,p,x,H,E,C,q,M,_,P,d,S,O,T,X,R,y,z,g,a,r,c,B,$,k,tt,D,et,U,st,Z,F,A,W;class ct{constructor(e,s){h(this,B);h(this,k);h(this,D);h(this,U);h(this,Z);h(this,o,null);h(this,f,null);h(this,p,[]);h(this,x,"auto");h(this,H,"top");h(this,E,!1);h(this,C,!0);h(this,q,!0);h(this,M,0);h(this,_,0);h(this,P,0);h(this,d,0);h(this,S,0);h(this,O,0);h(this,T,0);h(this,X,0);h(this,R,0);h(this,y,{x:0,y:0,z:0});h(this,z,{x:0,y:0,z:0});h(this,g,{x:1,y:1,z:1});h(this,a,new V.Ladder({x:0,y:0,z:0}));h(this,r,new V.Ladder({x:0,y:0,z:0}));h(this,c,new V.Ladder({x:0,y:0,z:0}));h(this,A,()=>{Q.isBrowser&&m(this,D,et).call(this)});h(this,W,()=>{m(this,U,st).call(this),m(this,B,$).call(this)});Q.isBrowser&&(n(this,o,m(this,Z,F).call(this,e)||document.body),n(this,f,m(this,Z,F).call(this,s==null?void 0:s.containerElement)||document.body),n(this,x,(s==null?void 0:s.scrollAxis)||"auto"),n(this,H,(s==null?void 0:s.frontSide)||"top"),n(this,E,(s==null?void 0:s.cartesian)||!1),n(this,C,(s==null?void 0:s.sizeStep)!==void 0?s.sizeStep:!0),n(this,q,(s==null?void 0:s.positionStep)!==void 0?s.positionStep:!0),t(this,c).setStep("_size","+",{x:1,y:1,z:1}),t(this,r).setStep("_position","+",{x:0,y:0,z:0}),t(this,c).setStep("_scale","*",{x:1,y:1,z:1}),t(this,r).setStep("_translation","+",{x:0,y:0,z:0}),t(this,a).setStep("_rotation","+",{x:0,y:0,z:0}),addEventListener("DOMContentLoaded",()=>{ot.scrollEnties.getAll(this.element).forEach(v=>{this.setScrollStep(()=>v)})}),N.ticker.subscribe(t(this,W),{order:G.TICK_ORDER.LAYOUT_BOX,culling:s!=null&&s.culling?this.element:void 0}),J.resizer.subscribe(t(this,A),G.TICK_ORDER.LAYOUT_BOX))}get element(){return t(this,o)}get containerElement(){return t(this,f)}get position(){return t(this,r).current}get rotation(){return t(this,a).current}get scale(){return t(this,c).current}get left(){return t(this,S)}get top(){return t(this,d)}get front(){return t(this,O)}get width(){return t(this,M)}get height(){return t(this,_)}get depth(){return t(this,P)}bindObject(e){e.position&&t(this,r).bind(e.position),e.rotation&&t(this,a).bind(e.rotation),e.scale&&t(this,c).bind(e.scale)}unbindObject(e){e.position&&t(this,r).unbind(e.position),e.rotation&&t(this,a).unbind(e.rotation),e.scale&&t(this,c).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(){N.ticker.unsubscribe(t(this,W)),J.resizer.unsubscribe(t(this,A)),t(this,r).close(),t(this,a).close(),t(this,c).close()}setPositionStep(...e){t(this,r).setStep(...e)}setRotationStep(...e){t(this,a).setStep(...e)}setScaleStep(...e){t(this,c).setStep(...e)}deletePositionStep(...e){t(this,r).deleteStep(...e)}deleteRotationStep(...e){t(this,a).deleteStep(...e)}deleteScaleStep(...e){t(this,c).deleteStep(...e)}}o=new WeakMap,f=new WeakMap,p=new WeakMap,x=new WeakMap,H=new WeakMap,E=new WeakMap,C=new WeakMap,q=new WeakMap,M=new WeakMap,_=new WeakMap,P=new WeakMap,d=new WeakMap,S=new WeakMap,O=new WeakMap,T=new WeakMap,X=new WeakMap,R=new WeakMap,y=new WeakMap,z=new WeakMap,g=new WeakMap,a=new WeakMap,r=new WeakMap,c=new WeakMap,B=new WeakSet,$=function(){t(this,c).calculate(),t(this,r).calculate(),t(this,a).calculate()},k=new WeakSet,tt=function(){t(this,c).setStep("_size","+",{x:t(this,C)?t(this,M):1,y:t(this,C)?t(this,_):1,z:t(this,C)?t(this,P):1});const e=t(this,q)?t(this,T):0,s=t(this,q)?t(this,X):0,l=t(this,q)?t(this,R):0;t(this,r).setStep("_position","+",{x:e,y:s,z:l}),t(this,c).setStep("_scale","*",{x:t(this,g).x,y:t(this,g).y,z:t(this,g).z}),t(this,r).setStep("_translation","+",{x:t(this,y).x,y:t(this,y).y,z:t(this,y).z}),t(this,a).setStep("_rotation","+",{x:t(this,z).x,y:t(this,z).y,z:t(this,z).z})},D=new WeakSet,et=function(){const e=getComputedStyle(t(this,o));n(this,M,Math.max(t(this,o).clientWidth,1)),n(this,_,Math.max(t(this,o).clientHeight,1)),n(this,P,Math.max(lt.cssUnitParser.parse(e.getPropertyValue("--depth")||"0px"),1));const s=w.getCumulativeOffsetLeft(t(this,f)),l=w.getCumulativeOffsetTop(t(this,f)),v=t(this,f).clientWidth,Y=t(this,f).clientHeight;if(n(this,S,w.getCumulativeOffsetLeft(t(this,o))-s),n(this,d,w.getCumulativeOffsetTop(t(this,o))-l),t(this,x)==="z"){const L=t(this,S)/v,b=t(this,d)/Y;n(this,S,(L-Math.floor(L))*v),n(this,d,(b-Math.floor(b))*Y),t(this,H)==="left"?n(this,O,w.getCumulativeOffsetLeft(t(this,o))-s-t(this,S)):n(this,O,w.getCumulativeOffsetTop(t(this,o))-l-t(this,d))}if(n(this,S,t(this,S)+t(this,o).clientLeft),n(this,d,t(this,d)+t(this,o).clientTop),t(this,E)){const L=Math.round(v/2),b=Math.round(Y/2),it=t(this,M)?Math.round(t(this,M)/2):0,ht=t(this,_)?Math.round(t(this,_)/2):0,nt=t(this,S)-L+it,rt=(t(this,d)-b+ht)*-1;n(this,T,nt),n(this,X,rt)}else n(this,T,t(this,S)),n(this,X,t(this,d));n(this,R,t(this,O)*-1);const K=new WebKitCSSMatrix(e.transform),u=j(K);t(this,y).x=u.translationX,t(this,y).y=u.translationY,t(this,y).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,m(this,k,tt).call(this),m(this,B,$).call(this)},U=new WeakSet,st=function(){for(let e=0;e<t(this,p).length;e++){const s=t(this,p)[e]();let l=s.axis;t(this,x)!=="auto"&&(l=t(this,x)),t(this,r).setStep(`_scroll_${e}`,"+",{[l]:s.value*(l==="x"?-1:t(this,E)?1:-1)})}},Z=new WeakSet,F=function(e){return typeof e=="string"?document.querySelector(e):e},A=new WeakMap,W=new WeakMap;exports.LayoutBox=ct;exports.decomposeCSSMatrix=j;
1
+ "use strict";var V=(i,e,s)=>{if(!e.has(i))throw TypeError("Cannot "+s)};var t=(i,e,s)=>(V(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,l)=>(V(i,e,"write to private field"),l?l.call(i,s):e.set(i,s),s);var m=(i,e,s)=>(V(i,e,"access private method"),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ot=require("../css-unit-parser/index.cjs"),$=require("../ladder/index.cjs"),J=require("../order/index.cjs"),N=require("../window-resizer/index.cjs"),at=require("../scroll-entries/index.cjs"),Q=require("../ticker/index.cjs"),j=require("../browser-CpzFX2xg.cjs"),b=require("../layout-8ryRAMGJ.cjs");function tt(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),l=Math.sqrt(i.m31*i.m31+i.m32*i.m32+i.m33*i.m33),E=Math.atan2(i.m32,i.m33),X=Math.atan2(-i.m31,Math.sqrt(i.m32*i.m32+i.m33*i.m33)),I=Math.atan2(i.m21,i.m11),u=i.m41,O=i.m42,L=i.m43;return{scaleX:e,scaleY:s,scaleZ:l,rotationX:E,rotationY:X,rotationZ:I,translationX:u,translationY:O,translationZ:L}}var a,f,y,x,Y,q,v,w,H,_,M,P,d,S,C,R,T,B,z,p,g,c,r,o,Z,F,D,et,U,st,K,it,A,G,W,k;class ct{constructor(e,s){h(this,Z);h(this,D);h(this,U);h(this,K);h(this,A);h(this,a,null);h(this,f,null);h(this,y,[]);h(this,x,"auto");h(this,Y,"top");h(this,q,!1);h(this,v,!0);h(this,w,!0);h(this,H,!0);h(this,_,0);h(this,M,0);h(this,P,0);h(this,d,0);h(this,S,0);h(this,C,0);h(this,R,0);h(this,T,0);h(this,B,0);h(this,z,{x:0,y:0,z:0});h(this,p,{x:0,y:0,z:0});h(this,g,{x:1,y:1,z:1});h(this,c,new $.Ladder({x:0,y:0,z:0}));h(this,r,new $.Ladder({x:0,y:0,z:0}));h(this,o,new $.Ladder({x:0,y:0,z:0}));h(this,W,()=>{j.isBrowser&&m(this,U,st).call(this)});h(this,k,()=>{m(this,K,it).call(this),m(this,Z,F).call(this)});j.isBrowser&&(n(this,a,m(this,A,G).call(this,e)||document.body),n(this,f,m(this,A,G).call(this,s==null?void 0:s.containerElement)||document.body),n(this,x,(s==null?void 0:s.scrollAxis)||"auto"),n(this,Y,(s==null?void 0:s.frontSide)||"top"),n(this,q,(s==null?void 0:s.cartesian)||!1),n(this,v,(s==null?void 0:s.sizeStep)!==void 0?s.sizeStep:!0),n(this,w,(s==null?void 0:s.positionStep)!==void 0?s.positionStep:!0),n(this,H,(s==null?void 0:s.transformStep)!==void 0?s.transformStep:!0),t(this,o).setStep("_size","+",{x:1,y:1,z:1}),t(this,r).setStep("_position","+",{x:0,y:0,z:0}),t(this,o).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(l=>{this.setScrollStep(()=>l)})}),Q.ticker.subscribe(t(this,k),{order:J.TICK_ORDER.LAYOUT_BOX,culling:s!=null&&s.culling?this.element:void 0}),N.windowResizer.subscribe(t(this,W),J.TICK_ORDER.LAYOUT_BOX))}get element(){return t(this,a)}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,o).current}get left(){return t(this,S)}get top(){return t(this,d)}get front(){return t(this,C)}get width(){return t(this,_)}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,o).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,o).unbind(e.scale)}setScrollStep(e){return t(this,y).includes(e)||t(this,y).push(e),()=>this.deleteScrollStep(e)}deleteScrollStep(e){n(this,y,t(this,y).filter(s=>s!==e))}destroy(){Q.ticker.unsubscribe(t(this,k)),N.windowResizer.unsubscribe(t(this,W)),t(this,r).close(),t(this,c).close(),t(this,o).close()}setPositionStep(...e){t(this,r).setStep(...e)}setRotationStep(...e){t(this,c).setStep(...e)}setScaleStep(...e){t(this,o).setStep(...e)}deletePositionStep(...e){t(this,r).deleteStep(...e)}deleteRotationStep(...e){t(this,c).deleteStep(...e)}deleteScaleStep(...e){t(this,o).deleteStep(...e)}}a=new WeakMap,f=new WeakMap,y=new WeakMap,x=new WeakMap,Y=new WeakMap,q=new WeakMap,v=new WeakMap,w=new WeakMap,H=new WeakMap,_=new WeakMap,M=new WeakMap,P=new WeakMap,d=new WeakMap,S=new WeakMap,C=new WeakMap,R=new WeakMap,T=new WeakMap,B=new WeakMap,z=new WeakMap,p=new WeakMap,g=new WeakMap,c=new WeakMap,r=new WeakMap,o=new WeakMap,Z=new WeakSet,F=function(){t(this,o).calculate(),t(this,r).calculate(),t(this,c).calculate()},D=new WeakSet,et=function(){t(this,o).setStep("_size","+",{x:t(this,v)?t(this,_):1,y:t(this,v)?t(this,M):1,z:t(this,v)?t(this,P):1});const e=t(this,w)?t(this,R):0,s=t(this,w)?t(this,T):0,l=t(this,w)?t(this,B):0;t(this,r).setStep("_position","+",{x:e,y:s,z:l}),t(this,H)?(t(this,o).setStep("_scale","*",{x:t(this,g).x,y:t(this,g).y,z:t(this,g).z}),t(this,r).setStep("_translation","+",{x:t(this,z).x,y:t(this,z).y,z:t(this,z).z}),t(this,c).setStep("_rotation","+",{x:t(this,p).x,y:t(this,p).y,z:t(this,p).z})):(t(this,o).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}))},U=new WeakSet,st=function(){const e=getComputedStyle(t(this,a));n(this,_,Math.max(t(this,a).clientWidth,1)),n(this,M,Math.max(t(this,a).clientHeight,1)),n(this,P,Math.max(ot.cssUnitParser.parse(e.getPropertyValue("--depth")||"0px"),1));const s=b.getCumulativeOffsetLeft(t(this,f)),l=b.getCumulativeOffsetTop(t(this,f)),E=t(this,f).clientWidth,X=t(this,f).clientHeight;if(n(this,S,b.getCumulativeOffsetLeft(t(this,a))-s),n(this,d,b.getCumulativeOffsetTop(t(this,a))-l),t(this,x)==="z"){const O=t(this,S)/E,L=t(this,d)/X;n(this,S,(O-Math.floor(O))*E),n(this,d,(L-Math.floor(L))*X),t(this,Y)==="left"?n(this,C,b.getCumulativeOffsetLeft(t(this,a))-s-t(this,S)):n(this,C,b.getCumulativeOffsetTop(t(this,a))-l-t(this,d))}if(n(this,S,t(this,S)+t(this,a).clientLeft),n(this,d,t(this,d)+t(this,a).clientTop),t(this,q)){const O=Math.round(E/2),L=Math.round(X/2),ht=t(this,_)?Math.round(t(this,_)/2):0,nt=t(this,M)?Math.round(t(this,M)/2):0,rt=t(this,S)-O+ht,lt=(t(this,d)-L+nt)*-1;n(this,R,rt),n(this,T,lt)}else n(this,R,t(this,S)),n(this,T,t(this,d));n(this,B,t(this,C)*-1);const I=new WebKitCSSMatrix(e.transform),u=tt(I);t(this,z).x=u.translationX,t(this,z).y=u.translationY,t(this,z).z=u.translationZ,t(this,g).x=u.scaleX,t(this,g).y=u.scaleY,t(this,g).z=u.scaleZ,t(this,p).x=u.rotationX,t(this,p).y=u.rotationY,t(this,p).z=u.rotationZ,m(this,D,et).call(this),m(this,Z,F).call(this)},K=new WeakSet,it=function(){for(let e=0;e<t(this,y).length;e++){const s=t(this,y)[e]();let l=s.axis;t(this,x)!=="auto"&&(l=t(this,x)),t(this,r).setStep(`_scroll_${e}`,"+",{[l]:s.value*(l==="x"?-1:t(this,q)?1:-1)})}},A=new WeakSet,G=function(e){return typeof e=="string"?document.querySelector(e):e},W=new WeakMap,k=new WeakMap;exports.LayoutBox=ct;exports.decomposeCSSMatrix=tt;
@@ -20,6 +20,7 @@ export interface LayoutBoxOptions {
20
20
  sizeStep?: boolean;
21
21
  positionStep?: boolean;
22
22
  culling?: boolean;
23
+ transformStep?: boolean;
23
24
  }
24
25
  export interface LayoutBoxScrollStepCallbackReturn {
25
26
  axis: Axes2D;