aptechka 0.5.44 → 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 (234) 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 +3 -0
  24. package/lib/accordion/index.cjs +1 -1
  25. package/lib/accordion/index.js +140 -104
  26. package/lib/animation/Animation.d.ts +10 -18
  27. package/lib/animation/Damped.d.ts +3 -5
  28. package/lib/animation/Tweened.d.ts +0 -2
  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.js +31 -31
  33. package/lib/canvas/index.cjs +1 -1
  34. package/lib/canvas/index.js +3 -3
  35. package/lib/checkbox/index.cjs +1 -1
  36. package/lib/checkbox/index.js +3 -3
  37. package/lib/class-linked-status/index.cjs +1 -1
  38. package/lib/class-linked-status/index.js +1 -1
  39. package/lib/controls/index.cjs +1 -1
  40. package/lib/controls/index.js +3 -3
  41. package/lib/counter/index.d.ts +8 -0
  42. package/lib/{createStylesheet-DBCEbDjI.js → createStylesheet-CR_yi5tp.js} +1 -1
  43. package/lib/{createStylesheet-CqHU9_qv.cjs → createStylesheet-p23sZ7Ey.cjs} +1 -1
  44. package/lib/css-property/index.cjs +1 -1
  45. package/lib/css-property/index.d.ts +1 -0
  46. package/lib/css-property/index.js +36 -32
  47. package/lib/dev/index.cjs +1 -1
  48. package/lib/dev/index.js +1 -1
  49. package/lib/device/index.cjs +1 -1
  50. package/lib/device/index.js +1 -1
  51. package/lib/element-constructor/index.cjs +1 -1
  52. package/lib/element-constructor/index.js +114 -113
  53. package/lib/en3/core/En3Raycaster.d.ts +20 -0
  54. package/lib/en3/core/En3View.d.ts +1 -1
  55. package/lib/en3/core/en3.d.ts +5 -1
  56. package/lib/en3/helpers/En3Controls.d.ts +5 -0
  57. package/lib/en3/helpers/En3GridHelper.d.ts +8 -0
  58. package/lib/en3/helpers/En3Object3dManager.d.ts +12 -0
  59. package/lib/en3/helpers/En3OrbitControls.d.ts +8 -0
  60. package/lib/en3/helpers/En3TransformControls.d.ts +8 -0
  61. package/lib/en3/helpers/index.cjs +1 -0
  62. package/lib/en3/helpers/index.d.ts +2 -0
  63. package/lib/en3/helpers/index.js +1165 -0
  64. package/lib/en3/index.cjs +1 -213
  65. package/lib/en3/index.d.ts +1 -19
  66. package/lib/en3/index.js +4 -3305
  67. package/lib/en3/libs/index.d.ts +1 -0
  68. package/lib/en3/loaders/{en3GLTFLoader.d.ts → _En3GLTFLoader.d.ts} +2 -4
  69. package/lib/en3/loaders/_En3TextureLoader.d.ts +8 -0
  70. package/lib/en3/loaders/index.cjs +1 -0
  71. package/lib/en3/loaders/index.d.ts +3 -0
  72. package/lib/en3/loaders/index.js +1757 -0
  73. package/lib/en3/loaders/loaders.d.ts +13 -0
  74. package/lib/en3/misc/index.cjs +10 -0
  75. package/lib/en3/misc/index.d.ts +2 -0
  76. package/lib/en3/misc/index.js +115 -0
  77. package/lib/en3/objects/En3Clip.d.ts +1 -1
  78. package/lib/en3/objects/En3GLTF.d.ts +2 -1
  79. package/lib/en3/objects/En3ImageLike.d.ts +2 -1
  80. package/lib/en3/objects/En3SourceConsumer.d.ts +1 -1
  81. package/lib/en3/objects/fluid/index.d.ts +0 -3
  82. package/lib/en3/objects/index.d.ts +7 -0
  83. package/lib/en3/utils/index.cjs +1 -0
  84. package/lib/en3/utils/index.d.ts +5 -0
  85. package/lib/en3/utils/index.js +43 -0
  86. package/lib/en3-C4mzaF6q.cjs +8 -0
  87. package/lib/en3-hbkN1OPu.js +343 -0
  88. package/lib/globals-DMjysUXI.js +8 -0
  89. package/lib/globals-bYKki-b9.cjs +1 -0
  90. package/lib/image/index.cjs +1 -1
  91. package/lib/image/index.js +1 -1
  92. package/lib/{index-BN9X-l9M.js → index-BAH_fO2N.js} +3 -3
  93. package/lib/{index-BbgmbQ-5.cjs → index-D1LQUR-R.cjs} +1 -1
  94. package/lib/instantiate-D19Uvc31.js +125 -0
  95. package/lib/instantiate-Db5gGSYG.cjs +1 -0
  96. package/lib/jsx/ComponentElement.d.ts +18 -0
  97. package/lib/jsx/globals.d.ts +13 -0
  98. package/lib/jsx/h.d.ts +7 -0
  99. package/lib/jsx/hooks/basic/_createStore.d.ts +4 -0
  100. package/lib/jsx/hooks/basic/attachInternals.d.ts +1 -0
  101. package/lib/jsx/hooks/basic/attachShadow.d.ts +1 -0
  102. package/lib/jsx/hooks/basic/attachStylesheet.d.ts +3 -0
  103. package/lib/jsx/hooks/basic/createContext.d.ts +2 -0
  104. package/lib/jsx/hooks/basic/onConnect.d.ts +3 -0
  105. package/lib/jsx/hooks/basic/onDisconnect.d.ts +3 -0
  106. package/lib/jsx/hooks/onAnimationFrame.cjs +1 -0
  107. package/lib/jsx/hooks/onAnimationFrame.d.ts +6 -0
  108. package/lib/jsx/hooks/onAnimationFrame.js +22 -0
  109. package/lib/jsx/hooks/onElementResize.cjs +1 -0
  110. package/lib/jsx/hooks/onElementResize.d.ts +5 -0
  111. package/lib/jsx/hooks/onElementResize.js +11 -0
  112. package/lib/jsx/hooks/onIntersection.cjs +1 -0
  113. package/lib/jsx/hooks/onIntersection.d.ts +5 -0
  114. package/lib/jsx/hooks/onIntersection.js +11 -0
  115. package/lib/jsx/hooks/onWindowResize.cjs +1 -0
  116. package/lib/jsx/hooks/onWindowResize.d.ts +3 -0
  117. package/lib/jsx/hooks/onWindowResize.js +8 -0
  118. package/lib/jsx/hooks/store/createArrayStore.d.ts +3 -0
  119. package/lib/jsx/hooks/store/createComposed.d.ts +3 -0
  120. package/lib/jsx/hooks/store/createDerived.d.ts +3 -0
  121. package/lib/jsx/hooks/store/createDerivedArray.d.ts +3 -0
  122. package/lib/jsx/hooks/store/createDerivedComponent.d.ts +3 -0
  123. package/lib/jsx/hooks/store/createDerivedComponents.d.ts +3 -0
  124. package/lib/jsx/hooks/store/createResource.d.ts +3 -0
  125. package/lib/jsx/hooks/store/createStore.d.ts +3 -0
  126. package/lib/jsx/hooks/store/index.cjs +1 -0
  127. package/lib/jsx/hooks/store/index.d.ts +7 -0
  128. package/lib/jsx/hooks/store/index.js +49 -0
  129. package/lib/jsx/hooks/watchAttribute.cjs +1 -0
  130. package/lib/jsx/hooks/watchAttribute.d.ts +6 -0
  131. package/lib/jsx/hooks/watchAttribute.js +17 -0
  132. package/lib/jsx/hooks/watchCSSProperty.cjs +1 -0
  133. package/lib/jsx/hooks/watchCSSProperty.d.ts +7 -0
  134. package/lib/jsx/hooks/watchCSSProperty.js +17 -0
  135. package/lib/jsx/index.cjs +1 -0
  136. package/lib/jsx/index.d.ts +13 -0
  137. package/lib/jsx/index.js +91 -0
  138. package/lib/jsx/instantiate.d.ts +5 -0
  139. package/lib/jsx/register.d.ts +1 -0
  140. package/lib/jsx/render.d.ts +6 -0
  141. package/lib/jsx/type.d.ts +188 -0
  142. package/lib/ladder/index.cjs +1 -1
  143. package/lib/ladder/index.d.ts +2 -0
  144. package/lib/ladder/index.js +84 -66
  145. package/lib/layout-box/index.cjs +1 -1
  146. package/lib/layout-box/index.d.ts +9 -0
  147. package/lib/layout-box/index.js +190 -164
  148. package/lib/media/index.cjs +1 -1
  149. package/lib/media/index.js +1 -1
  150. package/lib/modal/index.cjs +1 -1
  151. package/lib/modal/index.js +7 -7
  152. package/lib/morph/Morph.d.ts +2 -2
  153. package/lib/morph/index.cjs +1 -1
  154. package/lib/morph/index.d.ts +1 -1
  155. package/lib/morph/index.js +135 -143
  156. package/lib/notifier/index.d.ts +2 -2
  157. package/lib/notifier/index.js +3 -1
  158. package/lib/onConnect-DGP866cj.cjs +1 -0
  159. package/lib/onConnect-y5DrxJ9P.js +7 -0
  160. package/lib/pointer/index.cjs +1 -1
  161. package/lib/pointer/index.js +2 -2
  162. package/lib/polyfills-CM4SCDTt.cjs +1 -0
  163. package/lib/polyfills-X6KXuHg-.js +33 -0
  164. package/lib/popover/index.cjs +1 -1
  165. package/lib/popover/index.js +2 -2
  166. package/lib/router/Router.d.ts +11 -3
  167. package/lib/router/index.cjs +1 -1
  168. package/lib/router/index.d.ts +1 -1
  169. package/lib/router/index.js +185 -165
  170. package/lib/scroll/ScrollElement.d.ts +2 -19
  171. package/lib/scroll/ScrollSection.d.ts +23 -0
  172. package/lib/scroll/index.cjs +1 -1
  173. package/lib/scroll/index.js +81 -77
  174. package/lib/select/index.cjs +1 -1
  175. package/lib/select/index.js +1 -1
  176. package/lib/sequence/index.cjs +1 -1
  177. package/lib/sequence/index.js +1 -1
  178. package/lib/source/index.cjs +1 -1
  179. package/lib/source/index.js +2 -2
  180. package/lib/store/ArrayStore.d.ts +21 -0
  181. package/lib/store/Store.d.ts +1 -7
  182. package/lib/store/index.cjs +1 -1
  183. package/lib/store/index.d.ts +2 -2
  184. package/lib/store/index.js +65 -139
  185. package/lib/tags-BqJKcIve.js +485 -0
  186. package/lib/tags-ld5jemJw.cjs +1 -0
  187. package/lib/theme/index.cjs +1 -1
  188. package/lib/theme/index.js +2 -2
  189. package/lib/tweaker/TweakerBooleanManagerElement.d.ts +1 -1
  190. package/lib/tweaker/TweakerColorManagerElement.d.ts +1 -1
  191. package/lib/tweaker/TweakerFolderElement.d.ts +2 -0
  192. package/lib/tweaker/TweakerLinkManagerElement.d.ts +1 -1
  193. package/lib/tweaker/TweakerNumberManagerElement.d.ts +4 -8
  194. package/lib/tweaker/TweakerSelectManagerElement.d.ts +1 -1
  195. package/lib/tweaker/TweakerStoreManagerElement.d.ts +7 -7
  196. package/lib/tweaker/TweakerStringManagerElement.d.ts +3 -5
  197. package/lib/tweaker/index.cjs +3 -3
  198. package/lib/tweaker/index.js +535 -412
  199. package/lib/tweaker/tweakerManagerConstructors.d.ts +2 -2
  200. package/lib/tweaker/tweakerStorage.d.ts +8 -1
  201. package/lib/url-C3dWnJQg.cjs +1 -0
  202. package/lib/url-DMNfW7uN.js +22 -0
  203. package/lib/utils/index.cjs +1 -1
  204. package/lib/utils/index.d.ts +1 -0
  205. package/lib/utils/index.js +39 -34
  206. package/lib/utils/number.d.ts +1 -0
  207. package/lib/utils/url.d.ts +9 -0
  208. package/lib/video/index.cjs +1 -1
  209. package/lib/video/index.js +1 -1
  210. package/package.json +107 -3
  211. package/lib/Animation-DDHjrbtL.cjs +0 -1
  212. package/lib/Animation-Dq_05jlR.js +0 -217
  213. package/lib/DRACOLoader-C2CFpMGS.cjs +0 -2
  214. package/lib/DRACOLoader-D2KY2dku.js +0 -241
  215. package/lib/Damped-l0mnlhar.cjs +0 -1
  216. package/lib/KTX2Loader-DdUl1XiY.cjs +0 -2
  217. package/lib/KTX2Loader-DqpAffDj.js +0 -536
  218. package/lib/Store-C-1ruEIm.cjs +0 -1
  219. package/lib/Tweened-CwDC2zl8.js +0 -51
  220. package/lib/Tweened-DIt9j9B-.cjs +0 -1
  221. package/lib/animation/AnimationLink.d.ts +0 -13
  222. package/lib/en3/loaders/en3TextureLoader.d.ts +0 -3
  223. package/lib/en3/test/En3HTML.d.ts +0 -10
  224. package/lib/polyfills-BA-CL_HF.js +0 -27
  225. package/lib/polyfills-DHs2SNbz.cjs +0 -1
  226. package/lib/store/CumulativeResource.d.ts +0 -13
  227. package/lib/tags-CMPg9ETZ.js +0 -848
  228. package/lib/tags-Djb6mb1o.cjs +0 -1
  229. package/lib/tweaker/TweakerRangeManagerElement.d.ts +0 -11
  230. /package/lib/en3/{loaders → core}/en3Cache.d.ts +0 -0
  231. /package/lib/{MeshoptDecoder-CMeN3oU0.cjs → en3/libs/index.cjs} +0 -0
  232. /package/lib/{MeshoptDecoder-6XfTpOG2.js → en3/libs/index.js} +0 -0
  233. /package/lib/en3/{test → misc}/En3ModifiedMaterial.d.ts +0 -0
  234. /package/lib/en3/{attachments → misc}/En3SourceManager.d.ts +0 -0
