aptechka 0.40.7 → 0.41.1

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 (110) hide show
  1. package/lib/accordion/index.d.ts +0 -1
  2. package/lib/animation/Animation.d.ts +0 -1
  3. package/lib/animation/Damped.d.ts +0 -1
  4. package/lib/animation/Tweened.d.ts +0 -1
  5. package/lib/attribute/index.d.ts +0 -1
  6. package/lib/canvas/index.d.ts +0 -1
  7. package/lib/class-linked-status/index.d.ts +0 -1
  8. package/lib/controls/AutoplayControls.d.ts +0 -1
  9. package/lib/controls/Controls.d.ts +0 -1
  10. package/lib/controls/DragControls.d.ts +0 -1
  11. package/lib/controls/KeyboardControls.d.ts +0 -1
  12. package/lib/controls/WheelControls.d.ts +0 -1
  13. package/lib/css-property/index.d.ts +0 -1
  14. package/lib/device/Viewport.d.ts +0 -1
  15. package/lib/element-resizer/react/index.d.ts +0 -1
  16. package/lib/element-resizer/vanilla/index.d.ts +0 -1
  17. package/lib/en3/En3Raycaster.d.ts +0 -1
  18. package/lib/en3/En3View.d.ts +0 -1
  19. package/lib/en3/en3.d.ts +0 -1
  20. package/lib/en3/index.cjs +2 -2
  21. package/lib/en3/index.js +91 -92
  22. package/lib/en3/utils/coverTexture.d.ts +0 -1
  23. package/lib/en3/utils/dispose.d.ts +0 -1
  24. package/lib/en3/utils/getCurrentViewport.d.ts +0 -1
  25. package/lib/en3/utils/traverseMaterials.d.ts +0 -1
  26. package/lib/en3/utils/traverseMeshes.d.ts +0 -1
  27. package/lib/intersector/react/index.d.ts +0 -1
  28. package/lib/intersector/vanilla/index.d.ts +0 -1
  29. package/lib/ladder/index.d.ts +0 -1
  30. package/lib/layout-box/index.d.ts +0 -1
  31. package/lib/media/index.d.ts +0 -1
  32. package/lib/media-elements/iframe/index.d.ts +0 -1
  33. package/lib/media-elements/image/index.d.ts +0 -1
  34. package/lib/media-elements/sequence/index.d.ts +0 -1
  35. package/lib/media-elements/source/index.d.ts +0 -1
  36. package/lib/media-elements/video/index.d.ts +0 -1
  37. package/lib/media-elements/youtube/index.d.ts +0 -1
  38. package/lib/morph/Link.d.ts +0 -1
  39. package/lib/morph/Morph.d.ts +16 -3
  40. package/lib/morph/index.cjs +1 -1
  41. package/lib/morph/index.js +176 -152
  42. package/lib/need_redo_tweaker/TweakerBooleanManagerElement.d.ts +0 -1
  43. package/lib/need_redo_tweaker/TweakerColorManagerElement.d.ts +0 -1
  44. package/lib/need_redo_tweaker/TweakerElement.d.ts +0 -1
  45. package/lib/need_redo_tweaker/TweakerFieldElement.d.ts +0 -1
  46. package/lib/need_redo_tweaker/TweakerFolderElement.d.ts +0 -1
  47. package/lib/need_redo_tweaker/TweakerLinkManagerElement.d.ts +0 -1
  48. package/lib/need_redo_tweaker/TweakerNumberManagerElement.d.ts +0 -1
  49. package/lib/need_redo_tweaker/TweakerSelectManagerElement.d.ts +0 -1
  50. package/lib/need_redo_tweaker/TweakerStoreManagerElement.d.ts +0 -1
  51. package/lib/need_redo_tweaker/TweakerStringManagerElement.d.ts +0 -1
  52. package/lib/need_redo_tweaker/element-constructor/ElementConstructor.d.ts +0 -1
  53. package/lib/need_redo_tweaker/element-constructor/createStylesheet.d.ts +0 -1
  54. package/lib/need_redo_tweaker/element-constructor/createTheme.d.ts +0 -1
  55. package/lib/need_redo_tweaker/element-constructor/tags.d.ts +0 -1
  56. package/lib/need_redo_tweaker/select/SelectHeadElement.d.ts +0 -1
  57. package/lib/need_redo_tweaker/select/SelectOptionElement.d.ts +0 -1
  58. package/lib/need_redo_tweaker/select/SelectUserElement.d.ts +0 -1
  59. package/lib/need_redo_tweaker/tweakerManagerConstructors.d.ts +0 -1
  60. package/lib/pointer/Pointer.d.ts +0 -1
  61. package/lib/pointer/PointerElement.d.ts +0 -1
  62. package/lib/popover/PopoverButtonElement.d.ts +0 -1
  63. package/lib/popover/PopoverElement.d.ts +0 -1
  64. package/lib/router/Link.d.ts +0 -1
  65. package/lib/router/Router.d.ts +0 -1
  66. package/lib/scroll/react/Scroll.d.ts +0 -1
  67. package/lib/scroll/react/ScrollBulletButtons.d.ts +0 -1
  68. package/lib/scroll/react/ScrollSegment.d.ts +0 -1
  69. package/lib/scroll/react/ScrollSetButton.d.ts +0 -1
  70. package/lib/scroll/react/ScrollStepButton.d.ts +0 -1
  71. package/lib/scroll/react/Scrollbar.d.ts +0 -1
  72. package/lib/scroll/vanilla/ScrollBulletButtonsElement.d.ts +0 -1
  73. package/lib/scroll/vanilla/ScrollButtonElement.d.ts +0 -1
  74. package/lib/scroll/vanilla/ScrollElement.d.ts +0 -1
  75. package/lib/scroll/vanilla/ScrollSection.d.ts +0 -1
  76. package/lib/scroll/vanilla/ScrollSegmentElement.d.ts +0 -1
  77. package/lib/scroll/vanilla/ScrollSetButtonElement.d.ts +0 -1
  78. package/lib/scroll/vanilla/ScrollStepButtonElement.d.ts +0 -1
  79. package/lib/scroll/vanilla/ScrollUserElement.d.ts +0 -1
  80. package/lib/scroll/vanilla/ScrollbarElement.d.ts +0 -1
  81. package/lib/scroll-entries/index.d.ts +0 -1
  82. package/lib/scroll-segment/index.d.ts +0 -1
  83. package/lib/slicer/SlicerElement.d.ts +0 -1
  84. package/lib/slicer/Word.d.ts +0 -1
  85. package/lib/source/SourceManager.d.ts +0 -1
  86. package/lib/source/SourceSet.d.ts +0 -1
  87. package/lib/source/index.cjs +1 -1
  88. package/lib/source/index.js +35 -35
  89. package/lib/store/react/useStore.d.ts +0 -1
  90. package/lib/store/vanilla/Composed.d.ts +0 -1
  91. package/lib/store/vanilla/Derived.d.ts +0 -1
  92. package/lib/store/vanilla/DerivedArray.d.ts +0 -1
  93. package/lib/store/vanilla/Resource.d.ts +0 -1
  94. package/lib/store/vanilla/StoreRegistry.d.ts +0 -1
  95. package/lib/studio/Outliner/File/index.d.ts +0 -1
  96. package/lib/studio/Outliner/Folder/index.d.ts +0 -1
  97. package/lib/studio/Outliner/index.d.ts +0 -1
  98. package/lib/studio/Studio/index.d.ts +0 -1
  99. package/lib/studio/Tweaker/index.d.ts +0 -1
  100. package/lib/studio/store.d.ts +0 -1
  101. package/lib/ticker/react/index.d.ts +0 -1
  102. package/lib/ticker/vanilla/index.d.ts +0 -1
  103. package/lib/utils/collisions.d.ts +0 -1
  104. package/lib/utils/coordinates.d.ts +0 -1
  105. package/lib/utils/events.d.ts +1 -1
  106. package/lib/utils/math.d.ts +0 -1
  107. package/lib/utils/ts-react-utility.d.ts +0 -1
  108. package/lib/window-resizer/react/index.d.ts +0 -1
  109. package/lib/window-resizer/vanilla/index.d.ts +0 -1
  110. package/package.json +4 -3
