modern-canvas 0.1.5 → 0.1.7
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 +47 -5
- package/dist/index.d.cts +28 -5
- package/dist/index.d.mts +28 -5
- package/dist/index.d.ts +28 -5
- package/dist/index.js +31 -31
- package/dist/index.mjs +47 -6
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -252,6 +252,47 @@ class EventEmitter {
|
|
|
252
252
|
}
|
|
253
253
|
}
|
|
254
254
|
|
|
255
|
+
class RawWeakMap {
|
|
256
|
+
_map = /* @__PURE__ */ new WeakMap();
|
|
257
|
+
// fix: vue reactive object
|
|
258
|
+
_toRaw(value) {
|
|
259
|
+
if (value && typeof value === "object") {
|
|
260
|
+
const raw = value.__v_raw;
|
|
261
|
+
if (raw) {
|
|
262
|
+
value = this._toRaw(raw);
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
return value;
|
|
266
|
+
}
|
|
267
|
+
/**
|
|
268
|
+
* Removes the specified element from the WeakMap.
|
|
269
|
+
* @returns true if the element was successfully removed, or false if it was not present.
|
|
270
|
+
*/
|
|
271
|
+
delete(key) {
|
|
272
|
+
return this._map.delete(this._toRaw(key));
|
|
273
|
+
}
|
|
274
|
+
/**
|
|
275
|
+
* @returns a specified element.
|
|
276
|
+
*/
|
|
277
|
+
get(key) {
|
|
278
|
+
return this._map.get(this._toRaw(key));
|
|
279
|
+
}
|
|
280
|
+
/**
|
|
281
|
+
* @returns a boolean indicating whether an element with the specified key exists or not.
|
|
282
|
+
*/
|
|
283
|
+
has(key) {
|
|
284
|
+
return this._map.has(this._toRaw(key));
|
|
285
|
+
}
|
|
286
|
+
/**
|
|
287
|
+
* Adds a new element with a specified key and value.
|
|
288
|
+
* @param key Must be an object or symbol.
|
|
289
|
+
*/
|
|
290
|
+
set(key, value) {
|
|
291
|
+
this._map.set(this._toRaw(key), this._toRaw(value));
|
|
292
|
+
return this;
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
|
|
255
296
|
const customNodes = /* @__PURE__ */ new Map();
|
|
256
297
|
function customNode(options) {
|
|
257
298
|
let tag;
|
|
@@ -278,7 +319,7 @@ function customNode(options) {
|
|
|
278
319
|
};
|
|
279
320
|
}
|
|
280
321
|
|
|
281
|
-
const declarationMap =
|
|
322
|
+
const declarationMap = new RawWeakMap();
|
|
282
323
|
function getDeclarations(constructor) {
|
|
283
324
|
let declarations = declarationMap.get(constructor);
|
|
284
325
|
if (!declarations) {
|
|
@@ -543,7 +584,7 @@ class Geometry extends Resource {
|
|
|
543
584
|
indexBuffer;
|
|
544
585
|
instanceCount;
|
|
545
586
|
mode;
|
|
546
|
-
_materialWeakMap =
|
|
587
|
+
_materialWeakMap = new RawWeakMap();
|
|
547
588
|
constructor(options = {}) {
|
|
548
589
|
super();
|
|
549
590
|
this.vertexAttributes = new Map(Object.entries(options?.vertexAttributes ?? {}));
|
|
@@ -4464,7 +4505,7 @@ exports.Animation2D = class Animation2D extends exports.Node {
|
|
|
4464
4505
|
easing;
|
|
4465
4506
|
_keyframes = [];
|
|
4466
4507
|
_starting = false;
|
|
4467
|
-
_startProps =
|
|
4508
|
+
_startProps = new RawWeakMap();
|
|
4468
4509
|
constructor(options) {
|
|
4469
4510
|
super();
|
|
4470
4511
|
this._onUpdateTime = this._onUpdateTime.bind(this);
|
|
@@ -9315,7 +9356,7 @@ class Renderer {
|
|
|
9315
9356
|
view;
|
|
9316
9357
|
pixelRatio = DEVICE_PIXEL_RATIO;
|
|
9317
9358
|
screen = { x: 0, y: 0, width: 0, height: 0 };
|
|
9318
|
-
related =
|
|
9359
|
+
related = new RawWeakMap();
|
|
9319
9360
|
getRelated(source, createFn) {
|
|
9320
9361
|
let related = this.related.get(source);
|
|
9321
9362
|
if (related)
|
|
@@ -10387,7 +10428,7 @@ class WebGLProgramModule extends WebGLModule {
|
|
|
10387
10428
|
return {
|
|
10388
10429
|
attributes: /* @__PURE__ */ new Map(),
|
|
10389
10430
|
uniforms: /* @__PURE__ */ new Map(),
|
|
10390
|
-
boundUniforms:
|
|
10431
|
+
boundUniforms: new RawWeakMap()
|
|
10391
10432
|
};
|
|
10392
10433
|
});
|
|
10393
10434
|
}
|
|
@@ -11588,6 +11629,7 @@ exports.Projection2D = Projection2D;
|
|
|
11588
11629
|
exports.QuadGeometry = QuadGeometry;
|
|
11589
11630
|
exports.QuadUvGeometry = QuadUvGeometry;
|
|
11590
11631
|
exports.RAD_TO_DEG = RAD_TO_DEG;
|
|
11632
|
+
exports.RawWeakMap = RawWeakMap;
|
|
11591
11633
|
exports.Reference = Reference;
|
|
11592
11634
|
exports.RenderStack = RenderStack;
|
|
11593
11635
|
exports.Renderer = Renderer;
|
package/dist/index.d.cts
CHANGED
|
@@ -67,6 +67,29 @@ declare class EventEmitter {
|
|
|
67
67
|
emit(type: string, ...args: any[]): boolean;
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
+
declare class RawWeakMap<K extends WeakKey = WeakKey, V = any> {
|
|
71
|
+
protected _map: WeakMap<K, V>;
|
|
72
|
+
protected _toRaw(value: any): any;
|
|
73
|
+
/**
|
|
74
|
+
* Removes the specified element from the WeakMap.
|
|
75
|
+
* @returns true if the element was successfully removed, or false if it was not present.
|
|
76
|
+
*/
|
|
77
|
+
delete(key: K): boolean;
|
|
78
|
+
/**
|
|
79
|
+
* @returns a specified element.
|
|
80
|
+
*/
|
|
81
|
+
get(key: K): V | undefined;
|
|
82
|
+
/**
|
|
83
|
+
* @returns a boolean indicating whether an element with the specified key exists or not.
|
|
84
|
+
*/
|
|
85
|
+
has(key: K): boolean;
|
|
86
|
+
/**
|
|
87
|
+
* Adds a new element with a specified key and value.
|
|
88
|
+
* @param key Must be an object or symbol.
|
|
89
|
+
*/
|
|
90
|
+
set(key: K, value: V): this;
|
|
91
|
+
}
|
|
92
|
+
|
|
70
93
|
declare const PI: number;
|
|
71
94
|
declare const PI_2: number;
|
|
72
95
|
declare function uid(object?: Record<string, any>): number;
|
|
@@ -141,7 +164,7 @@ declare abstract class Renderer {
|
|
|
141
164
|
width: number;
|
|
142
165
|
height: number;
|
|
143
166
|
};
|
|
144
|
-
readonly related:
|
|
167
|
+
readonly related: RawWeakMap<object, any>;
|
|
145
168
|
getRelated<T>(source: object, createFn?: () => T): T;
|
|
146
169
|
resize(width: number, height: number, updateStyle?: boolean): void;
|
|
147
170
|
}
|
|
@@ -221,7 +244,7 @@ interface WebGLProgramMeta {
|
|
|
221
244
|
name: string;
|
|
222
245
|
location: WebGLUniformLocation | null;
|
|
223
246
|
}>;
|
|
224
|
-
boundUniforms:
|
|
247
|
+
boundUniforms: RawWeakMap<object, any>;
|
|
225
248
|
}
|
|
226
249
|
interface WebGLProgramOptions {
|
|
227
250
|
vert: string;
|
|
@@ -739,7 +762,7 @@ declare class Geometry extends Resource {
|
|
|
739
762
|
indexBuffer?: IndexBuffer;
|
|
740
763
|
instanceCount?: number;
|
|
741
764
|
mode: WebGLDrawMode;
|
|
742
|
-
protected _materialWeakMap:
|
|
765
|
+
protected _materialWeakMap: RawWeakMap<Material, Record<string, any>>;
|
|
743
766
|
constructor(options?: GeometryOptions);
|
|
744
767
|
/** @internal */
|
|
745
768
|
_glVertexArray(renderer: WebGLRenderer): WebGLVertexArrayObjectOptions;
|
|
@@ -1417,7 +1440,7 @@ declare class Animation2D extends Node {
|
|
|
1417
1440
|
duration: number;
|
|
1418
1441
|
protected _keyframes: NormalizedKeyframe[];
|
|
1419
1442
|
protected _starting: boolean;
|
|
1420
|
-
protected _startProps:
|
|
1443
|
+
protected _startProps: RawWeakMap<any, Map<string, any>>;
|
|
1421
1444
|
constructor(options?: AnimationOptions);
|
|
1422
1445
|
protected _enterTree(): void;
|
|
1423
1446
|
protected _exitTree(): void;
|
|
@@ -2741,4 +2764,4 @@ interface RenderOptions {
|
|
|
2741
2764
|
}
|
|
2742
2765
|
declare function render(options: RenderOptions): Promise<HTMLCanvasElement>;
|
|
2743
2766
|
|
|
2744
|
-
export { Animation2D, type AnimationOptions, type AssetHandler, Assets, Audio, AudioPipeline, AudioProcessor, AudioSpectrum, AudioWaveform, type AudioWaveformOptions, type Batchable2D, BlurEffect, type CanvasBatchable, CanvasContext, CanvasItem, type CanvasItemOptions, Color, ColorAdjustEffect, ColorFilterEffect, type ColorFilterEffectOptions, ColorMatrix, ColorOverlayEffect, ColorRemoveEffect, ColorReplaceEffect, ColorTexture, type ColorValue, type CssFunction, type CssFunctionArg, type Cursor, type CustomNodeOptions, DEG_TO_RAD, DEVICE_PIXEL_RATIO, type Easing, Effect, type EffectContext, EffectMaterial, type EffectMode, type EffectOptions, EmbossEffect, Engine, type EngineOptions, EventEmitter, type EventListener, type EventListenerOptions, type EventListenerValue, type FilledGraphics, FontLoader, Geometry, type GeometryOptions, GifLoader, GlitchEffect, GodrayEffect, Graphics2D, HTMLAudio, HTMLAudioContext, HTMLSound, type IAudioContext, type IAudioNode, IN_BROWSER, type IPlayOptions, Image2D, type Image2DOptions, Image2DResource, type ImageFrame, ImageTexture, type ImageTextureOptions, IndexBuffer, type IndexBufferOptions, Input, InternalMode, JsonLoader, KawaseEffect, type Keyframe, LeftEraseEffect, Loader, Lottie2D, LottieLoader, type LottieOptions, MainLoop, type MainLoopEventMap, type MaskColor, type MaskData, MaskEffect, type MaskEffectOptions, type MaskObject, type MaskRect, type Maskable, Material, type MaterialOptions, Matrix, Matrix2, Matrix3, Matrix4, type MatrixLike, type MatrixOperateOutput, MouseInputEvent, Node, Node2D, type Node2DOptions, type NodeEventMap, type NodeOptions, type NormalizedKeyframe, PI, PI_2, PixelateEffect, PixelsTexture, type PlatformAudio, type PlatformSound, PointerInputEvent, Projection2D, type PropertyDeclaration, QuadGeometry, QuadUvGeometry, RAD_TO_DEG, Reference, type ReferenceEventMap, type RenderCall, type RenderOptions, RenderStack, type Renderable, Renderer, Resource, type ResourceEventMap, 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, SceneTree, type SceneTreeEventMap, type StrokedGraphics, Style2D, type Style2DBackgroundExtend, Style2DBackgroundModule, type Style2DBackgroundProperties, type Style2DFilter, type Style2DFilterExtend, type Style2DFilterKey, Style2DFilterModule, type Style2DFilterProperties, Style2DModule, type Style2DOptions, type Style2DTextExtend, Style2DTextModule, type Style2DTextProperties, type Style2DTransformExtend, Style2DTransformModule, type Style2DTransformProperties, Text2D, type Text2DOptions, TextLoader, Texture, type TextureFilterMode, TextureLoader, type TexturePixelsSource, type TextureSource, type TextureWrapMode, Ticker, TiltShiftEffect, Timer, type TimerEventMap, type TimerOptions, type TimingFunctions, Transform2D, type Transform2DObject, TwistEffect, UIInputEvent, UvGeometry, UvMaterial, Vector, Vector2, Vector3, Vector4, type VectorLike, type VectorOperateOutput, VertexAttribute, type VertexAttributeOptions, VertexBuffer, type VertexBufferOptions, Video2D, type Video2DOptions, VideoLoader, VideoTexture, type VideoTextureOptions, type VideoTextureSource, Viewport, 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, ZoomBlurEffect, _Object, type _ObjectEventMap, assets, clamp, createHTMLCanvas, createNode, crossOrigin, cubicBezier, curves, customNode, customNodes, defaultOptions, defineProperty, determineCrossOrigin, ease, easeIn, easeInOut, easeOut, getDeclarations, getDefaultCssPropertyValue, isCanvasElement, isElementNode, isImageElement, isPow2, isVideoElement, isWebgl2, lerp, linear, log2, mapWebGLBlendModes, nextPow2, nextTick, parseCssFunctions, parseCssProperty, property, protectedProperty, render, timingFunctions, uid };
|
|
2767
|
+
export { Animation2D, type AnimationOptions, type AssetHandler, Assets, Audio, AudioPipeline, AudioProcessor, AudioSpectrum, AudioWaveform, type AudioWaveformOptions, type Batchable2D, BlurEffect, type CanvasBatchable, CanvasContext, CanvasItem, type CanvasItemOptions, Color, ColorAdjustEffect, ColorFilterEffect, type ColorFilterEffectOptions, ColorMatrix, ColorOverlayEffect, ColorRemoveEffect, ColorReplaceEffect, ColorTexture, type ColorValue, type CssFunction, type CssFunctionArg, type Cursor, type CustomNodeOptions, DEG_TO_RAD, DEVICE_PIXEL_RATIO, type Easing, Effect, type EffectContext, EffectMaterial, type EffectMode, type EffectOptions, EmbossEffect, Engine, type EngineOptions, EventEmitter, type EventListener, type EventListenerOptions, type EventListenerValue, type FilledGraphics, FontLoader, Geometry, type GeometryOptions, GifLoader, GlitchEffect, GodrayEffect, Graphics2D, HTMLAudio, HTMLAudioContext, HTMLSound, type IAudioContext, type IAudioNode, IN_BROWSER, type IPlayOptions, Image2D, type Image2DOptions, Image2DResource, type ImageFrame, ImageTexture, type ImageTextureOptions, IndexBuffer, type IndexBufferOptions, Input, InternalMode, JsonLoader, KawaseEffect, type Keyframe, LeftEraseEffect, Loader, Lottie2D, LottieLoader, type LottieOptions, MainLoop, type MainLoopEventMap, type MaskColor, type MaskData, MaskEffect, type MaskEffectOptions, type MaskObject, type MaskRect, type Maskable, Material, type MaterialOptions, Matrix, Matrix2, Matrix3, Matrix4, type MatrixLike, type MatrixOperateOutput, MouseInputEvent, Node, Node2D, type Node2DOptions, type NodeEventMap, type NodeOptions, type NormalizedKeyframe, PI, PI_2, PixelateEffect, PixelsTexture, type PlatformAudio, type PlatformSound, PointerInputEvent, Projection2D, type PropertyDeclaration, QuadGeometry, QuadUvGeometry, RAD_TO_DEG, RawWeakMap, Reference, type ReferenceEventMap, type RenderCall, type RenderOptions, RenderStack, type Renderable, Renderer, Resource, type ResourceEventMap, 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, SceneTree, type SceneTreeEventMap, type StrokedGraphics, Style2D, type Style2DBackgroundExtend, Style2DBackgroundModule, type Style2DBackgroundProperties, type Style2DFilter, type Style2DFilterExtend, type Style2DFilterKey, Style2DFilterModule, type Style2DFilterProperties, Style2DModule, type Style2DOptions, type Style2DTextExtend, Style2DTextModule, type Style2DTextProperties, type Style2DTransformExtend, Style2DTransformModule, type Style2DTransformProperties, Text2D, type Text2DOptions, TextLoader, Texture, type TextureFilterMode, TextureLoader, type TexturePixelsSource, type TextureSource, type TextureWrapMode, Ticker, TiltShiftEffect, Timer, type TimerEventMap, type TimerOptions, type TimingFunctions, Transform2D, type Transform2DObject, TwistEffect, UIInputEvent, UvGeometry, UvMaterial, Vector, Vector2, Vector3, Vector4, type VectorLike, type VectorOperateOutput, VertexAttribute, type VertexAttributeOptions, VertexBuffer, type VertexBufferOptions, Video2D, type Video2DOptions, VideoLoader, VideoTexture, type VideoTextureOptions, type VideoTextureSource, Viewport, 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, ZoomBlurEffect, _Object, type _ObjectEventMap, assets, clamp, createHTMLCanvas, createNode, crossOrigin, cubicBezier, curves, customNode, customNodes, defaultOptions, defineProperty, determineCrossOrigin, ease, easeIn, easeInOut, easeOut, getDeclarations, getDefaultCssPropertyValue, isCanvasElement, isElementNode, isImageElement, isPow2, isVideoElement, isWebgl2, lerp, linear, log2, mapWebGLBlendModes, nextPow2, nextTick, parseCssFunctions, parseCssProperty, property, protectedProperty, render, timingFunctions, uid };
|
package/dist/index.d.mts
CHANGED
|
@@ -67,6 +67,29 @@ declare class EventEmitter {
|
|
|
67
67
|
emit(type: string, ...args: any[]): boolean;
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
+
declare class RawWeakMap<K extends WeakKey = WeakKey, V = any> {
|
|
71
|
+
protected _map: WeakMap<K, V>;
|
|
72
|
+
protected _toRaw(value: any): any;
|
|
73
|
+
/**
|
|
74
|
+
* Removes the specified element from the WeakMap.
|
|
75
|
+
* @returns true if the element was successfully removed, or false if it was not present.
|
|
76
|
+
*/
|
|
77
|
+
delete(key: K): boolean;
|
|
78
|
+
/**
|
|
79
|
+
* @returns a specified element.
|
|
80
|
+
*/
|
|
81
|
+
get(key: K): V | undefined;
|
|
82
|
+
/**
|
|
83
|
+
* @returns a boolean indicating whether an element with the specified key exists or not.
|
|
84
|
+
*/
|
|
85
|
+
has(key: K): boolean;
|
|
86
|
+
/**
|
|
87
|
+
* Adds a new element with a specified key and value.
|
|
88
|
+
* @param key Must be an object or symbol.
|
|
89
|
+
*/
|
|
90
|
+
set(key: K, value: V): this;
|
|
91
|
+
}
|
|
92
|
+
|
|
70
93
|
declare const PI: number;
|
|
71
94
|
declare const PI_2: number;
|
|
72
95
|
declare function uid(object?: Record<string, any>): number;
|
|
@@ -141,7 +164,7 @@ declare abstract class Renderer {
|
|
|
141
164
|
width: number;
|
|
142
165
|
height: number;
|
|
143
166
|
};
|
|
144
|
-
readonly related:
|
|
167
|
+
readonly related: RawWeakMap<object, any>;
|
|
145
168
|
getRelated<T>(source: object, createFn?: () => T): T;
|
|
146
169
|
resize(width: number, height: number, updateStyle?: boolean): void;
|
|
147
170
|
}
|
|
@@ -221,7 +244,7 @@ interface WebGLProgramMeta {
|
|
|
221
244
|
name: string;
|
|
222
245
|
location: WebGLUniformLocation | null;
|
|
223
246
|
}>;
|
|
224
|
-
boundUniforms:
|
|
247
|
+
boundUniforms: RawWeakMap<object, any>;
|
|
225
248
|
}
|
|
226
249
|
interface WebGLProgramOptions {
|
|
227
250
|
vert: string;
|
|
@@ -739,7 +762,7 @@ declare class Geometry extends Resource {
|
|
|
739
762
|
indexBuffer?: IndexBuffer;
|
|
740
763
|
instanceCount?: number;
|
|
741
764
|
mode: WebGLDrawMode;
|
|
742
|
-
protected _materialWeakMap:
|
|
765
|
+
protected _materialWeakMap: RawWeakMap<Material, Record<string, any>>;
|
|
743
766
|
constructor(options?: GeometryOptions);
|
|
744
767
|
/** @internal */
|
|
745
768
|
_glVertexArray(renderer: WebGLRenderer): WebGLVertexArrayObjectOptions;
|
|
@@ -1417,7 +1440,7 @@ declare class Animation2D extends Node {
|
|
|
1417
1440
|
duration: number;
|
|
1418
1441
|
protected _keyframes: NormalizedKeyframe[];
|
|
1419
1442
|
protected _starting: boolean;
|
|
1420
|
-
protected _startProps:
|
|
1443
|
+
protected _startProps: RawWeakMap<any, Map<string, any>>;
|
|
1421
1444
|
constructor(options?: AnimationOptions);
|
|
1422
1445
|
protected _enterTree(): void;
|
|
1423
1446
|
protected _exitTree(): void;
|
|
@@ -2741,4 +2764,4 @@ interface RenderOptions {
|
|
|
2741
2764
|
}
|
|
2742
2765
|
declare function render(options: RenderOptions): Promise<HTMLCanvasElement>;
|
|
2743
2766
|
|
|
2744
|
-
export { Animation2D, type AnimationOptions, type AssetHandler, Assets, Audio, AudioPipeline, AudioProcessor, AudioSpectrum, AudioWaveform, type AudioWaveformOptions, type Batchable2D, BlurEffect, type CanvasBatchable, CanvasContext, CanvasItem, type CanvasItemOptions, Color, ColorAdjustEffect, ColorFilterEffect, type ColorFilterEffectOptions, ColorMatrix, ColorOverlayEffect, ColorRemoveEffect, ColorReplaceEffect, ColorTexture, type ColorValue, type CssFunction, type CssFunctionArg, type Cursor, type CustomNodeOptions, DEG_TO_RAD, DEVICE_PIXEL_RATIO, type Easing, Effect, type EffectContext, EffectMaterial, type EffectMode, type EffectOptions, EmbossEffect, Engine, type EngineOptions, EventEmitter, type EventListener, type EventListenerOptions, type EventListenerValue, type FilledGraphics, FontLoader, Geometry, type GeometryOptions, GifLoader, GlitchEffect, GodrayEffect, Graphics2D, HTMLAudio, HTMLAudioContext, HTMLSound, type IAudioContext, type IAudioNode, IN_BROWSER, type IPlayOptions, Image2D, type Image2DOptions, Image2DResource, type ImageFrame, ImageTexture, type ImageTextureOptions, IndexBuffer, type IndexBufferOptions, Input, InternalMode, JsonLoader, KawaseEffect, type Keyframe, LeftEraseEffect, Loader, Lottie2D, LottieLoader, type LottieOptions, MainLoop, type MainLoopEventMap, type MaskColor, type MaskData, MaskEffect, type MaskEffectOptions, type MaskObject, type MaskRect, type Maskable, Material, type MaterialOptions, Matrix, Matrix2, Matrix3, Matrix4, type MatrixLike, type MatrixOperateOutput, MouseInputEvent, Node, Node2D, type Node2DOptions, type NodeEventMap, type NodeOptions, type NormalizedKeyframe, PI, PI_2, PixelateEffect, PixelsTexture, type PlatformAudio, type PlatformSound, PointerInputEvent, Projection2D, type PropertyDeclaration, QuadGeometry, QuadUvGeometry, RAD_TO_DEG, Reference, type ReferenceEventMap, type RenderCall, type RenderOptions, RenderStack, type Renderable, Renderer, Resource, type ResourceEventMap, 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, SceneTree, type SceneTreeEventMap, type StrokedGraphics, Style2D, type Style2DBackgroundExtend, Style2DBackgroundModule, type Style2DBackgroundProperties, type Style2DFilter, type Style2DFilterExtend, type Style2DFilterKey, Style2DFilterModule, type Style2DFilterProperties, Style2DModule, type Style2DOptions, type Style2DTextExtend, Style2DTextModule, type Style2DTextProperties, type Style2DTransformExtend, Style2DTransformModule, type Style2DTransformProperties, Text2D, type Text2DOptions, TextLoader, Texture, type TextureFilterMode, TextureLoader, type TexturePixelsSource, type TextureSource, type TextureWrapMode, Ticker, TiltShiftEffect, Timer, type TimerEventMap, type TimerOptions, type TimingFunctions, Transform2D, type Transform2DObject, TwistEffect, UIInputEvent, UvGeometry, UvMaterial, Vector, Vector2, Vector3, Vector4, type VectorLike, type VectorOperateOutput, VertexAttribute, type VertexAttributeOptions, VertexBuffer, type VertexBufferOptions, Video2D, type Video2DOptions, VideoLoader, VideoTexture, type VideoTextureOptions, type VideoTextureSource, Viewport, 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, ZoomBlurEffect, _Object, type _ObjectEventMap, assets, clamp, createHTMLCanvas, createNode, crossOrigin, cubicBezier, curves, customNode, customNodes, defaultOptions, defineProperty, determineCrossOrigin, ease, easeIn, easeInOut, easeOut, getDeclarations, getDefaultCssPropertyValue, isCanvasElement, isElementNode, isImageElement, isPow2, isVideoElement, isWebgl2, lerp, linear, log2, mapWebGLBlendModes, nextPow2, nextTick, parseCssFunctions, parseCssProperty, property, protectedProperty, render, timingFunctions, uid };
|
|
2767
|
+
export { Animation2D, type AnimationOptions, type AssetHandler, Assets, Audio, AudioPipeline, AudioProcessor, AudioSpectrum, AudioWaveform, type AudioWaveformOptions, type Batchable2D, BlurEffect, type CanvasBatchable, CanvasContext, CanvasItem, type CanvasItemOptions, Color, ColorAdjustEffect, ColorFilterEffect, type ColorFilterEffectOptions, ColorMatrix, ColorOverlayEffect, ColorRemoveEffect, ColorReplaceEffect, ColorTexture, type ColorValue, type CssFunction, type CssFunctionArg, type Cursor, type CustomNodeOptions, DEG_TO_RAD, DEVICE_PIXEL_RATIO, type Easing, Effect, type EffectContext, EffectMaterial, type EffectMode, type EffectOptions, EmbossEffect, Engine, type EngineOptions, EventEmitter, type EventListener, type EventListenerOptions, type EventListenerValue, type FilledGraphics, FontLoader, Geometry, type GeometryOptions, GifLoader, GlitchEffect, GodrayEffect, Graphics2D, HTMLAudio, HTMLAudioContext, HTMLSound, type IAudioContext, type IAudioNode, IN_BROWSER, type IPlayOptions, Image2D, type Image2DOptions, Image2DResource, type ImageFrame, ImageTexture, type ImageTextureOptions, IndexBuffer, type IndexBufferOptions, Input, InternalMode, JsonLoader, KawaseEffect, type Keyframe, LeftEraseEffect, Loader, Lottie2D, LottieLoader, type LottieOptions, MainLoop, type MainLoopEventMap, type MaskColor, type MaskData, MaskEffect, type MaskEffectOptions, type MaskObject, type MaskRect, type Maskable, Material, type MaterialOptions, Matrix, Matrix2, Matrix3, Matrix4, type MatrixLike, type MatrixOperateOutput, MouseInputEvent, Node, Node2D, type Node2DOptions, type NodeEventMap, type NodeOptions, type NormalizedKeyframe, PI, PI_2, PixelateEffect, PixelsTexture, type PlatformAudio, type PlatformSound, PointerInputEvent, Projection2D, type PropertyDeclaration, QuadGeometry, QuadUvGeometry, RAD_TO_DEG, RawWeakMap, Reference, type ReferenceEventMap, type RenderCall, type RenderOptions, RenderStack, type Renderable, Renderer, Resource, type ResourceEventMap, 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, SceneTree, type SceneTreeEventMap, type StrokedGraphics, Style2D, type Style2DBackgroundExtend, Style2DBackgroundModule, type Style2DBackgroundProperties, type Style2DFilter, type Style2DFilterExtend, type Style2DFilterKey, Style2DFilterModule, type Style2DFilterProperties, Style2DModule, type Style2DOptions, type Style2DTextExtend, Style2DTextModule, type Style2DTextProperties, type Style2DTransformExtend, Style2DTransformModule, type Style2DTransformProperties, Text2D, type Text2DOptions, TextLoader, Texture, type TextureFilterMode, TextureLoader, type TexturePixelsSource, type TextureSource, type TextureWrapMode, Ticker, TiltShiftEffect, Timer, type TimerEventMap, type TimerOptions, type TimingFunctions, Transform2D, type Transform2DObject, TwistEffect, UIInputEvent, UvGeometry, UvMaterial, Vector, Vector2, Vector3, Vector4, type VectorLike, type VectorOperateOutput, VertexAttribute, type VertexAttributeOptions, VertexBuffer, type VertexBufferOptions, Video2D, type Video2DOptions, VideoLoader, VideoTexture, type VideoTextureOptions, type VideoTextureSource, Viewport, 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, ZoomBlurEffect, _Object, type _ObjectEventMap, assets, clamp, createHTMLCanvas, createNode, crossOrigin, cubicBezier, curves, customNode, customNodes, defaultOptions, defineProperty, determineCrossOrigin, ease, easeIn, easeInOut, easeOut, getDeclarations, getDefaultCssPropertyValue, isCanvasElement, isElementNode, isImageElement, isPow2, isVideoElement, isWebgl2, lerp, linear, log2, mapWebGLBlendModes, nextPow2, nextTick, parseCssFunctions, parseCssProperty, property, protectedProperty, render, timingFunctions, uid };
|
package/dist/index.d.ts
CHANGED
|
@@ -67,6 +67,29 @@ declare class EventEmitter {
|
|
|
67
67
|
emit(type: string, ...args: any[]): boolean;
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
+
declare class RawWeakMap<K extends WeakKey = WeakKey, V = any> {
|
|
71
|
+
protected _map: WeakMap<K, V>;
|
|
72
|
+
protected _toRaw(value: any): any;
|
|
73
|
+
/**
|
|
74
|
+
* Removes the specified element from the WeakMap.
|
|
75
|
+
* @returns true if the element was successfully removed, or false if it was not present.
|
|
76
|
+
*/
|
|
77
|
+
delete(key: K): boolean;
|
|
78
|
+
/**
|
|
79
|
+
* @returns a specified element.
|
|
80
|
+
*/
|
|
81
|
+
get(key: K): V | undefined;
|
|
82
|
+
/**
|
|
83
|
+
* @returns a boolean indicating whether an element with the specified key exists or not.
|
|
84
|
+
*/
|
|
85
|
+
has(key: K): boolean;
|
|
86
|
+
/**
|
|
87
|
+
* Adds a new element with a specified key and value.
|
|
88
|
+
* @param key Must be an object or symbol.
|
|
89
|
+
*/
|
|
90
|
+
set(key: K, value: V): this;
|
|
91
|
+
}
|
|
92
|
+
|
|
70
93
|
declare const PI: number;
|
|
71
94
|
declare const PI_2: number;
|
|
72
95
|
declare function uid(object?: Record<string, any>): number;
|
|
@@ -141,7 +164,7 @@ declare abstract class Renderer {
|
|
|
141
164
|
width: number;
|
|
142
165
|
height: number;
|
|
143
166
|
};
|
|
144
|
-
readonly related:
|
|
167
|
+
readonly related: RawWeakMap<object, any>;
|
|
145
168
|
getRelated<T>(source: object, createFn?: () => T): T;
|
|
146
169
|
resize(width: number, height: number, updateStyle?: boolean): void;
|
|
147
170
|
}
|
|
@@ -221,7 +244,7 @@ interface WebGLProgramMeta {
|
|
|
221
244
|
name: string;
|
|
222
245
|
location: WebGLUniformLocation | null;
|
|
223
246
|
}>;
|
|
224
|
-
boundUniforms:
|
|
247
|
+
boundUniforms: RawWeakMap<object, any>;
|
|
225
248
|
}
|
|
226
249
|
interface WebGLProgramOptions {
|
|
227
250
|
vert: string;
|
|
@@ -739,7 +762,7 @@ declare class Geometry extends Resource {
|
|
|
739
762
|
indexBuffer?: IndexBuffer;
|
|
740
763
|
instanceCount?: number;
|
|
741
764
|
mode: WebGLDrawMode;
|
|
742
|
-
protected _materialWeakMap:
|
|
765
|
+
protected _materialWeakMap: RawWeakMap<Material, Record<string, any>>;
|
|
743
766
|
constructor(options?: GeometryOptions);
|
|
744
767
|
/** @internal */
|
|
745
768
|
_glVertexArray(renderer: WebGLRenderer): WebGLVertexArrayObjectOptions;
|
|
@@ -1417,7 +1440,7 @@ declare class Animation2D extends Node {
|
|
|
1417
1440
|
duration: number;
|
|
1418
1441
|
protected _keyframes: NormalizedKeyframe[];
|
|
1419
1442
|
protected _starting: boolean;
|
|
1420
|
-
protected _startProps:
|
|
1443
|
+
protected _startProps: RawWeakMap<any, Map<string, any>>;
|
|
1421
1444
|
constructor(options?: AnimationOptions);
|
|
1422
1445
|
protected _enterTree(): void;
|
|
1423
1446
|
protected _exitTree(): void;
|
|
@@ -2741,4 +2764,4 @@ interface RenderOptions {
|
|
|
2741
2764
|
}
|
|
2742
2765
|
declare function render(options: RenderOptions): Promise<HTMLCanvasElement>;
|
|
2743
2766
|
|
|
2744
|
-
export { Animation2D, type AnimationOptions, type AssetHandler, Assets, Audio, AudioPipeline, AudioProcessor, AudioSpectrum, AudioWaveform, type AudioWaveformOptions, type Batchable2D, BlurEffect, type CanvasBatchable, CanvasContext, CanvasItem, type CanvasItemOptions, Color, ColorAdjustEffect, ColorFilterEffect, type ColorFilterEffectOptions, ColorMatrix, ColorOverlayEffect, ColorRemoveEffect, ColorReplaceEffect, ColorTexture, type ColorValue, type CssFunction, type CssFunctionArg, type Cursor, type CustomNodeOptions, DEG_TO_RAD, DEVICE_PIXEL_RATIO, type Easing, Effect, type EffectContext, EffectMaterial, type EffectMode, type EffectOptions, EmbossEffect, Engine, type EngineOptions, EventEmitter, type EventListener, type EventListenerOptions, type EventListenerValue, type FilledGraphics, FontLoader, Geometry, type GeometryOptions, GifLoader, GlitchEffect, GodrayEffect, Graphics2D, HTMLAudio, HTMLAudioContext, HTMLSound, type IAudioContext, type IAudioNode, IN_BROWSER, type IPlayOptions, Image2D, type Image2DOptions, Image2DResource, type ImageFrame, ImageTexture, type ImageTextureOptions, IndexBuffer, type IndexBufferOptions, Input, InternalMode, JsonLoader, KawaseEffect, type Keyframe, LeftEraseEffect, Loader, Lottie2D, LottieLoader, type LottieOptions, MainLoop, type MainLoopEventMap, type MaskColor, type MaskData, MaskEffect, type MaskEffectOptions, type MaskObject, type MaskRect, type Maskable, Material, type MaterialOptions, Matrix, Matrix2, Matrix3, Matrix4, type MatrixLike, type MatrixOperateOutput, MouseInputEvent, Node, Node2D, type Node2DOptions, type NodeEventMap, type NodeOptions, type NormalizedKeyframe, PI, PI_2, PixelateEffect, PixelsTexture, type PlatformAudio, type PlatformSound, PointerInputEvent, Projection2D, type PropertyDeclaration, QuadGeometry, QuadUvGeometry, RAD_TO_DEG, Reference, type ReferenceEventMap, type RenderCall, type RenderOptions, RenderStack, type Renderable, Renderer, Resource, type ResourceEventMap, 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, SceneTree, type SceneTreeEventMap, type StrokedGraphics, Style2D, type Style2DBackgroundExtend, Style2DBackgroundModule, type Style2DBackgroundProperties, type Style2DFilter, type Style2DFilterExtend, type Style2DFilterKey, Style2DFilterModule, type Style2DFilterProperties, Style2DModule, type Style2DOptions, type Style2DTextExtend, Style2DTextModule, type Style2DTextProperties, type Style2DTransformExtend, Style2DTransformModule, type Style2DTransformProperties, Text2D, type Text2DOptions, TextLoader, Texture, type TextureFilterMode, TextureLoader, type TexturePixelsSource, type TextureSource, type TextureWrapMode, Ticker, TiltShiftEffect, Timer, type TimerEventMap, type TimerOptions, type TimingFunctions, Transform2D, type Transform2DObject, TwistEffect, UIInputEvent, UvGeometry, UvMaterial, Vector, Vector2, Vector3, Vector4, type VectorLike, type VectorOperateOutput, VertexAttribute, type VertexAttributeOptions, VertexBuffer, type VertexBufferOptions, Video2D, type Video2DOptions, VideoLoader, VideoTexture, type VideoTextureOptions, type VideoTextureSource, Viewport, 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, ZoomBlurEffect, _Object, type _ObjectEventMap, assets, clamp, createHTMLCanvas, createNode, crossOrigin, cubicBezier, curves, customNode, customNodes, defaultOptions, defineProperty, determineCrossOrigin, ease, easeIn, easeInOut, easeOut, getDeclarations, getDefaultCssPropertyValue, isCanvasElement, isElementNode, isImageElement, isPow2, isVideoElement, isWebgl2, lerp, linear, log2, mapWebGLBlendModes, nextPow2, nextTick, parseCssFunctions, parseCssProperty, property, protectedProperty, render, timingFunctions, uid };
|
|
2767
|
+
export { Animation2D, type AnimationOptions, type AssetHandler, Assets, Audio, AudioPipeline, AudioProcessor, AudioSpectrum, AudioWaveform, type AudioWaveformOptions, type Batchable2D, BlurEffect, type CanvasBatchable, CanvasContext, CanvasItem, type CanvasItemOptions, Color, ColorAdjustEffect, ColorFilterEffect, type ColorFilterEffectOptions, ColorMatrix, ColorOverlayEffect, ColorRemoveEffect, ColorReplaceEffect, ColorTexture, type ColorValue, type CssFunction, type CssFunctionArg, type Cursor, type CustomNodeOptions, DEG_TO_RAD, DEVICE_PIXEL_RATIO, type Easing, Effect, type EffectContext, EffectMaterial, type EffectMode, type EffectOptions, EmbossEffect, Engine, type EngineOptions, EventEmitter, type EventListener, type EventListenerOptions, type EventListenerValue, type FilledGraphics, FontLoader, Geometry, type GeometryOptions, GifLoader, GlitchEffect, GodrayEffect, Graphics2D, HTMLAudio, HTMLAudioContext, HTMLSound, type IAudioContext, type IAudioNode, IN_BROWSER, type IPlayOptions, Image2D, type Image2DOptions, Image2DResource, type ImageFrame, ImageTexture, type ImageTextureOptions, IndexBuffer, type IndexBufferOptions, Input, InternalMode, JsonLoader, KawaseEffect, type Keyframe, LeftEraseEffect, Loader, Lottie2D, LottieLoader, type LottieOptions, MainLoop, type MainLoopEventMap, type MaskColor, type MaskData, MaskEffect, type MaskEffectOptions, type MaskObject, type MaskRect, type Maskable, Material, type MaterialOptions, Matrix, Matrix2, Matrix3, Matrix4, type MatrixLike, type MatrixOperateOutput, MouseInputEvent, Node, Node2D, type Node2DOptions, type NodeEventMap, type NodeOptions, type NormalizedKeyframe, PI, PI_2, PixelateEffect, PixelsTexture, type PlatformAudio, type PlatformSound, PointerInputEvent, Projection2D, type PropertyDeclaration, QuadGeometry, QuadUvGeometry, RAD_TO_DEG, RawWeakMap, Reference, type ReferenceEventMap, type RenderCall, type RenderOptions, RenderStack, type Renderable, Renderer, Resource, type ResourceEventMap, 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, SceneTree, type SceneTreeEventMap, type StrokedGraphics, Style2D, type Style2DBackgroundExtend, Style2DBackgroundModule, type Style2DBackgroundProperties, type Style2DFilter, type Style2DFilterExtend, type Style2DFilterKey, Style2DFilterModule, type Style2DFilterProperties, Style2DModule, type Style2DOptions, type Style2DTextExtend, Style2DTextModule, type Style2DTextProperties, type Style2DTransformExtend, Style2DTransformModule, type Style2DTransformProperties, Text2D, type Text2DOptions, TextLoader, Texture, type TextureFilterMode, TextureLoader, type TexturePixelsSource, type TextureSource, type TextureWrapMode, Ticker, TiltShiftEffect, Timer, type TimerEventMap, type TimerOptions, type TimingFunctions, Transform2D, type Transform2DObject, TwistEffect, UIInputEvent, UvGeometry, UvMaterial, Vector, Vector2, Vector3, Vector4, type VectorLike, type VectorOperateOutput, VertexAttribute, type VertexAttributeOptions, VertexBuffer, type VertexBufferOptions, Video2D, type Video2DOptions, VideoLoader, VideoTexture, type VideoTextureOptions, type VideoTextureSource, Viewport, 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, ZoomBlurEffect, _Object, type _ObjectEventMap, assets, clamp, createHTMLCanvas, createNode, crossOrigin, cubicBezier, curves, customNode, customNodes, defaultOptions, defineProperty, determineCrossOrigin, ease, easeIn, easeInOut, easeOut, getDeclarations, getDefaultCssPropertyValue, isCanvasElement, isElementNode, isImageElement, isPow2, isVideoElement, isWebgl2, lerp, linear, log2, mapWebGLBlendModes, nextPow2, nextTick, parseCssFunctions, parseCssProperty, property, protectedProperty, render, timingFunctions, uid };
|