aptechka 0.1.3 → 0.1.5

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 (209) hide show
  1. package/lib/Animated-CzBHCHNm.js +130 -0
  2. package/lib/Animated-DZ_fbJmi.cjs +1 -0
  3. package/lib/Damped--qBZAdEi.cjs +1 -0
  4. package/lib/Damped-Bm1kSn1f.js +36 -0
  5. package/lib/Derived-BS2ja9qa.js +27 -0
  6. package/lib/Derived-CqmIkTGN.cjs +1 -0
  7. package/lib/ElementConstructor-DB0xOoat.js +199 -0
  8. package/lib/ElementConstructor-v1FPLXAW.cjs +1 -0
  9. package/lib/{SourceManager-vXInLlh_.js → SourceManager-B44FUTig.js} +26 -26
  10. package/lib/SourceManager-D447KWpH.cjs +1 -0
  11. package/lib/Store-BOOfmlyv.cjs +1 -0
  12. package/lib/{Store-qq7IjRLE.js → Store-uTyReFzx.js} +50 -34
  13. package/lib/Viewport-CDqiD8Ao.cjs +1 -0
  14. package/lib/Viewport-Cj0i-H5d.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 +14 -0
  37. package/lib/connector/index.js +53 -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-74ZP3AZm.js +8 -0
  42. package/lib/createStylesheet-ChhZFwSX.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 +11 -15
  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-CNEFIHPp.js +683 -0
  71. package/lib/htmlTags-CwYHVo9n.cjs +1 -0
  72. package/lib/image/index.cjs +1 -1
  73. package/lib/image/index.js +13 -20
  74. package/lib/index-DyJhLxk8.js +310 -0
  75. package/lib/index-tPw9mmLF.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/ComponentWrapper.d.ts +12 -0
  80. package/lib/jsx/h.d.ts +7 -0
  81. package/lib/jsx/hooks.d.ts +19 -0
  82. package/lib/jsx/index.cjs +1 -0
  83. package/lib/jsx/index.d.ts +4 -0
  84. package/lib/jsx/index.js +125 -0
  85. package/lib/jsx/render.d.ts +2 -0
  86. package/lib/jsx/type.d.ts +185 -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 +985 -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 +20 -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 +7 -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-txkR3wXU.cjs +0 -1
  177. package/lib/WheelControls-9ZQKSYYq.js +0 -83
  178. package/lib/WheelControls-TYhGU6oA.cjs +0 -1
  179. package/lib/canvas-2d/index.cjs +0 -5
  180. package/lib/canvas-2d/index.js +0 -90
  181. package/lib/element-constructor/specialObjects.d.ts +0 -2
  182. package/lib/measurer/CumulativeOffsetLeft.d.ts +0 -4
  183. package/lib/measurer/CumulativeOffsetTop.d.ts +0 -4
  184. package/lib/measurer/Meaurer.d.ts +0 -8
  185. package/lib/measurer/index.cjs +0 -1
  186. package/lib/measurer/index.d.ts +0 -3
  187. package/lib/measurer/index.js +0 -48
  188. package/lib/number-2bR0KBcX.cjs +0 -1
  189. package/lib/number-bCHB2GAD.js +0 -31
  190. package/lib/resizer/index.cjs +0 -1
  191. package/lib/resizer/index.d.ts +0 -10
  192. package/lib/resizer/index.js +0 -45
  193. package/lib/string-GmxZA5Nq.js +0 -31
  194. package/lib/string-WmNOGq16.cjs +0 -1
  195. package/lib/utils/dev.d.ts +0 -3
  196. /package/lib/{attributes-w0u-KiIb.js → attributes-69we3byR.js} +0 -0
  197. /package/lib/{attributes-_2U65GDl.cjs → attributes-Bf2svn4j.cjs} +0 -0
  198. /package/lib/{browser-S4eq8AeN.js → browser-0zX67oeU.js} +0 -0
  199. /package/lib/{browser-QbF6EW-w.cjs → browser-CpzFX2xg.cjs} +0 -0
  200. /package/lib/{dom-bHEwc_xV.js → dom-BY7JhTx5.js} +0 -0
  201. /package/lib/{dom-QhWsdQS2.cjs → dom-qY2LdCVL.cjs} +0 -0
  202. /package/lib/{easings-uF-tgahf.js → easings-BKi40vHz.js} +0 -0
  203. /package/lib/{easings-_wFs9ZWc.cjs → easings-DsS5-Kqc.cjs} +0 -0
  204. /package/lib/{function-zwSFehNd.js → function-C10DGppn.js} +0 -0
  205. /package/lib/{function-QP7IreXR.cjs → function-MthRj-GJ.cjs} +0 -0
  206. /package/lib/{layout-rZzbsLPd.cjs → layout-8ryRAMGJ.cjs} +0 -0
  207. /package/lib/{layout-5SJlcXTY.js → layout-HoBT_Da2.js} +0 -0
  208. /package/lib/{math-_a3IpKOc.js → math-BOBiC4TN.js} +0 -0
  209. /package/lib/{math-FNUBmQPK.cjs → math-GDWEqu7y.cjs} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aptechka",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/denisavitski/aptechka.git"
@@ -18,6 +18,16 @@
18
18
  ],
19
19
  "type": "module",