@@ -1,6 +1,6 @@
1
- import { StoreManagerType } from '../store';
1
+ import { Store, StoreManagerType } from '../store';
2
2
  import { TweakerStoreManagerElement } from './TweakerStoreManagerElement';
3
3
 
4
4
  export declare const tweakerManagerConstructors: {
5
- [key in StoreManagerType]: typeof TweakerStoreManagerElement<any, any>;
5
+ [key in StoreManagerType]: typeof TweakerStoreManagerElement<Store<any, any, any>>;
6
6
  };
@@ -1,5 +1,10 @@
1
+ export type TweakerOpenedPanels = Array<string>;
2
+ export type TweakerChangedSizes = {
3
+ [key: string]: number;
4
+ };
1
5
  export interface TweakerStorageState {
2
- openedPanels: Array<string>;
6
+ openedPanels: TweakerOpenedPanels;
7
+ changedSizes: TweakerChangedSizes;
3
8
  }
4
9
  declare class TweakerStorage {
5
10
  #private;
@@ -7,6 +12,8 @@ declare class TweakerStorage {
7
12
  openPanel(key: string): void;
8
13
  closePanel(key: string): void;
9
14
  isPanelOpened(key: string): boolean;
15
+ changedSizes(key: string): number;
16
+ changeSize(key: string, value?: number | undefined | null): void;
10
17
  save(): void;
11
18
  load(): void;
12
19
  }
@@ -0,0 +1 @@
1
+ "use strict";function h(t,n=""){n=n.endsWith("/")?n.slice(0,-1):n,t=t.replace(n,""),t.startsWith("/")&&(t=t.slice(1));const c=t.split("#"),s=c[0].split("?"),i=s[0].startsWith("/")?s[0]:"/"+s[0],o=n+i,e=s==null?void 0:s[1],r=c==null?void 0:c[1];return{leaf:i,pathname:o,parameters:e,hash:r}}function p(t){return t.endsWith("/")||(t+="/"),t}function a(t,n,c,s){const i=c||location.search,o=s?s.startsWith("#")?s:"#"+s:"",e=i?i.startsWith("?")?i:"?"+i:"",r=`${n}${o}${e}`;t==="push"?history.pushState(r,"",r):t==="replace"&&history.replaceState(r,"",r)}exports.changeHistory=a;exports.normalizeBase=p;exports.splitPath=h;
@@ -0,0 +1,22 @@
1
+ function h(t, n = "") {
2
+ n = n.endsWith("/") ? n.slice(0, -1) : n, t = t.replace(n, ""), t.startsWith("/") && (t = t.slice(1));
3
+ const i = t.split("#"), s = i[0].split("?"), c = s[0].startsWith("/") ? s[0] : "/" + s[0], r = n + c, e = s == null ? void 0 : s[1], o = i == null ? void 0 : i[1];
4
+ return {
5
+ leaf: c,
6
+ pathname: r,
7
+ parameters: e,
8
+ hash: o
9
+ };
10
+ }
11
+ function p(t) {
12
+ return t.endsWith("/") || (t += "/"), t;
13
+ }
14
+ function a(t, n, i, s) {
15
+ const c = i || location.search, r = s ? s.startsWith("#") ? s : "#" + s : "", e = c ? c.startsWith("?") ? c : "?" + c : "", o = `${n}${r}${e}`;
16
+ t === "push" ? history.pushState(o, "", o) : t === "replace" && history.replaceState(o, "", o);
17
+ }
18
+ export {
19
+ a as c,
20
+ p as n,
21
+ h as s
22
+ };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("../attributes-Bf2svn4j.cjs"),h=require("../browser-CpzFX2xg.cjs"),l=require("../canvas-CU5Xjahf.cjs"),m=require("../coordinates-D8Np3cPD.cjs"),d=require("../dom-JBOkFLTh.cjs"),n=require("../easings-DsS5-Kqc.cjs"),E=require("../events-Crwi8fz6.cjs"),I=require("../file-EevnUtRj.cjs"),b=require("../function-MthRj-GJ.cjs"),S=require("../gestures-DHLrn6Q8.cjs"),p=require("../layout-8ryRAMGJ.cjs"),i=require("../math-GDWEqu7y.cjs"),f=require("../polyfills-DHs2SNbz.cjs"),o=require("../object-CCiXnER2.cjs"),r=require("../string-DhgS_iFl.cjs"),C=require("../style-At6aDoqG.cjs");function T(t,e,...a){return[...t.slice(0,e),...a,...t.slice(e)]}function v(t,e){const a=t.length;e=e%a;const s=new Array(a);for(let u=0;u<a;u++){const c=(u+e)%a;s[c]=t[u]}return s}function y(t,e){return t.x<e.x+e.width&&t.x>e.x&&t.y<e.y+e.height&&t.y>e.y}function x(t,e){return Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2)<e.radius}function O(t,e){const a=t.styleMap.get(e);if(a){const s=a.toString();return s.startsWith("var")?O(t,s.slice(4,-1)):s}}function P(...t){const e={};return Array.from(document.styleSheets).forEach(a=>{Array.from(a.cssRules).forEach(s=>{s instanceof CSSStyleRule&&s.selectorText===":root"&&t.forEach(u=>{const c=O(s,u);c&&(e[u]=c)})})}),t.forEach(a=>{e[a]||console.warn(`variable named ${a} not found`)}),e}function Q(t){const e=window.atob(t);return decodeURIComponent(window.escape(e))}function q(t){const e=window.unescape(encodeURIComponent(t));return window.btoa(e)}exports.parseAttribute=g.parseAttribute;exports.parseAttributeValue=g.parseAttributeValue;exports.isBrowser=h.isBrowser;exports.contain=l.contain;exports.cover=l.cover;exports.fixPosition=l.fixPosition;exports.measureText=l.measureText;exports.getPointerPosition=m.getPointerPosition;exports.normalize=m.normalize;exports.screenToCartesian=m.screenToCartesian;exports.findParentElement=d.findParentElement;exports.findScrollParentElement=d.findScrollParentElement;exports.getAllParentElements=d.getAllParentElements;exports.getElement=d.getElement;exports.easeInCubic=n.easeInCubic;exports.easeInExpo=n.easeInExpo;exports.easeInOutCubic=n.easeInOutCubic;exports.easeInOutExpo=n.easeInOutExpo;exports.easeInOutQuad=n.easeInOutQuad;exports.easeInOutQuart=n.easeInOutQuart;exports.easeInOutQuint=n.easeInOutQuint;exports.easeInQuad=n.easeInQuad;exports.easeInQuart=n.easeInQuart;exports.easeInQuint=n.easeInQuint;exports.easeOutCubic=n.easeOutCubic;exports.easeOutExpo=n.easeOutExpo;exports.easeOutQuad=n.easeOutQuad;exports.easeOutQuart=n.easeOutQuart;exports.easeOutQuint=n.easeOutQuint;exports.linear=n.linear;exports.dispatchSizeChangeEvent=E.dispatchSizeChangeEvent;exports.createJSONAndSave=I.createJSONAndSave;exports.debounce=b.debounce;exports.throttle=b.throttle;exports.setupDrag=S.setupDrag;exports.getCumulativeOffsetLeft=p.getCumulativeOffsetLeft;exports.getCumulativeOffsetTop=p.getCumulativeOffsetTop;exports.getCumulativePosition=p.getCumulativePosition;exports.calculateDistance=i.calculateDistance;exports.calculateDistanceWithRadius=i.calculateDistanceWithRadius;exports.clamp=i.clamp;exports.damp=i.damp;exports.lerp=i.lerp;exports.mapRange=i.mapRange;exports.round=i.round;exports.smootherstep=i.smootherstep;exports.smoothstep=i.smoothstep;exports.step=i.step;exports.nullishCoalescing=f.nullishCoalescing;exports.preciseNumber=f.preciseNumber;exports.roundNumberTo=f.roundNumberTo;exports.cloneDeep=o.cloneDeep;exports.compareObjects=o.compareObjects;exports.isESClass=o.isESClass;exports.isNullish=o.isNullish;exports.isObject=o.isObject;exports.mergeDeep=o.mergeDeep;exports.mixin=o.mixin;exports.omit=o.omit;exports.pick=o.pick;exports.camelToKebab=r.camelToKebab;exports.capitalize=r.capitalize;exports.generateId=r.generateId;exports.isUppercase=r.isUppercase;exports.kebabToCamel=r.kebabToCamel;exports.snakeToDotted=r.snakeToDotted;exports.toPascalCase=r.toPascalCase;exports.uncapitalize=r.uncapitalize;exports.getElementTransitionDurationMS=C.getElementTransitionDurationMS;exports.getElementTransitionDurationS=C.getElementTransitionDurationS;exports.decode=q;exports.dotCircleCollision=x;exports.dotRectCollision=y;exports.encode=Q;exports.getRootVariables=P;exports.insert=T;exports.shiftArray=v;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("../attributes-Bf2svn4j.cjs"),E=require("../browser-CpzFX2xg.cjs"),l=require("../canvas-CU5Xjahf.cjs"),m=require("../coordinates-D8Np3cPD.cjs"),p=require("../dom-JBOkFLTh.cjs"),n=require("../easings-DsS5-Kqc.cjs"),S=require("../events-Crwi8fz6.cjs"),I=require("../file-EevnUtRj.cjs"),h=require("../function-MthRj-GJ.cjs"),y=require("../gestures-DHLrn6Q8.cjs"),f=require("../layout-8ryRAMGJ.cjs"),i=require("../math-GDWEqu7y.cjs"),d=require("../polyfills-CM4SCDTt.cjs"),o=require("../object-CCiXnER2.cjs"),r=require("../string-DhgS_iFl.cjs"),C=require("../style-At6aDoqG.cjs"),g=require("../url-C3dWnJQg.cjs");function P(t,e,...a){return[...t.slice(0,e),...a,...t.slice(e)]}function T(t,e){const a=t.length;e=e%a;const s=new Array(a);for(let u=0;u<a;u++){const c=(u+e)%a;s[c]=t[u]}return s}function v(t,e){return t.x<e.x+e.width&&t.x>e.x&&t.y<e.y+e.height&&t.y>e.y}function q(t,e){return Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2)<e.radius}function O(t,e){const a=t.styleMap.get(e);if(a){const s=a.toString();return s.startsWith("var")?O(t,s.slice(4,-1)):s}}function x(...t){const e={};return Array.from(document.styleSheets).forEach(a=>{Array.from(a.cssRules).forEach(s=>{s instanceof CSSStyleRule&&s.selectorText===":root"&&t.forEach(u=>{const c=O(s,u);c&&(e[u]=c)})})}),t.forEach(a=>{e[a]||console.warn(`variable named ${a} not found`)}),e}function Q(t){const e=window.atob(t);return decodeURIComponent(window.escape(e))}function D(t){const e=window.unescape(encodeURIComponent(t));return window.btoa(e)}exports.parseAttribute=b.parseAttribute;exports.parseAttributeValue=b.parseAttributeValue;exports.isBrowser=E.isBrowser;exports.contain=l.contain;exports.cover=l.cover;exports.fixPosition=l.fixPosition;exports.measureText=l.measureText;exports.getPointerPosition=m.getPointerPosition;exports.normalize=m.normalize;exports.screenToCartesian=m.screenToCartesian;exports.findParentElement=p.findParentElement;exports.findScrollParentElement=p.findScrollParentElement;exports.getAllParentElements=p.getAllParentElements;exports.getElement=p.getElement;exports.easeInCubic=n.easeInCubic;exports.easeInExpo=n.easeInExpo;exports.easeInOutCubic=n.easeInOutCubic;exports.easeInOutExpo=n.easeInOutExpo;exports.easeInOutQuad=n.easeInOutQuad;exports.easeInOutQuart=n.easeInOutQuart;exports.easeInOutQuint=n.easeInOutQuint;exports.easeInQuad=n.easeInQuad;exports.easeInQuart=n.easeInQuart;exports.easeInQuint=n.easeInQuint;exports.easeOutCubic=n.easeOutCubic;exports.easeOutExpo=n.easeOutExpo;exports.easeOutQuad=n.easeOutQuad;exports.easeOutQuart=n.easeOutQuart;exports.easeOutQuint=n.easeOutQuint;exports.linear=n.linear;exports.dispatchSizeChangeEvent=S.dispatchSizeChangeEvent;exports.createJSONAndSave=I.createJSONAndSave;exports.debounce=h.debounce;exports.throttle=h.throttle;exports.setupDrag=y.setupDrag;exports.getCumulativeOffsetLeft=f.getCumulativeOffsetLeft;exports.getCumulativeOffsetTop=f.getCumulativeOffsetTop;exports.getCumulativePosition=f.getCumulativePosition;exports.calculateDistance=i.calculateDistance;exports.calculateDistanceWithRadius=i.calculateDistanceWithRadius;exports.clamp=i.clamp;exports.damp=i.damp;exports.lerp=i.lerp;exports.mapRange=i.mapRange;exports.round=i.round;exports.smootherstep=i.smootherstep;exports.smoothstep=i.smoothstep;exports.step=i.step;exports.nullishCoalescing=d.nullishCoalescing;exports.preciseNumber=d.preciseNumber;exports.roundNumberTo=d.roundNumberTo;exports.toStep=d.toStep;exports.cloneDeep=o.cloneDeep;exports.compareObjects=o.compareObjects;exports.isESClass=o.isESClass;exports.isNullish=o.isNullish;exports.isObject=o.isObject;exports.mergeDeep=o.mergeDeep;exports.mixin=o.mixin;exports.omit=o.omit;exports.pick=o.pick;exports.camelToKebab=r.camelToKebab;exports.capitalize=r.capitalize;exports.generateId=r.generateId;exports.isUppercase=r.isUppercase;exports.kebabToCamel=r.kebabToCamel;exports.snakeToDotted=r.snakeToDotted;exports.toPascalCase=r.toPascalCase;exports.uncapitalize=r.uncapitalize;exports.getElementTransitionDurationMS=C.getElementTransitionDurationMS;exports.getElementTransitionDurationS=C.getElementTransitionDurationS;exports.changeHistory=g.changeHistory;exports.normalizeBase=g.normalizeBase;exports.splitPath=g.splitPath;exports.decode=D;exports.dotCircleCollision=q;exports.dotRectCollision=v;exports.encode=Q;exports.getRootVariables=x;exports.insert=P;exports.shiftArray=T;
@@ -21,3 +21,4 @@ export * from './string';
21
21
  export * from './style';
