@dcl/playground-assets 7.0.6-3830539086.commit-6152fbd → 7.0.6-3832166523.commit-2a75a6b
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/alpha.d.ts +6 -9
- package/dist/beta.d.ts +6 -9
- package/dist/index.bundled.d.ts +6 -9
- package/dist/index.js +233 -258
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist/playground/sdk/dcl-sdk.package.json +2 -2
- package/dist/playground/snippets/billboard.ts +3 -5
- package/dist/playground-assets.d.ts +6 -9
- package/etc/playground-assets.api.json +71 -35
- package/etc/playground-assets.api.md +8 -4
- package/package.json +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcl/sdk",
|
|
3
|
-
"version": "7.0.6-
|
|
3
|
+
"version": "7.0.6-3832166523.commit-2a75a6b",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"typings": "./index.d.ts",
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"displayName": "SDK",
|
|
37
37
|
"tsconfig": "./tsconfig.json"
|
|
38
38
|
},
|
|
39
|
-
"commit": "
|
|
39
|
+
"commit": "2a75a6b621cc2986c630cf290ba722a5a1288030"
|
|
40
40
|
}
|
|
@@ -52,16 +52,14 @@ function createBillboards() {
|
|
|
52
52
|
createPlaneTexture(4, 3, 8)
|
|
53
53
|
|
|
54
54
|
Billboard.create(plane1, {
|
|
55
|
-
billboardMode: BillboardMode.
|
|
55
|
+
billboardMode: BillboardMode.BM_Y
|
|
56
56
|
})
|
|
57
57
|
Billboard.create(plane2)
|
|
58
58
|
Billboard.create(plane4, {
|
|
59
|
-
|
|
60
|
-
billboardMode: BillboardMode.BM_ALL_AXES
|
|
59
|
+
billboardMode: BillboardMode.BM_ALL
|
|
61
60
|
})
|
|
62
61
|
Billboard.create(plane5, {
|
|
63
|
-
|
|
64
|
-
billboardMode: BillboardMode.BM_Y_AXE
|
|
62
|
+
billboardMode: BillboardMode.BM_Y
|
|
65
63
|
})
|
|
66
64
|
}
|
|
67
65
|
|
|
@@ -120,8 +120,11 @@ export declare const enum BackgroundTextureMode {
|
|
|
120
120
|
export declare const Billboard: ComponentDefinition<PBBillboard>;
|
|
121
121
|
|
|
122
122
|
export declare const enum BillboardMode {
|
|
123
|
-
|
|
124
|
-
|
|
123
|
+
BM_NONE = 0,
|
|
124
|
+
BM_X = 1,
|
|
125
|
+
BM_Y = 2,
|
|
126
|
+
BM_Z = 4,
|
|
127
|
+
BM_ALL = 7
|
|
125
128
|
}
|
|
126
129
|
|
|
127
130
|
/** Defines indents from respective edges */
|
|
@@ -202,10 +205,6 @@ export declare type ByteBuffer = {
|
|
|
202
205
|
* @returns The offset when this reserving starts.
|
|
203
206
|
*/
|
|
204
207
|
incrementWriteOffset(amount: number): number;
|
|
205
|
-
/**
|
|
206
|
-
* @returns The total number of bytes writen in the buffer.
|
|
207
|
-
*/
|
|
208
|
-
size(): number;
|
|
209
208
|
/**
|
|
210
209
|
* Take care using this function, if you modify the data after, the
|
|
211
210
|
* returned subarray will change too. If you'll modify the content of the
|
|
@@ -2992,10 +2991,8 @@ export declare const PBAvatarShape: {
|
|
|
2992
2991
|
};
|
|
2993
2992
|
|
|
2994
2993
|
export declare interface PBBillboard {
|
|
2995
|
-
/** default=
|
|
2994
|
+
/** default=BM_ALL */
|
|
2996
2995
|
billboardMode?: BillboardMode | undefined;
|
|
2997
|
-
/** default=false */
|
|
2998
|
-
oppositeDirection?: boolean | undefined;
|
|
2999
2996
|
}
|
|
3000
2997
|
|
|
3001
2998
|
/**
|
|
@@ -1230,12 +1230,33 @@
|
|
|
1230
1230
|
"members": [
|
|
1231
1231
|
{
|
|
1232
1232
|
"kind": "EnumMember",
|
|
1233
|
-
"canonicalReference": "@dcl/playground-assets!BillboardMode.
|
|
1233
|
+
"canonicalReference": "@dcl/playground-assets!BillboardMode.BM_ALL:member",
|
|
1234
1234
|
"docComment": "",
|
|
1235
1235
|
"excerptTokens": [
|
|
1236
1236
|
{
|
|
1237
1237
|
"kind": "Content",
|
|
1238
|
-
"text": "
|
|
1238
|
+
"text": "BM_ALL = "
|
|
1239
|
+
},
|
|
1240
|
+
{
|
|
1241
|
+
"kind": "Content",
|
|
1242
|
+
"text": "7"
|
|
1243
|
+
}
|
|
1244
|
+
],
|
|
1245
|
+
"initializerTokenRange": {
|
|
1246
|
+
"startIndex": 1,
|
|
1247
|
+
"endIndex": 2
|
|
1248
|
+
},
|
|
1249
|
+
"releaseTag": "Public",
|
|
1250
|
+
"name": "BM_ALL"
|
|
1251
|
+
},
|
|
1252
|
+
{
|
|
1253
|
+
"kind": "EnumMember",
|
|
1254
|
+
"canonicalReference": "@dcl/playground-assets!BillboardMode.BM_NONE:member",
|
|
1255
|
+
"docComment": "",
|
|
1256
|
+
"excerptTokens": [
|
|
1257
|
+
{
|
|
1258
|
+
"kind": "Content",
|
|
1259
|
+
"text": "BM_NONE = "
|
|
1239
1260
|
},
|
|
1240
1261
|
{
|
|
1241
1262
|
"kind": "Content",
|
|
@@ -1247,16 +1268,16 @@
|
|
|
1247
1268
|
"endIndex": 2
|
|
1248
1269
|
},
|
|
1249
1270
|
"releaseTag": "Public",
|
|
1250
|
-
"name": "
|
|
1271
|
+
"name": "BM_NONE"
|
|
1251
1272
|
},
|
|
1252
1273
|
{
|
|
1253
1274
|
"kind": "EnumMember",
|
|
1254
|
-
"canonicalReference": "@dcl/playground-assets!BillboardMode.
|
|
1275
|
+
"canonicalReference": "@dcl/playground-assets!BillboardMode.BM_X:member",
|
|
1255
1276
|
"docComment": "",
|
|
1256
1277
|
"excerptTokens": [
|
|
1257
1278
|
{
|
|
1258
1279
|
"kind": "Content",
|
|
1259
|
-
"text": "
|
|
1280
|
+
"text": "BM_X = "
|
|
1260
1281
|
},
|
|
1261
1282
|
{
|
|
1262
1283
|
"kind": "Content",
|
|
@@ -1268,7 +1289,49 @@
|
|
|
1268
1289
|
"endIndex": 2
|
|
1269
1290
|
},
|
|
1270
1291
|
"releaseTag": "Public",
|
|
1271
|
-
"name": "
|
|
1292
|
+
"name": "BM_X"
|
|
1293
|
+
},
|
|
1294
|
+
{
|
|
1295
|
+
"kind": "EnumMember",
|
|
1296
|
+
"canonicalReference": "@dcl/playground-assets!BillboardMode.BM_Y:member",
|
|
1297
|
+
"docComment": "",
|
|
1298
|
+
"excerptTokens": [
|
|
1299
|
+
{
|
|
1300
|
+
"kind": "Content",
|
|
1301
|
+
"text": "BM_Y = "
|
|
1302
|
+
},
|
|
1303
|
+
{
|
|
1304
|
+
"kind": "Content",
|
|
1305
|
+
"text": "2"
|
|
1306
|
+
}
|
|
1307
|
+
],
|
|
1308
|
+
"initializerTokenRange": {
|
|
1309
|
+
"startIndex": 1,
|
|
1310
|
+
"endIndex": 2
|
|
1311
|
+
},
|
|
1312
|
+
"releaseTag": "Public",
|
|
1313
|
+
"name": "BM_Y"
|
|
1314
|
+
},
|
|
1315
|
+
{
|
|
1316
|
+
"kind": "EnumMember",
|
|
1317
|
+
"canonicalReference": "@dcl/playground-assets!BillboardMode.BM_Z:member",
|
|
1318
|
+
"docComment": "",
|
|
1319
|
+
"excerptTokens": [
|
|
1320
|
+
{
|
|
1321
|
+
"kind": "Content",
|
|
1322
|
+
"text": "BM_Z = "
|
|
1323
|
+
},
|
|
1324
|
+
{
|
|
1325
|
+
"kind": "Content",
|
|
1326
|
+
"text": "4"
|
|
1327
|
+
}
|
|
1328
|
+
],
|
|
1329
|
+
"initializerTokenRange": {
|
|
1330
|
+
"startIndex": 1,
|
|
1331
|
+
"endIndex": 2
|
|
1332
|
+
},
|
|
1333
|
+
"releaseTag": "Public",
|
|
1334
|
+
"name": "BM_Z"
|
|
1272
1335
|
}
|
|
1273
1336
|
]
|
|
1274
1337
|
},
|
|
@@ -1560,7 +1623,7 @@
|
|
|
1560
1623
|
},
|
|
1561
1624
|
{
|
|
1562
1625
|
"kind": "Content",
|
|
1563
|
-
"text": ";\n readUtf8String(): string;\n incrementWriteOffset(amount: number): number;\n
|
|
1626
|
+
"text": ";\n readUtf8String(): string;\n incrementWriteOffset(amount: number): number;\n toBinary(): "
|
|
1564
1627
|
},
|
|
1565
1628
|
{
|
|
1566
1629
|
"kind": "Reference",
|
|
@@ -26256,7 +26319,7 @@
|
|
|
26256
26319
|
{
|
|
26257
26320
|
"kind": "PropertySignature",
|
|
26258
26321
|
"canonicalReference": "@dcl/playground-assets!PBBillboard#billboardMode:member",
|
|
26259
|
-
"docComment": "/**\n * default=
|
|
26322
|
+
"docComment": "/**\n * default=BM_ALL\n */\n",
|
|
26260
26323
|
"excerptTokens": [
|
|
26261
26324
|
{
|
|
26262
26325
|
"kind": "Content",
|
|
@@ -26284,33 +26347,6 @@
|
|
|
26284
26347
|
"startIndex": 1,
|
|
26285
26348
|
"endIndex": 3
|
|
26286
26349
|
}
|
|
26287
|
-
},
|
|
26288
|
-
{
|
|
26289
|
-
"kind": "PropertySignature",
|
|
26290
|
-
"canonicalReference": "@dcl/playground-assets!PBBillboard#oppositeDirection:member",
|
|
26291
|
-
"docComment": "/**\n * default=false\n */\n",
|
|
26292
|
-
"excerptTokens": [
|
|
26293
|
-
{
|
|
26294
|
-
"kind": "Content",
|
|
26295
|
-
"text": "oppositeDirection?: "
|
|
26296
|
-
},
|
|
26297
|
-
{
|
|
26298
|
-
"kind": "Content",
|
|
26299
|
-
"text": "boolean | undefined"
|
|
26300
|
-
},
|
|
26301
|
-
{
|
|
26302
|
-
"kind": "Content",
|
|
26303
|
-
"text": ";"
|
|
26304
|
-
}
|
|
26305
|
-
],
|
|
26306
|
-
"isReadonly": false,
|
|
26307
|
-
"isOptional": true,
|
|
26308
|
-
"releaseTag": "Public",
|
|
26309
|
-
"name": "oppositeDirection",
|
|
26310
|
-
"propertyTypeTokenRange": {
|
|
26311
|
-
"startIndex": 1,
|
|
26312
|
-
"endIndex": 2
|
|
26313
|
-
}
|
|
26314
26350
|
}
|
|
26315
26351
|
],
|
|
26316
26352
|
"extendsTokenRanges": []
|
|
@@ -100,9 +100,15 @@ export const Billboard: ComponentDefinition<PBBillboard>;
|
|
|
100
100
|
// @public (undocumented)
|
|
101
101
|
export const enum BillboardMode {
|
|
102
102
|
// (undocumented)
|
|
103
|
-
|
|
103
|
+
BM_ALL = 7,
|
|
104
104
|
// (undocumented)
|
|
105
|
-
|
|
105
|
+
BM_NONE = 0,
|
|
106
|
+
// (undocumented)
|
|
107
|
+
BM_X = 1,
|
|
108
|
+
// (undocumented)
|
|
109
|
+
BM_Y = 2,
|
|
110
|
+
// (undocumented)
|
|
111
|
+
BM_Z = 4
|
|
106
112
|
}
|
|
107
113
|
|
|
108
114
|
// Warning: (ae-missing-release-tag) "BorderRect" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
@@ -151,7 +157,6 @@ export type ByteBuffer = {
|
|
|
151
157
|
readBuffer(): Uint8Array;
|
|
152
158
|
readUtf8String(): string;
|
|
153
159
|
incrementWriteOffset(amount: number): number;
|
|
154
|
-
size(): number;
|
|
155
160
|
toBinary(): Uint8Array;
|
|
156
161
|
toCopiedBinary(): Uint8Array;
|
|
157
162
|
writeUtf8String(value: string, writeLength?: boolean): void;
|
|
@@ -1714,7 +1719,6 @@ export const PBAvatarShape: {
|
|
|
1714
1719
|
// @public (undocumented)
|
|
1715
1720
|
export interface PBBillboard {
|
|
1716
1721
|
billboardMode?: BillboardMode | undefined;
|
|
1717
|
-
oppositeDirection?: boolean | undefined;
|
|
1718
1722
|
}
|
|
1719
1723
|
|
|
1720
1724
|
// @public
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcl/playground-assets",
|
|
3
|
-
"version": "7.0.6-
|
|
3
|
+
"version": "7.0.6-3832166523.commit-2a75a6b",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"typings": "./dist/index.d.ts",
|
|
@@ -17,12 +17,12 @@
|
|
|
17
17
|
"author": "Decentraland",
|
|
18
18
|
"license": "Apache-2.0",
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@dcl/sdk": "7.0.6-
|
|
20
|
+
"@dcl/sdk": "7.0.6-3832166523.commit-2a75a6b"
|
|
21
21
|
},
|
|
22
22
|
"minCliVersion": "3.12.3",
|
|
23
23
|
"files": [
|
|
24
24
|
"dist",
|
|
25
25
|
"etc"
|
|
26
26
|
],
|
|
27
|
-
"commit": "
|
|
27
|
+
"commit": "2a75a6b621cc2986c630cf290ba722a5a1288030"
|
|
28
28
|
}
|