modern-canvas 0.6.13 → 0.7.0
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/README.md +6 -4
- package/dist/index.cjs +1660 -1688
- package/dist/index.d.cts +79 -103
- package/dist/index.d.mts +79 -103
- package/dist/index.d.ts +79 -103
- package/dist/index.js +41 -41
- package/dist/index.mjs +1663 -1691
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -4,7 +4,7 @@ export { Color as ColorValue } from 'modern-idoc';
|
|
|
4
4
|
import { AnimationItem } from 'lottie-web';
|
|
5
5
|
import { Colord, RgbaColor, HslaColor, HsvaColor } from 'colord';
|
|
6
6
|
import { Path2D, LineCap, LineJoin, LineStyle, Path2DSet } from 'modern-path2d';
|
|
7
|
-
import { Text, MeasureResult
|
|
7
|
+
import { Text, MeasureResult } from 'modern-text';
|
|
8
8
|
import { Node as Node$1, Direction } from 'yoga-layout/load';
|
|
9
9
|
|
|
10
10
|
declare abstract class Loader {
|
|
@@ -478,6 +478,12 @@ declare class Rect2 {
|
|
|
478
478
|
constructor(x: number, y: number, width: number, height: number);
|
|
479
479
|
update(): this;
|
|
480
480
|
toArray(): number[];
|
|
481
|
+
toJSON(): {
|
|
482
|
+
x: number;
|
|
483
|
+
y: number;
|
|
484
|
+
width: number;
|
|
485
|
+
height: number;
|
|
486
|
+
};
|
|
481
487
|
}
|
|
482
488
|
|
|
483
489
|
interface Transform2DObject {
|
|
@@ -832,7 +838,7 @@ declare class WebGLRenderer extends Renderer {
|
|
|
832
838
|
reset(): void;
|
|
833
839
|
flush(): void;
|
|
834
840
|
free(): void;
|
|
835
|
-
toPixels(): Uint8ClampedArray;
|
|
841
|
+
toPixels(x?: number, y?: number, width?: number, height?: number): Uint8ClampedArray;
|
|
836
842
|
}
|
|
837
843
|
|
|
838
844
|
interface Renderable {
|
|
@@ -1445,47 +1451,6 @@ declare class CanvasContext extends Path2D {
|
|
|
1445
1451
|
toBatchables(): CanvasBatchable[];
|
|
1446
1452
|
}
|
|
1447
1453
|
|
|
1448
|
-
interface RenderCall {
|
|
1449
|
-
renderable: Node;
|
|
1450
|
-
fn: (renderer: WebGLRenderer, next: () => void) => void;
|
|
1451
|
-
parentCall: RenderCall | undefined;
|
|
1452
|
-
calls: RenderCall[];
|
|
1453
|
-
}
|
|
1454
|
-
declare class RenderStack {
|
|
1455
|
-
currentCall?: RenderCall;
|
|
1456
|
-
calls: RenderCall[];
|
|
1457
|
-
createCall(renderable: Node): RenderCall;
|
|
1458
|
-
push(renderable: Node): RenderCall;
|
|
1459
|
-
render(renderer: WebGLRenderer): void;
|
|
1460
|
-
}
|
|
1461
|
-
|
|
1462
|
-
interface TimelineEventMap extends NodeEventMap {
|
|
1463
|
-
updateCurrentTime: (current: number, delta: number) => void;
|
|
1464
|
-
}
|
|
1465
|
-
interface TimelineProperties extends NodeProperties {
|
|
1466
|
-
startTime: number;
|
|
1467
|
-
currentTime: number;
|
|
1468
|
-
endTime: number;
|
|
1469
|
-
loop: boolean;
|
|
1470
|
-
}
|
|
1471
|
-
interface Timeline {
|
|
1472
|
-
on: (<K extends keyof TimelineEventMap>(type: K, listener: TimelineEventMap[K], options?: EventListenerOptions) => this) & ((type: string, listener: EventListenerValue, options?: EventListenerOptions) => this);
|
|
1473
|
-
once: (<K extends keyof TimelineEventMap>(type: K, listener: TimelineEventMap[K], options?: EventListenerOptions) => this) & ((type: string, listener: EventListenerValue, options?: EventListenerOptions) => this);
|
|
1474
|
-
off: (<K extends keyof TimelineEventMap>(type: K, listener?: TimelineEventMap[K], options?: EventListenerOptions) => this) & ((type: string, listener: EventListenerValue, options?: EventListenerOptions) => this);
|
|
1475
|
-
emit: (<K extends keyof TimelineEventMap>(type: K, ...args: Parameters<TimelineEventMap[K]>) => boolean) & ((type: string, ...args: any[]) => boolean);
|
|
1476
|
-
}
|
|
1477
|
-
declare class Timeline extends Node {
|
|
1478
|
-
startTime: number;
|
|
1479
|
-
currentTime: number;
|
|
1480
|
-
endTime: number;
|
|
1481
|
-
loop: boolean;
|
|
1482
|
-
static from(range: number | number[], loop?: boolean): Timeline;
|
|
1483
|
-
constructor(properties?: Partial<TimelineProperties>);
|
|
1484
|
-
protected _updateProperty(key: string, value: any, oldValue: any): void;
|
|
1485
|
-
addTime(delta: number): this;
|
|
1486
|
-
protected _process(delta: number): void;
|
|
1487
|
-
}
|
|
1488
|
-
|
|
1489
1454
|
interface RectangulableEventMap {
|
|
1490
1455
|
updateRect: () => void;
|
|
1491
1456
|
}
|
|
@@ -1513,7 +1478,8 @@ interface Viewport {
|
|
|
1513
1478
|
}
|
|
1514
1479
|
declare class Viewport extends Node implements Rectangulable {
|
|
1515
1480
|
flipY: boolean;
|
|
1516
|
-
|
|
1481
|
+
readonly projection: Projection2D;
|
|
1482
|
+
readonly canvasTransform: Transform2D;
|
|
1517
1483
|
protected _framebufferIndex: number;
|
|
1518
1484
|
protected _framebuffers: ViewportFramebuffer[];
|
|
1519
1485
|
x: number;
|
|
@@ -1523,6 +1489,7 @@ declare class Viewport extends Node implements Rectangulable {
|
|
|
1523
1489
|
get valid(): boolean;
|
|
1524
1490
|
get framebuffer(): ViewportFramebuffer;
|
|
1525
1491
|
get texture(): ViewportTexture;
|
|
1492
|
+
getViewport(): Viewport;
|
|
1526
1493
|
constructor(flipY?: boolean);
|
|
1527
1494
|
/** @internal */
|
|
1528
1495
|
_glFramebufferOptions(renderer: WebGLRenderer): WebGLFramebufferOptions;
|
|
@@ -1537,7 +1504,50 @@ declare class Viewport extends Node implements Rectangulable {
|
|
|
1537
1504
|
activateWithCopy(renderer: WebGLRenderer, target: Viewport): void;
|
|
1538
1505
|
render(renderer: WebGLRenderer, next?: () => void): void;
|
|
1539
1506
|
getRect(): Rect2;
|
|
1540
|
-
|
|
1507
|
+
}
|
|
1508
|
+
|
|
1509
|
+
interface RenderCall {
|
|
1510
|
+
renderable: Node;
|
|
1511
|
+
fn: (renderer: WebGLRenderer, next: () => void) => void;
|
|
1512
|
+
parentCall: RenderCall | undefined;
|
|
1513
|
+
calls: RenderCall[];
|
|
1514
|
+
}
|
|
1515
|
+
declare class RenderStack {
|
|
1516
|
+
currentCall?: RenderCall;
|
|
1517
|
+
calls: RenderCall[];
|
|
1518
|
+
createCall(renderable: Node): RenderCall;
|
|
1519
|
+
push(renderable: Node): RenderCall;
|
|
1520
|
+
render(renderer: WebGLRenderer): void;
|
|
1521
|
+
}
|
|
1522
|
+
|
|
1523
|
+
interface TimelineEventMap extends NodeEventMap {
|
|
1524
|
+
updateCurrentTime: (current: number, delta: number) => void;
|
|
1525
|
+
}
|
|
1526
|
+
interface TimelineProperties extends NodeProperties {
|
|
1527
|
+
startTime: number;
|
|
1528
|
+
currentTime: number;
|
|
1529
|
+
endTime: number;
|
|
1530
|
+
loop: boolean;
|
|
1531
|
+
}
|
|
1532
|
+
interface Timeline {
|
|
1533
|
+
on: (<K extends keyof TimelineEventMap>(type: K, listener: TimelineEventMap[K], options?: EventListenerOptions) => this) & ((type: string, listener: EventListenerValue, options?: EventListenerOptions) => this);
|
|
1534
|
+
once: (<K extends keyof TimelineEventMap>(type: K, listener: TimelineEventMap[K], options?: EventListenerOptions) => this) & ((type: string, listener: EventListenerValue, options?: EventListenerOptions) => this);
|
|
1535
|
+
off: (<K extends keyof TimelineEventMap>(type: K, listener?: TimelineEventMap[K], options?: EventListenerOptions) => this) & ((type: string, listener: EventListenerValue, options?: EventListenerOptions) => this);
|
|
1536
|
+
emit: (<K extends keyof TimelineEventMap>(type: K, ...args: Parameters<TimelineEventMap[K]>) => boolean) & ((type: string, ...args: any[]) => boolean);
|
|
1537
|
+
}
|
|
1538
|
+
declare class Timeline extends Node {
|
|
1539
|
+
startTime: number;
|
|
1540
|
+
currentTime: number;
|
|
1541
|
+
endTime: number;
|
|
1542
|
+
loop: boolean;
|
|
1543
|
+
static from(range: number | number[], loop?: boolean): Timeline;
|
|
1544
|
+
constructor(properties?: Partial<TimelineProperties>);
|
|
1545
|
+
protected _updateProperty(key: string, value: any, oldValue: any): void;
|
|
1546
|
+
addTime(delta: number): this;
|
|
1547
|
+
protected _process(delta: number): void;
|
|
1548
|
+
}
|
|
1549
|
+
|
|
1550
|
+
declare class Window extends Viewport {
|
|
1541
1551
|
}
|
|
1542
1552
|
|
|
1543
1553
|
interface SceneTreeEventMap extends MainLoopEventMap {
|
|
@@ -1560,9 +1570,8 @@ declare class SceneTree extends MainLoop {
|
|
|
1560
1570
|
debug: boolean;
|
|
1561
1571
|
readonly input: Input;
|
|
1562
1572
|
readonly renderStack: RenderStack;
|
|
1563
|
-
readonly root:
|
|
1573
|
+
readonly root: Window;
|
|
1564
1574
|
readonly timeline: Timeline;
|
|
1565
|
-
nodes: Map<string, Node>;
|
|
1566
1575
|
protected _backgroundColor: Color;
|
|
1567
1576
|
protected _currentViewport?: Viewport;
|
|
1568
1577
|
getCurrentViewport(): Viewport | undefined;
|
|
@@ -1647,7 +1656,7 @@ declare class Node extends CoreObject {
|
|
|
1647
1656
|
set tree(tree: SceneTree | undefined);
|
|
1648
1657
|
getTree(): SceneTree | undefined;
|
|
1649
1658
|
getViewport(): Viewport | undefined;
|
|
1650
|
-
getWindow():
|
|
1659
|
+
getWindow(): Window | undefined;
|
|
1651
1660
|
isInsideTree(): boolean;
|
|
1652
1661
|
setTree(tree: SceneTree | undefined): this;
|
|
1653
1662
|
log(...args: any[]): void;
|
|
@@ -1884,6 +1893,18 @@ declare class Node2D extends CanvasItem {
|
|
|
1884
1893
|
protected _process(delta: number): void;
|
|
1885
1894
|
}
|
|
1886
1895
|
|
|
1896
|
+
interface Camera2DProperties extends Node2DProperties {
|
|
1897
|
+
}
|
|
1898
|
+
declare class Camera2D extends Node2D {
|
|
1899
|
+
readonly zoom: Vector2;
|
|
1900
|
+
maxZoom: number;
|
|
1901
|
+
minZoom: number;
|
|
1902
|
+
constructor(properties?: Partial<Camera2DProperties>, nodes?: Node[]);
|
|
1903
|
+
protected _input(event: InputEvent, key: InputEventKey): void;
|
|
1904
|
+
updateTransform(): void;
|
|
1905
|
+
updateCanvasTransform(): void;
|
|
1906
|
+
}
|
|
1907
|
+
|
|
1887
1908
|
interface BaseElement2DFill extends NormalizedFill {
|
|
1888
1909
|
}
|
|
1889
1910
|
declare class BaseElement2DFill extends CoreObject {
|
|
@@ -2077,6 +2098,14 @@ declare class Element2DStyle extends BaseElement2DStyle {
|
|
|
2077
2098
|
constructor(properties?: Partial<Element2DStyleProperties>);
|
|
2078
2099
|
}
|
|
2079
2100
|
|
|
2101
|
+
interface FlexElement2DStyleProperties extends BaseElement2DStyleProperties {
|
|
2102
|
+
}
|
|
2103
|
+
interface FlexElement2DStyle extends FlexElement2DStyleProperties {
|
|
2104
|
+
}
|
|
2105
|
+
declare class FlexElement2DStyle extends BaseElement2DStyle {
|
|
2106
|
+
constructor(properties?: Partial<FlexElement2DStyleProperties>);
|
|
2107
|
+
}
|
|
2108
|
+
|
|
2080
2109
|
interface Element2DEventMap extends BaseElement2DEventMap {
|
|
2081
2110
|
}
|
|
2082
2111
|
interface Element2DProperties extends BaseElement2DProperties {
|
|
@@ -2096,14 +2125,6 @@ declare class Element2D extends BaseElement2D {
|
|
|
2096
2125
|
protected _updateStyleProperty(key: string, value: any, oldValue: any, declaration?: PropertyDeclaration): void;
|
|
2097
2126
|
}
|
|
2098
2127
|
|
|
2099
|
-
interface FlexElement2DStyleProperties extends BaseElement2DStyleProperties {
|
|
2100
|
-
}
|
|
2101
|
-
interface FlexElement2DStyle extends FlexElement2DStyleProperties {
|
|
2102
|
-
}
|
|
2103
|
-
declare class FlexElement2DStyle extends BaseElement2DStyle {
|
|
2104
|
-
constructor(properties?: Partial<FlexElement2DStyleProperties>);
|
|
2105
|
-
}
|
|
2106
|
-
|
|
2107
2128
|
interface ComputedLayout {
|
|
2108
2129
|
left: number;
|
|
2109
2130
|
right: number;
|
|
@@ -2209,51 +2230,6 @@ declare class Lottie2D extends TextureRect2D {
|
|
|
2209
2230
|
protected _process(delta: number): void;
|
|
2210
2231
|
}
|
|
2211
2232
|
|
|
2212
|
-
interface Text2DEventMap extends Element2DEventMap {
|
|
2213
|
-
updateBase: (base: Text) => void;
|
|
2214
|
-
}
|
|
2215
|
-
interface Text2DProperties extends TextureRect2DProperties, Omit<TextOptions, 'style'> {
|
|
2216
|
-
split: boolean;
|
|
2217
|
-
}
|
|
2218
|
-
interface Text2D {
|
|
2219
|
-
on: (<K extends keyof Text2DEventMap>(type: K, listener: Text2DEventMap[K], options?: EventListenerOptions) => this) & ((type: string, listener: EventListenerValue, options?: EventListenerOptions) => this);
|
|
2220
|
-
once: (<K extends keyof Text2DEventMap>(type: K, listener: Text2DEventMap[K], options?: EventListenerOptions) => this) & ((type: string, listener: EventListenerValue, options?: EventListenerOptions) => this);
|
|
2221
|
-
off: (<K extends keyof Text2DEventMap>(type: K, listener?: Text2DEventMap[K], options?: EventListenerOptions) => this) & ((type: string, listener: EventListenerValue, options?: EventListenerOptions) => this);
|
|
2222
|
-
emit: (<K extends keyof Text2DEventMap>(type: K, ...args: Parameters<Text2DEventMap[K]>) => boolean) & ((type: string, ...args: any[]) => boolean);
|
|
2223
|
-
}
|
|
2224
|
-
/**
|
|
2225
|
-
* @example
|
|
2226
|
-
*
|
|
2227
|
-
* new Text2D({
|
|
2228
|
-
* style: {
|
|
2229
|
-
* fontSize: 20,
|
|
2230
|
-
* },
|
|
2231
|
-
* content: 'Text2D',
|
|
2232
|
-
* })
|
|
2233
|
-
*/
|
|
2234
|
-
declare class Text2D extends TextureRect2D<CanvasTexture> {
|
|
2235
|
-
split: boolean;
|
|
2236
|
-
content: Text['content'];
|
|
2237
|
-
effects: Text['effects'];
|
|
2238
|
-
measureDOM: Text['measureDOM'];
|
|
2239
|
-
fonts: Text['fonts'];
|
|
2240
|
-
texture: CanvasTexture;
|
|
2241
|
-
base: Text;
|
|
2242
|
-
measureResult?: MeasureResult;
|
|
2243
|
-
protected _subTextsCount: number;
|
|
2244
|
-
constructor(properties?: Partial<Text2DProperties>, children?: Node[]);
|
|
2245
|
-
protected _updateProperty(key: string, value: any, oldValue: any, declaration?: PropertyDeclaration): void;
|
|
2246
|
-
protected _updateBase(): void;
|
|
2247
|
-
protected _updateStyleProperty(key: string, value: any, oldValue: any): void;
|
|
2248
|
-
protected _getSubTexts(): Text2D[];
|
|
2249
|
-
protected _updateSubTexts(): void;
|
|
2250
|
-
measure(): MeasureResult;
|
|
2251
|
-
updateMeasure(): this;
|
|
2252
|
-
protected _updateSplit(): void;
|
|
2253
|
-
protected _redraw(): CanvasBatchable[];
|
|
2254
|
-
protected _drawContent(): void;
|
|
2255
|
-
}
|
|
2256
|
-
|
|
2257
2233
|
interface TransformRect2DProperties extends BaseElement2DProperties {
|
|
2258
2234
|
}
|
|
2259
2235
|
declare class TransformRect2D extends Element2D {
|
|
@@ -3239,5 +3215,5 @@ interface RenderOptions {
|
|
|
3239
3215
|
}
|
|
3240
3216
|
declare function render(options: RenderOptions): Promise<HTMLCanvasElement>;
|
|
3241
3217
|
|
|
3242
|
-
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, FlexElement2D, FlexElement2DStyle, FlexLayout, FontLoader, GIFLoader, GaussianBlurEffect, Geometry, GlitchEffect, GodrayEffect, GradientTexture, 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,
|
|
3243
|
-
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, CustomPropertyAccessor, DropShadowEffectProperties, Easing, EffectContext, EffectMode, EffectProperties, Element2DEventMap, Element2DProperties, Element2DStyleProperties, EmbossEffectProperties, EngineOptions, 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, RangeProperties, Rectangulable, RectangulableEventMap, RefCountedEventMap, RenderMode, RenderOptions, Renderable, ResourceEventMap, RulerProperties, ScalerEventMap, ScalerProperties, SceneTreeEventMap, ScrollBarProperties, StrokeDraw,
|
|
3218
|
+
export { AnimatedTexture, Animation, Assets, Audio, AudioPipeline, AudioProcessor, AudioSpectrum, AudioWaveform, BaseElement2D, BaseElement2DBackground, BaseElement2DFill, BaseElement2DForeground, BaseElement2DOutline, BaseElement2DShadow, BaseElement2DShape, BaseElement2DStyle, BaseElement2DText, Camera2D, 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, FlexElement2D, FlexElement2DStyle, FlexLayout, FontLoader, GIFLoader, GaussianBlurEffect, Geometry, GlitchEffect, GodrayEffect, GradientTexture, 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, 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, Window, XScrollBar, YScrollBar, ZoomBlurEffect, assets, clamp, clampFrag, createHTMLCanvas, createNode, crossOrigin, cubicBezier, curves, customNode, customNodes, defaultOptions, determineCrossOrigin, ease, easeIn, easeInOut, easeOut, frag, getDefaultCssPropertyValue, isCanvasElement, isElementNode, isImageElement, isPow2, isVideoElement, isWebgl2, lerp, linear, log2, mapWebGLBlendModes, nextPow2, nextTick, parseCSSFilter, parseCSSTransform, parseCSSTransformOrigin, parseCssFunctions, parseCssProperty, render, timingFunctions, uid };
|
|
3219
|
+
export type { AnimationEffectMode, AnimationProperties, AssetHandler, AudioWaveformProperties, BaseElement2DEventMap, BaseElement2DProperties, BaseElement2DStyleProperties, Batchable2D, CSSFilterKey, CSSFilters, Camera2DProperties, CanvasBatchable, CanvasItemEventMap, CanvasItemProperties, ColorAdjustEffectProperties, ColorFilterEffectProperties, ColorOverlayEffectProperties, ColorRemoveEffectProperties, ColorReplaceEffectProperties, ComputedLayout, ControlEventMap, ControlProperties, CoreObjectEventMap, CssFunction, CssFunctionArg, Cursor, CustomPropertyAccessor, DropShadowEffectProperties, Easing, EffectContext, EffectMode, EffectProperties, Element2DEventMap, Element2DProperties, Element2DStyleProperties, EmbossEffectProperties, EngineOptions, 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, RangeProperties, Rectangulable, RectangulableEventMap, RefCountedEventMap, RenderMode, RenderOptions, Renderable, ResourceEventMap, RulerProperties, ScalerEventMap, ScalerProperties, SceneTreeEventMap, ScrollBarProperties, StrokeDraw, Texture2DFilterMode, Texture2DPixelsSource, Texture2DSource, Texture2DWrapMode, TextureRect2DProperties, TimelineEventMap, TimelineNodeEventMap, TimelineNodeProperties, TimelineProperties, TimingFunctions, Transform2DObject, TransformRect2DProperties, TransitionProperties, UVTransform, VectorLike, VectorOperateOutput, VertTransform, 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 };
|
package/dist/index.d.mts
CHANGED
|
@@ -4,7 +4,7 @@ export { Color as ColorValue } from 'modern-idoc';
|
|
|
4
4
|
import { AnimationItem } from 'lottie-web';
|
|
5
5
|
import { Colord, RgbaColor, HslaColor, HsvaColor } from 'colord';
|
|
6
6
|
import { Path2D, LineCap, LineJoin, LineStyle, Path2DSet } from 'modern-path2d';
|
|
7
|
-
import { Text, MeasureResult
|
|
7
|
+
import { Text, MeasureResult } from 'modern-text';
|
|
8
8
|
import { Node as Node$1, Direction } from 'yoga-layout/load';
|
|
9
9
|
|
|
10
10
|
declare abstract class Loader {
|
|
@@ -478,6 +478,12 @@ declare class Rect2 {
|
|
|
478
478
|
constructor(x: number, y: number, width: number, height: number);
|
|
479
479
|
update(): this;
|
|
480
480
|
toArray(): number[];
|
|
481
|
+
toJSON(): {
|
|
482
|
+
x: number;
|
|
483
|
+
y: number;
|
|
484
|
+
width: number;
|
|
485
|
+
height: number;
|
|
486
|
+
};
|
|
481
487
|
}
|
|
482
488
|
|
|
483
489
|
interface Transform2DObject {
|
|
@@ -832,7 +838,7 @@ declare class WebGLRenderer extends Renderer {
|
|
|
832
838
|
reset(): void;
|
|
833
839
|
flush(): void;
|
|
834
840
|
free(): void;
|
|
835
|
-
toPixels(): Uint8ClampedArray;
|
|
841
|
+
toPixels(x?: number, y?: number, width?: number, height?: number): Uint8ClampedArray;
|
|
836
842
|
}
|
|
837
843
|
|
|
838
844
|
interface Renderable {
|
|
@@ -1445,47 +1451,6 @@ declare class CanvasContext extends Path2D {
|
|
|
1445
1451
|
toBatchables(): CanvasBatchable[];
|
|
1446
1452
|
}
|
|
1447
1453
|
|
|
1448
|
-
interface RenderCall {
|
|
1449
|
-
renderable: Node;
|
|
1450
|
-
fn: (renderer: WebGLRenderer, next: () => void) => void;
|
|
1451
|
-
parentCall: RenderCall | undefined;
|
|
1452
|
-
calls: RenderCall[];
|
|
1453
|
-
}
|
|
1454
|
-
declare class RenderStack {
|
|
1455
|
-
currentCall?: RenderCall;
|
|
1456
|
-
calls: RenderCall[];
|
|
1457
|
-
createCall(renderable: Node): RenderCall;
|
|
1458
|
-
push(renderable: Node): RenderCall;
|
|
1459
|
-
render(renderer: WebGLRenderer): void;
|
|
1460
|
-
}
|
|
1461
|
-
|
|
1462
|
-
interface TimelineEventMap extends NodeEventMap {
|
|
1463
|
-
updateCurrentTime: (current: number, delta: number) => void;
|
|
1464
|
-
}
|
|
1465
|
-
interface TimelineProperties extends NodeProperties {
|
|
1466
|
-
startTime: number;
|
|
1467
|
-
currentTime: number;
|
|
1468
|
-
endTime: number;
|
|
1469
|
-
loop: boolean;
|
|
1470
|
-
}
|
|
1471
|
-
interface Timeline {
|
|
1472
|
-
on: (<K extends keyof TimelineEventMap>(type: K, listener: TimelineEventMap[K], options?: EventListenerOptions) => this) & ((type: string, listener: EventListenerValue, options?: EventListenerOptions) => this);
|
|
1473
|
-
once: (<K extends keyof TimelineEventMap>(type: K, listener: TimelineEventMap[K], options?: EventListenerOptions) => this) & ((type: string, listener: EventListenerValue, options?: EventListenerOptions) => this);
|
|
1474
|
-
off: (<K extends keyof TimelineEventMap>(type: K, listener?: TimelineEventMap[K], options?: EventListenerOptions) => this) & ((type: string, listener: EventListenerValue, options?: EventListenerOptions) => this);
|
|
1475
|
-
emit: (<K extends keyof TimelineEventMap>(type: K, ...args: Parameters<TimelineEventMap[K]>) => boolean) & ((type: string, ...args: any[]) => boolean);
|
|
1476
|
-
}
|
|
1477
|
-
declare class Timeline extends Node {
|
|
1478
|
-
startTime: number;
|
|
1479
|
-
currentTime: number;
|
|
1480
|
-
endTime: number;
|
|
1481
|
-
loop: boolean;
|
|
1482
|
-
static from(range: number | number[], loop?: boolean): Timeline;
|
|
1483
|
-
constructor(properties?: Partial<TimelineProperties>);
|
|
1484
|
-
protected _updateProperty(key: string, value: any, oldValue: any): void;
|
|
1485
|
-
addTime(delta: number): this;
|
|
1486
|
-
protected _process(delta: number): void;
|
|
1487
|
-
}
|
|
1488
|
-
|
|
1489
1454
|
interface RectangulableEventMap {
|
|
1490
1455
|
updateRect: () => void;
|
|
1491
1456
|
}
|
|
@@ -1513,7 +1478,8 @@ interface Viewport {
|
|
|
1513
1478
|
}
|
|
1514
1479
|
declare class Viewport extends Node implements Rectangulable {
|
|
1515
1480
|
flipY: boolean;
|
|
1516
|
-
|
|
1481
|
+
readonly projection: Projection2D;
|
|
1482
|
+
readonly canvasTransform: Transform2D;
|
|
1517
1483
|
protected _framebufferIndex: number;
|
|
1518
1484
|
protected _framebuffers: ViewportFramebuffer[];
|
|
1519
1485
|
x: number;
|
|
@@ -1523,6 +1489,7 @@ declare class Viewport extends Node implements Rectangulable {
|
|
|
1523
1489
|
get valid(): boolean;
|
|
1524
1490
|
get framebuffer(): ViewportFramebuffer;
|
|
1525
1491
|
get texture(): ViewportTexture;
|
|
1492
|
+
getViewport(): Viewport;
|
|
1526
1493
|
constructor(flipY?: boolean);
|
|
1527
1494
|
/** @internal */
|
|
1528
1495
|
_glFramebufferOptions(renderer: WebGLRenderer): WebGLFramebufferOptions;
|
|
@@ -1537,7 +1504,50 @@ declare class Viewport extends Node implements Rectangulable {
|
|
|
1537
1504
|
activateWithCopy(renderer: WebGLRenderer, target: Viewport): void;
|
|
1538
1505
|
render(renderer: WebGLRenderer, next?: () => void): void;
|
|
1539
1506
|
getRect(): Rect2;
|
|
1540
|
-
|
|
1507
|
+
}
|
|
1508
|
+
|
|
1509
|
+
interface RenderCall {
|
|
1510
|
+
renderable: Node;
|
|
1511
|
+
fn: (renderer: WebGLRenderer, next: () => void) => void;
|
|
1512
|
+
parentCall: RenderCall | undefined;
|
|
1513
|
+
calls: RenderCall[];
|
|
1514
|
+
}
|
|
1515
|
+
declare class RenderStack {
|
|
1516
|
+
currentCall?: RenderCall;
|
|
1517
|
+
calls: RenderCall[];
|
|
1518
|
+
createCall(renderable: Node): RenderCall;
|
|
1519
|
+
push(renderable: Node): RenderCall;
|
|
1520
|
+
render(renderer: WebGLRenderer): void;
|
|
1521
|
+
}
|
|
1522
|
+
|
|
1523
|
+
interface TimelineEventMap extends NodeEventMap {
|
|
1524
|
+
updateCurrentTime: (current: number, delta: number) => void;
|
|
1525
|
+
}
|
|
1526
|
+
interface TimelineProperties extends NodeProperties {
|
|
1527
|
+
startTime: number;
|
|
1528
|
+
currentTime: number;
|
|
1529
|
+
endTime: number;
|
|
1530
|
+
loop: boolean;
|
|
1531
|
+
}
|
|
1532
|
+
interface Timeline {
|
|
1533
|
+
on: (<K extends keyof TimelineEventMap>(type: K, listener: TimelineEventMap[K], options?: EventListenerOptions) => this) & ((type: string, listener: EventListenerValue, options?: EventListenerOptions) => this);
|
|
1534
|
+
once: (<K extends keyof TimelineEventMap>(type: K, listener: TimelineEventMap[K], options?: EventListenerOptions) => this) & ((type: string, listener: EventListenerValue, options?: EventListenerOptions) => this);
|
|
1535
|
+
off: (<K extends keyof TimelineEventMap>(type: K, listener?: TimelineEventMap[K], options?: EventListenerOptions) => this) & ((type: string, listener: EventListenerValue, options?: EventListenerOptions) => this);
|
|
1536
|
+
emit: (<K extends keyof TimelineEventMap>(type: K, ...args: Parameters<TimelineEventMap[K]>) => boolean) & ((type: string, ...args: any[]) => boolean);
|
|
1537
|
+
}
|
|
1538
|
+
declare class Timeline extends Node {
|
|
1539
|
+
startTime: number;
|
|
1540
|
+
currentTime: number;
|
|
1541
|
+
endTime: number;
|
|
1542
|
+
loop: boolean;
|
|
1543
|
+
static from(range: number | number[], loop?: boolean): Timeline;
|
|
1544
|
+
constructor(properties?: Partial<TimelineProperties>);
|
|
1545
|
+
protected _updateProperty(key: string, value: any, oldValue: any): void;
|
|
1546
|
+
addTime(delta: number): this;
|
|
1547
|
+
protected _process(delta: number): void;
|
|
1548
|
+
}
|
|
1549
|
+
|
|
1550
|
+
declare class Window extends Viewport {
|
|
1541
1551
|
}
|
|
1542
1552
|
|
|
1543
1553
|
interface SceneTreeEventMap extends MainLoopEventMap {
|
|
@@ -1560,9 +1570,8 @@ declare class SceneTree extends MainLoop {
|
|
|
1560
1570
|
debug: boolean;
|
|
1561
1571
|
readonly input: Input;
|
|
1562
1572
|
readonly renderStack: RenderStack;
|
|
1563
|
-
readonly root:
|
|
1573
|
+
readonly root: Window;
|
|
1564
1574
|
readonly timeline: Timeline;
|
|
1565
|
-
nodes: Map<string, Node>;
|
|
1566
1575
|
protected _backgroundColor: Color;
|
|
1567
1576
|
protected _currentViewport?: Viewport;
|
|
1568
1577
|
getCurrentViewport(): Viewport | undefined;
|
|
@@ -1647,7 +1656,7 @@ declare class Node extends CoreObject {
|
|
|
1647
1656
|
set tree(tree: SceneTree | undefined);
|
|
1648
1657
|
getTree(): SceneTree | undefined;
|
|
1649
1658
|
getViewport(): Viewport | undefined;
|
|
1650
|
-
getWindow():
|
|
1659
|
+
getWindow(): Window | undefined;
|
|
1651
1660
|
isInsideTree(): boolean;
|
|
1652
1661
|
setTree(tree: SceneTree | undefined): this;
|
|
1653
1662
|
log(...args: any[]): void;
|
|
@@ -1884,6 +1893,18 @@ declare class Node2D extends CanvasItem {
|
|
|
1884
1893
|
protected _process(delta: number): void;
|
|
1885
1894
|
}
|
|
1886
1895
|
|
|
1896
|
+
interface Camera2DProperties extends Node2DProperties {
|
|
1897
|
+
}
|
|
1898
|
+
declare class Camera2D extends Node2D {
|
|
1899
|
+
readonly zoom: Vector2;
|
|
1900
|
+
maxZoom: number;
|
|
1901
|
+
minZoom: number;
|
|
1902
|
+
constructor(properties?: Partial<Camera2DProperties>, nodes?: Node[]);
|
|
1903
|
+
protected _input(event: InputEvent, key: InputEventKey): void;
|
|
1904
|
+
updateTransform(): void;
|
|
1905
|
+
updateCanvasTransform(): void;
|
|
1906
|
+
}
|
|
1907
|
+
|
|
1887
1908
|
interface BaseElement2DFill extends NormalizedFill {
|
|
1888
1909
|
}
|
|
1889
1910
|
declare class BaseElement2DFill extends CoreObject {
|
|
@@ -2077,6 +2098,14 @@ declare class Element2DStyle extends BaseElement2DStyle {
|
|
|
2077
2098
|
constructor(properties?: Partial<Element2DStyleProperties>);
|
|
2078
2099
|
}
|
|
2079
2100
|
|
|
2101
|
+
interface FlexElement2DStyleProperties extends BaseElement2DStyleProperties {
|
|
2102
|
+
}
|
|
2103
|
+
interface FlexElement2DStyle extends FlexElement2DStyleProperties {
|
|
2104
|
+
}
|
|
2105
|
+
declare class FlexElement2DStyle extends BaseElement2DStyle {
|
|
2106
|
+
constructor(properties?: Partial<FlexElement2DStyleProperties>);
|
|
2107
|
+
}
|
|
2108
|
+
|
|
2080
2109
|
interface Element2DEventMap extends BaseElement2DEventMap {
|
|
2081
2110
|
}
|
|
2082
2111
|
interface Element2DProperties extends BaseElement2DProperties {
|
|
@@ -2096,14 +2125,6 @@ declare class Element2D extends BaseElement2D {
|
|
|
2096
2125
|
protected _updateStyleProperty(key: string, value: any, oldValue: any, declaration?: PropertyDeclaration): void;
|
|
2097
2126
|
}
|
|
2098
2127
|
|
|
2099
|
-
interface FlexElement2DStyleProperties extends BaseElement2DStyleProperties {
|
|
2100
|
-
}
|
|
2101
|
-
interface FlexElement2DStyle extends FlexElement2DStyleProperties {
|
|
2102
|
-
}
|
|
2103
|
-
declare class FlexElement2DStyle extends BaseElement2DStyle {
|
|
2104
|
-
constructor(properties?: Partial<FlexElement2DStyleProperties>);
|
|
2105
|
-
}
|
|
2106
|
-
|
|
2107
2128
|
interface ComputedLayout {
|
|
2108
2129
|
left: number;
|
|
2109
2130
|
right: number;
|
|
@@ -2209,51 +2230,6 @@ declare class Lottie2D extends TextureRect2D {
|
|
|
2209
2230
|
protected _process(delta: number): void;
|
|
2210
2231
|
}
|
|
2211
2232
|
|
|
2212
|
-
interface Text2DEventMap extends Element2DEventMap {
|
|
2213
|
-
updateBase: (base: Text) => void;
|
|
2214
|
-
}
|
|
2215
|
-
interface Text2DProperties extends TextureRect2DProperties, Omit<TextOptions, 'style'> {
|
|
2216
|
-
split: boolean;
|
|
2217
|
-
}
|
|
2218
|
-
interface Text2D {
|
|
2219
|
-
on: (<K extends keyof Text2DEventMap>(type: K, listener: Text2DEventMap[K], options?: EventListenerOptions) => this) & ((type: string, listener: EventListenerValue, options?: EventListenerOptions) => this);
|
|
2220
|
-
once: (<K extends keyof Text2DEventMap>(type: K, listener: Text2DEventMap[K], options?: EventListenerOptions) => this) & ((type: string, listener: EventListenerValue, options?: EventListenerOptions) => this);
|
|
2221
|
-
off: (<K extends keyof Text2DEventMap>(type: K, listener?: Text2DEventMap[K], options?: EventListenerOptions) => this) & ((type: string, listener: EventListenerValue, options?: EventListenerOptions) => this);
|
|
2222
|
-
emit: (<K extends keyof Text2DEventMap>(type: K, ...args: Parameters<Text2DEventMap[K]>) => boolean) & ((type: string, ...args: any[]) => boolean);
|
|
2223
|
-
}
|
|
2224
|
-
/**
|
|
2225
|
-
* @example
|
|
2226
|
-
*
|
|
2227
|
-
* new Text2D({
|
|
2228
|
-
* style: {
|
|
2229
|
-
* fontSize: 20,
|
|
2230
|
-
* },
|
|
2231
|
-
* content: 'Text2D',
|
|
2232
|
-
* })
|
|
2233
|
-
*/
|
|
2234
|
-
declare class Text2D extends TextureRect2D<CanvasTexture> {
|
|
2235
|
-
split: boolean;
|
|
2236
|
-
content: Text['content'];
|
|
2237
|
-
effects: Text['effects'];
|
|
2238
|
-
measureDOM: Text['measureDOM'];
|
|
2239
|
-
fonts: Text['fonts'];
|
|
2240
|
-
texture: CanvasTexture;
|
|
2241
|
-
base: Text;
|
|
2242
|
-
measureResult?: MeasureResult;
|
|
2243
|
-
protected _subTextsCount: number;
|
|
2244
|
-
constructor(properties?: Partial<Text2DProperties>, children?: Node[]);
|
|
2245
|
-
protected _updateProperty(key: string, value: any, oldValue: any, declaration?: PropertyDeclaration): void;
|
|
2246
|
-
protected _updateBase(): void;
|
|
2247
|
-
protected _updateStyleProperty(key: string, value: any, oldValue: any): void;
|
|
2248
|
-
protected _getSubTexts(): Text2D[];
|
|
2249
|
-
protected _updateSubTexts(): void;
|
|
2250
|
-
measure(): MeasureResult;
|
|
2251
|
-
updateMeasure(): this;
|
|
2252
|
-
protected _updateSplit(): void;
|
|
2253
|
-
protected _redraw(): CanvasBatchable[];
|
|
2254
|
-
protected _drawContent(): void;
|
|
2255
|
-
}
|
|
2256
|
-
|
|
2257
2233
|
interface TransformRect2DProperties extends BaseElement2DProperties {
|
|
2258
2234
|
}
|
|
2259
2235
|
declare class TransformRect2D extends Element2D {
|
|
@@ -3239,5 +3215,5 @@ interface RenderOptions {
|
|
|
3239
3215
|
}
|
|
3240
3216
|
declare function render(options: RenderOptions): Promise<HTMLCanvasElement>;
|
|
3241
3217
|
|
|
3242
|
-
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, FlexElement2D, FlexElement2DStyle, FlexLayout, FontLoader, GIFLoader, GaussianBlurEffect, Geometry, GlitchEffect, GodrayEffect, GradientTexture, 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,
|
|
3243
|
-
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, CustomPropertyAccessor, DropShadowEffectProperties, Easing, EffectContext, EffectMode, EffectProperties, Element2DEventMap, Element2DProperties, Element2DStyleProperties, EmbossEffectProperties, EngineOptions, 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, RangeProperties, Rectangulable, RectangulableEventMap, RefCountedEventMap, RenderMode, RenderOptions, Renderable, ResourceEventMap, RulerProperties, ScalerEventMap, ScalerProperties, SceneTreeEventMap, ScrollBarProperties, StrokeDraw,
|
|
3218
|
+
export { AnimatedTexture, Animation, Assets, Audio, AudioPipeline, AudioProcessor, AudioSpectrum, AudioWaveform, BaseElement2D, BaseElement2DBackground, BaseElement2DFill, BaseElement2DForeground, BaseElement2DOutline, BaseElement2DShadow, BaseElement2DShape, BaseElement2DStyle, BaseElement2DText, Camera2D, 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, FlexElement2D, FlexElement2DStyle, FlexLayout, FontLoader, GIFLoader, GaussianBlurEffect, Geometry, GlitchEffect, GodrayEffect, GradientTexture, 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, 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, Window, XScrollBar, YScrollBar, ZoomBlurEffect, assets, clamp, clampFrag, createHTMLCanvas, createNode, crossOrigin, cubicBezier, curves, customNode, customNodes, defaultOptions, determineCrossOrigin, ease, easeIn, easeInOut, easeOut, frag, getDefaultCssPropertyValue, isCanvasElement, isElementNode, isImageElement, isPow2, isVideoElement, isWebgl2, lerp, linear, log2, mapWebGLBlendModes, nextPow2, nextTick, parseCSSFilter, parseCSSTransform, parseCSSTransformOrigin, parseCssFunctions, parseCssProperty, render, timingFunctions, uid };
|
|
3219
|
+
export type { AnimationEffectMode, AnimationProperties, AssetHandler, AudioWaveformProperties, BaseElement2DEventMap, BaseElement2DProperties, BaseElement2DStyleProperties, Batchable2D, CSSFilterKey, CSSFilters, Camera2DProperties, CanvasBatchable, CanvasItemEventMap, CanvasItemProperties, ColorAdjustEffectProperties, ColorFilterEffectProperties, ColorOverlayEffectProperties, ColorRemoveEffectProperties, ColorReplaceEffectProperties, ComputedLayout, ControlEventMap, ControlProperties, CoreObjectEventMap, CssFunction, CssFunctionArg, Cursor, CustomPropertyAccessor, DropShadowEffectProperties, Easing, EffectContext, EffectMode, EffectProperties, Element2DEventMap, Element2DProperties, Element2DStyleProperties, EmbossEffectProperties, EngineOptions, 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, RangeProperties, Rectangulable, RectangulableEventMap, RefCountedEventMap, RenderMode, RenderOptions, Renderable, ResourceEventMap, RulerProperties, ScalerEventMap, ScalerProperties, SceneTreeEventMap, ScrollBarProperties, StrokeDraw, Texture2DFilterMode, Texture2DPixelsSource, Texture2DSource, Texture2DWrapMode, TextureRect2DProperties, TimelineEventMap, TimelineNodeEventMap, TimelineNodeProperties, TimelineProperties, TimingFunctions, Transform2DObject, TransformRect2DProperties, TransitionProperties, UVTransform, VectorLike, VectorOperateOutput, VertTransform, 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 };
|