modern-canvas 0.2.0 → 0.2.2

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.
package/dist/index.d.cts CHANGED
@@ -474,6 +474,8 @@ declare class Rect2 {
474
474
  get y(): number;
475
475
  get left(): number;
476
476
  get top(): number;
477
+ get right(): number;
478
+ get bottom(): number;
477
479
  get width(): number;
478
480
  get height(): number;
479
481
  readonly end: Vector2;
@@ -483,6 +485,7 @@ declare class Rect2 {
483
485
  constructor(position: Vector2, size: Vector2);
484
486
  constructor(x: number, y: number, width: number, height: number);
485
487
  update(): this;
488
+ toArray(): number[];
486
489
  }
487
490
 
488
491
  interface Transform2DObject {
@@ -1350,7 +1353,7 @@ declare class ImageTexture extends Texture2D<HTMLImageElement> {
1350
1353
  }
1351
1354
 
1352
1355
  declare class PixelsTexture extends Texture2D<Texture2DPixelsSource> {
1353
- constructor(pixels?: ArrayLike<number> | ArrayBufferLike | ArrayBufferView | null, width?: number, height?: number);
1356
+ constructor(pixels?: number[] | ArrayBufferLike | ArrayBufferView | null, width?: number, height?: number);
1354
1357
  protected _updateProperty(key: PropertyKey, value: any, oldValue: any, declaration?: PropertyDeclaration): void;
1355
1358
  }
1356
1359
 
@@ -1540,11 +1543,30 @@ declare class Timeline extends Node {
1540
1543
  protected _process(delta: number): void;
1541
1544
  }
1542
1545
 
1546
+ interface RectangulableEventMap {
1547
+ updateRect: () => void;
1548
+ }
1549
+ interface Rectangulable {
1550
+ on: (<K extends keyof RectangulableEventMap>(type: K, listener: RectangulableEventMap[K], options?: EventListenerOptions) => this) & ((type: string, listener: EventListenerValue, options?: EventListenerOptions) => this);
1551
+ off: (<K extends keyof RectangulableEventMap>(type: K, listener: RectangulableEventMap[K], options?: EventListenerOptions) => this) & ((type: string, listener: EventListenerValue, options?: EventListenerOptions) => this);
1552
+ emit: (<K extends keyof RectangulableEventMap>(type: K, ...args: Parameters<RectangulableEventMap[K]>) => boolean) & ((type: string, ...args: any[]) => boolean);
1553
+ }
1554
+ interface Rectangulable {
1555
+ getRect: () => Rect2;
1556
+ }
1557
+
1558
+ interface ViewportEventMap extends NodeEventMap, RectangulableEventMap {
1559
+ }
1543
1560
  interface ViewportFramebuffer {
1544
1561
  texture: ViewportTexture;
1545
1562
  needsUpload: boolean;
1546
1563
  }
1547
- declare class Viewport extends Node {
1564
+ interface Viewport {
1565
+ on: (<K extends keyof ViewportEventMap>(type: K, listener: ViewportEventMap[K], options?: EventListenerOptions) => this) & ((type: string, listener: EventListenerValue, options?: EventListenerOptions) => this);
1566
+ off: (<K extends keyof ViewportEventMap>(type: K, listener: ViewportEventMap[K], options?: EventListenerOptions) => this) & ((type: string, listener: EventListenerValue, options?: EventListenerOptions) => this);
1567
+ emit: (<K extends keyof ViewportEventMap>(type: K, ...args: Parameters<ViewportEventMap[K]>) => boolean) & ((type: string, ...args: any[]) => boolean);
1568
+ }
1569
+ declare class Viewport extends Node implements Rectangulable {
1548
1570
  flipY: boolean;
1549
1571
  x: number;
1550
1572
  y: number;
@@ -1569,6 +1591,7 @@ declare class Viewport extends Node {
1569
1591
  redraw(renderer: WebGLRenderer, cb: () => void): boolean;
1570
1592
  activateWithCopy(renderer: WebGLRenderer, target: Viewport): void;
1571
1593
  render(renderer: WebGLRenderer, next?: () => void): void;
1594
+ getRect(): Rect2;
1572
1595
  toProjectionArray(transpose?: boolean): number[];
1573
1596
  }
1574
1597
 
@@ -1659,11 +1682,10 @@ declare class Node extends CoreObject {
1659
1682
  get parent(): Node | undefined;
1660
1683
  set parent(parent: Node | undefined);
1661
1684
  hasParent(): boolean;
1662
- getParent(): Node | undefined;
1663
- setParent(parent: Node | undefined): this;
1685
+ getParent<T extends Node = Node>(): T | undefined;
1686
+ setParent<T extends Node = Node>(parent: T | undefined): this;
1664
1687
  /** Children */
1665
1688
  protected _children: Node[];
1666
- get children(): Node[];
1667
1689
  get siblingIndex(): number;
1668
1690
  set siblingIndex(toIndex: number);
1669
1691
  get previousSibling(): Node | undefined;
@@ -1754,14 +1776,12 @@ declare class TimelineNode extends Node {
1754
1776
  }
1755
1777
 
1756
1778
  interface CanvasItemProperties extends TimelineNodeProperties {
1757
- visible: boolean;
1758
1779
  style: Partial<CanvasItemStyleProperties>;
1759
1780
  modulate: ColorValue;
1760
1781
  blendMode: WebGLBlendMode;
1761
- inheritSize: boolean;
1762
1782
  }
1763
1783
  interface CanvasItemEventMap extends TimelineNodeEventMap {
1764
- updateStyleProperty: (key: PropertyKey, newValue: any, oldValue: any, declaration?: PropertyDeclaration) => void;
1784
+ updateStyleProperty: (key: PropertyKey, value: any, oldValue: any, declaration?: PropertyDeclaration) => void;
1765
1785
  draw: () => void;
1766
1786
  }
1767
1787
  interface CanvasItem {
@@ -1770,23 +1790,18 @@ interface CanvasItem {
1770
1790
  emit: (<K extends keyof CanvasItemEventMap>(type: K, ...args: Parameters<CanvasItemEventMap[K]>) => boolean) & ((type: string, ...args: any[]) => boolean);
1771
1791
  }
1772
1792
  declare class CanvasItem extends TimelineNode {
1773
- visible: boolean;
1774
1793
  modulate?: ColorValue;
1775
1794
  blendMode?: WebGLBlendMode;
1776
- inheritSize?: boolean;
1777
1795
  protected _style: CanvasItemStyle;
1778
1796
  get style(): CanvasItemStyle;
1779
1797
  set style(style: CanvasItemStyle);
1780
1798
  /** @internal */
1781
1799
  opacity: number;
1782
- size: {
1783
- width: number;
1784
- height: number;
1785
- };
1800
+ visible: boolean;
1786
1801
  protected _parentOpacity?: number;
1802
+ protected _parentVisible?: boolean;
1787
1803
  protected _modulate: Color;
1788
1804
  protected _backgroundImage?: Texture2D;
1789
- _computedVisible: boolean;
1790
1805
  context: CanvasContext;
1791
1806
  protected _resetContext: boolean;
1792
1807
  protected _redrawing: boolean;
@@ -1799,10 +1814,10 @@ declare class CanvasItem extends TimelineNode {
1799
1814
  setProperties(properties?: Record<PropertyKey, any>): this;
1800
1815
  protected _updateProperty(key: PropertyKey, value: any, oldValue: any, declaration?: PropertyDeclaration): void;
1801
1816
  protected _updateStyleProperty(key: PropertyKey, value: any, oldValue: any, declaration?: PropertyDeclaration): void;
1802
- protected _updateSize(): void;
1803
1817
  protected _updateBackgroundColor(): void;
1804
1818
  protected _updateBackgroundImage(): Promise<void>;
1805
1819
  protected _updateOpacity(): void;
1820
+ protected _updateCurrentTime(force?: boolean): void;
1806
1821
  protected _updateVisible(): void;
1807
1822
  show(): void;
1808
1823
  hide(): void;
@@ -1909,13 +1924,13 @@ declare class Image2D extends Node2D {
1909
1924
 
1910
1925
  interface TextureRect2DProperties extends Node2DProperties {
1911
1926
  }
1912
- declare class TextureRect2D<T extends Texture2D = Texture2D> extends Node2D {
1927
+ declare class TextureRect2D<T extends Texture2D = Texture2D> extends Node2D implements Rectangulable {
1913
1928
  texture?: T;
1914
1929
  getRect(): Rect2;
1915
1930
  protected _drawContent(): void;
1916
1931
  }
1917
1932
 
1918
- interface Lottie2DProperties extends Node2DProperties {
1933
+ interface Lottie2DProperties extends TextureRect2DProperties {
1919
1934
  src: string;
1920
1935
  }
1921
1936
  declare class Lottie2D extends TextureRect2D {
@@ -1929,7 +1944,7 @@ declare class Lottie2D extends TextureRect2D {
1929
1944
  protected _process(delta: number): void;
1930
1945
  }
1931
1946
 
1932
- interface Text2DProperties extends Node2DProperties, Omit<TextOptions, 'style'> {
1947
+ interface Text2DProperties extends TextureRect2DProperties, Omit<TextOptions, 'style'> {
1933
1948
  split: boolean;
1934
1949
  }
1935
1950
  /**
@@ -1962,7 +1977,7 @@ declare class Text2D extends TextureRect2D<CanvasTexture> {
1962
1977
  protected _drawContent(): void;
1963
1978
  }
1964
1979
 
1965
- interface Video2DProperties extends Node2DProperties {
1980
+ interface Video2DProperties extends TextureRect2DProperties {
1966
1981
  src: string;
1967
1982
  }
1968
1983
  declare class Video2D extends TextureRect2D<VideoTexture> {
@@ -2005,8 +2020,6 @@ interface NormalizedKeyframe {
2005
2020
  type AnimationMode = 'parent' | 'sibling';
2006
2021
  interface AnimationProperties extends TimelineNodeProperties {
2007
2022
  animationMode: AnimationMode;
2008
- startTime: number;
2009
- duration: number;
2010
2023
  loop: boolean;
2011
2024
  keyframes: Keyframe[];
2012
2025
  }
@@ -2354,11 +2367,11 @@ declare class AudioWaveform extends Node2D {
2354
2367
  }
2355
2368
 
2356
2369
  type EffectMode = 'before' | 'parent' | 'children' | 'transition';
2357
- interface EffectOptions extends TimelineNodeProperties {
2358
- mode?: EffectMode;
2359
- glsl?: string;
2360
- glslSrc?: string;
2361
- material?: Material;
2370
+ interface EffectProperties extends TimelineNodeProperties {
2371
+ mode: EffectMode;
2372
+ glsl: string;
2373
+ glslSrc: string;
2374
+ material: Material;
2362
2375
  }
2363
2376
  interface EffectContext {
2364
2377
  redraw?: boolean;
@@ -2384,7 +2397,7 @@ declare class Effect extends TimelineNode {
2384
2397
  /** Temporary nodes for transition */
2385
2398
  protected _previousSibling?: Node;
2386
2399
  protected _nextSibling?: Node;
2387
- constructor(options?: EffectOptions);
2400
+ constructor(properties?: Partial<EffectProperties>, children?: Node[]);
2388
2401
  protected _updateProperty(key: PropertyKey, value: any, oldValue: any, declaration?: PropertyDeclaration): void;
2389
2402
  protected _treeEnter(tree: SceneTree): void;
2390
2403
  protected _treeExit(oldTree: SceneTree): void;
@@ -2508,13 +2521,13 @@ declare class LeftEraseEffect extends Effect {
2508
2521
  apply(renderer: WebGLRenderer): void;
2509
2522
  }
2510
2523
 
2511
- interface MaskEffectOptions extends EffectOptions {
2524
+ interface MaskEffectProperties extends EffectProperties {
2512
2525
  src?: string;
2513
2526
  }
2514
2527
  declare class MaskEffect extends Effect {
2515
2528
  texture?: Texture2D<ImageBitmap>;
2516
2529
  src: string;
2517
- constructor(options?: MaskEffectOptions);
2530
+ constructor(properties?: Partial<MaskEffectProperties>, children?: Node[]);
2518
2531
  load(): Promise<void>;
2519
2532
  protected _updateProperty(key: PropertyKey, value: any, oldValue: any, declaration?: PropertyDeclaration): void;
2520
2533
  apply(renderer: WebGLRenderer, source: Viewport, context: EffectContext): void;
@@ -2560,17 +2573,48 @@ declare class ZoomBlurEffect extends Effect {
2560
2573
  apply(renderer: WebGLRenderer, source: Viewport): void;
2561
2574
  }
2562
2575
 
2576
+ interface ControlEventMap extends CanvasItemEventMap, RectangulableEventMap {
2577
+ }
2563
2578
  interface ControlProperties extends CanvasItemProperties {
2564
2579
  }
2565
- declare class Control extends CanvasItem {
2580
+ interface Control {
2581
+ on: (<K extends keyof ControlEventMap>(type: K, listener: ControlEventMap[K], options?: EventListenerOptions) => this) & ((type: string, listener: EventListenerValue, options?: EventListenerOptions) => this);
2582
+ off: (<K extends keyof ControlEventMap>(type: K, listener: ControlEventMap[K], options?: EventListenerOptions) => this) & ((type: string, listener: EventListenerValue, options?: EventListenerOptions) => this);
2583
+ emit: (<K extends keyof ControlEventMap>(type: K, ...args: Parameters<ControlEventMap[K]>) => boolean) & ((type: string, ...args: any[]) => boolean);
2584
+ }
2585
+ declare class Control extends CanvasItem implements Rectangulable {
2566
2586
  constructor(properties?: Partial<ControlProperties>, children?: Node[]);
2587
+ protected _parented(parent: any): void;
2588
+ protected _unparented(oldParent: any): void;
2589
+ protected _parentUpdateRect(): void;
2567
2590
  protected _input(event: InputEvent, key: InputEventKey): void;
2591
+ protected _updateStyleProperty(key: PropertyKey, value: any, oldValue: any, declaration?: PropertyDeclaration): void;
2568
2592
  protected _guiInput(event: InputEvent, key: InputEventKey): void;
2569
2593
  getRect(): Rect2;
2570
2594
  }
2571
2595
 
2596
+ interface RangeProperties extends ControlProperties {
2597
+ allowGreater: boolean;
2598
+ allowLesser: boolean;
2599
+ page: number;
2600
+ minValue: number;
2601
+ maxValue: number;
2602
+ step: number;
2603
+ value: number;
2604
+ }
2605
+ declare class Range extends Control {
2606
+ allowGreater: boolean;
2607
+ allowLesser: boolean;
2608
+ page: number;
2609
+ minValue: number;
2610
+ maxValue: number;
2611
+ step: number;
2612
+ value: number;
2613
+ constructor(properties?: Partial<RangeProperties>, children?: Node[]);
2614
+ protected _updateProperty(key: PropertyKey, value: any, oldValue: any, declaration?: PropertyDeclaration): void;
2615
+ }
2616
+
2572
2617
  interface RulerProperties extends ControlProperties {
2573
- pixelRatio: number;
2574
2618
  offsetX: number;
2575
2619
  offsetY: number;
2576
2620
  thickness: number;
@@ -2579,9 +2623,9 @@ interface RulerProperties extends ControlProperties {
2579
2623
  markBackgroundColor: string;
2580
2624
  markColor: string;
2581
2625
  gap: number;
2626
+ scale: number;
2582
2627
  }
2583
2628
  declare class Ruler extends Control {
2584
- pixelRatio: number;
2585
2629
  offsetX: number;
2586
2630
  offsetY: number;
2587
2631
  thickness: number;
@@ -2590,23 +2634,45 @@ declare class Ruler extends Control {
2590
2634
  markBackgroundColor: string;
2591
2635
  markColor: string;
2592
2636
  gap: number;
2637
+ scale: number;
2593
2638
  texture: CanvasTexture;
2594
2639
  constructor(properties?: Partial<RulerProperties>, children?: Node[]);
2595
2640
  protected _updateProperty(key: PropertyKey, value: any, oldValue: any, declaration?: PropertyDeclaration): void;
2596
- protected _updateSize(): void;
2641
+ protected _updateStyleProperty(key: PropertyKey, value: any, oldValue: any, declaration?: PropertyDeclaration): void;
2597
2642
  protected _drawTexture(): void;
2598
- protected _drawContent(): void;
2643
+ protected _draw(): void;
2644
+ }
2645
+
2646
+ interface ScrollBarProperties extends RangeProperties {
2647
+ direction: 'vertical' | 'horizontal';
2648
+ }
2649
+ declare class ScrollBar extends Range {
2650
+ direction: 'vertical' | 'horizontal';
2651
+ constructor(properties?: Partial<ScrollBarProperties>, children?: Node[]);
2652
+ protected _updateStyleProperty(key: PropertyKey, value: any, oldValue: any, declaration?: PropertyDeclaration): void;
2653
+ protected _guiInput(event: InputEvent, key: InputEventKey): void;
2654
+ protected _draw(): void;
2655
+ }
2656
+
2657
+ interface XScrollBarProperties extends Omit<ScrollBarProperties, 'direction'> {
2658
+ }
2659
+ declare class XScrollBar extends ScrollBar {
2660
+ constructor(properties?: Partial<XScrollBarProperties>, children?: Node[]);
2599
2661
  }
2600
2662
 
2601
- interface ScrollBarProperties extends ControlProperties {
2663
+ interface YScrollBarProperties extends Omit<ScrollBarProperties, 'direction'> {
2602
2664
  }
2603
- declare class ScrollBar extends Control {
2665
+ declare class YScrollBar extends ScrollBar {
2666
+ constructor(properties?: Partial<YScrollBarProperties>, children?: Node[]);
2604
2667
  }
2605
2668
 
2606
2669
  interface ScalerEventMap extends NodeEventMap {
2607
2670
  updateScale: (scale: number) => void;
2608
2671
  }
2609
2672
  interface ScalerProperties extends NodeProperties {
2673
+ value: number;
2674
+ minValue: number;
2675
+ maxValue: number;
2610
2676
  }
2611
2677
  interface Scaler {
2612
2678
  on: (<K extends keyof ScalerEventMap>(type: K, listener: ScalerEventMap[K], options?: EventListenerOptions) => this) & ((type: string, listener: EventListenerValue, options?: EventListenerOptions) => this);
@@ -2614,9 +2680,9 @@ interface Scaler {
2614
2680
  emit: (<K extends keyof ScalerEventMap>(type: K, ...args: Parameters<ScalerEventMap[K]>) => boolean) & ((type: string, ...args: any[]) => boolean);
2615
2681
  }
2616
2682
  declare class Scaler extends Node {
2617
- scale: number;
2618
- min: number;
2619
- max: number;
2683
+ value: number;
2684
+ minValue: number;
2685
+ maxValue: number;
2620
2686
  get target(): CanvasItem | undefined;
2621
2687
  constructor(properties?: Partial<ScalerProperties>, children?: Node[]);
2622
2688
  protected _updateProperty(key: PropertyKey, value: any, oldValue: any, declaration?: PropertyDeclaration): void;
@@ -2686,14 +2752,14 @@ declare class Assets {
2686
2752
  }
2687
2753
  declare const assets: Assets;
2688
2754
 
2689
- declare class CanvasEditor extends CanvasItem {
2755
+ declare class CanvasEditor extends Control {
2690
2756
  name: string;
2691
2757
  hover: Node2D;
2692
2758
  selectionRect: Node2D;
2693
2759
  selector: Node2D;
2694
2760
  scaler: Scaler;
2695
- xScrollBar: ScrollBar;
2696
- yScrollBar: ScrollBar;
2761
+ xScrollBar: XScrollBar;
2762
+ yScrollBar: YScrollBar;
2697
2763
  drawboard: Node2D;
2698
2764
  ruler: Ruler;
2699
2765
  protected _pointerStart?: CanvasItemStyle;
@@ -2703,7 +2769,8 @@ declare class CanvasEditor extends CanvasItem {
2703
2769
  };
2704
2770
  selected?: CanvasItem;
2705
2771
  constructor();
2706
- protected _input(event: InputEvent, key: InputEventKey): void;
2772
+ protected _updateStyleProperty(key: PropertyKey, value: any, oldValue: any, declaration?: PropertyDeclaration): void;
2773
+ protected _guiInput(event: InputEvent, key: InputEventKey): void;
2707
2774
  protected _onPointerdown(e: PointerInputEvent): void;
2708
2775
  protected _onPointermove(e: PointerInputEvent): void;
2709
2776
  protected _onPointerup(): void;
@@ -2777,4 +2844,4 @@ interface RenderOptions {
2777
2844
  }
2778
2845
  declare function render(options: RenderOptions): Promise<HTMLCanvasElement>;
2779
2846
 
2780
- export { Animation, type AnimationMode, type AnimationProperties, type AssetHandler, Assets, Audio, AudioPipeline, AudioProcessor, AudioSpectrum, AudioWaveform, type AudioWaveformProperties, type Batchable2D, BlurEffect, type CanvasBatchable, CanvasContext, CanvasEditor, CanvasItem, type CanvasItemEventMap, type CanvasItemProperties, CanvasItemStyle, type CanvasItemStyleFilter, type CanvasItemStyleFilterKey, type CanvasItemStyleProperties, CanvasTexture, Color, ColorAdjustEffect, ColorFilterEffect, type ColorFilterEffectProperties, ColorMatrix, ColorOverlayEffect, ColorRemoveEffect, ColorReplaceEffect, ColorTexture, type ColorValue, Control, type ControlProperties, CoreObject, type CoreObjectEventMap, type CssFunction, type CssFunctionArg, type Cursor, DEG_TO_RAD, DEVICE_PIXEL_RATIO, type Easing, Effect, type EffectContext, EffectMaterial, type EffectMode, type EffectOptions, EmbossEffect, Engine, type EngineOptions, EventEmitter, type EventListener, type EventListenerOptions, type EventListenerValue, type FilledGraphics, FontLoader, Geometry, type GeometryOptions, GifLoader, GlitchEffect, GodrayEffect, Graphics2D, HTMLAudio, HTMLAudioContext, HTMLSound, type IAudioContext, type IAudioNode, IN_BROWSER, type IPlayOptions, Image2D, type Image2DProperties, Image2DResource, type ImageFrame, ImageTexture, type ImageTextureOptions, IndexBuffer, type IndexBufferOptions, Input, InputEvent, type InputEventKey, type InputEventMap, type InternalMode, JsonLoader, KawaseEffect, type Keyframe, LeftEraseEffect, Loader, Lottie2D, type Lottie2DProperties, LottieLoader, MainLoop, type MainLoopEventMap, type MaskColor, type MaskData, MaskEffect, type MaskEffectOptions, type MaskObject, type MaskRect, type Maskable, Material, type MaterialOptions, Matrix, Matrix2, Matrix3, Matrix4, type MatrixLike, type MatrixOperateOutput, MouseInputEvent, Node, Node2D, type Node2DProperties, type NodeEventMap, type NodeProperties, type NormalizedKeyframe, PI, PI_2, PixelateEffect, PixelsTexture, type PlatformAudio, type PlatformSound, type PointerEvents, PointerInputEvent, type ProcessMode, Projection2D, type PropertyDeclaration, QuadGeometry, QuadUvGeometry, RAD_TO_DEG, RawWeakMap, Rect2, RefCounted, type RefCountedEventMap, type RenderMode, type RenderOptions, type Renderable, Renderer, Resource, type ResourceEventMap, Ruler, type RulerProperties, SUPPORTS_AUDIO_CONTEXT, SUPPORTS_CLICK_EVENTS, SUPPORTS_CREATE_IMAGE_BITMAP, SUPPORTS_IMAGE_BITMAP, SUPPORTS_MOUSE_EVENTS, SUPPORTS_OFFLINE_AUDIO_CONTEXT, SUPPORTS_POINTER_EVENTS, SUPPORTS_RESIZE_OBSERVER, SUPPORTS_TOUCH_EVENTS, SUPPORTS_WEBGL2, SUPPORTS_WEBKIT_AUDIO_CONTEXT, SUPPORTS_WEBKIT_OFFLINE_AUDIO_CONTEXT, SUPPORTS_WEB_AUDIO, SUPPORTS_WHEEL_EVENTS, Scaler, type ScalerEventMap, type ScalerProperties, SceneTree, type SceneTreeEventMap, ScrollBar, type ScrollBarProperties, ShadowEffect, type StrokedGraphics, Text2D, type Text2DProperties, TextLoader, Texture2D, type Texture2DFilterMode, type Texture2DPixelsSource, type Texture2DSource, type Texture2DWrapMode, TextureLoader, TextureRect2D, type TextureRect2DProperties, Ticker, TiltShiftEffect, Timeline, type TimelineEventMap, TimelineNode, type TimelineNodeEventMap, type TimelineNodeProperties, type TimelineProperties, type TimingFunctions, Transform2D, type Transform2DObject, TwistEffect, UvGeometry, UvMaterial, Vector, Vector2, Vector3, Vector4, type VectorLike, type VectorOperateOutput, VertexAttribute, type VertexAttributeOptions, VertexBuffer, type VertexBufferOptions, Video2D, type Video2DProperties, VideoLoader, VideoTexture, type VideoTextureOptions, type VideoTextureSource, Viewport, type ViewportFramebuffer, ViewportTexture, WebAudio, WebAudioContext, WebGLBatch2DModule, WebGLBlendMode, type WebGLBufferMeta, WebGLBufferModule, type WebGLBufferOptions, type WebGLBufferTarget, type WebGLBufferUsage, type WebGLDrawMode, type WebGLDrawOptions, type WebGLExtensions, type WebGLFramebufferMeta, WebGLFramebufferModule, type WebGLFramebufferOptions, WebGLMaskModule, WebGLModule, type WebGLProgramMeta, WebGLProgramModule, type WebGLProgramOptions, WebGLRenderer, WebGLScissorModule, WebGLState, WebGLStateModule, WebGLStencilModule, type WebGLTarget, type WebGLTextureFilterMode, type WebGLTextureLocation, type WebGLTextureMeta, WebGLTextureModule, type WebGLTextureOptions, type WebGLTextureSource, type WebGLTextureTarget, type WebGLTextureWrapMode, WebGLVertexArrayModule, type WebGLVertexArrayObjectMeta, type WebGLVertexArrayObjectOptions, type WebGLVertexAttrib, type WebGLVertexAttribType, type WebGLViewport, WebGLViewportModule, WebSound, WheelInputEvent, ZoomBlurEffect, assets, clamp, createHTMLCanvas, createNode, crossOrigin, cubicBezier, curves, customNode, customNodes, defaultOptions, defineProperty, determineCrossOrigin, ease, easeIn, easeInOut, easeOut, getDeclarations, getDefaultCssPropertyValue, isCanvasElement, isElementNode, isImageElement, isPow2, isVideoElement, isWebgl2, lerp, linear, log2, mapWebGLBlendModes, nextPow2, nextTick, parseCssFunctions, parseCssProperty, property, protectedProperty, render, timingFunctions, uid };
2847
+ export { Animation, type AnimationMode, type AnimationProperties, type AssetHandler, Assets, Audio, AudioPipeline, AudioProcessor, AudioSpectrum, AudioWaveform, type AudioWaveformProperties, type Batchable2D, BlurEffect, type CanvasBatchable, CanvasContext, CanvasEditor, CanvasItem, type CanvasItemEventMap, type CanvasItemProperties, CanvasItemStyle, type CanvasItemStyleFilter, type CanvasItemStyleFilterKey, type CanvasItemStyleProperties, CanvasTexture, Color, ColorAdjustEffect, ColorFilterEffect, type ColorFilterEffectProperties, ColorMatrix, ColorOverlayEffect, ColorRemoveEffect, ColorReplaceEffect, ColorTexture, type ColorValue, Control, type ControlEventMap, type ControlProperties, CoreObject, type CoreObjectEventMap, type CssFunction, type CssFunctionArg, type Cursor, DEG_TO_RAD, DEVICE_PIXEL_RATIO, type Easing, Effect, type EffectContext, EffectMaterial, type EffectMode, type EffectProperties, EmbossEffect, Engine, type EngineOptions, EventEmitter, type EventListener, type EventListenerOptions, type EventListenerValue, type FilledGraphics, FontLoader, Geometry, type GeometryOptions, GifLoader, GlitchEffect, GodrayEffect, Graphics2D, HTMLAudio, HTMLAudioContext, HTMLSound, type IAudioContext, type IAudioNode, IN_BROWSER, type IPlayOptions, Image2D, type Image2DProperties, Image2DResource, type ImageFrame, ImageTexture, type ImageTextureOptions, IndexBuffer, type IndexBufferOptions, Input, InputEvent, type InputEventKey, type InputEventMap, type InternalMode, JsonLoader, KawaseEffect, type Keyframe, LeftEraseEffect, Loader, Lottie2D, type Lottie2DProperties, LottieLoader, MainLoop, type MainLoopEventMap, type MaskColor, type MaskData, MaskEffect, type MaskEffectProperties, type MaskObject, type MaskRect, type Maskable, Material, type MaterialOptions, Matrix, Matrix2, Matrix3, Matrix4, type MatrixLike, type MatrixOperateOutput, MouseInputEvent, Node, Node2D, type Node2DProperties, type NodeEventMap, type NodeProperties, type NormalizedKeyframe, PI, PI_2, PixelateEffect, PixelsTexture, type PlatformAudio, type PlatformSound, type PointerEvents, PointerInputEvent, type ProcessMode, Projection2D, type PropertyDeclaration, QuadGeometry, QuadUvGeometry, RAD_TO_DEG, Range, type RangeProperties, RawWeakMap, Rect2, RefCounted, type RefCountedEventMap, type RenderMode, type RenderOptions, type Renderable, Renderer, Resource, type ResourceEventMap, Ruler, type RulerProperties, SUPPORTS_AUDIO_CONTEXT, SUPPORTS_CLICK_EVENTS, SUPPORTS_CREATE_IMAGE_BITMAP, SUPPORTS_IMAGE_BITMAP, SUPPORTS_MOUSE_EVENTS, SUPPORTS_OFFLINE_AUDIO_CONTEXT, SUPPORTS_POINTER_EVENTS, SUPPORTS_RESIZE_OBSERVER, SUPPORTS_TOUCH_EVENTS, SUPPORTS_WEBGL2, SUPPORTS_WEBKIT_AUDIO_CONTEXT, SUPPORTS_WEBKIT_OFFLINE_AUDIO_CONTEXT, SUPPORTS_WEB_AUDIO, SUPPORTS_WHEEL_EVENTS, Scaler, type ScalerEventMap, type ScalerProperties, SceneTree, type SceneTreeEventMap, ScrollBar, type ScrollBarProperties, ShadowEffect, type StrokedGraphics, Text2D, type Text2DProperties, TextLoader, Texture2D, type Texture2DFilterMode, type Texture2DPixelsSource, type Texture2DSource, type Texture2DWrapMode, TextureLoader, TextureRect2D, type TextureRect2DProperties, Ticker, TiltShiftEffect, Timeline, type TimelineEventMap, TimelineNode, type TimelineNodeEventMap, type TimelineNodeProperties, type TimelineProperties, type TimingFunctions, Transform2D, type Transform2DObject, TwistEffect, UvGeometry, UvMaterial, Vector, Vector2, Vector3, Vector4, type VectorLike, type VectorOperateOutput, VertexAttribute, type VertexAttributeOptions, VertexBuffer, type VertexBufferOptions, Video2D, type Video2DProperties, VideoLoader, VideoTexture, type VideoTextureOptions, type VideoTextureSource, Viewport, type ViewportEventMap, type ViewportFramebuffer, ViewportTexture, WebAudio, WebAudioContext, WebGLBatch2DModule, WebGLBlendMode, type WebGLBufferMeta, WebGLBufferModule, type WebGLBufferOptions, type WebGLBufferTarget, type WebGLBufferUsage, type WebGLDrawMode, type WebGLDrawOptions, type WebGLExtensions, type WebGLFramebufferMeta, WebGLFramebufferModule, type WebGLFramebufferOptions, WebGLMaskModule, WebGLModule, type WebGLProgramMeta, WebGLProgramModule, type WebGLProgramOptions, WebGLRenderer, WebGLScissorModule, WebGLState, WebGLStateModule, WebGLStencilModule, type WebGLTarget, type WebGLTextureFilterMode, type WebGLTextureLocation, type WebGLTextureMeta, WebGLTextureModule, type WebGLTextureOptions, type WebGLTextureSource, type WebGLTextureTarget, type WebGLTextureWrapMode, WebGLVertexArrayModule, type WebGLVertexArrayObjectMeta, type WebGLVertexArrayObjectOptions, type WebGLVertexAttrib, type WebGLVertexAttribType, type WebGLViewport, WebGLViewportModule, WebSound, WheelInputEvent, XScrollBar, type XScrollBarProperties, YScrollBar, type YScrollBarProperties, ZoomBlurEffect, assets, clamp, createHTMLCanvas, createNode, crossOrigin, cubicBezier, curves, customNode, customNodes, defaultOptions, defineProperty, determineCrossOrigin, ease, easeIn, easeInOut, easeOut, getDeclarations, getDefaultCssPropertyValue, isCanvasElement, isElementNode, isImageElement, isPow2, isVideoElement, isWebgl2, lerp, linear, log2, mapWebGLBlendModes, nextPow2, nextTick, parseCssFunctions, parseCssProperty, property, protectedProperty, render, timingFunctions, uid };