20
20
  "exports": {
21
+ "./abstract-elements": {
22
+ "require": "./lib/abstract-elements/index.cjs",
23
+ "default": "./lib/abstract-elements/index.js",
24
+ "types": "./lib/abstract-elements/index.d.ts"
25
+ },
26
+ "./accordion": {
27
+ "require": "./lib/accordion/index.cjs",
28
+ "default": "./lib/accordion/index.js",
29
+ "types": "./lib/accordion/index.d.ts"
30
+ },
21
31
  "./animation": {
22
32
  "require": "./lib/animation/index.cjs",
23
33
  "default": "./lib/animation/index.js",
@@ -28,10 +38,15 @@
28
38
  "default": "./lib/attribute/index.js",
29
39
  "types": "./lib/attribute/index.d.ts"
30
40
  },
31
- "./canvas-2d": {
32
- "require": "./lib/canvas-2d/index.cjs",
33
- "default": "./lib/canvas-2d/index.js",
34
- "types": "./lib/canvas-2d/index.d.ts"
41
+ "./canvas": {
42
+ "require": "./lib/canvas/index.cjs",
43
+ "default": "./lib/canvas/index.js",
44
+ "types": "./lib/canvas/index.d.ts"
45
+ },
46
+ "./connector": {
47
+ "require": "./lib/connector/index.cjs",
48
+ "default": "./lib/connector/index.js",
49
+ "types": "./lib/connector/index.d.ts"
35
50
  },
36
51
  "./controls": {
37
52
  "require": "./lib/controls/index.cjs",
@@ -58,6 +73,11 @@
58
73
  "default": "./lib/element-constructor/index.js",
59
74
  "types": "./lib/element-constructor/index.d.ts"
60
75
  },
76
+ "./element-resizer": {
77
+ "require": "./lib/element-resizer/index.cjs",
78
+ "default": "./lib/element-resizer/index.js",
79
+ "types": "./lib/element-resizer/index.d.ts"
80
+ },
61
81
  "./en3": {
62
82
  "require": "./lib/en3/index.cjs",
63
83
  "default": "./lib/en3/index.js",
@@ -73,6 +93,11 @@
73
93
  "default": "./lib/intersector/index.js",
74
94
  "types": "./lib/intersector/index.d.ts"
75
95
  },
96
+ "./jsx": {
97
+ "require": "./lib/jsx/index.cjs",
98
+ "default": "./lib/jsx/index.js",
99
+ "types": "./lib/jsx/index.d.ts"
100
+ },
76
101
  "./ladder": {
77
102
  "require": "./lib/ladder/index.cjs",
78
103
  "default": "./lib/ladder/index.js",
@@ -88,16 +113,16 @@
88
113
  "default": "./lib/loading/index.js",
89
114
  "types": "./lib/loading/index.d.ts"
90
115
  },
91
- "./measurer": {
92
- "require": "./lib/measurer/index.cjs",
93
- "default": "./lib/measurer/index.js",
94
- "types": "./lib/measurer/index.d.ts"
95
- },
96
116
  "./media": {
97
117
  "require": "./lib/media/index.cjs",
98
118
  "default": "./lib/media/index.js",
99
119
  "types": "./lib/media/index.d.ts"
100
120
  },
121
+ "./modal": {
122
+ "require": "./lib/modal/index.cjs",
123
+ "default": "./lib/modal/index.js",
124
+ "types": "./lib/modal/index.d.ts"
125
+ },
101
126
  "./morph": {
102
127
  "require": "./lib/morph/index.cjs",
103
128
  "default": "./lib/morph/index.js",
@@ -113,10 +138,10 @@
113
138
  "default": "./lib/order/index.js",
114
139
  "types": "./lib/order/index.d.ts"
115
140
  },
116
- "./resizer": {
117
- "require": "./lib/resizer/index.cjs",
118
- "default": "./lib/resizer/index.js",
119
- "types": "./lib/resizer/index.d.ts"
141
+ "./popover": {
142
+ "require": "./lib/popover/index.cjs",
143
+ "default": "./lib/popover/index.js",
144
+ "types": "./lib/popover/index.d.ts"
120
145
  },
121
146
  "./router": {
122
147
  "require": "./lib/router/index.cjs",
@@ -133,6 +158,11 @@
133
158
  "default": "./lib/scroll-entries/index.js",
134
159
  "types": "./lib/scroll-entries/index.d.ts"
135
160
  },
161
+ "./select": {
162
+ "require": "./lib/select/index.cjs",
163
+ "default": "./lib/select/index.js",
164
+ "types": "./lib/select/index.d.ts"
165
+ },
136
166
  "./source": {
137
167
  "require": "./lib/source/index.cjs",
138
168
  "default": "./lib/source/index.js",
@@ -143,6 +173,16 @@
143
173
  "default": "./lib/store/index.js",
144
174
  "types": "./lib/store/index.d.ts"
145
175
  },
176
+ "./studio": {
177
+ "require": "./lib/studio/index.cjs",
178
+ "default": "./lib/studio/index.js",
179
+ "types": "./lib/studio/index.d.ts"
180
+ },
181
+ "./theme": {
182
+ "require": "./lib/theme/index.cjs",
183
+ "default": "./lib/theme/index.js",
184
+ "types": "./lib/theme/index.d.ts"
185
+ },
146
186
  "./ticker": {
147
187
  "require": "./lib/ticker/index.cjs",
148
188
  "default": "./lib/ticker/index.js",
@@ -157,18 +197,29 @@
157
197
  "require": "./lib/video/index.cjs",
158
198
  "default": "./lib/video/index.js",
159
199
  "types": "./lib/video/index.d.ts"
200
+ },
201
+ "./window-resizer": {
202
+ "require": "./lib/window-resizer/index.cjs",
203
+ "default": "./lib/window-resizer/index.js",
204
+ "types": "./lib/window-resizer/index.d.ts"
160
205
  }
161
206
  },
162
207
  "typesVersions": {
163
208
  "*": {
209
+ "accordion": [
210
+ "lib/accordion/index.d.ts"
211
+ ],
164
212
  "animation": [
165
213
  "lib/animation/index.d.ts"
166
214
  ],
167
215
  "attribute": [
168
216
  "lib/attribute/index.d.ts"
169
217
  ],
170
- "canvas-2d": [
171
- "lib/canvas-2d/index.d.ts"
218
+ "canvas": [
219
+ "lib/canvas/index.d.ts"
220
+ ],
221
+ "connector": [
222
+ "lib/connector/index.d.ts"
172
223
  ],
173
224
  "controls": [
174
225
  "lib/controls/index.d.ts"
@@ -194,6 +245,9 @@
194
245
  "intersector": [
195
246
  "lib/intersector/index.d.ts"
196
247
  ],
248
+ "jsx": [
249
+ "lib/jsx/index.d.ts"
250
+ ],
197
251
  "ladder": [
198
252
  "lib/ladder/index.d.ts"
199
253
  ],
@@ -203,12 +257,12 @@
203
257
  "loading": [
204
258
  "lib/loading/index.d.ts"
205
259
  ],
206
- "measurer": [
207
- "lib/measurer/index.d.ts"
208
- ],
209
260
  "media": [
210
261
  "lib/media/index.d.ts"
211
262
  ],
263
+ "modal": [
264
+ "lib/modal/index.d.ts"
265
+ ],
212
266
  "morph": [
213
267
  "lib/morph/index.d.ts"
214
268
  ],
@@ -218,8 +272,8 @@
218
272
  "order": [
219
273
  "lib/order/index.d.ts"
220
274
  ],
221
- "resizer": [
222
- "lib/resizer/index.d.ts"
275
+ "popover": [
276
+ "lib/popover/index.d.ts"
223
277
  ],
224
278
  "router": [
225
279
  "lib/router/index.d.ts"
@@ -230,12 +284,21 @@
230
284
  "scroll-entries": [
231
285
  "lib/scroll-entries/index.d.ts"
232
286
  ],
287
+ "select": [
288
+ "lib/select/index.d.ts"
289
+ ],
233
290
  "source": [
234
291
  "lib/source/index.d.ts"
235
292
  ],
236
293
  "store": [
237
294
  "lib/store/index.d.ts"
238
295
  ],
296
+ "studio": [
297
+ "lib/studio/index.d.ts"
298
+ ],
299
+ "theme": [
300
+ "lib/theme/index.d.ts"
301
+ ],
239
302
  "ticker": [
240
303
  "lib/ticker/index.d.ts"
241
304
  ],
@@ -254,20 +317,20 @@
254
317
  "preview": "vite preview"
255
318
  },
256
319
  "devDependencies": {
257
- "@types/node": "^20.11.5",
258
- "@types/three": "^0.160.0",
259
- "vite": "^5.0.12",
320
+ "@types/node": "^20.11.17",
321
+ "@types/three": "^0.161.2",
322
+ "vite": "5.1.1",
260
323
  "vite-plugin-dts": "^3.7.2",
261
- "vite-plugin-html-components": "^0.1.2"
324
+ "vite-plugin-htmc": "^0.1.1"
262
325
  },
263
326
  "dependencies": {
264
- "detect-gpu": "^5.0.37",
265
- "three": "^0.160.1",
327
+ "detect-gpu": "^5.0.38",
328
+ "three": "^0.161.0",
266
329
  "urlpattern-polyfill": "^10.0.0"
267
330
  },
268
331
  "peerDependencies": {
269
332
  "detect-gpu": "^5.0.37",
270
- "three": "^0.160.1",
333
+ "three": "^0.161.0",
271
334
  "urlpattern-polyfill": "^10.0.0"
272
335
  }
273
336
  }
@@ -1 +0,0 @@
1
- "use strict";var z=Object.defineProperty,B=Object.defineProperties;var C=Object.getOwnPropertyDescriptors;var M=Object.getOwnPropertySymbols;var G=Object.prototype.hasOwnProperty,H=Object.prototype.propertyIsEnumerable;var k=(s,e,t)=>e in s?z(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,v=(s,e)=>{for(var t in e||(e={}))G.call(e,t)&&k(s,t,e[t]);if(M)for(var t of M(e))H.call(e,t)&&k(s,t,e[t]);return s},D=(s,e)=>B(s,C(e));var R=(s,e,t)=>(k(s,typeof e!="symbol"?e+"":e,t),t),I=(s,e,t)=>{if(!e.has(s))throw TypeError("Cannot "+t)};var i=(s,e,t)=>(I(s,e,"read from private field"),t?t.call(s):e.get(s)),a=(s,e,t)=>{if(e.has(s))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(s):e.set(s,t)},h=(s,e,t,r)=>(I(s,e,"write to private field"),r?r.call(s,t):e.set(s,t),t);var b=(s,e,t)=>(I(s,e,"access private method"),t);const _=require("./math-FNUBmQPK.cjs"),L=require("./number-2bR0KBcX.cjs"),w=require("./Store-txkR3wXU.cjs"),E=require("./ticker/index.cjs");var g,S,y,n,l,x,m,f,q,c,F,P,d,A;class j extends w.Store{constructor(t){super(0,t);a(this,d);a(this,g,void 0);a(this,S,void 0);a(this,y,void 0);a(this,n,void 0);a(this,l,void 0);a(this,x,void 0);a(this,m,void 0);a(this,f,new w.Store(!1));a(this,q,0);a(this,c,0);a(this,F,t=>{this.set(t.current)});a(this,P,t=>{const r=this.current;this.handleAnimationFrame(t);const u=Math.abs(r-this.target);h(this,c,u/t.elapsed)});h(this,S,t==null?void 0:t.order),h(this,g,t==null?void 0:t.maxFPS),h(this,y,t==null?void 0:t.culling),h(this,l,b(this,d,A).call(this,t==null?void 0:t.min)),h(this,x,b(this,d,A).call(this,t==null?void 0:t.max)),h(this,n,this.current=0)}get target(){return i(this,n)}get isRunning(){return i(this,f)}get direction(){return i(this,q)}get maxFPS(){return i(this,g)}get speed(){return i(this,c)}get min(){return i(this,l).call(this)}set min(t){h(this,l,b(this,d,A).call(this,t)),this.set(i(this,n)),this.current=i(this,n)}get max(){return i(this,x).call(this)}set max(t){h(this,x,b(this,d,A).call(this,t)),this.set(i(this,n)),this.current=i(this,n)}get delta(){return this.max-this.min}get progress(){return this.delta?L.fix((this.current-this.min)/this.delta,6):0}get entry(){return D(v({},super.entry),{min:this.min,max:this.max,delta:this.delta,direction:this.direction,progress:this.progress,speed:this.speed})}get setter(){return i(this,m)}set setter(t){var r,u;(r=i(this,m))==null||r.unsubscribe(i(this,F)),h(this,m,t),(u=i(this,m))==null||u.subscribe(i(this,F))}set(t,r=!1){const u=i(this,n);h(this,n,_.clamp(t,this.min,this.max)),r&&(this.current=i(this,n)),i(this,n)!==u&&(h(this,c,0),h(this,q,Math.sign(t-i(this,n))||1),this.update())}shift(t,r=!1){this.set(i(this,n)+t,r)}close(){var t;super.close(),this.unlistenAnimationFrame(),(t=i(this,m))==null||t.unsubscribe(i(this,F)),h(this,m,void 0)}reset(){this.set(this.initial,!0),super.reset(),this.unlistenAnimationFrame()}listenAnimationFrame(){i(this,f).current=!0,E.ticker.subscribe(i(this,P),{maxFPS:i(this,g),order:i(this,S),culling:i(this,y)})}unlistenAnimationFrame(){h(this,c,0),i(this,f).current=!1,E.ticker.unsubscribe(i(this,P))}}g=new WeakMap,S=new WeakMap,y=new WeakMap,n=new WeakMap,l=new WeakMap,x=new WeakMap,m=new WeakMap,f=new WeakMap,q=new WeakMap,c=new WeakMap,F=new WeakMap,P=new WeakMap,d=new WeakSet,A=function(t){const r=t||0;return typeof r=="function"?r:()=>r};class J extends j{constructor(t){var r,u;super(D(v({},t),{min:(r=t==null?void 0:t.min)!=null?r:-1/0,max:(u=t==null?void 0:t.max)!=null?u:1/0}));R(this,"damping");this.damping=(t==null?void 0:t.damping)||0}update(){this.damping?this.listenAnimationFrame():(this.current=this.target,this.unlistenAnimationFrame())}handleAnimationFrame(t){L.fix(this.current,4)===L.fix(this.target,4)&&(this.unlistenAnimationFrame(),this.current=this.target),this.current=_.damp(this.current,this.target,this.damping,t.elapsed)}}exports.Animated=j;exports.Damped=J;
@@ -1,152 +0,0 @@
1
- var q = Object.defineProperty, z = Object.defineProperties;
2
- var B = Object.getOwnPropertyDescriptors;
3
- var k = Object.getOwnPropertySymbols;
4
- var C = Object.prototype.hasOwnProperty, G = Object.prototype.propertyIsEnumerable;
5
- var D = (s, e, t) => e in s ? q(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, I = (s, e) => {
6
- for (var t in e || (e = {}))
7
- C.call(e, t) && D(s, t, e[t]);
8
- if (k)
9
- for (var t of k(e))
10
- G.call(e, t) && D(s, t, e[t]);
11
- return s;
12
- }, L = (s, e) => z(s, B(e));
13
- var w = (s, e, t) => (D(s, typeof e != "symbol" ? e + "" : e, t), t), M = (s, e, t) => {
14
- if (!e.has(s))
15
- throw TypeError("Cannot " + t);
16
- };
17
- var i = (s, e, t) => (M(s, e, "read from private field"), t ? t.call(s) : e.get(s)), n = (s, e, t) => {
18
- if (e.has(s))
19
- throw TypeError("Cannot add the same private member more than once");
20
- e instanceof WeakSet ? e.add(s) : e.set(s, t);
21
- }, h = (s, e, t, r) => (M(s, e, "write to private field"), r ? r.call(s, t) : e.set(s, t), t);
22
- var b = (s, e, t) => (M(s, e, "access private method"), t);
23
- import { c as H, d as J } from "./math-_a3IpKOc.js";
24
- import { f as R } from "./number-bCHB2GAD.js";
25
- import { S as E } from "./Store-qq7IjRLE.js";
26
- import { ticker as j } from "./ticker/index.js";
27
- var g, S, y, a, l, f, u, x, P, c, F, v, d, A;
28
- class K extends E {
29
- constructor(t) {
30
- super(0, t);
31
- n(this, d);
32
- n(this, g, void 0);
33
- n(this, S, void 0);
34
- n(this, y, void 0);
35
- n(this, a, void 0);
36
- n(this, l, void 0);
37
- n(this, f, void 0);
38
- n(this, u, void 0);
39
- n(this, x, new E(!1));
40
- n(this, P, 0);
41
- n(this, c, 0);
42
- n(this, F, (t) => {
43
- this.set(t.current);
44
- });
45
- n(this, v, (t) => {
46
- const r = this.current;
47
- this.handleAnimationFrame(t);
48
- const m = Math.abs(r - this.target);
49
- h(this, c, m / t.elapsed);
50
- });
51
- h(this, S, t == null ? void 0 : t.order), h(this, g, t == null ? void 0 : t.maxFPS), h(this, y, t == null ? void 0 : t.culling), h(this, l, b(this, d, A).call(this, t == null ? void 0 : t.min)), h(this, f, b(this, d, A).call(this, t == null ? void 0 : t.max)), h(this, a, this.current = 0);
52
- }
53
- get target() {
54
- return i(this, a);
55
- }
56
- get isRunning() {
57
- return i(this, x);
58
- }
59
- get direction() {
60
- return i(this, P);
61
- }
62
- get maxFPS() {
63
- return i(this, g);
64
- }
65
- get speed() {
66
- return i(this, c);
67
- }
68
- get min() {
69
- return i(this, l).call(this);
70
- }
71
- set min(t) {
72
- h(this, l, b(this, d, A).call(this, t)), this.set(i(this, a)), this.current = i(this, a);
73
- }
74
- get max() {
75
- return i(this, f).call(this);
76
- }
77
- set max(t) {
78
- h(this, f, b(this, d, A).call(this, t)), this.set(i(this, a)), this.current = i(this, a);
79
- }
80
- get delta() {
81
- return this.max - this.min;
82
- }
83
- get progress() {
84
- return this.delta ? R((this.current - this.min) / this.delta, 6) : 0;
85
- }
86
- get entry() {
87
- return L(I({}, super.entry), {
88
- min: this.min,
89
- max: this.max,
90
- delta: this.delta,
91
- direction: this.direction,
92
- progress: this.progress,
93
- speed: this.speed
94
- });
95
- }
96
- get setter() {
97
- return i(this, u);
98
- }
99
- set setter(t) {
100
- var r, m;
101
- (r = i(this, u)) == null || r.unsubscribe(i(this, F)), h(this, u, t), (m = i(this, u)) == null || m.subscribe(i(this, F));
102
- }
103
- set(t, r = !1) {
104
- const m = i(this, a);
105
- h(this, a, H(t, this.min, this.max)), r && (this.current = i(this, a)), i(this, a) !== m && (h(this, c, 0), h(this, P, Math.sign(t - i(this, a)) || 1), this.update());
106
- }
107
- shift(t, r = !1) {
108
- this.set(i(this, a) + t, r);
109
- }
110
- close() {
111
- var t;
112
- super.close(), this.unlistenAnimationFrame(), (t = i(this, u)) == null || t.unsubscribe(i(this, F)), h(this, u, void 0);
113
- }
114
- reset() {
115
- this.set(this.initial, !0), super.reset(), this.unlistenAnimationFrame();
116
- }
117
- listenAnimationFrame() {
118
- i(this, x).current = !0, j.subscribe(i(this, v), {
119
- maxFPS: i(this, g),
120
- order: i(this, S),
121
- culling: i(this, y)
122
- });
123
- }
124
- unlistenAnimationFrame() {
125
- h(this, c, 0), i(this, x).current = !1, j.unsubscribe(i(this, v));
126
- }
127
- }
128
- g = new WeakMap(), S = new WeakMap(), y = new WeakMap(), a = new WeakMap(), l = new WeakMap(), f = new WeakMap(), u = new WeakMap(), x = new WeakMap(), P = new WeakMap(), c = new WeakMap(), F = new WeakMap(), v = new WeakMap(), d = new WeakSet(), A = function(t) {
129
- const r = t || 0;
130
- return typeof r == "function" ? r : () => r;
131
- };
132
- class V extends K {
133
- constructor(t) {
134
- var r, m;
135
- super(L(I({}, t), {
136
- min: (r = t == null ? void 0 : t.min) != null ? r : -1 / 0,
137
- max: (m = t == null ? void 0 : t.max) != null ? m : 1 / 0
138
- }));
139
- w(this, "damping");
140
- this.damping = (t == null ? void 0 : t.damping) || 0;
141
- }
142
- update() {
143
- this.damping ? this.listenAnimationFrame() : (this.current = this.target, this.unlistenAnimationFrame());
144
- }
145
- handleAnimationFrame(t) {
146
- R(this.current, 4) === R(this.target, 4) && (this.unlistenAnimationFrame(), this.current = this.target), this.current = J(this.current, this.target, this.damping, t.elapsed);
147
- }
148
- }
149
- export {
150
- K as A,
151
- V as D
152
- };
@@ -1 +0,0 @@
1
- "use strict";var M=(n,s,t)=>{if(!s.has(n))throw TypeError("Cannot "+t)};var r=(n,s,t)=>(M(n,s,"read from private field"),t?t.call(n):s.get(n)),o=(n,s,t)=>{if(s.has(n))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(n):s.set(n,t)},c=(n,s,t,i)=>(M(n,s,"write to private field"),i?i.call(n,t):s.set(n,t),t);const k=require("./order/index.cjs"),R=require("./resizer/index.cjs"),z=require("./Store-txkR3wXU.cjs");var l,g,q,x,a,p,E;class I{constructor(s){o(this,l,void 0);o(this,g,void 0);o(this,q,void 0);o(this,x,void 0);o(this,a,void 0);o(this,p,void 0);o(this,E,void 0);c(this,l,s);const t=s.indexOf("?");t>=0&&(s=s.slice(0,t));const i=s.split(".");c(this,g,i[0]);const d=/\d+x/g,h=i.find(f=>f.match(d));c(this,q,h?parseInt(h):1);const y=/\d+max/g,w=/\d+min/g,e=i.find(f=>f.match(y)),u=i.find(f=>f.match(w));e?(c(this,a,parseInt(e)),c(this,p,"max"),c(this,x,`(max-width: ${r(this,a)}px)`)):u?(c(this,a,parseInt(u)),c(this,x,`(min-width: ${r(this,a)}px)`),c(this,p,"min")):(c(this,a,0),c(this,x,`(min-width: ${r(this,a)}px)`),c(this,p,"min")),c(this,E,"."+i[i.length-1])}get url(){return r(this,l)}get name(){return r(this,g)}get density(){return r(this,q)}get query(){return r(this,x)}get extension(){return r(this,E)}get queryType(){return r(this,p)}get queryPx(){return r(this,a)}}l=new WeakMap,g=new WeakMap,q=new WeakMap,x=new WeakMap,a=new WeakMap,p=new WeakMap,E=new WeakMap;var m;class b{constructor(s){o(this,m,void 0);c(this,m,new Map);const t=typeof s=="string"?s.trim().split(",").map(e=>e.trim()).filter(e=>!!e):s,i=[];t.forEach(e=>{const u=new I(e);i.push([u.query,u])});const d=i.filter(e=>e[1].queryType==="max").sort((e,u)=>u[1].queryPx-e[1].queryPx),h=i.filter(e=>e[1].queryType==="min"&&e[1].queryPx!==0).sort((e,u)=>e[1].queryPx-u[1].queryPx),y=i.filter(e=>e[0]==="(min-width: 0px)");(y?[...y,...d,...h]:[...d,...h]).forEach(e=>{r(this,m).has(e[0])||r(this,m).set(e[0],[]),r(this,m).get(e[0]).push(e[1])})}get mediaBuckets(){return r(this,m)}}m=new WeakMap;var P,S;class B extends z.Store{constructor(t){super(void 0);o(this,P,void 0);o(this,S,()=>{let t;r(this,P).mediaBuckets.forEach((h,y)=>{matchMedia(y).matches&&(t=h)});let i,d=0;t==null||t.forEach(h=>{h.density>d&&h.density<=Math.max(devicePixelRatio,1)&&(d=h.density,i=h)}),t!=null&&t.length&&!i&&(i=t[0]),this.current=i});c(this,P,new b(t.srcset))}close(){super.close(),this.disconnect()}connect(){R.resizer.subscribe(r(this,S),k.RESIZE_ORDER.SOURCE_MANAGER)}disconnect(){R.resizer.unsubscribe(r(this,S))}}P=new WeakMap,S=new WeakMap;exports.Source=I;exports.SourceManager=B;exports.SourceSet=b;
@@ -1 +0,0 @@
1
- "use strict";var N=(s,t,e)=>{if(!t.has(s))throw TypeError("Cannot "+e)};var r=(s,t,e)=>(N(s,t,"read from private field"),e?e.call(s):t.get(s)),a=(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)},i=(s,t,e,u)=>(N(s,t,"write to private field"),u?u.call(s,e):t.set(s,e),e);var R=(s,t,e)=>(N(s,t,"access private method"),e);const z=require("./browser-QbF6EW-w.cjs");var l,o,S;class C{constructor(){a(this,l,null);a(this,o,void 0);a(this,S,"");z.isBrowser&&(i(this,o,document.documentElement.getAttribute("data-project")||void 0),i(this,S,r(this,o)?r(this,o)+"-store-registry":"store-registry"))}get projectName(){return r(this,o)}get localStoreRegistryName(){return r(this,S)}get loadedState(){return r(this,l)}saveState(){const t=this.getState(),e=JSON.stringify(t);localStorage.setItem(r(this,S),e)}loadState(t=localStorage.getItem(r(this,S))){t&&(typeof t=="string"?i(this,l,JSON.parse(t)):i(this,l,t),c.current.forEach(e=>{this.updateStore(e)}))}resetState(){c.current.forEach(t=>{t.reset()}),this.saveState()}updateStore(t){var u,p;if(!Array.isArray((u=r(this,l))==null?void 0:u.stores))return t;const e=t.passport;if(e){const w=(p=r(this,l))==null?void 0:p.stores.find(A=>A.name===e.name);w&&(t.current=w.value)}return t}getState(){const t={stores:[]};return c.current.forEach(e=>{e.passport&&t.stores.push({value:e.current,name:e.passport.name})}),t}}l=new WeakMap,o=new WeakMap,S=new WeakMap;const E=new C;var n,d,g,f,y,h,m,b,v,q;class j{constructor(t,e){a(this,v);a(this,n,void 0);a(this,d,void 0);a(this,g,void 0);a(this,f,void 0);a(this,y,void 0);a(this,h,new Set);a(this,m,void 0);a(this,b,void 0);i(this,n,e==null?void 0:e.passport),i(this,d,t),i(this,g,void 0),i(this,f,t),i(this,y,(e==null?void 0:e.equalityCheck)||((u,p)=>u===p)),i(this,m,(e==null?void 0:e.validate)||(u=>u)),i(this,b,(e==null?void 0:e.skipSubscribeNotification)||!1),r(this,n)&&E.updateStore(this)}get passport(){return r(this,n)}get initial(){return r(this,d)}get previous(){return r(this,g)}get current(){return r(this,f)}set current(t){r(this,y).call(this,r(this,f),t)||(i(this,g,r(this,f)),i(this,f,r(this,m).call(this,t)),R(this,v,q).call(this))}get subscribers(){return r(this,h)}get entry(){return{current:r(this,f),previous:r(this,g)}}subscribe(t){return r(this,n)&&!r(this,h).size&&I(this),r(this,h).add(t),r(this,b)||t(this.entry),()=>{this.unsubscribe(t)}}unsubscribe(t){r(this,h).delete(t),r(this,n)&&!r(this,h).size&&k(this)}reset(){this.current=this.initial}close(){r(this,h).clear(),r(this,n)&&k(this)}}n=new WeakMap,d=new WeakMap,g=new WeakMap,f=new WeakMap,y=new WeakMap,h=new WeakMap,m=new WeakMap,b=new WeakMap,v=new WeakSet,q=function(){for(const t of r(this,h))t(this.entry)};const c=new j([]);function I(s){c.current.find(t=>t.passport.name===s.passport.name)||(c.current=[...c.current,s])}function k(s){c.current.includes(s)&&(c.current=c.current.filter(t=>t!==s))}exports.Store=j;exports.activeStores=c;exports.storeRegistry=E;
@@ -1,83 +0,0 @@
1
- var x = Object.defineProperty;
2
- var b = (t, i, e) => i in t ? x(t, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[i] = e;
3
- var g = (t, i, e) => (b(t, typeof i != "symbol" ? i + "" : i, e), e), y = (t, i, e) => {
4
- if (!i.has(t))
5
- throw TypeError("Cannot " + e);
6
- };
7
- var s = (t, i, e) => (y(t, i, "read from private field"), e ? e.call(t) : i.get(t)), a = (t, i, e) => {
8
- if (i.has(t))
9
- throw TypeError("Cannot add the same private member more than once");
10
- i instanceof WeakSet ? i.add(t) : i.set(t, e);
11
- }, h = (t, i, e, n) => (y(t, i, "write to private field"), n ? n.call(t, e) : i.set(t, e), e);
12
- import { i as r } from "./browser-S4eq8AeN.js";
13
- import { g as u } from "./dom-bHEwc_xV.js";
14
- import { Notifier as L } from "./notifier/index.js";
15
- var m;
16
- class v {
17
- constructor() {
18
- a(this, m, new L());
19
- }
20
- get changeEvent() {
21
- return s(this, m);
22
- }
23
- }
24
- m = new WeakMap();
25
- var c, o;
26
- class k extends v {
27
- constructor(e) {
28
- super();
29
- a(this, c, null);
30
- a(this, o, (e) => {
31
- const n = e.shiftKey ? -1 : 1;
32
- e.code === "Space" ? this.changeEvent.notify(n * 500) : e.code === "ArrowLeft" ? this.changeEvent.notify(-1 * 100) : e.code === "ArrowRight" ? this.changeEvent.notify(1 * 100) : e.code === "ArrowUp" ? this.changeEvent.notify(-1 * 100) : e.code === "ArrowDown" ? this.changeEvent.notify(1 * 100) : e.code === "PageUp" ? this.changeEvent.notify(-1 * 1e3) : e.code === "PageDown" ? this.changeEvent.notify(1 * 1e3) : e.code === "Home" ? this.changeEvent.notify("min") : e.code === "End" && this.changeEvent.notify("max");
33
- });
34
- r && h(this, c, e != null && e.element && u(e.element) || window);
35
- }
36
- connect() {
37
- r && s(this, c).addEventListener("keydown", s(this, o));
38
- }
39
- disconnect() {
40
- r && s(this, c).removeEventListener("keydown", s(this, o));
41
- }
42
- }
43
- c = new WeakMap(), o = new WeakMap();
44
- var d, l, f, w;
45
- class K extends v {
46
- constructor(e) {
47
- super();
48
- g(this, "axis");
49
- g(this, "speed");
50
- g(this, "debounce");
51
- a(this, d, null);
52
- a(this, l, void 0);
53
- a(this, f, void 0);
54
- a(this, w, (e) => {
55
- let n = 0;
56
- if (!(this.axis === "x" && Math.abs(e.deltaY) > Math.abs(e.deltaX) || this.axis === "y" && Math.abs(e.deltaX) > Math.abs(e.deltaY)))
57
- if (n = (this.axis === "x" ? e.deltaX : e.deltaY) * this.speed, e.stopPropagation(), e.preventDefault(), this.debounce) {
58
- const E = Date.now();
59
- if (E - s(this, f) > 40 && (n = 100 * Math.sign(n)), h(this, f, E), Math.abs(n) < 100 || s(this, l))
60
- return;
61
- this.changeEvent.notify(n), h(this, l, setTimeout(() => {
62
- h(this, l, void 0);
63
- }, 80));
64
- } else
65
- this.changeEvent.notify(n);
66
- });
67
- this.axis = (e == null ? void 0 : e.axis) || "y", this.speed = (e == null ? void 0 : e.speed) || 1, this.debounce = (e == null ? void 0 : e.debounce) || !1, h(this, f, Date.now()), r && h(this, d, e != null && e.element && u(e.element) || window);
68
- }
69
- connect() {
70
- r && s(this, d).addEventListener("wheel", s(this, w), {
71
- passive: !1
72
- });
73
- }
74
- disconnect() {
75
- r && s(this, d).removeEventListener("wheel", s(this, w));
76
- }
77
- }
78
- d = new WeakMap(), l = new WeakMap(), f = new WeakMap(), w = new WeakMap();
79
- export {
80
- v as C,
81
- k as K,
82
- K as W
83
- };
@@ -1 +0,0 @@
1
- "use strict";var b=Object.defineProperty;var x=(t,s,e)=>s in t?b(t,s,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[s]=e;var g=(t,s,e)=>(x(t,typeof s!="symbol"?s+"":s,e),e),v=(t,s,e)=>{if(!s.has(t))throw TypeError("Cannot "+e)};var i=(t,s,e)=>(v(t,s,"read from private field"),e?e.call(t):s.get(t)),r=(t,s,e)=>{if(s.has(t))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(t):s.set(t,e)},h=(t,s,e,n)=>(v(t,s,"write to private field"),n?n.call(t,e):s.set(t,e),e);const a=require("./browser-QbF6EW-w.cjs"),m=require("./dom-QhWsdQS2.cjs"),L=require("./notifier/index.cjs");var u;class E{constructor(){r(this,u,new L.Notifier)}get changeEvent(){return i(this,u)}}u=new WeakMap;var c,o;class B extends E{constructor(e){super();r(this,c,null);r(this,o,e=>{const n=e.shiftKey?-1:1;e.code==="Space"?this.changeEvent.notify(n*500):e.code==="ArrowLeft"?this.changeEvent.notify(-1*100):e.code==="ArrowRight"?this.changeEvent.notify(1*100):e.code==="ArrowUp"?this.changeEvent.notify(-1*100):e.code==="ArrowDown"?this.changeEvent.notify(1*100):e.code==="PageUp"?this.changeEvent.notify(-1*1e3):e.code==="PageDown"?this.changeEvent.notify(1*1e3):e.code==="Home"?this.changeEvent.notify("min"):e.code==="End"&&this.changeEvent.notify("max")});a.isBrowser&&h(this,c,e!=null&&e.element&&m.getElement(e.element)||window)}connect(){a.isBrowser&&i(this,c).addEventListener("keydown",i(this,o))}disconnect(){a.isBrowser&&i(this,c).removeEventListener("keydown",i(this,o))}}c=new WeakMap,o=new WeakMap;var d,l,f,w;class C extends E{constructor(e){super();g(this,"axis");g(this,"speed");g(this,"debounce");r(this,d,null);r(this,l,void 0);r(this,f,void 0);r(this,w,e=>{let n=0;if(!(this.axis==="x"&&Math.abs(e.deltaY)>Math.abs(e.deltaX)||this.axis==="y"&&Math.abs(e.deltaX)>Math.abs(e.deltaY)))if(n=(this.axis==="x"?e.deltaX:e.deltaY)*this.speed,e.stopPropagation(),e.preventDefault(),this.debounce){const y=Date.now();if(y-i(this,f)>40&&(n=100*Math.sign(n)),h(this,f,y),Math.abs(n)<100||i(this,l))return;this.changeEvent.notify(n),h(this,l,setTimeout(()=>{h(this,l,void 0)},80))}else this.changeEvent.notify(n)});this.axis=(e==null?void 0:e.axis)||"y",this.speed=(e==null?void 0:e.speed)||1,this.debounce=(e==null?void 0:e.debounce)||!1,h(this,f,Date.now()),a.isBrowser&&h(this,d,e!=null&&e.element&&m.getElement(e.element)||window)}connect(){a.isBrowser&&i(this,d).addEventListener("wheel",i(this,w),{passive:!1})}disconnect(){a.isBrowser&&i(this,d).removeEventListener("wheel",i(this,w))}}d=new WeakMap,l=new WeakMap,f=new WeakMap,w=new WeakMap;exports.Controls=E;exports.KeyboardControls=B;exports.WheelControls=C;
@@ -1,5 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const k=require("../custom-element/index.cjs"),C=require("../notifier/index.cjs"),x=require("../resizer/index.cjs"),y=require("../ticker/index.cjs"),M=require("../math-FNUBmQPK.cjs");require("../browser-QbF6EW-w.cjs");require("../function-QP7IreXR.cjs");require("../intersector/index.cjs");var W=Object.defineProperty,b=Object.getOwnPropertyDescriptor,R=(i,e,s,r)=>{for(var n=r>1?void 0:r?b(e,s):e,m=i.length-1,f;m>=0;m--)(f=i[m])&&(n=(r?f(e,s,n):f(n))||n);return r&&n&&W(e,s,n),n},E=(i,e,s)=>{if(!e.has(i))throw TypeError("Cannot "+s)},t=(i,e,s)=>(E(i,e,"read from private field"),s?s.call(i):e.get(i)),a=(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)},l=(i,e,s,r)=>(E(i,e,"write to private field"),r?r.call(i,s):e.set(i,s),s),p,h,d,c,o,u,v,_,w,g;exports.Canvas2DElement=class extends k.CustomElement{constructor(){super(...arguments),a(this,p,new C.Notifier),a(this,h,null),a(this,d,null),a(this,c,0),a(this,o,0),a(this,u,1),a(this,v,0),a(this,_,1),a(this,w,()=>{l(this,u,M.clamp(devicePixelRatio,1,2));const e=this.getBoundingClientRect();l(this,c,e.width),l(this,o,e.height),t(this,h).width=t(this,c)*this.pixelRatio,t(this,h).height=t(this,o)*this.pixelRatio,this.context.scale(this.pixelRatio,this.pixelRatio),this.renderEvent.notify(this.detail)}),a(this,g,e=>{l(this,v,e.timestamp),l(this,_,e.elapsed),t(this,p).notify(this.detail)})}get renderEvent(){return t(this,p)}get canvasElement(){return t(this,h)}get context(){return t(this,d)}get pixelRatio(){return t(this,u)}get width(){return t(this,c)}get height(){return t(this,o)}get detail(){return{width:t(this,c),height:t(this,o),element:this,canvasElement:t(this,h),pixelRatio:t(this,u),context:t(this,d),timestamp:t(this,v),elapsed:t(this,_)}}connectedCallback(){this.style.display="block",this.style.width="100%",this.style.height="100%",l(this,h,document.createElement("canvas")),t(this,h).style.cssText=`
2
- display: block;
3
- width: 100%;
4
- height: 100%;
5
- `,l(this,d,t(this,h).getContext("2d")),this.appendChild(t(this,h)),x.resizer.subscribe(t(this,w)),this.hasAttribute("static")||y.ticker.subscribe(t(this,g),{culling:this,maxFPS:this.hasAttribute("fps")?parseInt(this.getAttribute("fps")):void 0})}disconnectedCallback(){x.resizer.unsubscribe(t(this,w)),y.ticker.unsubscribe(t(this,g)),t(this,p).close(),t(this,h).remove(),this.style.display="",this.style.width="",this.style.height=""}};p=new WeakMap;h=new WeakMap;d=new WeakMap;c=new WeakMap;o=new WeakMap;u=new WeakMap;v=new WeakMap;_=new WeakMap;w=new WeakMap;g=new WeakMap;exports.Canvas2DElement=R([k.define("canvas-2d")],exports.Canvas2DElement);
@@ -1,90 +0,0 @@
1
- import { CustomElement as E, define as W } from "../custom-element/index.js";
2
- import { Notifier as M } from "../notifier/index.js";
3
- import { resizer as x } from "../resizer/index.js";
4
- import { ticker as y } from "../ticker/index.js";
5
- import { c as R } from "../math-_a3IpKOc.js";
6
- import "../browser-S4eq8AeN.js";
7
- import "../function-zwSFehNd.js";
8
- import "../intersector/index.js";
9
- var b = Object.defineProperty, P = Object.getOwnPropertyDescriptor, A = (e, i, s, r) => {
10
- for (var n = r > 1 ? void 0 : r ? P(i, s) : i, f = e.length - 1, g; f >= 0; f--)
11
- (g = e[f]) && (n = (r ? g(i, s, n) : g(n)) || n);
12
- return r && n && b(i, s, n), n;
13
- }, C = (e, i, s) => {
14
- if (!i.has(e))
15
- throw TypeError("Cannot " + s);
16
- }, t = (e, i, s) => (C(e, i, "read from private field"), s ? s.call(e) : i.get(e)), a = (e, i, s) => {
17
- if (i.has(e))
18
- throw TypeError("Cannot add the same private member more than once");
19
- i instanceof WeakSet ? i.add(e) : i.set(e, s);
20
- }, l = (e, i, s, r) => (C(e, i, "write to private field"), r ? r.call(e, s) : i.set(e, s), s), c, h, d, p, o, m, u, v, w, _;
21
- let k = class extends E {
22
- constructor() {
23
- super(...arguments), a(this, c, new M()), a(this, h, null), a(this, d, null), a(this, p, 0), a(this, o, 0), a(this, m, 1), a(this, u, 0), a(this, v, 1), a(this, w, () => {
24
- l(this, m, R(devicePixelRatio, 1, 2));
25
- const e = this.getBoundingClientRect();
26
- l(this, p, e.width), l(this, o, e.height), t(this, h).width = t(this, p) * this.pixelRatio, t(this, h).height = t(this, o) * this.pixelRatio, this.context.scale(this.pixelRatio, this.pixelRatio), this.renderEvent.notify(this.detail);
27
- }), a(this, _, (e) => {
28
- l(this, u, e.timestamp), l(this, v, e.elapsed), t(this, c).notify(this.detail);
29
- });
30
- }
31
- get renderEvent() {
32
- return t(this, c);
33
- }
34
- get canvasElement() {
35
- return t(this, h);
36
- }
37
- get context() {
38
- return t(this, d);
39
- }
40
- get pixelRatio() {
41
- return t(this, m);
42
- }
43
- get width() {
44
- return t(this, p);
45
- }
46
- get height() {
47
- return t(this, o);
48
- }
49
- get detail() {
50
- return {
51
- width: t(this, p),
52
- height: t(this, o),
53
- element: this,
54
- canvasElement: t(this, h),
55
- pixelRatio: t(this, m),
56
- context: t(this, d),
57
- timestamp: t(this, u),
58
- elapsed: t(this, v)
59
- };
60
- }
61
- connectedCallback() {
62
- this.style.display = "block", this.style.width = "100%", this.style.height = "100%", l(this, h, document.createElement("canvas")), t(this, h).style.cssText = `
63
- display: block;
64
- width: 100%;
65
- height: 100%;
66
- `, l(this, d, t(this, h).getContext("2d")), this.appendChild(t(this, h)), x.subscribe(t(this, w)), this.hasAttribute("static") || y.subscribe(t(this, _), {
67
- culling: this,
68
- maxFPS: this.hasAttribute("fps") ? parseInt(this.getAttribute("fps")) : void 0
69
- });
70
- }
71
- disconnectedCallback() {
72
- x.unsubscribe(t(this, w)), y.unsubscribe(t(this, _)), t(this, c).close(), t(this, h).remove(), this.style.display = "", this.style.width = "", this.style.height = "";
73
- }
74
- };
75
- c = /* @__PURE__ */ new WeakMap();
76
- h = /* @__PURE__ */ new WeakMap();
77
- d = /* @__PURE__ */ new WeakMap();
78
- p = /* @__PURE__ */ new WeakMap();
79
- o = /* @__PURE__ */ new WeakMap();
80
- m = /* @__PURE__ */ new WeakMap();
81
- u = /* @__PURE__ */ new WeakMap();
82
- v = /* @__PURE__ */ new WeakMap();
83
- w = /* @__PURE__ */ new WeakMap();
84
- _ = /* @__PURE__ */ new WeakMap();
85
- k = A([
86
- W("canvas-2d")
87
- ], k);
88
- export {
89
- k as Canvas2DElement
90
- };
@@ -1,2 +0,0 @@
1
- import { ElementConstructorJSS } from './ElementConstructor';
2
- export declare function stylesheet(object?: ElementConstructorJSS): CSSStyleSheet;
@@ -1,4 +0,0 @@
1
- import { Measurer } from './Meaurer';
2
- export declare class CumulativeOffsetLeft extends Measurer {
3
- protected handleResize(): number;
4
- }
@@ -1,4 +0,0 @@
1
- import { Measurer } from './Meaurer';
2
- export declare class CumulativeOffsetTop extends Measurer {
3
- protected handleResize(): number;
4
- }
@@ -1,8 +0,0 @@
1
- export declare abstract class Measurer {
2
- #private;
3
- constructor(element: HTMLElement);
4
- get element(): HTMLElement;
5
- value: (modifier?: ((current: number) => number) | undefined) => number;
6
- destroy(): void;
7
- protected abstract handleResize(): number;
8
- }
@@ -1 +0,0 @@
1
- "use strict";var O=Object.defineProperty;var m=(t,e,s)=>e in t?O(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s;var c=(t,e,s)=>(m(t,typeof e!="symbol"?e+"":e,s),s),v=(t,e,s)=>{if(!e.has(t))throw TypeError("Cannot "+s)};var r=(t,e,s)=>(v(t,e,"read from private field"),s?s.call(t):e.get(t)),n=(t,e,s)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,s)},a=(t,e,s,h)=>(v(t,e,"write to private field"),h?h.call(t,s):e.set(t,s),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("../browser-QbF6EW-w.cjs"),d=require("../layout-rZzbsLPd.cjs");var i,u,l,o;class f{constructor(e){n(this,i,void 0);n(this,u,null);n(this,l,0);c(this,"value",e=>e?e(r(this,l)):r(this,l));n(this,o,()=>{a(this,l,this.handleResize()),r(this,i).isConnected||this.destroy()});a(this,i,e),b.isBrowser&&(a(this,u,new ResizeObserver(r(this,o))),r(this,u).observe(e))}get element(){return r(this,i)}destroy(){r(this,u).disconnect()}}i=new WeakMap,u=new WeakMap,l=new WeakMap,o=new WeakMap;class C extends f{handleResize(){return d.getCumulativeOffsetLeft(this.element)}}class z extends f{handleResize(){return d.getCumulativeOffsetTop(this.element)}}exports.CumulativeOffsetLeft=C;exports.CumulativeOffsetTop=z;exports.Measurer=f;
@@ -1,3 +0,0 @@
1
- export { Measurer } from './Meaurer';
2
- export { CumulativeOffsetLeft } from './CumulativeOffsetLeft';
3
- export { CumulativeOffsetTop } from './CumulativeOffsetTop';