modern-canvas 0.4.20 → 0.4.22

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.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { Font } from 'modern-font';
2
2
  import { AnimationItem } from 'lottie-web';
3
3
  import { AnyColor, Colord } from 'colord';
4
+ import { StyleDeclaration, ShadowDeclaration, OutlineDeclaration, ImageSource, ImageSourceRect } from 'modern-idoc';
4
5
  import { Path2D, LineCap, LineJoin, LineStyle } from 'modern-path2d';
5
- import { StyleDeclaration, ImageSource, ImageSourceRect } from 'modern-idoc';
6
6
  import { Node as Node$1, Direction } from 'yoga-layout/load';
7
7
  import { TextOptions, Text, MeasureResult } from 'modern-text';
8
8
 
@@ -1891,11 +1891,36 @@ declare class Node2D extends CanvasItem {
1891
1891
  protected _process(delta: number): void;
1892
1892
  }
1893
1893
 
1894
+ declare class BaseElement2DOutline extends CoreObject {
1895
+ parent: BaseElement2D;
1896
+ color: string;
1897
+ width: number;
1898
+ style: 'dashed' | 'solid' | string;
1899
+ image?: string;
1900
+ opacity: number;
1901
+ constructor(parent: BaseElement2D);
1902
+ protected _updateProperty(key: PropertyKey, value: any, oldValue: any, declaration?: PropertyDeclaration): void;
1903
+ updateEffect(): void;
1904
+ }
1905
+
1906
+ declare class BaseElement2DShadow extends CoreObject {
1907
+ parent: BaseElement2D;
1908
+ color: string;
1909
+ blur: number;
1910
+ offsetY: number;
1911
+ offsetX: number;
1912
+ constructor(parent: BaseElement2D);
1913
+ protected _updateProperty(key: PropertyKey, value: any, oldValue: any, declaration?: PropertyDeclaration): void;
1914
+ updateEffect(): void;
1915
+ }
1916
+
1894
1917
  interface BaseElement2DEventMap extends CanvasItemEventMap {
1895
1918
  updateStyleProperty: (key: PropertyKey, value: any, oldValue: any, declaration?: PropertyDeclaration) => void;
1896
1919
  }
1897
1920
  interface BaseElement2DProperties extends Node2DProperties {
1898
1921
  style: Partial<BaseElement2DStyleProperties>;
1922
+ shadow: Partial<ShadowDeclaration>;
1923
+ outline: Partial<OutlineDeclaration>;
1899
1924
  modulate: ColorValue;
1900
1925
  blendMode: WebGLBlendMode;
1901
1926
  }
