@kayelaa/canvas 0.2.9 → 0.2.12

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.
@@ -1,4 +1,4 @@
1
- import { a as LeaGameII, b as LeaTimeout, c as LeaRendererII, d as LeaEventEmitter, V as Vector2, e as LeaTickerII, R as RectLeaEntity, f as LeaSceneII } from './lea-BaZkxo5L.cjs';
1
+ import { g as LeaGameII, l as LeaTimeout, h as LeaRendererII, f as LeaEventEmitter, V as Vector2, w as Substepper, k as LeaTickerII, u as RectLeaEntity, i as LeaSceneII, a1 as tinyUID$1 } from './lea-C5CjP5X2.js';
2
2
 
3
3
  /**
4
4
  * Base props that every Kayla functional component can receive.
@@ -16,7 +16,7 @@ import { a as LeaGameII, b as LeaTimeout, c as LeaRendererII, d as LeaEventEmitt
16
16
  */
17
17
  type FCProps = {
18
18
  key?: string;
19
- children?: KaylaElement<any>[];
19
+ children?: KaylaElement<any>[] | KaylaElement<any>;
20
20
  ref?: KaylaRef<KaylaInternals.KaylaRectEntity>;
21
21
  exportsRef?: KaylaRef<KaylaExports<any>>;
22
22
  } & Record<string, unknown>;
@@ -38,7 +38,7 @@ type FCExports = {} & Record<string, KaylaExportables>;
38
38
  * Returning `void` is allowed but produces no entities.
39
39
  */
