@dcl/sdk 7.0.0-2536021667.commit-17c845c
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/LICENSE +201 -0
- package/dist/ecs7/index.d.ts +1721 -0
- package/dist/ecs7/index.js +6173 -0
- package/dist/ecs7/index.min.js +1 -0
- package/dist/ecs7/index.min.js.map +1 -0
- package/dist/ecs7/proto-definitions/AudioSource.proto +13 -0
- package/dist/ecs7/proto-definitions/AudioStream.proto +10 -0
- package/dist/ecs7/proto-definitions/BoxShape.proto +11 -0
- package/dist/ecs7/proto-definitions/CylinderShape.proto +12 -0
- package/dist/ecs7/proto-definitions/NFTShape.proto +16 -0
- package/dist/ecs7/proto-definitions/PlaneShape.proto +11 -0
- package/dist/ecs7/proto-definitions/README.md +32 -0
- package/dist/ecs7/proto-definitions/SphereShape.proto +10 -0
- package/dist/ecs7/proto-definitions/TextShape.proto +33 -0
- package/dist/ecs7/proto-definitions/Transform.md +25 -0
- package/dist/ecs7/proto-definitions/common/Color3.proto +8 -0
- package/dist/ecs7/proto-definitions/common/id.md +2 -0
- package/dist/ecs7/proto-definitions/common/id.proto +7 -0
- package/package.json +42 -0
- package/src/cli/mock-catalyst/index.js +170 -0
- package/src/cli/setupUtils.js +345 -0
- package/src/cli/wearables.js +145 -0
- package/src/setupExport.js +43 -0
- package/src/setupProxy.js +165 -0
- package/types/@decentraland/CommunicationsController/index.d.ts +7 -0
- package/types/@decentraland/EnvironmentAPI/index.d.ts +45 -0
- package/types/@decentraland/EthereumController/index.d.ts +47 -0
- package/types/@decentraland/Identity/index.d.ts +42 -0
- package/types/@decentraland/ParcelIdentity/index.d.ts +49 -0
- package/types/@decentraland/Players/index.d.ts +47 -0
- package/types/@decentraland/PortableExperiences/index.d.ts +39 -0
- package/types/@decentraland/RestrictedActions/index.d.ts +41 -0
- package/types/@decentraland/SignedFetch/index.d.ts +16 -0
- package/types/@decentraland/SocialController/index.d.ts +1 -0
- package/types/@decentraland/web3-provider/index.d.ts +7 -0
- package/types/dcl/decentraland-ecs.api.json +61732 -0
- package/types/dcl/decentraland-ecs.api.md +2717 -0
- package/types/ecs7/index.d.ts +1721 -0
- package/types/ecs7-env/es2015.iterable.d.ts +486 -0
- package/types/ecs7-env/es2015.symbol.d.ts +46 -0
- package/types/ecs7-env/index.d.ts +19 -0
- package/types/env/es5.d.ts +4565 -0
- package/types/env/index.d.ts +411 -0
- package/types/tsconfig.ecs7.json +27 -0
- package/types/tsconfig.ecs7.strict.json +13 -0
@@ -0,0 +1,2717 @@
|
|
1
|
+
## API Report File for "@dcl/legacy-ecs"
|
2
|
+
|
3
|
+
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
4
|
+
|
5
|
+
```ts
|
6
|
+
|
7
|
+
/// <reference types="@dcl/posix" />
|
8
|
+
/// <reference types="env" />
|
9
|
+
|
10
|
+
// @public (undocumented)
|
11
|
+
export enum ActionButton {
|
12
|
+
// (undocumented)
|
13
|
+
ACTION_3 = "ACTION_3",
|
14
|
+
// (undocumented)
|
15
|
+
ACTION_4 = "ACTION_4",
|
16
|
+
// (undocumented)
|
17
|
+
ACTION_5 = "ACTION_5",
|
18
|
+
// (undocumented)
|
19
|
+
ACTION_6 = "ACTION_6",
|
20
|
+
// (undocumented)
|
21
|
+
ANY = "ANY",
|
22
|
+
// (undocumented)
|
23
|
+
BACKWARD = "BACKWARD",
|
24
|
+
// (undocumented)
|
25
|
+
FORWARD = "FORWARD",
|
26
|
+
// (undocumented)
|
27
|
+
JUMP = "JUMP",
|
28
|
+
// (undocumented)
|
29
|
+
LEFT = "LEFT",
|
30
|
+
// (undocumented)
|
31
|
+
POINTER = "POINTER",
|
32
|
+
// (undocumented)
|
33
|
+
PRIMARY = "PRIMARY",
|
34
|
+
// (undocumented)
|
35
|
+
RIGHT = "RIGHT",
|
36
|
+
// (undocumented)
|
37
|
+
SECONDARY = "SECONDARY",
|
38
|
+
// (undocumented)
|
39
|
+
WALK = "WALK"
|
40
|
+
}
|
41
|
+
|
42
|
+
// @public
|
43
|
+
export class Angle {
|
44
|
+
constructor(radians: number);
|
45
|
+
static BetweenTwoPoints(a: Vector2, b: Vector2): Angle;
|
46
|
+
degrees(): number;
|
47
|
+
static FromDegrees(degrees: number): Angle;
|
48
|
+
static FromRadians(radians: number): Angle;
|
49
|
+
radians(): number;
|
50
|
+
}
|
51
|
+
|
52
|
+
// @public (undocumented)
|
53
|
+
export type AnimationParams = {
|
54
|
+
looping?: boolean;
|
55
|
+
speed?: number;
|
56
|
+
weight?: number;
|
57
|
+
layer?: number;
|
58
|
+
};
|
59
|
+
|
60
|
+
// @public (undocumented)
|
61
|
+
export class AnimationState extends ObservableComponent {
|
62
|
+
constructor(clip: string, params?: AnimationParams);
|
63
|
+
readonly clip: string;
|
64
|
+
layer: number;
|
65
|
+
looping: boolean;
|
66
|
+
pause(): void;
|
67
|
+
play(reset?: boolean): void;
|
68
|
+
playing: boolean;
|
69
|
+
reset(): void;
|
70
|
+
setParams(params: AnimationParams): this;
|
71
|
+
shouldReset: boolean;
|
72
|
+
speed: number;
|
73
|
+
stop(): void;
|
74
|
+
// (undocumented)
|
75
|
+
toJSON(): any;
|
76
|
+
weight: number;
|
77
|
+
}
|
78
|
+
|
79
|
+
// @public (undocumented)
|
80
|
+
export class Animator extends Shape {
|
81
|
+
addClip(clip: AnimationState): this;
|
82
|
+
getClip(clipName: string): AnimationState;
|
83
|
+
pause(clip?: AnimationState): void;
|
84
|
+
play(clip: AnimationState, reset?: boolean): void;
|
85
|
+
stop(clip?: AnimationState): void;
|
86
|
+
}
|
87
|
+
|
88
|
+
// @public
|
89
|
+
export class Arc2 {
|
90
|
+
constructor(
|
91
|
+
startPoint: Vector2,
|
92
|
+
midPoint: Vector2,
|
93
|
+
endPoint: Vector2);
|
94
|
+
angle: Angle;
|
95
|
+
centerPoint: Vector2;
|
96
|
+
endPoint: Vector2;
|
97
|
+
midPoint: Vector2;
|
98
|
+
orientation: Orientation;
|
99
|
+
radius: number;
|
100
|
+
startAngle: Angle;
|
101
|
+
startPoint: Vector2;
|
102
|
+
}
|
103
|
+
|
104
|
+
// @public (undocumented)
|
105
|
+
export type Area = {
|
106
|
+
box: Vector3;
|
107
|
+
};
|
108
|
+
|
109
|
+
// @public
|
110
|
+
export abstract class Attachable {
|
111
|
+
static readonly AVATAR: Attachable;
|
112
|
+
static readonly FIRST_PERSON_CAMERA: Attachable;
|
113
|
+
}
|
114
|
+
|
115
|
+
// @public (undocumented)
|
116
|
+
export class AttachToAvatar extends ObservableComponent {
|
117
|
+
constructor(args?: AttachToAvatarConstructorArgs);
|
118
|
+
// (undocumented)
|
119
|
+
anchorPointId: AttachToAvatarAnchorPointId;
|
120
|
+
// (undocumented)
|
121
|
+
avatarId: string;
|
122
|
+
// (undocumented)
|
123
|
+
avatarSceneId: 'dcl-gs-avatars';
|
124
|
+
}
|
125
|
+
|
126
|
+
// @public (undocumented)
|
127
|
+
export enum AttachToAvatarAnchorPointId {
|
128
|
+
// (undocumented)
|
129
|
+
NameTag = 1,
|
130
|
+
// (undocumented)
|
131
|
+
Position = 0
|
132
|
+
}
|
133
|
+
|
134
|
+
// @public (undocumented)
|
135
|
+
export type AttachToAvatarConstructorArgs = {
|
136
|
+
avatarId?: string;
|
137
|
+
anchorPointId?: AttachToAvatarAnchorPointId;
|
138
|
+
};
|
139
|
+
|
140
|
+
// @public (undocumented)
|
141
|
+
export class AudioClip extends ObservableComponent {
|
142
|
+
constructor(url: string);
|
143
|
+
loop: boolean;
|
144
|
+
// (undocumented)
|
145
|
+
readonly url: string;
|
146
|
+
volume: number;
|
147
|
+
}
|
148
|
+
|
149
|
+
// @public (undocumented)
|
150
|
+
export class AudioSource extends ObservableComponent {
|
151
|
+
constructor(audioClip: AudioClip);
|
152
|
+
// (undocumented)
|
153
|
+
readonly audioClip: AudioClip;
|
154
|
+
// (undocumented)
|
155
|
+
readonly audioClipId: string;
|
156
|
+
loop: boolean;
|
157
|
+
pitch: number;
|
158
|
+
playedAtTimestamp: number;
|
159
|
+
playing: boolean;
|
160
|
+
playOnce(): this;
|
161
|
+
volume: number;
|
162
|
+
}
|
163
|
+
|
164
|
+
// @public (undocumented)
|
165
|
+
export class AudioStream extends ObservableComponent {
|
166
|
+
constructor(url: string);
|
167
|
+
// (undocumented)
|
168
|
+
playing: boolean;
|
169
|
+
// (undocumented)
|
170
|
+
readonly url: string;
|
171
|
+
// (undocumented)
|
172
|
+
volume: number;
|
173
|
+
}
|
174
|
+
|
175
|
+
// @public (undocumented)
|
176
|
+
export type AvatarForRenderer = {
|
177
|
+
bodyShape: WearableId;
|
178
|
+
skinColor: ReadOnlyColor4;
|
179
|
+
hairColor: ReadOnlyColor4;
|
180
|
+
eyeColor: ReadOnlyColor4;
|
181
|
+
wearables: WearableId[];
|
182
|
+
};
|
183
|
+
|
184
|
+
// @public
|
185
|
+
export class AvatarModifierArea extends ObservableComponent {
|
186
|
+
constructor(args: {
|
187
|
+
area: Area;
|
188
|
+
modifiers: AvatarModifiers[];
|
189
|
+
excludeIds?: string[];
|
190
|
+
});
|
191
|
+
// (undocumented)
|
192
|
+
area: Area;
|
193
|
+
// (undocumented)
|
194
|
+
excludeIds?: string[];
|
195
|
+
// (undocumented)
|
196
|
+
modifiers: AvatarModifiers[];
|
197
|
+
}
|
198
|
+
|
199
|
+
// @public (undocumented)
|
200
|
+
export enum AvatarModifiers {
|
201
|
+
// (undocumented)
|
202
|
+
DISABLE_PASSPORTS = "DISABLE_PASSPORTS",
|
203
|
+
// (undocumented)
|
204
|
+
HIDE_AVATARS = "HIDE_AVATARS"
|
205
|
+
}
|
206
|
+
|
207
|
+
// @public (undocumented)
|
208
|
+
export class AvatarShape extends ObservableComponent {
|
209
|
+
// (undocumented)
|
210
|
+
bodyShape: WearableId;
|
211
|
+
// (undocumented)
|
212
|
+
static Dummy(): AvatarShape;
|
213
|
+
// (undocumented)
|
214
|
+
expressionTriggerId: string;
|
215
|
+
// (undocumented)
|
216
|
+
expressionTriggerTimestamp: number;
|
217
|
+
// (undocumented)
|
218
|
+
eyeColor: ReadOnlyColor4;
|
219
|
+
// (undocumented)
|
220
|
+
hairColor: ReadOnlyColor4;
|
221
|
+
// (undocumented)
|
222
|
+
id: string;
|
223
|
+
// (undocumented)
|
224
|
+
name: string;
|
225
|
+
// (undocumented)
|
226
|
+
skinColor: ReadOnlyColor4;
|
227
|
+
// (undocumented)
|
228
|
+
talking: boolean;
|
229
|
+
// (undocumented)
|
230
|
+
useDummyModel: boolean;
|
231
|
+
// (undocumented)
|
232
|
+
wearables: WearableId[];
|
233
|
+
}
|
234
|
+
|
235
|
+
// @public (undocumented)
|
236
|
+
export class AvatarTexture extends ObservableComponent {
|
237
|
+
constructor(userId: string, opts?: Partial<Pick<AvatarTexture, 'samplingMode' | 'wrap' | 'hasAlpha'>>);
|
238
|
+
readonly hasAlpha: boolean;
|
239
|
+
readonly samplingMode: number;
|
240
|
+
// (undocumented)
|
241
|
+
readonly userId: string;
|
242
|
+
readonly wrap: number;
|
243
|
+
}
|
244
|
+
|
245
|
+
// @public
|
246
|
+
export class Axis {
|
247
|
+
static X: Vector3;
|
248
|
+
static Y: Vector3;
|
249
|
+
static Z: Vector3;
|
250
|
+
}
|
251
|
+
|
252
|
+
// @public (undocumented)
|
253
|
+
export interface BasicAvatarInfo {
|
254
|
+
// (undocumented)
|
255
|
+
name: string;
|
256
|
+
// (undocumented)
|
257
|
+
userId: string;
|
258
|
+
}
|
259
|
+
|
260
|
+
// @public (undocumented)
|
261
|
+
export class BasicMaterial extends ObservableComponent {
|
262
|
+
alphaTest: number;
|
263
|
+
castShadows?: boolean;
|
264
|
+
texture?: Texture | VideoTexture | AvatarTexture;
|
265
|
+
}
|
266
|
+
|
267
|
+
// @public
|
268
|
+
export class BezierCurve {
|
269
|
+
static Interpolate(t: number, x1: number, y1: number, x2: number, y2: number): number;
|
270
|
+
}
|
271
|
+
|
272
|
+
// @public
|
273
|
+
export class Billboard extends ObservableComponent {
|
274
|
+
constructor(x?: boolean, y?: boolean, z?: boolean);
|
275
|
+
// (undocumented)
|
276
|
+
x: boolean;
|
277
|
+
// (undocumented)
|
278
|
+
y: boolean;
|
279
|
+
// (undocumented)
|
280
|
+
z: boolean;
|
281
|
+
}
|
282
|
+
|
283
|
+
// @public (undocumented)
|
284
|
+
export type BodyShapeRespresentation = {
|
285
|
+
bodyShapes: string[];
|
286
|
+
mainFile: string;
|
287
|
+
contents: FileAndHash[];
|
288
|
+
};
|
289
|
+
|
290
|
+
// @public (undocumented)
|
291
|
+
export class BoxShape extends Shape {
|
292
|
+
uvs?: number[];
|
293
|
+
}
|
294
|
+
|
295
|
+
// @public (undocumented)
|
296
|
+
export class Camera {
|
297
|
+
constructor();
|
298
|
+
// @deprecated (undocumented)
|
299
|
+
get cameraMode(): CameraMode;
|
300
|
+
readonly feetPosition: Vector3;
|
301
|
+
// (undocumented)
|
302
|
+
static get instance(): Camera;
|
303
|
+
get playerHeight(): number;
|
304
|
+
readonly position: Vector3;
|
305
|
+
readonly rotation: Quaternion;
|
306
|
+
readonly worldPosition: Vector3;
|
307
|
+
}
|
308
|
+
|
309
|
+
// @public (undocumented)
|
310
|
+
export enum CameraMode {
|
311
|
+
// (undocumented)
|
312
|
+
FirstPerson = 0,
|
313
|
+
// (undocumented)
|
314
|
+
ThirdPerson = 1
|
315
|
+
}
|
316
|
+
|
317
|
+
// @public (undocumented)
|
318
|
+
export class CameraModeArea extends ObservableComponent {
|
319
|
+
constructor(args: {
|
320
|
+
area: Area;
|
321
|
+
cameraMode: CameraMode;
|
322
|
+
});
|
323
|
+
// (undocumented)
|
324
|
+
area: Area;
|
325
|
+
// (undocumented)
|
326
|
+
cameraMode: CameraMode;
|
327
|
+
}
|
328
|
+
|
329
|
+
// @public (undocumented)
|
330
|
+
export class CircleShape extends Shape {
|
331
|
+
// (undocumented)
|
332
|
+
arc?: number;
|
333
|
+
// (undocumented)
|
334
|
+
segments?: number;
|
335
|
+
}
|
336
|
+
|
337
|
+
// @public (undocumented)
|
338
|
+
export enum CLASS_ID {
|
339
|
+
// (undocumented)
|
340
|
+
ANIMATION = 33,
|
341
|
+
// (undocumented)
|
342
|
+
AUDIO_CLIP = 200,
|
343
|
+
// (undocumented)
|
344
|
+
AUDIO_SOURCE = 201,
|
345
|
+
// (undocumented)
|
346
|
+
AUDIO_STREAM = 202,
|
347
|
+
// (undocumented)
|
348
|
+
AVATAR_ATTACH = 206,
|
349
|
+
// (undocumented)
|
350
|
+
AVATAR_MODIFIER_AREA = 205,
|
351
|
+
// (undocumented)
|
352
|
+
AVATAR_SHAPE = 56,
|
353
|
+
// (undocumented)
|
354
|
+
AVATAR_TEXTURE = 72,
|
355
|
+
// (undocumented)
|
356
|
+
BASIC_MATERIAL = 64,
|
357
|
+
// (undocumented)
|
358
|
+
BILLBOARD = 32,
|
359
|
+
// (undocumented)
|
360
|
+
BOX_SHAPE = 16,
|
361
|
+
// (undocumented)
|
362
|
+
CAMERA_MODE_AREA = 207,
|
363
|
+
// (undocumented)
|
364
|
+
CIRCLE_SHAPE = 31,
|
365
|
+
// (undocumented)
|
366
|
+
CONE_SHAPE = 19,
|
367
|
+
// (undocumented)
|
368
|
+
CYLINDER_SHAPE = 20,
|
369
|
+
// (undocumented)
|
370
|
+
FONT = 34,
|
371
|
+
// (undocumented)
|
372
|
+
GIZMOS = 203,
|
373
|
+
// (undocumented)
|
374
|
+
GLTF_SHAPE = 54,
|
375
|
+
// (undocumented)
|
376
|
+
HIGHLIGHT_ENTITY = 66,
|
377
|
+
// (undocumented)
|
378
|
+
LOCKED_ON_EDIT = 301,
|
379
|
+
// (undocumented)
|
380
|
+
NAME = 300,
|
381
|
+
// (undocumented)
|
382
|
+
NFT_SHAPE = 22,
|
383
|
+
// (undocumented)
|
384
|
+
OBJ_SHAPE = 55,
|
385
|
+
// (undocumented)
|
386
|
+
PBR_MATERIAL = 65,
|
387
|
+
// (undocumented)
|
388
|
+
PLANE_SHAPE = 18,
|
389
|
+
// (undocumented)
|
390
|
+
SMART_ITEM = 204,
|
391
|
+
// @deprecated (undocumented)
|
392
|
+
SOUND = 67,
|
393
|
+
// (undocumented)
|
394
|
+
SPHERE_SHAPE = 17,
|
395
|
+
// (undocumented)
|
396
|
+
TEXT_SHAPE = 21,
|
397
|
+
// (undocumented)
|
398
|
+
TEXTURE = 68,
|
399
|
+
// (undocumented)
|
400
|
+
TRANSFORM = 1,
|
401
|
+
// (undocumented)
|
402
|
+
UI_BUTTON_SHAPE = 41,
|
403
|
+
// (undocumented)
|
404
|
+
UI_CONTAINER_RECT = 25,
|
405
|
+
// (undocumented)
|
406
|
+
UI_CONTAINER_STACK = 26,
|
407
|
+
// (undocumented)
|
408
|
+
UI_FULLSCREEN_SHAPE = 40,
|
409
|
+
// (undocumented)
|
410
|
+
UI_IMAGE_SHAPE = 29,
|
411
|
+
// (undocumented)
|
412
|
+
UI_INPUT_TEXT_SHAPE = 28,
|
413
|
+
// (undocumented)
|
414
|
+
UI_SCREEN_SPACE_SHAPE = 24,
|
415
|
+
// (undocumented)
|
416
|
+
UI_SLIDER_SHAPE = 30,
|
417
|
+
// (undocumented)
|
418
|
+
UI_TEXT_SHAPE = 27,
|
419
|
+
// (undocumented)
|
420
|
+
UI_WORLD_SPACE_SHAPE = 23,
|
421
|
+
// (undocumented)
|
422
|
+
UUID_CALLBACK = 8,
|
423
|
+
// (undocumented)
|
424
|
+
VIDEO_CLIP = 70,
|
425
|
+
// (undocumented)
|
426
|
+
VIDEO_TEXTURE = 71,
|
427
|
+
// (undocumented)
|
428
|
+
VISIBLE_ON_EDIT = 302
|
429
|
+
}
|
430
|
+
|
431
|
+
// @public
|
432
|
+
export class Color3 {
|
433
|
+
constructor(
|
434
|
+
r?: number,
|
435
|
+
g?: number,
|
436
|
+
b?: number);
|
437
|
+
add(otherColor: Color3): Color3;
|
438
|
+
addToRef(otherColor: Color3, result: Color3): Color3;
|
439
|
+
asArray(): number[];
|
440
|
+
b: number;
|
441
|
+
static Black(): Color3;
|
442
|
+
static Blue(): Color3;
|
443
|
+
clampToRef(min: number | undefined, max: number | undefined, result: Color3): Color3;
|
444
|
+
clone(): Color3;
|
445
|
+
copyFrom(source: Color3): Color3;
|
446
|
+
copyFromFloats(r: number, g: number, b: number): Color3;
|
447
|
+
equals(otherColor: Color3): boolean;
|
448
|
+
equalsFloats(r: number, g: number, b: number): boolean;
|
449
|
+
static FromArray(array: ArrayLike<number>, offset?: number): Color3;
|
450
|
+
static FromHexString(hex: string): Color3;
|
451
|
+
static FromInts(r: number, g: number, b: number): Color3;
|
452
|
+
g: number;
|
453
|
+
getClassName(): string;
|
454
|
+
getHashCode(): number;
|
455
|
+
static Gray(): Color3;
|
456
|
+
static Green(): Color3;
|
457
|
+
static Lerp(start: Color3, end: Color3, amount: number): Color3;
|
458
|
+
static LerpToRef(left: Color3, right: Color3, amount: number, result: Color3): void;
|
459
|
+
static Magenta(): Color3;
|
460
|
+
multiply(otherColor: Color3): Color3;
|
461
|
+
multiplyToRef(otherColor: Color3, result: Color3): Color3;
|
462
|
+
static Purple(): Color3;
|
463
|
+
r: number;
|
464
|
+
static Random(): Color3;
|
465
|
+
static Red(): Color3;
|
466
|
+
scale(scale: number): Color3;
|
467
|
+
scaleAndAddToRef(scale: number, result: Color3): Color3;
|
468
|
+
scaleToRef(scale: number, result: Color3): Color3;
|
469
|
+
set(r: number, g: number, b: number): Color3;
|
470
|
+
subtract(otherColor: Color3): Color3;
|
471
|
+
subtractToRef(otherColor: Color3, result: Color3): Color3;
|
472
|
+
static Teal(): Color3;
|
473
|
+
toArray(array: FloatArray, index?: number): Color3;
|
474
|
+
toColor4(alpha?: number): Color4;
|
475
|
+
toGammaSpace(): Color3;
|
476
|
+
toGammaSpaceToRef(convertedColor: Color3): Color3;
|
477
|
+
toHexString(): string;
|
478
|
+
toJSON(): {
|
479
|
+
r: number;
|
480
|
+
g: number;
|
481
|
+
b: number;
|
482
|
+
};
|
483
|
+
toLinearSpace(): Color3;
|
484
|
+
toLinearSpaceToRef(convertedColor: Color3): Color3;
|
485
|
+
toLuminance(): number;
|
486
|
+
toString(): string;
|
487
|
+
static White(): Color3;
|
488
|
+
static Yellow(): Color3;
|
489
|
+
}
|
490
|
+
|
491
|
+
// @public
|
492
|
+
export class Color4 {
|
493
|
+
constructor(
|
494
|
+
r?: number,
|
495
|
+
g?: number,
|
496
|
+
b?: number,
|
497
|
+
a?: number);
|
498
|
+
a: number;
|
499
|
+
add(right: Color4): Color4;
|
500
|
+
addInPlace(right: Color4): Color4;
|
501
|
+
asArray(): number[];
|
502
|
+
b: number;
|
503
|
+
static Black(): Color4;
|
504
|
+
static Blue(): Color4;
|
505
|
+
static CheckColors4(colors: number[], count: number): number[];
|
506
|
+
clampToRef(min: number | undefined, max: number | undefined, result: Color4): Color4;
|
507
|
+
static Clear(): Color4;
|
508
|
+
clone(): Color4;
|
509
|
+
copyFrom(source: Color4): Color4;
|
510
|
+
copyFromFloats(r: number, g: number, b: number, a: number): Color4;
|
511
|
+
static FromArray(array: ArrayLike<number>, offset?: number): Color4;
|
512
|
+
static FromColor3(color3: Color3, alpha?: number): Color4;
|
513
|
+
static FromHexString(hex: string): Color4;
|
514
|
+
static FromInts(r: number, g: number, b: number, a: number): Color4;
|
515
|
+
g: number;
|
516
|
+
getClassName(): string;
|
517
|
+
getHashCode(): number;
|
518
|
+
static Gray(): Color4;
|
519
|
+
static Green(): Color4;
|
520
|
+
static Lerp(left: Color4, right: Color4, amount: number): Color4;
|
521
|
+
static LerpToRef(left: Color4, right: Color4, amount: number, result: Color4): void;
|
522
|
+
static Magenta(): Color4;
|
523
|
+
multiply(color: Color4): Color4;
|
524
|
+
multiplyToRef(color: Color4, result: Color4): Color4;
|
525
|
+
static Purple(): Color4;
|
526
|
+
r: number;
|
527
|
+
static Red(): Color4;
|
528
|
+
scale(scale: number): Color4;
|
529
|
+
scaleAndAddToRef(scale: number, result: Color4): Color4;
|
530
|
+
scaleToRef(scale: number, result: Color4): Color4;
|
531
|
+
set(r: number, g: number, b: number, a: number): Color4;
|
532
|
+
subtract(right: Color4): Color4;
|
533
|
+
subtractToRef(right: Color4, result: Color4): Color4;
|
534
|
+
static Teal(): Color4;
|
535
|
+
toArray(array: number[], index?: number): Color4;
|
536
|
+
toGammaSpace(): Color4;
|
537
|
+
toGammaSpaceToRef(convertedColor: Color4): Color4;
|
538
|
+
toHexString(): string;
|
539
|
+
toLinearSpace(): Color4;
|
540
|
+
toLinearSpaceToRef(convertedColor: Color4): Color4;
|
541
|
+
toString(): string;
|
542
|
+
static White(): Color4;
|
543
|
+
static Yellow(): Color4;
|
544
|
+
}
|
545
|
+
|
546
|
+
// @public (undocumented)
|
547
|
+
export function Component(componentName: string, classId?: number): <TFunction extends ComponentConstructor<any>>(target: TFunction) => void | TFunction;
|
548
|
+
|
549
|
+
// @public (undocumented)
|
550
|
+
export class ComponentAdded {
|
551
|
+
constructor(entity: IEntity, componentName: string, classId: number | null);
|
552
|
+
// (undocumented)
|
553
|
+
classId: number | null;
|
554
|
+
// (undocumented)
|
555
|
+
componentName: string;
|
556
|
+
// (undocumented)
|
557
|
+
entity: IEntity;
|
558
|
+
}
|
559
|
+
|
560
|
+
// @public (undocumented)
|
561
|
+
export interface ComponentConstructor<T extends ComponentLike> {
|
562
|
+
// (undocumented)
|
563
|
+
new (...args: any[]): T;
|
564
|
+
// (undocumented)
|
565
|
+
isComponent?: boolean;
|
566
|
+
// (undocumented)
|
567
|
+
originalClassName?: string;
|
568
|
+
}
|
569
|
+
|
570
|
+
// @public (undocumented)
|
571
|
+
export class ComponentGroup {
|
572
|
+
constructor(...requires: ComponentConstructor<any>[]);
|
573
|
+
// (undocumented)
|
574
|
+
active: boolean;
|
575
|
+
// (undocumented)
|
576
|
+
readonly entities: ReadonlyArray<IEntity>;
|
577
|
+
// (undocumented)
|
578
|
+
hasEntity(entity: IEntity): boolean;
|
579
|
+
// (undocumented)
|
580
|
+
readonly requires: ReadonlyArray<ComponentConstructor<any>>;
|
581
|
+
// (undocumented)
|
582
|
+
readonly requiresNames: ReadonlyArray<string>;
|
583
|
+
}
|
584
|
+
|
585
|
+
// @public (undocumented)
|
586
|
+
export interface ComponentLike {
|
587
|
+
}
|
588
|
+
|
589
|
+
// @public (undocumented)
|
590
|
+
export class ComponentRemoved {
|
591
|
+
constructor(entity: IEntity, componentName: string, component: ComponentLike);
|
592
|
+
// (undocumented)
|
593
|
+
component: ComponentLike;
|
594
|
+
// (undocumented)
|
595
|
+
componentName: string;
|
596
|
+
// (undocumented)
|
597
|
+
entity: IEntity;
|
598
|
+
}
|
599
|
+
|
600
|
+
// @public (undocumented)
|
601
|
+
export class ConeShape extends Shape {
|
602
|
+
arc: number;
|
603
|
+
openEnded: boolean;
|
604
|
+
radius: number | null;
|
605
|
+
radiusBottom: number;
|
606
|
+
radiusTop: number;
|
607
|
+
segmentsHeight: number;
|
608
|
+
segmentsRadial: number;
|
609
|
+
}
|
610
|
+
|
611
|
+
// @public
|
612
|
+
export class Curve3 {
|
613
|
+
constructor(points: Vector3[]);
|
614
|
+
continue(curve: Curve3): Curve3;
|
615
|
+
static CreateCatmullRomSpline(points: Vector3[], nbPoints: number, closed?: boolean): Curve3;
|
616
|
+
static CreateCubicBezier(v0: Vector3, v1: Vector3, v2: Vector3, v3: Vector3, nbPoints: number): Curve3;
|
617
|
+
static CreateHermiteSpline(p1: Vector3, t1: Vector3, p2: Vector3, t2: Vector3, nbPoints: number): Curve3;
|
618
|
+
static CreateQuadraticBezier(v0: Vector3, v1: Vector3, v2: Vector3, nbPoints: number): Curve3;
|
619
|
+
// (undocumented)
|
620
|
+
getPoints(): Vector3[];
|
621
|
+
// (undocumented)
|
622
|
+
length(): number;
|
623
|
+
}
|
624
|
+
|
625
|
+
// @public (undocumented)
|
626
|
+
export class CylinderShape extends Shape {
|
627
|
+
arc: number;
|
628
|
+
openEnded: boolean;
|
629
|
+
radius: number | null;
|
630
|
+
radiusBottom: number;
|
631
|
+
radiusTop: number;
|
632
|
+
segmentsHeight: number;
|
633
|
+
segmentsRadial: number;
|
634
|
+
}
|
635
|
+
|
636
|
+
// @public
|
637
|
+
export const DEG2RAD: number;
|
638
|
+
|
639
|
+
// @public (undocumented)
|
640
|
+
export function DisposableComponent(componentName: string, classId: number): <TFunction extends DisposableComponentConstructor<any>>(target: TFunction) => void | TFunction;
|
641
|
+
|
642
|
+
// @public (undocumented)
|
643
|
+
export interface DisposableComponentConstructor<T extends DisposableComponentLike> {
|
644
|
+
// (undocumented)
|
645
|
+
new (...args: any[]): T;
|
646
|
+
// (undocumented)
|
647
|
+
isComponent?: boolean;
|
648
|
+
// (undocumented)
|
649
|
+
isDisposableComponent?: true;
|
650
|
+
// (undocumented)
|
651
|
+
originalClassName?: string;
|
652
|
+
}
|
653
|
+
|
654
|
+
// @public (undocumented)
|
655
|
+
export class DisposableComponentCreated {
|
656
|
+
constructor(componentId: string, componentName: string, classId: number);
|
657
|
+
// (undocumented)
|
658
|
+
classId: number;
|
659
|
+
// (undocumented)
|
660
|
+
componentId: string;
|
661
|
+
// (undocumented)
|
662
|
+
componentName: string;
|
663
|
+
}
|
664
|
+
|
665
|
+
// @public (undocumented)
|
666
|
+
export interface DisposableComponentLike extends ComponentLike {
|
667
|
+
// (undocumented)
|
668
|
+
onDispose?(): void;
|
669
|
+
}
|
670
|
+
|
671
|
+
// @public (undocumented)
|
672
|
+
export class DisposableComponentRemoved {
|
673
|
+
constructor(componentId: string);
|
674
|
+
// (undocumented)
|
675
|
+
componentId: string;
|
676
|
+
}
|
677
|
+
|
678
|
+
// @public (undocumented)
|
679
|
+
export class DisposableComponentUpdated {
|
680
|
+
constructor(componentId: string, component: DisposableComponentLike);
|
681
|
+
// (undocumented)
|
682
|
+
component: DisposableComponentLike;
|
683
|
+
// (undocumented)
|
684
|
+
componentId: string;
|
685
|
+
}
|
686
|
+
|
687
|
+
// @public (undocumented)
|
688
|
+
export type double = number;
|
689
|
+
|
690
|
+
// @public (undocumented)
|
691
|
+
export type EcsMathReadOnlyQuaternion = {
|
692
|
+
readonly x: number;
|
693
|
+
readonly y: number;
|
694
|
+
readonly z: number;
|
695
|
+
readonly w: number;
|
696
|
+
};
|
697
|
+
|
698
|
+
// @public (undocumented)
|
699
|
+
export type EcsMathReadOnlyVector2 = {
|
700
|
+
readonly y: number;
|
701
|
+
readonly x: number;
|
702
|
+
};
|
703
|
+
|
704
|
+
// @public (undocumented)
|
705
|
+
export type EcsMathReadOnlyVector3 = {
|
706
|
+
readonly y: number;
|
707
|
+
readonly x: number;
|
708
|
+
readonly z: number;
|
709
|
+
};
|
710
|
+
|
711
|
+
// @public (undocumented)
|
712
|
+
export type EcsMathReadOnlyVector4 = {
|
713
|
+
readonly x: number;
|
714
|
+
readonly y: number;
|
715
|
+
readonly z: number;
|
716
|
+
readonly w: number;
|
717
|
+
};
|
718
|
+
|
719
|
+
// @public (undocumented)
|
720
|
+
export class Engine implements IEngine {
|
721
|
+
constructor(rootEntity: IEntity);
|
722
|
+
// (undocumented)
|
723
|
+
addEntity(entity: IEntity): IEntity;
|
724
|
+
// (undocumented)
|
725
|
+
addSystem(system: ISystem, priority?: number): ISystem;
|
726
|
+
// (undocumented)
|
727
|
+
readonly avatarEntity: IEntity;
|
728
|
+
// (undocumented)
|
729
|
+
get disposableComponents(): Readonly<Record<string, DisposableComponentLike>>;
|
730
|
+
// (undocumented)
|
731
|
+
disposeComponent(component: DisposableComponentLike): boolean;
|
732
|
+
// (undocumented)
|
733
|
+
get entities(): Readonly<Record<string, IEntity>>;
|
734
|
+
// (undocumented)
|
735
|
+
readonly eventManager: EventManager;
|
736
|
+
// (undocumented)
|
737
|
+
readonly firstPersonCameraEntity: IEntity;
|
738
|
+
// (undocumented)
|
739
|
+
getComponentGroup(...requires: ComponentConstructor<any>[]): ComponentGroup;
|
740
|
+
// (undocumented)
|
741
|
+
getEntitiesWithComponent(component: string): Record<string, any>;
|
742
|
+
// (undocumented)
|
743
|
+
getEntitiesWithComponent(component: ComponentConstructor<any>): Record<string, IEntity>;
|
744
|
+
// (undocumented)
|
745
|
+
registerComponent(component: DisposableComponentLike): void;
|
746
|
+
// (undocumented)
|
747
|
+
removeComponentGroup(componentGroup: ComponentGroup): boolean;
|
748
|
+
// (undocumented)
|
749
|
+
removeEntity(entity: IEntity): boolean;
|
750
|
+
// (undocumented)
|
751
|
+
removeSystem(system: ISystem): boolean;
|
752
|
+
// (undocumented)
|
753
|
+
readonly rootEntity: IEntity;
|
754
|
+
// (undocumented)
|
755
|
+
update(dt: number): this;
|
756
|
+
// (undocumented)
|
757
|
+
updateComponent(component: DisposableComponentLike): void;
|
758
|
+
}
|
759
|
+
|
760
|
+
// @public (undocumented)
|
761
|
+
export const engine: Engine;
|
762
|
+
|
763
|
+
// @public (undocumented)
|
764
|
+
export class Entity implements IEntity {
|
765
|
+
constructor(name?: string | undefined);
|
766
|
+
addComponent<T extends object>(component: T): T;
|
767
|
+
addComponentOrReplace<T extends object>(component: T): T;
|
768
|
+
// (undocumented)
|
769
|
+
alive: boolean;
|
770
|
+
// (undocumented)
|
771
|
+
children: Record<string, IEntity>;
|
772
|
+
// (undocumented)
|
773
|
+
readonly components: Record<string, any>;
|
774
|
+
// (undocumented)
|
775
|
+
eventManager: EventManager | null;
|
776
|
+
getComponent<T = any>(component: string): T;
|
777
|
+
// (undocumented)
|
778
|
+
getComponent<T>(component: ComponentConstructor<T>): T;
|
779
|
+
getComponentOrCreate<T>(component: ComponentConstructor<T> & {
|
780
|
+
new (): T;
|
781
|
+
}): T;
|
782
|
+
getComponentOrNull<T = any>(component: string): T | null;
|
783
|
+
// (undocumented)
|
784
|
+
getComponentOrNull<T>(component: ComponentConstructor<T>): T | null;
|
785
|
+
getParent(): IEntity | null;
|
786
|
+
hasComponent<T = any>(component: string): boolean;
|
787
|
+
// (undocumented)
|
788
|
+
hasComponent<T>(component: ComponentConstructor<T>): boolean;
|
789
|
+
// (undocumented)
|
790
|
+
hasComponent<T extends object>(component: T): boolean;
|
791
|
+
isAddedToEngine(): boolean;
|
792
|
+
// (undocumented)
|
793
|
+
name?: string | undefined;
|
794
|
+
removeComponent(component: string, triggerRemovedEvent?: boolean): void;
|
795
|
+
// (undocumented)
|
796
|
+
removeComponent<T extends object>(component: T, triggerRemovedEvent?: boolean): void;
|
797
|
+
// (undocumented)
|
798
|
+
removeComponent(component: ComponentConstructor<any>, triggerRemovedEvent?: boolean): void;
|
799
|
+
setParent(_parent: IEntity | Attachable | null): IEntity;
|
800
|
+
// (undocumented)
|
801
|
+
readonly uuid: string;
|
802
|
+
}
|
803
|
+
|
804
|
+
// @public
|
805
|
+
export const Epsilon = 0.000001;
|
806
|
+
|
807
|
+
// @public
|
808
|
+
export function error(error: string | Error, data?: any): void;
|
809
|
+
|
810
|
+
// @public (undocumented)
|
811
|
+
export function EventConstructor(): ClassDecorator;
|
812
|
+
|
813
|
+
// @public (undocumented)
|
814
|
+
export class EventManager {
|
815
|
+
// (undocumented)
|
816
|
+
addListener<T, X>(eventClass: IEventConstructor<T>, listener: X, listenerFunction: (this: X, event: T) => void): this;
|
817
|
+
// (undocumented)
|
818
|
+
fireEvent<T extends object>(event: T): this;
|
819
|
+
// (undocumented)
|
820
|
+
removeListener<X>(listener: X, eventClass: IEventConstructor<any>): boolean;
|
821
|
+
}
|
822
|
+
|
823
|
+
// @public
|
824
|
+
export function executeTask<T>(task: () => Promise<T>): TaskResult<T>;
|
825
|
+
|
826
|
+
// @public (undocumented)
|
827
|
+
export type FileAndHash = {
|
828
|
+
file: string;
|
829
|
+
hash: string;
|
830
|
+
};
|
831
|
+
|
832
|
+
// @public (undocumented)
|
833
|
+
export type float = number;
|
834
|
+
|
835
|
+
// @public (undocumented)
|
836
|
+
export type FloatArray = number[];
|
837
|
+
|
838
|
+
// @public (undocumented)
|
839
|
+
export class Font extends ObservableComponent {
|
840
|
+
constructor(src?: string);
|
841
|
+
// (undocumented)
|
842
|
+
readonly src: string;
|
843
|
+
}
|
844
|
+
|
845
|
+
// @public (undocumented)
|
846
|
+
export enum Fonts {
|
847
|
+
// (undocumented)
|
848
|
+
LiberationSans = "builtin:LiberationSans SDF",
|
849
|
+
// @deprecated (undocumented)
|
850
|
+
SanFrancisco = "builtin:SF-UI-Text-Regular SDF",
|
851
|
+
// @deprecated (undocumented)
|
852
|
+
SanFrancisco_Heavy = "builtin:SF-UI-Text-Heavy SDF",
|
853
|
+
// @deprecated (undocumented)
|
854
|
+
SanFrancisco_Semibold = "builtin:SF-UI-Text-Semibold SDF",
|
855
|
+
// (undocumented)
|
856
|
+
SansSerif = "SansSerif",
|
857
|
+
// (undocumented)
|
858
|
+
SansSerif_Bold = "SansSerif_Bold",
|
859
|
+
// (undocumented)
|
860
|
+
SansSerif_Heavy = "SansSerif_Heavy",
|
861
|
+
// (undocumented)
|
862
|
+
SansSerif_SemiBold = "SansSerif_SemiBold"
|
863
|
+
}
|
864
|
+
|
865
|
+
// @public
|
866
|
+
export class Frustum {
|
867
|
+
static GetBottomPlaneToRef(transform: Matrix, frustumPlane: Plane): void;
|
868
|
+
static GetFarPlaneToRef(transform: Matrix, frustumPlane: Plane): void;
|
869
|
+
static GetLeftPlaneToRef(transform: Matrix, frustumPlane: Plane): void;
|
870
|
+
static GetNearPlaneToRef(transform: Matrix, frustumPlane: Plane): void;
|
871
|
+
static GetPlanes(transform: Matrix): Plane[];
|
872
|
+
static GetPlanesToRef(transform: Matrix, frustumPlanes: Plane[]): void;
|
873
|
+
static GetRightPlaneToRef(transform: Matrix, frustumPlane: Plane): void;
|
874
|
+
static GetTopPlaneToRef(transform: Matrix, frustumPlane: Plane): void;
|
875
|
+
}
|
876
|
+
|
877
|
+
// @public (undocumented)
|
878
|
+
export function getComponentClassId<T extends Record<any, any> = any>(component: T | ComponentConstructor<T>): number | null;
|
879
|
+
|
880
|
+
// @public (undocumented)
|
881
|
+
export function getComponentId<T extends DisposableComponentLike>(component: T): string;
|
882
|
+
|
883
|
+
// @public (undocumented)
|
884
|
+
export function getComponentName<T extends Record<any, any> = any>(component: T | ComponentConstructor<T>): string;
|
885
|
+
|
886
|
+
// @public
|
887
|
+
export enum Gizmo {
|
888
|
+
// (undocumented)
|
889
|
+
MOVE = "MOVE",
|
890
|
+
// (undocumented)
|
891
|
+
NONE = "NONE",
|
892
|
+
// (undocumented)
|
893
|
+
ROTATE = "ROTATE",
|
894
|
+
// (undocumented)
|
895
|
+
SCALE = "SCALE"
|
896
|
+
}
|
897
|
+
|
898
|
+
// @public
|
899
|
+
export class Gizmos extends ObservableComponent {
|
900
|
+
cycle: boolean;
|
901
|
+
localReference: boolean;
|
902
|
+
position: boolean;
|
903
|
+
rotation: boolean;
|
904
|
+
scale: boolean;
|
905
|
+
selectedGizmo?: Gizmo;
|
906
|
+
}
|
907
|
+
|
908
|
+
// @public (undocumented)
|
909
|
+
export class GlobalPointerDown extends PointerEventComponent {
|
910
|
+
}
|
911
|
+
|
912
|
+
// @public (undocumented)
|
913
|
+
export class GlobalPointerUp extends PointerEventComponent {
|
914
|
+
}
|
915
|
+
|
916
|
+
// @public (undocumented)
|
917
|
+
export class GLTFShape extends Shape {
|
918
|
+
constructor(src: string);
|
919
|
+
// (undocumented)
|
920
|
+
readonly src: string;
|
921
|
+
}
|
922
|
+
|
923
|
+
// @public (undocumented)
|
924
|
+
export interface HitEntityInfo {
|
925
|
+
// (undocumented)
|
926
|
+
entityId: string;
|
927
|
+
// (undocumented)
|
928
|
+
isValid: boolean;
|
929
|
+
// (undocumented)
|
930
|
+
meshName: string;
|
931
|
+
}
|
932
|
+
|
933
|
+
// @public (undocumented)
|
934
|
+
export interface IEngine {
|
935
|
+
// (undocumented)
|
936
|
+
addEntity(entity: IEntity): void;
|
937
|
+
// (undocumented)
|
938
|
+
addSystem(system: ISystem, priority: number): void;
|
939
|
+
// (undocumented)
|
940
|
+
readonly avatarEntity: IEntity;
|
941
|
+
// (undocumented)
|
942
|
+
readonly entities: Readonly<Record<string, IEntity>>;
|
943
|
+
// (undocumented)
|
944
|
+
readonly firstPersonCameraEntity: IEntity;
|
945
|
+
// (undocumented)
|
946
|
+
removeEntity(entity: IEntity): void;
|
947
|
+
// (undocumented)
|
948
|
+
removeSystem(system: ISystem): void;
|
949
|
+
// (undocumented)
|
950
|
+
rootEntity: IEntity;
|
951
|
+
}
|
952
|
+
|
953
|
+
// @public (undocumented)
|
954
|
+
export interface IEntity {
|
955
|
+
addComponent<T extends object>(component: T): void;
|
956
|
+
// (undocumented)
|
957
|
+
addComponentOrReplace<T extends object>(component: T): void;
|
958
|
+
// (undocumented)
|
959
|
+
alive: boolean;
|
960
|
+
// (undocumented)
|
961
|
+
children: Record<string, IEntity>;
|
962
|
+
// (undocumented)
|
963
|
+
readonly components: Record<string, any>;
|
964
|
+
// (undocumented)
|
965
|
+
eventManager: EventManager | null;
|
966
|
+
// (undocumented)
|
967
|
+
getComponent<T = any>(component: string): T;
|
968
|
+
// (undocumented)
|
969
|
+
getComponent<T>(component: ComponentConstructor<T>): T;
|
970
|
+
// (undocumented)
|
971
|
+
getComponent<T>(component: ComponentConstructor<T> | string): T;
|
972
|
+
// (undocumented)
|
973
|
+
getComponentOrCreate<T>(component: ComponentConstructor<T> & {
|
974
|
+
new (): T;
|
975
|
+
}): T;
|
976
|
+
getComponentOrNull<T = any>(component: string): T | null;
|
977
|
+
// (undocumented)
|
978
|
+
getComponentOrNull<T>(component: ComponentConstructor<T>): T | null;
|
979
|
+
// (undocumented)
|
980
|
+
getComponentOrNull<T>(component: ComponentConstructor<T> | string): T | null;
|
981
|
+
// (undocumented)
|
982
|
+
getParent(): IEntity | null;
|
983
|
+
// (undocumented)
|
984
|
+
hasComponent<T = any>(component: string): boolean;
|
985
|
+
// (undocumented)
|
986
|
+
hasComponent<T>(component: ComponentConstructor<T>): boolean;
|
987
|
+
// (undocumented)
|
988
|
+
hasComponent<T extends object>(component: T): boolean;
|
989
|
+
// (undocumented)
|
990
|
+
hasComponent<T>(component: ComponentConstructor<T> | string): boolean;
|
991
|
+
// (undocumented)
|
992
|
+
isAddedToEngine(): boolean;
|
993
|
+
// (undocumented)
|
994
|
+
removeComponent(component: string, triggerRemovedEvent?: boolean): void;
|
995
|
+
// (undocumented)
|
996
|
+
removeComponent<T extends object>(component: T, triggerRemovedEvent?: boolean): void;
|
997
|
+
// (undocumented)
|
998
|
+
removeComponent(component: ComponentConstructor<any>, triggerRemovedEvent?: boolean): void;
|
999
|
+
// (undocumented)
|
1000
|
+
removeComponent(component: object | string | Function, triggerRemovedEvent: any): void;
|
1001
|
+
// (undocumented)
|
1002
|
+
setParent(e: IEntity | Attachable | null): void;
|
1003
|
+
// (undocumented)
|
1004
|
+
readonly uuid: string;
|
1005
|
+
}
|
1006
|
+
|
1007
|
+
// @public (undocumented)
|
1008
|
+
export interface IEventConstructor<T> {
|
1009
|
+
// (undocumented)
|
1010
|
+
new (...args: any[]): T;
|
1011
|
+
}
|
1012
|
+
|
1013
|
+
// @public (undocumented)
|
1014
|
+
export class Input {
|
1015
|
+
// (undocumented)
|
1016
|
+
static ensureInstance(): any;
|
1017
|
+
// (undocumented)
|
1018
|
+
handlePointerEvent(data: GlobalInputEventResult): void;
|
1019
|
+
// (undocumented)
|
1020
|
+
static get instance(): Input;
|
1021
|
+
isButtonPressed(buttonId: ActionButton): {
|
1022
|
+
BUTTON_DOWN: boolean;
|
1023
|
+
};
|
1024
|
+
subscribe(eventName: InputEventKind, buttonId: ActionButton, useRaycast: boolean, fn: (e: LocalActionButtonEvent) => void): () => void;
|
1025
|
+
unsubscribe(eventName: InputEventKind, buttonId: ActionButton, fn: (e: LocalActionButtonEvent) => void): false | Subscription[];
|
1026
|
+
}
|
1027
|
+
|
1028
|
+
// @public (undocumented)
|
1029
|
+
export type InputEventKind = 'BUTTON_DOWN' | 'BUTTON_UP';
|
1030
|
+
|
1031
|
+
// @public (undocumented)
|
1032
|
+
export enum InputEventType {
|
1033
|
+
// (undocumented)
|
1034
|
+
DOWN = 0,
|
1035
|
+
// (undocumented)
|
1036
|
+
UP = 1
|
1037
|
+
}
|
1038
|
+
|
1039
|
+
// @public (undocumented)
|
1040
|
+
export type InputState = Record<ActionButton, {
|
1041
|
+
BUTTON_DOWN: boolean;
|
1042
|
+
}>;
|
1043
|
+
|
1044
|
+
// @public (undocumented)
|
1045
|
+
export interface IPhysicsCast {
|
1046
|
+
// (undocumented)
|
1047
|
+
hitAll(ray: Ray, hitCallback: (event: RaycastHitEntities) => void, id?: number): void;
|
1048
|
+
// (undocumented)
|
1049
|
+
hitFirst(ray: Ray, hitCallback: (event: RaycastHitEntity) => void, id?: number): void;
|
1050
|
+
}
|
1051
|
+
|
1052
|
+
// @public (undocumented)
|
1053
|
+
export function isDisposableComponent(component: ComponentLike): boolean;
|
1054
|
+
|
1055
|
+
// @public
|
1056
|
+
export interface ISize {
|
1057
|
+
height: number;
|
1058
|
+
width: number;
|
1059
|
+
}
|
1060
|
+
|
1061
|
+
// @public (undocumented)
|
1062
|
+
export interface ISystem {
|
1063
|
+
// (undocumented)
|
1064
|
+
activate?(engine: IEngine): void;
|
1065
|
+
// (undocumented)
|
1066
|
+
active?: boolean;
|
1067
|
+
// (undocumented)
|
1068
|
+
deactivate?(): void;
|
1069
|
+
// (undocumented)
|
1070
|
+
onAddEntity?(entity: IEntity): void;
|
1071
|
+
// (undocumented)
|
1072
|
+
onRemoveEntity?(entity: IEntity): void;
|
1073
|
+
// (undocumented)
|
1074
|
+
update?(dt: number): void;
|
1075
|
+
}
|
1076
|
+
|
1077
|
+
// @public (undocumented)
|
1078
|
+
export enum LandRole {
|
1079
|
+
// (undocumented)
|
1080
|
+
OPERATOR = "operator",
|
1081
|
+
// (undocumented)
|
1082
|
+
OWNER = "owner"
|
1083
|
+
}
|
1084
|
+
|
1085
|
+
// @public (undocumented)
|
1086
|
+
export type LocalActionButtonEvent = GlobalInputEventResult & {
|
1087
|
+
origin: Vector3;
|
1088
|
+
direction: Vector3;
|
1089
|
+
button: ActionButton;
|
1090
|
+
hit?: GlobalInputEventResult['hit'] & {
|
1091
|
+
hitPoint: Vector3;
|
1092
|
+
normal: Vector3;
|
1093
|
+
worldNormal: Vector3;
|
1094
|
+
};
|
1095
|
+
};
|
1096
|
+
|
1097
|
+
// @public
|
1098
|
+
export function log(...args: any[]): void;
|
1099
|
+
|
1100
|
+
// @public (undocumented)
|
1101
|
+
export class Material extends ObservableComponent {
|
1102
|
+
albedoColor?: Color4 | Color3;
|
1103
|
+
albedoTexture?: Texture | VideoTexture | AvatarTexture;
|
1104
|
+
alphaTest?: number;
|
1105
|
+
alphaTexture?: Texture | VideoTexture | AvatarTexture;
|
1106
|
+
bumpTexture?: Texture | AvatarTexture;
|
1107
|
+
castShadows?: boolean;
|
1108
|
+
directIntensity?: number;
|
1109
|
+
emissiveColor?: Color3;
|
1110
|
+
emissiveIntensity?: number;
|
1111
|
+
emissiveTexture?: Texture | VideoTexture | AvatarTexture;
|
1112
|
+
metallic?: number;
|
1113
|
+
microSurface?: number;
|
1114
|
+
reflectivityColor?: Color3;
|
1115
|
+
roughness?: number;
|
1116
|
+
specularIntensity?: number;
|
1117
|
+
transparencyMode: TransparencyMode;
|
1118
|
+
}
|
1119
|
+
|
1120
|
+
// @public
|
1121
|
+
export class Matrix {
|
1122
|
+
constructor();
|
1123
|
+
add(other: Matrix): Matrix;
|
1124
|
+
addAtIndex(index: number, value: number): Matrix;
|
1125
|
+
addToRef(other: Matrix, result: Matrix): Matrix;
|
1126
|
+
addToSelf(other: Matrix): Matrix;
|
1127
|
+
asArray(): Readonly<FloatArray>;
|
1128
|
+
clone(): Matrix;
|
1129
|
+
static Compose(scale: Vector3, rotation: Quaternion, translation: Vector3): Matrix;
|
1130
|
+
static ComposeToRef(scale: Vector3, rotation: Quaternion, translation: Vector3, result: Matrix): void;
|
1131
|
+
copyFrom(other: Readonly<Matrix>): Matrix;
|
1132
|
+
copyToArray(array: FloatArray, offset?: number): Matrix;
|
1133
|
+
decompose(scale?: Vector3, rotation?: Quaternion, translation?: Vector3): boolean;
|
1134
|
+
static DecomposeLerp(startValue: Matrix, endValue: Matrix, gradient: number): Matrix;
|
1135
|
+
static DecomposeLerpToRef(startValue: Matrix, endValue: Matrix, gradient: number, result: Matrix): void;
|
1136
|
+
determinant(): number;
|
1137
|
+
equals(value: Matrix): boolean;
|
1138
|
+
static FromArray(array: ArrayLike<number>, offset?: number): Matrix;
|
1139
|
+
static FromArrayToRef(array: ArrayLike<number>, offset: number, result: Matrix): void;
|
1140
|
+
static FromFloatArrayToRefScaled(array: FloatArray, offset: number, scale: number, result: Matrix): void;
|
1141
|
+
static FromQuaternionToRef(quat: Quaternion, result: Matrix): void;
|
1142
|
+
static FromValues(initialM11: number, initialM12: number, initialM13: number, initialM14: number, initialM21: number, initialM22: number, initialM23: number, initialM24: number, initialM31: number, initialM32: number, initialM33: number, initialM34: number, initialM41: number, initialM42: number, initialM43: number, initialM44: number): Matrix;
|
1143
|
+
static FromValuesToRef(initialM11: number, initialM12: number, initialM13: number, initialM14: number, initialM21: number, initialM22: number, initialM23: number, initialM24: number, initialM31: number, initialM32: number, initialM33: number, initialM34: number, initialM41: number, initialM42: number, initialM43: number, initialM44: number, result: Matrix): void;
|
1144
|
+
static FromXYZAxesToRef(xaxis: Vector3, yaxis: Vector3, zaxis: Vector3, result: Matrix): void;
|
1145
|
+
static GetAsMatrix2x2(matrix: Matrix): FloatArray;
|
1146
|
+
static GetAsMatrix3x3(matrix: Matrix): FloatArray;
|
1147
|
+
getClassName(): string;
|
1148
|
+
getHashCode(): number;
|
1149
|
+
getRotationMatrix(): Matrix;
|
1150
|
+
getRotationMatrixToRef(result: Matrix): Matrix;
|
1151
|
+
getRow(index: number): Nullable<Vector4>;
|
1152
|
+
getTranslation(): Vector3;
|
1153
|
+
getTranslationToRef(result: Vector3): Matrix;
|
1154
|
+
static Identity(): Matrix;
|
1155
|
+
static get IdentityReadOnly(): Readonly<Matrix>;
|
1156
|
+
static IdentityToRef(result: Matrix): void;
|
1157
|
+
static Invert(source: Matrix): Matrix;
|
1158
|
+
invert(): Matrix;
|
1159
|
+
invertToRef(other: Matrix): Matrix;
|
1160
|
+
isIdentity(): boolean;
|
1161
|
+
isIdentityAs3x2(): boolean;
|
1162
|
+
static Lerp(startValue: Matrix, endValue: Matrix, gradient: number): Matrix;
|
1163
|
+
static LerpToRef(startValue: Matrix, endValue: Matrix, gradient: number, result: Matrix): void;
|
1164
|
+
static LookAtLH(eye: Vector3, target: Vector3, up: Vector3): Matrix;
|
1165
|
+
static LookAtLHToRef(eye: Vector3, target: Vector3, up: Vector3, result: Matrix): void;
|
1166
|
+
static LookAtRH(eye: Vector3, target: Vector3, up: Vector3): Matrix;
|
1167
|
+
static LookAtRHToRef(eye: Vector3, target: Vector3, up: Vector3, result: Matrix): void;
|
1168
|
+
get m(): Readonly<FloatArray>;
|
1169
|
+
// @internal (undocumented)
|
1170
|
+
_markAsUpdated(): void;
|
1171
|
+
multiply(other: Readonly<Matrix>): Matrix;
|
1172
|
+
multiplyAtIndex(index: number, value: number): Matrix;
|
1173
|
+
multiplyToArray(other: Readonly<Matrix>, result: FloatArray, offset: number): Matrix;
|
1174
|
+
multiplyToRef(other: Readonly<Matrix>, result: Matrix): Matrix;
|
1175
|
+
static OrthoLH(width: number, height: number, znear: number, zfar: number): Matrix;
|
1176
|
+
static OrthoLHToRef(width: number, height: number, znear: number, zfar: number, result: Matrix): void;
|
1177
|
+
static OrthoOffCenterLH(left: number, right: number, bottom: number, top: number, znear: number, zfar: number): Matrix;
|
1178
|
+
static OrthoOffCenterLHToRef(left: number, right: number, bottom: number, top: number, znear: number, zfar: number, result: Matrix): void;
|
1179
|
+
static OrthoOffCenterRH(left: number, right: number, bottom: number, top: number, znear: number, zfar: number): Matrix;
|
1180
|
+
static OrthoOffCenterRHToRef(left: number, right: number, bottom: number, top: number, znear: number, zfar: number, result: Matrix): void;
|
1181
|
+
static PerspectiveFovLH(fov: number, aspect: number, znear: number, zfar: number): Matrix;
|
1182
|
+
static PerspectiveFovLHToRef(fov: number, aspect: number, znear: number, zfar: number, result: Matrix, isVerticalFovFixed?: boolean): void;
|
1183
|
+
static PerspectiveFovRH(fov: number, aspect: number, znear: number, zfar: number): Matrix;
|
1184
|
+
static PerspectiveFovRHToRef(fov: number, aspect: number, znear: number, zfar: number, result: Matrix, isVerticalFovFixed?: boolean): void;
|
1185
|
+
static PerspectiveFovWebVRToRef(fov: {
|
1186
|
+
upDegrees: number;
|
1187
|
+
downDegrees: number;
|
1188
|
+
leftDegrees: number;
|
1189
|
+
rightDegrees: number;
|
1190
|
+
}, znear: number, zfar: number, result: Matrix, rightHanded?: boolean): void;
|
1191
|
+
static PerspectiveLH(width: number, height: number, znear: number, zfar: number): Matrix;
|
1192
|
+
static Reflection(plane: Plane): Matrix;
|
1193
|
+
static ReflectionToRef(plane: Plane, result: Matrix): void;
|
1194
|
+
removeRotationAndScaling(): Matrix;
|
1195
|
+
reset(): Matrix;
|
1196
|
+
static RotationAxis(axis: Vector3, angle: number): Matrix;
|
1197
|
+
static RotationAxisToRef(axis: Vector3, angle: number, result: Matrix): void;
|
1198
|
+
static RotationX(angle: number): Matrix;
|
1199
|
+
static RotationXToRef(angle: number, result: Matrix): void;
|
1200
|
+
static RotationY(angle: number): Matrix;
|
1201
|
+
static RotationYawPitchRoll(yaw: number, pitch: number, roll: number): Matrix;
|
1202
|
+
static RotationYawPitchRollToRef(yaw: number, pitch: number, roll: number, result: Matrix): void;
|
1203
|
+
static RotationYToRef(angle: number, result: Matrix): void;
|
1204
|
+
static RotationZ(angle: number): Matrix;
|
1205
|
+
static RotationZToRef(angle: number, result: Matrix): void;
|
1206
|
+
scale(scale: number): Matrix;
|
1207
|
+
scaleAndAddToRef(scale: number, result: Matrix): Matrix;
|
1208
|
+
scaleToRef(scale: number, result: Matrix): Matrix;
|
1209
|
+
static Scaling(x: number, y: number, z: number): Matrix;
|
1210
|
+
static ScalingToRef(x: number, y: number, z: number, result: Matrix): void;
|
1211
|
+
setRow(index: number, row: Vector4): Matrix;
|
1212
|
+
setRowFromFloats(index: number, x: number, y: number, z: number, w: number): Matrix;
|
1213
|
+
setTranslation(vector3: Vector3): Matrix;
|
1214
|
+
setTranslationFromFloats(x: number, y: number, z: number): Matrix;
|
1215
|
+
toArray(): Readonly<FloatArray>;
|
1216
|
+
toggleModelMatrixHandInPlace(): void;
|
1217
|
+
toggleProjectionMatrixHandInPlace(): void;
|
1218
|
+
toNormalMatrix(ref: Matrix): void;
|
1219
|
+
static Translation(x: number, y: number, z: number): Matrix;
|
1220
|
+
static TranslationToRef(x: number, y: number, z: number, result: Matrix): void;
|
1221
|
+
static Transpose(matrix: Matrix): Matrix;
|
1222
|
+
transpose(): Matrix;
|
1223
|
+
static TransposeToRef(matrix: Matrix, result: Matrix): void;
|
1224
|
+
transposeToRef(result: Matrix): Matrix;
|
1225
|
+
updateFlag: number;
|
1226
|
+
static Zero(): Matrix;
|
1227
|
+
}
|
1228
|
+
|
1229
|
+
// @public (undocumented)
|
1230
|
+
export class MessageBus {
|
1231
|
+
constructor();
|
1232
|
+
// (undocumented)
|
1233
|
+
emit(message: string, payload: Record<any, any>): void;
|
1234
|
+
// (undocumented)
|
1235
|
+
on(message: string, callback: (value: any, sender: string) => void): Observer<IEvents['comms']>;
|
1236
|
+
}
|
1237
|
+
|
1238
|
+
// @public (undocumented)
|
1239
|
+
export type MinimapSceneInfo = {
|
1240
|
+
name: string;
|
1241
|
+
owner: string;
|
1242
|
+
description: string;
|
1243
|
+
previewImageUrl: string | undefined;
|
1244
|
+
type: number;
|
1245
|
+
parcels: {
|
1246
|
+
x: number;
|
1247
|
+
y: number;
|
1248
|
+
}[];
|
1249
|
+
isPOI: boolean;
|
1250
|
+
};
|
1251
|
+
|
1252
|
+
// @public
|
1253
|
+
export class MultiObserver<T> {
|
1254
|
+
dispose(): void;
|
1255
|
+
static Watch<T>(observables: Observable<T>[], callback: (eventData: T, eventState: ObserverEventState) => void, mask?: number, scope?: any): MultiObserver<T>;
|
1256
|
+
}
|
1257
|
+
|
1258
|
+
// @public
|
1259
|
+
export function newId(type: string): string;
|
1260
|
+
|
1261
|
+
// @public (undocumented)
|
1262
|
+
export class NFTShape extends Shape {
|
1263
|
+
constructor(src: string);
|
1264
|
+
constructor(src: string, color: Color3);
|
1265
|
+
constructor(src: string, args: NFTShapeConstructorArgs);
|
1266
|
+
// (undocumented)
|
1267
|
+
color: Color3;
|
1268
|
+
// (undocumented)
|
1269
|
+
readonly src: string;
|
1270
|
+
// (undocumented)
|
1271
|
+
readonly style: PictureFrameStyle;
|
1272
|
+
}
|
1273
|
+
|
1274
|
+
// @public (undocumented)
|
1275
|
+
export type NFTShapeConstructorArgs = {
|
1276
|
+
color?: Color3;
|
1277
|
+
style?: PictureFrameStyle;
|
1278
|
+
};
|
1279
|
+
|
1280
|
+
// @public (undocumented)
|
1281
|
+
export type Nullable<T> = T | null;
|
1282
|
+
|
1283
|
+
// @public (undocumented)
|
1284
|
+
export class OBJShape extends Shape {
|
1285
|
+
constructor(src: string);
|
1286
|
+
// (undocumented)
|
1287
|
+
readonly src: string;
|
1288
|
+
}
|
1289
|
+
|
1290
|
+
// @public
|
1291
|
+
export class Observable<T> {
|
1292
|
+
constructor(onObserverAdded?: (observer: Observer<T>) => void);
|
1293
|
+
add(callback: (eventData: T, eventState: ObserverEventState) => void, mask?: number, insertFirst?: boolean, scope?: any, unregisterOnFirstCall?: boolean): null | Observer<T>;
|
1294
|
+
addOnce(callback: (eventData: T, eventState: ObserverEventState) => void): null | Observer<T>;
|
1295
|
+
clear(): void;
|
1296
|
+
clone(): Observable<T>;
|
1297
|
+
hasObservers(): boolean;
|
1298
|
+
hasSpecificMask(mask?: number): boolean;
|
1299
|
+
notifyObserver(observer: Observer<T>, eventData: T, mask?: number): void;
|
1300
|
+
notifyObservers(eventData: T, mask?: number, target?: any, currentTarget?: any): boolean;
|
1301
|
+
notifyObserversWithPromise(eventData: T, mask?: number, target?: any, currentTarget?: any): Promise<T>;
|
1302
|
+
remove(observer: null | Observer<T>): boolean;
|
1303
|
+
removeCallback(callback: (eventData: T, eventState: ObserverEventState) => void, scope?: any): boolean;
|
1304
|
+
}
|
1305
|
+
|
1306
|
+
// @public (undocumented)
|
1307
|
+
export class ObservableComponent {
|
1308
|
+
// (undocumented)
|
1309
|
+
static component(target: ObservableComponent, propertyKey: string): void;
|
1310
|
+
// (undocumented)
|
1311
|
+
static field(target: ObservableComponent, propertyKey: string): void;
|
1312
|
+
// (undocumented)
|
1313
|
+
onChange(fn: ObservableComponentSubscription): this;
|
1314
|
+
// (undocumented)
|
1315
|
+
static readonly(target: ObservableComponent, propertyKey: string): void;
|
1316
|
+
// (undocumented)
|
1317
|
+
toJSON(): any;
|
1318
|
+
// (undocumented)
|
1319
|
+
static uiValue(target: ObservableComponent, propertyKey: string): void;
|
1320
|
+
}
|
1321
|
+
|
1322
|
+
// @public (undocumented)
|
1323
|
+
export type ObservableComponentSubscription = (key: string, newVal: any, oldVal: any) => void;
|
1324
|
+
|
1325
|
+
// @public
|
1326
|
+
export class Observer<T> {
|
1327
|
+
constructor(
|
1328
|
+
callback: (eventData: T, eventState: ObserverEventState) => void,
|
1329
|
+
mask: number,
|
1330
|
+
scope?: any);
|
1331
|
+
callback: (eventData: T, eventState: ObserverEventState) => void;
|
1332
|
+
mask: number;
|
1333
|
+
scope: any;
|
1334
|
+
unregisterOnNextCall: boolean;
|
1335
|
+
_willBeUnregistered: boolean;
|
1336
|
+
}
|
1337
|
+
|
1338
|
+
// @public
|
1339
|
+
export class ObserverEventState {
|
1340
|
+
constructor(mask: number, skipNextObservers?: boolean, target?: any, currentTarget?: any);
|
1341
|
+
currentTarget?: any;
|
1342
|
+
initalize(mask: number, skipNextObservers?: boolean, target?: any, currentTarget?: any): ObserverEventState;
|
1343
|
+
lastReturnValue?: any;
|
1344
|
+
mask: number;
|
1345
|
+
skipNextObservers: boolean;
|
1346
|
+
target?: any;
|
1347
|
+
}
|
1348
|
+
|
1349
|
+
// @public (undocumented)
|
1350
|
+
export class OnAnimationEnd extends OnUUIDEvent<'onAnimationEnd'> {
|
1351
|
+
// (undocumented)
|
1352
|
+
readonly type: string;
|
1353
|
+
}
|
1354
|
+
|
1355
|
+
// @public (undocumented)
|
1356
|
+
export class OnBlur extends OnUUIDEvent<'onBlur'> {
|
1357
|
+
constructor(callback: (event: IEvents['onBlur']) => void);
|
1358
|
+
// (undocumented)
|
1359
|
+
readonly type: string;
|
1360
|
+
}
|
1361
|
+
|
1362
|
+
// @public
|
1363
|
+
export const onCameraModeChangedObservable: Observable<{
|
1364
|
+
cameraMode: 0 | 1 | 2;
|
1365
|
+
}>;
|
1366
|
+
|
1367
|
+
// @public (undocumented)
|
1368
|
+
export class OnChanged extends OnUUIDEvent<'onChange'> {
|
1369
|
+
constructor(callback: (event: IEvents['onChange']) => void);
|
1370
|
+
// (undocumented)
|
1371
|
+
readonly type: string;
|
1372
|
+
}
|
1373
|
+
|
1374
|
+
// @public @deprecated (undocumented)
|
1375
|
+
export class OnClick extends OnPointerUUIDEvent<'onClick'> {
|
1376
|
+
constructor(callback: (event: IEvents['onClick']) => void);
|
1377
|
+
constructor(callback: (event: IEvents['onClick']) => void, options: OnPointerUUIDEventOptions);
|
1378
|
+
// (undocumented)
|
1379
|
+
readonly type: string;
|
1380
|
+
}
|
1381
|
+
|
1382
|
+
// @public (undocumented)
|
1383
|
+
export class OnEnter extends OnUUIDEvent<'onEnter'> {
|
1384
|
+
constructor(callback: (event: IEvents['onEnter']) => void);
|
1385
|
+
// (undocumented)
|
1386
|
+
readonly type: string;
|
1387
|
+
}
|
1388
|
+
|
1389
|
+
// @public @deprecated (undocumented)
|
1390
|
+
export const onEnterScene: Observable<{
|
1391
|
+
userId: string;
|
1392
|
+
}>;
|
1393
|
+
|
1394
|
+
// @public
|
1395
|
+
export const onEnterSceneObservable: Observable<{
|
1396
|
+
userId: string;
|
1397
|
+
}>;
|
1398
|
+
|
1399
|
+
// @public (undocumented)
|
1400
|
+
export class OnFocus extends OnUUIDEvent<'onFocus'> {
|
1401
|
+
constructor(callback: (event: IEvents['onFocus']) => void);
|
1402
|
+
// (undocumented)
|
1403
|
+
readonly type: string;
|
1404
|
+
}
|
1405
|
+
|
1406
|
+
// @public
|
1407
|
+
export class OnGizmoEvent extends OnUUIDEvent<'gizmoEvent'> {
|
1408
|
+
// (undocumented)
|
1409
|
+
readonly type: string;
|
1410
|
+
}
|
1411
|
+
|
1412
|
+
// @public
|
1413
|
+
export const onIdleStateChangedObservable: Observable<{
|
1414
|
+
isIdle: boolean;
|
1415
|
+
}>;
|
1416
|
+
|
1417
|
+
// @public @deprecated (undocumented)
|
1418
|
+
export const onLeaveScene: Observable<{
|
1419
|
+
userId: string;
|
1420
|
+
}>;
|
1421
|
+
|
1422
|
+
// @public
|
1423
|
+
export const onLeaveSceneObservable: Observable<{
|
1424
|
+
userId: string;
|
1425
|
+
}>;
|
1426
|
+
|
1427
|
+
// @public (undocumented)
|
1428
|
+
export const onPlayerClickedObservable: Observable<{
|
1429
|
+
userId: string;
|
1430
|
+
ray: {
|
1431
|
+
origin: ReadOnlyVector3;
|
1432
|
+
direction: ReadOnlyVector3;
|
1433
|
+
distance: number;
|
1434
|
+
};
|
1435
|
+
}>;
|
1436
|
+
|
1437
|
+
// @public (undocumented)
|
1438
|
+
export const onPlayerConnectedObservable: Observable<{
|
1439
|
+
userId: string;
|
1440
|
+
}>;
|
1441
|
+
|
1442
|
+
// @public (undocumented)
|
1443
|
+
export const onPlayerDisconnectedObservable: Observable<{
|
1444
|
+
userId: string;
|
1445
|
+
}>;
|
1446
|
+
|
1447
|
+
// @public (undocumented)
|
1448
|
+
export const onPlayerExpressionObservable: Observable<{
|
1449
|
+
expressionId: string;
|
1450
|
+
}>;
|
1451
|
+
|
1452
|
+
// @public (undocumented)
|
1453
|
+
export class OnPointerDown extends OnPointerUUIDEvent<'pointerDown'> {
|
1454
|
+
constructor(callback: (event: IEvents['pointerDown']) => void);
|
1455
|
+
constructor(callback: (event: IEvents['pointerDown']) => void, options: OnPointerUUIDEventOptions);
|
1456
|
+
// (undocumented)
|
1457
|
+
readonly type: string;
|
1458
|
+
}
|
1459
|
+
|
1460
|
+
// @public (undocumented)
|
1461
|
+
export class OnPointerHoverEnter extends OnPointerUUIDEvent<'pointerHoverEnter'> {
|
1462
|
+
constructor(callback: (event: IEvents['pointerHoverEnter']) => void);
|
1463
|
+
constructor(callback: (event: IEvents['pointerHoverEnter']) => void, options: OnPointerHoverEnterUUIDEventOptions);
|
1464
|
+
// (undocumented)
|
1465
|
+
readonly type: string;
|
1466
|
+
}
|
1467
|
+
|
1468
|
+
// @public (undocumented)
|
1469
|
+
export type OnPointerHoverEnterUUIDEventOptions = {
|
1470
|
+
distance?: number;
|
1471
|
+
};
|
1472
|
+
|
1473
|
+
// @public (undocumented)
|
1474
|
+
export class OnPointerHoverExit extends OnPointerUUIDEvent<'pointerHoverExit'> {
|
1475
|
+
constructor(callback: (event: IEvents['pointerHoverExit']) => void);
|
1476
|
+
// (undocumented)
|
1477
|
+
readonly type: string;
|
1478
|
+
}
|
1479
|
+
|
1480
|
+
// @public (undocumented)
|
1481
|
+
export const onPointerLockedStateChange: Observable<{
|
1482
|
+
locked?: boolean | undefined;
|
1483
|
+
}>;
|
1484
|
+
|
1485
|
+
// @public (undocumented)
|
1486
|
+
export class OnPointerUp extends OnPointerUUIDEvent<'pointerUp'> {
|
1487
|
+
constructor(callback: (event: IEvents['pointerUp']) => void);
|
1488
|
+
constructor(callback: (event: IEvents['pointerUp']) => void, options: OnPointerUUIDEventOptions);
|
1489
|
+
// (undocumented)
|
1490
|
+
readonly type: string;
|
1491
|
+
}
|
1492
|
+
|
1493
|
+
// @public (undocumented)
|
1494
|
+
export class OnPointerUUIDEvent<T extends keyof IEvents> extends OnUUIDEvent<T> {
|
1495
|
+
// (undocumented)
|
1496
|
+
button: ActionButton;
|
1497
|
+
// (undocumented)
|
1498
|
+
distance: number;
|
1499
|
+
// (undocumented)
|
1500
|
+
hoverText: string;
|
1501
|
+
// (undocumented)
|
1502
|
+
showFeedback: boolean;
|
1503
|
+
// (undocumented)
|
1504
|
+
toJSON(): {
|
1505
|
+
uuid: string;
|
1506
|
+
type: string | undefined;
|
1507
|
+
button: ActionButton;
|
1508
|
+
hoverText: string;
|
1509
|
+
distance: number;
|
1510
|
+
showFeedback: boolean;
|
1511
|
+
};
|
1512
|
+
}
|
1513
|
+
|
1514
|
+
// @public (undocumented)
|
1515
|
+
export type OnPointerUUIDEventOptions = {
|
1516
|
+
button?: ActionButton;
|
1517
|
+
hoverText?: string;
|
1518
|
+
showFeedback?: boolean;
|
1519
|
+
distance?: number;
|
1520
|
+
};
|
1521
|
+
|
1522
|
+
// @public (undocumented)
|
1523
|
+
export const onProfileChanged: Observable<{
|
1524
|
+
ethAddress: string;
|
1525
|
+
version: number;
|
1526
|
+
}>;
|
1527
|
+
|
1528
|
+
// @public (undocumented)
|
1529
|
+
export const onRealmChangedObservable: Observable<{
|
1530
|
+
domain: string;
|
1531
|
+
room: string;
|
1532
|
+
serverName: string;
|
1533
|
+
displayName: string;
|
1534
|
+
}>;
|
1535
|
+
|
1536
|
+
// @public
|
1537
|
+
export const onSceneReadyObservable: Observable<{}>;
|
1538
|
+
|
1539
|
+
// @public (undocumented)
|
1540
|
+
export class OnTextSubmit extends OnUUIDEvent<'onTextSubmit'> {
|
1541
|
+
constructor(callback: (event: IEvents['onTextSubmit']) => void);
|
1542
|
+
// (undocumented)
|
1543
|
+
readonly type: string;
|
1544
|
+
}
|
1545
|
+
|
1546
|
+
// @public (undocumented)
|
1547
|
+
export class OnUUIDEvent<T extends keyof IEvents> extends ObservableComponent {
|
1548
|
+
constructor(callback: (event: IEvents[T]) => void);
|
1549
|
+
// (undocumented)
|
1550
|
+
callback: (event: any) => void;
|
1551
|
+
// (undocumented)
|
1552
|
+
toJSON(): {
|
1553
|
+
uuid: string;
|
1554
|
+
type: string | undefined;
|
1555
|
+
};
|
1556
|
+
// (undocumented)
|
1557
|
+
static uuidEvent(target: ObservableComponent, propertyKey: string): void;
|
1558
|
+
}
|
1559
|
+
|
1560
|
+
// @public (undocumented)
|
1561
|
+
export const onVideoEvent: Observable<{
|
1562
|
+
componentId: string;
|
1563
|
+
videoClipId: string;
|
1564
|
+
videoStatus: number;
|
1565
|
+
currentOffset: number;
|
1566
|
+
totalVideoLength: number;
|
1567
|
+
}>;
|
1568
|
+
|
1569
|
+
// @public (undocumented)
|
1570
|
+
export function openExternalURL(url: string): void;
|
1571
|
+
|
1572
|
+
// @public
|
1573
|
+
export function openNFTDialog(scr: string, comment?: string | null): void;
|
1574
|
+
|
1575
|
+
// @public
|
1576
|
+
export enum Orientation {
|
1577
|
+
CCW = 1,
|
1578
|
+
CW = 0
|
1579
|
+
}
|
1580
|
+
|
1581
|
+
// @public (undocumented)
|
1582
|
+
export type ParcelsWithAccess = Array<{
|
1583
|
+
x: number;
|
1584
|
+
y: number;
|
1585
|
+
role: LandRole;
|
1586
|
+
}>;
|
1587
|
+
|
1588
|
+
// @public (undocumented)
|
1589
|
+
export class ParentChanged {
|
1590
|
+
constructor(entity: IEntity, parent: IEntity | null);
|
1591
|
+
// (undocumented)
|
1592
|
+
entity: IEntity;
|
1593
|
+
// (undocumented)
|
1594
|
+
parent: IEntity | null;
|
1595
|
+
}
|
1596
|
+
|
1597
|
+
// @public
|
1598
|
+
export class Path2 {
|
1599
|
+
constructor(x: number, y: number);
|
1600
|
+
addArcTo(midX: number, midY: number, endX: number, endY: number, numberOfSegments?: number): Path2;
|
1601
|
+
addLineTo(x: number, y: number): Path2;
|
1602
|
+
close(): Path2;
|
1603
|
+
closed: boolean;
|
1604
|
+
getPointAtLengthPosition(normalizedLengthPosition: number): Vector2;
|
1605
|
+
getPoints(): Vector2[];
|
1606
|
+
length(): number;
|
1607
|
+
static StartingAt(x: number, y: number): Path2;
|
1608
|
+
}
|
1609
|
+
|
1610
|
+
// @public
|
1611
|
+
export class Path3D {
|
1612
|
+
constructor(
|
1613
|
+
path: Vector3[], firstNormal?: Nullable<Vector3>, raw?: boolean);
|
1614
|
+
getBinormals(): Vector3[];
|
1615
|
+
getCurve(): Vector3[];
|
1616
|
+
getDistances(): number[];
|
1617
|
+
getNormals(): Vector3[];
|
1618
|
+
getTangents(): Vector3[];
|
1619
|
+
path: Vector3[];
|
1620
|
+
update(path: Vector3[], firstNormal?: Nullable<Vector3>): Path3D;
|
1621
|
+
}
|
1622
|
+
|
1623
|
+
// @public (undocumented)
|
1624
|
+
export class PhysicsCast implements IPhysicsCast {
|
1625
|
+
// (undocumented)
|
1626
|
+
static ensureInstance(): any;
|
1627
|
+
// (undocumented)
|
1628
|
+
getRayFromCamera(distance: number): Ray;
|
1629
|
+
// (undocumented)
|
1630
|
+
getRayFromPositions(from: Vector3, to: Vector3): Ray;
|
1631
|
+
// (undocumented)
|
1632
|
+
handleRaycastHitAllResponse(response: RaycastResponse<RaycastHitEntities>): void;
|
1633
|
+
// (undocumented)
|
1634
|
+
handleRaycastHitFirstResponse(response: RaycastResponse<RaycastHitEntity>): void;
|
1635
|
+
// (undocumented)
|
1636
|
+
hitAll(ray: Ray, hitCallback: (event: RaycastHitEntities) => void, id?: number): void;
|
1637
|
+
// (undocumented)
|
1638
|
+
hitAllAvatars(_ray: Ray, _hitCallback: (event: RaycastHitAvatars) => void): void;
|
1639
|
+
// (undocumented)
|
1640
|
+
hitFirst(ray: Ray, hitCallback: (event: RaycastHitEntity) => void, id?: number): void;
|
1641
|
+
// (undocumented)
|
1642
|
+
hitFirstAvatar(_ray: Ray, _hitCallback: (event: RaycastHitAvatar) => void): void;
|
1643
|
+
// (undocumented)
|
1644
|
+
static get instance(): PhysicsCast;
|
1645
|
+
}
|
1646
|
+
|
1647
|
+
// @public (undocumented)
|
1648
|
+
export enum PictureFrameStyle {
|
1649
|
+
// (undocumented)
|
1650
|
+
Baroque_Ornament = 1,
|
1651
|
+
// (undocumented)
|
1652
|
+
Blocky = 5,
|
1653
|
+
// (undocumented)
|
1654
|
+
Canvas = 21,
|
1655
|
+
// (undocumented)
|
1656
|
+
Classic = 0,
|
1657
|
+
// (undocumented)
|
1658
|
+
Diamond_Ornament = 2,
|
1659
|
+
// (undocumented)
|
1660
|
+
Gold_Carved = 7,
|
1661
|
+
// (undocumented)
|
1662
|
+
Gold_Edges = 6,
|
1663
|
+
// (undocumented)
|
1664
|
+
Gold_Rounded = 9,
|
1665
|
+
// (undocumented)
|
1666
|
+
Gold_Wide = 8,
|
1667
|
+
// (undocumented)
|
1668
|
+
Metal_Medium = 10,
|
1669
|
+
// (undocumented)
|
1670
|
+
Metal_Rounded = 13,
|
1671
|
+
// (undocumented)
|
1672
|
+
Metal_Slim = 12,
|
1673
|
+
// (undocumented)
|
1674
|
+
Metal_Wide = 11,
|
1675
|
+
// (undocumented)
|
1676
|
+
Minimal_Black = 15,
|
1677
|
+
// (undocumented)
|
1678
|
+
Minimal_Grey = 4,
|
1679
|
+
// (undocumented)
|
1680
|
+
Minimal_White = 16,
|
1681
|
+
// (undocumented)
|
1682
|
+
Minimal_Wide = 3,
|
1683
|
+
// (undocumented)
|
1684
|
+
None = 22,
|
1685
|
+
// (undocumented)
|
1686
|
+
Pins = 14,
|
1687
|
+
// (undocumented)
|
1688
|
+
Tape = 17,
|
1689
|
+
// (undocumented)
|
1690
|
+
Wood_Slim = 18,
|
1691
|
+
// (undocumented)
|
1692
|
+
Wood_Twigs = 20,
|
1693
|
+
// (undocumented)
|
1694
|
+
Wood_Wide = 19
|
1695
|
+
}
|
1696
|
+
|
1697
|
+
// @public
|
1698
|
+
export class Plane {
|
1699
|
+
constructor(a: number, b: number, c: number, d: number);
|
1700
|
+
// (undocumented)
|
1701
|
+
asArray(): number[];
|
1702
|
+
// (undocumented)
|
1703
|
+
clone(): Plane;
|
1704
|
+
copyFromPoints(point1: Vector3, point2: Vector3, point3: Vector3): Plane;
|
1705
|
+
d: number;
|
1706
|
+
dotCoordinate(point: Vector3): number;
|
1707
|
+
static FromArray(array: ArrayLike<number>): Plane;
|
1708
|
+
static FromPoints(point1: Vector3, point2: Vector3, point3: Vector3): Plane;
|
1709
|
+
static FromPositionAndNormal(origin: Vector3, normal: Vector3): Plane;
|
1710
|
+
// (undocumented)
|
1711
|
+
getClassName(): string;
|
1712
|
+
// (undocumented)
|
1713
|
+
getHashCode(): number;
|
1714
|
+
isFrontFacingTo(direction: Vector3, epsilon: number): boolean;
|
1715
|
+
normal: Vector3;
|
1716
|
+
normalize(): Plane;
|
1717
|
+
signedDistanceTo(point: Vector3): number;
|
1718
|
+
static SignedDistanceToPlaneFromPositionAndNormal(origin: Vector3, normal: Vector3, point: Vector3): number;
|
1719
|
+
transform(transformation: Matrix): Plane;
|
1720
|
+
}
|
1721
|
+
|
1722
|
+
// @public (undocumented)
|
1723
|
+
export class PlaneShape extends Shape {
|
1724
|
+
height: number;
|
1725
|
+
uvs?: number[];
|
1726
|
+
width: number;
|
1727
|
+
}
|
1728
|
+
|
1729
|
+
// @public (undocumented)
|
1730
|
+
export class PointerEvent<GlobalInputEventResult> {
|
1731
|
+
constructor(payload: GlobalInputEventResult);
|
1732
|
+
// (undocumented)
|
1733
|
+
readonly payload: GlobalInputEventResult;
|
1734
|
+
}
|
1735
|
+
|
1736
|
+
// @public (undocumented)
|
1737
|
+
export class PointerEventComponent {
|
1738
|
+
constructor(callback: (event: LocalActionButtonEvent) => void);
|
1739
|
+
// (undocumented)
|
1740
|
+
readonly callback: (event: LocalActionButtonEvent) => void;
|
1741
|
+
}
|
1742
|
+
|
1743
|
+
// @public (undocumented)
|
1744
|
+
export class PointerEventSystem implements ISystem {
|
1745
|
+
// (undocumented)
|
1746
|
+
activate(engine: Engine): void;
|
1747
|
+
// (undocumented)
|
1748
|
+
deactivate(): void;
|
1749
|
+
}
|
1750
|
+
|
1751
|
+
// @public (undocumented)
|
1752
|
+
export type ProfileForRenderer = {
|
1753
|
+
userId: string;
|
1754
|
+
name: string;
|
1755
|
+
description: string;
|
1756
|
+
email: string;
|
1757
|
+
avatar: AvatarForRenderer;
|
1758
|
+
snapshots: {
|
1759
|
+
face256: string;
|
1760
|
+
body: string;
|
1761
|
+
};
|
1762
|
+
version: number;
|
1763
|
+
hasConnectedWeb3: boolean;
|
1764
|
+
updatedAt?: number;
|
1765
|
+
createdAt?: number;
|
1766
|
+
parcelsWithAccess?: ParcelsWithAccess;
|
1767
|
+
};
|
1768
|
+
|
1769
|
+
// @public
|
1770
|
+
export class Quaternion implements EcsMathReadOnlyQuaternion {
|
1771
|
+
constructor(
|
1772
|
+
x?: number,
|
1773
|
+
y?: number,
|
1774
|
+
z?: number,
|
1775
|
+
w?: number);
|
1776
|
+
// @internal
|
1777
|
+
add(other: Quaternion): Quaternion;
|
1778
|
+
// @internal
|
1779
|
+
addInPlace(other: Quaternion): Quaternion;
|
1780
|
+
static Angle(quat1: EcsMathReadOnlyQuaternion, quat2: EcsMathReadOnlyQuaternion): number;
|
1781
|
+
// (undocumented)
|
1782
|
+
angleAxis(degress: number, axis: Vector3): Quaternion;
|
1783
|
+
static AreClose(quat0: EcsMathReadOnlyQuaternion, quat1: EcsMathReadOnlyQuaternion): boolean;
|
1784
|
+
asArray(): number[];
|
1785
|
+
clone(): Quaternion;
|
1786
|
+
conjugate(): Quaternion;
|
1787
|
+
conjugateInPlace(): Quaternion;
|
1788
|
+
conjugateToRef(ref: Quaternion): Quaternion;
|
1789
|
+
copyFrom(other: EcsMathReadOnlyQuaternion): Quaternion;
|
1790
|
+
copyFromFloats(x: number, y: number, z: number, w: number): Quaternion;
|
1791
|
+
static Dot(left: EcsMathReadOnlyQuaternion, right: EcsMathReadOnlyQuaternion): number;
|
1792
|
+
equals(otherQuaternion: EcsMathReadOnlyQuaternion): boolean;
|
1793
|
+
static Euler(x: number, y: number, z: number): Quaternion;
|
1794
|
+
set eulerAngles(euler: Vector3);
|
1795
|
+
get eulerAngles(): Vector3;
|
1796
|
+
static FromArray(array: ArrayLike<number>, offset?: number): Quaternion;
|
1797
|
+
static FromEulerAnglesRef(x: number, y: number, z: number, result: Quaternion): void;
|
1798
|
+
static FromRotationMatrix(matrix: Matrix): Quaternion;
|
1799
|
+
fromRotationMatrix(matrix: Matrix): Quaternion;
|
1800
|
+
static FromRotationMatrixToRef(matrix: Matrix, result: Quaternion): void;
|
1801
|
+
static FromToRotation(from: Vector3, to: Vector3, up?: Vector3): Quaternion;
|
1802
|
+
getClassName(): string;
|
1803
|
+
getHashCode(): number;
|
1804
|
+
static Hermite(value1: EcsMathReadOnlyQuaternion, tangent1: EcsMathReadOnlyQuaternion, value2: EcsMathReadOnlyQuaternion, tangent2: EcsMathReadOnlyQuaternion, amount: number): Quaternion;
|
1805
|
+
static get Identity(): Quaternion;
|
1806
|
+
static Inverse(q: Quaternion): Quaternion;
|
1807
|
+
static IsIdentity(quaternion: EcsMathReadOnlyQuaternion): boolean;
|
1808
|
+
get length(): number;
|
1809
|
+
get lengthSquared(): number;
|
1810
|
+
static LookRotation(forward: Vector3, up?: Vector3): Quaternion;
|
1811
|
+
multiply(q1: EcsMathReadOnlyQuaternion): Quaternion;
|
1812
|
+
multiplyInPlace(q1: EcsMathReadOnlyQuaternion): Quaternion;
|
1813
|
+
multiplyToRef(q1: EcsMathReadOnlyQuaternion, result: Quaternion): Quaternion;
|
1814
|
+
normalize(): Quaternion;
|
1815
|
+
get normalized(): Quaternion;
|
1816
|
+
static RotateTowards(from: EcsMathReadOnlyQuaternion, to: Quaternion, maxDegreesDelta: number): Quaternion;
|
1817
|
+
static RotationAlphaBetaGamma(alpha: number, beta: number, gamma: number): Quaternion;
|
1818
|
+
static RotationAlphaBetaGammaToRef(alpha: number, beta: number, gamma: number, result: Quaternion): void;
|
1819
|
+
static RotationAxis(axis: Vector3, angle: number): Quaternion;
|
1820
|
+
static RotationAxisToRef(axis: Vector3, angle: number, result: Quaternion): Quaternion;
|
1821
|
+
static RotationQuaternionFromAxis(axis1: Vector3, axis2: Vector3, axis3: Vector3): Quaternion;
|
1822
|
+
static RotationQuaternionFromAxisToRef(axis1: Vector3, axis2: Vector3, axis3: Vector3, ref: Quaternion): void;
|
1823
|
+
static RotationYawPitchRoll(yaw: number, pitch: number, roll: number): Quaternion;
|
1824
|
+
static RotationYawPitchRollToRef(yaw: number, pitch: number, roll: number, result: Quaternion): void;
|
1825
|
+
scale(value: number): Quaternion;
|
1826
|
+
scaleAndAddToRef(scale: number, result: Quaternion): Quaternion;
|
1827
|
+
scaleInPlace(value: number): Quaternion;
|
1828
|
+
scaleToRef(scale: number, result: Quaternion): Quaternion;
|
1829
|
+
set(x: number, y: number, z: number, w: number): Quaternion;
|
1830
|
+
setEuler(x: number, y: number, z: number): Quaternion;
|
1831
|
+
setFromToRotation(from: Vector3, to: Vector3, up?: Vector3): void;
|
1832
|
+
static Slerp(left: EcsMathReadOnlyQuaternion, right: EcsMathReadOnlyQuaternion, amount: number): Quaternion;
|
1833
|
+
static SlerpToRef(left: EcsMathReadOnlyQuaternion, right: EcsMathReadOnlyQuaternion, amount: number, result: Quaternion): void;
|
1834
|
+
subtract(other: Quaternion): Quaternion;
|
1835
|
+
toRotationMatrix(result: Matrix): Quaternion;
|
1836
|
+
toString(): string;
|
1837
|
+
w: number;
|
1838
|
+
x: number;
|
1839
|
+
y: number;
|
1840
|
+
z: number;
|
1841
|
+
static Zero(): Quaternion;
|
1842
|
+
}
|
1843
|
+
|
1844
|
+
// @public (undocumented)
|
1845
|
+
export type QueryType = 'HitFirst' | 'HitAll' | 'HitFirstAvatar' | 'HitAllAvatars';
|
1846
|
+
|
1847
|
+
// @public
|
1848
|
+
export const RAD2DEG: number;
|
1849
|
+
|
1850
|
+
// @public (undocumented)
|
1851
|
+
export interface Ray {
|
1852
|
+
// (undocumented)
|
1853
|
+
direction: ReadOnlyVector3;
|
1854
|
+
// (undocumented)
|
1855
|
+
distance: number;
|
1856
|
+
// (undocumented)
|
1857
|
+
origin: ReadOnlyVector3;
|
1858
|
+
}
|
1859
|
+
|
1860
|
+
// @public (undocumented)
|
1861
|
+
export class RaycastEventSystem implements ISystem {
|
1862
|
+
// (undocumented)
|
1863
|
+
activate(engine: Engine): void;
|
1864
|
+
// (undocumented)
|
1865
|
+
deactivate(): void;
|
1866
|
+
}
|
1867
|
+
|
1868
|
+
// @public (undocumented)
|
1869
|
+
export interface RaycastHit {
|
1870
|
+
// (undocumented)
|
1871
|
+
didHit: boolean;
|
1872
|
+
// (undocumented)
|
1873
|
+
hitNormal: ReadOnlyVector3;
|
1874
|
+
// (undocumented)
|
1875
|
+
hitPoint: ReadOnlyVector3;
|
1876
|
+
// (undocumented)
|
1877
|
+
ray: Ray;
|
1878
|
+
}
|
1879
|
+
|
1880
|
+
// @public (undocumented)
|
1881
|
+
export interface RaycastHitAvatar extends RaycastHit {
|
1882
|
+
// (undocumented)
|
1883
|
+
avatar: BasicAvatarInfo;
|
1884
|
+
}
|
1885
|
+
|
1886
|
+
// @public (undocumented)
|
1887
|
+
export interface RaycastHitAvatars extends RaycastHit {
|
1888
|
+
// (undocumented)
|
1889
|
+
avatars: BasicAvatarInfo[];
|
1890
|
+
}
|
1891
|
+
|
1892
|
+
// @public (undocumented)
|
1893
|
+
export interface RaycastHitEntities extends RaycastHit {
|
1894
|
+
// (undocumented)
|
1895
|
+
entities: RaycastHitEntity[];
|
1896
|
+
}
|
1897
|
+
|
1898
|
+
// @public (undocumented)
|
1899
|
+
export interface RaycastHitEntity extends RaycastHit {
|
1900
|
+
// (undocumented)
|
1901
|
+
entity: HitEntityInfo;
|
1902
|
+
}
|
1903
|
+
|
1904
|
+
// @public (undocumented)
|
1905
|
+
export class RaycastResponse<T> {
|
1906
|
+
constructor(payload: RaycastResponsePayload<T>);
|
1907
|
+
// (undocumented)
|
1908
|
+
readonly payload: RaycastResponsePayload<T>;
|
1909
|
+
}
|
1910
|
+
|
1911
|
+
// @public (undocumented)
|
1912
|
+
export type ReadOnlyColor4 = {
|
1913
|
+
readonly r: number;
|
1914
|
+
readonly g: number;
|
1915
|
+
readonly b: number;
|
1916
|
+
readonly a: number;
|
1917
|
+
};
|
1918
|
+
|
1919
|
+
// @public
|
1920
|
+
export class Scalar {
|
1921
|
+
static Clamp(value: number, min?: number, max?: number): number;
|
1922
|
+
static DeltaAngle(current: number, target: number): number;
|
1923
|
+
static Denormalize(normalized: number, min: number, max: number): number;
|
1924
|
+
static Hermite(value1: number, tangent1: number, value2: number, tangent2: number, amount: number): number;
|
1925
|
+
static InverseLerp(a: number, b: number, value: number): number;
|
1926
|
+
static Lerp(start: number, end: number, amount: number): number;
|
1927
|
+
static LerpAngle(start: number, end: number, amount: number): number;
|
1928
|
+
static Log2(value: number): number;
|
1929
|
+
static MoveTowards(current: number, target: number, maxDelta: number): number;
|
1930
|
+
static MoveTowardsAngle(current: number, target: number, maxDelta: number): number;
|
1931
|
+
static Normalize(value: number, min: number, max: number): number;
|
1932
|
+
static NormalizeRadians(angle: number): number;
|
1933
|
+
static PercentToRange(percent: number, min: number, max: number): number;
|
1934
|
+
static PingPong(tx: number, length: number): number;
|
1935
|
+
static RandomRange(min: number, max: number): number;
|
1936
|
+
static RangeToPercent(num: number, min: number, max: number): number;
|
1937
|
+
static Repeat(value: number, length: number): number;
|
1938
|
+
static Sign(value: number): number;
|
1939
|
+
static SmoothStep(from: number, to: number, tx: number): number;
|
1940
|
+
static ToHex(i: number): string;
|
1941
|
+
static TwoPi: number;
|
1942
|
+
static WithinEpsilon(a: number, b: number, epsilon?: number): boolean;
|
1943
|
+
}
|
1944
|
+
|
1945
|
+
// @public (undocumented)
|
1946
|
+
export class Shape extends ObservableComponent {
|
1947
|
+
isPointerBlocker: boolean;
|
1948
|
+
visible: boolean;
|
1949
|
+
withCollisions: boolean;
|
1950
|
+
}
|
1951
|
+
|
1952
|
+
// @public
|
1953
|
+
export class Size implements ISize {
|
1954
|
+
constructor(width: number, height: number);
|
1955
|
+
add(otherSize: Size): Size;
|
1956
|
+
clone(): Size;
|
1957
|
+
copyFrom(src: Size): void;
|
1958
|
+
copyFromFloats(width: number, height: number): Size;
|
1959
|
+
equals(other: Size): boolean;
|
1960
|
+
getClassName(): string;
|
1961
|
+
getHashCode(): number;
|
1962
|
+
height: number;
|
1963
|
+
static Lerp(start: Size, end: Size, amount: number): Size;
|
1964
|
+
multiplyByFloats(w: number, h: number): Size;
|
1965
|
+
set(width: number, height: number): Size;
|
1966
|
+
subtract(otherSize: Size): Size;
|
1967
|
+
get surface(): number;
|
1968
|
+
toString(): string;
|
1969
|
+
width: number;
|
1970
|
+
static Zero(): Size;
|
1971
|
+
}
|
1972
|
+
|
1973
|
+
// @public
|
1974
|
+
export enum Space {
|
1975
|
+
BONE = 2,
|
1976
|
+
LOCAL = 0,
|
1977
|
+
WORLD = 1
|
1978
|
+
}
|
1979
|
+
|
1980
|
+
// @public (undocumented)
|
1981
|
+
export class SphereShape extends Shape {
|
1982
|
+
}
|
1983
|
+
|
1984
|
+
// @public (undocumented)
|
1985
|
+
export class Subscription {
|
1986
|
+
constructor(fn: (e: LocalActionButtonEvent) => void, useRaycast: boolean);
|
1987
|
+
// (undocumented)
|
1988
|
+
fn: (e: LocalActionButtonEvent) => void;
|
1989
|
+
// (undocumented)
|
1990
|
+
useRaycast: boolean;
|
1991
|
+
}
|
1992
|
+
|
1993
|
+
// @public (undocumented)
|
1994
|
+
export type TaskResult<T> = Promise<T> & {
|
1995
|
+
isComplete: boolean;
|
1996
|
+
didFail?: boolean;
|
1997
|
+
error?: Error;
|
1998
|
+
result?: T;
|
1999
|
+
};
|
2000
|
+
|
2001
|
+
// @public
|
2002
|
+
export function teleportTo(destination: string): void;
|
2003
|
+
|
2004
|
+
// @public (undocumented)
|
2005
|
+
export class TextShape extends ObservableComponent {
|
2006
|
+
constructor(value?: string);
|
2007
|
+
// (undocumented)
|
2008
|
+
billboard: boolean;
|
2009
|
+
// (undocumented)
|
2010
|
+
color: Color3;
|
2011
|
+
// (undocumented)
|
2012
|
+
font?: Font;
|
2013
|
+
// (undocumented)
|
2014
|
+
fontSize: number;
|
2015
|
+
// (undocumented)
|
2016
|
+
height: number;
|
2017
|
+
// (undocumented)
|
2018
|
+
hTextAlign: string;
|
2019
|
+
// (undocumented)
|
2020
|
+
lineCount: number;
|
2021
|
+
// (undocumented)
|
2022
|
+
lineSpacing: string;
|
2023
|
+
// (undocumented)
|
2024
|
+
opacity: number;
|
2025
|
+
// (undocumented)
|
2026
|
+
outlineColor: Color3;
|
2027
|
+
// (undocumented)
|
2028
|
+
outlineWidth: number;
|
2029
|
+
// (undocumented)
|
2030
|
+
paddingBottom: number;
|
2031
|
+
// (undocumented)
|
2032
|
+
paddingLeft: number;
|
2033
|
+
// (undocumented)
|
2034
|
+
paddingRight: number;
|
2035
|
+
// (undocumented)
|
2036
|
+
paddingTop: number;
|
2037
|
+
// (undocumented)
|
2038
|
+
shadowBlur: number;
|
2039
|
+
// (undocumented)
|
2040
|
+
shadowColor: Color3;
|
2041
|
+
// (undocumented)
|
2042
|
+
shadowOffsetX: number;
|
2043
|
+
// (undocumented)
|
2044
|
+
shadowOffsetY: number;
|
2045
|
+
// (undocumented)
|
2046
|
+
textWrapping: boolean;
|
2047
|
+
// (undocumented)
|
2048
|
+
value: string;
|
2049
|
+
// (undocumented)
|
2050
|
+
visible: boolean;
|
2051
|
+
// (undocumented)
|
2052
|
+
vTextAlign: string;
|
2053
|
+
// (undocumented)
|
2054
|
+
width: number;
|
2055
|
+
}
|
2056
|
+
|
2057
|
+
// @public (undocumented)
|
2058
|
+
export class Texture extends ObservableComponent {
|
2059
|
+
constructor(src: string, opts?: Partial<Pick<Texture, 'samplingMode' | 'wrap' | 'hasAlpha'>>);
|
2060
|
+
readonly hasAlpha: boolean;
|
2061
|
+
readonly samplingMode: number;
|
2062
|
+
// (undocumented)
|
2063
|
+
readonly src: string;
|
2064
|
+
readonly wrap: number;
|
2065
|
+
}
|
2066
|
+
|
2067
|
+
// @public
|
2068
|
+
export const ToGammaSpace: number;
|
2069
|
+
|
2070
|
+
// @public
|
2071
|
+
export const ToLinearSpace = 2.2;
|
2072
|
+
|
2073
|
+
// @public (undocumented)
|
2074
|
+
export type TranformConstructorArgs = TransformConstructorArgs;
|
2075
|
+
|
2076
|
+
// @public (undocumented)
|
2077
|
+
export class Transform extends ObservableComponent {
|
2078
|
+
constructor(args?: TransformConstructorArgs);
|
2079
|
+
get eulerAngles(): Vector3;
|
2080
|
+
lookAt(target: Vector3, worldUp?: Vector3): this;
|
2081
|
+
// (undocumented)
|
2082
|
+
position: Vector3;
|
2083
|
+
rotate(axis: Vector3, angle: number): this;
|
2084
|
+
// (undocumented)
|
2085
|
+
rotation: Quaternion;
|
2086
|
+
// (undocumented)
|
2087
|
+
scale: Vector3;
|
2088
|
+
translate(vec: Vector3): this;
|
2089
|
+
}
|
2090
|
+
|
2091
|
+
// @public (undocumented)
|
2092
|
+
export type TransformConstructorArgs = {
|
2093
|
+
position?: Vector3;
|
2094
|
+
rotation?: Quaternion;
|
2095
|
+
scale?: Vector3;
|
2096
|
+
};
|
2097
|
+
|
2098
|
+
// @public (undocumented)
|
2099
|
+
export enum TransparencyMode {
|
2100
|
+
// (undocumented)
|
2101
|
+
ALPHA_BLEND = 2,
|
2102
|
+
// (undocumented)
|
2103
|
+
ALPHA_TEST = 1,
|
2104
|
+
// (undocumented)
|
2105
|
+
ALPHA_TEST_AND_BLEND = 3,
|
2106
|
+
// (undocumented)
|
2107
|
+
AUTO = 4,
|
2108
|
+
// (undocumented)
|
2109
|
+
OPAQUE = 0
|
2110
|
+
}
|
2111
|
+
|
2112
|
+
// @public (undocumented)
|
2113
|
+
export class UIButton extends UIShape {
|
2114
|
+
// (undocumented)
|
2115
|
+
background: Color4;
|
2116
|
+
// (undocumented)
|
2117
|
+
color: Color4;
|
2118
|
+
// (undocumented)
|
2119
|
+
cornerRadius: number;
|
2120
|
+
// (undocumented)
|
2121
|
+
fontSize: number;
|
2122
|
+
// (undocumented)
|
2123
|
+
fontWeight: string;
|
2124
|
+
// (undocumented)
|
2125
|
+
paddingBottom: number;
|
2126
|
+
// (undocumented)
|
2127
|
+
paddingLeft: number;
|
2128
|
+
// (undocumented)
|
2129
|
+
paddingRight: number;
|
2130
|
+
// (undocumented)
|
2131
|
+
paddingTop: number;
|
2132
|
+
// (undocumented)
|
2133
|
+
shadowBlur: number;
|
2134
|
+
// (undocumented)
|
2135
|
+
shadowColor: Color4;
|
2136
|
+
// (undocumented)
|
2137
|
+
shadowOffsetX: number;
|
2138
|
+
// (undocumented)
|
2139
|
+
shadowOffsetY: number;
|
2140
|
+
// (undocumented)
|
2141
|
+
text: string;
|
2142
|
+
// (undocumented)
|
2143
|
+
thickness: number;
|
2144
|
+
}
|
2145
|
+
|
2146
|
+
// @public (undocumented)
|
2147
|
+
export class UICanvas extends UIShape {
|
2148
|
+
constructor();
|
2149
|
+
}
|
2150
|
+
|
2151
|
+
// @public (undocumented)
|
2152
|
+
export class UIContainerRect extends UIShape {
|
2153
|
+
// (undocumented)
|
2154
|
+
alignmentUsesSize: boolean;
|
2155
|
+
// (undocumented)
|
2156
|
+
color: Color4;
|
2157
|
+
// (undocumented)
|
2158
|
+
thickness: number;
|
2159
|
+
}
|
2160
|
+
|
2161
|
+
// @public (undocumented)
|
2162
|
+
export class UIContainerStack extends UIShape {
|
2163
|
+
// (undocumented)
|
2164
|
+
adaptHeight: boolean;
|
2165
|
+
// (undocumented)
|
2166
|
+
adaptWidth: boolean;
|
2167
|
+
// (undocumented)
|
2168
|
+
color: Color4;
|
2169
|
+
// (undocumented)
|
2170
|
+
spacing: number;
|
2171
|
+
// (undocumented)
|
2172
|
+
stackOrientation: UIStackOrientation;
|
2173
|
+
}
|
2174
|
+
|
2175
|
+
// @public (undocumented)
|
2176
|
+
export class UIImage extends UIShape {
|
2177
|
+
constructor(parent: UIShape, source: Texture | AvatarTexture);
|
2178
|
+
// (undocumented)
|
2179
|
+
onClick: OnClick | null;
|
2180
|
+
// (undocumented)
|
2181
|
+
paddingBottom: number;
|
2182
|
+
// (undocumented)
|
2183
|
+
paddingLeft: number;
|
2184
|
+
// (undocumented)
|
2185
|
+
paddingRight: number;
|
2186
|
+
// (undocumented)
|
2187
|
+
paddingTop: number;
|
2188
|
+
// (undocumented)
|
2189
|
+
sizeInPixels: boolean;
|
2190
|
+
// (undocumented)
|
2191
|
+
source?: Texture | AvatarTexture;
|
2192
|
+
// (undocumented)
|
2193
|
+
sourceHeight: number;
|
2194
|
+
// (undocumented)
|
2195
|
+
sourceLeft: number;
|
2196
|
+
// (undocumented)
|
2197
|
+
sourceTop: number;
|
2198
|
+
// (undocumented)
|
2199
|
+
sourceWidth: number;
|
2200
|
+
}
|
2201
|
+
|
2202
|
+
// @public (undocumented)
|
2203
|
+
export class UIInputText extends UIShape {
|
2204
|
+
constructor(parent: UIShape | null);
|
2205
|
+
// (undocumented)
|
2206
|
+
color: Color4;
|
2207
|
+
// (undocumented)
|
2208
|
+
focusedBackground: Color4;
|
2209
|
+
// (undocumented)
|
2210
|
+
font?: Font;
|
2211
|
+
// (undocumented)
|
2212
|
+
fontSize: number;
|
2213
|
+
// (undocumented)
|
2214
|
+
hTextAlign: string;
|
2215
|
+
// (undocumented)
|
2216
|
+
margin: number;
|
2217
|
+
// (undocumented)
|
2218
|
+
onBlur: OnBlur | null;
|
2219
|
+
// (undocumented)
|
2220
|
+
onChanged: OnChanged | null;
|
2221
|
+
// (undocumented)
|
2222
|
+
onFocus: OnFocus | null;
|
2223
|
+
// (undocumented)
|
2224
|
+
onTextSubmit: OnTextSubmit | null;
|
2225
|
+
// (undocumented)
|
2226
|
+
outlineColor: Color4;
|
2227
|
+
// (undocumented)
|
2228
|
+
outlineWidth: number;
|
2229
|
+
// (undocumented)
|
2230
|
+
paddingBottom: number;
|
2231
|
+
// (undocumented)
|
2232
|
+
paddingLeft: number;
|
2233
|
+
// (undocumented)
|
2234
|
+
paddingRight: number;
|
2235
|
+
// (undocumented)
|
2236
|
+
paddingTop: number;
|
2237
|
+
// (undocumented)
|
2238
|
+
placeholder: string;
|
2239
|
+
// (undocumented)
|
2240
|
+
shadowBlur: number;
|
2241
|
+
// (undocumented)
|
2242
|
+
shadowColor: Color4;
|
2243
|
+
// (undocumented)
|
2244
|
+
shadowOffsetX: number;
|
2245
|
+
// (undocumented)
|
2246
|
+
shadowOffsetY: number;
|
2247
|
+
// (undocumented)
|
2248
|
+
textWrapping: boolean;
|
2249
|
+
// (undocumented)
|
2250
|
+
value: string;
|
2251
|
+
// (undocumented)
|
2252
|
+
vTextAlign: string;
|
2253
|
+
}
|
2254
|
+
|
2255
|
+
// @public (undocumented)
|
2256
|
+
export class UIScrollRect extends UIShape {
|
2257
|
+
// (undocumented)
|
2258
|
+
backgroundColor: Color4;
|
2259
|
+
// (undocumented)
|
2260
|
+
isHorizontal: boolean;
|
2261
|
+
// (undocumented)
|
2262
|
+
isVertical: boolean;
|
2263
|
+
// (undocumented)
|
2264
|
+
onChanged: OnChanged | null;
|
2265
|
+
// (undocumented)
|
2266
|
+
paddingBottom: number;
|
2267
|
+
// (undocumented)
|
2268
|
+
paddingLeft: number;
|
2269
|
+
// (undocumented)
|
2270
|
+
paddingRight: number;
|
2271
|
+
// (undocumented)
|
2272
|
+
paddingTop: number;
|
2273
|
+
// (undocumented)
|
2274
|
+
valueX: number;
|
2275
|
+
// (undocumented)
|
2276
|
+
valueY: number;
|
2277
|
+
}
|
2278
|
+
|
2279
|
+
// @public (undocumented)
|
2280
|
+
export abstract class UIShape extends ObservableComponent {
|
2281
|
+
constructor(parent: UIShape | null);
|
2282
|
+
// (undocumented)
|
2283
|
+
hAlign: string;
|
2284
|
+
// (undocumented)
|
2285
|
+
height: string | number;
|
2286
|
+
// (undocumented)
|
2287
|
+
isPointerBlocker: boolean;
|
2288
|
+
name: string | null;
|
2289
|
+
// (undocumented)
|
2290
|
+
opacity: number;
|
2291
|
+
// (undocumented)
|
2292
|
+
get parent(): UIShape | undefined;
|
2293
|
+
// (undocumented)
|
2294
|
+
positionX: string | number;
|
2295
|
+
// (undocumented)
|
2296
|
+
positionY: string | number;
|
2297
|
+
// (undocumented)
|
2298
|
+
vAlign: string;
|
2299
|
+
// (undocumented)
|
2300
|
+
visible: boolean;
|
2301
|
+
// (undocumented)
|
2302
|
+
width: string | number;
|
2303
|
+
}
|
2304
|
+
|
2305
|
+
// @public (undocumented)
|
2306
|
+
export enum UIStackOrientation {
|
2307
|
+
// (undocumented)
|
2308
|
+
HORIZONTAL = 1,
|
2309
|
+
// (undocumented)
|
2310
|
+
VERTICAL = 0
|
2311
|
+
}
|
2312
|
+
|
2313
|
+
// @public (undocumented)
|
2314
|
+
export class UIText extends UIShape {
|
2315
|
+
// (undocumented)
|
2316
|
+
adaptHeight: boolean;
|
2317
|
+
// (undocumented)
|
2318
|
+
adaptWidth: boolean;
|
2319
|
+
// (undocumented)
|
2320
|
+
color: Color4;
|
2321
|
+
// (undocumented)
|
2322
|
+
font?: Font;
|
2323
|
+
// (undocumented)
|
2324
|
+
fontAutoSize: boolean;
|
2325
|
+
// (undocumented)
|
2326
|
+
fontSize: number;
|
2327
|
+
// (undocumented)
|
2328
|
+
hTextAlign: string;
|
2329
|
+
// (undocumented)
|
2330
|
+
lineCount: number;
|
2331
|
+
// (undocumented)
|
2332
|
+
lineSpacing: number;
|
2333
|
+
// (undocumented)
|
2334
|
+
outlineColor: Color4;
|
2335
|
+
// (undocumented)
|
2336
|
+
outlineWidth: number;
|
2337
|
+
// (undocumented)
|
2338
|
+
paddingBottom: number;
|
2339
|
+
// (undocumented)
|
2340
|
+
paddingLeft: number;
|
2341
|
+
// (undocumented)
|
2342
|
+
paddingRight: number;
|
2343
|
+
// (undocumented)
|
2344
|
+
paddingTop: number;
|
2345
|
+
// (undocumented)
|
2346
|
+
shadowBlur: number;
|
2347
|
+
// (undocumented)
|
2348
|
+
shadowColor: Color4;
|
2349
|
+
// (undocumented)
|
2350
|
+
shadowOffsetX: number;
|
2351
|
+
// (undocumented)
|
2352
|
+
shadowOffsetY: number;
|
2353
|
+
// (undocumented)
|
2354
|
+
textWrapping: boolean;
|
2355
|
+
// (undocumented)
|
2356
|
+
value: string;
|
2357
|
+
// (undocumented)
|
2358
|
+
vTextAlign: string;
|
2359
|
+
}
|
2360
|
+
|
2361
|
+
// @public (undocumented)
|
2362
|
+
export class UIValue {
|
2363
|
+
constructor(value: string | number);
|
2364
|
+
// (undocumented)
|
2365
|
+
toString(): string;
|
2366
|
+
// (undocumented)
|
2367
|
+
type: UIValueType;
|
2368
|
+
// (undocumented)
|
2369
|
+
value: number;
|
2370
|
+
}
|
2371
|
+
|
2372
|
+
// @public (undocumented)
|
2373
|
+
export enum UIValueType {
|
2374
|
+
// (undocumented)
|
2375
|
+
PERCENT = 0,
|
2376
|
+
// (undocumented)
|
2377
|
+
PIXELS = 1
|
2378
|
+
}
|
2379
|
+
|
2380
|
+
// @public (undocumented)
|
2381
|
+
export class UUIDEvent<T = any> {
|
2382
|
+
constructor(uuid: string, payload: T);
|
2383
|
+
// (undocumented)
|
2384
|
+
readonly payload: T;
|
2385
|
+
// (undocumented)
|
2386
|
+
readonly uuid: string;
|
2387
|
+
}
|
2388
|
+
|
2389
|
+
// @public (undocumented)
|
2390
|
+
export class UUIDEventSystem implements ISystem {
|
2391
|
+
// (undocumented)
|
2392
|
+
activate(engine: Engine): void;
|
2393
|
+
// (undocumented)
|
2394
|
+
deactivate(): void;
|
2395
|
+
// (undocumented)
|
2396
|
+
handlerMap: {
|
2397
|
+
[uuid: string]: OnUUIDEvent<any>;
|
2398
|
+
};
|
2399
|
+
// (undocumented)
|
2400
|
+
onAddEntity(entity: IEntity): void;
|
2401
|
+
// (undocumented)
|
2402
|
+
onRemoveEntity(entity: IEntity): void;
|
2403
|
+
}
|
2404
|
+
|
2405
|
+
// @public
|
2406
|
+
export class Vector2 implements EcsMathReadOnlyVector2 {
|
2407
|
+
constructor(
|
2408
|
+
x?: number,
|
2409
|
+
y?: number);
|
2410
|
+
static Add(vector1: EcsMathReadOnlyVector2, vector2: EcsMathReadOnlyVector2): Vector2;
|
2411
|
+
add(otherVector: EcsMathReadOnlyVector2): Vector2;
|
2412
|
+
addInPlace(otherVector: EcsMathReadOnlyVector2): Vector2;
|
2413
|
+
addToRef(otherVector: EcsMathReadOnlyVector2, result: Vector2): Vector2;
|
2414
|
+
addVector3(otherVector: EcsMathReadOnlyVector2): Vector2;
|
2415
|
+
asArray(): number[];
|
2416
|
+
static CatmullRom(value1: EcsMathReadOnlyVector2, value2: EcsMathReadOnlyVector2, value3: EcsMathReadOnlyVector2, value4: EcsMathReadOnlyVector2, amount: number): Vector2;
|
2417
|
+
static Center(value1: EcsMathReadOnlyVector2, value2: EcsMathReadOnlyVector2): Vector2;
|
2418
|
+
static Clamp(value: EcsMathReadOnlyVector2, min: EcsMathReadOnlyVector2, max: EcsMathReadOnlyVector2): Vector2;
|
2419
|
+
clone(): Vector2;
|
2420
|
+
copyFrom(source: EcsMathReadOnlyVector2): Vector2;
|
2421
|
+
copyFromFloats(x: number, y: number): Vector2;
|
2422
|
+
static Distance(value1: Vector2, value2: Vector2): number;
|
2423
|
+
static DistanceOfPointFromSegment(p: Vector2, segA: Vector2, segB: Vector2): number;
|
2424
|
+
static DistanceSquared(value1: EcsMathReadOnlyVector2, value2: EcsMathReadOnlyVector2): number;
|
2425
|
+
divide(otherVector: EcsMathReadOnlyVector2): Vector2;
|
2426
|
+
divideInPlace(otherVector: EcsMathReadOnlyVector2): Vector2;
|
2427
|
+
divideToRef(otherVector: EcsMathReadOnlyVector2, result: Vector2): Vector2;
|
2428
|
+
static Dot(left: EcsMathReadOnlyVector2, right: EcsMathReadOnlyVector2): number;
|
2429
|
+
equals(otherVector: EcsMathReadOnlyVector2): boolean;
|
2430
|
+
equalsWithEpsilon(otherVector: EcsMathReadOnlyVector2, epsilon?: number): boolean;
|
2431
|
+
floor(): Vector2;
|
2432
|
+
fract(): Vector2;
|
2433
|
+
static FromArray(array: ArrayLike<number>, offset?: number): Vector2;
|
2434
|
+
static FromArrayToRef(array: ArrayLike<number>, offset: number, result: Vector2): void;
|
2435
|
+
getClassName(): string;
|
2436
|
+
getHashCode(): number;
|
2437
|
+
static Hermite(value1: EcsMathReadOnlyVector2, tangent1: EcsMathReadOnlyVector2, value2: EcsMathReadOnlyVector2, tangent2: EcsMathReadOnlyVector2, amount: number): Vector2;
|
2438
|
+
length(): number;
|
2439
|
+
lengthSquared(): number;
|
2440
|
+
static Lerp(start: EcsMathReadOnlyVector2, end: EcsMathReadOnlyVector2, amount: number): Vector2;
|
2441
|
+
static Maximize(left: EcsMathReadOnlyVector2, right: EcsMathReadOnlyVector2): Vector2;
|
2442
|
+
static Minimize(left: EcsMathReadOnlyVector2, right: EcsMathReadOnlyVector2): Vector2;
|
2443
|
+
multiply(otherVector: EcsMathReadOnlyVector2): Vector2;
|
2444
|
+
multiplyByFloats(x: number, y: number): Vector2;
|
2445
|
+
multiplyInPlace(otherVector: EcsMathReadOnlyVector2): Vector2;
|
2446
|
+
multiplyToRef(otherVector: EcsMathReadOnlyVector2, result: Vector2): Vector2;
|
2447
|
+
negate(): Vector2;
|
2448
|
+
static Normalize(vector: EcsMathReadOnlyVector2): Vector2;
|
2449
|
+
normalize(): Vector2;
|
2450
|
+
static One(): Vector2;
|
2451
|
+
static PointInTriangle(p: EcsMathReadOnlyVector2, p0: EcsMathReadOnlyVector2, p1: EcsMathReadOnlyVector2, p2: EcsMathReadOnlyVector2): boolean;
|
2452
|
+
scale(scale: number): Vector2;
|
2453
|
+
scaleAndAddToRef(scale: number, result: Vector2): Vector2;
|
2454
|
+
scaleInPlace(scale: number): Vector2;
|
2455
|
+
scaleToRef(scale: number, result: Vector2): Vector2;
|
2456
|
+
set(x: number, y: number): Vector2;
|
2457
|
+
subtract(otherVector: EcsMathReadOnlyVector2): Vector2;
|
2458
|
+
subtractInPlace(otherVector: EcsMathReadOnlyVector2): Vector2;
|
2459
|
+
subtractToRef(otherVector: EcsMathReadOnlyVector2, result: Vector2): Vector2;
|
2460
|
+
toArray(array: FloatArray, index?: number): Vector2;
|
2461
|
+
toString(): string;
|
2462
|
+
static Transform(vector: Vector2, transformation: Matrix): Vector2;
|
2463
|
+
static TransformToRef(vector: EcsMathReadOnlyVector2, transformation: Matrix, result: Vector2): void;
|
2464
|
+
x: number;
|
2465
|
+
y: number;
|
2466
|
+
static Zero(): Vector2;
|
2467
|
+
}
|
2468
|
+
|
2469
|
+
// @public
|
2470
|
+
export class Vector3 implements EcsMathReadOnlyVector3 {
|
2471
|
+
constructor(
|
2472
|
+
x?: number,
|
2473
|
+
y?: number,
|
2474
|
+
z?: number);
|
2475
|
+
static Add(vector1: EcsMathReadOnlyVector3, vector2: EcsMathReadOnlyVector3): Vector3;
|
2476
|
+
add(otherVector: EcsMathReadOnlyVector3): Vector3;
|
2477
|
+
addInPlace(otherVector: EcsMathReadOnlyVector3): Vector3;
|
2478
|
+
addInPlaceFromFloats(x: number, y: number, z: number): Vector3;
|
2479
|
+
addToRef(otherVector: EcsMathReadOnlyVector3, result: Vector3): Vector3;
|
2480
|
+
applyMatrix4(matrix: Matrix): void;
|
2481
|
+
applyMatrix4ToRef(matrix: Matrix, result: Vector3): Vector3;
|
2482
|
+
asArray(): number[];
|
2483
|
+
static Backward(): Vector3;
|
2484
|
+
static CatmullRom(value1: EcsMathReadOnlyVector3, value2: EcsMathReadOnlyVector3, value3: EcsMathReadOnlyVector3, value4: EcsMathReadOnlyVector3, amount: number): Vector3;
|
2485
|
+
static Center(value1: EcsMathReadOnlyVector3, value2: EcsMathReadOnlyVector3): Vector3;
|
2486
|
+
static Clamp(value: EcsMathReadOnlyVector3, min: EcsMathReadOnlyVector3, max: EcsMathReadOnlyVector3): Vector3;
|
2487
|
+
static ClampToRef(value: EcsMathReadOnlyVector3, min: EcsMathReadOnlyVector3, max: EcsMathReadOnlyVector3, result: Vector3): void;
|
2488
|
+
clone(): Vector3;
|
2489
|
+
copyFrom(source: EcsMathReadOnlyVector3): Vector3;
|
2490
|
+
copyFromFloats(x: number, y: number, z: number): Vector3;
|
2491
|
+
static Cross(left: EcsMathReadOnlyVector3, right: EcsMathReadOnlyVector3): Vector3;
|
2492
|
+
static CrossToRef(left: EcsMathReadOnlyVector3, right: EcsMathReadOnlyVector3, result: Vector3): void;
|
2493
|
+
static Distance(value1: EcsMathReadOnlyVector3, value2: EcsMathReadOnlyVector3): number;
|
2494
|
+
static DistanceSquared(value1: EcsMathReadOnlyVector3, value2: EcsMathReadOnlyVector3): number;
|
2495
|
+
divide(otherVector: EcsMathReadOnlyVector3): Vector3;
|
2496
|
+
divideInPlace(otherVector: EcsMathReadOnlyVector3): Vector3;
|
2497
|
+
divideToRef(otherVector: EcsMathReadOnlyVector3, result: Vector3): Vector3;
|
2498
|
+
static Dot(left: EcsMathReadOnlyVector3, right: EcsMathReadOnlyVector3): number;
|
2499
|
+
static Down(): Vector3;
|
2500
|
+
equals(otherVector: EcsMathReadOnlyVector3): boolean;
|
2501
|
+
equalsToFloats(x: number, y: number, z: number): boolean;
|
2502
|
+
equalsWithEpsilon(otherVector: EcsMathReadOnlyVector3, epsilon?: number): boolean;
|
2503
|
+
floor(): Vector3;
|
2504
|
+
static Forward(): Vector3;
|
2505
|
+
fract(): Vector3;
|
2506
|
+
static FromArray(array: ArrayLike<number>, offset?: number): Vector3;
|
2507
|
+
static FromArrayToRef(array: ArrayLike<number>, offset: number, result: Vector3): void;
|
2508
|
+
static FromFloatArray(array: FloatArray, offset?: number): Vector3;
|
2509
|
+
static FromFloatArrayToRef(array: FloatArray, offset: number, result: Vector3): void;
|
2510
|
+
static FromFloatsToRef(x: number, y: number, z: number, result: Vector3): void;
|
2511
|
+
static GetAngleBetweenVectors(vector0: Vector3, vector1: Vector3, normal: EcsMathReadOnlyVector3): number;
|
2512
|
+
getClassName(): string;
|
2513
|
+
static GetClipFactor(vector0: EcsMathReadOnlyVector3, vector1: EcsMathReadOnlyVector3, axis: EcsMathReadOnlyVector3, size: number): number;
|
2514
|
+
getHashCode(): number;
|
2515
|
+
static Hermite(value1: EcsMathReadOnlyVector3, tangent1: EcsMathReadOnlyVector3, value2: EcsMathReadOnlyVector3, tangent2: EcsMathReadOnlyVector3, amount: number): Vector3;
|
2516
|
+
get isNonUniform(): boolean;
|
2517
|
+
static Left(): Vector3;
|
2518
|
+
length(): number;
|
2519
|
+
lengthSquared(): number;
|
2520
|
+
static Lerp(start: EcsMathReadOnlyVector3, end: EcsMathReadOnlyVector3, amount: number): Vector3;
|
2521
|
+
static LerpToRef(start: EcsMathReadOnlyVector3, end: EcsMathReadOnlyVector3, amount: number, result: Vector3): void;
|
2522
|
+
static Maximize(left: Vector3, right: Vector3): Vector3;
|
2523
|
+
maximizeInPlace(other: EcsMathReadOnlyVector3): Vector3;
|
2524
|
+
maximizeInPlaceFromFloats(x: number, y: number, z: number): Vector3;
|
2525
|
+
static Minimize(left: EcsMathReadOnlyVector3, right: EcsMathReadOnlyVector3): Vector3;
|
2526
|
+
minimizeInPlace(other: EcsMathReadOnlyVector3): Vector3;
|
2527
|
+
minimizeInPlaceFromFloats(x: number, y: number, z: number): Vector3;
|
2528
|
+
multiply(otherVector: EcsMathReadOnlyVector3): Vector3;
|
2529
|
+
multiplyByFloats(x: number, y: number, z: number): Vector3;
|
2530
|
+
multiplyInPlace(otherVector: EcsMathReadOnlyVector3): Vector3;
|
2531
|
+
multiplyToRef(otherVector: EcsMathReadOnlyVector3, result: Vector3): Vector3;
|
2532
|
+
negate(): Vector3;
|
2533
|
+
static Normalize(vector: Vector3): Vector3;
|
2534
|
+
normalize(): Vector3;
|
2535
|
+
normalizeFromLength(len: number): Vector3;
|
2536
|
+
normalizeToNew(): Vector3;
|
2537
|
+
static NormalizeToRef(vector: Vector3, result: Vector3): void;
|
2538
|
+
normalizeToRef(reference: Vector3): Vector3;
|
2539
|
+
static One(): Vector3;
|
2540
|
+
static Right(): Vector3;
|
2541
|
+
rotate(q: Quaternion): Vector3;
|
2542
|
+
rotateToRef(q: Quaternion, result: Vector3): Vector3;
|
2543
|
+
static RotationFromAxis(axis1: Vector3, axis2: Vector3, axis3: Vector3): Vector3;
|
2544
|
+
static RotationFromAxisToRef(axis1: Vector3, axis2: Vector3, axis3: Vector3, ref: Vector3): void;
|
2545
|
+
scale(scale: number): Vector3;
|
2546
|
+
scaleAndAddToRef(scale: number, result: Vector3): Vector3;
|
2547
|
+
scaleInPlace(scale: number): Vector3;
|
2548
|
+
scaleToRef(scale: number, result: Vector3): Vector3;
|
2549
|
+
set(x: number, y: number, z: number): Vector3;
|
2550
|
+
setAll(v: number): Vector3;
|
2551
|
+
subtract(otherVector: EcsMathReadOnlyVector3): Vector3;
|
2552
|
+
subtractFromFloats(x: number, y: number, z: number): Vector3;
|
2553
|
+
subtractFromFloatsToRef(x: number, y: number, z: number, result: Vector3): Vector3;
|
2554
|
+
subtractInPlace(otherVector: EcsMathReadOnlyVector3): Vector3;
|
2555
|
+
subtractToRef(otherVector: EcsMathReadOnlyVector3, result: Vector3): Vector3;
|
2556
|
+
toArray(array: FloatArray, index?: number): Vector3;
|
2557
|
+
toQuaternion(): Quaternion;
|
2558
|
+
toString(): string;
|
2559
|
+
static TransformCoordinates(vector: EcsMathReadOnlyVector3, transformation: Matrix): Vector3;
|
2560
|
+
static TransformCoordinatesFromFloatsToRef(x: number, y: number, z: number, transformation: Readonly<Matrix>, result: Vector3): void;
|
2561
|
+
static TransformCoordinatesToRef(vector: EcsMathReadOnlyVector3, transformation: Readonly<Matrix>, result: Vector3): void;
|
2562
|
+
static TransformNormal(vector: EcsMathReadOnlyVector3, transformation: Matrix): Vector3;
|
2563
|
+
static TransformNormalFromFloatsToRef(x: number, y: number, z: number, transformation: Readonly<Matrix>, result: Vector3): void;
|
2564
|
+
static TransformNormalToRef(vector: EcsMathReadOnlyVector3, transformation: Readonly<Matrix>, result: Vector3): void;
|
2565
|
+
static Up(): Vector3;
|
2566
|
+
x: number;
|
2567
|
+
y: number;
|
2568
|
+
z: number;
|
2569
|
+
static Zero(): Vector3;
|
2570
|
+
}
|
2571
|
+
|
2572
|
+
// @public
|
2573
|
+
export class Vector4 implements EcsMathReadOnlyVector4 {
|
2574
|
+
constructor(
|
2575
|
+
x: number,
|
2576
|
+
y: number,
|
2577
|
+
z: number,
|
2578
|
+
w: number);
|
2579
|
+
static Add(vector1: EcsMathReadOnlyVector4, vector2: EcsMathReadOnlyVector4): Vector4;
|
2580
|
+
add(otherVector: EcsMathReadOnlyVector4): Vector4;
|
2581
|
+
addInPlace(otherVector: EcsMathReadOnlyVector4): Vector4;
|
2582
|
+
addToRef(otherVector: EcsMathReadOnlyVector4, result: Vector4): Vector4;
|
2583
|
+
asArray(): number[];
|
2584
|
+
static Center(value1: EcsMathReadOnlyVector4, value2: EcsMathReadOnlyVector4): Vector4;
|
2585
|
+
clone(): Vector4;
|
2586
|
+
copyFrom(source: EcsMathReadOnlyVector4): Vector4;
|
2587
|
+
copyFromFloats(x: number, y: number, z: number, w: number): Vector4;
|
2588
|
+
static Distance(value1: EcsMathReadOnlyVector4, value2: EcsMathReadOnlyVector4): number;
|
2589
|
+
static DistanceSquared(value1: EcsMathReadOnlyVector4, value2: EcsMathReadOnlyVector4): number;
|
2590
|
+
divide(otherVector: EcsMathReadOnlyVector4): Vector4;
|
2591
|
+
divideInPlace(otherVector: EcsMathReadOnlyVector4): Vector4;
|
2592
|
+
divideToRef(otherVector: EcsMathReadOnlyVector4, result: Vector4): Vector4;
|
2593
|
+
equals(otherVector: EcsMathReadOnlyVector4): boolean;
|
2594
|
+
equalsToFloats(x: number, y: number, z: number, w: number): boolean;
|
2595
|
+
equalsWithEpsilon(otherVector: EcsMathReadOnlyVector4, epsilon?: number): boolean;
|
2596
|
+
floor(): Vector4;
|
2597
|
+
fract(): Vector4;
|
2598
|
+
static FromArray(array: ArrayLike<number>, offset?: number): Vector4;
|
2599
|
+
static FromArrayToRef(array: ArrayLike<number>, offset: number, result: Vector4): void;
|
2600
|
+
static FromFloatArrayToRef(array: FloatArray, offset: number, result: Vector4): void;
|
2601
|
+
static FromFloatsToRef(x: number, y: number, z: number, w: number, result: Vector4): void;
|
2602
|
+
getClassName(): string;
|
2603
|
+
getHashCode(): number;
|
2604
|
+
length(): number;
|
2605
|
+
lengthSquared(): number;
|
2606
|
+
static Maximize(left: EcsMathReadOnlyVector4, right: EcsMathReadOnlyVector4): Vector4;
|
2607
|
+
maximizeInPlace(other: EcsMathReadOnlyVector4): Vector4;
|
2608
|
+
static Minimize(left: EcsMathReadOnlyVector4, right: EcsMathReadOnlyVector4): Vector4;
|
2609
|
+
minimizeInPlace(other: EcsMathReadOnlyVector4): Vector4;
|
2610
|
+
multiply(otherVector: EcsMathReadOnlyVector4): Vector4;
|
2611
|
+
multiplyByFloats(x: number, y: number, z: number, w: number): Vector4;
|
2612
|
+
multiplyInPlace(otherVector: EcsMathReadOnlyVector4): Vector4;
|
2613
|
+
multiplyToRef(otherVector: EcsMathReadOnlyVector4, result: Vector4): Vector4;
|
2614
|
+
negate(): Vector4;
|
2615
|
+
static Normalize(vector: EcsMathReadOnlyVector4): Vector4;
|
2616
|
+
normalize(): Vector4;
|
2617
|
+
static NormalizeToRef(vector: EcsMathReadOnlyVector4, result: Vector4): void;
|
2618
|
+
static One(): Vector4;
|
2619
|
+
scale(scale: number): Vector4;
|
2620
|
+
scaleAndAddToRef(scale: number, result: Vector4): Vector4;
|
2621
|
+
scaleInPlace(scale: number): Vector4;
|
2622
|
+
scaleToRef(scale: number, result: Vector4): Vector4;
|
2623
|
+
set(x: number, y: number, z: number, w: number): Vector4;
|
2624
|
+
setAll(v: number): Vector4;
|
2625
|
+
subtract(otherVector: EcsMathReadOnlyVector4): Vector4;
|
2626
|
+
subtractFromFloats(x: number, y: number, z: number, w: number): Vector4;
|
2627
|
+
subtractFromFloatsToRef(x: number, y: number, z: number, w: number, result: Vector4): Vector4;
|
2628
|
+
subtractInPlace(otherVector: EcsMathReadOnlyVector4): Vector4;
|
2629
|
+
subtractToRef(otherVector: EcsMathReadOnlyVector4, result: Vector4): Vector4;
|
2630
|
+
toArray(array: FloatArray, index?: number): Vector4;
|
2631
|
+
toString(): string;
|
2632
|
+
toVector3(): Vector3;
|
2633
|
+
static TransformNormal(vector: EcsMathReadOnlyVector4, transformation: Matrix): Vector4;
|
2634
|
+
static TransformNormalFromFloatsToRef(x: number, y: number, z: number, w: number, transformation: Matrix, result: Vector4): void;
|
2635
|
+
static TransformNormalToRef(vector: EcsMathReadOnlyVector4, transformation: Matrix, result: Vector4): void;
|
2636
|
+
w: number;
|
2637
|
+
x: number;
|
2638
|
+
y: number;
|
2639
|
+
z: number;
|
2640
|
+
static Zero(): Vector4;
|
2641
|
+
}
|
2642
|
+
|
2643
|
+
// @public (undocumented)
|
2644
|
+
export class VideoClip extends ObservableComponent {
|
2645
|
+
constructor(url: string);
|
2646
|
+
// (undocumented)
|
2647
|
+
readonly url: string;
|
2648
|
+
}
|
2649
|
+
|
2650
|
+
// @public (undocumented)
|
2651
|
+
export enum VideoStatus {
|
2652
|
+
// (undocumented)
|
2653
|
+
BUFFERING = 5,
|
2654
|
+
// (undocumented)
|
2655
|
+
ERROR = 1,
|
2656
|
+
// (undocumented)
|
2657
|
+
LOADING = 2,
|
2658
|
+
// (undocumented)
|
2659
|
+
NONE = 0,
|
2660
|
+
// (undocumented)
|
2661
|
+
PLAYING = 4,
|
2662
|
+
// (undocumented)
|
2663
|
+
READY = 3
|
2664
|
+
}
|
2665
|
+
|
2666
|
+
// @public (undocumented)
|
2667
|
+
export class VideoTexture extends ObservableComponent {
|
2668
|
+
constructor(videoClip: VideoClip, opts?: Partial<Pick<VideoTexture, 'samplingMode' | 'wrap'>>);
|
2669
|
+
// (undocumented)
|
2670
|
+
loop: boolean;
|
2671
|
+
// (undocumented)
|
2672
|
+
pause(): void;
|
2673
|
+
// (undocumented)
|
2674
|
+
play(): void;
|
2675
|
+
// (undocumented)
|
2676
|
+
playbackRate: number;
|
2677
|
+
playing: boolean;
|
2678
|
+
// (undocumented)
|
2679
|
+
get position(): number;
|
2680
|
+
// (undocumented)
|
2681
|
+
reset(): void;
|
2682
|
+
readonly samplingMode: number;
|
2683
|
+
// (undocumented)
|
2684
|
+
seek: number;
|
2685
|
+
// (undocumented)
|
2686
|
+
seekTime(seconds: number): void;
|
2687
|
+
// (undocumented)
|
2688
|
+
get status(): VideoStatus;
|
2689
|
+
// (undocumented)
|
2690
|
+
toJSON(): any;
|
2691
|
+
// (undocumented)
|
2692
|
+
update(videoEvent: IEvents['videoEvent']): void;
|
2693
|
+
// (undocumented)
|
2694
|
+
readonly videoClipId: string;
|
2695
|
+
// (undocumented)
|
2696
|
+
get videoLength(): number;
|
2697
|
+
// (undocumented)
|
2698
|
+
volume: number;
|
2699
|
+
readonly wrap: number;
|
2700
|
+
}
|
2701
|
+
|
2702
|
+
// @public (undocumented)
|
2703
|
+
export type Wearable = {
|
2704
|
+
id: WearableId;
|
2705
|
+
type: 'wearable';
|
2706
|
+
category: string;
|
2707
|
+
baseUrl: string;
|
2708
|
+
tags: string[];
|
2709
|
+
representations: BodyShapeRespresentation[];
|
2710
|
+
};
|
2711
|
+
|
2712
|
+
// @public (undocumented)
|
2713
|
+
export type WearableId = string;
|
2714
|
+
|
2715
|
+
// (No @packageDocumentation comment for this package)
|
2716
|
+
|
2717
|
+
```
|