@dcl/ecs 1.0.0-20220602104510.commit-bdd852b → 1.0.0-2465671744.commit-b3157b7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +55 -12
- package/dist/index.js +384 -49
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +3 -4
- package/dist/proto-definitions/AudioSource.proto +0 -16
- package/dist/proto-definitions/AudioStream.proto +0 -13
- package/dist/proto-definitions/BoxShape.proto +0 -14
- package/dist/proto-definitions/CylinderShape.proto +0 -15
- package/dist/proto-definitions/PlaneShape.proto +0 -14
- package/dist/proto-definitions/README.md +0 -0
- package/dist/proto-definitions/SphereShape.proto +0 -13
- package/dist/proto-definitions/Transform.md +0 -23
package/dist/index.d.ts
CHANGED
|
@@ -3,17 +3,17 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export declare function ArrayType<T>(type: EcsType<T>): EcsType<Array<T>>;
|
|
5
5
|
|
|
6
|
-
/**
|
|
7
|
-
* @public
|
|
8
|
-
*/
|
|
9
|
-
declare const Boolean_2: EcsType<boolean>;
|
|
10
|
-
export { Boolean_2 as Boolean }
|
|
11
|
-
|
|
12
6
|
/**
|
|
13
7
|
* @public
|
|
14
8
|
*/
|
|
15
9
|
export declare type ByteBuffer = ReturnType<typeof createByteBuffer>;
|
|
16
10
|
|
|
11
|
+
declare interface Color3 {
|
|
12
|
+
r: number;
|
|
13
|
+
g: number;
|
|
14
|
+
b: number;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
17
|
/**
|
|
18
18
|
* @public
|
|
19
19
|
*/
|
|
@@ -189,8 +189,10 @@ declare function defineSdkComponents(engine: Pick<IEngine, 'defineComponent'>):
|
|
|
189
189
|
AudioStream: ComponentDefinition<EcsType<PBAudioStream>>;
|
|
190
190
|
BoxShape: ComponentDefinition<EcsType<PBBoxShape>>;
|
|
191
191
|
CylinderShape: ComponentDefinition<EcsType<PBCylinderShape>>;
|
|
192
|
+
NFTShape: ComponentDefinition<EcsType<PBNFTShape>>;
|
|
192
193
|
PlaneShape: ComponentDefinition<EcsType<PBPlaneShape>>;
|
|
193
194
|
SphereShape: ComponentDefinition<EcsType<PBSphereShape>>;
|
|
195
|
+
TextShape: ComponentDefinition<EcsType<PBTextShape>>;
|
|
194
196
|
Transform: ComponentDefinition<EcsType<Transform>>;
|
|
195
197
|
};
|
|
196
198
|
|
|
@@ -203,11 +205,21 @@ export declare const DEG2RAD: number;
|
|
|
203
205
|
/** @public */
|
|
204
206
|
export declare type double = number;
|
|
205
207
|
|
|
208
|
+
/**
|
|
209
|
+
* @public
|
|
210
|
+
*/
|
|
211
|
+
export declare const EcsBoolean: EcsType<boolean>;
|
|
212
|
+
|
|
206
213
|
/**
|
|
207
214
|
* @public
|
|
208
215
|
*/
|
|
209
216
|
declare type EcsResult<T extends EcsType> = T extends EcsType ? ReturnType<T['deserialize']> : never;
|
|
210
217
|
|
|
218
|
+
/**
|
|
219
|
+
* @public
|
|
220
|
+
*/
|
|
221
|
+
export declare const EcsString: EcsType<string>;
|
|
222
|
+
|
|
211
223
|
/**
|
|
212
224
|
* @public
|
|
213
225
|
*/
|
|
@@ -1106,6 +1118,16 @@ declare interface PBCylinderShape {
|
|
|
1106
1118
|
radiusBottom: number;
|
|
1107
1119
|
}
|
|
1108
1120
|
|
|
1121
|
+
declare interface PBNFTShape {
|
|
1122
|
+
withCollisions: boolean;
|
|
1123
|
+
isPointerBlocker: boolean;
|
|
1124
|
+
visible: boolean;
|
|
1125
|
+
src: string;
|
|
1126
|
+
assetId: string;
|
|
1127
|
+
style: number;
|
|
1128
|
+
color: Color3 | undefined;
|
|
1129
|
+
}
|
|
1130
|
+
|
|
1109
1131
|
declare interface PBPlaneShape {
|
|
1110
1132
|
withCollisions: boolean;
|
|
1111
1133
|
isPointerBlocker: boolean;
|
|
@@ -1119,6 +1141,33 @@ declare interface PBSphereShape {
|
|
|
1119
1141
|
visible: boolean;
|
|
1120
1142
|
}
|
|
1121
1143
|
|
|
1144
|
+
declare interface PBTextShape {
|
|
1145
|
+
text: string;
|
|
1146
|
+
visible: boolean;
|
|
1147
|
+
font: string;
|
|
1148
|
+
opacity: number;
|
|
1149
|
+
fontSize: number;
|
|
1150
|
+
fontAutoSize: boolean;
|
|
1151
|
+
hTextAlign: string;
|
|
1152
|
+
vTextAlign: string;
|
|
1153
|
+
width: number;
|
|
1154
|
+
height: number;
|
|
1155
|
+
paddingTop: number;
|
|
1156
|
+
paddingRight: number;
|
|
1157
|
+
paddingBottom: number;
|
|
1158
|
+
paddingLeft: number;
|
|
1159
|
+
lineSpacing: number;
|
|
1160
|
+
lineCount: number;
|
|
1161
|
+
textWrapping: boolean;
|
|
1162
|
+
shadowBlur: number;
|
|
1163
|
+
shadowOffsetX: number;
|
|
1164
|
+
shadowOffsetY: number;
|
|
1165
|
+
outlineWidth: number;
|
|
1166
|
+
shadowColor: Color3 | undefined;
|
|
1167
|
+
outlineColor: Color3 | undefined;
|
|
1168
|
+
textColor: Color3 | undefined;
|
|
1169
|
+
}
|
|
1170
|
+
|
|
1122
1171
|
/**
|
|
1123
1172
|
* Represens a plane by the equation ax + by + cz + d = 0
|
|
1124
1173
|
* @public
|
|
@@ -1430,12 +1479,6 @@ export declare interface Spec {
|
|
|
1430
1479
|
[key: string]: EcsType;
|
|
1431
1480
|
}
|
|
1432
1481
|
|
|
1433
|
-
/**
|
|
1434
|
-
* @public
|
|
1435
|
-
*/
|
|
1436
|
-
declare const String_2: EcsType<string>;
|
|
1437
|
-
export { String_2 as String }
|
|
1438
|
-
|
|
1439
1482
|
/**
|
|
1440
1483
|
* Constant used to convert a value to gamma space
|
|
1441
1484
|
* @public
|