40
40
  interface FC<Props extends FCProps = FCProps, Exports extends FCExports = FCExports> {
41
- (props: Props & {
41
+ (props: Props & FCProps & {
42
42
  ref?: KaylaElementRef;
43
43
  exportsRef?: KaylaRef<KaylaExports<Exports>>;
44
44
  }): KaylaElement<any>[] | KaylaElement<any> | void;
@@ -95,7 +95,7 @@ declare function createScene(name: string): KaylaInternals.KaylaScene;
95
95
  * const renderer = createRenderer(canvas);
96
96
  * renderer.start();
97
97
  */
98
- declare function createRenderer(canvas: HTMLCanvasElement): KaylaRenderer;
98
+ declare function createRenderer(canvas: HTMLCanvasElement, config?: ConstructorParameters<typeof KaylaInternals.KaylaRenderer>[1]): KaylaRenderer;
99
99
  /**
100
100
  * Creates a Kayla element descriptor (virtual representation of an entity/component).
101
101
  *
@@ -120,7 +120,7 @@ declare function createElement<Props extends FCProps>(fc: FC<Props>, props: Prop
120
120
  * @see {@link createElement}
121
121
  * @see {@link FC}
122
122
  */
123
- interface KaylaElement<Props extends FCProps> {
123
+ declare class KaylaElement<Props extends FCProps> {
124
124
  type: FC<Props>;
125
125
  props: Props;
126
126
  }
@@ -172,6 +172,8 @@ interface KaylaScene extends KaylaInternals.KaylaScene {
172
172
  */
173
173
  interface KaylaRenderer extends KaylaInternals.KaylaRenderer {
174
174
  }
175
+ interface KaylaSubstepper extends KaylaInternals.KaylaSubstepper {
176
+ }
175
177
  /**
176
178
  * A convenient facade for the rectangle entity associated with the current Kayla component.
177
179
  *
@@ -203,6 +205,13 @@ interface KaylaRect extends KaylaInternals.KaylaInternalRect {
203
205
  }
204
206
  declare namespace KaylaRect {
205
207
  function rawCollision(a: RawKaylaRect, b: RawKaylaRect): boolean;
208
+ interface RectProps extends FCProps {
209
+ cx: number;
210
+ cy: number;
211
+ width: number;
212
+ height: number;
213
+ color: string;
214
+ }
206
215
  function getCurrToBound(curr: Vector2, angleTo: number, bounds: RawKaylaRect): Vector2;
207
216
  function createRawRect(hint: Partial<RawKaylaRect> & {
208
217
  x?: number;
@@ -228,7 +237,7 @@ declare namespace KaylaInternals {
228
237
  *
229
238
  * @extends LeaGameII
230
239
  */
231
- class KaylaGame extends LeaGameII {
240
+ export class KaylaGame extends LeaGameII {
232
241
  #private;
233
242
  constructor(width: number, height: number, hz: typeof Infinity | number);
234
243
  /**
@@ -281,7 +290,7 @@ declare namespace KaylaInternals {
281
290
  *
282
291
  * @extends LeaRendererII
283
292
  */
284
- class KaylaRenderer extends LeaRendererII {
293
+ export class KaylaRenderer extends LeaRendererII {
285
294
  /**
286
295
  * The attached game instance (set via `attachTo`).
287
296
  */
@@ -304,7 +313,11 @@ declare namespace KaylaInternals {
304
313
  onPointerUp: (e: PointerEvent) => void;
305
314
  onPointerCancel: (e: PointerEvent) => void;
306
315
  onPointerMove: (e: PointerEvent) => void;
307
- constructor(canvas: HTMLCanvasElement);
316
+ isKaylaDisabled: boolean;
317
+ constructor(canvas: HTMLCanvasElement, config?: {
318
+ noAutoDraw?: boolean;
319
+ disableKaylaBehavior?: boolean;
320
+ });
308
321
  protected pointerPosUpdater(e: PointerEvent): void;
309
322
  protected onPointerAll(e: PointerEvent, action: KaylaPointerAction): void;
310
323
  static getClickType(e: PointerEvent): KaylaClickType;
@@ -318,6 +331,8 @@ declare namespace KaylaInternals {
318
331
  * @returns World-space position
319
332
  */
320
333
  pointerPosToWorldPos(mx: number, my: number): Vector2;
334
+ camToViewportPos(camX: number, camY: number): Vector2;
335
+ pointerPosToWorldPosOLD(mx: number, my: number): Vector2;
321
336
  /**
322
337
  * Returns the current pointer position in world coordinates.
323
338
  *
@@ -346,18 +361,28 @@ declare namespace KaylaInternals {
346
361
  */
347
362
  detach(): void;
348
363
  }
349
- class GlobalKayla {
364
+ const SubstepperSymbol: unique symbol;
365
+ class KaylaSubstepperClass {
366
+ #private;
367
+ constructor(val: Substepper);
368
+ [SubstepperSymbol](): Substepper;
369
+ get interval(): number;
370
+ }
371
+ export interface KaylaSubstepper extends KaylaSubstepperClass {
372
+ }
373
+ export class GlobalKayla {
350
374
  current?: KaylaFiber;
351
375
  saves: {
352
376
  current?: GlobalKayla["current"];
353
377
  }[];
354
378
  constructor();
355
- useTick(onTick: KaylaFiber["onTick"][number]): void;
379
+ useTick(onTick: KaylaFiber["onTick"][number], substepper?: KaylaSubstepper): void;
356
380
  usePaint(onPaint: KaylaFiber["onPaint"][number]): void;
357
381
  useEntity(): KaylaElementRef;
358
382
  useSelf<T>(init: () => T): T;
359
383
  useInitialization(init: KaylaFiber["onInits"][number]): void;
360
- useRect(): KaylaRect;
384
+ useRect(type?: "self" | "parent" | "disposableSelf"): KaylaRect;
385
+ useSubstep(interval: number | "default"): KaylaSubstepper;
361
386
  useFiber(): UnsafeKaylaFiber;
362
387
  useFiberControl(): KaylaFiberControl;
363
388
  useCurrentTicker(): LeaTickerII;
@@ -390,7 +415,7 @@ declare namespace KaylaInternals {
390
415
  withFiber: (fiber: KaylaFiber | null, level: "debug" | "info" | "warn" | "error", msg: string, ...extra: any[]) => void;
391
416
  };
392
417
  }
393
- class KaylaEvent {
418
+ export class KaylaEvent {
394
419
  #private;
395
420
  preventDefault(): void;
396
421
  isPrevented(): boolean;
@@ -410,7 +435,7 @@ declare namespace KaylaInternals {
410
435
  * @see {@link useState}
411
436
  * @see {@link useSelf} – recommended for most game loop data
412
437
  */
413
- class KaylaInternalState<T> {
438
+ export class KaylaInternalState<T> {
414
439
  #private;
415
440
  alwaysRecall: boolean;
416
441
  constructor(current: KaylaFiber<any>, initialValue?: T, { alwaysRecall }?: {
@@ -489,7 +514,7 @@ declare namespace KaylaInternals {
489
514
  *
490
515
  * @template T - Type of the referenced value
491
516
  */
492
- interface KaylaInternalRefIm<T> {
517
+ export interface KaylaInternalRefIm<T> {
493
518
  /**
494
519
  * The mutable value held by the ref.
495
520
  *
@@ -504,15 +529,16 @@ declare namespace KaylaInternals {
504
529
  get current(): T;
505
530
  set current(s: T);
506
531
  }
507
- class KaylaInternalRef<T> implements KaylaInternalRefIm<T> {
532
+ export class KaylaInternalRef<T> implements KaylaInternalRefIm<T> {
508
533
  #private;
509
534
  constructor(initialValue?: T);
510
535
  protected setSetter(setter: Reassignable<T>["reassignSelf"]): void;
511
536
  get current(): T;
512
537
  set current(s: T);
513
538
  }
514
- function createReassignableRef<T>(initial: T): KaylaRef<T>;
515
- interface KaylaFiberControlIm {
539
+ export function createReassignableRef<T>(initial: T): KaylaRef<T>;
540
+ export interface KaylaFiberControlIm {
541
+ toString(): string;
516
542
  /**
517
543
  * Current number of direct child fibers (readonly).
518
544
  * Reflects the length of `lastChildren` after the last reconciliation.
@@ -571,7 +597,7 @@ declare namespace KaylaInternals {
571
597
  /**
572
598
  * @private
573
599
  */
574
- class KaylaFiber<Props extends FCProps = {}, Exports extends FCExports = FCExports> implements KaylaFiberControlIm {
600
+ export class KaylaFiber<Props extends FCProps = {}, Exports extends FCExports = FCExports> implements KaylaFiberControlIm {
575
601
  state: KaylaState<any>[];
576
602
  refs: KaylaRef<unknown>[];
577
603
  global: GlobalKayla;
@@ -615,6 +641,7 @@ declare namespace KaylaInternals {
615
641
  onEffectDeps?: KaylaState<any>[] | undefined;
616
642
  onPaint: Array<(ctx: CanvasRenderingContext2D, event: KaylaEvent) => void>;
617
643
  onTick: Array<(deltaS: number, event: KaylaEvent) => void>;
644
+ onTickSubsteps: Array<KaylaSubstepper | null>;
618
645
  fc?: FC<any>;
619
646
  useStateCallIndex: number;
620
647
  useEffectCallIndex: number;
@@ -643,10 +670,12 @@ declare namespace KaylaInternals {
643
670
  captureDepStamps(): void;
644
671
  refresh(): void;
645
672
  updateChildren(fcChildren: KaylaFiber<Props>["children"], isRefreshCall: boolean): void;
673
+ toString(): string;
646
674
  lastChildren: KaylaFiber<any>[];
647
675
  isFirstUse: boolean;
648
676
  use(): void;
649
677
  unuse(): void;
678
+ getStringRepresentation(level?: number, pad?: string): string;
650
679
  }
651
680
  /**
652
681
  * The concrete LEA entity instance created for each Kayla component/fiber.
@@ -660,7 +689,7 @@ declare namespace KaylaInternals {
660
689
  * @extends LEA.RectLeaEntity
661
690
  * @internal
662
691
  */
663
- class KaylaRectEntity extends RectLeaEntity {
692
+ export class KaylaRectEntity extends RectLeaEntity {
664
693
  #private;
665
694
  flags: Map<string, unknown>;
666
695
  getRawRect(): KaylaRect.RawKaylaRect;
@@ -700,7 +729,7 @@ declare namespace KaylaInternals {
700
729
  * rect.y += 5;
701
730
  * ```
702
731
  */
703
- class KaylaInternalRect {
732
+ export class KaylaInternalRect {
704
733
  #private;
705
734
  constructor(fiber: KaylaFiber<any, any>);
706
735
  /**
@@ -844,7 +873,7 @@ declare namespace KaylaInternals {
844
873
  */
845
874
  get toWorld(): (localVec: Vector2) => Vector2;
846
875
  }
847
- class KaylaScene {
876
+ export class KaylaScene {
848
877
  #private;
849
878
  constructor(scene: LeaSceneII);
850
879
  getLayers(): Map<string, KaylaLayerInfo>;
@@ -900,7 +929,8 @@ declare namespace KaylaInternals {
900
929
  detach(): void;
901
930
  private tickHandler;
902
931
  }
903
- const singleGlobalInstance: GlobalKayla;
932
+ export const singleGlobalInstance: GlobalKayla;
933
+ export { };
904
934
  }
905
935
  declare namespace KaylaContext {
906
936
  interface ProviderProps<Context> extends FCProps {
@@ -1246,7 +1276,7 @@ declare const useInitialization: (init: KaylaInternals.KaylaFiber["onInits"][num
1246
1276
  *
1247
1277
  * @see {@link useEntity} — when you need the raw LEA entity methods/properties
1248
1278
  */
1249
- declare const useRect: () => KaylaRect;
1279
+ declare const useRect: (type?: "self" | "parent" | "disposableSelf") => KaylaRect;
1250
1280
  /**
1251
1281
  * Registers a function that runs on **every game tick** (update phase).
1252
1282
  *
@@ -1267,7 +1297,7 @@ declare const useRect: () => KaylaRect;
1267
1297
  * }
1268
1298
  * });
1269
1299
  */
1270
- declare const useTick: (onTick: KaylaInternals.KaylaFiber["onTick"][number]) => void;
1300
+ declare const useTick: (onTick: KaylaInternals.KaylaFiber["onTick"][number], substepper?: KaylaInternals.KaylaSubstepper) => void;
1271
1301
  /**
1272
1302
  * Registers a function that runs on **every render frame** (paint phase).
1273
1303
  *
@@ -1539,6 +1569,7 @@ declare const useCurrentTicker: () => LeaTickerII;
1539
1569
  * @see {@link createContext} — to create the context object
1540
1570
  */
1541
1571
  declare const useContext: <T>(context: KaylaContext<T>) => T;
1572
+ declare const useSubstep: (interval: number | "default") => KaylaInternals.KaylaSubstepper;
1542
1573
  /**
1543
1574
  * Special symbol used with `useRef` to get a stable reference to the current entity's underlying LEA `KaylaRectEntity`.
1544
1575
  *
@@ -1682,7 +1713,7 @@ interface KaylaFiberControl extends KaylaInternals.KaylaFiberControlIm {
1682
1713
  /**
1683
1714
  * Configuration for a custom Kayla hook created via `createUseHook`.
1684
1715
  */
1685
- interface KaylaCustomHookConfig<Return, Params = void> {
1716
+ interface KaylaCustomHookConfig<Return, Params extends any[] = []> {
1686
1717
  /**
1687
1718
  * Called when the hook is used (once if memoized, every render if not).
1688
1719
  * Receives the current fiber, global context, and any runtime params passed to the hook.
@@ -1692,13 +1723,16 @@ interface KaylaCustomHookConfig<Return, Params = void> {
1692
1723
  * @param params - Optional runtime parameters passed when calling the hook
1693
1724
  * @returns The value that the hook will return
1694
1725
  */
1695
- onUse: (unsafeFiber: UnsafeKaylaFiber, global: KaylaInternals.GlobalKayla, params: Params) => Return;
1726
+ onUse: (unsafeFiber: UnsafeKaylaFiber, global: KaylaInternals.GlobalKayla, ...params: Params) => Return;
1696
1727
  /**
1728
+ * **This Option is not going to work anymore.**
1729
+ *
1697
1730
  * Whether to memoize (cache) the result of onUse across component refreshes.
1698
1731
  * - `true` (default): runs onUse only once per entity lifetime → most common & performant
1699
1732
  * - `false`: runs onUse on every render → useful for hooks that must recompute frequently
1700
1733
  *
1701
1734
  * @default true
1735
+ * @deprecated
1702
1736
  */
1703
1737
  memoize?: boolean;
1704
1738
  /**
@@ -1728,7 +1762,7 @@ interface KaylaCustomHookConfig<Return, Params = void> {
1728
1762
  * });
1729
1763
  *
1730
1764
  * @example
1731
- * const useMoveSpeed = createUseHook<number, { baseSpeed: number }>({
1765
+ * const useMoveSpeed = createUseHook<number, [{ baseSpeed: number }]>({
1732
1766
  * name: "useMoveSpeed",
1733
1767
  * onUse: (fiber, global, { baseSpeed }) => {
1734
1768
  * const speed = useRef(baseSpeed);
@@ -1740,14 +1774,7 @@ interface KaylaCustomHookConfig<Return, Params = void> {
1740
1774
  * // usage
1741
1775
  * const speed = useMoveSpeed({ baseSpeed: 200 });
1742
1776
  */
1743
- declare function createUseHook<Return, Params = void>(config: KaylaCustomHookConfig<Return, Params>): (params?: Params) => Return;
1744
- declare namespace JSX {
1745
- const id = "kayla";
1746
- type Element = KaylaElement<any>;
1747
- interface IntrinsicElements {
1748
- }
1749
- type ElementType = FC<any>;
1750
- }
1777
+ declare function createUseHook<Return, Params extends any[] = []>(config: KaylaCustomHookConfig<Return, Params>): (...params: Params) => Return;
1751
1778
  /**
1752
1779
  * Configuration object for a single named rendering layer.
1753
1780
  * Created/managed via `<Layer>` components.
@@ -1782,8 +1809,6 @@ interface KaylaLayerProps extends FCProps {
1782
1809
  blend?: GlobalCompositeOperation;
1783
1810
  /** Toggle rendering of the entire layer */
1784
1811
  visible?: boolean;
1785
- /** Children rendered inside this layer's context */
1786
- children?: KaylaElement<any>[];
1787
1812
  /**
1788
1813
  * Transformation applied to rendering and input coordinates.
1789
1814
  * Use `KMatrix2D` to build cameras, zoom views, parallax layers, rotated UI panels, etc.
@@ -1850,6 +1875,39 @@ declare class KMatrix2D extends DOMMatrix {
1850
1875
  transformV(v: Vector2): Vector2;
1851
1876
  inverseV(v: Vector2): Vector2;
1852
1877
  }
1878
+ declare const safeValueRepresentation: (val: any, ind?: number) => string;
1879
+ declare namespace JSX {
1880
+ const id = "kayla";
1881
+ type Element = KaylaElement<any>;
1882
+ interface IntrinsicElements {
1883
+ }
1884
+ type ElementType = FC<any>;
1885
+ }
1886
+ declare const tinyUID: typeof tinyUID$1;
1887
+ declare const Rect: FC<KaylaRect.RectProps>;
1888
+ declare const Text: FC<{
1889
+ label: string | number;
1890
+ size: number;
1891
+ align?: "left" | "center" | "right";
1892
+ parentRect?: KaylaRect;
1893
+ color: string;
1894
+ x?: number;
1895
+ y?: number;
1896
+ ox?: number;
1897
+ oy?: number;
1898
+ }>;
1899
+ /**
1900
+ * This function is **NOT** a joke.
1901
+ *
1902
+ * "use" will execute the fiber's use mechanism (useEffect, useInitialization, etc) without triggering a full rerender.
1903
+ *
1904
+ * "unuse" will temporarily force a fiber to get removed as if it didn't exist next render.
1905
+ *
1906
+ * This hook MUST be called at the top level of a component function — never inside loops, conditions, nested functions, or callbacks.**
1907
+ * The call order of all hooks is **strictly fixed** across every refresh; reordering calls will corrupt internal state.
1908
+ *
1909
+ */
1910
+ declare function useUsing(type: "use" | "unuse"): void;
1853
1911
 
1854
1912
  type Kayla_ExportsOfFC<T extends FC<any, any>> = ExportsOfFC<T>;
1855
1913
  type Kayla_FC<Props extends FCProps = FCProps, Exports extends FCExports = FCExports> = FC<Props, Exports>;
@@ -1862,8 +1920,9 @@ type Kayla_KaylaClickConfig = KaylaClickConfig;
1862
1920
  type Kayla_KaylaClickType = KaylaClickType;
1863
1921
  type Kayla_KaylaContext<Context> = KaylaContext<Context>;
1864
1922
  declare const Kayla_KaylaContext: typeof KaylaContext;
1865
- type Kayla_KaylaCustomHookConfig<Return, Params = void> = KaylaCustomHookConfig<Return, Params>;
1923
+ type Kayla_KaylaCustomHookConfig<Return, Params extends any[] = []> = KaylaCustomHookConfig<Return, Params>;
1866
1924
  type Kayla_KaylaElement<Props extends FCProps> = KaylaElement<Props>;
1925
+ declare const Kayla_KaylaElement: typeof KaylaElement;
1867
1926
  type Kayla_KaylaElementRef = KaylaElementRef;
1868
1927
  type Kayla_KaylaExportables = KaylaExportables;
1869
1928
  type Kayla_KaylaExports<StateMap extends Record<string, KaylaExportables>> = KaylaExports<StateMap>;
@@ -1879,9 +1938,12 @@ type Kayla_KaylaRef<T> = KaylaRef<T>;
1879
1938
  type Kayla_KaylaRenderer = KaylaRenderer;
1880
1939
  type Kayla_KaylaScene = KaylaScene;
1881
1940
  type Kayla_KaylaState<T> = KaylaState<T>;
1941
+ type Kayla_KaylaSubstepper = KaylaSubstepper;
1882
1942
  declare const Kayla_Layer: typeof Layer;
1883
1943
  type Kayla_PropOfFC<T extends FC<any, any>> = PropOfFC<T>;
1884
1944
  type Kayla_Reassignable<T extends Record<any, any>> = Reassignable<T>;
1945
+ declare const Kayla_Rect: typeof Rect;
1946
+ declare const Kayla_Text: typeof Text;
1885
1947
  type Kayla_UnsafeKaylaFiber = UnsafeKaylaFiber;
1886
1948
  declare const Kayla_createContext: typeof createContext;
1887
1949
  declare const Kayla_createElement: typeof createElement;
@@ -1890,7 +1952,9 @@ declare const Kayla_createReassignableObject: typeof createReassignableObject;
1890
1952
  declare const Kayla_createRenderer: typeof createRenderer;
1891
1953
  declare const Kayla_createScene: typeof createScene;
1892
1954
  declare const Kayla_createUseHook: typeof createUseHook;
1955
+ declare const Kayla_safeValueRepresentation: typeof safeValueRepresentation;
1893
1956
  declare const Kayla_setLogLevel: typeof setLogLevel;
1957
+ declare const Kayla_tinyUID: typeof tinyUID;
1894
1958
  declare const Kayla_useClick: typeof useClick;
1895
1959
  declare const Kayla_useContext: typeof useContext;
1896
1960
  declare const Kayla_useCurrentGame: typeof useCurrentGame;
@@ -1914,10 +1978,12 @@ declare const Kayla_useRef: typeof useRef;
1914
1978
  declare const Kayla_useSelf: typeof useSelf;
1915
1979
  declare const Kayla_useShouldRefresh: typeof useShouldRefresh;
1916
1980
  declare const Kayla_useState: typeof useState;
1981
+ declare const Kayla_useSubstep: typeof useSubstep;
1917
1982
  declare const Kayla_useTick: typeof useTick;
1983
+ declare const Kayla_useUsing: typeof useUsing;
1918
1984
  declare const Kayla_useViewportEffect: typeof useViewportEffect;
1919
1985
  declare namespace Kayla {
1920
- export { type Kayla_ExportsOfFC as ExportsOfFC, type Kayla_FC as FC, type Kayla_FCExports as FCExports, type Kayla_FCProps as FCProps, Kayla_JSX as JSX, Kayla_KMatrix2D as KMatrix2D, type Kayla_KaylaClickConfig as KaylaClickConfig, type Kayla_KaylaClickType as KaylaClickType, Kayla_KaylaContext as KaylaContext, type Kayla_KaylaCustomHookConfig as KaylaCustomHookConfig, type Kayla_KaylaElement as KaylaElement, type Kayla_KaylaElementRef as KaylaElementRef, type Kayla_KaylaExportables as KaylaExportables, type Kayla_KaylaExports as KaylaExports, type Kayla_KaylaFiberControl as KaylaFiberControl, Kayla_KaylaFragment as KaylaFragment, type Kayla_KaylaGame as KaylaGame, Kayla_KaylaInternals as KaylaInternals, type Kayla_KaylaLayerInfo as KaylaLayerInfo, type Kayla_KaylaLayerProps as KaylaLayerProps, type Kayla_KaylaPointerAction as KaylaPointerAction, Kayla_KaylaRect as KaylaRect, type Kayla_KaylaRef as KaylaRef, type Kayla_KaylaRenderer as KaylaRenderer, type Kayla_KaylaScene as KaylaScene, type Kayla_KaylaState as KaylaState, Kayla_Layer as Layer, type Kayla_PropOfFC as PropOfFC, type Kayla_Reassignable as Reassignable, type Kayla_UnsafeKaylaFiber as UnsafeKaylaFiber, Kayla_createContext as createContext, Kayla_createElement as createElement, Kayla_createGame as createGame, Kayla_createReassignableObject as createReassignableObject, Kayla_createRenderer as createRenderer, Kayla_createScene as createScene, Kayla_createUseHook as createUseHook, selfSym as self, Kayla_setLogLevel as setLogLevel, Kayla_useClick as useClick, Kayla_useContext as useContext, Kayla_useCurrentGame as useCurrentGame, Kayla_useCurrentRenderer as useCurrentRenderer, Kayla_useCurrentScene as useCurrentScene, Kayla_useCurrentTicker as useCurrentTicker, Kayla_useDisposableRef as useDisposableRef, Kayla_useEffect as useEffect, Kayla_useEntity as useEntity, Kayla_useExports as useExports, Kayla_useFiber as useFiber, Kayla_useFiberControl as useFiberControl, Kayla_useGlobalClick as useGlobalClick, Kayla_useGlobalPointer as useGlobalPointer, Kayla_useInitialization as useInitialization, Kayla_useNextStack as useNextStack, Kayla_usePaint as usePaint, Kayla_usePointer as usePointer, Kayla_useRect as useRect, Kayla_useRef as useRef, Kayla_useSelf as useSelf, Kayla_useShouldRefresh as useShouldRefresh, Kayla_useState as useState, Kayla_useTick as useTick, Kayla_useViewportEffect as useViewportEffect };
1986
+ export { type Kayla_ExportsOfFC as ExportsOfFC, type Kayla_FC as FC, type Kayla_FCExports as FCExports, type Kayla_FCProps as FCProps, Kayla_JSX as JSX, Kayla_KMatrix2D as KMatrix2D, type Kayla_KaylaClickConfig as KaylaClickConfig, type Kayla_KaylaClickType as KaylaClickType, Kayla_KaylaContext as KaylaContext, type Kayla_KaylaCustomHookConfig as KaylaCustomHookConfig, Kayla_KaylaElement as KaylaElement, type Kayla_KaylaElementRef as KaylaElementRef, type Kayla_KaylaExportables as KaylaExportables, type Kayla_KaylaExports as KaylaExports, type Kayla_KaylaFiberControl as KaylaFiberControl, Kayla_KaylaFragment as KaylaFragment, type Kayla_KaylaGame as KaylaGame, Kayla_KaylaInternals as KaylaInternals, type Kayla_KaylaLayerInfo as KaylaLayerInfo, type Kayla_KaylaLayerProps as KaylaLayerProps, type Kayla_KaylaPointerAction as KaylaPointerAction, Kayla_KaylaRect as KaylaRect, type Kayla_KaylaRef as KaylaRef, type Kayla_KaylaRenderer as KaylaRenderer, type Kayla_KaylaScene as KaylaScene, type Kayla_KaylaState as KaylaState, type Kayla_KaylaSubstepper as KaylaSubstepper, Kayla_Layer as Layer, type Kayla_PropOfFC as PropOfFC, type Kayla_Reassignable as Reassignable, Kayla_Rect as Rect, Kayla_Text as Text, type Kayla_UnsafeKaylaFiber as UnsafeKaylaFiber, Kayla_createContext as createContext, Kayla_createElement as createElement, Kayla_createGame as createGame, Kayla_createReassignableObject as createReassignableObject, Kayla_createRenderer as createRenderer, Kayla_createScene as createScene, Kayla_createUseHook as createUseHook, Kayla_safeValueRepresentation as safeValueRepresentation, selfSym as self, Kayla_setLogLevel as setLogLevel, Kayla_tinyUID as tinyUID, Kayla_useClick as useClick, Kayla_useContext as useContext, Kayla_useCurrentGame as useCurrentGame, Kayla_useCurrentRenderer as useCurrentRenderer, Kayla_useCurrentScene as useCurrentScene, Kayla_useCurrentTicker as useCurrentTicker, Kayla_useDisposableRef as useDisposableRef, Kayla_useEffect as useEffect, Kayla_useEntity as useEntity, Kayla_useExports as useExports, Kayla_useFiber as useFiber, Kayla_useFiberControl as useFiberControl, Kayla_useGlobalClick as useGlobalClick, Kayla_useGlobalPointer as useGlobalPointer, Kayla_useInitialization as useInitialization, Kayla_useNextStack as useNextStack, Kayla_usePaint as usePaint, Kayla_usePointer as usePointer, Kayla_useRect as useRect, Kayla_useRef as useRef, Kayla_useSelf as useSelf, Kayla_useShouldRefresh as useShouldRefresh, Kayla_useState as useState, Kayla_useSubstep as useSubstep, Kayla_useTick as useTick, Kayla_useUsing as useUsing, Kayla_useViewportEffect as useViewportEffect };
1921
1987
  }
1922
1988
 
1923
- export { useGlobalPointer as $, createReassignableObject as A, createRenderer as B, createScene as C, createUseHook as D, type ExportsOfFC as E, type FCProps as F, selfSym as G, setLogLevel as H, useClick as I, JSX as J, Kayla as K, Layer as L, useContext as M, useCurrentGame as N, useCurrentRenderer as O, type PropOfFC as P, useCurrentScene as Q, type Reassignable as R, useCurrentTicker as S, useDisposableRef as T, type UnsafeKaylaFiber as U, useEffect as V, useEntity as W, useExports as X, useFiber as Y, useFiberControl as Z, useGlobalClick as _, type FCExports as a, useInitialization as a0, useNextStack as a1, usePaint as a2, usePointer as a3, useRect as a4, useRef as a5, useSelf as a6, useShouldRefresh as a7, useState as a8, useTick as a9, useViewportEffect as aa, type FC as b, KMatrix2D as c, type KaylaClickConfig as d, type KaylaClickType as e, KaylaContext as f, type KaylaCustomHookConfig as g, type KaylaElement as h, type KaylaElementRef as i, type KaylaExportables as j, type KaylaExports as k, type KaylaFiberControl as l, KaylaFragment as m, KaylaGame as n, KaylaInternals as o, type KaylaLayerInfo as p, type KaylaLayerProps as q, type KaylaPointerAction as r, KaylaRect as s, type KaylaRef as t, KaylaRenderer as u, KaylaScene as v, type KaylaState as w, createContext as x, createElement as y, createGame as z };
1989
+ export { useEntity as $, createElement as A, createGame as B, createReassignableObject as C, createRenderer as D, type ExportsOfFC as E, type FC as F, createScene as G, createUseHook as H, safeValueRepresentation as I, JSX as J, Kayla as K, Layer as L, selfSym as M, setLogLevel as N, tinyUID as O, type PropOfFC as P, useClick as Q, type Reassignable as R, useContext as S, Text as T, type UnsafeKaylaFiber as U, useCurrentGame as V, useCurrentRenderer as W, useCurrentScene as X, useCurrentTicker as Y, useDisposableRef as Z, useEffect as _, type FCExports as a, useExports as a0, useFiber as a1, useFiberControl as a2, useGlobalClick as a3, useGlobalPointer as a4, useInitialization as a5, useNextStack as a6, usePaint as a7, usePointer as a8, useRect as a9, useRef as aa, useSelf as ab, useShouldRefresh as ac, useState as ad, useSubstep as ae, useTick as af, useUsing as ag, useViewportEffect as ah, type FCProps as b, KMatrix2D as c, type KaylaClickConfig as d, type KaylaClickType as e, KaylaContext as f, type KaylaCustomHookConfig as g, KaylaElement as h, type KaylaElementRef as i, type KaylaExportables as j, type KaylaExports as k, type KaylaFiberControl as l, KaylaFragment as m, KaylaGame as n, KaylaInternals as o, type KaylaLayerInfo as p, type KaylaLayerProps as q, type KaylaPointerAction as r, KaylaRect as s, type KaylaRef as t, KaylaRenderer as u, KaylaScene as v, type KaylaState as w, type KaylaSubstepper as x, Rect as y, createContext as z };