modern-canvas 0.4.29 → 0.4.31
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.cjs +408 -275
- package/dist/index.d.cts +109 -75
- package/dist/index.d.mts +109 -75
- package/dist/index.d.ts +109 -75
- package/dist/index.js +41 -41
- package/dist/index.mjs +407 -276
- package/package.json +8 -8
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 { FillDeclaration, FillProperty, BackgroundDeclaration, BackgroundProperty, ForegroundDeclaration, ForegroundProperty, GeometryPathDeclaration, GeometryProperty, OutlineDeclaration, OutlineProperty, ShadowDeclaration, ShadowProperty, StyleDeclaration, TextProperty, StyleProperty, TextureFillSourceRect } from 'modern-idoc';
|
|
4
5
|
import { Path2D, LineCap, LineJoin, LineStyle, Path2DSet } from 'modern-path2d';
|
|
5
|
-
import { ImageFillSource, ImageFillTile, ImageFillStretch, FillDeclaration, Path2DDeclaration, GeometryDeclaration, OutlineDeclaration, ShadowDeclaration, StyleDeclaration, ImageSource, ImageSourceRect } from 'modern-idoc';
|
|
6
6
|
import { TextOptions, Text, MeasureResult } from 'modern-text';
|
|
7
7
|
import { Node as Node$1, Direction } from 'yoga-layout/load';
|
|
8
8
|
|
|
@@ -103,7 +103,7 @@ declare class CoreObject extends EventEmitter {
|
|
|
103
103
|
getProperty(key: PropertyKey): any | undefined;
|
|
104
104
|
setProperty(key: PropertyKey, value: any): this;
|
|
105
105
|
getProperties(keys?: PropertyKey[]): Record<PropertyKey, any>;
|
|
106
|
-
setProperties(properties?:
|
|
106
|
+
setProperties(properties?: any): this;
|
|
107
107
|
requestUpdate(key?: PropertyKey, oldValue?: unknown, declaration?: PropertyDeclaration): void;
|
|
108
108
|
toJSON(): Record<string, any>;
|
|
109
109
|
clone(): this;
|
|
@@ -1849,73 +1849,121 @@ declare class Transition extends Effect {
|
|
|
1849
1849
|
constructor(properties?: Partial<TransitionProperties>, children?: Node[]);
|
|
1850
1850
|
}
|
|
1851
1851
|
|
|
1852
|
-
|
|
1852
|
+
interface Node2DProperties extends CanvasItemProperties {
|
|
1853
|
+
}
|
|
1854
|
+
declare class Node2D extends CanvasItem {
|
|
1855
|
+
position: Vector2;
|
|
1856
|
+
rotation: number;
|
|
1857
|
+
scale: Vector2;
|
|
1858
|
+
skew: Vector2;
|
|
1859
|
+
transform: Transform2D;
|
|
1860
|
+
globalPosition: Vector2;
|
|
1861
|
+
globalRotation: number;
|
|
1862
|
+
globalScale: Vector2;
|
|
1863
|
+
globalSkew: Vector2;
|
|
1864
|
+
globalTransform: Transform2D;
|
|
1865
|
+
protected _parentTransformDirtyId?: number;
|
|
1866
|
+
constructor(properties?: Partial<Node2DProperties>, nodes?: Node[]);
|
|
1867
|
+
protected _updateTransform(): void;
|
|
1868
|
+
protected _updateGlobalTransform(): void;
|
|
1869
|
+
protected _transformVertices(vertices: number[]): number[];
|
|
1870
|
+
protected _relayout(batchables: CanvasBatchable[]): CanvasBatchable[];
|
|
1871
|
+
protected _process(delta: number): void;
|
|
1872
|
+
}
|
|
1873
|
+
|
|
1874
|
+
interface BaseElement2DFill extends FillDeclaration {
|
|
1875
|
+
}
|
|
1853
1876
|
declare class BaseElement2DFill extends CoreObject {
|
|
1854
1877
|
parent: BaseElement2D;
|
|
1855
|
-
color?:
|
|
1856
|
-
|
|
1857
|
-
dpi?:
|
|
1858
|
-
rotateWithShape?:
|
|
1859
|
-
tile?:
|
|
1860
|
-
stretch?:
|
|
1861
|
-
|
|
1862
|
-
|
|
1878
|
+
color?: FillDeclaration['color'];
|
|
1879
|
+
src?: FillDeclaration['src'];
|
|
1880
|
+
dpi?: FillDeclaration['dpi'];
|
|
1881
|
+
rotateWithShape?: FillDeclaration['rotateWithShape'];
|
|
1882
|
+
tile?: FillDeclaration['tile'];
|
|
1883
|
+
stretch?: FillDeclaration['stretch'];
|
|
1884
|
+
opacity?: FillDeclaration['opacity'];
|
|
1885
|
+
protected _src?: Texture2D<ImageBitmap>;
|
|
1886
|
+
constructor(parent: BaseElement2D);
|
|
1887
|
+
setProperties(properties?: FillProperty): this;
|
|
1863
1888
|
protected _updateProperty(key: PropertyKey, value: any, oldValue: any, declaration?: PropertyDeclaration): void;
|
|
1864
|
-
|
|
1865
|
-
protected
|
|
1889
|
+
loadSource(): Promise<Texture2D<ImageBitmap> | undefined>;
|
|
1890
|
+
protected _updateSource(): Promise<void>;
|
|
1866
1891
|
canDraw(): boolean;
|
|
1867
1892
|
draw(): void;
|
|
1868
1893
|
}
|
|
1869
1894
|
|
|
1870
|
-
|
|
1895
|
+
interface BaseElement2DBackground extends BackgroundDeclaration {
|
|
1896
|
+
}
|
|
1897
|
+
declare class BaseElement2DBackground extends BaseElement2DFill {
|
|
1898
|
+
color?: BackgroundDeclaration['color'];
|
|
1899
|
+
src?: BackgroundDeclaration['src'];
|
|
1900
|
+
dpi?: BackgroundDeclaration['dpi'];
|
|
1901
|
+
rotateWithShape?: BackgroundDeclaration['rotateWithShape'];
|
|
1902
|
+
tile?: BackgroundDeclaration['tile'];
|
|
1903
|
+
stretch?: BackgroundDeclaration['stretch'];
|
|
1904
|
+
opacity?: BackgroundDeclaration['opacity'];
|
|
1905
|
+
setProperties(properties?: BackgroundProperty): this;
|
|
1906
|
+
}
|
|
1907
|
+
|
|
1908
|
+
interface BaseElement2DForeground extends ForegroundDeclaration {
|
|
1909
|
+
}
|
|
1910
|
+
declare class BaseElement2DForeground extends BaseElement2DFill {
|
|
1911
|
+
color?: ForegroundDeclaration['color'];
|
|
1912
|
+
src?: ForegroundDeclaration['src'];
|
|
1913
|
+
dpi?: ForegroundDeclaration['dpi'];
|
|
1914
|
+
rotateWithShape?: ForegroundDeclaration['rotateWithShape'];
|
|
1915
|
+
tile?: ForegroundDeclaration['tile'];
|
|
1916
|
+
stretch?: ForegroundDeclaration['stretch'];
|
|
1917
|
+
opacity?: ForegroundDeclaration['opacity'];
|
|
1918
|
+
setProperties(properties?: ForegroundProperty): this;
|
|
1919
|
+
}
|
|
1920
|
+
|
|
1871
1921
|
declare class BaseElement2DGeometry extends CoreObject {
|
|
1872
1922
|
parent: BaseElement2D;
|
|
1873
1923
|
name?: string;
|
|
1874
1924
|
svg?: string;
|
|
1875
1925
|
viewBox: number[];
|
|
1876
|
-
data:
|
|
1926
|
+
data: GeometryPathDeclaration[];
|
|
1877
1927
|
protected _path2DSet: Path2DSet;
|
|
1878
|
-
constructor(parent: BaseElement2D
|
|
1928
|
+
constructor(parent: BaseElement2D);
|
|
1929
|
+
setProperties(properties?: GeometryProperty): this;
|
|
1879
1930
|
protected _updateProperty(key: PropertyKey, value: any, oldValue: any, declaration?: PropertyDeclaration): void;
|
|
1880
1931
|
protected _updatePath2DSet(): void;
|
|
1881
1932
|
draw(): void;
|
|
1882
1933
|
drawRect(): void;
|
|
1883
1934
|
}
|
|
1884
1935
|
|
|
1885
|
-
type BaseElement2DOutlineProperties = OutlineDeclaration;
|
|
1886
1936
|
declare class BaseElement2DOutline extends CoreObject {
|
|
1887
1937
|
parent: BaseElement2D;
|
|
1888
|
-
color:
|
|
1889
|
-
width:
|
|
1890
|
-
style: '
|
|
1891
|
-
|
|
1892
|
-
opacity:
|
|
1893
|
-
constructor(parent: BaseElement2D
|
|
1938
|
+
color: OutlineDeclaration['color'];
|
|
1939
|
+
width: OutlineDeclaration['width'];
|
|
1940
|
+
style: OutlineDeclaration['style'];
|
|
1941
|
+
src?: OutlineDeclaration['src'];
|
|
1942
|
+
opacity: OutlineDeclaration['opacity'];
|
|
1943
|
+
constructor(parent: BaseElement2D);
|
|
1944
|
+
setProperties(properties?: OutlineProperty): this;
|
|
1894
1945
|
protected _updateProperty(key: PropertyKey, value: any, oldValue: any, declaration?: PropertyDeclaration): void;
|
|
1895
1946
|
canDraw(): boolean;
|
|
1896
1947
|
draw(): void;
|
|
1897
1948
|
}
|
|
1898
1949
|
|
|
1899
|
-
type BaseElement2DShadowProperties = ShadowDeclaration;
|
|
1900
1950
|
declare class BaseElement2DShadow extends CoreObject {
|
|
1901
1951
|
parent: BaseElement2D;
|
|
1902
|
-
color:
|
|
1903
|
-
blur:
|
|
1904
|
-
offsetY:
|
|
1905
|
-
offsetX:
|
|
1906
|
-
constructor(parent: BaseElement2D
|
|
1952
|
+
color: ShadowDeclaration['color'];
|
|
1953
|
+
blur: ShadowDeclaration['blur'];
|
|
1954
|
+
offsetY: ShadowDeclaration['offsetX'];
|
|
1955
|
+
offsetX: ShadowDeclaration['offsetY'];
|
|
1956
|
+
constructor(parent: BaseElement2D);
|
|
1957
|
+
setProperties(properties?: ShadowProperty): this;
|
|
1907
1958
|
protected _updateProperty(key: PropertyKey, value: any, oldValue: any, declaration?: PropertyDeclaration): void;
|
|
1908
1959
|
updateEffect(): void;
|
|
1909
1960
|
}
|
|
1910
1961
|
|
|
1911
|
-
interface BaseElement2DStyleProperties extends Omit<StyleDeclaration, 'left' | 'top' | 'width' | 'height'
|
|
1962
|
+
interface BaseElement2DStyleProperties extends Omit<StyleDeclaration, 'left' | 'top' | 'width' | 'height'> {
|
|
1912
1963
|
left: number;
|
|
1913
1964
|
top: number;
|
|
1914
1965
|
width: number;
|
|
1915
1966
|
height: number;
|
|
1916
|
-
backgroundColor: 'none' | ColorValue;
|
|
1917
|
-
borderColor: 'none' | ColorValue;
|
|
1918
|
-
outlineColor: 'none' | ColorValue;
|
|
1919
1967
|
}
|
|
1920
1968
|
interface BaseElement2DStyle extends BaseElement2DStyleProperties {
|
|
1921
1969
|
}
|
|
@@ -1923,17 +1971,17 @@ declare class BaseElement2DStyle extends Resource {
|
|
|
1923
1971
|
constructor(properties?: Partial<BaseElement2DStyleProperties>);
|
|
1924
1972
|
}
|
|
1925
1973
|
|
|
1926
|
-
type BaseElement2DTextProperties = TextOptions;
|
|
1927
1974
|
declare class BaseElement2DText extends CoreObject {
|
|
1928
1975
|
parent: BaseElement2D;
|
|
1929
1976
|
content: TextOptions['content'];
|
|
1930
1977
|
effects?: TextOptions['effects'];
|
|
1931
1978
|
measureDom?: TextOptions['measureDom'];
|
|
1932
1979
|
fonts?: TextOptions['fonts'];
|
|
1933
|
-
constructor(parent: BaseElement2D
|
|
1980
|
+
constructor(parent: BaseElement2D);
|
|
1934
1981
|
texture: CanvasTexture;
|
|
1935
1982
|
baseText: Text;
|
|
1936
1983
|
measureResult?: MeasureResult;
|
|
1984
|
+
setProperties(properties?: TextProperty): this;
|
|
1937
1985
|
protected _updateProperty(key: PropertyKey, value: any, oldValue: any, declaration?: PropertyDeclaration): void;
|
|
1938
1986
|
protected _updateText(): void;
|
|
1939
1987
|
measure(): MeasureResult;
|
|
@@ -1942,40 +1990,20 @@ declare class BaseElement2DText extends CoreObject {
|
|
|
1942
1990
|
draw(): void;
|
|
1943
1991
|
}
|
|
1944
1992
|
|
|
1945
|
-
interface Node2DProperties extends CanvasItemProperties {
|
|
1946
|
-
}
|
|
1947
|
-
declare class Node2D extends CanvasItem {
|
|
1948
|
-
position: Vector2;
|
|
1949
|
-
rotation: number;
|
|
1950
|
-
scale: Vector2;
|
|
1951
|
-
skew: Vector2;
|
|
1952
|
-
transform: Transform2D;
|
|
1953
|
-
globalPosition: Vector2;
|
|
1954
|
-
globalRotation: number;
|
|
1955
|
-
globalScale: Vector2;
|
|
1956
|
-
globalSkew: Vector2;
|
|
1957
|
-
globalTransform: Transform2D;
|
|
1958
|
-
protected _parentTransformDirtyId?: number;
|
|
1959
|
-
constructor(properties?: Partial<Node2DProperties>, nodes?: Node[]);
|
|
1960
|
-
protected _updateTransform(): void;
|
|
1961
|
-
protected _updateGlobalTransform(): void;
|
|
1962
|
-
protected _transformVertices(vertices: number[]): number[];
|
|
1963
|
-
protected _relayout(batchables: CanvasBatchable[]): CanvasBatchable[];
|
|
1964
|
-
protected _process(delta: number): void;
|
|
1965
|
-
}
|
|
1966
|
-
|
|
1967
1993
|
interface BaseElement2DEventMap extends CanvasItemEventMap {
|
|
1968
1994
|
updateStyleProperty: (key: PropertyKey, value: any, oldValue: any, declaration?: PropertyDeclaration) => void;
|
|
1969
1995
|
}
|
|
1970
1996
|
interface BaseElement2DProperties extends Node2DProperties {
|
|
1971
1997
|
modulate: ColorValue;
|
|
1972
1998
|
blendMode: WebGLBlendMode;
|
|
1973
|
-
style:
|
|
1974
|
-
|
|
1975
|
-
geometry:
|
|
1976
|
-
fill:
|
|
1977
|
-
|
|
1978
|
-
|
|
1999
|
+
style: StyleProperty;
|
|
2000
|
+
background: BackgroundProperty;
|
|
2001
|
+
geometry: GeometryProperty;
|
|
2002
|
+
fill: FillProperty;
|
|
2003
|
+
outline: OutlineProperty;
|
|
2004
|
+
foreground: ForegroundProperty;
|
|
2005
|
+
text: TextProperty;
|
|
2006
|
+
shadow: ShadowProperty;
|
|
1979
2007
|
}
|
|
1980
2008
|
interface BaseElement2D {
|
|
1981
2009
|
on: (<K extends keyof BaseElement2DEventMap>(type: K, listener: BaseElement2DEventMap[K], options?: EventListenerOptions) => this) & ((type: string, listener: EventListenerValue, options?: EventListenerOptions) => this);
|
|
@@ -1988,21 +2016,27 @@ declare class BaseElement2D extends Node2D implements Rectangulable {
|
|
|
1988
2016
|
protected _style: BaseElement2DStyle;
|
|
1989
2017
|
get style(): BaseElement2DStyle;
|
|
1990
2018
|
set style(style: BaseElement2DStyle);
|
|
1991
|
-
protected
|
|
1992
|
-
get
|
|
1993
|
-
set
|
|
2019
|
+
protected _background: BaseElement2DBackground;
|
|
2020
|
+
get background(): BaseElement2DBackground;
|
|
2021
|
+
set background(value: BackgroundProperty);
|
|
1994
2022
|
protected _geometry: BaseElement2DGeometry;
|
|
1995
2023
|
get geometry(): BaseElement2DGeometry;
|
|
1996
|
-
set geometry(value:
|
|
2024
|
+
set geometry(value: GeometryProperty);
|
|
1997
2025
|
protected _fill: BaseElement2DFill;
|
|
1998
2026
|
get fill(): BaseElement2DFill;
|
|
1999
|
-
set fill(value:
|
|
2027
|
+
set fill(value: FillProperty);
|
|
2000
2028
|
protected _outline: BaseElement2DOutline;
|
|
2001
2029
|
get outline(): BaseElement2DOutline;
|
|
2002
|
-
set outline(value:
|
|
2030
|
+
set outline(value: OutlineProperty);
|
|
2031
|
+
protected _foreground: BaseElement2DForeground;
|
|
2032
|
+
get foreground(): BaseElement2DForeground;
|
|
2033
|
+
set foreground(value: ForegroundProperty);
|
|
2034
|
+
protected _text: BaseElement2DText;
|
|
2035
|
+
get text(): BaseElement2DText;
|
|
2036
|
+
set text(value: TextProperty);
|
|
2003
2037
|
protected _shadow: BaseElement2DShadow;
|
|
2004
2038
|
get shadow(): BaseElement2DShadow;
|
|
2005
|
-
set shadow(value:
|
|
2039
|
+
set shadow(value: ShadowProperty);
|
|
2006
2040
|
constructor(properties?: Partial<BaseElement2DProperties>, nodes?: Node[]);
|
|
2007
2041
|
setProperties(properties?: Record<PropertyKey, any>): this;
|
|
2008
2042
|
protected _updateStyleProperty(key: PropertyKey, value: any, oldValue: any, declaration?: PropertyDeclaration): void;
|
|
@@ -2141,14 +2175,14 @@ declare class Graphics2D extends Node2D {
|
|
|
2141
2175
|
}
|
|
2142
2176
|
|
|
2143
2177
|
interface Image2DProperties extends Element2DProperties {
|
|
2144
|
-
src:
|
|
2145
|
-
srcRect:
|
|
2178
|
+
src: string;
|
|
2179
|
+
srcRect: TextureFillSourceRect;
|
|
2146
2180
|
gif: boolean;
|
|
2147
2181
|
}
|
|
2148
2182
|
declare class Image2D extends Element2D {
|
|
2149
2183
|
texture?: AnimatedTexture;
|
|
2150
2184
|
src: string;
|
|
2151
|
-
srcRect:
|
|
2185
|
+
srcRect: TextureFillSourceRect;
|
|
2152
2186
|
gif: boolean;
|
|
2153
2187
|
get currentFrameTexture(): Texture2D | undefined;
|
|
2154
2188
|
get textureDuration(): number;
|
|
@@ -3222,5 +3256,5 @@ interface RenderOptions {
|
|
|
3222
3256
|
}
|
|
3223
3257
|
declare function render(options: RenderOptions): Promise<HTMLCanvasElement>;
|
|
3224
3258
|
|
|
3225
|
-
export { AnimatedTexture, Animation, Assets, Audio, AudioPipeline, AudioProcessor, AudioSpectrum, AudioWaveform, BaseElement2D, BaseElement2DFill, 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, 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 };
|
|
3226
|
-
export type { AnimationEffectMode, AnimationProperties, AssetHandler, AudioWaveformProperties, BaseElement2DEventMap,
|
|
3259
|
+
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, 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 };
|
|
3260
|
+
export type { AnimationEffectMode, AnimationProperties, AssetHandler, AudioWaveformProperties, BaseElement2DEventMap, BaseElement2DProperties, BaseElement2DStyleProperties, Batchable2D, CSSFilterKey, CSSFilters, CanvasBatchable, CanvasItemEventMap, CanvasItemProperties, ColorAdjustEffectProperties, ColorFilterEffectProperties, ColorOverlayEffectProperties, ColorRemoveEffectProperties, ColorReplaceEffectProperties, ColorValue, 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 };
|