22
22
  export * from './ts-shape';
23
23
  export * from './ts-utility';
24
+ export * from './url';
@@ -1,19 +1,20 @@
1
1
  import { a as g, p as b } from "../attributes-69we3byR.js";
2
2
  import { i as C } from "../browser-0zX67oeU.js";
3
- import { a as O, c as S, f as w, m as y } from "../canvas-DeZ0SLUJ.js";
4
- import { g as v, n as T, s as A } from "../coordinates-CgdGoSYs.js";
3
+ import { a as O, c as S, f as y, m as w } from "../canvas-DeZ0SLUJ.js";
4
+ import { g as v, n as P, s as T } from "../coordinates-CgdGoSYs.js";
5
5
  import { f as Q, b as D, a as R, g as k } from "../dom-0S_WDL4g.js";
6
- import { c as z, n as N, f as V, p as M, b as U, i as W, m as q, e as B, g as J, j as K, d as L, o as $, a as F, h as G, k as H, l as X } from "../easings-BKi40vHz.js";
6
+ import { c as j, n as N, f as V, p as M, b as U, i as B, m as W, e as q, g as H, j as J, d as K, o as L, a as $, h as F, k as G, l as X } from "../easings-BKi40vHz.js";
7
7
  import { d as Z } from "../events-_C2CztxR.js";
