modern-canvas 0.4.22 → 0.4.23
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 +594 -296
- package/dist/index.d.cts +108 -37
- package/dist/index.d.mts +108 -37
- package/dist/index.d.ts +108 -37
- package/dist/index.js +42 -42
- package/dist/index.mjs +590 -297
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Font } from 'modern-font';
|
|
2
2
|
import { AnimationItem } from 'lottie-web';
|
|
3
3
|
import { AnyColor, Colord } from 'colord';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { Node as Node$1, Direction } from 'yoga-layout/load';
|
|
4
|
+
import { Path2D, LineCap, LineJoin, LineStyle, Path2DSet } from 'modern-path2d';
|
|
5
|
+
import { ImageFillSource, ImageFillTile, FillDeclaration, Path2DDeclaration, OutlineDeclaration, ShadowDeclaration, StyleDeclaration, ImageSource, ImageSourceRect } from 'modern-idoc';
|
|
7
6
|
import { TextOptions, Text, MeasureResult } from 'modern-text';
|
|
7
|
+
import { Node as Node$1, Direction } from 'yoga-layout/load';
|
|
8
8
|
|
|
9
9
|
declare abstract class Loader {
|
|
10
10
|
abstract install(assets: Assets): this;
|
|
@@ -1850,6 +1850,68 @@ declare class Transition extends Effect {
|
|
|
1850
1850
|
constructor(properties?: Partial<TransitionProperties>, children?: Node[]);
|
|
1851
1851
|
}
|
|
1852
1852
|
|
|
1853
|
+
type BaseElement2DFillProperties = FillDeclaration;
|
|
1854
|
+
declare class BaseElement2DFill extends CoreObject {
|
|
1855
|
+
parent: BaseElement2D;
|
|
1856
|
+
color?: ColorValue;
|
|
1857
|
+
image?: ImageFillSource;
|
|
1858
|
+
dpi?: number;
|
|
1859
|
+
rotateWithShape?: boolean;
|
|
1860
|
+
tile?: ImageFillTile;
|
|
1861
|
+
protected _image?: Texture2D<ImageBitmap>;
|
|
1862
|
+
constructor(parent: BaseElement2D, properties?: Partial<BaseElement2DFillProperties>);
|
|
1863
|
+
protected _updateProperty(key: PropertyKey, value: any, oldValue: any, declaration?: PropertyDeclaration): void;
|
|
1864
|
+
loadImage(): Promise<Texture2D<ImageBitmap> | undefined>;
|
|
1865
|
+
protected _updateImage(): Promise<void>;
|
|
1866
|
+
canDraw(): boolean;
|
|
1867
|
+
draw(): void;
|
|
1868
|
+
}
|
|
1869
|
+
|
|
1870
|
+
interface BaseElement2DGeometryProperties {
|
|
1871
|
+
name?: string;
|
|
1872
|
+
svg?: string;
|
|
1873
|
+
viewBox?: number[];
|
|
1874
|
+
data?: Path2DDeclaration[];
|
|
1875
|
+
}
|
|
1876
|
+
declare class BaseElement2DGeometry extends CoreObject {
|
|
1877
|
+
parent: BaseElement2D;
|
|
1878
|
+
name?: string;
|
|
1879
|
+
svg?: string;
|
|
1880
|
+
viewBox: number[];
|
|
1881
|
+
data: Path2DDeclaration[];
|
|
1882
|
+
protected _path2DSet: Path2DSet;
|
|
1883
|
+
constructor(parent: BaseElement2D, properties?: Partial<BaseElement2DGeometryProperties>);
|
|
1884
|
+
protected _updateProperty(key: PropertyKey, value: any, oldValue: any, declaration?: PropertyDeclaration): void;
|
|
1885
|
+
protected _updatePath2DSet(): void;
|
|
1886
|
+
draw(): void;
|
|
1887
|
+
}
|
|
1888
|
+
|
|
1889
|
+
type BaseElement2DOutlineProperties = OutlineDeclaration;
|
|
1890
|
+
declare class BaseElement2DOutline extends CoreObject {
|
|
1891
|
+
parent: BaseElement2D;
|
|
1892
|
+
color: ColorValue;
|
|
1893
|
+
width: number;
|
|
1894
|
+
style: 'dashed' | 'solid' | string;
|
|
1895
|
+
image?: string;
|
|
1896
|
+
opacity: number;
|
|
1897
|
+
constructor(parent: BaseElement2D, properties?: Partial<BaseElement2DOutlineProperties>);
|
|
1898
|
+
protected _updateProperty(key: PropertyKey, value: any, oldValue: any, declaration?: PropertyDeclaration): void;
|
|
1899
|
+
canDraw(): boolean;
|
|
1900
|
+
draw(): void;
|
|
1901
|
+
}
|
|
1902
|
+
|
|
1903
|
+
type BaseElement2DShadowProperties = ShadowDeclaration;
|
|
1904
|
+
declare class BaseElement2DShadow extends CoreObject {
|
|
1905
|
+
parent: BaseElement2D;
|
|
1906
|
+
color: string;
|
|
1907
|
+
blur: number;
|
|
1908
|
+
offsetY: number;
|
|
1909
|
+
offsetX: number;
|
|
1910
|
+
constructor(parent: BaseElement2D, properties?: Partial<BaseElement2DShadowProperties>);
|
|
1911
|
+
protected _updateProperty(key: PropertyKey, value: any, oldValue: any, declaration?: PropertyDeclaration): void;
|
|
1912
|
+
updateEffect(): void;
|
|
1913
|
+
}
|
|
1914
|
+
|
|
1853
1915
|
interface BaseElement2DStyleProperties extends Omit<StyleDeclaration, 'left' | 'top' | 'width' | 'height' | 'backgroundColor' | 'borderColor' | 'outlineColor'> {
|
|
1854
1916
|
left: number;
|
|
1855
1917
|
top: number;
|
|
@@ -1869,6 +1931,25 @@ declare class BaseElement2DStyle extends Resource {
|
|
|
1869
1931
|
loadBackgroundImage(): Promise<Texture2D<ImageBitmap> | undefined>;
|
|
1870
1932
|
}
|
|
1871
1933
|
|
|
1934
|
+
type BaseElement2DTextProperties = TextOptions;
|
|
1935
|
+
declare class BaseElement2DText extends CoreObject {
|
|
1936
|
+
parent: BaseElement2D;
|
|
1937
|
+
content: TextOptions['content'];
|
|
1938
|
+
effects?: TextOptions['effects'];
|
|
1939
|
+
measureDom?: TextOptions['measureDom'];
|
|
1940
|
+
fonts?: TextOptions['fonts'];
|
|
1941
|
+
constructor(parent: BaseElement2D, properties?: Partial<BaseElement2DTextProperties>);
|
|
1942
|
+
texture: CanvasTexture;
|
|
1943
|
+
text: Text;
|
|
1944
|
+
measureResult?: MeasureResult;
|
|
1945
|
+
protected _updateProperty(key: PropertyKey, value: any, oldValue: any, declaration?: PropertyDeclaration): void;
|
|
1946
|
+
protected _updateText(): void;
|
|
1947
|
+
measure(): MeasureResult;
|
|
1948
|
+
updateMeasure(): this;
|
|
1949
|
+
canDraw(): boolean;
|
|
1950
|
+
draw(): void;
|
|
1951
|
+
}
|
|
1952
|
+
|
|
1872
1953
|
interface Node2DProperties extends CanvasItemProperties {
|
|
1873
1954
|
}
|
|
1874
1955
|
declare class Node2D extends CanvasItem {
|
|
@@ -1891,38 +1972,18 @@ declare class Node2D extends CanvasItem {
|
|
|
1891
1972
|
protected _process(delta: number): void;
|
|
1892
1973
|
}
|
|
1893
1974
|
|
|
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
|
-
|
|
1917
1975
|
interface BaseElement2DEventMap extends CanvasItemEventMap {
|
|
1918
1976
|
updateStyleProperty: (key: PropertyKey, value: any, oldValue: any, declaration?: PropertyDeclaration) => void;
|
|
1919
1977
|
}
|
|
1920
1978
|
interface BaseElement2DProperties extends Node2DProperties {
|
|
1921
|
-
style: Partial<BaseElement2DStyleProperties>;
|
|
1922
|
-
shadow: Partial<ShadowDeclaration>;
|
|
1923
|
-
outline: Partial<OutlineDeclaration>;
|
|
1924
1979
|
modulate: ColorValue;
|
|
1925
1980
|
blendMode: WebGLBlendMode;
|
|
1981
|
+
style: Partial<BaseElement2DStyleProperties>;
|
|
1982
|
+
text: Partial<BaseElement2DTextProperties>;
|
|
1983
|
+
geometry: Partial<BaseElement2DGeometryProperties>;
|
|
1984
|
+
fill: Partial<BaseElement2DFillProperties>;
|
|
1985
|
+
shadow: Partial<BaseElement2DShadowProperties>;
|
|
1986
|
+
outline: Partial<BaseElement2DOutlineProperties>;
|
|
1926
1987
|
}
|
|
1927
1988
|
interface BaseElement2D {
|
|
1928
1989
|
on: (<K extends keyof BaseElement2DEventMap>(type: K, listener: BaseElement2DEventMap[K], options?: EventListenerOptions) => this) & ((type: string, listener: EventListenerValue, options?: EventListenerOptions) => this);
|
|
@@ -1935,8 +1996,21 @@ declare class BaseElement2D extends Node2D implements Rectangulable {
|
|
|
1935
1996
|
protected _style: BaseElement2DStyle;
|
|
1936
1997
|
get style(): BaseElement2DStyle;
|
|
1937
1998
|
set style(style: BaseElement2DStyle);
|
|
1938
|
-
|
|
1939
|
-
|
|
1999
|
+
protected _text: BaseElement2DText;
|
|
2000
|
+
get text(): BaseElement2DText;
|
|
2001
|
+
set text(value: Partial<BaseElement2DTextProperties>);
|
|
2002
|
+
protected _geometry: BaseElement2DGeometry;
|
|
2003
|
+
get geometry(): BaseElement2DGeometry;
|
|
2004
|
+
set geometry(value: Partial<BaseElement2DGeometryProperties>);
|
|
2005
|
+
protected _fill: BaseElement2DFill;
|
|
2006
|
+
get fill(): BaseElement2DFill;
|
|
2007
|
+
set fill(value: Partial<BaseElement2DFillProperties>);
|
|
2008
|
+
protected _outline: BaseElement2DOutline;
|
|
2009
|
+
get outline(): BaseElement2DOutline;
|
|
2010
|
+
set outline(value: Partial<BaseElement2DOutlineProperties>);
|
|
2011
|
+
protected _shadow: BaseElement2DShadow;
|
|
2012
|
+
get shadow(): BaseElement2DShadow;
|
|
2013
|
+
set shadow(value: Partial<BaseElement2DShadowProperties>);
|
|
1940
2014
|
constructor(properties?: Partial<BaseElement2DProperties>, nodes?: Node[]);
|
|
1941
2015
|
setProperties(properties?: Record<PropertyKey, any>): this;
|
|
1942
2016
|
protected _updateStyleProperty(key: PropertyKey, value: any, oldValue: any, declaration?: PropertyDeclaration): void;
|
|
@@ -1958,9 +2032,6 @@ declare class BaseElement2D extends Node2D implements Rectangulable {
|
|
|
1958
2032
|
protected _repaint(batchables: CanvasBatchable[]): CanvasBatchable[];
|
|
1959
2033
|
canPointerEvents(): boolean;
|
|
1960
2034
|
input(event: InputEvent, key: InputEventKey): void;
|
|
1961
|
-
protected _pointerEntering: boolean;
|
|
1962
|
-
protected _pointerEntered(): void;
|
|
1963
|
-
protected _pointerExited(): void;
|
|
1964
2035
|
protected _pointerInput(point: {
|
|
1965
2036
|
x: number;
|
|
1966
2037
|
y: number;
|
|
@@ -2092,8 +2163,8 @@ interface Image2DProperties extends Element2DProperties {
|
|
|
2092
2163
|
}
|
|
2093
2164
|
declare class Image2D extends Element2D {
|
|
2094
2165
|
texture?: AnimatedTexture;
|
|
2095
|
-
srcRect: ImageSourceRect;
|
|
2096
2166
|
src: string;
|
|
2167
|
+
srcRect: ImageSourceRect;
|
|
2097
2168
|
gif: boolean;
|
|
2098
2169
|
get currentFrameTexture(): Texture2D | undefined;
|
|
2099
2170
|
get textureDuration(): number;
|
|
@@ -2157,7 +2228,7 @@ declare class Text2D extends TextureRect2D<CanvasTexture> {
|
|
|
2157
2228
|
measureDom?: TextOptions['measureDom'];
|
|
2158
2229
|
fonts?: TextOptions['fonts'];
|
|
2159
2230
|
texture: CanvasTexture;
|
|
2160
|
-
|
|
2231
|
+
protected _baseText: Text;
|
|
2161
2232
|
measureResult?: MeasureResult;
|
|
2162
2233
|
protected _subTextsCount: number;
|
|
2163
2234
|
constructor(properties?: Partial<Text2DProperties>, children?: Node[]);
|
|
@@ -3158,4 +3229,4 @@ interface RenderOptions {
|
|
|
3158
3229
|
}
|
|
3159
3230
|
declare function render(options: RenderOptions): Promise<HTMLCanvasElement>;
|
|
3160
3231
|
|
|
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 };
|
|
3232
|
+
export { AnimatedTexture, Animation, type AnimationEffectMode, type AnimationProperties, type AssetHandler, Assets, Audio, AudioPipeline, AudioProcessor, AudioSpectrum, AudioWaveform, type AudioWaveformProperties, BaseElement2D, type BaseElement2DEventMap, BaseElement2DFill, type BaseElement2DFillProperties, BaseElement2DGeometry, type BaseElement2DGeometryProperties, BaseElement2DOutline, type BaseElement2DOutlineProperties, type BaseElement2DProperties, BaseElement2DShadow, type BaseElement2DShadowProperties, BaseElement2DStyle, type BaseElement2DStyleProperties, BaseElement2DText, type BaseElement2DTextProperties, 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 };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Font } from 'modern-font';
|
|
2
2
|
import { AnimationItem } from 'lottie-web';
|
|
3
3
|
import { AnyColor, Colord } from 'colord';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { Node as Node$1, Direction } from 'yoga-layout/load';
|
|
4
|
+
import { Path2D, LineCap, LineJoin, LineStyle, Path2DSet } from 'modern-path2d';
|
|
5
|
+
import { ImageFillSource, ImageFillTile, FillDeclaration, Path2DDeclaration, OutlineDeclaration, ShadowDeclaration, StyleDeclaration, ImageSource, ImageSourceRect } from 'modern-idoc';
|
|
7
6
|
import { TextOptions, Text, MeasureResult } from 'modern-text';
|
|
7
|
+
import { Node as Node$1, Direction } from 'yoga-layout/load';
|
|
8
8
|
|
|
9
9
|
declare abstract class Loader {
|
|
10
10
|
abstract install(assets: Assets): this;
|
|
@@ -1850,6 +1850,68 @@ declare class Transition extends Effect {
|
|
|
1850
1850
|
constructor(properties?: Partial<TransitionProperties>, children?: Node[]);
|
|
1851
1851
|
}
|
|
1852
1852
|
|
|
1853
|
+
type BaseElement2DFillProperties = FillDeclaration;
|
|
1854
|
+
declare class BaseElement2DFill extends CoreObject {
|
|
1855
|
+
parent: BaseElement2D;
|
|
1856
|
+
color?: ColorValue;
|
|
1857
|
+
image?: ImageFillSource;
|
|
1858
|
+
dpi?: number;
|
|
1859
|
+
rotateWithShape?: boolean;
|
|
1860
|
+
tile?: ImageFillTile;
|
|
1861
|
+
protected _image?: Texture2D<ImageBitmap>;
|
|
1862
|
+
constructor(parent: BaseElement2D, properties?: Partial<BaseElement2DFillProperties>);
|
|
1863
|
+
protected _updateProperty(key: PropertyKey, value: any, oldValue: any, declaration?: PropertyDeclaration): void;
|
|
1864
|
+
loadImage(): Promise<Texture2D<ImageBitmap> | undefined>;
|
|
1865
|
+
protected _updateImage(): Promise<void>;
|
|
1866
|
+
canDraw(): boolean;
|
|
1867
|
+
draw(): void;
|
|
1868
|
+
}
|
|
1869
|
+
|
|
1870
|
+
interface BaseElement2DGeometryProperties {
|
|
1871
|
+
name?: string;
|
|
1872
|
+
svg?: string;
|
|
1873
|
+
viewBox?: number[];
|
|
1874
|
+
data?: Path2DDeclaration[];
|
|
1875
|
+
}
|
|
1876
|
+
declare class BaseElement2DGeometry extends CoreObject {
|
|
1877
|
+
parent: BaseElement2D;
|
|
1878
|
+
name?: string;
|
|
1879
|
+
svg?: string;
|
|
1880
|
+
viewBox: number[];
|
|
1881
|
+
data: Path2DDeclaration[];
|
|
1882
|
+
protected _path2DSet: Path2DSet;
|
|
1883
|
+
constructor(parent: BaseElement2D, properties?: Partial<BaseElement2DGeometryProperties>);
|
|
1884
|
+
protected _updateProperty(key: PropertyKey, value: any, oldValue: any, declaration?: PropertyDeclaration): void;
|
|
1885
|
+
protected _updatePath2DSet(): void;
|
|
1886
|
+
draw(): void;
|
|
1887
|
+
}
|
|
1888
|
+
|
|
1889
|
+
type BaseElement2DOutlineProperties = OutlineDeclaration;
|
|
1890
|
+
declare class BaseElement2DOutline extends CoreObject {
|
|
1891
|
+
parent: BaseElement2D;
|
|
1892
|
+
color: ColorValue;
|
|
1893
|
+
width: number;
|
|
1894
|
+
style: 'dashed' | 'solid' | string;
|
|
1895
|
+
image?: string;
|
|
1896
|
+
opacity: number;
|
|
1897
|
+
constructor(parent: BaseElement2D, properties?: Partial<BaseElement2DOutlineProperties>);
|
|
1898
|
+
protected _updateProperty(key: PropertyKey, value: any, oldValue: any, declaration?: PropertyDeclaration): void;
|
|
1899
|
+
canDraw(): boolean;
|
|
1900
|
+
draw(): void;
|
|
1901
|
+
}
|
|
1902
|
+
|
|
1903
|
+
type BaseElement2DShadowProperties = ShadowDeclaration;
|
|
1904
|
+
declare class BaseElement2DShadow extends CoreObject {
|
|
1905
|
+
parent: BaseElement2D;
|
|
1906
|
+
color: string;
|
|
1907
|
+
blur: number;
|
|
1908
|
+
offsetY: number;
|
|
1909
|
+
offsetX: number;
|
|
1910
|
+
constructor(parent: BaseElement2D, properties?: Partial<BaseElement2DShadowProperties>);
|
|
1911
|
+
protected _updateProperty(key: PropertyKey, value: any, oldValue: any, declaration?: PropertyDeclaration): void;
|
|
1912
|
+
updateEffect(): void;
|
|
1913
|
+
}
|
|
1914
|
+
|
|
1853
1915
|
interface BaseElement2DStyleProperties extends Omit<StyleDeclaration, 'left' | 'top' | 'width' | 'height' | 'backgroundColor' | 'borderColor' | 'outlineColor'> {
|
|
1854
1916
|
left: number;
|
|
1855
1917
|
top: number;
|
|
@@ -1869,6 +1931,25 @@ declare class BaseElement2DStyle extends Resource {
|
|
|
1869
1931
|
loadBackgroundImage(): Promise<Texture2D<ImageBitmap> | undefined>;
|
|
1870
1932
|
}
|
|
1871
1933
|
|
|
1934
|
+
type BaseElement2DTextProperties = TextOptions;
|
|
1935
|
+
declare class BaseElement2DText extends CoreObject {
|
|
1936
|
+
parent: BaseElement2D;
|
|
1937
|
+
content: TextOptions['content'];
|
|
1938
|
+
effects?: TextOptions['effects'];
|
|
1939
|
+
measureDom?: TextOptions['measureDom'];
|
|
1940
|
+
fonts?: TextOptions['fonts'];
|
|
1941
|
+
constructor(parent: BaseElement2D, properties?: Partial<BaseElement2DTextProperties>);
|
|
1942
|
+
texture: CanvasTexture;
|
|
1943
|
+
text: Text;
|
|
1944
|
+
measureResult?: MeasureResult;
|
|
1945
|
+
protected _updateProperty(key: PropertyKey, value: any, oldValue: any, declaration?: PropertyDeclaration): void;
|
|
1946
|
+
protected _updateText(): void;
|
|
1947
|
+
measure(): MeasureResult;
|
|
1948
|
+
updateMeasure(): this;
|
|
1949
|
+
canDraw(): boolean;
|
|
1950
|
+
draw(): void;
|
|
1951
|
+
}
|
|
1952
|
+
|
|
1872
1953
|
interface Node2DProperties extends CanvasItemProperties {
|
|
1873
1954
|
}
|
|
1874
1955
|
declare class Node2D extends CanvasItem {
|
|
@@ -1891,38 +1972,18 @@ declare class Node2D extends CanvasItem {
|
|
|
1891
1972
|
protected _process(delta: number): void;
|
|
1892
1973
|
}
|
|
1893
1974
|
|
|
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
|
-
|
|
1917
1975
|
interface BaseElement2DEventMap extends CanvasItemEventMap {
|
|
1918
1976
|
updateStyleProperty: (key: PropertyKey, value: any, oldValue: any, declaration?: PropertyDeclaration) => void;
|
|
1919
1977
|
}
|
|
1920
1978
|
interface BaseElement2DProperties extends Node2DProperties {
|
|
1921
|
-
style: Partial<BaseElement2DStyleProperties>;
|
|
1922
|
-
shadow: Partial<ShadowDeclaration>;
|
|
1923
|
-
outline: Partial<OutlineDeclaration>;
|
|
1924
1979
|
modulate: ColorValue;
|
|
1925
1980
|
blendMode: WebGLBlendMode;
|
|
1981
|
+
style: Partial<BaseElement2DStyleProperties>;
|
|
1982
|
+
text: Partial<BaseElement2DTextProperties>;
|
|
1983
|
+
geometry: Partial<BaseElement2DGeometryProperties>;
|
|
1984
|
+
fill: Partial<BaseElement2DFillProperties>;
|
|
1985
|
+
shadow: Partial<BaseElement2DShadowProperties>;
|
|
1986
|
+
outline: Partial<BaseElement2DOutlineProperties>;
|
|
1926
1987
|
}
|
|
1927
1988
|
interface BaseElement2D {
|
|
1928
1989
|
on: (<K extends keyof BaseElement2DEventMap>(type: K, listener: BaseElement2DEventMap[K], options?: EventListenerOptions) => this) & ((type: string, listener: EventListenerValue, options?: EventListenerOptions) => this);
|
|
@@ -1935,8 +1996,21 @@ declare class BaseElement2D extends Node2D implements Rectangulable {
|
|
|
1935
1996
|
protected _style: BaseElement2DStyle;
|
|
1936
1997
|
get style(): BaseElement2DStyle;
|
|
1937
1998
|
set style(style: BaseElement2DStyle);
|
|
1938
|
-
|
|
1939
|
-
|
|
1999
|
+
protected _text: BaseElement2DText;
|
|
2000
|
+
get text(): BaseElement2DText;
|
|
2001
|
+
set text(value: Partial<BaseElement2DTextProperties>);
|
|
2002
|
+
protected _geometry: BaseElement2DGeometry;
|
|
2003
|
+
get geometry(): BaseElement2DGeometry;
|
|
2004
|
+
set geometry(value: Partial<BaseElement2DGeometryProperties>);
|
|
2005
|
+
protected _fill: BaseElement2DFill;
|
|
2006
|
+
get fill(): BaseElement2DFill;
|
|
2007
|
+
set fill(value: Partial<BaseElement2DFillProperties>);
|
|
2008
|
+
protected _outline: BaseElement2DOutline;
|
|
2009
|
+
get outline(): BaseElement2DOutline;
|
|
2010
|
+
set outline(value: Partial<BaseElement2DOutlineProperties>);
|
|
2011
|
+
protected _shadow: BaseElement2DShadow;
|
|
2012
|
+
get shadow(): BaseElement2DShadow;
|
|
2013
|
+
set shadow(value: Partial<BaseElement2DShadowProperties>);
|
|
1940
2014
|
constructor(properties?: Partial<BaseElement2DProperties>, nodes?: Node[]);
|
|
1941
2015
|
setProperties(properties?: Record<PropertyKey, any>): this;
|
|
1942
2016
|
protected _updateStyleProperty(key: PropertyKey, value: any, oldValue: any, declaration?: PropertyDeclaration): void;
|
|
@@ -1958,9 +2032,6 @@ declare class BaseElement2D extends Node2D implements Rectangulable {
|
|
|
1958
2032
|
protected _repaint(batchables: CanvasBatchable[]): CanvasBatchable[];
|
|
1959
2033
|
canPointerEvents(): boolean;
|
|
1960
2034
|
input(event: InputEvent, key: InputEventKey): void;
|
|
1961
|
-
protected _pointerEntering: boolean;
|
|
1962
|
-
protected _pointerEntered(): void;
|
|
1963
|
-
protected _pointerExited(): void;
|
|
1964
2035
|
protected _pointerInput(point: {
|
|
1965
2036
|
x: number;
|
|
1966
2037
|
y: number;
|
|
@@ -2092,8 +2163,8 @@ interface Image2DProperties extends Element2DProperties {
|
|
|
2092
2163
|
}
|
|
2093
2164
|
declare class Image2D extends Element2D {
|
|
2094
2165
|
texture?: AnimatedTexture;
|
|
2095
|
-
srcRect: ImageSourceRect;
|
|
2096
2166
|
src: string;
|
|
2167
|
+
srcRect: ImageSourceRect;
|
|
2097
2168
|
gif: boolean;
|
|
2098
2169
|
get currentFrameTexture(): Texture2D | undefined;
|
|
2099
2170
|
get textureDuration(): number;
|
|
@@ -2157,7 +2228,7 @@ declare class Text2D extends TextureRect2D<CanvasTexture> {
|
|
|
2157
2228
|
measureDom?: TextOptions['measureDom'];
|
|
2158
2229
|
fonts?: TextOptions['fonts'];
|
|
2159
2230
|
texture: CanvasTexture;
|
|
2160
|
-
|
|
2231
|
+
protected _baseText: Text;
|
|
2161
2232
|
measureResult?: MeasureResult;
|
|
2162
2233
|
protected _subTextsCount: number;
|
|
2163
2234
|
constructor(properties?: Partial<Text2DProperties>, children?: Node[]);
|
|
@@ -3158,4 +3229,4 @@ interface RenderOptions {
|
|
|
3158
3229
|
}
|
|
3159
3230
|
declare function render(options: RenderOptions): Promise<HTMLCanvasElement>;
|
|
3160
3231
|
|
|
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 };
|
|
3232
|
+
export { AnimatedTexture, Animation, type AnimationEffectMode, type AnimationProperties, type AssetHandler, Assets, Audio, AudioPipeline, AudioProcessor, AudioSpectrum, AudioWaveform, type AudioWaveformProperties, BaseElement2D, type BaseElement2DEventMap, BaseElement2DFill, type BaseElement2DFillProperties, BaseElement2DGeometry, type BaseElement2DGeometryProperties, BaseElement2DOutline, type BaseElement2DOutlineProperties, type BaseElement2DProperties, BaseElement2DShadow, type BaseElement2DShadowProperties, BaseElement2DStyle, type BaseElement2DStyleProperties, BaseElement2DText, type BaseElement2DTextProperties, 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 };
|