@dcl/playground-assets 7.1.4-4491693391.commit-569ecab → 7.1.4-4495128859.commit-9f954df
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 +337 -58
- package/dist/beta.d.ts +337 -58
- package/dist/index.bundled.d.ts +337 -58
- package/dist/index.js +161 -108
- 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 +14 -14
- package/dist/playground/snippets/raycast-hit-many.ts +7 -4
- package/dist/playground/snippets/raycast-hit.ts +9 -4
- package/dist/playground-assets.d.ts +337 -58
- package/etc/playground-assets.api.json +591 -152
- package/etc/playground-assets.api.md +48 -64
- package/package.json +17 -17
|
@@ -69,9 +69,7 @@ export const AvatarModifierArea: LastWriteWinElementSetComponentDefinition<PBAva
|
|
|
69
69
|
|
|
70
70
|
// @public (undocumented)
|
|
71
71
|
export const enum AvatarModifierType {
|
|
72
|
-
// (undocumented)
|
|
73
72
|
AMT_DISABLE_PASSPORTS = 1,
|
|
74
|
-
// (undocumented)
|
|
75
73
|
AMT_HIDE_AVATARS = 0
|
|
76
74
|
}
|
|
77
75
|
|
|
@@ -116,7 +114,6 @@ export const Billboard: LastWriteWinElementSetComponentDefinition<PBBillboard>;
|
|
|
116
114
|
|
|
117
115
|
// @public (undocumented)
|
|
118
116
|
export const enum BillboardMode {
|
|
119
|
-
// (undocumented)
|
|
120
117
|
BM_ALL = 7,
|
|
121
118
|
// (undocumented)
|
|
122
119
|
BM_NONE = 0,
|
|
@@ -263,6 +260,7 @@ export const CameraModeArea: LastWriteWinElementSetComponentDefinition<PBCameraM
|
|
|
263
260
|
|
|
264
261
|
// @public (undocumented)
|
|
265
262
|
export const enum CameraType {
|
|
263
|
+
CT_CINEMATIC = 2,
|
|
266
264
|
// (undocumented)
|
|
267
265
|
CT_FIRST_PERSON = 0,
|
|
268
266
|
// (undocumented)
|
|
@@ -277,11 +275,35 @@ export type Children = unknown;
|
|
|
277
275
|
// @public (undocumented)
|
|
278
276
|
export const enum ColliderLayer {
|
|
279
277
|
// (undocumented)
|
|
280
|
-
|
|
278
|
+
CL_CUSTOM1 = 256,
|
|
279
|
+
// (undocumented)
|
|
280
|
+
CL_CUSTOM2 = 512,
|
|
281
|
+
// (undocumented)
|
|
282
|
+
CL_CUSTOM3 = 1024,
|
|
283
|
+
// (undocumented)
|
|
284
|
+
CL_CUSTOM4 = 2048,
|
|
285
|
+
// (undocumented)
|
|
286
|
+
CL_CUSTOM5 = 4096,
|
|
287
|
+
// (undocumented)
|
|
288
|
+
CL_CUSTOM6 = 8192,
|
|
289
|
+
// (undocumented)
|
|
290
|
+
CL_CUSTOM7 = 16384,
|
|
281
291
|
// (undocumented)
|
|
292
|
+
CL_CUSTOM8 = 32768,
|
|
293
|
+
CL_NONE = 0,
|
|
282
294
|
CL_PHYSICS = 2,
|
|
295
|
+
CL_POINTER = 1,
|
|
296
|
+
// (undocumented)
|
|
297
|
+
CL_RESERVED2 = 8,
|
|
298
|
+
// (undocumented)
|
|
299
|
+
CL_RESERVED3 = 16,
|
|
300
|
+
// (undocumented)
|
|
301
|
+
CL_RESERVED4 = 32,
|
|
302
|
+
// (undocumented)
|
|
303
|
+
CL_RESERVED5 = 64,
|
|
283
304
|
// (undocumented)
|
|
284
|
-
|
|
305
|
+
CL_RESERVED6 = 128,
|
|
306
|
+
CL_VISIBLE_MESHES = 4
|
|
285
307
|
}
|
|
286
308
|
|
|
287
309
|
// @public
|
|
@@ -1720,14 +1742,10 @@ export type OverflowType = 'hidden' | 'scroll' | 'visible';
|
|
|
1720
1742
|
|
|
1721
1743
|
// @public (undocumented)
|
|
1722
1744
|
export interface PBAnimationState {
|
|
1723
|
-
// (undocumented)
|
|
1724
1745
|
clip: string;
|
|
1725
1746
|
loop?: boolean | undefined;
|
|
1726
|
-
// (undocumented)
|
|
1727
1747
|
name: string;
|
|
1728
|
-
// (undocumented)
|
|
1729
1748
|
playing?: boolean | undefined;
|
|
1730
|
-
// (undocumented)
|
|
1731
1749
|
shouldReset?: boolean | undefined;
|
|
1732
1750
|
speed?: number | undefined;
|
|
1733
1751
|
weight?: number | undefined;
|
|
@@ -1735,45 +1753,35 @@ export interface PBAnimationState {
|
|
|
1735
1753
|
|
|
1736
1754
|
// @public (undocumented)
|
|
1737
1755
|
export interface PBAnimator {
|
|
1738
|
-
// (undocumented)
|
|
1739
1756
|
states: PBAnimationState[];
|
|
1740
1757
|
}
|
|
1741
1758
|
|
|
1742
1759
|
// @public (undocumented)
|
|
1743
1760
|
export interface PBAudioSource {
|
|
1744
|
-
// (undocumented)
|
|
1745
1761
|
audioClipUrl: string;
|
|
1746
|
-
// (undocumented)
|
|
1747
1762
|
loop?: boolean | undefined;
|
|
1748
1763
|
pitch?: number | undefined;
|
|
1749
|
-
// (undocumented)
|
|
1750
1764
|
playing?: boolean | undefined;
|
|
1751
1765
|
volume?: number | undefined;
|
|
1752
1766
|
}
|
|
1753
1767
|
|
|
1754
1768
|
// @public (undocumented)
|
|
1755
1769
|
export interface PBAudioStream {
|
|
1756
|
-
// (undocumented)
|
|
1757
1770
|
playing?: boolean | undefined;
|
|
1758
|
-
// (undocumented)
|
|
1759
1771
|
url: string;
|
|
1760
1772
|
volume?: number | undefined;
|
|
1761
1773
|
}
|
|
1762
1774
|
|
|
1763
1775
|
// @public (undocumented)
|
|
1764
1776
|
export interface PBAvatarAttach {
|
|
1765
|
-
// (undocumented)
|
|
1766
1777
|
anchorPointId: AvatarAnchorPointType;
|
|
1767
1778
|
avatarId?: string | undefined;
|
|
1768
1779
|
}
|
|
1769
1780
|
|
|
1770
1781
|
// @public (undocumented)
|
|
1771
1782
|
export interface PBAvatarModifierArea {
|
|
1772
|
-
// (undocumented)
|
|
1773
1783
|
area: PBVector3 | undefined;
|
|
1774
|
-
// (undocumented)
|
|
1775
1784
|
excludeIds: string[];
|
|
1776
|
-
// (undocumented)
|
|
1777
1785
|
modifiers: AvatarModifierType[];
|
|
1778
1786
|
}
|
|
1779
1787
|
|
|
@@ -1781,16 +1789,13 @@ export interface PBAvatarModifierArea {
|
|
|
1781
1789
|
export interface PBAvatarShape {
|
|
1782
1790
|
bodyShape?: string | undefined;
|
|
1783
1791
|
emotes: string[];
|
|
1784
|
-
// (undocumented)
|
|
1785
1792
|
expressionTriggerId?: string | undefined;
|
|
1786
1793
|
expressionTriggerTimestamp?: number | undefined;
|
|
1787
1794
|
eyeColor?: PBColor3 | undefined;
|
|
1788
1795
|
hairColor?: PBColor3 | undefined;
|
|
1789
|
-
// (undocumented)
|
|
1790
1796
|
id: string;
|
|
1791
1797
|
name?: string | undefined;
|
|
1792
1798
|
skinColor?: PBColor3 | undefined;
|
|
1793
|
-
// (undocumented)
|
|
1794
1799
|
talking?: boolean | undefined;
|
|
1795
1800
|
wearables: string[];
|
|
1796
1801
|
}
|
|
@@ -1802,15 +1807,12 @@ export interface PBBillboard {
|
|
|
1802
1807
|
|
|
1803
1808
|
// @public (undocumented)
|
|
1804
1809
|
export interface PBCameraMode {
|
|
1805
|
-
// (undocumented)
|
|
1806
1810
|
mode: CameraType;
|
|
1807
1811
|
}
|
|
1808
1812
|
|
|
1809
1813
|
// @public (undocumented)
|
|
1810
1814
|
export interface PBCameraModeArea {
|
|
1811
|
-
// (undocumented)
|
|
1812
1815
|
area: PBVector3 | undefined;
|
|
1813
|
-
// (undocumented)
|
|
1814
1816
|
mode: CameraType;
|
|
1815
1817
|
}
|
|
1816
1818
|
|
|
@@ -1938,7 +1940,6 @@ export interface PBMeshRenderer {
|
|
|
1938
1940
|
|
|
1939
1941
|
// @public (undocumented)
|
|
1940
1942
|
export interface PBMeshRenderer_BoxMesh {
|
|
1941
|
-
// (undocumented)
|
|
1942
1943
|
uvs: number[];
|
|
1943
1944
|
}
|
|
1944
1945
|
|
|
@@ -1950,7 +1951,6 @@ export interface PBMeshRenderer_CylinderMesh {
|
|
|
1950
1951
|
|
|
1951
1952
|
// @public (undocumented)
|
|
1952
1953
|
export interface PBMeshRenderer_PlaneMesh {
|
|
1953
|
-
// (undocumented)
|
|
1954
1954
|
uvs: number[];
|
|
1955
1955
|
}
|
|
1956
1956
|
|
|
@@ -1961,22 +1961,18 @@ export interface PBMeshRenderer_SphereMesh {
|
|
|
1961
1961
|
// @public (undocumented)
|
|
1962
1962
|
export interface PBNftShape {
|
|
1963
1963
|
color?: PBColor3 | undefined;
|
|
1964
|
-
// (undocumented)
|
|
1965
1964
|
src: string;
|
|
1966
1965
|
style?: NftFrameType | undefined;
|
|
1967
1966
|
}
|
|
1968
1967
|
|
|
1969
1968
|
// @public (undocumented)
|
|
1970
1969
|
export interface PBPointerEvents {
|
|
1971
|
-
// (undocumented)
|
|
1972
1970
|
pointerEvents: PBPointerEvents_Entry[];
|
|
1973
1971
|
}
|
|
1974
1972
|
|
|
1975
1973
|
// @public (undocumented)
|
|
1976
1974
|
export interface PBPointerEvents_Entry {
|
|
1977
|
-
// (undocumented)
|
|
1978
1975
|
eventInfo: PBPointerEvents_Info | undefined;
|
|
1979
|
-
// (undocumented)
|
|
1980
1976
|
eventType: PointerEventType;
|
|
1981
1977
|
}
|
|
1982
1978
|
|
|
@@ -2001,7 +1997,6 @@ export interface PBPointerEventsResult {
|
|
|
2001
1997
|
|
|
2002
1998
|
// @public (undocumented)
|
|
2003
1999
|
export interface PBPointerLock {
|
|
2004
|
-
// (undocumented)
|
|
2005
2000
|
isPointerLocked: boolean;
|
|
2006
2001
|
}
|
|
2007
2002
|
|
|
@@ -2017,56 +2012,54 @@ export interface PBPosition {
|
|
|
2017
2012
|
|
|
2018
2013
|
// @public (undocumented)
|
|
2019
2014
|
export interface PBRaycast {
|
|
2015
|
+
collisionMask?: number | undefined;
|
|
2016
|
+
continuous?: boolean | undefined;
|
|
2020
2017
|
// (undocumented)
|
|
2021
|
-
direction
|
|
2022
|
-
|
|
2018
|
+
direction?: {
|
|
2019
|
+
$case: "localDirection";
|
|
2020
|
+
localDirection: PBVector3;
|
|
2021
|
+
} | {
|
|
2022
|
+
$case: "globalDirection";
|
|
2023
|
+
globalDirection: PBVector3;
|
|
2024
|
+
} | {
|
|
2025
|
+
$case: "globalTarget";
|
|
2026
|
+
globalTarget: PBVector3;
|
|
2027
|
+
} | {
|
|
2028
|
+
$case: "targetEntity";
|
|
2029
|
+
targetEntity: number;
|
|
2030
|
+
};
|
|
2023
2031
|
maxDistance: number;
|
|
2024
|
-
|
|
2025
|
-
origin: PBVector3 | undefined;
|
|
2026
|
-
// (undocumented)
|
|
2032
|
+
originOffset?: PBVector3 | undefined;
|
|
2027
2033
|
queryType: RaycastQueryType;
|
|
2034
|
+
timestamp?: number | undefined;
|
|
2028
2035
|
}
|
|
2029
2036
|
|
|
2030
2037
|
// @public (undocumented)
|
|
2031
2038
|
export interface PBRaycastResult {
|
|
2032
|
-
// (undocumented)
|
|
2033
2039
|
direction: PBVector3 | undefined;
|
|
2034
|
-
|
|
2040
|
+
globalOrigin: PBVector3 | undefined;
|
|
2035
2041
|
hits: RaycastHit[];
|
|
2036
|
-
|
|
2037
|
-
origin: PBVector3 | undefined;
|
|
2038
|
-
// (undocumented)
|
|
2039
|
-
timestamp: number;
|
|
2042
|
+
timestamp?: number | undefined;
|
|
2040
2043
|
}
|
|
2041
2044
|
|
|
2042
2045
|
// @public (undocumented)
|
|
2043
2046
|
export interface PBTextShape {
|
|
2044
2047
|
font?: Font | undefined;
|
|
2045
|
-
// (undocumented)
|
|
2046
2048
|
fontAutoSize?: boolean | undefined;
|
|
2047
2049
|
fontSize?: number | undefined;
|
|
2048
2050
|
height?: number | undefined;
|
|
2049
2051
|
lineCount?: number | undefined;
|
|
2050
2052
|
lineSpacing?: number | undefined;
|
|
2051
2053
|
outlineColor?: PBColor3 | undefined;
|
|
2052
|
-
// (undocumented)
|
|
2053
2054
|
outlineWidth?: number | undefined;
|
|
2054
|
-
// (undocumented)
|
|
2055
2055
|
paddingBottom?: number | undefined;
|
|
2056
|
-
// (undocumented)
|
|
2057
2056
|
paddingLeft?: number | undefined;
|
|
2058
|
-
// (undocumented)
|
|
2059
2057
|
paddingRight?: number | undefined;
|
|
2060
|
-
// (undocumented)
|
|
2061
2058
|
paddingTop?: number | undefined;
|
|
2062
|
-
// (undocumented)
|
|
2063
2059
|
shadowBlur?: number | undefined;
|
|
2064
2060
|
shadowColor?: PBColor3 | undefined;
|
|
2065
|
-
// (undocumented)
|
|
2066
2061
|
shadowOffsetX?: number | undefined;
|
|
2067
|
-
// (undocumented)
|
|
2068
2062
|
shadowOffsetY?: number | undefined;
|
|
2069
|
-
// (undocumented)
|
|
2070
2063
|
text: string;
|
|
2071
2064
|
textAlign?: TextAlignMode | undefined;
|
|
2072
2065
|
textColor?: PBColor4 | undefined;
|
|
@@ -2135,7 +2128,6 @@ export interface PBUiText {
|
|
|
2135
2128
|
font?: Font | undefined;
|
|
2136
2129
|
fontSize?: number | undefined;
|
|
2137
2130
|
textAlign?: TextAlignMode | undefined;
|
|
2138
|
-
// (undocumented)
|
|
2139
2131
|
value: string;
|
|
2140
2132
|
}
|
|
2141
2133
|
|
|
@@ -2453,27 +2445,19 @@ export const Raycast: LastWriteWinElementSetComponentDefinition<PBRaycast>;
|
|
|
2453
2445
|
|
|
2454
2446
|
// @public (undocumented)
|
|
2455
2447
|
export interface RaycastHit {
|
|
2456
|
-
// (undocumented)
|
|
2457
2448
|
direction: PBVector3 | undefined;
|
|
2458
|
-
// (undocumented)
|
|
2459
2449
|
entityId?: number | undefined;
|
|
2460
|
-
|
|
2450
|
+
globalOrigin: PBVector3 | undefined;
|
|
2461
2451
|
length: number;
|
|
2462
|
-
// (undocumented)
|
|
2463
2452
|
meshName?: string | undefined;
|
|
2464
|
-
// (undocumented)
|
|
2465
2453
|
normalHit: PBVector3 | undefined;
|
|
2466
|
-
// (undocumented)
|
|
2467
|
-
origin: PBVector3 | undefined;
|
|
2468
|
-
// (undocumented)
|
|
2469
2454
|
position: PBVector3 | undefined;
|
|
2470
2455
|
}
|
|
2471
2456
|
|
|
2472
2457
|
// @public (undocumented)
|
|
2473
2458
|
export const enum RaycastQueryType {
|
|
2474
|
-
// (undocumented)
|
|
2475
2459
|
RQT_HIT_FIRST = 0,
|
|
2476
|
-
|
|
2460
|
+
RQT_NONE = 2,
|
|
2477
2461
|
RQT_QUERY_ALL = 1
|
|
2478
2462
|
}
|
|
2479
2463
|
|
package/package.json
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcl/playground-assets",
|
|
3
|
-
"version": "7.1.4-4491693391.commit-569ecab",
|
|
4
3
|
"description": "",
|
|
5
|
-
"
|
|
6
|
-
"typings": "./dist/index.d.ts",
|
|
7
|
-
"types": "./dist/index.d.ts",
|
|
8
|
-
"scripts": {
|
|
9
|
-
"build-ecs": "./../dcl-rollup/node_modules/.bin/rollup -c ./../dcl-rollup/playground-ecs.config.js",
|
|
10
|
-
"build": "npm run build-ecs && node_modules/.bin/api-extractor run",
|
|
11
|
-
"build-local": "npm run build-ecs && node_modules/.bin/api-extractor run --local --verbose --diagnostics"
|
|
12
|
-
},
|
|
13
|
-
"keywords": [],
|
|
14
|
-
"tsdoc": {
|
|
15
|
-
"tsdocFlavor": "AEDoc"
|
|
16
|
-
},
|
|
4
|
+
"version": "7.1.4-4495128859.commit-9f954df",
|
|
17
5
|
"author": "Decentraland",
|
|
18
|
-
"license": "Apache-2.0",
|
|
19
6
|
"dependencies": {
|
|
20
|
-
"@dcl/sdk": "7.1.4-
|
|
7
|
+
"@dcl/sdk": "7.1.4-4495128859.commit-9f954df"
|
|
21
8
|
},
|
|
22
9
|
"devDependencies": {
|
|
23
10
|
"@microsoft/api-extractor": "^7.33.8"
|
|
24
11
|
},
|
|
25
|
-
"minCliVersion": "3.12.3",
|
|
26
12
|
"files": [
|
|
27
13
|
"dist",
|
|
28
14
|
"etc"
|
|
29
15
|
],
|
|
30
|
-
"
|
|
16
|
+
"keywords": [],
|
|
17
|
+
"license": "Apache-2.0",
|
|
18
|
+
"main": "./dist/index.js",
|
|
19
|
+
"minCliVersion": "3.12.3",
|
|
20
|
+
"scripts": {
|
|
21
|
+
"build": "npm run build-ecs && node_modules/.bin/api-extractor run",
|
|
22
|
+
"build-ecs": "./../dcl-rollup/node_modules/.bin/rollup -c ./../dcl-rollup/playground-ecs.config.js",
|
|
23
|
+
"build-local": "npm run build-ecs && node_modules/.bin/api-extractor run --local --verbose --diagnostics"
|
|
24
|
+
},
|
|
25
|
+
"tsdoc": {
|
|
26
|
+
"tsdocFlavor": "AEDoc"
|
|
27
|
+
},
|
|
28
|
+
"types": "./dist/index.d.ts",
|
|
29
|
+
"typings": "./dist/index.d.ts",
|
|
30
|
+
"commit": "9f954df0bf811ad6c2f4af1e1ae86426ab05e950"
|
|
31
31
|
}
|