8
8
  import { c as ee } from "../file-lxi_oXJf.js";
9
9
  import { d as se, t as te } from "../function-C10DGppn.js";
10
10
  import { s as ne } from "../gestures-D2Fdra_G.js";
11
11
  import { g as ie, a as ue, b as ce } from "../layout-HoBT_Da2.js";
12
12
  import { e as fe, f as pe, c as me, d as de, l as xe, m as ge, r as be, b as he, a as Ce, s as Ee } from "../math-BOBiC4TN.js";
13
- import { n as Se, p as we, r as ye } from "../polyfills-BA-CL_HF.js";
14
- import { c as ve, d as Te, i as Ae, b as Pe, a as Qe, m as De, e as Re, o as ke, p as je } from "../object-D6MVWB4l.js";
15
- import { c as Ne, a as Ve, g as Me, i as Ue, k as We, s as qe, t as Be, u as Je } from "../string-f0Dnk0L1.js";
13
+ import { n as Se, p as ye, r as we, t as Ie } from "../polyfills-X6KXuHg-.js";
14
+ import { c as Pe, d as Te, i as Ae, b as Qe, a as De, m as Re, e as ke, o as ze, p as je } from "../object-D6MVWB4l.js";
15
+ import { c as Ve, a as Me, g as Ue, i as Be, k as We, s as qe, t as He, u as Je } from "../string-f0Dnk0L1.js";
16
16
  import { a as Le, g as $e } from "../style-CklEF62D.js";
17
+ import { c as Ge, n as Xe, s as Ye } from "../url-DMNfW7uN.js";
17
18
  function i(a, e, ...s) {
18
19
  return [...a.slice(0, e), ...s, ...a.slice(e)];
19
20
  }
@@ -64,10 +65,11 @@ function m(a) {
64
65
  export {
65
66
  fe as calculateDistance,
66
67
  pe as calculateDistanceWithRadius,
67
- Ne as camelToKebab,
68
- Ve as capitalize,
68
+ Ve as camelToKebab,
69
+ Me as capitalize,
70
+ Ge as changeHistory,
69
71
  me as clamp,
70
- ve as cloneDeep,
72
+ Pe as cloneDeep,
71
73
  Te as compareObjects,
72
74
  O as contain,
73
75
  S as cover,
@@ -78,26 +80,26 @@ export {
78
80
  Z as dispatchSizeChangeEvent,
79
81
  l as dotCircleCollision,
80
82
  c as dotRectCollision,
81
- z as easeInCubic,
83
+ j as easeInCubic,
82
84
  N as easeInExpo,
83
85
  V as easeInOutCubic,
84
86
  M as easeInOutExpo,
85
87
  U as easeInOutQuad,
86
- W as easeInOutQuart,
87
- q as easeInOutQuint,
88
- B as easeInQuad,
89
- J as easeInQuart,
90
- K as easeInQuint,
91
- L as easeOutCubic,
92
- $ as easeOutExpo,
93
- F as easeOutQuad,
94
- G as easeOutQuart,
95
- H as easeOutQuint,
88
+ B as easeInOutQuart,
89
+ W as easeInOutQuint,
90
+ q as easeInQuad,
91
+ H as easeInQuart,
92
+ J as easeInQuint,
93
+ K as easeOutCubic,
94
+ L as easeOutExpo,
95
+ $ as easeOutQuad,
96
+ F as easeOutQuart,
97
+ G as easeOutQuint,
96
98
  p as encode,
97
99
  Q as findParentElement,
98
100
  D as findScrollParentElement,
99
- w as fixPosition,
100
- Me as generateId,
101
+ y as fixPosition,
102
+ Ue as generateId,
101
103
  R as getAllParentElements,
102
104
  ie as getCumulativeOffsetLeft,
103
105
  ue as getCumulativeOffsetTop,
@@ -110,33 +112,36 @@ export {
110
112
  i as insert,
111
113
  C as isBrowser,
112
114
  Ae as isESClass,
113
- Pe as isNullish,
114
- Qe as isObject,
115
- Ue as isUppercase,
115
+ Qe as isNullish,
116
+ De as isObject,
117
+ Be as isUppercase,
116
118
  We as kebabToCamel,
117
119
  xe as lerp,
118
120
  X as linear,
119
121
  ge as mapRange,
120
- y as measureText,
121
- De as mergeDeep,
122
- Re as mixin,
123
- T as normalize,
122
+ w as measureText,
123
+ Re as mergeDeep,
124
+ ke as mixin,
125
+ P as normalize,
126
+ Xe as normalizeBase,
124
127
  Se as nullishCoalescing,
125
- ke as omit,
128
+ ze as omit,
126
129
  g as parseAttribute,
127
130
  b as parseAttributeValue,
128
131
  je as pick,
129
- we as preciseNumber,
132
+ ye as preciseNumber,
130
133
  be as round,
131
- ye as roundNumberTo,
132
- A as screenToCartesian,
134
+ we as roundNumberTo,
135
+ T as screenToCartesian,
133
136
  ne as setupDrag,
134
137
  u as shiftArray,
135
138
  he as smootherstep,
136
139
  Ce as smoothstep,
137
140
  qe as snakeToDotted,
141
+ Ye as splitPath,
138
142
  Ee as step,
139
143
  te as throttle,
140
- Be as toPascalCase,
144
+ He as toPascalCase,
145
+ Ie as toStep,
141
146
  Je as uncapitalize
142
147
  };
@@ -1,2 +1,3 @@
1
1
  export declare function preciseNumber(number: number, n?: number): number;
2
2
  export declare function roundNumberTo(number: number, to: number): number;
3
+ export declare function toStep(value: number, step: number): number;
@@ -0,0 +1,9 @@
1
+ export declare function splitPath(value: string, base?: string): {
2
+ leaf: string;
3
+ pathname: string;
4
+ parameters: string;
5
+ hash: string;
6
+ };
7
+ export declare function normalizeBase(base: string): string;
8
+ export type ChangeHistoryAction = 'replace' | 'push' | 'none';
9
+ export declare function changeHistory(action: ChangeHistoryAction, pathname: string, parameters?: string | undefined, hash?: string | undefined): void;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("../custom-element/index.cjs");require("../window-resizer/index.cjs");require("../Store-C-1ruEIm.cjs");const v=require("../source/index.cjs"),d=require("../ticker/index.cjs");var E=Object.defineProperty,f=Object.getOwnPropertyDescriptor,_=(t,e,r,i)=>{for(var s=i>1?void 0:i?f(e,r):e,o=t.length-1,u;o>=0;o--)(u=t[o])&&(s=(i?u(e,r,s):u(s))||s);return i&&s&&E(e,r,s),s},p=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},n=(t,e,r)=>(p(t,e,"read from private field"),r?r.call(t):e.get(t)),l=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},h=(t,e,r,i)=>(p(t,e,"write to private field"),e.set(t,r),r),a,c;exports.VideoElement=class extends v.SourceElement{constructor(){super(...arguments),l(this,a,0),l(this,c,()=>{this.classList.add(`state-${this.consumerElement.readyState}`);const e=this.consumerElement.readyState/4;e>n(this,a)&&h(this,a,e),this.dispatchEvent(new CustomEvent("readyStateChange",{detail:{readyState:this.consumerElement.readyState,progress:n(this,a)}})),this.consumerElement.readyState===4&&d.ticker.unsubscribe(n(this,c))})}connectedCallback(){super.connectedCallback(),this.addEventListener("sourceCapture",()=>{d.ticker.subscribe(n(this,c)),this.hasAttribute("capture-autoplay")&&this.consumerElement.play()}),this.addEventListener("sourceRelease",()=>{this.hasAttribute("capture-autoplay")&&(this.consumerElement.pause(),this.hasAttribute("replay")&&(this.consumerElement.currentTime=0)),this.hasAttribute("reload-source")&&this.classList.remove("state-0","state-1","state-2","state-3","state-4")})}disconnectedCallback(){super.disconnectedCallback(),d.ticker.unsubscribe(n(this,c)),h(this,a,0)}createConsumer(){return document.createElement("video")}consumeSource(e){this.consumerElement.src=e||""}};a=new WeakMap;c=new WeakMap;exports.VideoElement=_([m.define("e-video")],exports.VideoElement);
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("../custom-element/index.cjs");require("../window-resizer/index.cjs");require("../Store-6s0YXK4o.cjs");const v=require("../source/index.cjs"),d=require("../ticker/index.cjs");var E=Object.defineProperty,f=Object.getOwnPropertyDescriptor,_=(t,e,r,i)=>{for(var s=i>1?void 0:i?f(e,r):e,o=t.length-1,u;o>=0;o--)(u=t[o])&&(s=(i?u(e,r,s):u(s))||s);return i&&s&&E(e,r,s),s},p=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},n=(t,e,r)=>(p(t,e,"read from private field"),r?r.call(t):e.get(t)),l=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},h=(t,e,r,i)=>(p(t,e,"write to private field"),e.set(t,r),r),a,c;exports.VideoElement=class extends v.SourceElement{constructor(){super(...arguments),l(this,a,0),l(this,c,()=>{this.classList.add(`state-${this.consumerElement.readyState}`);const e=this.consumerElement.readyState/4;e>n(this,a)&&h(this,a,e),this.dispatchEvent(new CustomEvent("readyStateChange",{detail:{readyState:this.consumerElement.readyState,progress:n(this,a)}})),this.consumerElement.readyState===4&&d.ticker.unsubscribe(n(this,c))})}connectedCallback(){super.connectedCallback(),this.addEventListener("sourceCapture",()=>{d.ticker.subscribe(n(this,c)),this.hasAttribute("capture-autoplay")&&this.consumerElement.play()}),this.addEventListener("sourceRelease",()=>{this.hasAttribute("capture-autoplay")&&(this.consumerElement.pause(),this.hasAttribute("replay")&&(this.consumerElement.currentTime=0)),this.hasAttribute("reload-source")&&this.classList.remove("state-0","state-1","state-2","state-3","state-4")})}disconnectedCallback(){super.disconnectedCallback(),d.ticker.unsubscribe(n(this,c)),h(this,a,0)}createConsumer(){return document.createElement("video")}consumeSource(e){this.consumerElement.src=e||""}};a=new WeakMap;c=new WeakMap;exports.VideoElement=_([m.define("e-video")],exports.VideoElement);
@@ -1,6 +1,6 @@
1
1
  import { define as v } from "../custom-element/index.js";
