modern-canvas 0.4.40 → 0.4.42

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,7 +1,7 @@
1
1
  import { Font } from 'modern-font';
2
2
  import { AnimationItem } from 'lottie-web';
3
3
  import { Colord, RgbaColor, HslaColor, HsvaColor } from 'colord';
4
- import { Color as Color$1, FillDeclaration, FillProperty, BackgroundDeclaration, BackgroundProperty, ForegroundDeclaration, ForegroundProperty, GeometryPathDeclaration, GeometryProperty, OutlineDeclaration, OutlineProperty, ShadowDeclaration, ShadowProperty, StyleDeclaration, TextProperty, StyleProperty, TextureFillSourceRect } from 'modern-idoc';
4
+ import { Color as Color$1, LinearGradient, RadialGradient, NormalizedFill, Fill, NormalizedBackground, Background, NormalizedForeground, Foreground, NormalizedOutline, Outline, NormalizedShadow, Shadow, NormalizedShape, Shape, NormalizedStyle, Text as Text$1, Style, ImageFillCropRect } from 'modern-idoc';
5
5
  export { Color as ColorValue } from 'modern-idoc';
6
6
  import { Path2D, LineCap, LineJoin, LineStyle, Path2DSet } from 'modern-path2d';
7
7
  import { TextOptions, Text, MeasureResult } from 'modern-text';
@@ -419,27 +419,6 @@ declare class ColorMatrix extends Matrix {
419
419
  toVector4(): Vector4;
420
420
  }
421
421
 
422
- interface ColorStop {
423
- offset: number;
424
- color: string;
425
- }
426
- interface ParsedGradient {
427
- width: number;
428
- height: number;
429
- pixels: Uint8Array;
430
- }
431
- declare class LinearGradient {
432
- x0: number;
433
- y0: number;
434
- x1: number;
435
- y1: number;
436
- stops: ColorStop[];
437
- constructor(x0: number, y0: number, x1: number, y1: number, stops: ColorStop[]);
438
- static from(css: string): LinearGradient;
439
- parse(width: number, height: number): ParsedGradient;
440
- protected _parseByCanvas(width: number, height: number): ParsedGradient;
441
- }
442
-
443
422
  /**
444
423
  * Matrix2
445
424
  *
@@ -475,19 +454,6 @@ declare class Projection2D extends Matrix3 {
475
454
  protected _performUpdateArray(): void;
476
455
  }
477
456
 
478
- declare class RadialGradient {
479
- x0: number;
480
- y0: number;
481
- r0: number;
482
- x1: number;
483
- y1: number;
484
- r1: number;
485
- stops: ColorStop[];
486
- constructor(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number, stops: ColorStop[]);
487
- parse(width: number, height: number): ParsedGradient;
488
- protected _parseByCanvas(width: number, height: number): ParsedGradient;
489
- }
490
-
491
457
  /**
492
458
  * Vector2
493
459
  */
@@ -1374,9 +1340,9 @@ declare class ColorTexture extends Texture2D {
1374
1340
  }
1375
1341
 
1376
1342
  declare class GradientTexture extends Texture2D {
1377
- static regExp: RegExp;
1378
1343
  static test(value: string): boolean;
1379
- constructor(value: string, width: number, height: number);
1344
+ static linearGradient(linearGradient: LinearGradient, width: number, height: number): Texture2DPixelsSource;
1345
+ constructor(gradient: LinearGradient | RadialGradient, width: number, height: number);
1380
1346
  }
1381
1347
 