@@ -1910,10 +1935,11 @@ declare class BaseElement2D extends Node2D implements Rectangulable {
1910
1935
  protected _style: BaseElement2DStyle;
1911
1936
  get style(): BaseElement2DStyle;
1912
1937
  set style(style: BaseElement2DStyle);
1938
+ readonly shadow: BaseElement2DShadow;
1939
+ readonly outline: BaseElement2DOutline;
1913
1940
  constructor(properties?: Partial<BaseElement2DProperties>, nodes?: Node[]);
1914
1941
  setProperties(properties?: Record<PropertyKey, any>): this;
1915
1942
  protected _updateStyleProperty(key: PropertyKey, value: any, oldValue: any, declaration?: PropertyDeclaration): void;
1916
- protected _updateBoxShadow(): void;
1917
1943
  protected _updateMaskImage(): void;
1918
1944
  protected _updateBackgroundColor(): void;
1919
1945
  protected _updateBackgroundImage(): Promise<void>;
@@ -2548,14 +2574,16 @@ declare class AudioWaveform extends Element2D {
2548
2574
  protected _drawSrc(): void;
2549
2575
  }
2550
2576
 
2551
- declare class BlurEffect extends Effect {
2552
- static materialX: Material;
2553
- static materialY: Material;
2554
- strength: number;
2555
- quality: number;
2556
- apply(renderer: WebGLRenderer, source: Viewport): void;
2577
+ interface ColorAdjustEffectProperties extends EffectProperties {
2578
+ saturation: number;
2579
+ contrast: number;
2580
+ brightness: number;
2581
+ red: number;
2582
+ green: number;
2583
+ blue: number;
2584
+ alpha: number;
2585
+ gamma: number;
2557
2586
  }
2558
-
2559
2587
  declare class ColorAdjustEffect extends Effect {
2560
2588
  static material: Material;
2561
2589
  saturation: number;
@@ -2566,6 +2594,7 @@ declare class ColorAdjustEffect extends Effect {
2566
2594
  blue: number;
2567
2595
  alpha: number;
2568
2596
  gamma: number;
2597
+ constructor(properties?: Partial<ColorAdjustEffectProperties>, children?: Node[]);
2569
2598
  apply(renderer: WebGLRenderer, source: Viewport): void;
2570
2599
  }
2571
2600
 
@@ -2573,44 +2602,107 @@ interface ColorFilterEffectProperties {
2573
2602
  filter?: string;
2574
2603
  }
2575
2604
  declare class ColorFilterEffect extends Effect {
2576
- filter: string;
2605
+ static material: Material;
2606
+ filter?: string;
2577
2607
  protected _colorMatrix: ColorMatrix;
2578
- constructor(properties?: Partial<ColorFilterEffectProperties>);
2608
+ constructor(properties?: Partial<ColorFilterEffectProperties>, children?: Node[]);
2579
2609
  apply(renderer: WebGLRenderer, source: Viewport): void;
2580
- static material: Material;
2581
2610
  }
2582
2611
 
2612
+ interface ColorOverlayEffectProperties extends EffectProperties {
2613
+ colors: ColorValue[];
2614
+ alpha: number;
2615
+ }
2583
2616
  declare class ColorOverlayEffect extends Effect {
2584
2617
  static material: Material;
2585
2618
  colors: ColorValue[];
2586
2619
  alpha: number;
2587
2620
  protected _color: Color;
2621
+ constructor(properties?: Partial<ColorOverlayEffectProperties>, children?: Node[]);
2588
2622
  apply(renderer: WebGLRenderer, source: Viewport): void;
2589
2623
  }
2590
2624
 
2625
+ interface ColorRemoveEffectProperties extends EffectProperties {
2626
+ colors: ColorValue[];
2627
+ epsilon: number;
2628
+ }
2591
2629
  declare class ColorRemoveEffect extends Effect {
2592
2630
  static material: Material;
2593
2631
  colors: ColorValue[];
2594
2632
  epsilon: number;
2595
2633
  protected _color: Color;
2634
+ constructor(properties?: Partial<ColorRemoveEffectProperties>, children?: Node[]);
2596
2635
  apply(renderer: WebGLRenderer, source: Viewport): void;
2597
2636
  }
2598
2637
 
2638
+ interface ColorReplaceEffectProperties extends EffectProperties {
2639
+ colors: ColorValue[];
2640
+ epsilon: number;
2641
+ }
2599
2642
  declare class ColorReplaceEffect extends Effect {
2600
2643
  static material: Material;
2601
2644
  colors: ColorValue[][];
2602
2645
  epsilon: number;
2603
2646
  protected _color: Color;
2647
+ constructor(properties?: Partial<ColorReplaceEffectProperties>, children?: Node[]);
2604
2648
  apply(renderer: WebGLRenderer, source: Viewport): void;
2605
2649
  }
2606
2650
 
2607
- declare class EmbossEffect extends Effect {
2651
+ interface GaussianBlurEffectProperties extends EffectProperties {
2652
+ strength: number;
2653
+ quality: number;
2654
+ }
2655
+ declare class GaussianBlurEffect extends Effect {
2656
+ static materialX: Material;
2657
+ static materialY: Material;
2608
2658
  strength: number;
2609
- constructor(strength?: number);
2659
+ quality: number;
2660
+ constructor(properties?: Partial<GaussianBlurEffectProperties>, children?: Node[]);
2661
+ apply(renderer: WebGLRenderer, source: Viewport): void;
2662
+ }
2663
+
2664
+ interface DropShadowEffectProperties extends EffectProperties {
2665
+ color: ColorValue;
2666
+ blur: number;
2667
+ offsetX: number;
2668
+ offsetY: number;
2669
+ shadowOnly: boolean;
2670
+ }
2671
+ declare class DropShadowEffect extends Effect {
2672
+ static material: Material;
2673
+ color: ColorValue;
2674
+ blur: number;
2675
+ offsetX: number;
2676
+ offsetY: number;
2677
+ shadowOnly: boolean;
2678
+ blurEffect: GaussianBlurEffect;
2679
+ viewport3: Viewport;
2680
+ protected _color: Color;
2681
+ constructor(properties?: Partial<DropShadowEffectProperties>, children?: Node[]);
2610
2682
  apply(renderer: WebGLRenderer, source: Viewport): void;
2683
+ }
2684
+
2685
+ interface EmbossEffectProperties extends EffectProperties {
2686
+ strength: number;
2687
+ }
2688
+ declare class EmbossEffect extends Effect {
2611
2689
  static material: Material;
2690
+ strength: number;
2691
+ constructor(properties?: Partial<EmbossEffectProperties>, children?: Node[]);
2692
+ apply(renderer: WebGLRenderer, source: Viewport): void;
2612
2693
  }
2613
2694
 
2695
+ interface GlitchEffectProperties extends EffectProperties {
2696
+ slices: number;
2697
+ sampleSize: number;
2698
+ offset: number;
2699
+ direction: number;
2700
+ fillMode: number;
2701
+ seed: number;
2702
+ red: [number, number];
2703
+ green: [number, number];
2704
+ blue: [number, number];
2705
+ }
2614
2706
  declare class GlitchEffect extends Effect {
2615
2707
  static material: Material;
2616
2708
  protected _canvas: HTMLCanvasElement;
@@ -2624,22 +2716,54 @@ declare class GlitchEffect extends Effect {
2624
2716
  direction: number;
2625
2717
  fillMode: number;
2626
2718
  seed: number;
2627
- red: number[];
2628
- green: number[];
2629
- blue: number[];
2630
- constructor();
2719
+ red: [number, number];
2720
+ green: [number, number];
2721
+ blue: [number, number];
2722
+ constructor(properties?: Partial<GlitchEffectProperties>, children?: Node[]);
2631
2723
  redraw(): void;
2632
2724
  apply(renderer: WebGLRenderer, source: Viewport): void;
2633
2725
  }
2634
2726
 
2727
+ interface GodrayEffectProperties extends EffectProperties {
2728
+ time: number;
2729
+ angle: number;
2730
+ gain: number;
2731
+ lacunarity: number;
2732
+ parallel: boolean;
2733
+ center: [number, number];
2734
+ alpha: number;
2735
+ }
2635
2736
  declare class GodrayEffect extends Effect {
2636
2737
  static material: Material;
2738
+ time: number;
2637
2739
  angle: number;
2638
2740
  gain: number;
2639
2741
  lacunarity: number;
2640
2742
  parallel: boolean;
2641
- center: number[];
2743
+ center: [number, number];
2642
2744
  alpha: number;
2745
+ constructor(properties?: Partial<GodrayEffectProperties>, children?: Node[]);
2746
+ apply(renderer: WebGLRenderer, source: Viewport): void;
2747
+ }
2748
+
2749
+ interface KawaseBlurEffectProperties extends EffectProperties {
2750
+ strength: number;
2751
+ quality: number;
2752
+ pixelSize: [number, number];
2753
+ clamp: boolean;
2754
+ }
2755
+ declare const frag = "varying vec2 vUv;\nuniform sampler2D sampler;\nuniform vec2 uOffset;\n\nvoid main(void) {\n vec4 color = vec4(0.0);\n color += texture2D(sampler, vec2(vUv.x - uOffset.x, vUv.y + uOffset.y));\n color += texture2D(sampler, vec2(vUv.x + uOffset.x, vUv.y + uOffset.y));\n color += texture2D(sampler, vec2(vUv.x + uOffset.x, vUv.y - uOffset.y));\n color += texture2D(sampler, vec2(vUv.x - uOffset.x, vUv.y - uOffset.y));\n color *= 0.25;\n gl_FragColor = color;\n}";
2756
+ declare const clampFrag = "precision highp float;\nvarying vec2 vUv;\nuniform sampler2D sampler;\nuniform vec2 uOffset;\nuniform vec4 uInputClamp;\nvoid main(void) {\n vec4 color = vec4(0.0);\n color += texture2D(sampler, clamp(vec2(vUv.x - uOffset.x, vUv.y + uOffset.y), uInputClamp.xy, uInputClamp.zw));\n color += texture2D(sampler, clamp(vec2(vUv.x + uOffset.x, vUv.y + uOffset.y), uInputClamp.xy, uInputClamp.zw));\n color += texture2D(sampler, clamp(vec2(vUv.x + uOffset.x, vUv.y - uOffset.y), uInputClamp.xy, uInputClamp.zw));\n color += texture2D(sampler, clamp(vec2(vUv.x - uOffset.x, vUv.y - uOffset.y), uInputClamp.xy, uInputClamp.zw));\n color *= 0.25;\n gl_FragColor = color;\n}";
2757
+ declare class KawaseBlurEffect extends Effect {
2758
+ material: Material;
2759
+ strength: number;
2760
+ quality: number;
2761
+ pixelSize: [number, number];
2762
+ protected _kernels: number[];
2763
+ constructor(properties?: Partial<KawaseBlurEffectProperties>, children?: Node[]);
2764
+ protected _updateProperty(key: PropertyKey, value: any, oldValue: any, declaration?: PropertyDeclaration): void;
2765
+ /** Auto generate kernels by blur & quality */
2766
+ protected _generateKernels(): void;
2643
2767
  apply(renderer: WebGLRenderer, source: Viewport): void;
2644
2768
  }
2645
2769
 
@@ -2647,36 +2771,65 @@ interface MaskEffectProperties extends EffectProperties {
2647
2771
  src?: string;
2648
2772
  }
2649
2773
  declare class MaskEffect extends Effect {
2774
+ static material: Material;
2650
2775
  texture?: Texture2D<ImageBitmap>;
2651
2776
  src: string;
2652
2777
  constructor(properties?: Partial<MaskEffectProperties>, children?: Node[]);
2653
2778
  load(): Promise<void>;
2654
2779
  protected _updateProperty(key: PropertyKey, value: any, oldValue: any, declaration?: PropertyDeclaration): void;
2655
2780
  apply(renderer: WebGLRenderer, source: Viewport, context: EffectContext): void;
2656
- static material: Material;
2657
2781
  }
2658
2782
 
2659
- declare class PixelateEffect extends Effect {
2660
- static material: Material;
2661
- size: number;
2662
- constructor(size?: number);
2783
+ interface OutlineEffectProperties extends EffectProperties {
2784
+ color: ColorValue;
2785
+ width: number;
2786
+ style: 'dashed' | 'solid' | string;
2787
+ image?: string;
2788
+ opacity: number;
2789
+ quality: number;
2790
+ knockout: boolean;
2791
+ }
2792
+ declare class OutlineEffect extends Effect {
2793
+ material: Material;
2794
+ static MIN_SAMPLES: number;
2795
+ static MAX_SAMPLES: number;
2796
+ static getAngleStep(quality: number): number;
2797
+ color: ColorValue;
2798
+ width: number;
2799
+ style: 'dashed' | 'solid' | string;
2800
+ image?: string;
2801
+ opacity: number;
2802
+ quality: number;
2803
+ knockout: boolean;
2804
+ protected _color: Color;
2805
+ constructor(properties?: Partial<OutlineEffectProperties>, children?: Node[]);
2663
2806
  apply(renderer: WebGLRenderer, source: Viewport): void;
2664
2807
  }
2665
2808
 
2666
- declare class ShadowEffect extends Effect {
2809
+ interface PixelateEffectProperties extends EffectProperties {
2810
+ strength: number;
2811
+ }
2812
+ declare class PixelateEffect extends Effect {
2667
2813
  static material: Material;
2668
- blur: BlurEffect;
2669
- viewport3: Viewport;
2814
+ strength: number;
2815
+ constructor(properties?: Partial<PixelateEffectProperties>, children?: Node[]);
2670
2816
  apply(renderer: WebGLRenderer, source: Viewport): void;
2671
2817
  }
2672
2818
 
2673
- declare class ZoomBlurEffect extends Effect {
2819
+ interface ZoomBlurEffectProperties extends EffectProperties {
2674
2820
  center?: number[];
2675
2821
  innerRadius: number;
2676
2822
  radius: number;
2677
2823
  strength: number;
2824
+ }
2825
+ declare class ZoomBlurEffect extends Effect {
2678
2826
  static material: Material;
2679
- apply(renderer: WebGLRenderer, source: Viewport): void;
2827
+ center?: number[];
2828
+ innerRadius: number;
2829
+ radius: number;
2830
+ strength: number;
2831
+ constructor(properties?: Partial<ZoomBlurEffectProperties>, children?: Node[]);
2832
+ apply(renderer: WebGLRenderer, source: Viewport, context: EffectContext): void;
2680
2833
  }
2681
2834
 
2682
2835
  interface ControlEventMap extends CanvasItemEventMap, RectangulableEventMap {
@@ -3005,4 +3158,4 @@ interface RenderOptions {
3005
3158
  }
3006
3159
  declare function render(options: RenderOptions): Promise<HTMLCanvasElement>;
3007
3160
 
3008
- export { AnimatedTexture, Animation, type AnimationEffectMode, type AnimationProperties, type AssetHandler, Assets, Audio, AudioPipeline, AudioProcessor, AudioSpectrum, AudioWaveform, type AudioWaveformProperties, BaseElement2D, type BaseElement2DEventMap, type BaseElement2DProperties, BaseElement2DStyle, type BaseElement2DStyleProperties, type Batchable2D, BlurEffect, type CSSFilterKey, type CSSFilters, type CanvasBatchable, CanvasContext, CanvasItem, CanvasItemEditor, type CanvasItemEventMap, type CanvasItemProperties, CanvasTexture, Color, ColorAdjustEffect, ColorFilterEffect, type ColorFilterEffectProperties, ColorMatrix, ColorOverlayEffect, ColorRemoveEffect, ColorReplaceEffect, ColorTexture, type ColorValue, type ComputedLayout, 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, Element2D, type Element2DEventMap, type Element2DProperties, Element2DStyle, type Element2DStyleProperties, EmbossEffect, Engine, type EngineOptions, EventEmitter, type EventListener, type EventListenerOptions, type EventListenerValue, type FillDraw, type FlexBaseElement2DEventMap, FlexElement2D, type FlexElement2DProperties, FlexElement2DStyle, type FlexElement2DStyleProperties, FlexLayout, FontLoader, GIFLoader, Geometry, type GeometryOptions, GlitchEffect, GodrayEffect, Graphics2D, HTMLAudio, HTMLAudioContext, HTMLSound, type IAudioContext, type IAudioNode, IN_BROWSER, type IPlayOptions, Image2D, type Image2DProperties, type ImageFrame, ImageTexture, type ImageTextureOptions, IndexBuffer, type IndexBufferOptions, Input, InputEvent, type InputEventKey, type InputEventMap, type InternalMode, JSONLoader, KawaseTransition, type Keyframe, LeftEraseTransition, 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, PointerInputEvent, type ProcessMode, type ProcessSortMode, Projection2D, type PropertyDeclaration, QuadGeometry, QuadUvGeometry, RAD_TO_DEG, Range, type RangeProperties, RawWeakMap, Rect2, type Rectangulable, type RectangulableEventMap, 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 StrokeDraw, Text2D, type Text2DProperties, TextLoader, Texture2D, type Texture2DFilterMode, type Texture2DPixelsSource, type Texture2DSource, type Texture2DWrapMode, TextureLoader, TextureRect2D, type TextureRect2DProperties, Ticker, TiltShiftTransition, Timeline, type TimelineEventMap, TimelineNode, type TimelineNodeEventMap, type TimelineNodeProperties, type TimelineProperties, type TimingFunctions, Transform2D, type Transform2DObject, TransformRect2D, type TransformRect2DProperties, Transition, type TransitionProperties, TwistTransition, 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, parseCSSFilter, parseCSSTransform, parseCSSTransformOrigin, parseCssFunctions, parseCssProperty, property, protectedProperty, render, timingFunctions, uid };
3161
+ export { AnimatedTexture, Animation, type AnimationEffectMode, type AnimationProperties, type AssetHandler, Assets, Audio, AudioPipeline, AudioProcessor, AudioSpectrum, AudioWaveform, type AudioWaveformProperties, BaseElement2D, type BaseElement2DEventMap, type BaseElement2DProperties, BaseElement2DStyle, type BaseElement2DStyleProperties, type Batchable2D, type CSSFilterKey, type CSSFilters, type CanvasBatchable, CanvasContext, CanvasItem, CanvasItemEditor, type CanvasItemEventMap, type CanvasItemProperties, CanvasTexture, Color, ColorAdjustEffect, type ColorAdjustEffectProperties, ColorFilterEffect, type ColorFilterEffectProperties, ColorMatrix, ColorOverlayEffect, type ColorOverlayEffectProperties, ColorRemoveEffect, type ColorRemoveEffectProperties, ColorReplaceEffect, type ColorReplaceEffectProperties, ColorTexture, type ColorValue, type ComputedLayout, Control, type ControlEventMap, type ControlProperties, CoreObject, type CoreObjectEventMap, type CssFunction, type CssFunctionArg, type Cursor, DEG_TO_RAD, DEVICE_PIXEL_RATIO, DropShadowEffect, type DropShadowEffectProperties, type Easing, Effect, type EffectContext, EffectMaterial, type EffectMode, type EffectProperties, Element2D, type Element2DEventMap, type Element2DProperties, Element2DStyle, type Element2DStyleProperties, EmbossEffect, type EmbossEffectProperties, Engine, type EngineOptions, EventEmitter, type EventListener, type EventListenerOptions, type EventListenerValue, type FillDraw, type FlexBaseElement2DEventMap, FlexElement2D, type FlexElement2DProperties, FlexElement2DStyle, type FlexElement2DStyleProperties, FlexLayout, FontLoader, GIFLoader, GaussianBlurEffect, type GaussianBlurEffectProperties, Geometry, type GeometryOptions, GlitchEffect, type GlitchEffectProperties, GodrayEffect, type GodrayEffectProperties, Graphics2D, HTMLAudio, HTMLAudioContext, HTMLSound, type IAudioContext, type IAudioNode, IN_BROWSER, type IPlayOptions, Image2D, type Image2DProperties, type ImageFrame, ImageTexture, type ImageTextureOptions, IndexBuffer, type IndexBufferOptions, Input, InputEvent, type InputEventKey, type InputEventMap, type InternalMode, JSONLoader, KawaseBlurEffect, type KawaseBlurEffectProperties, KawaseTransition, type Keyframe, LeftEraseTransition, 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, OutlineEffect, type OutlineEffectProperties, PI, PI_2, PixelateEffect, type PixelateEffectProperties, PixelsTexture, type PlatformAudio, type PlatformSound, PointerInputEvent, type ProcessMode, type ProcessSortMode, Projection2D, type PropertyDeclaration, QuadGeometry, QuadUvGeometry, RAD_TO_DEG, Range, type RangeProperties, RawWeakMap, Rect2, type Rectangulable, type RectangulableEventMap, 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, type StrokeDraw, Text2D, type Text2DProperties, TextLoader, Texture2D, type Texture2DFilterMode, type Texture2DPixelsSource, type Texture2DSource, type Texture2DWrapMode, TextureLoader, TextureRect2D, type TextureRect2DProperties, Ticker, TiltShiftTransition, Timeline, type TimelineEventMap, TimelineNode, type TimelineNodeEventMap, type TimelineNodeProperties, type TimelineProperties, type TimingFunctions, Transform2D, type Transform2DObject, TransformRect2D, type TransformRect2DProperties, Transition, type TransitionProperties, TwistTransition, 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, type ZoomBlurEffectProperties, assets, clamp, clampFrag, createHTMLCanvas, createNode, crossOrigin, cubicBezier, curves, customNode, customNodes, defaultOptions, defineProperty, determineCrossOrigin, ease, easeIn, easeInOut, easeOut, frag, getDeclarations, getDefaultCssPropertyValue, isCanvasElement, isElementNode, isImageElement, isPow2, isVideoElement, isWebgl2, lerp, linear, log2, mapWebGLBlendModes, nextPow2, nextTick, parseCSSFilter, parseCSSTransform, parseCSSTransformOrigin, parseCssFunctions, parseCssProperty, property, protectedProperty, render, timingFunctions, uid };