@vectojs/core 0.1.0 → 0.2.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/dist/animation/drivers.d.ts +48 -0
- package/dist/animation/easing.d.ts +16 -0
- package/dist/{chunk-53DAQC3U.js → chunk-W3SFIVXO.js} +356 -60
- package/dist/{chunk-M2IZPGOL.mjs → chunk-Y2N7TGEH.mjs} +303 -7
- package/dist/components/GridTextEntity.d.ts +15 -0
- package/dist/components/SplineEntity.d.ts +144 -0
- package/dist/components/TextEntity.d.ts +35 -0
- package/dist/index.d.ts +26 -577
- package/dist/index.js +60 -78
- package/dist/index.mjs +15 -33
- package/dist/{layout.d.mts → layout/LayoutEngine.d.ts} +15 -70
- package/dist/layout/LayoutWorker.d.ts +23 -0
- package/dist/layout/LayoutWorkerManager.d.ts +22 -0
- package/dist/layout/LayoutWorkerSource.d.ts +1 -0
- package/dist/layout/index.d.ts +3 -0
- package/dist/layout/measure.d.ts +20 -0
- package/dist/math/SpatialHashGrid.d.ts +53 -0
- package/dist/math/SpringPhysics.d.ts +13 -0
- package/dist/renderer/CanvasRenderer.d.ts +81 -0
- package/dist/renderer/IRenderer.d.ts +178 -0
- package/dist/renderer/SVGRenderer.d.ts +69 -0
- package/dist/renderer/WebGLPointRenderer.d.ts +62 -0
- package/dist/renderer/WebGPUParticleSystemManager.d.ts +14 -0
- package/dist/renderer/colorParse.d.ts +17 -0
- package/dist/renderer/index.d.ts +6 -0
- package/dist/text/ArabicShaper.d.ts +10 -0
- package/dist/text/BidiResolver.d.ts +6 -0
- package/dist/{text.d.ts → text/MSDFFont.d.ts} +10 -82
- package/dist/text/MSDFTextEntity.d.ts +30 -0
- package/dist/text/SVGEntity.d.ts +22 -0
- package/dist/text/index.d.ts +5 -0
- package/dist/text.js +2 -2
- package/dist/text.mjs +1 -1
- package/dist/tree/ComputeParticleEntity.d.ts +118 -0
- package/dist/tree/DOMPortalEntity.d.ts +18 -0
- package/dist/{Entity-D-rfAFCf.d.mts → tree/Entity.d.ts} +59 -197
- package/dist/tree/Scene.d.ts +295 -0
- package/package.json +5 -5
- package/dist/Entity-D-rfAFCf.d.ts +0 -572
- package/dist/index-ByBDSmMK.d.mts +0 -365
- package/dist/index-C3Fd_XmG.d.ts +0 -365
- package/dist/index.d.mts +0 -577
- package/dist/layout.d.ts +0 -319
- package/dist/renderer.d.mts +0 -2
- package/dist/renderer.d.ts +0 -2
- package/dist/text.d.mts +0 -201
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { E as Entity, I as IRenderer } from './Entity-D-rfAFCf.js';
|
|
2
|
-
|
|
3
1
|
/**
|
|
4
2
|
* MSDF (Multi-channel Signed Distance Field) font support.
|
|
5
3
|
*
|
|
@@ -14,7 +12,7 @@ import { E as Entity, I as IRenderer } from './Entity-D-rfAFCf.js';
|
|
|
14
12
|
* Y-flip, the same as `setTexture`/`addSprite`).
|
|
15
13
|
*/
|
|
16
14
|
/** Atlas section of an `msdf-atlas-gen` JSON file. */
|
|
17
|
-
interface MSDFAtlasInfo {
|
|
15
|
+
export interface MSDFAtlasInfo {
|
|
18
16
|
/** Field type, e.g. `'msdf'` | `'mtsdf'` | `'sdf'`. */
|
|
19
17
|
type: string;
|
|
20
18
|
/** Distance field range in atlas pixels — drives the shader's edge sharpness. */
|
|
@@ -29,7 +27,7 @@ interface MSDFAtlasInfo {
|
|
|
29
27
|
yOrigin: 'bottom' | 'top';
|
|
30
28
|
}
|
|
31
29
|
/** Font-wide metrics in em units. */
|
|
32
|
-
interface MSDFMetrics {
|
|
30
|
+
export interface MSDFMetrics {
|
|
33
31
|
emSize: number;
|
|
34
32
|
/** Line advance in em (multiply by font size for px). */
|
|
35
33
|
lineHeight: number;
|
|
@@ -41,14 +39,14 @@ interface MSDFMetrics {
|
|
|
41
39
|
underlineThickness?: number;
|
|
42
40
|
}
|
|
43
41
|
/** Em-unit / atlas-pixel rectangle as emitted by `msdf-atlas-gen`. */
|
|
44
|
-
interface MSDFBounds {
|
|
42
|
+
export interface MSDFBounds {
|
|
45
43
|
left: number;
|
|
46
44
|
bottom: number;
|
|
47
45
|
right: number;
|
|
48
46
|
top: number;
|
|
49
47
|
}
|
|
50
48
|
/** One glyph's metrics. Whitespace has `advance` but no plane/atlas bounds. */
|
|
51
|
-
interface MSDFGlyphDef {
|
|
49
|
+
export interface MSDFGlyphDef {
|
|
52
50
|
unicode: number;
|
|
53
51
|
/** Horizontal advance in em units. */
|
|
54
52
|
advance: number;
|
|
@@ -58,20 +56,20 @@ interface MSDFGlyphDef {
|
|
|
58
56
|
atlasBounds?: MSDFBounds;
|
|
59
57
|
}
|
|
60
58
|
/** Kerning pair adjustment in em units. */
|
|
61
|
-
interface MSDFKerning {
|
|
59
|
+
export interface MSDFKerning {
|
|
62
60
|
unicode1: number;
|
|
63
61
|
unicode2: number;
|
|
64
62
|
advance: number;
|
|
65
63
|
}
|
|
66
64
|
/** A parsed `msdf-atlas-gen` JSON document. */
|
|
67
|
-
interface MSDFFontData {
|
|
65
|
+
export interface MSDFFontData {
|
|
68
66
|
atlas: MSDFAtlasInfo;
|
|
69
67
|
metrics: MSDFMetrics;
|
|
70
68
|
glyphs: MSDFGlyphDef[];
|
|
71
69
|
kerning?: MSDFKerning[];
|
|
72
70
|
}
|
|
73
71
|
/** A glyph positioned for rendering: a CSS-pixel quad + atlas UVs (0..1). */
|
|
74
|
-
interface PositionedGlyph {
|
|
72
|
+
export interface PositionedGlyph {
|
|
75
73
|
/** Source character (may be a surrogate-pair astral codepoint). */
|
|
76
74
|
char: string;
|
|
77
75
|
/** Quad top-left in local CSS pixels (y-down). */
|
|
@@ -87,7 +85,7 @@ interface PositionedGlyph {
|
|
|
87
85
|
v1: number;
|
|
88
86
|
}
|
|
89
87
|
/** Result of {@link MSDFFont.layout}. */
|
|
90
|
-
interface MSDFLayoutResult {
|
|
88
|
+
export interface MSDFLayoutResult {
|
|
91
89
|
glyphs: PositionedGlyph[];
|
|
92
90
|
/** Total pen advance of the widest line in CSS pixels. */
|
|
93
91
|
width: number;
|
|
@@ -95,7 +93,7 @@ interface MSDFLayoutResult {
|
|
|
95
93
|
height: number;
|
|
96
94
|
}
|
|
97
95
|
/** Options for {@link MSDFFont.layout}. */
|
|
98
|
-
interface MSDFLayoutOptions {
|
|
96
|
+
export interface MSDFLayoutOptions {
|
|
99
97
|
/** Pen origin x (left of the first glyph), CSS pixels. Default 0. */
|
|
100
98
|
x?: number;
|
|
101
99
|
/** Text-block top y (baseline of line 0 = `y + ascender×size`). Default 0. */
|
|
@@ -107,7 +105,7 @@ interface MSDFLayoutOptions {
|
|
|
107
105
|
* A loaded MSDF font. Construct from parsed {@link MSDFFontData}, or use
|
|
108
106
|
* {@link MSDFFont.parse} to read the JSON string straight from `msdf-atlas-gen`.
|
|
109
107
|
*/
|
|
110
|
-
declare class MSDFFont {
|
|
108
|
+
export declare class MSDFFont {
|
|
111
109
|
private static idCounter;
|
|
112
110
|
readonly id: string;
|
|
113
111
|
readonly data: MSDFFontData;
|
|
@@ -129,73 +127,3 @@ declare class MSDFFont {
|
|
|
129
127
|
*/
|
|
130
128
|
layout(text: string, fontSizePx: number, opts?: MSDFLayoutOptions): MSDFLayoutResult;
|
|
131
129
|
}
|
|
132
|
-
|
|
133
|
-
interface MSDFTextEntityOptions {
|
|
134
|
-
font: MSDFFont;
|
|
135
|
-
texture: TexImageSource;
|
|
136
|
-
fallbackFont?: string;
|
|
137
|
-
fontSize?: number;
|
|
138
|
-
color?: string;
|
|
139
|
-
lineHeight?: number;
|
|
140
|
-
letterSpacing?: number;
|
|
141
|
-
}
|
|
142
|
-
declare class MSDFTextEntity extends Entity {
|
|
143
|
-
private font;
|
|
144
|
-
private texture;
|
|
145
|
-
private fallbackFont;
|
|
146
|
-
private fontSize;
|
|
147
|
-
color: string;
|
|
148
|
-
private letterSpacing;
|
|
149
|
-
private lineHeight?;
|
|
150
|
-
private text;
|
|
151
|
-
private lastRenderedSeqId;
|
|
152
|
-
private rgbColorCache;
|
|
153
|
-
private fontStringCache;
|
|
154
|
-
private layoutResult;
|
|
155
|
-
constructor(text: string, options: MSDFTextEntityOptions);
|
|
156
|
-
setText(text: string): void;
|
|
157
|
-
isPointInside(globalX: number, globalY: number): boolean;
|
|
158
|
-
render(renderer: any): void;
|
|
159
|
-
destroy(): void;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
declare class SVGEntity extends Entity {
|
|
163
|
-
private svgSource;
|
|
164
|
-
private imageBitmap;
|
|
165
|
-
private imageElement;
|
|
166
|
-
private blobURL;
|
|
167
|
-
private currentImg;
|
|
168
|
-
private lodTimeout;
|
|
169
|
-
private cachedDoc;
|
|
170
|
-
private baseWidth;
|
|
171
|
-
private baseHeight;
|
|
172
|
-
private lastRasterizedScale;
|
|
173
|
-
private targetScale;
|
|
174
|
-
constructor(svgSource: string, id?: string);
|
|
175
|
-
setSVGSource(svgSource: string): void;
|
|
176
|
-
private parseSVGDimensions;
|
|
177
|
-
private triggerRasterization;
|
|
178
|
-
isPointInside(globalX: number, globalY: number): boolean;
|
|
179
|
-
render(r: IRenderer): void;
|
|
180
|
-
destroy(): void;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
interface ShapedResult {
|
|
184
|
-
shapedText: string;
|
|
185
|
-
indexMap: Int32Array;
|
|
186
|
-
}
|
|
187
|
-
declare class ArabicShaper {
|
|
188
|
-
private static MAPPINGS;
|
|
189
|
-
private static isHarakat;
|
|
190
|
-
private static getJoiningType;
|
|
191
|
-
static shapeArabic(text: string): ShapedResult;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
declare class BidiResolver {
|
|
195
|
-
private static getDirectionClass;
|
|
196
|
-
static getBaseLevel(text: string): number;
|
|
197
|
-
static resolveLevels(text: string): Uint8Array;
|
|
198
|
-
static reorderVisual(nodes: any[], baseLevel: number): void;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
export { ArabicShaper, BidiResolver, type MSDFAtlasInfo, type MSDFBounds, MSDFFont, type MSDFFontData, type MSDFGlyphDef, type MSDFKerning, type MSDFLayoutOptions, type MSDFLayoutResult, type MSDFMetrics, MSDFTextEntity, type MSDFTextEntityOptions, type PositionedGlyph, SVGEntity, type ShapedResult };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Entity } from '../tree/Entity';
|
|
2
|
+
import { MSDFFont } from './MSDFFont';
|
|
3
|
+
export interface MSDFTextEntityOptions {
|
|
4
|
+
font: MSDFFont;
|
|
5
|
+
texture: TexImageSource;
|
|
6
|
+
fallbackFont?: string;
|
|
7
|
+
fontSize?: number;
|
|
8
|
+
color?: string;
|
|
9
|
+
lineHeight?: number;
|
|
10
|
+
letterSpacing?: number;
|
|
11
|
+
}
|
|
12
|
+
export declare class MSDFTextEntity extends Entity {
|
|
13
|
+
private font;
|
|
14
|
+
private texture;
|
|
15
|
+
private fallbackFont;
|
|
16
|
+
private fontSize;
|
|
17
|
+
color: string;
|
|
18
|
+
private letterSpacing;
|
|
19
|
+
private lineHeight?;
|
|
20
|
+
private text;
|
|
21
|
+
private lastRenderedSeqId;
|
|
22
|
+
private rgbColorCache;
|
|
23
|
+
private fontStringCache;
|
|
24
|
+
private layoutResult;
|
|
25
|
+
constructor(text: string, options: MSDFTextEntityOptions);
|
|
26
|
+
setText(text: string): void;
|
|
27
|
+
isPointInside(globalX: number, globalY: number): boolean;
|
|
28
|
+
render(renderer: any): void;
|
|
29
|
+
destroy(): void;
|
|
30
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Entity } from '../tree/Entity';
|
|
2
|
+
import { IRenderer } from '../renderer/IRenderer';
|
|
3
|
+
export declare class SVGEntity extends Entity {
|
|
4
|
+
private svgSource;
|
|
5
|
+
private imageBitmap;
|
|
6
|
+
private imageElement;
|
|
7
|
+
private blobURL;
|
|
8
|
+
private currentImg;
|
|
9
|
+
private lodTimeout;
|
|
10
|
+
private cachedDoc;
|
|
11
|
+
private baseWidth;
|
|
12
|
+
private baseHeight;
|
|
13
|
+
private lastRasterizedScale;
|
|
14
|
+
private targetScale;
|
|
15
|
+
constructor(svgSource: string, id?: string);
|
|
16
|
+
setSVGSource(svgSource: string): void;
|
|
17
|
+
private parseSVGDimensions;
|
|
18
|
+
private triggerRasterization;
|
|
19
|
+
isPointInside(globalX: number, globalY: number): boolean;
|
|
20
|
+
render(r: IRenderer): void;
|
|
21
|
+
destroy(): void;
|
|
22
|
+
}
|
package/dist/text.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkW3SFIVXOjs = require('./chunk-W3SFIVXO.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -13,4 +13,4 @@ var _chunkRW6NC4RBjs = require('./chunk-RW6NC4RB.js');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
exports.ArabicShaper = _chunkRW6NC4RBjs.ArabicShaper; exports.BidiResolver = _chunkRW6NC4RBjs.BidiResolver; exports.MSDFFont =
|
|
16
|
+
exports.ArabicShaper = _chunkRW6NC4RBjs.ArabicShaper; exports.BidiResolver = _chunkRW6NC4RBjs.BidiResolver; exports.MSDFFont = _chunkW3SFIVXOjs.MSDFFont; exports.MSDFTextEntity = _chunkW3SFIVXOjs.MSDFTextEntity; exports.SVGEntity = _chunkW3SFIVXOjs.SVGEntity;
|
package/dist/text.mjs
CHANGED
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { Entity } from './Entity';
|
|
2
|
+
import { IRenderer } from '../renderer/IRenderer';
|
|
3
|
+
/**
|
|
4
|
+
* Options for configuring a {@link ComputeParticleEntity}.
|
|
5
|
+
*/
|
|
6
|
+
export interface ComputeParticleOptions {
|
|
7
|
+
/** Maximum number of particles to simulate. Defaults to 10000. */
|
|
8
|
+
maxParticles?: number;
|
|
9
|
+
/** Spring stiffness coefficient for returning to origin. Defaults to 0.05. */
|
|
10
|
+
springK?: number;
|
|
11
|
+
/** Velocity damping factor in `[0, 1]`. Defaults to 0.95. */
|
|
12
|
+
damping?: number;
|
|
13
|
+
/** Bounce damping factor for boundary collisions in `[0, 1]`. Defaults to 0.5. */
|
|
14
|
+
bounceDamping?: number;
|
|
15
|
+
/** Speed limit for particles. Defaults to 500.0. */
|
|
16
|
+
maxVelocity?: number;
|
|
17
|
+
/** Base particle size in pixels. Defaults to 4. */
|
|
18
|
+
size?: number;
|
|
19
|
+
/** CSS color string for the particles. Defaults to '#00f0ff'. */
|
|
20
|
+
color?: string;
|
|
21
|
+
/** Whether the particle layer captures pointer/hit events. Defaults to false. */
|
|
22
|
+
pointerEvents?: boolean;
|
|
23
|
+
}
|
|
24
|
+
export declare const PARTICLE_STRIDE_FLOATS = 8;
|
|
25
|
+
export declare const PARTICLE_OFFSET_POSITION_X = 0;
|
|
26
|
+
export declare const PARTICLE_OFFSET_POSITION_Y = 1;
|
|
27
|
+
export declare const PARTICLE_OFFSET_VELOCITY_X = 2;
|
|
28
|
+
export declare const PARTICLE_OFFSET_VELOCITY_Y = 3;
|
|
29
|
+
export declare const PARTICLE_OFFSET_ORIGIN_X = 4;
|
|
30
|
+
export declare const PARTICLE_OFFSET_ORIGIN_Y = 5;
|
|
31
|
+
export declare const PARTICLE_OFFSET_SIZE = 6;
|
|
32
|
+
export declare const PARTICLE_OFFSET_LIFE = 7;
|
|
33
|
+
/**
|
|
34
|
+
* An entity representing a high-performance WebGPU/CPU particle simulation layer.
|
|
35
|
+
*/
|
|
36
|
+
export declare class ComputeParticleEntity extends Entity {
|
|
37
|
+
maxParticles: number;
|
|
38
|
+
springK: number;
|
|
39
|
+
damping: number;
|
|
40
|
+
bounceDamping: number;
|
|
41
|
+
maxVelocity: number;
|
|
42
|
+
size: number;
|
|
43
|
+
baseColor: string;
|
|
44
|
+
pointerEvents: boolean;
|
|
45
|
+
/** Flat array containing layout of all particles: position, velocity, origin, size, life. */
|
|
46
|
+
particleData: Float32Array;
|
|
47
|
+
/** Flag indicating whether the particle coordinates need to be initialized. */
|
|
48
|
+
needsInit: boolean;
|
|
49
|
+
/** Active explosion impulse to apply in the next simulation step. */
|
|
50
|
+
pendingExplosion: {
|
|
51
|
+
x: number;
|
|
52
|
+
y: number;
|
|
53
|
+
force: number;
|
|
54
|
+
} | null;
|
|
55
|
+
/** WebGPU storage buffer containing particle states. */
|
|
56
|
+
gpuStorageBuffer: any;
|
|
57
|
+
/** WebGPU uniform buffer containing simulation parameters. */
|
|
58
|
+
gpuUniformBuffer: any;
|
|
59
|
+
/** WebGPU bind group for the compute shader pass. */
|
|
60
|
+
computeBindGroup: any;
|
|
61
|
+
/** WebGPU bind group for the render pass (usually same as compute). */
|
|
62
|
+
renderBindGroup: any;
|
|
63
|
+
constructor(options?: ComputeParticleOptions);
|
|
64
|
+
/**
|
|
65
|
+
* Disperses all particles randomly across the specified screen bounds.
|
|
66
|
+
* Sets initial positions, velocities, origins, and sizes.
|
|
67
|
+
*
|
|
68
|
+
* @param width - Simulation zone width.
|
|
69
|
+
* @param height - Simulation zone height.
|
|
70
|
+
*/
|
|
71
|
+
initRandomParticles(width: number, height: number): void;
|
|
72
|
+
/**
|
|
73
|
+
* Sets the origins (ox, oy) for a subset or all particles.
|
|
74
|
+
* Also sets position to origin if requestPositionReset is true.
|
|
75
|
+
*
|
|
76
|
+
* @param points - Flat Float32Array containing [x0, y0, x1, y1, ...]
|
|
77
|
+
* @param requestPositionReset - Whether to set current positions to the new origins. Defaults to true.
|
|
78
|
+
*/
|
|
79
|
+
setOrigins(points: Float32Array | number[], requestPositionReset?: boolean): void;
|
|
80
|
+
/**
|
|
81
|
+
* Sets the current positions (x, y) for a subset or all particles.
|
|
82
|
+
*
|
|
83
|
+
* @param positions - Flat Float32Array containing [x0, y0, x1, y1, ...]
|
|
84
|
+
*/
|
|
85
|
+
setPositions(positions: Float32Array | number[]): void;
|
|
86
|
+
/**
|
|
87
|
+
* Sets the current velocities (vx, vy) for a subset or all particles.
|
|
88
|
+
*
|
|
89
|
+
* @param velocities - Flat Float32Array containing [vx0, vy0, vx1, vy1, ...]
|
|
90
|
+
*/
|
|
91
|
+
setVelocities(velocities: Float32Array | number[]): void;
|
|
92
|
+
/**
|
|
93
|
+
* Triggers an explosion force center.
|
|
94
|
+
*
|
|
95
|
+
* @param x - Explosion center x-coordinate.
|
|
96
|
+
* @param y - Explosion center y-coordinate.
|
|
97
|
+
* @param force - Magnitude force scalar.
|
|
98
|
+
*/
|
|
99
|
+
triggerExplosion(x: number, y: number, force: number): void;
|
|
100
|
+
isPointInside(_x: number, _y: number): boolean;
|
|
101
|
+
render(_r: IRenderer): void;
|
|
102
|
+
/**
|
|
103
|
+
* Updates particle simulation on the CPU.
|
|
104
|
+
* Handles spring forces, mouse repulsion, explosion impulses, velocity capping, and bounds bouncing/clamping.
|
|
105
|
+
*
|
|
106
|
+
* @param dt - Delta time in seconds.
|
|
107
|
+
* @param mouseX - Mouse x-coordinate, or a value below -9000 if inactive.
|
|
108
|
+
* @param mouseY - Mouse y-coordinate, or a value below -9000 if inactive.
|
|
109
|
+
* @param width - Boundary width.
|
|
110
|
+
* @param height - Boundary height.
|
|
111
|
+
*/
|
|
112
|
+
updateCPU(dt: number, mouseX: number, mouseY: number, width: number, height: number): void;
|
|
113
|
+
destroy(): void;
|
|
114
|
+
/**
|
|
115
|
+
* Frees all GPU resources allocated for WebGPU simulation.
|
|
116
|
+
*/
|
|
117
|
+
destroyGPUResources(): void;
|
|
118
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Entity } from './Entity';
|
|
2
|
+
export declare class DOMPortalEntity extends Entity {
|
|
3
|
+
domElement: HTMLElement;
|
|
4
|
+
isDOMPortal: boolean;
|
|
5
|
+
private domListeners;
|
|
6
|
+
private resizeObserver;
|
|
7
|
+
cachedWidth: number;
|
|
8
|
+
cachedHeight: number;
|
|
9
|
+
lastWidth: string;
|
|
10
|
+
lastHeight: string;
|
|
11
|
+
lastTransform: string;
|
|
12
|
+
lastZIndex: string;
|
|
13
|
+
constructor(domElement: HTMLElement, width?: number, height?: number, id?: string);
|
|
14
|
+
isPointInside(globalX: number, globalY: number): boolean;
|
|
15
|
+
add(child: Entity): this;
|
|
16
|
+
render(): void;
|
|
17
|
+
destroy(): void;
|
|
18
|
+
}
|