aptechka 0.5.42 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (273) hide show
  1. package/lib/Animation-6Na1MCtM.cjs +1 -0
  2. package/lib/Animation-CELiTw3n.js +132 -0
  3. package/lib/Composed-DmLYTh1b.js +35 -0
  4. package/lib/Composed-Dx2hs-va.cjs +1 -0
  5. package/lib/{Damped-P4MkCGoY.js → Damped-Mx_FNNVz.js} +2 -5
  6. package/lib/Damped-loFiBsBy.cjs +1 -0
  7. package/lib/{Derived-kPJs5JC5.js → Derived-DlCvc0xQ.js} +1 -1
  8. package/lib/{Derived-B-g8dYgh.cjs → Derived-a6MDQEPY.cjs} +1 -1
  9. package/lib/ElementConstructor-CAZ2ra8m.cjs +1 -0
  10. package/lib/ElementConstructor-OYlPJf2L.js +366 -0
  11. package/lib/Resource-D3TQormz.cjs +1 -0
  12. package/lib/Resource-DIcoALGo.js +64 -0
  13. package/lib/{SourceManager-Q-PB-Rkh.js → SourceManager-Bz329f90.js} +1 -1
  14. package/lib/{SourceManager-vSlsMKUE.cjs → SourceManager-kxr5eUyL.cjs} +1 -1
  15. package/lib/Store-6s0YXK4o.cjs +1 -0
  16. package/lib/{Store-BQXXikps.js → Store-BI2xxXOA.js} +42 -42
  17. package/lib/Tweened-B_mclQ61.cjs +1 -0
  18. package/lib/Tweened-NE8M9onF.js +48 -0
  19. package/lib/{Viewport-DMB0dO-s.cjs → Viewport-CJeKnL5V.cjs} +1 -1
  20. package/lib/{Viewport-CFFhFKqX.js → Viewport-D9IL7kUQ.js} +1 -1
  21. package/lib/_createStore-Cf1MyeHa.cjs +1 -0
  22. package/lib/_createStore-Ck9bHolX.js +12 -0
  23. package/lib/accordion/AccordionElement.d.ts +5 -2
  24. package/lib/accordion/index.cjs +1 -1
  25. package/lib/accordion/index.js +141 -105
  26. package/lib/animation/Animation.d.ts +11 -19
  27. package/lib/animation/Damped.d.ts +4 -6
  28. package/lib/animation/Tweened.d.ts +2 -4
  29. package/lib/animation/index.cjs +1 -1
  30. package/lib/animation/index.js +3 -3
  31. package/lib/attribute/index.cjs +1 -1
  32. package/lib/attribute/index.d.ts +1 -1
  33. package/lib/attribute/index.js +31 -31
  34. package/lib/canvas/index.cjs +1 -1
  35. package/lib/canvas/index.d.ts +1 -1
  36. package/lib/canvas/index.js +29 -29
  37. package/lib/checkbox/index.cjs +1 -1
  38. package/lib/checkbox/index.js +20 -20
  39. package/lib/class-linked-status/index.cjs +1 -1
  40. package/lib/class-linked-status/index.js +1 -1
  41. package/lib/controls/AutoplayControls.d.ts +1 -1
  42. package/lib/controls/DragControls.d.ts +1 -1
  43. package/lib/controls/WheelControls.d.ts +1 -1
  44. package/lib/controls/index.cjs +1 -1
  45. package/lib/controls/index.js +3 -3
  46. package/lib/counter/index.d.ts +8 -0
  47. package/lib/{createStylesheet-DBCEbDjI.js → createStylesheet-CR_yi5tp.js} +1 -1
  48. package/lib/{createStylesheet-CqHU9_qv.cjs → createStylesheet-p23sZ7Ey.cjs} +1 -1
  49. package/lib/css-property/index.cjs +1 -1
  50. package/lib/css-property/index.d.ts +2 -1
  51. package/lib/css-property/index.js +36 -32
  52. package/lib/custom-element/index.d.ts +1 -4
  53. package/lib/dev/index.cjs +1 -1
  54. package/lib/dev/index.js +1 -1
  55. package/lib/device/index.cjs +1 -1
  56. package/lib/device/index.js +1 -1
  57. package/lib/element-constructor/ElementConstructor.d.ts +2 -2
  58. package/lib/element-constructor/index.cjs +1 -1
  59. package/lib/element-constructor/index.js +114 -113
  60. package/lib/en3/core/En3Raycaster.d.ts +20 -0
  61. package/lib/en3/core/En3View.d.ts +1 -1
  62. package/lib/en3/core/en3.d.ts +7 -3
  63. package/lib/en3/helpers/En3Controls.d.ts +5 -0
  64. package/lib/en3/helpers/En3GridHelper.d.ts +8 -0
  65. package/lib/en3/helpers/En3Object3dManager.d.ts +12 -0
  66. package/lib/en3/helpers/En3OrbitControls.d.ts +8 -0
  67. package/lib/en3/helpers/En3TransformControls.d.ts +8 -0
  68. package/lib/en3/helpers/index.cjs +1 -0
  69. package/lib/en3/helpers/index.d.ts +2 -0
  70. package/lib/en3/helpers/index.js +1165 -0
  71. package/lib/en3/index.cjs +1 -215
  72. package/lib/en3/index.d.ts +1 -19
  73. package/lib/en3/index.js +4 -4227
  74. package/lib/en3/libs/index.cjs +1 -0
  75. package/lib/en3/libs/index.d.ts +1 -0
  76. package/lib/en3/libs/index.js +201 -0
  77. package/lib/en3/loaders/_En3GLTFLoader.d.ts +12 -0
  78. package/lib/en3/loaders/_En3TextureLoader.d.ts +8 -0
  79. package/lib/en3/loaders/index.cjs +1 -0
  80. package/lib/en3/loaders/index.d.ts +3 -0
  81. package/lib/en3/loaders/index.js +1757 -0
  82. package/lib/en3/loaders/loaders.d.ts +13 -0
  83. package/lib/en3/misc/index.cjs +10 -0
  84. package/lib/en3/misc/index.d.ts +2 -0
  85. package/lib/en3/misc/index.js +115 -0
  86. package/lib/en3/objects/En3Clip.d.ts +1 -1
  87. package/lib/en3/objects/En3ClipHelpers.d.ts +1 -1
  88. package/lib/en3/objects/En3GLTF.d.ts +4 -3
  89. package/lib/en3/objects/En3Image.d.ts +1 -1
  90. package/lib/en3/objects/En3ImageLike.d.ts +3 -2
  91. package/lib/en3/objects/En3SourceConsumer.d.ts +1 -1
  92. package/lib/en3/objects/En3Video.d.ts +1 -1
  93. package/lib/en3/objects/fluid/Advection.d.ts +1 -1
  94. package/lib/en3/objects/fluid/Divergence.d.ts +1 -1
  95. package/lib/en3/objects/fluid/En3Fluid.d.ts +1 -1
  96. package/lib/en3/objects/fluid/En3FluidElement.d.ts +1 -1
  97. package/lib/en3/objects/fluid/ExternalForce.d.ts +1 -1
  98. package/lib/en3/objects/fluid/Poisson.d.ts +1 -1
  99. package/lib/en3/objects/fluid/Pressure.d.ts +1 -1
  100. package/lib/en3/objects/fluid/Simulation.d.ts +1 -1
  101. package/lib/en3/objects/fluid/Viscous.d.ts +1 -1
  102. package/lib/en3/objects/fluid/index.d.ts +0 -3
  103. package/lib/en3/objects/index.d.ts +7 -0
  104. package/lib/en3/utils/coverTexture.d.ts +1 -1
  105. package/lib/en3/utils/index.cjs +1 -0
  106. package/lib/en3/utils/index.d.ts +5 -0
  107. package/lib/en3/utils/index.js +43 -0
  108. package/lib/en3-C4mzaF6q.cjs +8 -0
  109. package/lib/en3-hbkN1OPu.js +343 -0
  110. package/lib/globals-DMjysUXI.js +8 -0
  111. package/lib/globals-bYKki-b9.cjs +1 -0
  112. package/lib/image/index.cjs +1 -1
  113. package/lib/image/index.js +1 -1
  114. package/lib/{index-BtsOv9u0.js → index-BAH_fO2N.js} +66 -66
  115. package/lib/index-D1LQUR-R.cjs +9 -0
  116. package/lib/instantiate-D19Uvc31.js +125 -0
  117. package/lib/instantiate-Db5gGSYG.cjs +1 -0
  118. package/lib/jsx/ComponentElement.d.ts +18 -0
  119. package/lib/jsx/globals.d.ts +13 -0
  120. package/lib/jsx/h.d.ts +7 -0
  121. package/lib/jsx/hooks/basic/_createStore.d.ts +4 -0
  122. package/lib/jsx/hooks/basic/attachInternals.d.ts +1 -0
  123. package/lib/jsx/hooks/basic/attachShadow.d.ts +1 -0
  124. package/lib/jsx/hooks/basic/attachStylesheet.d.ts +3 -0
  125. package/lib/jsx/hooks/basic/createContext.d.ts +2 -0
  126. package/lib/jsx/hooks/basic/onConnect.d.ts +3 -0
  127. package/lib/jsx/hooks/basic/onDisconnect.d.ts +3 -0
  128. package/lib/jsx/hooks/onAnimationFrame.cjs +1 -0
  129. package/lib/jsx/hooks/onAnimationFrame.d.ts +6 -0
  130. package/lib/jsx/hooks/onAnimationFrame.js +22 -0
  131. package/lib/jsx/hooks/onElementResize.cjs +1 -0
  132. package/lib/jsx/hooks/onElementResize.d.ts +5 -0
  133. package/lib/jsx/hooks/onElementResize.js +11 -0
  134. package/lib/jsx/hooks/onIntersection.cjs +1 -0
  135. package/lib/jsx/hooks/onIntersection.d.ts +5 -0
  136. package/lib/jsx/hooks/onIntersection.js +11 -0
  137. package/lib/jsx/hooks/onWindowResize.cjs +1 -0
  138. package/lib/jsx/hooks/onWindowResize.d.ts +3 -0
  139. package/lib/jsx/hooks/onWindowResize.js +8 -0
  140. package/lib/jsx/hooks/store/createArrayStore.d.ts +3 -0
  141. package/lib/jsx/hooks/store/createComposed.d.ts +3 -0
  142. package/lib/jsx/hooks/store/createDerived.d.ts +3 -0
  143. package/lib/jsx/hooks/store/createDerivedArray.d.ts +3 -0
  144. package/lib/jsx/hooks/store/createDerivedComponent.d.ts +3 -0
  145. package/lib/jsx/hooks/store/createDerivedComponents.d.ts +3 -0
  146. package/lib/jsx/hooks/store/createResource.d.ts +3 -0
  147. package/lib/jsx/hooks/store/createStore.d.ts +3 -0
  148. package/lib/jsx/hooks/store/index.cjs +1 -0
  149. package/lib/jsx/hooks/store/index.d.ts +7 -0
  150. package/lib/jsx/hooks/store/index.js +49 -0
  151. package/lib/jsx/hooks/watchAttribute.cjs +1 -0
  152. package/lib/jsx/hooks/watchAttribute.d.ts +6 -0
  153. package/lib/jsx/hooks/watchAttribute.js +17 -0
  154. package/lib/jsx/hooks/watchCSSProperty.cjs +1 -0
  155. package/lib/jsx/hooks/watchCSSProperty.d.ts +7 -0
  156. package/lib/jsx/hooks/watchCSSProperty.js +17 -0
  157. package/lib/jsx/index.cjs +1 -0
  158. package/lib/jsx/index.d.ts +13 -0
  159. package/lib/jsx/index.js +91 -0
  160. package/lib/jsx/instantiate.d.ts +5 -0
  161. package/lib/jsx/register.d.ts +1 -0
  162. package/lib/jsx/render.d.ts +6 -0
  163. package/lib/jsx/type.d.ts +188 -0
  164. package/lib/ladder/index.cjs +1 -1
  165. package/lib/ladder/index.d.ts +2 -0
  166. package/lib/ladder/index.js +84 -66
  167. package/lib/layout-box/index.cjs +1 -1
  168. package/lib/layout-box/index.d.ts +11 -2
  169. package/lib/layout-box/index.js +190 -164
  170. package/lib/media/index.cjs +1 -1
  171. package/lib/media/index.js +1 -1
  172. package/lib/modal/index.cjs +1 -1
  173. package/lib/modal/index.js +16 -16
  174. package/lib/morph/Morph.d.ts +2 -2
  175. package/lib/morph/index.cjs +1 -1
  176. package/lib/morph/index.d.ts +1 -1
  177. package/lib/morph/index.js +135 -143
  178. package/lib/notifier/index.d.ts +2 -2
  179. package/lib/notifier/index.js +3 -1
  180. package/lib/onConnect-DGP866cj.cjs +1 -0
  181. package/lib/onConnect-y5DrxJ9P.js +7 -0
  182. package/lib/pointer/Pointer.d.ts +1 -1
  183. package/lib/pointer/PointerElement.d.ts +1 -1
  184. package/lib/pointer/index.cjs +1 -1
  185. package/lib/pointer/index.js +3 -3
  186. package/lib/polyfills-CM4SCDTt.cjs +1 -0
  187. package/lib/polyfills-X6KXuHg-.js +33 -0
  188. package/lib/popover/PopoverButtonElement.d.ts +1 -1
  189. package/lib/popover/PopoverElement.d.ts +2 -2
  190. package/lib/popover/index.cjs +1 -1
  191. package/lib/popover/index.js +49 -49
  192. package/lib/router/Router.d.ts +11 -3
  193. package/lib/router/index.cjs +1 -1
  194. package/lib/router/index.d.ts +1 -1
  195. package/lib/router/index.js +185 -165
  196. package/lib/scroll/ScrollElement.d.ts +8 -25
  197. package/lib/scroll/ScrollSection.d.ts +23 -0
  198. package/lib/scroll/ScrollSegmentElement.d.ts +3 -3
  199. package/lib/scroll/ScrollUserElement.d.ts +1 -1
  200. package/lib/scroll/index.cjs +1 -1
  201. package/lib/scroll/index.js +87 -83
  202. package/lib/scroll-entries/index.d.ts +1 -1
  203. package/lib/select/SelectUserElement.d.ts +1 -1
  204. package/lib/select/index.cjs +1 -1
  205. package/lib/select/index.js +1 -1
  206. package/lib/sequence/index.cjs +1 -1
  207. package/lib/sequence/index.d.ts +1 -1
  208. package/lib/sequence/index.js +8 -8
  209. package/lib/slicer/SlicerElement.d.ts +2 -2
  210. package/lib/slicer/index.cjs +4 -4
  211. package/lib/slicer/index.js +31 -31
  212. package/lib/source/SourceElement.d.ts +2 -2
  213. package/lib/source/SourceManager.d.ts +1 -1
  214. package/lib/source/index.cjs +1 -1
  215. package/lib/source/index.js +2 -2
  216. package/lib/store/ArrayStore.d.ts +21 -0
  217. package/lib/store/Store.d.ts +1 -7
  218. package/lib/store/index.cjs +1 -1
  219. package/lib/store/index.d.ts +2 -2
  220. package/lib/store/index.js +65 -139
  221. package/lib/tags-BqJKcIve.js +485 -0
  222. package/lib/tags-ld5jemJw.cjs +1 -0
  223. package/lib/theme/index.cjs +1 -1
  224. package/lib/theme/index.js +2 -2
  225. package/lib/tweaker/TweakerBooleanManagerElement.d.ts +2 -2
  226. package/lib/tweaker/TweakerColorManagerElement.d.ts +2 -2
  227. package/lib/tweaker/TweakerElement.d.ts +1 -1
  228. package/lib/tweaker/TweakerFieldElement.d.ts +2 -2
  229. package/lib/tweaker/TweakerFolderElement.d.ts +5 -3
  230. package/lib/tweaker/TweakerLinkManagerElement.d.ts +2 -2
  231. package/lib/tweaker/TweakerNumberManagerElement.d.ts +4 -8
  232. package/lib/tweaker/TweakerSelectManagerElement.d.ts +2 -2
  233. package/lib/tweaker/TweakerStoreManagerElement.d.ts +7 -7
  234. package/lib/tweaker/TweakerStringManagerElement.d.ts +3 -5
  235. package/lib/tweaker/index.cjs +3 -3
  236. package/lib/tweaker/index.js +535 -412
  237. package/lib/tweaker/tweakerManagerConstructors.d.ts +2 -2
  238. package/lib/tweaker/tweakerStorage.d.ts +8 -1
  239. package/lib/url-C3dWnJQg.cjs +1 -0
  240. package/lib/url-DMNfW7uN.js +22 -0
  241. package/lib/utils/function.d.ts +2 -2
  242. package/lib/utils/index.cjs +1 -1
  243. package/lib/utils/index.d.ts +1 -0
  244. package/lib/utils/index.js +39 -34
  245. package/lib/utils/layout.d.ts +1 -1
  246. package/lib/utils/number.d.ts +1 -0
  247. package/lib/utils/url.d.ts +9 -0
  248. package/lib/video/index.cjs +1 -1
  249. package/lib/video/index.js +14 -14
  250. package/package.json +108 -12
  251. package/lib/Animation-DDHjrbtL.cjs +0 -1
  252. package/lib/Animation-Dq_05jlR.js +0 -217
  253. package/lib/Damped-l0mnlhar.cjs +0 -1
  254. package/lib/Store-C-1ruEIm.cjs +0 -1
  255. package/lib/Tweened-CwDC2zl8.js +0 -51
  256. package/lib/Tweened-DIt9j9B-.cjs +0 -1
  257. package/lib/animation/AnimationLink.d.ts +0 -13
  258. package/lib/en3/loaders/en3GLTFLoader.d.ts +0 -14
  259. package/lib/en3/loaders/en3TextureLoader.d.ts +0 -3
  260. package/lib/en3/test/En3HTML.d.ts +0 -10
  261. package/lib/index-Buf76Qoq.cjs +0 -9
  262. package/lib/polyfills-BA-CL_HF.js +0 -27
  263. package/lib/polyfills-DHs2SNbz.cjs +0 -1
  264. package/lib/resized/index.cjs +0 -1
  265. package/lib/resized/index.d.ts +0 -12
  266. package/lib/resized/index.js +0 -30
  267. package/lib/store/CumulativeResource.d.ts +0 -13
  268. package/lib/tags-CMPg9ETZ.js +0 -848
  269. package/lib/tags-Djb6mb1o.cjs +0 -1
  270. package/lib/tweaker/TweakerRangeManagerElement.d.ts +0 -11
  271. package/lib/en3/{loaders → core}/en3Cache.d.ts +0 -0
  272. package/lib/en3/{test → misc}/En3ModifiedMaterial.d.ts +0 -0
  273. package/lib/en3/{attachments → misc}/En3SourceManager.d.ts +2 -2