@@ -1,6 +1,5 @@
1
1
  import { Store } from '../store/vanilla';
2
2
  import { TweakerStoreManagerElement } from './TweakerStoreManagerElement';
3
-
4
3
  export declare class TweakerColorManagerElement extends TweakerStoreManagerElement<Store<string>> {
5
4
  constructor(...stores: Array<Store<string>>);
6
5
  }
@@ -1,6 +1,5 @@
1
1
  import { Store } from '../store/vanilla';
2
2
  import { TweakerFolderElement } from './TweakerFolderElement';
3
-
4
3
  export interface StoreBox {
5
4
  store: Store;
6
5
  remainingFolders: Array<string>;
@@ -1,5 +1,4 @@
1
1
  import { Store } from '../store/vanilla';
2
-
3
2
  export interface TweakerFieldParameters {
4
3
  store: Store<any>;
5
4
  }
@@ -1,7 +1,6 @@
1
1
  import { Store } from '../store/vanilla';
2
2
  import { TweakerFieldElement } from './TweakerFieldElement';
3
3
  import { StoreBox } from './TweakerElement';
4
-
5
4
  export interface TweakerFolderParameters {
6
5
  key: string;
7
6
  storeBox?: StoreBox;
@@ -1,6 +1,5 @@
1
1
  import { Store } from '../store/vanilla';
2
2
  import { TweakerStoreManagerElement } from './TweakerStoreManagerElement';
3
-
4
3
  export declare class TweakerLinkManagerElement extends TweakerStoreManagerElement<Store<string>> {
5
4
  constructor(...stores: Array<Store<string>>);
6
5
  }
@@ -1,6 +1,5 @@
1
1
  import { Store } from '../store/vanilla';
2
2
  import { TweakerStoreManagerElement } from './TweakerStoreManagerElement';
3
-
4
3
  export declare class TweakerNumberManagerElement extends TweakerStoreManagerElement<Store<Array<number> | number>> {
5
4
  #private;
6
5
  constructor(...stores: Array<Store<Array<number> | number>>);
@@ -1,6 +1,5 @@
1
1
  import { Store } from '../store/vanilla';
2
2
  import { TweakerStoreManagerElement } from './TweakerStoreManagerElement';
3
-
4
3
  export declare class TweakerSelectManagerElement extends TweakerStoreManagerElement<Store<string>> {
5
4
  constructor(...stores: Array<Store<string>>);
6
5
  }
@@ -1,5 +1,4 @@
1
1
  import { Store } from '../store/vanilla';
2
-
3
2
  export declare class TweakerStoreManagerElement<S extends Store<any>> extends HTMLElement {
4
3
  #private;
5
4
  constructor(...stores: Array<S>);
@@ -1,6 +1,5 @@
1
1
  import { Store } from '../store/vanilla';
2
2
  import { TweakerStoreManagerElement } from './TweakerStoreManagerElement';
3
-
4
3
  export declare class TweakerStringManagerElement<S extends Store<any> = Store<string>> extends TweakerStoreManagerElement<S> {
5
4
  constructor(...stores: Array<S>);
6
5
  }
@@ -1,7 +1,6 @@
1
1
  import { Store } from '../../store/vanilla';
2
2
  import { SplitFirst } from '../../utils';
3
3
  import { ConnectorConnectCallback, ConnectorDisconnectCallback } from '../../connector';
4
-
5
4
  export type StoreOr<T> = T | Store<T>;
6
5
  export type ElementConstructorTagNameMap = HTMLElementTagNameMap & SVGElementTagNameMap;
7
6
  export type ElementConstructorTagNames = keyof ElementConstructorTagNameMap;
@@ -1,3 +1,2 @@
1
1
  import { ElementConstructorJSS } from './ElementConstructor';
2
-
3
2
  export declare function createStylesheet<T extends ElementConstructorJSS>(object?: T): CSSStyleSheet;
@@ -1,5 +1,4 @@
1
1
  import { CamelToKebab } from '../../utils';
2
-
3
2
  export interface CreateThemeOptions<P extends string = ''> {
4
3
  prefix?: P;
5
4
  }
@@ -1,5 +1,4 @@
1
1
  import { ElementConstructorTagObject, ElementConstructor, ElementConstructorJSS, ElementConstructorTagNames } from './ElementConstructor';
2
-
3
2
  export declare function element<T extends ElementConstructorTagNames | Node = ElementConstructorTagNames>(node: T, object: ElementConstructorTagObject<T>): ElementConstructor<T>;
4
3
  export declare function element<T extends string = string>(node: T, object: ElementConstructorTagObject<Element>): ElementConstructor<Element>;
5
4
  export declare function a(object?: ElementConstructorTagObject<'a'>): ElementConstructor<"a", HTMLAnchorElement & SVGAElement>;
@@ -1,5 +1,4 @@
1
1
  import { SelectUserElement } from './SelectUserElement';
2
-
3
2
  export declare class SelectHeadElement extends SelectUserElement {
4
3
  #private;
5
4
  constructor();
@@ -1,5 +1,4 @@
1
1
  import { SelectUserElement } from './SelectUserElement';
2
-
3
2
  export declare class SelectOptionElement extends SelectUserElement {
4
3
  #private;
5
4
  constructor();
@@ -1,5 +1,4 @@
1
1
  import { SelectElement } from './SelectElement';
2
-
3
2
  export declare class SelectUserElement extends HTMLElement {
4
3
  #private;
5
4
  get selectElement(): SelectElement;
@@ -4,7 +4,6 @@ import { TweakerLinkManagerElement } from './TweakerLinkManagerElement';
4
4
  import { TweakerNumberManagerElement } from './TweakerNumberManagerElement';
5
5
  import { TweakerSelectManagerElement } from './TweakerSelectManagerElement';
6
6
  import { TweakerStringManagerElement } from './TweakerStringManagerElement';
7
-
8
7
  export declare const tweakerManagerConstructors: {
9
8
  boolean: typeof TweakerBooleanManagerElement;
10
9
  color: typeof TweakerColorManagerElement;
@@ -1,6 +1,5 @@
1
1
  import { Damped, DampedOptions } from '../animation';
2
2
  import { ElementOrSelector } from '../utils';
3
-
4
3
  export interface PointerParameters {
5
4
  element: ElementOrSelector<HTMLElement>;
6
5
  damped?: DampedOptions;
@@ -1,5 +1,4 @@
1
1
  import { Pointer } from './Pointer';
2
-
3
2
  export declare class PointerElement extends HTMLElement {
4
3
  #private;
5
4
  constructor();
@@ -1,6 +1,5 @@
1
1
  import { CSSProperty } from '../css-property';
2
2
  import { PopoverElement } from './PopoverElement';
3
-
4
3
  export type PopoverButtonType = 'open' | 'close' | 'toggle';
5
4
  export declare class PopoverButtonElement extends HTMLElement {
6
5
  #private;
@@ -1,6 +1,5 @@
1
1
  import { CSSProperty } from '../css-property';
2
2
  import { Store } from '../store/vanilla';
3
-
4
3
  export interface PopoverEvents {
5
4
  popoverTriggered: CustomEvent<{
6
5
  trigger: any;
@@ -1,5 +1,4 @@
1
1
  import { Router } from './Router';
2
-
3
2
  export declare class Link {
4
3
  #private;
5
4
  constructor(router: Router, element: HTMLElement);
@@ -1,7 +1,6 @@
1
1
  import { splitPath, ChangeHistoryAction } from '../utils';
2
2
  import { Route, RouteModule } from './Route';
3
3
  import { Link } from './Link';
4
-
5
4
  export interface RouterPreprocessorEntry {
6
5
  path: ReturnType<typeof splitPath>;
7
6
  resolve: () => void;
@@ -1,7 +1,6 @@
1
1
  import { ScrollElement } from '../vanilla';
2
2
  import { ReactCustomElement } from '../../utils';
3
3
  import { RefObject } from 'react';
4
-
5
4
  export type ReactScroll = ReactCustomElement<ScrollElement>;
6
5
  export declare function useScroll(): RefObject<ScrollElement>;
7
6
  export declare const Scroll: import('react').ForwardRefExoticComponent<Omit<ReactScroll, "ref"> & import('react').RefAttributes<ScrollElement>>;
@@ -1,6 +1,5 @@
1
1
  import { ScrollBulletButtonsElement } from '../vanilla';
2
2
  import { ReactCustomElement } from '../../utils';
3
-
4
3
  export type ReactScrollBulletButtons = ReactCustomElement<ScrollBulletButtonsElement>;
5
4
  export declare const ScrollBulletButtons: React.FC<ReactScrollBulletButtons>;
6
5
  declare global {
@@ -1,6 +1,5 @@
1
1
  import { ScrollSegmentElement } from '../vanilla';
2
2
  import { ReactCustomElement } from '../../utils';
3
-
4
3
  export type ReactScrollSegment = ReactCustomElement<ScrollSegmentElement, {
5
4
  onCapture?: () => void;
6
5
  onCaptureFromStart?: () => void;
@@ -1,6 +1,5 @@
1
1
  import { ScrollBehaviour, ScrollSetButtonElement } from '../vanilla';
2
2
  import { ReactCustomElement } from '../../utils';
3
-
4
3
  export type ReactScrollSetButton = ReactCustomElement<ScrollSetButtonElement, {
5
4
  index?: number | string;
6
5
  behaviour?: ScrollBehaviour;
@@ -1,6 +1,5 @@
1
1
  import { ScrollBehaviour, ScrollStepButtonElement } from '../vanilla';
2
2
  import { ReactCustomElement } from '../../utils';
3
-
4
3
  export type ReactScrollStepButton = ReactCustomElement<ScrollStepButtonElement, {
5
4
  step?: number | string;
6
5
  behaviour?: ScrollBehaviour;
@@ -1,6 +1,5 @@
1
1
  import { ScrollbarElement } from '../vanilla';
2
2
  import { ReactCustomElement } from '../../utils';
3
-
4
3
  export type ReactScrollbar = ReactCustomElement<ScrollbarElement>;
5
4
  export declare const Scrollbar: React.FC<ReactScrollbar>;
6
5
  declare global {
@@ -1,5 +1,4 @@
1
1
  import { ScrollUserElement } from './ScrollUserElement';
2
-
3
2
  export declare class ScrollBulletButtonsElement extends ScrollUserElement {
4
3
  #private;
5
4
  protected connectedCallback(): void;
@@ -1,6 +1,5 @@
1
1
  import { ScrollUserElement } from './ScrollUserElement';
2
2
  import { ScrollSetOptions } from './ScrollElement';
3
-
4
3
  export declare abstract class ScrollButtonElement extends ScrollUserElement {
5
4
  #private;
6
5
  constructor();
@@ -3,7 +3,6 @@ import { Store } from '../../store/vanilla';
3
3
  import { Axes2D } from '../../utils';
4
4
  import { CSSProperty } from '../../css-property';
5
5
  import { ScrollSection } from './ScrollSection';
6
-
7
6
  export type ScrollLine = 'start' | 'end' | null;
8
7
  export interface ScrollEvents {
9
8
  scrollSectionsChange: CustomEvent;
@@ -1,5 +1,4 @@
1
1
  import { ScrollElement } from './ScrollElement';
2
-
3
2
  export type ScrollSectionMark = 'current' | 'previous' | 'next' | null;
4
3
  export type ScrollSectionMarkChangeDetail = {
5
4
  mark: ScrollSectionMark;
@@ -1,5 +1,4 @@
1
1
  import { ScrollSegmentElement as ScrollSeg } from '../../scroll-segment';
2
-
3
2
  export declare class ScrollSegmentElement extends ScrollSeg {
4
3
  protected connectedCallback(): void;
5
4
  }
@@ -1,6 +1,5 @@
1
1
  import { ScrollButtonElement } from './ScrollButtonElement';
2
2
  import { ScrollSetOptions } from './ScrollElement';
3
-
4
3
  export declare class ScrollSetButtonElement extends ScrollButtonElement {
5
4
  #private;
6
5
  protected handleClick(options: ScrollSetOptions): void;
@@ -1,6 +1,5 @@
1
1
  import { ScrollButtonElement } from './ScrollButtonElement';
2
2
  import { ScrollSetOptions } from './ScrollElement';
3
-
4
3
  export declare class ScrollStepButtonElement extends ScrollButtonElement {
5
4
  #private;
6
5
  protected handleClick(options: ScrollSetOptions): void;
@@ -1,5 +1,4 @@
1
1
  import { ScrollElement } from './ScrollElement';
2
-
3
2
  export declare class ScrollUserElement extends HTMLElement {
4
3
  #private;
5
4
  get scrollElement(): ScrollElement;
@@ -1,5 +1,4 @@
1
1
  import { ScrollUserElement } from './ScrollUserElement';
2
-
3
2
  export declare class ScrollbarElement extends ScrollUserElement {
4
3
  #private;
5
4
  constructor();
@@ -1,6 +1,5 @@
1
1
  import { Notifier } from '../notifier';
2
2
  import { Axes2D } from '../utils';
3
-
4
3
  export interface ScrollEntry {
5
4
  axis: Axes2D;
6
5
  value: number;
@@ -1,7 +1,6 @@
1
1
  import { CSSProperty } from '../css-property';
2
2
  import { Store } from '../store/vanilla';
3
3
  import { Damped } from '../animation';
4
-
5
4
  export interface ScrollSegmentEvents {
6
5
  scrollSegmentCapture: CustomEvent;
7
6
  scrollSegmentCaptureFromStart: CustomEvent;
@@ -1,6 +1,5 @@
1
1
  import { Word } from './Word.js';
2
2
  import { Letter } from './Letter.js';
3
-
4
3
  export declare class SlicerElement extends HTMLElement {
5
4
  #private;
6
5
  get wordsArray(): Word[];
@@ -1,5 +1,4 @@
1
1
  import { Letter } from './Letter';
2
-
3
2
  export interface WordParameters {
4
3
  index: number;
5
4
  text: string;
@@ -1,7 +1,6 @@
1
1
  import { Store } from '../store/vanilla';
2
2
  import { Source } from './SourceClass';
3
3
  import { SourceSetOptions } from './SourceSet';
4
-
5
4
  export type SourceManagerSourceSet = string | Array<string>;
6
5
  export interface SourceManagerParameters {
7
6
  srcset: SourceManagerSourceSet;
@@ -1,5 +1,4 @@
1
1
  import { Source } from './SourceClass';
2
-
3
2
  export type SourceSetMediaSources = Array<Source>;
4
3
  export type SourceSetMediaBucket = Map<string, SourceSetMediaSources>;
5
4
  export interface SourceSetOptions {
@@ -1 +1 @@
1
- "use strict";var b=r=>{throw TypeError(r)};var k=(r,n,t)=>n.has(r)||b("Cannot "+t);var e=(r,n,t)=>(k(r,n,"read from private field"),t?t.call(r):n.get(r)),u=(r,n,t)=>n.has(r)?b("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(r):n.set(r,t),s=(r,n,t,h)=>(k(r,n,"write to private field"),h?h.call(r,t):n.set(r,t),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("../order/index.cjs"),B=require("../window-resizer/vanilla/index.cjs"),z=require("../Store-C2J4Q87x.cjs");var w,p,M,d,a,o,f;class I{constructor(n){u(this,w);u(this,p);u(this,M);u(this,d);u(this,a);u(this,o);u(this,f);s(this,w,n);const t=n.split(".");s(this,p,t.length>1?t.slice(0,-1).join("."):t.join("."));const h=/\d+x/g,y=t.find(l=>l.match(h));s(this,M,y?parseInt(y):1);const c=/\d+max/g,g=/\d+min/g,S=/\d+mar/g,E=/\d+mir/g,$=t.find(l=>l.match(c)),i=t.find(l=>l.match(g)),m=t.find(l=>l.match(S)),V=t.find(l=>l.match(E));m?(s(this,a,parseInt(m)),s(this,o,"max"),s(this,d,`(max-aspect-ratio: ${e(this,a)})`)):V?(s(this,a,parseInt(V)),s(this,o,"max"),s(this,d,`(min-aspect-ratio: ${e(this,a)})`)):$?(s(this,a,parseInt($)),s(this,o,"max"),s(this,d,`(max-width: ${e(this,a)}px)`)):i?(s(this,a,parseInt(i)),s(this,d,`(min-width: ${e(this,a)}px)`),s(this,o,"min")):(s(this,a,0),s(this,d,`(min-width: ${e(this,a)}px)`),s(this,o,"min")),s(this,p,e(this,p).replace(`.${e(this,a)}${e(this,o)}`,"")),s(this,f,t[t.length-1]===e(this,p)?"":"."+t[t.length-1]),s(this,f,e(this,f).replace(`.${e(this,a)}${e(this,o)}`,""))}get url(){return e(this,w)}get name(){return e(this,p)}get density(){return e(this,M)}get query(){return e(this,d)}get extension(){return e(this,f)}get queryType(){return e(this,o)}get queryValue(){return e(this,a)}}w=new WeakMap,p=new WeakMap,M=new WeakMap,d=new WeakMap,a=new WeakMap,o=new WeakMap,f=new WeakMap;var x;class T{constructor(n,t){u(this,x);s(this,x,new Map);const h=(t==null?void 0:t.mediaBuckets)!==!1,y=typeof n=="string"?h?n.trim().split(",").map(i=>i.trim()).filter(i=>!!i):[n]:n,c=[];y.forEach(i=>{const m=new I(i);c.push([m.query,m])});const g=c.filter(i=>i[1].queryType.includes("max")).sort((i,m)=>m[1].queryValue-i[1].queryValue),S=c.filter(i=>i[1].queryType.includes("min")&&i[1].queryValue!==0).sort((i,m)=>i[1].queryValue-m[1].queryValue),E=c.filter(i=>i[0]==="(min-width: 0px)");(E?[...E,...g,...S]:[...g,...S]).forEach(i=>{e(this,x).has(i[0])||e(this,x).set(i[0],[]),e(this,x).get(i[0]).push(i[1])})}get mediaBuckets(){return e(this,x)}}x=new WeakMap;var R,q;class A extends z.Store{constructor(t){super(void 0);u(this,R);u(this,q,()=>{let t;e(this,R).mediaBuckets.forEach((c,g)=>{matchMedia(g).matches&&(t=c)});let h,y=0;t==null||t.forEach(c=>{c.density>y&&c.density<=Math.max(devicePixelRatio,1)&&(y=c.density,h=c)}),t!=null&&t.length&&!h&&(h=t[0]),this.current=h});s(this,R,new T(t.srcset,t.sourceSetOptions))}close(){super.close(),this.disconnect()}connect(){B.windowResizer.subscribe(e(this,q),_.RESIZE_ORDER.SOURCE_MANAGER),e(this,q).call(this)}disconnect(){B.windowResizer.unsubscribe(e(this,q))}}R=new WeakMap,q=new WeakMap;exports.Source=I;exports.SourceManager=A;exports.SourceSet=T;
1
+ "use strict";var b=r=>{throw TypeError(r)};var k=(r,n,t)=>n.has(r)||b("Cannot "+t);var e=(r,n,t)=>(k(r,n,"read from private field"),t?t.call(r):n.get(r)),u=(r,n,t)=>n.has(r)?b("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(r):n.set(r,t),i=(r,n,t,h)=>(k(r,n,"write to private field"),h?h.call(r,t):n.set(r,t),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("../order/index.cjs"),B=require("../window-resizer/vanilla/index.cjs"),z=require("../Store-C2J4Q87x.cjs");var w,l,M,f,a,o,y;class I{constructor(n){u(this,w);u(this,l);u(this,M);u(this,f);u(this,a);u(this,o);u(this,y);i(this,w,n);const t=n.split(".");i(this,l,t.length>1?t.slice(0,-1).join("."):t.join("."));const h=/\d+x/g,m=t.find(p=>p.match(h));i(this,M,m?parseInt(m):1),m&&i(this,l,e(this,l).replace(`.${m}`,""));const c=/\d+max/g,g=/\d+min/g,S=/\d+mar/g,$=/\d+mir/g,E=t.find(p=>p.match(c)),s=t.find(p=>p.match(g)),d=t.find(p=>p.match(S)),V=t.find(p=>p.match($));d?(i(this,a,parseInt(d)),i(this,o,"max"),i(this,f,`(max-aspect-ratio: ${e(this,a)})`)):V?(i(this,a,parseInt(V)),i(this,o,"max"),i(this,f,`(min-aspect-ratio: ${e(this,a)})`)):E?(i(this,a,parseInt(E)),i(this,o,"max"),i(this,f,`(max-width: ${e(this,a)}px)`)):s?(i(this,a,parseInt(s)),i(this,f,`(min-width: ${e(this,a)}px)`),i(this,o,"min")):(i(this,a,0),i(this,f,`(min-width: ${e(this,a)}px)`),i(this,o,"min")),i(this,l,e(this,l).replace(`.${e(this,a)}${e(this,o)}`,"")),i(this,y,t[t.length-1]===e(this,l)?"":"."+t[t.length-1]),i(this,y,e(this,y).replace(`.${e(this,a)}${e(this,o)}`,""))}get url(){return e(this,w)}get name(){return e(this,l)}get density(){return e(this,M)}get query(){return e(this,f)}get extension(){return e(this,y)}get queryType(){return e(this,o)}get queryValue(){return e(this,a)}}w=new WeakMap,l=new WeakMap,M=new WeakMap,f=new WeakMap,a=new WeakMap,o=new WeakMap,y=new WeakMap;var x;class T{constructor(n,t){u(this,x);i(this,x,new Map);const h=(t==null?void 0:t.mediaBuckets)!==!1,m=typeof n=="string"?h?n.trim().split(",").map(s=>s.trim()).filter(s=>!!s):[n]:n,c=[];m.forEach(s=>{const d=new I(s);c.push([d.query,d])});const g=c.filter(s=>s[1].queryType.includes("max")).sort((s,d)=>d[1].queryValue-s[1].queryValue),S=c.filter(s=>s[1].queryType.includes("min")&&s[1].queryValue!==0).sort((s,d)=>s[1].queryValue-d[1].queryValue),$=c.filter(s=>s[0]==="(min-width: 0px)");($?[...$,...g,...S]:[...g,...S]).forEach(s=>{e(this,x).has(s[0])||e(this,x).set(s[0],[]),e(this,x).get(s[0]).push(s[1])})}get mediaBuckets(){return e(this,x)}}x=new WeakMap;var R,q;class A extends z.Store{constructor(t){super(void 0);u(this,R);u(this,q,()=>{let t;e(this,R).mediaBuckets.forEach((c,g)=>{matchMedia(g).matches&&(t=c)});let h,m=0;t==null||t.forEach(c=>{c.density>m&&c.density<=Math.max(devicePixelRatio,1)&&(m=c.density,h=c)}),t!=null&&t.length&&!h&&(h=t[0]),this.current=h});i(this,R,new T(t.srcset,t.sourceSetOptions))}close(){super.close(),this.disconnect()}connect(){B.windowResizer.subscribe(e(this,q),_.RESIZE_ORDER.SOURCE_MANAGER),e(this,q).call(this)}disconnect(){B.windowResizer.unsubscribe(e(this,q))}}R=new WeakMap,q=new WeakMap;exports.Source=I;exports.SourceManager=A;exports.SourceSet=T;
@@ -2,30 +2,30 @@ var B = (r) => {
2
2
  throw TypeError(r);
3
3
  };
4
4
  var I = (r, n, t) => n.has(r) || B("Cannot " + t);
5
- var e = (r, n, t) => (I(r, n, "read from private field"), t ? t.call(r) : n.get(r)), m = (r, n, t) => n.has(r) ? B("Cannot add the same private member more than once") : n instanceof WeakSet ? n.add(r) : n.set(r, t), i = (r, n, t, c) => (I(r, n, "write to private field"), c ? c.call(r, t) : n.set(r, t), t);
5
+ var e = (r, n, t) => (I(r, n, "read from private field"), t ? t.call(r) : n.get(r)), m = (r, n, t) => n.has(r) ? B("Cannot add the same private member more than once") : n instanceof WeakSet ? n.add(r) : n.set(r, t), s = (r, n, t, c) => (I(r, n, "write to private field"), c ? c.call(r, t) : n.set(r, t), t);
6
6
  import { RESIZE_ORDER as A } from "../order/index.js";
7
7
  import { windowResizer as b } from "../window-resizer/vanilla/index.js";
8
8
  import { S } from "../Store-Cm3LPXlx.js";
9
- var w, p, E, d, h, o, y;
9
+ var w, u, $, f, h, o, y;
10
10
  class T {
11
11
  constructor(n) {
12
12
  m(this, w);
13
- m(this, p);
14
- m(this, E);
15
- m(this, d);
13
+ m(this, u);
14
+ m(this, $);
15
+ m(this, f);
16
16
  m(this, h);
17
17
  m(this, o);
18
18
  m(this, y);
19
- i(this, w, n);
19
+ s(this, w, n);
20
20
  const t = n.split(".");
21
- i(this, p, t.length > 1 ? t.slice(0, -1).join(".") : t.join("."));
22
- const c = /\d+x/g, x = t.find((l) => l.match(c));
23
- i(this, E, x ? parseInt(x) : 1);
24
- const a = /\d+max/g, g = /\d+min/g, R = /\d+mar/g, $ = /\d+mir/g, V = t.find((l) => l.match(a)), s = t.find((l) => l.match(g)), u = t.find((l) => l.match(R)), k = t.find((l) => l.match($));
25
- u ? (i(this, h, parseInt(u)), i(this, o, "max"), i(this, d, `(max-aspect-ratio: ${e(this, h)})`)) : k ? (i(this, h, parseInt(k)), i(this, o, "max"), i(this, d, `(min-aspect-ratio: ${e(this, h)})`)) : V ? (i(this, h, parseInt(V)), i(this, o, "max"), i(this, d, `(max-width: ${e(this, h)}px)`)) : s ? (i(this, h, parseInt(s)), i(this, d, `(min-width: ${e(this, h)}px)`), i(this, o, "min")) : (i(this, h, 0), i(this, d, `(min-width: ${e(this, h)}px)`), i(this, o, "min")), i(this, p, e(this, p).replace(
21
+ s(this, u, t.length > 1 ? t.slice(0, -1).join(".") : t.join("."));
22
+ const c = /\d+x/g, l = t.find((p) => p.match(c));
23
+ s(this, $, l ? parseInt(l) : 1), l && s(this, u, e(this, u).replace(`.${l}`, ""));
24
+ const a = /\d+max/g, g = /\d+min/g, M = /\d+mar/g, R = /\d+mir/g, V = t.find((p) => p.match(a)), i = t.find((p) => p.match(g)), d = t.find((p) => p.match(M)), k = t.find((p) => p.match(R));
25
+ d ? (s(this, h, parseInt(d)), s(this, o, "max"), s(this, f, `(max-aspect-ratio: ${e(this, h)})`)) : k ? (s(this, h, parseInt(k)), s(this, o, "max"), s(this, f, `(min-aspect-ratio: ${e(this, h)})`)) : V ? (s(this, h, parseInt(V)), s(this, o, "max"), s(this, f, `(max-width: ${e(this, h)}px)`)) : i ? (s(this, h, parseInt(i)), s(this, f, `(min-width: ${e(this, h)}px)`), s(this, o, "min")) : (s(this, h, 0), s(this, f, `(min-width: ${e(this, h)}px)`), s(this, o, "min")), s(this, u, e(this, u).replace(
26
26
  `.${e(this, h)}${e(this, o)}`,
27
27
  ""
28
- )), i(this, y, t[t.length - 1] === e(this, p) ? "" : "." + t[t.length - 1]), i(this, y, e(this, y).replace(
28
+ )), s(this, y, t[t.length - 1] === e(this, u) ? "" : "." + t[t.length - 1]), s(this, y, e(this, y).replace(
29
29
  `.${e(this, h)}${e(this, o)}`,
30
30
  ""
31
31
  ));
@@ -34,13 +34,13 @@ class T {
34
34
  return e(this, w);
35
35
  }
36
36
  get name() {
37
- return e(this, p);
37
+ return e(this, u);
38
38
  }
39
39
  get density() {
40
- return e(this, E);
40
+ return e(this, $);
41
41
  }
42
42
  get query() {
43
- return e(this, d);
43
+ return e(this, f);
44
44
  }
45
45
  get extension() {
46
46
  return e(this, y);
@@ -52,43 +52,43 @@ class T {
52
52
  return e(this, h);
53
53
  }
54
54
  }
55
- w = new WeakMap(), p = new WeakMap(), E = new WeakMap(), d = new WeakMap(), h = new WeakMap(), o = new WeakMap(), y = new WeakMap();
56
- var f;
55
+ w = new WeakMap(), u = new WeakMap(), $ = new WeakMap(), f = new WeakMap(), h = new WeakMap(), o = new WeakMap(), y = new WeakMap();
56
+ var x;
57
57
  class O {
58
58
  constructor(n, t) {
59
- m(this, f);
60
- i(this, f, /* @__PURE__ */ new Map());
61
- const c = (t == null ? void 0 : t.mediaBuckets) !== !1, x = typeof n == "string" ? c ? n.trim().split(",").map((s) => s.trim()).filter((s) => !!s) : [n] : n, a = [];
62
- x.forEach((s) => {
63
- const u = new T(s);
64
- a.push([u.query, u]);
59
+ m(this, x);
60
+ s(this, x, /* @__PURE__ */ new Map());
61
+ const c = (t == null ? void 0 : t.mediaBuckets) !== !1, l = typeof n == "string" ? c ? n.trim().split(",").map((i) => i.trim()).filter((i) => !!i) : [n] : n, a = [];
62
+ l.forEach((i) => {
63
+ const d = new T(i);
64
+ a.push([d.query, d]);
65
65
  });
66
- const g = a.filter((s) => s[1].queryType.includes("max")).sort((s, u) => u[1].queryValue - s[1].queryValue), R = a.filter((s) => s[1].queryType.includes("min") && s[1].queryValue !== 0).sort((s, u) => s[1].queryValue - u[1].queryValue), $ = a.filter((s) => s[0] === "(min-width: 0px)");
67
- ($ ? [...$, ...g, ...R] : [...g, ...R]).forEach((s) => {
68
- e(this, f).has(s[0]) || e(this, f).set(s[0], []), e(this, f).get(s[0]).push(s[1]);
66
+ const g = a.filter((i) => i[1].queryType.includes("max")).sort((i, d) => d[1].queryValue - i[1].queryValue), M = a.filter((i) => i[1].queryType.includes("min") && i[1].queryValue !== 0).sort((i, d) => i[1].queryValue - d[1].queryValue), R = a.filter((i) => i[0] === "(min-width: 0px)");
67
+ (R ? [...R, ...g, ...M] : [...g, ...M]).forEach((i) => {
68
+ e(this, x).has(i[0]) || e(this, x).set(i[0], []), e(this, x).get(i[0]).push(i[1]);
69
69
  });
70
70
  }
71
71
  get mediaBuckets() {
72
- return e(this, f);
72
+ return e(this, x);
73
73
  }
74
74
  }
75
- f = new WeakMap();
76
- var M, q;
75
+ x = new WeakMap();
76
+ var E, q;
77
77
  class _ extends S {
78
78
  constructor(t) {
79
79
  super(void 0);
80
- m(this, M);
80
+ m(this, E);
81
81
  m(this, q, () => {
82
82
  let t;
83
- e(this, M).mediaBuckets.forEach((a, g) => {
83
+ e(this, E).mediaBuckets.forEach((a, g) => {
84
84
  matchMedia(g).matches && (t = a);
85
85
  });
86
- let c, x = 0;
86
+ let c, l = 0;
87
87
  t == null || t.forEach((a) => {
88
- a.density > x && a.density <= Math.max(devicePixelRatio, 1) && (x = a.density, c = a);
88
+ a.density > l && a.density <= Math.max(devicePixelRatio, 1) && (l = a.density, c = a);
89
89
  }), t != null && t.length && !c && (c = t[0]), this.current = c;
90
90
  });
91
- i(this, M, new O(t.srcset, t.sourceSetOptions));
91
+ s(this, E, new O(t.srcset, t.sourceSetOptions));
92
92
  }
93
93
  close() {
94
94
  super.close(), this.disconnect();
@@ -100,7 +100,7 @@ class _ extends S {
100
100
  b.unsubscribe(e(this, q));
101
101
  }
102
102
  }
103
- M = new WeakMap(), q = new WeakMap();
103
+ E = new WeakMap(), q = new WeakMap();
104
104
  export {
105
105
  T as Source,
106
106
  _ as SourceManager,
@@ -1,3 +1,2 @@
1
1
  import { Store } from '../vanilla';
2
-
3
2
  export declare function useStore<T>(store: Store<T>): readonly [T, (value: T) => void];
@@ -1,5 +1,4 @@
1
1
  import { Store, StoreOptions } from './Store';
2
-
3
2
  export type ComposedCallback<ComposedType> = () => ComposedType;
4
3
  export declare class Composed<ComposedType> extends Store<ComposedType> {
5
4
  #private;
@@ -1,5 +1,4 @@
1
1
  import { Store, StoreOptions } from './Store';
2
-
3
2
  export type DerivedCallback<SourceType, Type, Return = Type> = (value: SourceType) => Return;
4
3
  export declare class Derived<Type, SourceType> extends Store<Type> {
5
4
  #private;
@@ -1,5 +1,4 @@
1
1
  import { Store, StoreOptions } from './Store';
2
-
3
2
  export type DerivedArrayCallback<Type, SourceType extends Array<any>, Return = Type> = (value: SourceType[number], index: number, arr: SourceType) => Return;
4
3
  export declare class DerivedArray<Type, SourceType extends Array<any>> extends Store<Array<Type>> {
5
4
  #private;
@@ -1,5 +1,4 @@
1
1
  import { Store, StoreOptions } from './Store';
2
-
3
2
  export type ResourceFetcher<StoreType = unknown> = () => Promise<StoreType>;
4
3
  export interface ResourceOptions<StoreType> extends StoreOptions<StoreType> {
5
4
  manualControl?: boolean;
@@ -1,5 +1,4 @@
1
1
  import { Store } from './Store';
2
-
3
2
  export interface StoreRegistryStateStore {
4
3
  name: string;
5
4
  value: any;
@@ -1,6 +1,5 @@
1
1
  import { default as React } from 'react';
2
2
  import { Store } from '../../../store/vanilla';
3
-
4
3
  export interface FileProps {
5
4
  name: string;
6
5
  path: string;
@@ -1,6 +1,5 @@
1
1
  import { default as React } from 'react';
2
2
  import { FileProps } from '../File';
3
-
4
3
  export interface FolderProps {
5
4
  name: string;
6
5
  path: string;
@@ -1,3 +1,2 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  export declare const Outliner: React.FC;
@@ -1,3 +1,2 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  export declare const Studio: React.FC;
@@ -1,5 +1,4 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  export interface TweakerProps {
4
3
  }
5
4
  export declare const Tweaker: React.FC<TweakerProps>;
@@ -1,3 +1,2 @@
1
1
  import { Store } from '../store/vanilla';
2
-
3
2
  export declare const activeStore: Store<Store<any> | null>;
@@ -1,6 +1,5 @@
1
1
  import { Ref } from 'react';
2
2
  import { TickerAddOptions, TickerCallback } from '../vanilla';
3
-
4
3
  export declare function useTicker(callback: TickerCallback, { maxFPS, order, culling, }?: Omit<TickerAddOptions, 'culling'> & {
5
4
  culling?: TickerAddOptions['culling'] | Ref<HTMLElement>;
6
5
  }): void;
@@ -1,5 +1,4 @@
1
1
  import { ElementOrSelector } from '../../utils';
2
-
3
2
  export interface TickerCallbackEntry {
4
3
  timestamp: number;
5
4
  subscribeTimestamp: number;
@@ -1,4 +1,3 @@
1
1
  import { Circle, Dot2D, Rect2D } from './ts-shape.js';
2
-
3
2
  export declare function dotRectCollision(dot: Dot2D, rect: Rect2D): boolean;
4
3
  export declare function dotCircleCollision(dot: Dot2D, circle: Circle): boolean;
@@ -1,5 +1,4 @@
1
1
  import { Dimension2D, Dot2D, Rect2D } from './ts-shape.js';
2
-
3
2
  export declare function screenToCartesian(screenCoordinate: Dot2D, container: Pick<Rect2D, 'width' | 'height'>, normalize?: boolean): {
4
3
  x: number;
5
4
  y: number;