@dcl/sdk 7.0.0-2906812801.commit-277a94d → 7.0.0-2933918430.commit-d511778
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ecs7/index.d.ts +60 -0
- package/dist/ecs7/index.js +470 -88
- package/dist/ecs7/index.min.js +1 -1
- package/dist/ecs7/index.min.js.map +1 -1
- package/dist/ecs7/proto-definitions/MeshRenderer.proto +29 -0
- package/dist/ecs7/proto-definitions/UiText.proto +11 -0
- package/dist/ecs7/proto-definitions/UiTransform.proto +2 -0
- package/package.json +4 -4
- package/types/ecs7/index.d.ts +60 -0
package/dist/ecs7/index.d.ts
CHANGED
@@ -33,6 +33,15 @@ declare const enum AvatarAnchorPoint {
|
|
33
33
|
/** @public */
|
34
34
|
export declare const AvatarAttach: ComponentDefinition<ISchema<PBAvatarAttach>>;
|
35
35
|
|
36
|
+
declare const enum AvatarModifier {
|
37
|
+
HIDE_AVATARS = 0,
|
38
|
+
DISABLE_PASSPORTS = 1,
|
39
|
+
UNRECOGNIZED = -1
|
40
|
+
}
|
41
|
+
|
42
|
+
/** @public */
|
43
|
+
export declare const AvatarModifierArea: ComponentDefinition<ISchema<PBAvatarModifierArea>>;
|
44
|
+
|
36
45
|
/** @public */
|
37
46
|
export declare const AvatarShape: ComponentDefinition<ISchema<PBAvatarShape>>;
|
38
47
|
|
@@ -221,6 +230,8 @@ export declare namespace Components {
|
|
221
230
|
/** @public */
|
222
231
|
const AvatarAttach: ComponentDefinition<ISchema<PBAvatarAttach>>;
|
223
232
|
/** @public */
|
233
|
+
const AvatarModifierArea: ComponentDefinition<ISchema<PBAvatarModifierArea>>;
|
234
|
+
/** @public */
|
224
235
|
const AvatarShape: ComponentDefinition<ISchema<PBAvatarShape>>;
|
225
236
|
/** @public */
|
226
237
|
const Billboard: ComponentDefinition<ISchema<PBBillboard>>;
|
@@ -237,6 +248,8 @@ export declare namespace Components {
|
|
237
248
|
/** @public */
|
238
249
|
const Material: ComponentDefinition<ISchema<PBMaterial>>;
|
239
250
|
/** @public */
|
251
|
+
const MeshRenderer: ComponentDefinition<ISchema<PBMeshRenderer>>;
|
252
|
+
/** @public */
|
240
253
|
const NFTShape: ComponentDefinition<ISchema<PBNFTShape>>;
|
241
254
|
/** @public */
|
242
255
|
const OnPointerDown: ComponentDefinition<ISchema<PBOnPointerDown>>;
|
@@ -254,6 +267,8 @@ export declare namespace Components {
|
|
254
267
|
const SphereShape: ComponentDefinition<ISchema<PBSphereShape>>;
|
255
268
|
/** @public */
|
256
269
|
const TextShape: ComponentDefinition<ISchema<PBTextShape>>;
|
270
|
+
/** @public */
|
271
|
+
const UiText: ComponentDefinition<ISchema<PBUiText>>;
|
257
272
|
}
|
258
273
|
|
259
274
|
/**
|
@@ -440,6 +455,7 @@ declare function defineLibraryComponents({ defineComponentFromSchema }: Pick<IEn
|
|
440
455
|
Animator: ComponentDefinition<ISchema<PBAnimator>>;
|
441
456
|
AudioSource: ComponentDefinition<ISchema<PBAudioSource>>;
|
442
457
|
AvatarAttach: ComponentDefinition<ISchema<PBAvatarAttach>>;
|
458
|
+
AvatarModifierArea: ComponentDefinition<ISchema<PBAvatarModifierArea>>;
|
443
459
|
AvatarShape: ComponentDefinition<ISchema<PBAvatarShape>>;
|
444
460
|
Billboard: ComponentDefinition<ISchema<PBBillboard>>;
|
445
461
|
BoxShape: ComponentDefinition<ISchema<PBBoxShape>>;
|
@@ -448,6 +464,7 @@ declare function defineLibraryComponents({ defineComponentFromSchema }: Pick<IEn
|
|
448
464
|
CylinderShape: ComponentDefinition<ISchema<PBCylinderShape>>;
|
449
465
|
GLTFShape: ComponentDefinition<ISchema<PBGLTFShape>>;
|
450
466
|
Material: ComponentDefinition<ISchema<PBMaterial>>;
|
467
|
+
MeshRenderer: ComponentDefinition<ISchema<PBMeshRenderer>>;
|
451
468
|
NFTShape: ComponentDefinition<ISchema<PBNFTShape>>;
|
452
469
|
OnPointerDown: ComponentDefinition<ISchema<PBOnPointerDown>>;
|
453
470
|
OnPointerDownResult: ComponentDefinition<ISchema<PBOnPointerDownResult>>;
|
@@ -457,6 +474,7 @@ declare function defineLibraryComponents({ defineComponentFromSchema }: Pick<IEn
|
|
457
474
|
PointerLock: ComponentDefinition<ISchema<PBPointerLock>>;
|
458
475
|
SphereShape: ComponentDefinition<ISchema<PBSphereShape>>;
|
459
476
|
TextShape: ComponentDefinition<ISchema<PBTextShape>>;
|
477
|
+
UiText: ComponentDefinition<ISchema<PBUiText>>;
|
460
478
|
};
|
461
479
|
|
462
480
|
/**
|
@@ -1399,6 +1417,9 @@ declare namespace Matrix {
|
|
1399
1417
|
function toggleProjectionMatrixHandInPlace(self: MutableMatrix): void;
|
1400
1418
|
}
|
1401
1419
|
|
1420
|
+
/** @public */
|
1421
|
+
export declare const MeshRenderer: ComponentDefinition<ISchema<PBMeshRenderer>>;
|
1422
|
+
|
1402
1423
|
/** @public */
|
1403
1424
|
export declare const NFTShape: ComponentDefinition<ISchema<PBNFTShape>>;
|
1404
1425
|
|
@@ -1470,6 +1491,12 @@ declare interface PBAvatarAttach {
|
|
1470
1491
|
anchorPointId: AvatarAnchorPoint;
|
1471
1492
|
}
|
1472
1493
|
|
1494
|
+
declare interface PBAvatarModifierArea {
|
1495
|
+
area: Vector3_2 | undefined;
|
1496
|
+
excludeIds: string[];
|
1497
|
+
modifiers: AvatarModifier[];
|
1498
|
+
}
|
1499
|
+
|
1473
1500
|
declare interface PBAvatarShape {
|
1474
1501
|
id: string;
|
1475
1502
|
name?: string | undefined;
|
@@ -1579,6 +1606,31 @@ declare interface PBMaterial_Texture {
|
|
1579
1606
|
filterMode?: FilterMode | undefined;
|
1580
1607
|
}
|
1581
1608
|
|
1609
|
+
declare interface PBMeshRenderer {
|
1610
|
+
box: PBMeshRenderer_BoxMesh | undefined;
|
1611
|
+
sphere: PBMeshRenderer_SphereMesh | undefined;
|
1612
|
+
cylinder: PBMeshRenderer_CylinderMesh | undefined;
|
1613
|
+
plane: PBMeshRenderer_PlaneMesh | undefined;
|
1614
|
+
}
|
1615
|
+
|
1616
|
+
declare interface PBMeshRenderer_BoxMesh {
|
1617
|
+
uvs: number[];
|
1618
|
+
}
|
1619
|
+
|
1620
|
+
declare interface PBMeshRenderer_CylinderMesh {
|
1621
|
+
/** default=1.0 */
|
1622
|
+
radiusTop?: number | undefined;
|
1623
|
+
/** default=1.0 */
|
1624
|
+
radiusBottom?: number | undefined;
|
1625
|
+
}
|
1626
|
+
|
1627
|
+
declare interface PBMeshRenderer_PlaneMesh {
|
1628
|
+
uvs: number[];
|
1629
|
+
}
|
1630
|
+
|
1631
|
+
declare interface PBMeshRenderer_SphereMesh {
|
1632
|
+
}
|
1633
|
+
|
1582
1634
|
declare interface PBNFTShape {
|
1583
1635
|
/** @deprecated use MeshCollider instead https://github.com/decentraland/sdk/issues/366 */
|
1584
1636
|
withCollisions?: boolean | undefined;
|
@@ -1696,6 +1748,11 @@ declare interface PBTextShape {
|
|
1696
1748
|
textColor?: Color3 | undefined;
|
1697
1749
|
}
|
1698
1750
|
|
1751
|
+
declare interface PBUiText {
|
1752
|
+
text: string;
|
1753
|
+
textColor: Color3 | undefined;
|
1754
|
+
}
|
1755
|
+
|
1699
1756
|
/**
|
1700
1757
|
* Represens a plane by the equation ax + by + cz + d = 0
|
1701
1758
|
* @public
|
@@ -2112,6 +2169,9 @@ export declare type TransportMessage = Omit<ReceiveMessage, 'data'>;
|
|
2112
2169
|
|
2113
2170
|
declare type Uint32 = number;
|
2114
2171
|
|
2172
|
+
/** @public */
|
2173
|
+
export declare const UiText: ComponentDefinition<ISchema<PBUiText>>;
|
2174
|
+
|
2115
2175
|
/**
|
2116
2176
|
* @public
|
2117
2177
|
*/
|