2
2
  import "../window-resizer/index.js";
3
- import "../Store-BQXXikps.js";
3
+ import "../Store-BI2xxXOA.js";
4
4
  import { SourceElement as f } from "../source/index.js";
5
5
  import { ticker as h } from "../ticker/index.js";
6
6
  var E = Object.defineProperty, _ = Object.getOwnPropertyDescriptor, y = (e, t, s, i) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aptechka",
3
- "version": "0.5.44",
3
+ "version": "0.7.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/denisavitski/aptechka.git"
@@ -103,6 +103,31 @@
103
103
  "default": "./lib/en3/index.js",
104
104
  "types": "./lib/en3/index.d.ts"
105
105
  },
106
+ "./en3/helpers": {
107
+ "require": "./lib/en3/helpers/index.cjs",
108
+ "default": "./lib/en3/helpers/index.js",
109
+ "types": "./lib/en3/helpers/index.d.ts"
110
+ },
111
+ "./en3/libs": {
112
+ "require": "./lib/en3/libs/index.cjs",
113
+ "default": "./lib/en3/libs/index.js",
114
+ "types": "./lib/en3/libs/index.d.ts"
115
+ },
116
+ "./en3/loaders": {
117
+ "require": "./lib/en3/loaders/index.cjs",
118
+ "default": "./lib/en3/loaders/index.js",
119
+ "types": "./lib/en3/loaders/index.d.ts"
120
+ },
121
+ "./en3/misc": {
122
+ "require": "./lib/en3/misc/index.cjs",
123
+ "default": "./lib/en3/misc/index.js",
124
+ "types": "./lib/en3/misc/index.d.ts"
125
+ },
126
+ "./en3/utils": {
127
+ "require": "./lib/en3/utils/index.cjs",
128
+ "default": "./lib/en3/utils/index.js",
129
+ "types": "./lib/en3/utils/index.d.ts"
130
+ },
106
131
  "./image": {
107
132
  "require": "./lib/image/index.cjs",
108
133
  "default": "./lib/image/index.js",
@@ -113,6 +138,46 @@
113
138
  "default": "./lib/intersector/index.js",
114
139
  "types": "./lib/intersector/index.d.ts"
115
140
  },
141
+ "./jsx": {
142
+ "require": "./lib/jsx/index.cjs",
143
+ "default": "./lib/jsx/index.js",
144
+ "types": "./lib/jsx/index.d.ts"
145
+ },
146
+ "./jsx/hooks/store": {
147
+ "require": "./lib/jsx/hooks/store/index.cjs",
148
+ "default": "./lib/jsx/hooks/store/index.js",
149
+ "types": "./lib/jsx/hooks/store/index.d.ts"
150
+ },
151
+ "./jsx/hooks/onAnimationFrame": {
152
+ "require": "./lib/jsx/hooks/onAnimationFrame.cjs",
153
+ "default": "./lib/jsx/hooks/onAnimationFrame.js",
154
+ "types": "./lib/jsx/hooks/onAnimationFrame.d.ts"
155
+ },
156
+ "./jsx/hooks/onElementResize": {
157
+ "require": "./lib/jsx/hooks/onElementResize.cjs",
158
+ "default": "./lib/jsx/hooks/onElementResize.js",
159
+ "types": "./lib/jsx/hooks/onElementResize.d.ts"
160
+ },
161
+ "./jsx/hooks/onIntersection": {
162
+ "require": "./lib/jsx/hooks/onIntersection.cjs",
163
+ "default": "./lib/jsx/hooks/onIntersection.js",
164
+ "types": "./lib/jsx/hooks/onIntersection.d.ts"
165
+ },
166
+ "./jsx/hooks/onWindowResize": {
167
+ "require": "./lib/jsx/hooks/onWindowResize.cjs",
168
+ "default": "./lib/jsx/hooks/onWindowResize.js",
169
+ "types": "./lib/jsx/hooks/onWindowResize.d.ts"
170
+ },
171
+ "./jsx/hooks/watchAttribute": {
172
+ "require": "./lib/jsx/hooks/watchAttribute.cjs",
173
+ "default": "./lib/jsx/hooks/watchAttribute.js",
174
+ "types": "./lib/jsx/hooks/watchAttribute.d.ts"
175
+ },
176
+ "./jsx/hooks/watchCSSProperty": {
177
+ "require": "./lib/jsx/hooks/watchCSSProperty.cjs",
178
+ "default": "./lib/jsx/hooks/watchCSSProperty.js",
179
+ "types": "./lib/jsx/hooks/watchCSSProperty.d.ts"
180
+ },
116
181
  "./ladder": {
117
182
  "require": "./lib/ladder/index.cjs",
118
183
  "default": "./lib/ladder/index.js",
@@ -295,12 +360,51 @@
295
360
  "en3": [
296
361
  "lib/en3/index.d.ts"
297
362
  ],
363
+ "en3/helpers": [
364
+ "lib/en3/helpers/index.d.ts"
365
+ ],
366
+ "en3/libs": [
367
+ "lib/en3/libs/index.d.ts"
368
+ ],
369
+ "en3/loaders": [
370
+ "lib/en3/loaders/index.d.ts"
371
+ ],
372
+ "en3/misc": [
373
+ "lib/en3/misc/index.d.ts"
374
+ ],
375
+ "en3/utils": [
376
+ "lib/en3/utils/index.d.ts"
377
+ ],
298
378
  "image": [
299
379
  "lib/image/index.d.ts"
300
380
  ],
301
381
  "intersector": [
302
382
  "lib/intersector/index.d.ts"
303
383
  ],
384
+ "jsx": [
385
+ "lib/jsx/index.d.ts"
386
+ ],
387
+ "jsx/hooks/store": [
388
+ "lib/jsx/hooks/store/index.d.ts"
389
+ ],
390
+ "jsx/hooks/onAnimationFrame": [
391
+ "lib/jsx/hooks/onAnimationFrame.d.ts"
392
+ ],
393
+ "jsx/hooks/onElementResize": [
394
+ "lib/jsx/hooks/onElementResize.d.ts"
395
+ ],
396
+ "jsx/hooks/onIntersection": [
397
+ "lib/jsx/hooks/onIntersection.d.ts"
398
+ ],
399
+ "jsx/hooks/onWindowResize": [
400
+ "lib/jsx/hooks/onWindowResize.d.ts"
401
+ ],
402
+ "jsx/hooks/watchAttribute": [
403
+ "lib/jsx/hooks/watchAttribute.d.ts"
404
+ ],
405
+ "jsx/hooks/watchCSSProperty": [
406
+ "lib/jsx/hooks/watchCSSProperty.d.ts"
407
+ ],
304
408
  "ladder": [
305
409
  "lib/ladder/index.d.ts"
306
410
  ],
@@ -393,12 +497,12 @@
393
497
  },