1382
1348
  interface ImageTextureOptions {
@@ -1479,7 +1445,7 @@ declare class CanvasContext extends Path2D {
1479
1445
  miterLimit?: number;
1480
1446
  _defaultStyle: Texture2D<Texture2DSource>;
1481
1447
  _draws: (StrokeDraw | FillDraw)[];
1482
- protected _colorToTexture(color: Color$1 | Texture2D, width: number, height: number): Texture2D;
1448
+ protected _toTexture(source: Color$1 | Texture2D): Texture2D;
1483
1449
  stroke(options?: Partial<StrokeDraw>): void;
1484
1450
  fillRect(x: number, y: number, width: number, height: number): void;
1485
1451
  strokeRect(x: number, y: number, width: number, height: number): void;
@@ -1918,93 +1884,87 @@ declare class Node2D extends CanvasItem {
1918
1884
  protected _process(delta: number): void;
1919
1885
  }
1920
1886
 
1921
- interface BaseElement2DFill extends FillDeclaration {
1887
+ interface BaseElement2DFill extends NormalizedFill {
1922
1888
  }
1923
1889
  declare class BaseElement2DFill extends CoreObject {
1924
1890
  parent: BaseElement2D;
1925
- color?: FillDeclaration['color'];
1926
- src?: FillDeclaration['src'];
1927
- dpi?: FillDeclaration['dpi'];
1928
- rotateWithShape?: FillDeclaration['rotateWithShape'];
1929
- tile?: FillDeclaration['tile'];
1930
- stretch?: FillDeclaration['stretch'];
1931
- opacity?: FillDeclaration['opacity'];
1932
- protected _src?: Texture2D<ImageBitmap>;
1891
+ color?: NormalizedFill['color'];
1892
+ image?: NormalizedFill['image'];
1893
+ linearGradient?: NormalizedFill['linearGradient'];
1894
+ radialGradient?: NormalizedFill['radialGradient'];
1895
+ cropRect?: NormalizedFill['cropRect'];
1896
+ stretchRect?: NormalizedFill['stretchRect'];
1897
+ dpi?: NormalizedFill['dpi'];
1898
+ rotateWithShape?: NormalizedFill['rotateWithShape'];
1899
+ tile?: NormalizedFill['tile'];
1900
+ opacity?: NormalizedFill['opacity'];
1901
+ protected _texture?: Texture2D;
1933
1902
  constructor(parent: BaseElement2D);
1934
- setProperties(properties?: FillProperty): this;
1903
+ protected _setProperties(properties?: Fill): this;
1904
+ setProperties(properties?: Fill): this;
1935
1905
  protected _updateProperty(key: PropertyKey, value: any, oldValue: any, declaration?: PropertyDeclaration): void;
1936
- loadSource(): Promise<Texture2D<ImageBitmap> | undefined>;
1937
- protected _updateSource(): Promise<void>;
1906
+ loadTexture(): Promise<Texture2D | undefined>;
1907
+ protected _updateTexture(): Promise<void>;
1938
1908
  canDraw(): boolean;
1909
+ protected _getDrawOptions(): {
1910
+ disableWrapMode: boolean;
1911
+ textureTransform?: Transform2D;
1912
+ };
1939
1913
  draw(): void;
1940
1914
  }
1941
1915
 
1942
- interface BaseElement2DBackground extends BackgroundDeclaration {
1916
+ interface BaseElement2DBackground extends NormalizedBackground {
1943
1917
  }
1944
1918
  declare class BaseElement2DBackground extends BaseElement2DFill {
1945
- color?: BackgroundDeclaration['color'];
1946
- src?: BackgroundDeclaration['src'];
1947
- dpi?: BackgroundDeclaration['dpi'];
1948
- rotateWithShape?: BackgroundDeclaration['rotateWithShape'];
1949
- tile?: BackgroundDeclaration['tile'];
1950
- stretch?: BackgroundDeclaration['stretch'];
1951
- opacity?: BackgroundDeclaration['opacity'];
1952
- setProperties(properties?: BackgroundProperty): this;
1919
+ fillWithShape?: NormalizedBackground['fillWithShape'];
1920
+ setProperties(properties?: Background): this;
1953
1921
  }
1954
1922
 
1955
- interface BaseElement2DForeground extends ForegroundDeclaration {
1923
+ interface BaseElement2DForeground extends NormalizedForeground {
1956
1924
  }
1957
1925
  declare class BaseElement2DForeground extends BaseElement2DFill {
1958
- color?: ForegroundDeclaration['color'];
1959
- src?: ForegroundDeclaration['src'];
1960
- dpi?: ForegroundDeclaration['dpi'];
1961
- rotateWithShape?: ForegroundDeclaration['rotateWithShape'];
1962
- tile?: ForegroundDeclaration['tile'];
1963
- stretch?: ForegroundDeclaration['stretch'];
1964
- opacity?: ForegroundDeclaration['opacity'];
1965
- setProperties(properties?: ForegroundProperty): this;
1926
+ fillWithShape?: NormalizedForeground['fillWithShape'];
1927
+ setProperties(properties?: Foreground): this;
1966
1928
  }
1967
1929
 
1968
- declare class BaseElement2DGeometry extends CoreObject {
1969
- parent: BaseElement2D;
1970
- name?: string;
1971
- svg?: string;
1972
- viewBox: number[];
1973
- data: GeometryPathDeclaration[];
1974
- protected _path2DSet: Path2DSet;
1975
- constructor(parent: BaseElement2D);
1976
- setProperties(properties?: GeometryProperty): this;
1930
+ declare class BaseElement2DOutline extends BaseElement2DFill {
1931
+ color: NormalizedOutline['color'];
1932
+ width: NormalizedOutline['width'];
1933
+ style: NormalizedOutline['style'];
1934
+ setProperties(properties?: Outline): this;
1977
1935
  protected _updateProperty(key: PropertyKey, value: any, oldValue: any, declaration?: PropertyDeclaration): void;
1978
- protected _updatePath2DSet(): void;
1936
+ canDraw(): boolean;
1979
1937
  draw(): void;
1980
- drawRect(): void;
1981
1938
  }
1982
1939
 
1983
- declare class BaseElement2DOutline extends CoreObject {
1940
+ declare class BaseElement2DShadow extends CoreObject {
1984
1941
  parent: BaseElement2D;
1985
- color: OutlineDeclaration['color'];
1986
- width: OutlineDeclaration['width'];
1987
- style: OutlineDeclaration['style'];
1942
+ color: NormalizedShadow['color'];
1943
+ blur: NormalizedShadow['blur'];
1944
+ offsetY: NormalizedShadow['offsetX'];
1945
+ offsetX: NormalizedShadow['offsetY'];
1988
1946
  constructor(parent: BaseElement2D);
1989
- setProperties(properties?: OutlineProperty): this;
1947
+ setProperties(properties?: Shadow): this;
1990
1948
  protected _updateProperty(key: PropertyKey, value: any, oldValue: any, declaration?: PropertyDeclaration): void;
1991
- canDraw(): boolean;
1992
- draw(): void;
1949
+ updateEffect(): void;
1993
1950
  }
1994
1951
 
1995
- declare class BaseElement2DShadow extends CoreObject {
1952
+ declare class BaseElement2DShape extends CoreObject {
1996
1953
  parent: BaseElement2D;
1997
- color: ShadowDeclaration['color'];
1998
- blur: ShadowDeclaration['blur'];
1999
- offsetY: ShadowDeclaration['offsetX'];
2000
- offsetX: ShadowDeclaration['offsetY'];
1954
+ preset?: Required<NormalizedShape>['preset'];
1955
+ svg?: Required<NormalizedShape>['svg'];
1956
+ viewBox: Required<NormalizedShape>['viewBox'];
1957
+ data: Required<NormalizedShape>['paths'];
1958
+ protected _path2DSet: Path2DSet;
2001
1959
  constructor(parent: BaseElement2D);
2002
- setProperties(properties?: ShadowProperty): this;
1960
+ setProperties(properties?: Shape): this;
2003
1961
  protected _updateProperty(key: PropertyKey, value: any, oldValue: any, declaration?: PropertyDeclaration): void;
2004
- updateEffect(): void;
1962
+ protected _updatePath2DSet(): void;
1963
+ draw(): void;
1964
+ drawRect(): void;
2005
1965
  }
2006
1966
 
2007
- interface BaseElement2DStyleProperties extends Omit<StyleDeclaration, 'left' | 'top' | 'width' | 'height'> {
1967
+ interface BaseElement2DStyleProperties extends Omit<NormalizedStyle, 'left' | 'top' | 'width' | 'height'> {
2008
1968
  left: number;
2009
1969
  top: number;
2010
1970
  width: number;
@@ -2026,7 +1986,7 @@ declare class BaseElement2DText extends CoreObject {
2026
1986
  texture: CanvasTexture;
2027
1987
  baseText: Text;
2028
1988
  measureResult?: MeasureResult;
2029
- setProperties(properties?: TextProperty): this;
1989
+ setProperties(properties?: Text$1): this;
2030
1990
  protected _updateProperty(key: PropertyKey, value: any, oldValue: any, declaration?: PropertyDeclaration): void;
2031
1991
  protected _updateText(): void;
2032
1992
  measure(): MeasureResult;
@@ -2041,14 +2001,14 @@ interface BaseElement2DEventMap extends CanvasItemEventMap {
2041
2001
  interface BaseElement2DProperties extends Node2DProperties {
2042
2002
  modulate: Color$1;
2043
2003
  blendMode: WebGLBlendMode;
2044
- style: StyleProperty;
2045
- background: BackgroundProperty;
2046
- geometry: GeometryProperty;
2047
- fill: FillProperty;
2048
- outline: OutlineProperty;
2049
- foreground: ForegroundProperty;
2050
- text: TextProperty;
2051
- shadow: ShadowProperty;
2004
+ style: Style;
2005
+ background: Background;
2006
+ shape: Shape;
2007
+ fill: Fill;
2008
+ outline: Outline;
2009
+ foreground: Foreground;
2010
+ text: Text$1;
2011
+ shadow: Shadow;
2052
2012
  }
2053
2013
  interface BaseElement2D {
2054
2014
  on: (<K extends keyof BaseElement2DEventMap>(type: K, listener: BaseElement2DEventMap[K], options?: EventListenerOptions) => this) & ((type: string, listener: EventListenerValue, options?: EventListenerOptions) => this);
@@ -2063,25 +2023,25 @@ declare class BaseElement2D extends Node2D implements Rectangulable {
2063
2023
  set style(style: BaseElement2DStyle);
2064
2024
  protected _background: BaseElement2DBackground;
2065
2025
  get background(): BaseElement2DBackground;
2066
- set background(value: BackgroundProperty);
2067
- protected _geometry: BaseElement2DGeometry;
2068
- get geometry(): BaseElement2DGeometry;
2069
- set geometry(value: GeometryProperty);
2026
+ set background(value: Background);
2027
+ protected _shape: BaseElement2DShape;
2028
+ get shape(): BaseElement2DShape;
2029
+ set shape(value: Shape);
2070
2030
  protected _fill: BaseElement2DFill;
2071
2031
  get fill(): BaseElement2DFill;
2072
- set fill(value: FillProperty);
2032
+ set fill(value: Fill);
2073
2033
  protected _outline: BaseElement2DOutline;
2074
2034
  get outline(): BaseElement2DOutline;
2075
- set outline(value: OutlineProperty);
2035
+ set outline(value: Outline);
2076
2036
  protected _foreground: BaseElement2DForeground;
2077
2037
  get foreground(): BaseElement2DForeground;
2078
- set foreground(value: ForegroundProperty);
2038
+ set foreground(value: Foreground);
2079
2039
  protected _text: BaseElement2DText;
2080
2040
  get text(): BaseElement2DText;
2081
- set text(value: TextProperty);
2041
+ set text(value: Text$1);
2082
2042
  protected _shadow: BaseElement2DShadow;
2083
2043
  get shadow(): BaseElement2DShadow;
2084
- set shadow(value: ShadowProperty);
2044
+ set shadow(value: Shadow);
2085
2045
  constructor(properties?: Partial<BaseElement2DProperties>, nodes?: Node[]);
2086
2046
  setProperties(properties?: Record<PropertyKey, any>): this;
2087
2047
  protected _updateStyleProperty(key: PropertyKey, value: any, oldValue: any, declaration?: PropertyDeclaration): void;
@@ -2221,13 +2181,13 @@ declare class Graphics2D extends Node2D {
2221
2181
 
2222
2182
  interface Image2DProperties extends Element2DProperties {
2223
2183
  src: string;
2224
- srcRect: TextureFillSourceRect;
2184
+ srcRect: ImageFillCropRect;
2225
2185
  gif: boolean;
2226
2186
  }
2227
2187
  declare class Image2D extends Element2D {
2228
2188
  texture?: AnimatedTexture;
2229
2189
  src: string;
2230
- srcRect: TextureFillSourceRect;
2190
+ srcRect: ImageFillCropRect;
2231
2191
  gif: boolean;
2232
2192
  get currentFrameTexture(): Texture2D | undefined;
2233
2193
  get textureDuration(): number;
@@ -3301,5 +3261,5 @@ interface RenderOptions {
3301
3261
  }
3302
3262
  declare function render(options: RenderOptions): Promise<HTMLCanvasElement>;
3303
3263
 
3304
- export { AnimatedTexture, Animation, Assets, Audio, AudioPipeline, AudioProcessor, AudioSpectrum, AudioWaveform, BaseElement2D, BaseElement2DBackground, BaseElement2DFill, BaseElement2DForeground, BaseElement2DGeometry, BaseElement2DOutline, BaseElement2DShadow, BaseElement2DStyle, BaseElement2DText, CanvasContext, CanvasItem, CanvasItemEditor, CanvasTexture, Color, ColorAdjustEffect, ColorFilterEffect, ColorMatrix, ColorOverlayEffect, ColorRemoveEffect, ColorReplaceEffect, ColorTexture, Control, CoreObject, DEG_TO_RAD, DEVICE_PIXEL_RATIO, DropShadowEffect, Effect, EffectMaterial, Element2D, Element2DStyle, EmbossEffect, Engine, EventEmitter, FlexElement2D, FlexElement2DStyle, FlexLayout, FontLoader, GIFLoader, GaussianBlurEffect, Geometry, GlitchEffect, GodrayEffect, GradientTexture, Graphics2D, HTMLAudio, HTMLAudioContext, HTMLSound, IN_BROWSER, Image2D, ImageTexture, IndexBuffer, Input, InputEvent, JSONLoader, KawaseBlurEffect, KawaseTransition, LeftEraseTransition, LinearGradient, Loader, Lottie2D, LottieLoader, MainLoop, MaskEffect, Material, Matrix, Matrix2, Matrix3, Matrix4, MouseInputEvent, Node, Node2D, OutlineEffect, PI, PI_2, PixelateEffect, PixelsTexture, PointerInputEvent, Projection2D, QuadGeometry, QuadUvGeometry, RAD_TO_DEG, RadialGradient, Range, RawWeakMap, Rect2, RefCounted, Renderer, Resource, Ruler, 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, SceneTree, ScrollBar, Text2D, TextLoader, Texture2D, TextureLoader, TextureRect2D, Ticker, TiltShiftTransition, Timeline, TimelineNode, Transform2D, TransformRect2D, Transition, TwistTransition, UvGeometry, UvMaterial, Vector, Vector2, Vector3, Vector4, VertexAttribute, VertexBuffer, Video2D, VideoLoader, VideoTexture, Viewport, ViewportTexture, WebAudio, WebAudioContext, WebGLBatch2DModule, WebGLBlendMode, WebGLBufferModule, WebGLFramebufferModule, WebGLMaskModule, WebGLModule, WebGLProgramModule, WebGLRenderer, WebGLScissorModule, WebGLState, WebGLStateModule, WebGLStencilModule, WebGLTextureModule, WebGLVertexArrayModule, WebGLViewportModule, WebSound, WheelInputEvent, XScrollBar, YScrollBar, ZoomBlurEffect, 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 };
3305
- export type { AnimationEffectMode, AnimationProperties, AssetHandler, AudioWaveformProperties, BaseElement2DEventMap, BaseElement2DProperties, BaseElement2DStyleProperties, Batchable2D, CSSFilterKey, CSSFilters, CanvasBatchable, CanvasItemEventMap, CanvasItemProperties, ColorAdjustEffectProperties, ColorFilterEffectProperties, ColorOverlayEffectProperties, ColorRemoveEffectProperties, ColorReplaceEffectProperties, ColorStop, ComputedLayout, ControlEventMap, ControlProperties, CoreObjectEventMap, CssFunction, CssFunctionArg, Cursor, DropShadowEffectProperties, Easing, EffectContext, EffectMode, EffectProperties, Element2DEventMap, Element2DProperties, Element2DStyleProperties, EmbossEffectProperties, EngineOptions, EventListener, EventListenerOptions, EventListenerValue, FillDraw, FlexBaseElement2DEventMap, FlexElement2DProperties, FlexElement2DStyleProperties, GaussianBlurEffectProperties, GeometryOptions, GlitchEffectProperties, GodrayEffectProperties, IAudioContext, IAudioNode, IPlayOptions, Image2DProperties, ImageFrame, ImageTextureOptions, IndexBufferOptions, InputEventKey, InputEventMap, InternalMode, KawaseBlurEffectProperties, Keyframe, Lottie2DProperties, MainLoopEventMap, MaskColor, MaskData, MaskEffectProperties, MaskObject, MaskRect, Maskable, MaterialOptions, MatrixLike, MatrixOperateOutput, Node2DProperties, NodeEventMap, NodeProperties, NormalizedKeyframe, OutlineEffectProperties, ParsedGradient, PixelateEffectProperties, PlatformAudio, PlatformSound, ProcessMode, ProcessSortMode, PropertyDeclaration, RangeProperties, Rectangulable, RectangulableEventMap, RefCountedEventMap, RenderMode, RenderOptions, Renderable, ResourceEventMap, RulerProperties, ScalerEventMap, ScalerProperties, SceneTreeEventMap, ScrollBarProperties, StrokeDraw, Text2DEventMap, Text2DProperties, Texture2DFilterMode, Texture2DPixelsSource, Texture2DSource, Texture2DWrapMode, TextureRect2DProperties, TimelineEventMap, TimelineNodeEventMap, TimelineNodeProperties, TimelineProperties, TimingFunctions, Transform2DObject, TransformRect2DProperties, TransitionProperties, VectorLike, VectorOperateOutput, VertexAttributeOptions, VertexBufferOptions, Video2DProperties, VideoTextureOptions, VideoTextureSource, ViewportEventMap, ViewportFramebuffer, WebGLBufferMeta, WebGLBufferOptions, WebGLBufferTarget, WebGLBufferUsage, WebGLDrawMode, WebGLDrawOptions, WebGLExtensions, WebGLFramebufferMeta, WebGLFramebufferOptions, WebGLProgramMeta, WebGLProgramOptions, WebGLTarget, WebGLTextureFilterMode, WebGLTextureLocation, WebGLTextureMeta, WebGLTextureOptions, WebGLTextureSource, WebGLTextureTarget, WebGLTextureWrapMode, WebGLVertexArrayObjectMeta, WebGLVertexArrayObjectOptions, WebGLVertexAttrib, WebGLVertexAttribType, WebGLViewport, XScrollBarProperties, YScrollBarProperties, ZoomBlurEffectProperties };
3264
+ export { AnimatedTexture, Animation, Assets, Audio, AudioPipeline, AudioProcessor, AudioSpectrum, AudioWaveform, BaseElement2D, BaseElement2DBackground, BaseElement2DFill, BaseElement2DForeground, BaseElement2DOutline, BaseElement2DShadow, BaseElement2DShape, BaseElement2DStyle, BaseElement2DText, CanvasContext, CanvasItem, CanvasItemEditor, CanvasTexture, Color, ColorAdjustEffect, ColorFilterEffect, ColorMatrix, ColorOverlayEffect, ColorRemoveEffect, ColorReplaceEffect, ColorTexture, Control, CoreObject, DEG_TO_RAD, DEVICE_PIXEL_RATIO, DropShadowEffect, Effect, EffectMaterial, Element2D, Element2DStyle, EmbossEffect, Engine, EventEmitter, FlexElement2D, FlexElement2DStyle, FlexLayout, FontLoader, GIFLoader, GaussianBlurEffect, Geometry, GlitchEffect, GodrayEffect, GradientTexture, Graphics2D, HTMLAudio, HTMLAudioContext, HTMLSound, IN_BROWSER, Image2D, ImageTexture, IndexBuffer, Input, InputEvent, JSONLoader, KawaseBlurEffect, KawaseTransition, LeftEraseTransition, Loader, Lottie2D, LottieLoader, MainLoop, MaskEffect, Material, Matrix, Matrix2, Matrix3, Matrix4, MouseInputEvent, Node, Node2D, OutlineEffect, PI, PI_2, PixelateEffect, PixelsTexture, PointerInputEvent, Projection2D, QuadGeometry, QuadUvGeometry, RAD_TO_DEG, Range, RawWeakMap, Rect2, RefCounted, Renderer, Resource, Ruler, 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, SceneTree, ScrollBar, Text2D, TextLoader, Texture2D, TextureLoader, TextureRect2D, Ticker, TiltShiftTransition, Timeline, TimelineNode, Transform2D, TransformRect2D, Transition, TwistTransition, UvGeometry, UvMaterial, Vector, Vector2, Vector3, Vector4, VertexAttribute, VertexBuffer, Video2D, VideoLoader, VideoTexture, Viewport, ViewportTexture, WebAudio, WebAudioContext, WebGLBatch2DModule, WebGLBlendMode, WebGLBufferModule, WebGLFramebufferModule, WebGLMaskModule, WebGLModule, WebGLProgramModule, WebGLRenderer, WebGLScissorModule, WebGLState, WebGLStateModule, WebGLStencilModule, WebGLTextureModule, WebGLVertexArrayModule, WebGLViewportModule, WebSound, WheelInputEvent, XScrollBar, YScrollBar, ZoomBlurEffect, 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 };
3265
+ export type { AnimationEffectMode, AnimationProperties, AssetHandler, AudioWaveformProperties, BaseElement2DEventMap, BaseElement2DProperties, BaseElement2DStyleProperties, Batchable2D, CSSFilterKey, CSSFilters, CanvasBatchable, CanvasItemEventMap, CanvasItemProperties, ColorAdjustEffectProperties, ColorFilterEffectProperties, ColorOverlayEffectProperties, ColorRemoveEffectProperties, ColorReplaceEffectProperties, ComputedLayout, ControlEventMap, ControlProperties, CoreObjectEventMap, CssFunction, CssFunctionArg, Cursor, DropShadowEffectProperties, Easing, EffectContext, EffectMode, EffectProperties, Element2DEventMap, Element2DProperties, Element2DStyleProperties, EmbossEffectProperties, EngineOptions, EventListener, EventListenerOptions, EventListenerValue, FillDraw, FlexBaseElement2DEventMap, FlexElement2DProperties, FlexElement2DStyleProperties, GaussianBlurEffectProperties, GeometryOptions, GlitchEffectProperties, GodrayEffectProperties, IAudioContext, IAudioNode, IPlayOptions, Image2DProperties, ImageFrame, ImageTextureOptions, IndexBufferOptions, InputEventKey, InputEventMap, InternalMode, KawaseBlurEffectProperties, Keyframe, Lottie2DProperties, MainLoopEventMap, MaskColor, MaskData, MaskEffectProperties, MaskObject, MaskRect, Maskable, MaterialOptions, MatrixLike, MatrixOperateOutput, Node2DProperties, NodeEventMap, NodeProperties, NormalizedKeyframe, OutlineEffectProperties, PixelateEffectProperties, PlatformAudio, PlatformSound, ProcessMode, ProcessSortMode, PropertyDeclaration, RangeProperties, Rectangulable, RectangulableEventMap, RefCountedEventMap, RenderMode, RenderOptions, Renderable, ResourceEventMap, RulerProperties, ScalerEventMap, ScalerProperties, SceneTreeEventMap, ScrollBarProperties, StrokeDraw, Text2DEventMap, Text2DProperties, Texture2DFilterMode, Texture2DPixelsSource, Texture2DSource, Texture2DWrapMode, TextureRect2DProperties, TimelineEventMap, TimelineNodeEventMap, TimelineNodeProperties, TimelineProperties, TimingFunctions, Transform2DObject, TransformRect2DProperties, TransitionProperties, VectorLike, VectorOperateOutput, VertexAttributeOptions, VertexBufferOptions, Video2DProperties, VideoTextureOptions, VideoTextureSource, ViewportEventMap, ViewportFramebuffer, WebGLBufferMeta, WebGLBufferOptions, WebGLBufferTarget, WebGLBufferUsage, WebGLDrawMode, WebGLDrawOptions, WebGLExtensions, WebGLFramebufferMeta, WebGLFramebufferOptions, WebGLProgramMeta, WebGLProgramOptions, WebGLTarget, WebGLTextureFilterMode, WebGLTextureLocation, WebGLTextureMeta, WebGLTextureOptions, WebGLTextureSource, WebGLTextureTarget, WebGLTextureWrapMode, WebGLVertexArrayObjectMeta, WebGLVertexArrayObjectOptions, WebGLVertexAttrib, WebGLVertexAttribType, WebGLViewport, XScrollBarProperties, YScrollBarProperties, ZoomBlurEffectProperties };