@@ -0,0 +1,188 @@
1
+ import { ElementConstructor, ElementConstructorClass, ElementConstructorEventMap, ElementConstructorStyle, ElementConstructorTagNames } from '../element-constructor';
2
+ import { Store } from '../store';
3
+ import { Split } from '../utils';
4
+
5
+ type StoreOr<T> = T | Store<T | null | undefined>;
6
+ declare global {
7
+ namespace JSX {
8
+ type ComponentChild = Node | string | number | boolean | undefined | null | void | Store<any, any, any> | ElementConstructor;
9
+ type ComponentChildren = Array<ComponentChild>;
10
+ interface BaseProps {
11
+ children?: Array<ComponentChild>;
12
+ }
13
+ type Component<TProps extends object = object> = {
14
+ formAssociated?: boolean;
15
+ noCustomElement?: boolean;
16
+ (props: BaseProps & TProps): ComponentChild;
17
+ };
18
+ type HTMLOrSVGEvents = Partial<{
19
+ [K in `on${Capitalize<keyof ElementConstructorEventMap>}`]: (event: ElementConstructorEventMap[Extract<Uncapitalize<Split<K, 'on'>[1]>, keyof ElementConstructorEventMap>]) => void;
20
+ }>;
21
+ interface DOMAttributes {
22
+ ref?: {
23
+ current: any;
24
+ };
25
+ }
26
+ interface HTMLAttributes extends DOMAttributes {
27
+ accept?: StoreOr<string>;
28
+ acceptCharset?: StoreOr<string>;
29
+ accessKey?: StoreOr<string>;
30
+ action?: StoreOr<string>;
31
+ allowFullScreen?: StoreOr<boolean>;
32
+ allowTransparency?: StoreOr<boolean>;
33
+ alt?: StoreOr<string>;
34
+ as?: StoreOr<string>;
35
+ async?: StoreOr<boolean>;
36
+ autocomplete?: StoreOr<string>;
37
+ autoComplete?: StoreOr<string>;
38
+ autocorrect?: StoreOr<string>;
39
+ autoCorrect?: StoreOr<string>;
40
+ autofocus?: StoreOr<boolean>;
41
+ autoFocus?: StoreOr<boolean>;
42
+ autoPlay?: StoreOr<boolean>;
43
+ capture?: StoreOr<boolean | string>;
44
+ cellPadding?: StoreOr<number | string>;
45
+ cellSpacing?: StoreOr<number | string>;
46
+ charSet?: StoreOr<string>;
47
+ challenge?: StoreOr<string>;
48
+ checked?: StoreOr<boolean>;
49
+ class?: ElementConstructorClass;
50
+ cols?: StoreOr<number>;
51
+ colSpan?: StoreOr<number>;
52
+ content?: StoreOr<string>;
53
+ contentEditable?: StoreOr<boolean>;
54
+ contextMenu?: StoreOr<string>;
55
+ controls?: StoreOr<boolean>;
56
+ controlsList?: StoreOr<string>;
57
+ coords?: StoreOr<string>;
58
+ crossOrigin?: StoreOr<string>;
59
+ data?: StoreOr<string>;
60
+ dateTime?: StoreOr<string>;
61
+ default?: StoreOr<boolean>;
62
+ defer?: StoreOr<boolean>;
63
+ dir?: StoreOr<'auto' | 'rtl' | 'ltr'>;
64
+ disabled?: StoreOr<boolean>;
65
+ disableRemotePlayback?: StoreOr<boolean>;
66
+ download?: StoreOr<string>;
67
+ draggable?: StoreOr<boolean>;
68
+ encType?: StoreOr<string>;
69
+ form?: StoreOr<string>;
70
+ formAction?: StoreOr<string>;
71
+ formEncType?: StoreOr<string>;
72
+ formMethod?: StoreOr<string>;
73
+ formNoValidate?: StoreOr<boolean>;
74
+ formTarget?: StoreOr<string>;
75
+ frameBorder?: StoreOr<number | string>;
76
+ headers?: StoreOr<string>;
77
+ height?: StoreOr<number | string>;
78
+ hidden?: StoreOr<boolean>;
79
+ high?: StoreOr<number>;
80
+ href?: StoreOr<string>;
81
+ hrefLang?: StoreOr<string>;
82
+ for?: StoreOr<string>;
83
+ htmlFor?: StoreOr<string>;
84
+ httpEquiv?: StoreOr<string>;
85
+ icon?: StoreOr<string>;
86
+ id?: StoreOr<string>;
87
+ inputMode?: StoreOr<string>;
88
+ integrity?: StoreOr<string>;
89
+ is?: StoreOr<string>;
90
+ keyParams?: StoreOr<string>;
91
+ keyType?: StoreOr<string>;
92
+ kind?: StoreOr<string>;
93
+ label?: StoreOr<string>;
94
+ lang?: StoreOr<string>;
95
+ list?: StoreOr<string>;
96
+ loading?: StoreOr<'eager' | 'lazy'>;
97
+ loop?: StoreOr<boolean>;
98
+ low?: StoreOr<number>;
99
+ manifest?: StoreOr<string>;
100
+ marginHeight?: StoreOr<number>;
101
+ marginWidth?: StoreOr<number>;
102
+ max?: StoreOr<number | string>;
103
+ maxLength?: StoreOr<number>;
104
+ media?: StoreOr<string>;
105
+ mediaGroup?: StoreOr<string>;
106
+ method?: StoreOr<string>;
107
+ min?: StoreOr<number | string>;
108
+ minLength?: StoreOr<number>;
109
+ multiple?: StoreOr<boolean>;
110
+ muted?: StoreOr<boolean>;
111
+ name?: StoreOr<string>;
112
+ nonce?: StoreOr<string>;
113
+ noValidate?: StoreOr<boolean>;
114
+ open?: StoreOr<boolean>;
115
+ optimum?: StoreOr<number>;
116
+ pattern?: StoreOr<string>;
117
+ placeholder?: StoreOr<string>;
118
+ playsInline?: StoreOr<boolean>;
119
+ poster?: StoreOr<string>;
120
+ preload?: StoreOr<string>;
121
+ radioGroup?: StoreOr<string>;
122
+ readOnly?: StoreOr<boolean>;
123
+ rel?: StoreOr<string>;
124
+ required?: StoreOr<boolean>;
125
+ role?: StoreOr<string>;
126
+ rows?: StoreOr<number>;
127
+ rowSpan?: StoreOr<number>;
128
+ sandbox?: StoreOr<string>;
129
+ scope?: StoreOr<string>;
130
+ scoped?: StoreOr<boolean>;
131
+ scrolling?: StoreOr<string>;
132
+ seamless?: StoreOr<boolean>;
133
+ selected?: StoreOr<boolean>;
134
+ shape?: StoreOr<string>;
135
+ size?: StoreOr<number>;
136
+ sizes?: StoreOr<string>;
137
+ slot?: StoreOr<string>;
138
+ span?: StoreOr<number>;
139
+ spellcheck?: StoreOr<boolean>;
140
+ src?: StoreOr<string>;
141
+ srcset?: StoreOr<string>;
142
+ srcDoc?: StoreOr<string>;
143
+ srcLang?: StoreOr<string>;
144
+ srcSet?: StoreOr<string>;
145
+ start?: StoreOr<number>;
146
+ step?: StoreOr<number | string>;
147
+ style?: ElementConstructorStyle;
148
+ summary?: StoreOr<string>;
149
+ tabIndex?: StoreOr<number>;
150
+ target?: StoreOr<string>;
151
+ title?: StoreOr<string>;
152
+ type?: StoreOr<string>;
153
+ useMap?: StoreOr<string>;
154
+ value?: StoreOr<string | string[] | number>;
155
+ volume?: StoreOr<string | number>;
156
+ width?: StoreOr<number | string>;
157
+ wmode?: StoreOr<string>;
158
+ wrap?: StoreOr<string>;
159
+ about?: StoreOr<string>;
160
+ datatype?: StoreOr<string>;
161
+ inlist?: StoreOr<boolean>;
162
+ prefix?: StoreOr<string>;
163
+ property?: StoreOr<string>;
164
+ resource?: StoreOr<string>;
165
+ typeof?: StoreOr<string>;
166
+ vocab?: StoreOr<string>;
167
+ itemProp?: StoreOr<string>;
168
+ itemScope?: StoreOr<boolean>;
169
+ itemType?: StoreOr<string>;
170
+ itemID?: StoreOr<string>;
171
+ itemRef?: StoreOr<string>;
172
+ shadow?: boolean;
173
+ forceSvg?: boolean;
174
+ lightChildren?: boolean;
175
+ }
176
+ type UnknownAttributes = {
177
+ [key: string]: any;
178
+ };
179
+ type AllAttributes = UnknownAttributes & HTMLAttributes & HTMLOrSVGEvents;
180
+ type SpecialTagNames = 'component';
181
+ type CustomTagNames = `${string}--${string}`;
182
+ type IntrinsicElementsHTML = {
183
+ [TKey in ElementConstructorTagNames | SpecialTagNames | CustomTagNames]?: AllAttributes;
184
+ };
185
+ type IntrinsicElements = IntrinsicElementsHTML;
186
+ }
187
+ }
188
+ 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)),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-C-1ruEIm.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;
1
+ "use strict";var w=Object.defineProperty;var S=Object.getOwnPropertySymbols;var M=Object.prototype.hasOwnProperty,V=Object.prototype.propertyIsEnumerable;var k=(s,t,e)=>t in s?w(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e,v=(s,t)=>{for(var e in t||(t={}))M.call(t,e)&&k(s,e,t[e]);if(S)for(var e of S(t))V.call(t,e)&&k(s,e,t[e]);return s};var g=(s,t,e)=>{if(!t.has(s))throw TypeError("Cannot "+e)};var o=(s,t,e)=>(g(s,t,"read from private field"),e?e.call(s):t.get(s)),p=(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)},f=(s,t,e,i)=>(g(s,t,"write to private field"),i?i.call(s,e):t.set(s,e),e);var b=(s,t,e)=>(g(s,t,"access private method"),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("../Store-6s0YXK4o.cjs");var d,u,a,h,y;class q extends m.Store{constructor(e){super(e,{equalityCheck:()=>!1});p(this,h);p(this,d,void 0);p(this,u,void 0);p(this,a,void 0);f(this,d,v({},e)),f(this,u,new Map),f(this,a,new Set)}get base(){return o(this,d)}get steps(){return o(this,u)}close(){super.close(),o(this,a).clear(),o(this,u).clear()}bind(e){o(this,a).add(e)}unbind(e){o(this,a).delete(e)}deleteStep(e){this.steps.delete(e)}getStepValue(e){var i;return(i=this.steps.get(e))==null?void 0:i[1]}getExcludedStepsValue(...e){const i=new Map;return e.map(c=>{const n=this.steps.get(c);n&&i.set(c,n)}),b(this,h,y).call(this,i)}getIncludedStepsValue(...e){const i=new Map(this.steps);return e.map(c=>{this.steps.has(c)&&i.delete(c)}),b(this,h,y).call(this,i)}setStep(e,i,c){const n={};for(const r in this.current)n[r]=c[r]||0;this.steps.set(e,[i,n]),this.calculate()}calculate(){this.current=b(this,h,y).call(this,o(this,u))}}d=new WeakMap,u=new WeakMap,a=new WeakMap,h=new WeakSet,y=function(e){const i={};for(const c in this.base)i[c]=this.base[c];for(const c of e){const n=c[1];if(n[0]==="+")for(const r in this.base){const l=n[1][r];i[r]+=l}else if(n[0]==="*")for(const r in this.base){const l=n[1][r];i[r]*=l}else if(n[0]==="/")for(const r in this.base){const l=n[1][r];i[r]/=l}else if(n[0]==="-")for(const r in this.base){const l=n[1][r];i[r]-=l}}for(const c of o(this,a))for(const n in i)c[n]=i[n];return i};exports.Ladder=q;
@@ -17,6 +17,8 @@ export declare class Ladder<V extends LadderDefaultValueType = LadderDefaultValu
17
17
  unbind(sub: V): void;
18
18
  deleteStep(stepName: K): void;
19
19
  getStepValue(stepName: K): V;
20
+ getExcludedStepsValue(...stepNames: Array<K>): V;
21
+ getIncludedStepsValue(...stepNames: Array<K>): V;
20
22
  setStep(stepName: K, action: LadderOperation, value: Partial<V>): void;
21
23
  calculate(): void;
22
24
  }