394
498
  "dependencies": {
395
499
  "detect-gpu": "^5.0.38",
396
- "three": "^0.165.0",
500
+ "three": "^0.166.1",
397
501
  "urlpattern-polyfill": "^10.0.0"
398
502
  },
399
503
  "peerDependencies": {
400
504
  "detect-gpu": "^5.0.38",
401
- "three": "^0.165.0",
505
+ "three": "^0.166.1",
402
506
  "urlpattern-polyfill": "^10.0.0"
403
507
  }
404
508
  }
@@ -1 +0,0 @@
1
- "use strict";var W=Object.defineProperty,X=Object.defineProperties;var Y=Object.getOwnPropertyDescriptors;var V=Object.getOwnPropertySymbols;var Z=Object.prototype.hasOwnProperty,$=Object.prototype.propertyIsEnumerable;var K=(e,s,t)=>s in e?W(e,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[s]=t,j=(e,s)=>{for(var t in s||(s={}))Z.call(s,t)&&K(e,t,s[t]);if(V)for(var t of V(s))$.call(s,t)&&K(e,t,s[t]);return e},G=(e,s)=>X(e,Y(s));var _=(e,s,t)=>{if(!s.has(e))throw TypeError("Cannot "+t)};var i=(e,s,t)=>(_(e,s,"read from private field"),t?t.call(e):s.get(e)),r=(e,s,t)=>{if(s.has(e))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(e):s.set(e,t)},n=(e,s,t,h)=>(_(e,s,"write to private field"),h?h.call(e,t):s.set(e,t),t);var x=(e,s,t)=>(_(e,s,"access private method"),t);const L=require("./Store-C-1ruEIm.cjs"),v=require("./math-GDWEqu7y.cjs"),o=require("./polyfills-DHs2SNbz.cjs"),H=require("./ticker/index.cjs"),tt=require("./order/index.cjs");var u,m,k,y,b,q,S,w,R,J,T,Q,O,B,z,U,P;class it{constructor(s,t,h,N,E){r(this,R);r(this,T);r(this,O);r(this,z);r(this,u,void 0);r(this,m,void 0);r(this,k,void 0);r(this,y,void 0);r(this,b,!1);r(this,q,!1);r(this,S,!1);r(this,w,void 0);r(this,P,s=>{!i(this,S)&&i(this,u).initial!==i(this,u).current&&n(this,S,!0),i(this,S)&&(s.direction>0&&s.progress>=i(this,k).current?x(this,R,J).call(this):s.direction<0&&s.progress<=i(this,k).current&&x(this,T,Q).call(this))});n(this,u,s),n(this,m,t),n(this,k,new L.Store(h,{passport:t.passport?{name:t.passport+"-start",manager:{type:"number"}}:void 0})),n(this,y,new L.Store(N,{passport:t.passport?{name:t.passport+"-set",manager:{type:"number"}}:void 0})),n(this,w,E),i(this,u).subscribe(i(this,P)),i(this,u).linked.add(this)}get targetAnimation(){return i(this,m)}get triggerAnimation(){return i(this,u)}destroy(){i(this,y).close(),i(this,k).close(),i(this,u).unsubscribe(i(this,P)),i(this,u).linked.delete(this)}}u=new WeakMap,m=new WeakMap,k=new WeakMap,y=new WeakMap,b=new WeakMap,q=new WeakMap,S=new WeakMap,w=new WeakMap,R=new WeakSet,J=function(){i(this,b)||(n(this,q,!1),n(this,b,!0),x(this,O,B).call(this,i(this,y).current))},T=new WeakSet,Q=function(){i(this,b)&&!i(this,q)&&(n(this,b,!1),n(this,q,!0),x(this,O,B).call(this,i(this,m).initial))},O=new WeakSet,B=function(s){x(this,z,U).call(this),i(this,m).updateOptions(i(this,w)),i(this,m).set(s)},z=new WeakSet,U=function(){var s;(s=i(this,w))!=null&&s.once&&this.destroy()},P=new WeakMap;var C,D,M,g,A,d,p,a,c,l,f,F,I;class st extends L.Store{constructor(t,h){super(t||0,h);r(this,C,void 0);r(this,D,tt.TICK_ORDER.ANIMATION);r(this,M,void 0);r(this,g,new L.Store(!1));r(this,A,new Set);r(this,d,null);r(this,p,0);r(this,a,0);r(this,c,-1/0);r(this,l,1/0);r(this,f,0);r(this,F,1);r(this,I,t=>{this.handleAnimationFrame(t)});n(this,a,this.current)}get linked(){return i(this,A)}get animationLink(){return i(this,d)}get direction(){return i(this,p)}get target(){return i(this,a)}get min(){return i(this,c)}set min(t){n(this,c,t),this.set(i(this,a),{equalize:!0})}get max(){return i(this,l)}set max(t){n(this,l,t),this.set(i(this,a),{equalize:!0})}get from(){return i(this,f)}get to(){return i(this,F)}get isRunning(){return i(this,g)}get currentDistance(){return Math.abs(i(this,F)-i(this,f))}get distance(){return Math.abs(i(this,l)-i(this,c))}get currentProgress(){return this.currentDistance?o.preciseNumber(Math.abs(this.current-i(this,f))/this.currentDistance,6):0}get progress(){return this.distance?o.preciseNumber(Math.abs(this.current-i(this,c))/this.distance,6):0}get entry(){return G(j({},super.entry),{from:i(this,f),to:i(this,F),currentDistance:this.currentDistance,distance:this.distance,direction:this.direction,currentProgress:this.currentProgress,progress:this.progress})}setTarget(t){n(this,p,Math.sign(t-i(this,a))),n(this,a,v.clamp(t,i(this,c),i(this,l))),n(this,f,this.current),n(this,F,t)}set(t,h){i(this,a)!==t&&(this.setTarget(t),h&&this.updateOptions(h),i(this,a)!==this.current&&this.start())}shift(t,h){this.set(i(this,a)+t,h)}reset(){this.set(this.initial,{equalize:!0}),super.reset(),i(this,A).forEach(t=>{t.targetAnimation.reset()})}close(){super.close(),this.unlistenAnimationFrame(),this.unlink(),i(this,A).clear()}listenAnimationFrame(){i(this,g).current||(i(this,g).current=!0,H.ticker.subscribe(i(this,I),{maxFPS:i(this,C),order:i(this,D),culling:i(this,M)}))}unlistenAnimationFrame(){i(this,g).current&&(i(this,g).current=!1,H.ticker.unsubscribe(i(this,I)),i(this,A).forEach(t=>{t.targetAnimation.unlistenAnimationFrame()}))}updateOptions(t){n(this,C,o.nullishCoalescing(t==null?void 0:t.maxFPS,i(this,C))),n(this,D,o.nullishCoalescing(t==null?void 0:t.order,i(this,D))),n(this,M,o.nullishCoalescing(t==null?void 0:t.culling,i(this,M))),n(this,c,o.nullishCoalescing(t==null?void 0:t.min,i(this,c))),n(this,l,o.nullishCoalescing(t==null?void 0:t.max,i(this,l))),t!=null&&t.equalize&&(this.unlistenAnimationFrame(),this.current=i(this,a))}linkTo(t,h,N,E){this.unlink(),n(this,d,new it(t,this,h,N,E))}unlink(){i(this,d)&&(i(this,d).destroy(),n(this,d,null))}start(){this.listenAnimationFrame()}}C=new WeakMap,D=new WeakMap,M=new WeakMap,g=new WeakMap,A=new WeakMap,d=new WeakMap,p=new WeakMap,a=new WeakMap,c=new WeakMap,l=new WeakMap,f=new WeakMap,F=new WeakMap,I=new WeakMap;exports.Animation=st;
@@ -1,217 +0,0 @@
1
- var X = Object.defineProperty, Y = Object.defineProperties;
2
- var Z = Object.getOwnPropertyDescriptors;
3
- var K = Object.getOwnPropertySymbols;
4
- var $ = Object.prototype.hasOwnProperty, v = Object.prototype.propertyIsEnumerable;
5
- var _ = (e, s, t) => s in e ? X(e, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[s] = t, j = (e, s) => {
6
- for (var t in s || (s = {}))
7
- $.call(s, t) && _(e, t, s[t]);
8
- if (K)
9
- for (var t of K(s))
10
- v.call(s, t) && _(e, t, s[t]);
11
- return e;
12
- }, G = (e, s) => Y(e, Z(s));
13
- var C = (e, s, t) => {
14
- if (!s.has(e))
15
- throw TypeError("Cannot " + t);
16
- };
17
- var i = (e, s, t) => (C(e, s, "read from private field"), t ? t.call(e) : s.get(e)), r = (e, s, t) => {
18
- if (s.has(e))
19
- throw TypeError("Cannot add the same private member more than once");
20
- s instanceof WeakSet ? s.add(e) : s.set(e, t);
21
- }, h = (e, s, t, n) => (C(e, s, "write to private field"), n ? n.call(e, t) : s.set(e, t), t);
22
- var F = (e, s, t) => (C(e, s, "access private method"), t);
23
- import { S as T } from "./Store-BQXXikps.js";
24
- import { c as tt } from "./math-BOBiC4TN.js";
25
- import { p as H, n as P } from "./polyfills-BA-CL_HF.js";
26
- import { ticker as J } from "./ticker/index.js";
27
- import { TICK_ORDER as it } from "./order/index.js";
28
- var u, l, o, p, b, x, y, w, q, Q, z, U, S, V, E, W, I;
29
- class st {
30
- constructor(s, t, n, N, B) {
31
- r(this, q);
32
- r(this, z);
33
- r(this, S);
34
- r(this, E);
35
- r(this, u, void 0);
36
- r(this, l, void 0);
37
- r(this, o, void 0);
38
- r(this, p, void 0);
39
- r(this, b, !1);
40
- r(this, x, !1);
41
- r(this, y, !1);
42
- r(this, w, void 0);
43
- r(this, I, (s) => {
44
- !i(this, y) && i(this, u).initial !== i(this, u).current && h(this, y, !0), i(this, y) && (s.direction > 0 && s.progress >= i(this, o).current ? F(this, q, Q).call(this) : s.direction < 0 && s.progress <= i(this, o).current && F(this, z, U).call(this));
45
- });
46
- h(this, u, s), h(this, l, t), h(this, o, new T(n, {
47
- passport: t.passport ? {
48
- name: t.passport + "-start",
49
- manager: {
50
- type: "number"
51
- }
52
- } : void 0
53
- })), h(this, p, new T(N, {
54
- passport: t.passport ? {
55
- name: t.passport + "-set",
56
- manager: {
57
- type: "number"
58
- }
59
- } : void 0
60
- })), h(this, w, B), i(this, u).subscribe(i(this, I)), i(this, u).linked.add(this);
61
- }
62
- get targetAnimation() {
63
- return i(this, l);
64
- }
65
- get triggerAnimation() {
66
- return i(this, u);
67
- }
68
- destroy() {
69
- i(this, p).close(), i(this, o).close(), i(this, u).unsubscribe(i(this, I)), i(this, u).linked.delete(this);
70
- }
71
- }
72
- u = new WeakMap(), l = new WeakMap(), o = new WeakMap(), p = new WeakMap(), b = new WeakMap(), x = new WeakMap(), y = new WeakMap(), w = new WeakMap(), q = new WeakSet(), Q = function() {
73
- i(this, b) || (h(this, x, !1), h(this, b, !0), F(this, S, V).call(this, i(this, p).current));
74
- }, z = new WeakSet(), U = function() {
75
- i(this, b) && !i(this, x) && (h(this, b, !1), h(this, x, !0), F(this, S, V).call(this, i(this, l).initial));
76
- }, S = new WeakSet(), V = function(s) {
77
- F(this, E, W).call(this), i(this, l).updateOptions(i(this, w)), i(this, l).set(s);
78
- }, E = new WeakSet(), W = function() {
79
- var s;
80
- (s = i(this, w)) != null && s.once && this.destroy();
81
- }, I = new WeakMap();
82
- var D, M, O, g, k, d, L, a, c, m, f, A, R;
83
- class ct extends T {
84
- constructor(t, n) {
85
- super(t || 0, n);
86
- r(this, D, void 0);
87
- r(this, M, it.ANIMATION);
88
- r(this, O, void 0);
89
- r(this, g, new T(!1));
90
- r(this, k, /* @__PURE__ */ new Set());
91
- r(this, d, null);
92
- r(this, L, 0);
93
- r(this, a, 0);
94
- r(this, c, -1 / 0);
95
- r(this, m, 1 / 0);
96
- r(this, f, 0);
97
- r(this, A, 1);
98
- r(this, R, (t) => {
99
- this.handleAnimationFrame(t);
100
- });
101
- h(this, a, this.current);
102
- }
103
- get linked() {
104
- return i(this, k);
105
- }
106
- get animationLink() {
107
- return i(this, d);
108
- }
109
- get direction() {
110
- return i(this, L);
111
- }
112
- get target() {
113
- return i(this, a);
114
- }
115
- get min() {
116
- return i(this, c);
117
- }
118
- set min(t) {
119
- h(this, c, t), this.set(i(this, a), {
120
- equalize: !0
121
- });
122
- }
123
- get max() {
124
- return i(this, m);
125
- }
126
- set max(t) {
127
- h(this, m, t), this.set(i(this, a), {
128
- equalize: !0
129
- });
130
- }
131
- get from() {
132
- return i(this, f);
133
- }
134
- get to() {
135
- return i(this, A);
136
- }
137
- get isRunning() {
138
- return i(this, g);
139
- }
140
- get currentDistance() {
141
- return Math.abs(i(this, A) - i(this, f));
142
- }
143
- get distance() {
144
- return Math.abs(i(this, m) - i(this, c));
145
- }
146
- get currentProgress() {
147
- return this.currentDistance ? H(
148
- Math.abs(this.current - i(this, f)) / this.currentDistance,
149
- 6
150
- ) : 0;
151
- }
152
- get progress() {
153
- return this.distance ? H(Math.abs(this.current - i(this, c)) / this.distance, 6) : 0;
154
- }
155
- get entry() {
156
- return G(j({}, super.entry), {
157
- from: i(this, f),
158
- to: i(this, A),
159
- currentDistance: this.currentDistance,
160
- distance: this.distance,
161
- direction: this.direction,
162
- currentProgress: this.currentProgress,
163
- progress: this.progress
164
- });
165
- }
166
- setTarget(t) {
167
- h(this, L, Math.sign(t - i(this, a))), h(this, a, tt(t, i(this, c), i(this, m))), h(this, f, this.current), h(this, A, t);
168
- }
169
- set(t, n) {
170
- i(this, a) !== t && (this.setTarget(t), n && this.updateOptions(n), i(this, a) !== this.current && this.start());
171
- }
172
- shift(t, n) {
173
- this.set(i(this, a) + t, n);
174
- }
175
- reset() {
176
- this.set(this.initial, { equalize: !0 }), super.reset(), i(this, k).forEach((t) => {
177
- t.targetAnimation.reset();
178
- });
179
- }
180
- close() {
181
- super.close(), this.unlistenAnimationFrame(), this.unlink(), i(this, k).clear();
182
- }
183
- listenAnimationFrame() {
184
- i(this, g).current || (i(this, g).current = !0, J.subscribe(i(this, R), {
185
- maxFPS: i(this, D),
186
- order: i(this, M),
187
- culling: i(this, O)
188
- }));
189
- }
190
- unlistenAnimationFrame() {
191
- i(this, g).current && (i(this, g).current = !1, J.unsubscribe(i(this, R)), i(this, k).forEach((t) => {
192
- t.targetAnimation.unlistenAnimationFrame();
193
- }));
194
- }
195
- updateOptions(t) {
196
- h(this, D, P(t == null ? void 0 : t.maxFPS, i(this, D))), h(this, M, P(t == null ? void 0 : t.order, i(this, M))), h(this, O, P(t == null ? void 0 : t.culling, i(this, O))), h(this, c, P(t == null ? void 0 : t.min, i(this, c))), h(this, m, P(t == null ? void 0 : t.max, i(this, m))), t != null && t.equalize && (this.unlistenAnimationFrame(), this.current = i(this, a));
197
- }
198
- linkTo(t, n, N, B) {
199
- this.unlink(), h(this, d, new st(
200
- t,
201
- this,
202
- n,
203
- N,
204
- B
205
- ));
206
- }
207
- unlink() {
208
- i(this, d) && (i(this, d).destroy(), h(this, d, null));
209
- }
210
- start() {
211
- this.listenAnimationFrame();
212
- }
213
- }
214
- D = new WeakMap(), M = new WeakMap(), O = new WeakMap(), g = new WeakMap(), k = new WeakMap(), d = new WeakMap(), L = new WeakMap(), a = new WeakMap(), c = new WeakMap(), m = new WeakMap(), f = new WeakMap(), A = new WeakMap(), R = new WeakMap();
215
- export {
216
- ct as A
217
- };
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("three"),w=new WeakMap;class L extends f.Loader{constructor(e){super(e),this.decoderPath="",this.decoderConfig={},this.decoderBinary=null,this.decoderPending=null,this.workerLimit=4,this.workerPool=[],this.workerNextTaskID=1,this.workerSourceURL="",this.defaultAttributeIDs={position:"POSITION",normal:"NORMAL",color:"COLOR",uv:"TEX_COORD"},this.defaultAttributeTypes={position:"Float32Array",normal:"Float32Array",color:"Float32Array",uv:"Float32Array"}}setDecoderPath(e){return this.decoderPath=e,this}setDecoderConfig(e){return this.decoderConfig=e,this}setWorkerLimit(e){return this.workerLimit=e,this}load(e,s,o,r){const n=new f.FileLoader(this.manager);n.setPath(this.path),n.setResponseType("arraybuffer"),n.setRequestHeader(this.requestHeader),n.setWithCredentials(this.withCredentials),n.load(e,t=>{this.parse(t,s,r)},o,r)}parse(e,s,o=()=>{}){this.decodeDracoFile(e,s,null,null,f.SRGBColorSpace,o).catch(o)}decodeDracoFile(e,s,o,r,n=f.LinearSRGBColorSpace,t=()=>{}){const i={attributeIDs:o||this.defaultAttributeIDs,attributeTypes:r||this.defaultAttributeTypes,useUniqueIDs:!!o,vertexColorSpace:n};return this.decodeGeometry(e,i).then(s).catch(t)}decodeGeometry(e,s){const o=JSON.stringify(s);if(w.has(e)){const a=w.get(e);if(a.key===o)return a.promise;if(e.byteLength===0)throw new Error("THREE.DRACOLoader: Unable to re-decode a buffer with different settings. Buffer has already been transferred.")}let r;const n=this.workerNextTaskID++,t=e.byteLength,i=this._getWorker(n,t).then(a=>(r=a,new Promise((h,d)=>{r._callbacks[n]={resolve:h,reject:d},r.postMessage({type:"decode",id:n,taskConfig:s,buffer:e},[e])}))).then(a=>this._createGeometry(a.geometry));return i.catch(()=>!0).then(()=>{r&&n&&this._releaseTask(r,n)}),w.set(e,{key:o,promise:i}),i}_createGeometry(e){const s=new f.BufferGeometry;e.index&&s.setIndex(new f.BufferAttribute(e.index.array,1));for(let o=0;o<e.attributes.length;o++){const r=e.attributes[o],n=r.name,t=r.array,i=r.itemSize,a=new f.BufferAttribute(t,i);n==="color"&&(this._assignVertexColorSpace(a,r.vertexColorSpace),a.normalized=!(t instanceof Float32Array)),s.setAttribute(n,a)}return s}_assignVertexColorSpace(e,s){if(s!==f.SRGBColorSpace)return;const o=new f.Color;for(let r=0,n=e.count;r<n;r++)o.fromBufferAttribute(e,r).convertSRGBToLinear(),e.setXYZ(r,o.r,o.g,o.b)}_loadLibrary(e,s){const o=new f.FileLoader(this.manager);return o.setPath(this.decoderPath),o.setResponseType(s),o.setWithCredentials(this.withCredentials),new Promise((r,n)=>{o.load(e,r,void 0,n)})}preload(){return this._initDecoder(),this}_initDecoder(){if(this.decoderPending)return this.decoderPending;const e=typeof WebAssembly!="object"||this.decoderConfig.type==="js",s=[];return e?s.push(this._loadLibrary("draco_decoder.js","text")):(s.push(this._loadLibrary("draco_wasm_wrapper.js","text")),s.push(this._loadLibrary("draco_decoder.wasm","arraybuffer"))),this.decoderPending=Promise.all(s).then(o=>{const r=o[0];e||(this.decoderConfig.wasmBinary=o[1]);const n=T.toString(),t=["/* draco decoder */",r,"","/* worker */",n.substring(n.indexOf("{")+1,n.lastIndexOf("}"))].join(`
2
- `);this.workerSourceURL=URL.createObjectURL(new Blob([t]))}),this.decoderPending}_getWorker(e,s){return this._initDecoder().then(()=>{if(this.workerPool.length<this.workerLimit){const r=new Worker(this.workerSourceURL);r._callbacks={},r._taskCosts={},r._taskLoad=0,r.postMessage({type:"init",decoderConfig:this.decoderConfig}),r.onmessage=function(n){const t=n.data;switch(t.type){case"decode":r._callbacks[t.id].resolve(t);break;case"error":r._callbacks[t.id].reject(t);break;default:console.error('THREE.DRACOLoader: Unexpected message, "'+t.type+'"')}},this.workerPool.push(r)}else this.workerPool.sort(function(r,n){return r._taskLoad>n._taskLoad?-1:1});const o=this.workerPool[this.workerPool.length-1];return o._taskCosts[e]=s,o._taskLoad+=s,o})}_releaseTask(e,s){e._taskLoad-=e._taskCosts[s],delete e._callbacks[s],delete e._taskCosts[s]}debug(){console.log("Task load: ",this.workerPool.map(e=>e._taskLoad))}dispose(){for(let e=0;e<this.workerPool.length;++e)this.workerPool[e].terminate();return this.workerPool.length=0,this.workerSourceURL!==""&&URL.revokeObjectURL(this.workerSourceURL),this}}function T(){let k,e;onmessage=function(t){const i=t.data;switch(i.type){case"init":k=i.decoderConfig,e=new Promise(function(d){k.onModuleLoaded=function(u){d({draco:u})},DracoDecoderModule(k)});break;case"decode":const a=i.buffer,h=i.taskConfig;e.then(d=>{const u=d.draco,c=new u.Decoder;try{const l=s(u,c,new Int8Array(a),h),y=l.attributes.map(p=>p.array.buffer);l.index&&y.push(l.index.array.buffer),self.postMessage({type:"decode",id:i.id,geometry:l},y)}catch(l){console.error(l),self.postMessage({type:"error",id:i.id,error:l.message})}finally{u.destroy(c)}});break}};function s(t,i,a,h){const d=h.attributeIDs,u=h.attributeTypes;let c,l;const y=i.GetEncodedGeometryType(a);if(y===t.TRIANGULAR_MESH)c=new t.Mesh,l=i.DecodeArrayToMesh(a,a.byteLength,c);else if(y===t.POINT_CLOUD)c=new t.PointCloud,l=i.DecodeArrayToPointCloud(a,a.byteLength,c);else throw new Error("THREE.DRACOLoader: Unexpected geometry type.");if(!l.ok()||c.ptr===0)throw new Error("THREE.DRACOLoader: Decoding failed: "+l.error_msg());const p={index:null,attributes:[]};for(const m in d){const g=self[u[m]];let b,_;if(h.useUniqueIDs)_=d[m],b=i.GetAttributeByUniqueId(c,_);else{if(_=i.GetAttributeId(c,t[d[m]]),_===-1)continue;b=i.GetAttribute(c,_)}const A=r(t,i,c,m,g,b);m==="color"&&(A.vertexColorSpace=h.vertexColorSpace),p.attributes.push(A)}return y===t.TRIANGULAR_MESH&&(p.index=o(t,i,c)),t.destroy(c),p}function o(t,i,a){const d=a.num_faces()*3,u=d*4,c=t._malloc(u);i.GetTrianglesUInt32Array(a,u,c);const l=new Uint32Array(t.HEAPF32.buffer,c,d).slice();return t._free(c),{array:l,itemSize:1}}function r(t,i,a,h,d,u){const c=u.num_components(),y=a.num_points()*c,p=y*d.BYTES_PER_ELEMENT,m=n(t,d),g=t._malloc(p);i.GetAttributeDataArrayForAllPoints(a,u,m,p,g);const b=new d(t.HEAPF32.buffer,g,y).slice();return t._free(g),{name:h,array:b,itemSize:c}}function n(t,i){switch(i){case Float32Array:return t.DT_FLOAT32;case Int8Array:return t.DT_INT8;case Int16Array:return t.DT_INT16;case Int32Array:return t.DT_INT32;case Uint8Array:return t.DT_UINT8;case Uint16Array:return t.DT_UINT16;case Uint32Array:return t.DT_UINT32}}}exports.DRACOLoader=L;