@@ -1,96 +1,114 @@
1
- var k = Object.defineProperty;
2
- var p = Object.getOwnPropertySymbols;
3
- var S = Object.prototype.hasOwnProperty, g = Object.prototype.propertyIsEnumerable;
4
- var d = (t, s, e) => s in t ? k(t, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[s] = e, b = (t, s) => {
5
- for (var e in s || (s = {}))
6
- S.call(s, e) && d(t, e, s[e]);
7
- if (p)
8
- for (var e of p(s))
9
- g.call(s, e) && d(t, e, s[e]);
10
- return t;
1
+ var w = Object.defineProperty;
2
+ var k = Object.getOwnPropertySymbols;
3
+ var V = Object.prototype.hasOwnProperty, m = Object.prototype.propertyIsEnumerable;
4
+ var S = (s, t, e) => t in s ? w(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e, v = (s, t) => {
5
+ for (var e in t || (t = {}))
6
+ V.call(t, e) && S(s, e, t[e]);
7
+ if (k)
8
+ for (var e of k(t))
9
+ m.call(t, e) && S(s, e, t[e]);
10
+ return s;
11
11
  };
12
- var y = (t, s, e) => {
13
- if (!s.has(t))
12
+ var g = (s, t, e) => {
13
+ if (!t.has(s))
14
14
  throw TypeError("Cannot " + e);
15
15
  };
16
- var c = (t, s, e) => (y(t, s, "read from private field"), e ? e.call(t) : s.get(t)), u = (t, s, e) => {
17
- if (s.has(t))
16
+ var r = (s, t, e) => (g(s, t, "read from private field"), e ? e.call(s) : t.get(s)), p = (s, t, e) => {
17
+ if (t.has(s))
18
18
  throw TypeError("Cannot add the same private member more than once");
19
- s instanceof WeakSet ? s.add(t) : s.set(t, e);
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 v } from "../Store-BQXXikps.js";
22
- var l, h, a;
23
- class x extends v {
19
+ t instanceof WeakSet ? t.add(s) : t.set(s, e);
20
+ }, d = (s, t, e, i) => (g(s, t, "write to private field"), i ? i.call(s, e) : t.set(s, e), e);
21
+ var b = (s, t, e) => (g(s, t, "access private method"), e);
22
+ import { S as x } from "../Store-BI2xxXOA.js";
23
+ var f, h, a, u, y;
24
+ class C extends x {
24
25
  constructor(e) {
25
26
  super(e, {
26
27
  equalityCheck: () => !1
27
28
  });
28
- u(this, l, void 0);
29
- u(this, h, void 0);
30
- u(this, a, void 0);
31
- f(this, l, b({}, e)), f(this, h, /* @__PURE__ */ new Map()), f(this, a, /* @__PURE__ */ new Set());
29
+ p(this, u);
30
+ p(this, f, void 0);
31
+ p(this, h, void 0);
32
+ p(this, a, void 0);
33
+ d(this, f, v({}, e)), d(this, h, /* @__PURE__ */ new Map()), d(this, a, /* @__PURE__ */ new Set());
32
34
  }
33
35
  get base() {
34
- return c(this, l);
36
+ return r(this, f);
35
37
  }
36
38
  get steps() {
37
- return c(this, h);
39
+ return r(this, h);
38
40
  }
39
41
  close() {
40
- super.close(), c(this, a).clear(), c(this, h).clear();
42
+ super.close(), r(this, a).clear(), r(this, h).clear();
41
43
  }
42
44
  bind(e) {
43
- c(this, a).add(e);
45
+ r(this, a).add(e);
44
46
  }
45
47
  unbind(e) {
46
- c(this, a).delete(e);
48
+ r(this, a).delete(e);
47
49
  }
48
50
  deleteStep(e) {
49
51
  this.steps.delete(e);
50
52
  }
51
53
  getStepValue(e) {
52
- return this.steps.get(e)[1];
54
+ var i;
55
+ return (i = this.steps.get(e)) == null ? void 0 : i[1];
53
56
  }
54
- setStep(e, o, n) {
55
- const i = {};
56
- for (const r in this.current)
57
- i[r] = n[r] || 0;
58
- this.steps.set(e, [o, i]);
57
+ getExcludedStepsValue(...e) {
58
+ const i = /* @__PURE__ */ new Map();
59
+ return e.map((c) => {
60
+ const n = this.steps.get(c);
61
+ n && i.set(c, n);
62
+ }), b(this, u, y).call(this, i);
63
+ }
64
+ getIncludedStepsValue(...e) {
65
+ const i = new Map(this.steps);
66
+ return e.map((c) => {
67
+ this.steps.has(c) && i.delete(c);
68
+ }), b(this, u, y).call(this, i);
69
+ }
70
+ setStep(e, i, c) {
71
+ const n = {};
72
+ for (const o in this.current)
73
+ n[o] = c[o] || 0;
74
+ this.steps.set(e, [i, n]), this.calculate();
59
75
  }
60
76
  calculate() {
61
- const e = {};
62
- for (const o in this.base)
63
- e[o] = this.base[o];
64
- for (const o of this.steps) {
65
- const n = o[1];
66
- if (n[0] === "+")
67
- for (const i in this.base) {
68
- const r = n[1][i];
69
- e[i] += r;
70
- }
71
- else if (n[0] === "*")
72
- for (const i in this.base) {
73
- const r = n[1][i];
74
- e[i] *= r;
75
- }
76
- else if (n[0] === "/")
77
- for (const i in this.base) {
78
- const r = n[1][i];
79
- e[i] /= r;
80
- }
81
- else if (n[0] === "-")
82
- for (const i in this.base) {
83
- const r = n[1][i];
84
- e[i] -= r;
85
- }
86
- }
87
- for (const o of c(this, a))
88
- for (const n in e)
89
- o[n] = e[n];
90
- this.current = e;
77
+ this.current = b(this, u, y).call(this, r(this, h));
91
78
  }
92
79
  }
93
- l = new WeakMap(), h = new WeakMap(), a = new WeakMap();
80
+ f = new WeakMap(), h = new WeakMap(), a = new WeakMap(), u = new WeakSet(), y = function(e) {
81
+ const i = {};
82
+ for (const c in this.base)
83
+ i[c] = this.base[c];
84
+ for (const c of e) {
85
+ const n = c[1];
86
+ if (n[0] === "+")
87
+ for (const o in this.base) {
88
+ const l = n[1][o];
89
+ i[o] += l;
90
+ }
91
+ else if (n[0] === "*")
92
+ for (const o in this.base) {
93
+ const l = n[1][o];
94
+ i[o] *= l;
95
+ }
96
+ else if (n[0] === "/")
97
+ for (const o in this.base) {
98
+ const l = n[1][o];
99
+ i[o] /= l;
100
+ }
101
+ else if (n[0] === "-")
102
+ for (const o in this.base) {
103
+ const l = n[1][o];
104
+ i[o] -= l;
105
+ }
106
+ }
107
+ for (const c of r(this, a))
108
+ for (const n in i)
109
+ c[n] = i[n];
110
+ return i;
111
+ };
94
112
  export {
95
- x as Ladder
113
+ C as Ladder
96
114
  };
@@ -1 +1 @@
1
- "use strict";var G=(i,e,s)=>{if(!e.has(i))throw TypeError("Cannot "+s)};var t=(i,e,s)=>(G(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)},r=(i,e,s,n)=>(G(i,e,"write to private field"),n?n.call(i,s):e.set(i,s),s);var L=(i,e,s)=>(G(i,e,"access private method"),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const dt=require("../css-unit-parser/index.cjs"),J=require("../ladder/index.cjs"),j=require("../order/index.cjs"),N=require("../scroll-entries/index.cjs"),tt=require("../ticker/index.cjs"),et=require("../browser-CpzFX2xg.cjs"),st=require("../dom-JBOkFLTh.cjs"),P=require("../layout-8ryRAMGJ.cjs"),it=require("../element-resizer/index.cjs"),ht=require("../window-resizer/index.cjs");function rt(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),n=Math.sqrt(i.m31*i.m31+i.m32*i.m32+i.m33*i.m33),y=Math.atan2(i.m32,i.m33),B=Math.atan2(-i.m31,Math.sqrt(i.m32*i.m32+i.m33*i.m33)),F=Math.atan2(i.m21,i.m11),u=i.m41,O=i.m42*-1,q=i.m43;return{scaleX:e,scaleY:s,scaleZ:n,rotationX:y,rotationY:B,rotationZ:F,translationX:u,translationY:O,translationZ:q}}var a,p,m,v,V,T,w,C,A,W,b,_,X,S,d,R,Y,H,k,f,g,z,o,l,c,x,M,U,Q,I,nt,K,lt,$,ct,E,D,Z;class ft{constructor(e,s){h(this,U);h(this,I);h(this,K);h(this,$);h(this,a,null);h(this,p,null);h(this,m,[]);h(this,v,"auto");h(this,V,"top");h(this,T,!1);h(this,w,!0);h(this,C,!0);h(this,A,!0);h(this,W,!0);h(this,b,0);h(this,_,0);h(this,X,0);h(this,S,0);h(this,d,0);h(this,R,0);h(this,Y,0);h(this,H,0);h(this,k,0);h(this,f,{x:0,y:0,z:0});h(this,g,{x:0,y:0,z:0});h(this,z,{x:1,y:1,z:1});h(this,o,new J.Ladder({x:0,y:0,z:0}));h(this,l,new J.Ladder({x:0,y:0,z:0}));h(this,c,new J.Ladder({x:0,y:0,z:0}));h(this,x,{x:0,y:0,z:0});h(this,M,new Map);h(this,E,()=>{et.isBrowser&&L(this,K,lt).call(this)});h(this,D,()=>{L(this,$,ct).call(this),L(this,U,Q).call(this)});h(this,Z,()=>{const e=N.scrollEntries.getAll(this.element);t(this,M).forEach((s,n)=>{e.includes(n)||(this.deleteScrollStep(s),t(this,M).delete(n))}),e.forEach(s=>{if(!t(this,M).has(s)){const n=()=>s;t(this,M).set(s,n),this.setScrollStep(n)}})});et.isBrowser&&(r(this,a,st.getElement(e)||document.body),r(this,p,st.getElement(s==null?void 0:s.containerElement)||document.body),r(this,v,(s==null?void 0:s.scrollAxis)||"auto"),r(this,V,(s==null?void 0:s.frontSide)||"top"),r(this,T,(s==null?void 0:s.cartesian)||!1),r(this,w,(s==null?void 0:s.sizeStep)!==void 0?s.sizeStep:!0),r(this,C,(s==null?void 0:s.positionStep)!==void 0?s.positionStep:!0),r(this,A,(s==null?void 0:s.transformStep)!==void 0?s.transformStep:!0),r(this,W,(s==null?void 0:s.scrollStep)!==void 0?s.scrollStep:!0),t(this,c).setStep("_size","+",{x:1,y:1,z:1}),t(this,l).setStep("_position","+",{x:0,y:0,z:0}),t(this,c).setStep("_scale","*",{x:1,y:1,z:1}),t(this,l).setStep("_translation","+",{x:0,y:0,z:0}),t(this,o).setStep("_rotation","+",{x:0,y:0,z:0}),t(this,W)&&(N.scrollEntries.notifier.subscribe(t(this,Z)),t(this,Z).call(this)),it.elementResizer.subscribe(this.element,t(this,E)),ht.windowResizer.subscribe(t(this,E),j.RESIZE_ORDER.LAYOUT_BOX),tt.ticker.subscribe(t(this,D),{order:j.TICK_ORDER.LAYOUT_BOX,culling:s!=null&&s.culling?this.element:void 0}))}get element(){return t(this,a)}get containerElement(){return t(this,p)}get position(){return t(this,l).current}get rotation(){return t(this,o).current}get scale(){return t(this,c).current}get scrollValue(){return t(this,x)}get left(){return t(this,d)}get top(){return t(this,S)}get CSSTranslation(){return t(this,f)}get CSSRotation(){return t(this,g)}get CSSScale(){return t(this,z)}get front(){return t(this,R)}get width(){return t(this,b)}get height(){return t(this,_)}get depth(){return t(this,X)}destroy(){tt.ticker.unsubscribe(t(this,D)),it.elementResizer.unsubscribe(t(this,E)),ht.windowResizer.unsubscribe(t(this,E)),N.scrollEntries.notifier.unsubscribe(t(this,Z)),t(this,M).clear(),t(this,l).close(),t(this,o).close(),t(this,c).close()}bindObject(e){e.position&&t(this,l).bind(e.position),e.rotation&&t(this,o).bind(e.rotation),e.scale&&t(this,c).bind(e.scale)}unbindObject(e){e.position&&t(this,l).unbind(e.position),e.rotation&&t(this,o).unbind(e.rotation),e.scale&&t(this,c).unbind(e.scale)}setScrollStep(e){return t(this,m).includes(e)||t(this,m).push(e),()=>this.deleteScrollStep(e)}deleteScrollStep(e){r(this,m,t(this,m).filter(s=>s!==e))}setPositionStep(...e){t(this,l).setStep(...e)}getPositionStep(...e){return t(this,l).getStepValue(...e)}setRotationStep(...e){t(this,o).setStep(...e)}getRotationStep(...e){return t(this,o).getStepValue(...e)}setScaleStep(...e){t(this,c).setStep(...e)}getScaleStep(...e){return t(this,c).getStepValue(...e)}deletePositionStep(...e){t(this,l).deleteStep(...e)}deleteRotationStep(...e){t(this,o).deleteStep(...e)}deleteScaleStep(...e){t(this,c).deleteStep(...e)}onPosition(...e){return t(this,l).subscribe(...e)}offPosition(...e){t(this,l).unsubscribe(...e)}onScale(...e){return t(this,c).subscribe(...e)}offScale(...e){t(this,c).unsubscribe(...e)}onRotation(...e){return t(this,o).subscribe(...e)}offRotation(...e){t(this,o).unsubscribe(...e)}}a=new WeakMap,p=new WeakMap,m=new WeakMap,v=new WeakMap,V=new WeakMap,T=new WeakMap,w=new WeakMap,C=new WeakMap,A=new WeakMap,W=new WeakMap,b=new WeakMap,_=new WeakMap,X=new WeakMap,S=new WeakMap,d=new WeakMap,R=new WeakMap,Y=new WeakMap,H=new WeakMap,k=new WeakMap,f=new WeakMap,g=new WeakMap,z=new WeakMap,o=new WeakMap,l=new WeakMap,c=new WeakMap,x=new WeakMap,M=new WeakMap,U=new WeakSet,Q=function(){t(this,c).calculate(),t(this,l).calculate(),t(this,o).calculate()},I=new WeakSet,nt=function(){t(this,c).setStep("_size","+",{x:t(this,w)?t(this,b):1,y:t(this,w)?t(this,_):1,z:t(this,w)?t(this,X):1});const e=t(this,C)?t(this,Y):0,s=t(this,C)?t(this,H):0,n=t(this,C)?t(this,k):0;t(this,l).setStep("_position","+",{x:e,y:s,z:n}),t(this,A)?(t(this,c).setStep("_scale","*",{x:t(this,z).x,y:t(this,z).y,z:t(this,z).z}),t(this,l).setStep("_translation","+",{x:t(this,f).x,y:t(this,f).y,z:t(this,f).z}),t(this,o).setStep("_rotation","+",{x:t(this,g).x,y:t(this,g).y,z:t(this,g).z})):(t(this,c).setStep("_scale","*",{x:1,y:1,z:1}),t(this,l).setStep("_translation","+",{x:0,y:0,z:0}),t(this,o).setStep("_rotation","+",{x:0,y:0,z:0}))},K=new WeakSet,lt=function(){const e=getComputedStyle(t(this,a));r(this,b,Math.max(t(this,a).clientWidth,1)),r(this,_,Math.max(t(this,a).clientHeight,1)),r(this,X,Math.max(dt.cssUnitParser.parse(e.getPropertyValue("--depth")||"0px"),1));const s=P.getCumulativeOffsetLeft(t(this,p)),n=P.getCumulativeOffsetTop(t(this,p)),y=t(this,p).clientWidth,B=t(this,p).clientHeight;if(r(this,d,P.getCumulativeOffsetLeft(t(this,a))-s),r(this,S,P.getCumulativeOffsetTop(t(this,a))-n),t(this,v)==="z"){const O=t(this,d)/y,q=t(this,S)/B;r(this,d,(O-Math.floor(O))*y),r(this,S,(q-Math.floor(q))*B),t(this,V)==="left"?r(this,R,P.getCumulativeOffsetLeft(t(this,a))-s-t(this,d)):r(this,R,P.getCumulativeOffsetTop(t(this,a))-n-t(this,S))}if(r(this,d,t(this,d)+t(this,a).clientLeft),r(this,S,t(this,S)+t(this,a).clientTop),t(this,T)){const O=Math.round(y/2),q=Math.round(B/2),ot=t(this,b)?Math.round(t(this,b)/2):0,at=t(this,_)?Math.round(t(this,_)/2):0,ut=t(this,d)-O+ot,St=(t(this,S)-q+at)*-1;r(this,Y,ut),r(this,H,St)}else r(this,Y,t(this,d)),r(this,H,t(this,S));r(this,k,t(this,R)*-1);const F=new WebKitCSSMatrix(e.transform),u=rt(F);t(this,f).x=u.translationX,t(this,f).y=u.translationY,t(this,f).z=u.translationZ,t(this,z).x=u.scaleX,t(this,z).y=u.scaleY,t(this,z).z=u.scaleZ,t(this,g).x=u.rotationX,t(this,g).y=u.rotationY,t(this,g).z=u.rotationZ,L(this,I,nt).call(this),L(this,U,Q).call(this)},$=new WeakSet,ct=function(){t(this,x).x=0,t(this,x).y=0,t(this,x).z=0;for(let e=0;e<t(this,m).length;e++){const s=t(this,m)[e]();let n=s.axis;t(this,v)!=="auto"&&(n=t(this,v));const y=s.value*(n==="x"?-1:t(this,T)?1:-1);t(this,x)[n]+=y,t(this,l).setStep(`_scroll_${e}`,"+",{[n]:y})}},E=new WeakMap,D=new WeakMap,Z=new WeakMap;exports.LayoutBox=ft;exports.decomposeCSSMatrix=rt;
1
+ "use strict";var G=(i,e,s)=>{if(!e.has(i))throw TypeError("Cannot "+s)};var t=(i,e,s)=>(G(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)},r=(i,e,s,l)=>(G(i,e,"write to private field"),l?l.call(i,s):e.set(i,s),s);var O=(i,e,s)=>(G(i,e,"access private method"),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ft=require("../css-unit-parser/index.cjs"),J=require("../ladder/index.cjs"),tt=require("../order/index.cjs"),Q=require("../scroll-entries/index.cjs"),et=require("../ticker/index.cjs"),st=require("../browser-CpzFX2xg.cjs"),it=require("../dom-JBOkFLTh.cjs"),L=require("../layout-8ryRAMGJ.cjs"),ht=require("../element-resizer/index.cjs"),rt=require("../window-resizer/index.cjs"),gt=require("../notifier/index.cjs");function nt(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),m=Math.atan2(i.m32,i.m33),Z=Math.atan2(-i.m31,Math.sqrt(i.m32*i.m32+i.m33*i.m33)),F=Math.atan2(i.m21,i.m11),a=i.m41,P=i.m42*-1,q=i.m43;return{scaleX:e,scaleY:s,scaleZ:l,rotationX:m,rotationY:Z,rotationZ:F,translationX:a,translationY:P,translationZ:q}}var u,z,b,M,B,V,R,v,A,W,y,x,T,S,d,w,X,Y,k,f,g,p,o,n,c,_,E,H,U,j,K,lt,N,ct,$,ot,C,D,I;class pt{constructor(e,s){h(this,U);h(this,K);h(this,N);h(this,$);h(this,u,null);h(this,z,null);h(this,b,[]);h(this,M,"auto");h(this,B,"top");h(this,V,!1);h(this,R,!0);h(this,v,!0);h(this,A,!0);h(this,W,!0);h(this,y,0);h(this,x,0);h(this,T,0);h(this,S,0);h(this,d,0);h(this,w,0);h(this,X,0);h(this,Y,0);h(this,k,0);h(this,f,{x:0,y:0,z:0});h(this,g,{x:0,y:0,z:0});h(this,p,{x:1,y:1,z:1});h(this,o,new J.Ladder({x:0,y:0,z:0}));h(this,n,new J.Ladder({x:0,y:0,z:0}));h(this,c,new J.Ladder({x:0,y:0,z:0}));h(this,_,{x:0,y:0,z:0});h(this,E,new Map);h(this,H,new gt.Notifier);h(this,C,()=>{st.isBrowser&&O(this,N,ct).call(this)});h(this,D,()=>{O(this,$,ot).call(this),O(this,U,j).call(this)});h(this,I,()=>{const e=Q.scrollEntries.getAll(this.element);t(this,E).forEach((s,l)=>{e.includes(l)||(this.deleteScrollStep(s),t(this,E).delete(l))}),e.forEach(s=>{if(!t(this,E).has(s)){const l=()=>s;t(this,E).set(s,l),this.setScrollStep(l)}})});st.isBrowser&&(r(this,u,it.getElement(e)||document.body),r(this,z,it.getElement(s==null?void 0:s.containerElement)||document.body),r(this,M,(s==null?void 0:s.scrollAxis)||"auto"),r(this,B,(s==null?void 0:s.frontSide)||"top"),r(this,V,(s==null?void 0:s.cartesian)||!1),r(this,R,(s==null?void 0:s.sizeStep)!==void 0?s.sizeStep:!0),r(this,v,(s==null?void 0:s.positionStep)!==void 0?s.positionStep:!0),r(this,A,(s==null?void 0:s.transformStep)!==void 0?s.transformStep:!0),r(this,W,(s==null?void 0:s.scrollStep)!==void 0?s.scrollStep:!0),t(this,c).setStep("_size","+",{x:1,y:1,z:1}),t(this,n).setStep("_position","+",{x:0,y:0,z:0}),t(this,c).setStep("_scale","*",{x:1,y:1,z:1}),t(this,n).setStep("_translation","+",{x:0,y:0,z:0}),t(this,o).setStep("_rotation","+",{x:0,y:0,z:0}),t(this,W)&&(Q.scrollEntries.notifier.subscribe(t(this,I)),t(this,I).call(this)),ht.elementResizer.subscribe(this.element,t(this,C)),rt.windowResizer.subscribe(t(this,C),tt.RESIZE_ORDER.LAYOUT_BOX),et.ticker.subscribe(t(this,D),{order:tt.TICK_ORDER.LAYOUT_BOX,culling:s!=null&&s.culling?this.element:void 0}))}get element(){return t(this,u)}get containerElement(){return t(this,z)}get position(){return t(this,n).current}get rotation(){return t(this,o).current}get scale(){return t(this,c).current}get scrollValue(){return t(this,_)}get left(){return t(this,d)}get top(){return t(this,S)}get CSSTranslation(){return t(this,f)}get CSSRotation(){return t(this,g)}get CSSScale(){return t(this,p)}get front(){return t(this,w)}get width(){return t(this,y)}get height(){return t(this,x)}get depth(){return t(this,T)}destroy(){et.ticker.unsubscribe(t(this,D)),ht.elementResizer.unsubscribe(t(this,C)),rt.windowResizer.unsubscribe(t(this,C)),Q.scrollEntries.notifier.unsubscribe(t(this,I)),t(this,E).clear(),t(this,n).close(),t(this,o).close(),t(this,c).close()}bindObject(e){e.position&&t(this,n).bind(e.position),e.rotation&&t(this,o).bind(e.rotation),e.scale&&t(this,c).bind(e.scale)}unbindObject(e){e.position&&t(this,n).unbind(e.position),e.rotation&&t(this,o).unbind(e.rotation),e.scale&&t(this,c).unbind(e.scale)}setScrollStep(e){return t(this,b).includes(e)||t(this,b).push(e),()=>this.deleteScrollStep(e)}deleteScrollStep(e){r(this,b,t(this,b).filter(s=>s!==e))}setPositionStep(...e){t(this,n).setStep(...e)}getPositionStep(...e){return t(this,n).getStepValue(...e)}setRotationStep(...e){t(this,o).setStep(...e)}getRotationStep(...e){return t(this,o).getStepValue(...e)}getExcludedRotationSteps(...e){return t(this,o).getExcludedStepsValue(...e)}getIncludedRotationSteps(...e){return t(this,o).getIncludedStepsValue(...e)}setScaleStep(...e){t(this,c).setStep(...e)}getScaleStep(...e){return t(this,c).getStepValue(...e)}getExcludedScaleSteps(...e){return t(this,c).getExcludedStepsValue(...e)}getIncludedScaleSteps(...e){return t(this,c).getIncludedStepsValue(...e)}deletePositionStep(...e){t(this,n).deleteStep(...e)}getExcludedPositionSteps(...e){return t(this,n).getExcludedStepsValue(...e)}getIncludedPositionSteps(...e){return t(this,n).getIncludedStepsValue(...e)}deleteRotationStep(...e){t(this,o).deleteStep(...e)}deleteScaleStep(...e){t(this,c).deleteStep(...e)}onPosition(...e){return t(this,n).subscribe(...e)}offPosition(...e){t(this,n).unsubscribe(...e)}onScale(...e){return t(this,c).subscribe(...e)}offScale(...e){t(this,c).unsubscribe(...e)}onRotation(...e){return t(this,o).subscribe(...e)}offRotation(...e){t(this,o).unsubscribe(...e)}onResize(...e){return t(this,H).subscribe(...e)}offResize(...e){return t(this,H).unsubscribe(...e)}}u=new WeakMap,z=new WeakMap,b=new WeakMap,M=new WeakMap,B=new WeakMap,V=new WeakMap,R=new WeakMap,v=new WeakMap,A=new WeakMap,W=new WeakMap,y=new WeakMap,x=new WeakMap,T=new WeakMap,S=new WeakMap,d=new WeakMap,w=new WeakMap,X=new WeakMap,Y=new WeakMap,k=new WeakMap,f=new WeakMap,g=new WeakMap,p=new WeakMap,o=new WeakMap,n=new WeakMap,c=new WeakMap,_=new WeakMap,E=new WeakMap,H=new WeakMap,U=new WeakSet,j=function(){t(this,c).calculate(),t(this,n).calculate(),t(this,o).calculate()},K=new WeakSet,lt=function(){t(this,c).setStep("_size","+",{x:t(this,R)?t(this,y):1,y:t(this,R)?t(this,x):1,z:t(this,R)?t(this,T):1});const e=t(this,v)?t(this,X):0,s=t(this,v)?t(this,Y):0,l=t(this,v)?t(this,k):0;t(this,n).setStep("_position","+",{x:e,y:s,z:l}),t(this,A)?(t(this,c).setStep("_scale","*",{x:t(this,p).x,y:t(this,p).y,z:t(this,p).z}),t(this,n).setStep("_translation","+",{x:t(this,f).x,y:t(this,f).y,z:t(this,f).z}),t(this,o).setStep("_rotation","+",{x:t(this,g).x,y:t(this,g).y,z:t(this,g).z})):(t(this,c).setStep("_scale","*",{x:1,y:1,z:1}),t(this,n).setStep("_translation","+",{x:0,y:0,z:0}),t(this,o).setStep("_rotation","+",{x:0,y:0,z:0}))},N=new WeakSet,ct=function(){const e=getComputedStyle(t(this,u));r(this,y,Math.max(t(this,u).clientWidth,1)),r(this,x,Math.max(t(this,u).clientHeight,1)),r(this,T,Math.max(ft.cssUnitParser.parse(e.getPropertyValue("--depth")||"0px"),1));const s=L.getCumulativeOffsetLeft(t(this,z)),l=L.getCumulativeOffsetTop(t(this,z)),m=t(this,z).clientWidth,Z=t(this,z).clientHeight;if(r(this,d,L.getCumulativeOffsetLeft(t(this,u))-s),r(this,S,L.getCumulativeOffsetTop(t(this,u))-l),t(this,M)==="z"){const P=t(this,d)/m,q=t(this,S)/Z;r(this,d,(P-Math.floor(P))*m),r(this,S,(q-Math.floor(q))*Z),t(this,B)==="left"?r(this,w,L.getCumulativeOffsetLeft(t(this,u))-s-t(this,d)):r(this,w,L.getCumulativeOffsetTop(t(this,u))-l-t(this,S))}if(r(this,d,t(this,d)+t(this,u).clientLeft),r(this,S,t(this,S)+t(this,u).clientTop),t(this,V)){const P=Math.round(m/2),q=Math.round(Z/2),ut=t(this,y)?Math.round(t(this,y)/2):0,at=t(this,x)?Math.round(t(this,x)/2):0,St=t(this,d)-P+ut,dt=(t(this,S)-q+at)*-1;r(this,X,St),r(this,Y,dt)}else r(this,X,t(this,d)),r(this,Y,t(this,S));r(this,k,t(this,w)*-1);const F=new WebKitCSSMatrix(e.transform),a=nt(F);t(this,f).x=a.translationX,t(this,f).y=a.translationY,t(this,f).z=a.translationZ,t(this,p).x=a.scaleX,t(this,p).y=a.scaleY,t(this,p).z=a.scaleZ,t(this,g).x=a.rotationX,t(this,g).y=a.rotationY,t(this,g).z=a.rotationZ,O(this,K,lt).call(this),O(this,U,j).call(this),t(this,H).notify()},$=new WeakSet,ot=function(){t(this,_).x=0,t(this,_).y=0,t(this,_).z=0;for(let e=0;e<t(this,b).length;e++){const s=t(this,b)[e]();let l=s.axis;t(this,M)!=="auto"&&(l=t(this,M));const m=s.value*(l==="x"?-1:t(this,V)?1:-1);t(this,_)[l]+=m,t(this,n).setStep(`_scroll_${e}`,"+",{[l]:m})}},C=new WeakMap,D=new WeakMap,I=new WeakMap;exports.LayoutBox=pt;exports.decomposeCSSMatrix=nt;
@@ -1,6 +1,7 @@
1
- import { ElementOrSelector, Axes3D, Axes2D } from '../utils';
2
- import { StoreCallback, StoreEntry } from '../store';
3
1
  import { Ladder } from '../ladder';
2
+ import { StoreCallback, StoreEntry } from '../store';
3
+ import { ElementOrSelector, Axes3D, Axes2D } from '../utils';
4
+ import { Notifier } from '../notifier';
4
5
 
5
6
  export declare function decomposeCSSMatrix(matrix: WebKitCSSMatrix): {
6
7
  scaleX: number;
@@ -73,9 +74,15 @@ export declare class LayoutBox {
73
74
  getPositionStep(...args: Parameters<Ladder<LayoutBoxLadder>['getStepValue']>): LayoutBoxLadder;
74
75
  setRotationStep(...args: Parameters<Ladder<LayoutBoxLadder>['setStep']>): void;
75
76
  getRotationStep(...args: Parameters<Ladder<LayoutBoxLadder>['getStepValue']>): LayoutBoxLadder;
77
+ getExcludedRotationSteps(...args: Parameters<Ladder<LayoutBoxLadder>['getExcludedStepsValue']>): LayoutBoxLadder;
78
+ getIncludedRotationSteps(...args: Parameters<Ladder<LayoutBoxLadder>['getIncludedStepsValue']>): LayoutBoxLadder;
76
79
  setScaleStep(...args: Parameters<Ladder<LayoutBoxLadder>['setStep']>): void;
77
80
  getScaleStep(...args: Parameters<Ladder<LayoutBoxLadder>['getStepValue']>): LayoutBoxLadder;
81
+ getExcludedScaleSteps(...args: Parameters<Ladder<LayoutBoxLadder>['getExcludedStepsValue']>): LayoutBoxLadder;
82
+ getIncludedScaleSteps(...args: Parameters<Ladder<LayoutBoxLadder>['getIncludedStepsValue']>): LayoutBoxLadder;
78
83
  deletePositionStep(...args: Parameters<Ladder<LayoutBoxLadder>['deleteStep']>): void;
84
+ getExcludedPositionSteps(...args: Parameters<Ladder<LayoutBoxLadder>['getExcludedStepsValue']>): LayoutBoxLadder;
85
+ getIncludedPositionSteps(...args: Parameters<Ladder<LayoutBoxLadder>['getIncludedStepsValue']>): LayoutBoxLadder;
79
86
  deleteRotationStep(...args: Parameters<Ladder<LayoutBoxLadder>['deleteStep']>): void;
80
87
  deleteScaleStep(...args: Parameters<Ladder<LayoutBoxLadder>['deleteStep']>): void;
81
88
  onPosition(...args: Parameters<Ladder<LayoutBoxLadder>['subscribe']>): () => void;
@@ -84,4 +91,6 @@ export declare class LayoutBox {
84
91
  offScale(...args: Parameters<Ladder<LayoutBoxLadder>['unsubscribe']>): void;
85
92
  onRotation(...args: Parameters<Ladder<LayoutBoxLadder>['subscribe']>): () => void;
86
93
  offRotation(...args: Parameters<Ladder<LayoutBoxLadder>['unsubscribe']>): void;
94
+ onResize(...args: Parameters<Notifier['subscribe']>): () => void;
95
+ offResize(...args: Parameters<Notifier['unsubscribe']>): void;
87
96
  }