@playcanvas/web-components 0.10.0 → 0.10.1
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/app.d.ts +52 -7
- package/dist/asset.d.ts +9 -0
- package/dist/async-element.d.ts +12 -2
- package/dist/components/component.d.ts +5 -4
- package/dist/custom-elements.json +583 -110
- package/dist/entity.d.ts +5 -4
- package/dist/loading-bar.d.ts +35 -0
- package/dist/material.d.ts +8 -2
- package/dist/pwc.cjs +385 -105
- package/dist/pwc.cjs.map +1 -1
- package/dist/pwc.js +385 -105
- package/dist/pwc.js.map +1 -1
- package/dist/pwc.min.js +1 -1
- package/dist/pwc.min.js.map +1 -1
- package/dist/pwc.min.mjs +1 -1
- package/dist/pwc.min.mjs.map +1 -1
- package/dist/pwc.mjs +385 -105
- package/dist/pwc.mjs.map +1 -1
- package/dist/scene.d.ts +11 -3
- package/dist/vscode.html-custom-data.json +8 -3
- package/dist/web-types.json +322 -78
- package/package.json +1 -1
- package/src/app.ts +172 -73
- package/src/asset.ts +25 -0
- package/src/async-element.ts +14 -4
- package/src/components/component.ts +6 -5
- package/src/entity.ts +34 -18
- package/src/loading-bar.ts +122 -0
- package/src/material.ts +10 -4
- package/src/scene.ts +49 -19
package/dist/web-types.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"name": "@playcanvas/web-components",
|
|
4
|
-
"version": "0.10.
|
|
4
|
+
"version": "0.10.1",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
8
8
|
"elements": [
|
|
9
9
|
{
|
|
10
10
|
"name": "pc-app",
|
|
11
|
-
"description": "The AppElement interface provides properties and methods for manipulating\n[`<pc-app>`](https://developer.playcanvas.com/user-manual/web-components/tags/pc-app/) elements.\nThe AppElement interface also inherits the properties and methods of the\nHTMLElement interface.\n\n---\n\n\n### **Events:**\n - **ready** - Fired once the element is fully initialized. Bubbles and is composed.\n\n### **Methods:**\n \n- **ready(): __** - Returns a promise that resolves with this element when it's ready. This is the low-level\nprimitive underlying whenReady, which is the recommended way to wait for elements.",
|
|
11
|
+
"description": "The AppElement interface provides properties and methods for manipulating\n[`<pc-app>`](https://developer.playcanvas.com/user-manual/web-components/tags/pc-app/) elements.\nThe AppElement interface also inherits the properties and methods of the\nHTMLElement interface.\n\n---\n\n\n### **Events:**\n - **progress** - Fired while the application preloads its assets. `loaded` and `total` are asset counts, not bytes, and an asset that fails to load still counts as loaded. Fired at least once per boot, and the final event always has `loaded` equal to `total`. Does not bubble.\n- **ready** - Fired once the element is fully initialized. Bubbles and is composed.\n\n### **Methods:**\n \n- **ready(): __** - Returns a promise that resolves with this element when it's ready. This is the low-level\nprimitive underlying whenReady, which is the recommended way to wait for elements.",
|
|
12
12
|
"doc-url": "",
|
|
13
13
|
"attributes": [
|
|
14
14
|
{
|
|
@@ -39,6 +39,11 @@
|
|
|
39
39
|
"description": "The high resolution flag.",
|
|
40
40
|
"value": { "type": "boolean", "default": "true" }
|
|
41
41
|
},
|
|
42
|
+
{
|
|
43
|
+
"name": "loading-bar",
|
|
44
|
+
"description": "Whether the application shows its built-in loading bar while it boots and preloads its assets.",
|
|
45
|
+
"value": { "type": "boolean", "default": "true" }
|
|
46
|
+
},
|
|
42
47
|
{
|
|
43
48
|
"name": "stencil",
|
|
44
49
|
"description": "The stencil flag.",
|
|
@@ -46,6 +51,11 @@
|
|
|
46
51
|
}
|
|
47
52
|
],
|
|
48
53
|
"events": [
|
|
54
|
+
{
|
|
55
|
+
"name": "progress",
|
|
56
|
+
"type": "ProgressEvent",
|
|
57
|
+
"description": "Fired while the application preloads its assets. `loaded` and `total` are asset counts, not bytes, and an asset that fails to load still counts as loaded. Fired at least once per boot, and the final event always has `loaded` equal to `total`. Does not bubble."
|
|
58
|
+
},
|
|
49
59
|
{
|
|
50
60
|
"name": "ready",
|
|
51
61
|
"type": "CustomEvent",
|
|
@@ -56,8 +66,13 @@
|
|
|
56
66
|
"properties": [
|
|
57
67
|
{
|
|
58
68
|
"name": "app",
|
|
59
|
-
"description": "The PlayCanvas application instance.
|
|
60
|
-
"type": "AppBase"
|
|
69
|
+
"description": "The PlayCanvas application instance. `null` until the element is ready, and again once it\nhas been removed from the document — await whenReady or the element's `ready()`\npromise before accessing it.",
|
|
70
|
+
"type": "AppBase | null"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"name": "loadProgress",
|
|
74
|
+
"description": "The asset preload progress of the application, as a fraction from 0 to 1. It is 0 until\npreloading begins (and again once the element has been removed from the document), and 1\nonce preloading has finished — including when there was nothing to preload. Read this to\ninitialize a loading UI; subsequent updates arrive via the `progress` event.",
|
|
75
|
+
"type": "number"
|
|
61
76
|
},
|
|
62
77
|
{ "name": "alpha", "description": "Gets the alpha flag." },
|
|
63
78
|
{
|
|
@@ -73,11 +88,28 @@
|
|
|
73
88
|
"name": "highResolution",
|
|
74
89
|
"description": "Gets the high resolution flag."
|
|
75
90
|
},
|
|
91
|
+
{
|
|
92
|
+
"name": "loadingBar",
|
|
93
|
+
"description": "Gets whether the application shows its built-in loading bar while it boots and preloads\nits assets."
|
|
94
|
+
},
|
|
76
95
|
{ "name": "stencil", "description": "Gets the stencil flag." },
|
|
77
|
-
{
|
|
78
|
-
|
|
96
|
+
{
|
|
97
|
+
"name": "closestApp",
|
|
98
|
+
"description": "The nearest ancestor `<pc-app>` element, or `null` if this element has no `<pc-app>`\nancestor. The search starts at the parent, so an element never resolves to itself.",
|
|
99
|
+
"type": "AppElement | null"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"name": "closestEntity",
|
|
103
|
+
"description": "The nearest ancestor `<pc-entity>` element, or `null` if this element has no `<pc-entity>`\nancestor. The search starts at the parent, so an element never resolves to itself.",
|
|
104
|
+
"type": "EntityElement | null"
|
|
105
|
+
}
|
|
79
106
|
],
|
|
80
107
|
"events": [
|
|
108
|
+
{
|
|
109
|
+
"name": "progress",
|
|
110
|
+
"type": "ProgressEvent",
|
|
111
|
+
"description": "Fired while the application preloads its assets. `loaded` and `total` are asset counts, not bytes, and an asset that fails to load still counts as loaded. Fired at least once per boot, and the final event always has `loaded` equal to `total`. Does not bubble."
|
|
112
|
+
},
|
|
81
113
|
{
|
|
82
114
|
"name": "ready",
|
|
83
115
|
"type": "CustomEvent",
|
|
@@ -88,7 +120,7 @@
|
|
|
88
120
|
},
|
|
89
121
|
{
|
|
90
122
|
"name": "pc-asset",
|
|
91
|
-
"description": "The AssetElement interface provides properties and methods for manipulating\n[`<pc-asset>`](https://developer.playcanvas.com/user-manual/web-components/tags/pc-asset/) elements.\nThe AssetElement interface also inherits the properties and methods of the\nHTMLElement interface.\n\nThe element becomes ready once the containing application has started and the asset is in the\nstate declared by the markup: loaded for preloaded assets (even if loading failed — check the\nasset's `resource`), or registered and awaiting a load for `lazy` assets. Elements inserted\nwhile the application is running are created and registered on insertion, and begin loading\nimmediately unless `lazy`. A `pc-asset` must be a direct child of `pc-app` — elements placed\nelsewhere, or with an unsupported asset type, never become ready.\n\nApart from `lazy`, these attributes are read once when the asset is created, so changing them\nlater has no effect.\n\n---\n\n\n### **Events:**\n - **ready** - Fired once the element is fully initialized. Bubbles and is composed.\n\n### **Methods:**\n \n- **ready(): __** - Returns a promise that resolves with this element when it's ready. This is the low-level\nprimitive underlying whenReady, which is the recommended way to wait for elements.",
|
|
123
|
+
"description": "The AssetElement interface provides properties and methods for manipulating\n[`<pc-asset>`](https://developer.playcanvas.com/user-manual/web-components/tags/pc-asset/) elements.\nThe AssetElement interface also inherits the properties and methods of the\nHTMLElement interface.\n\nThe element becomes ready once the containing application has started and the asset is in the\nstate declared by the markup: loaded for preloaded assets (even if loading failed — check the\nasset's `resource`), or registered and awaiting a load for `lazy` assets. Elements inserted\nwhile the application is running are created and registered on insertion, and begin loading\nimmediately unless `lazy`. A `pc-asset` must be a direct child of `pc-app` — elements placed\nelsewhere, or with an unsupported asset type, never become ready.\n\nApart from `lazy`, these attributes are read once when the asset is created, so changing them\nlater has no effect.\n\n---\n\n\n### **Events:**\n - **error** - Fired when the asset fails to load, with the engine's error in `message`. Does not bubble. The element still becomes ready — readiness means the load settled, not that it succeeded.\n- **load** - Fired each time the asset finishes loading, including a `lazy` asset loaded later and any subsequent reloads. Does not bubble — listen on this element, or use a capture-phase listener on an ancestor to observe every asset.\n- **ready** - Fired once the element is fully initialized. Bubbles and is composed.\n\n### **Methods:**\n \n- **ready(): __** - Returns a promise that resolves with this element when it's ready. This is the low-level\nprimitive underlying whenReady, which is the recommended way to wait for elements.",
|
|
92
124
|
"doc-url": "",
|
|
93
125
|
"attributes": [
|
|
94
126
|
{
|
|
@@ -138,6 +170,16 @@
|
|
|
138
170
|
}
|
|
139
171
|
],
|
|
140
172
|
"events": [
|
|
173
|
+
{
|
|
174
|
+
"name": "error",
|
|
175
|
+
"type": "ErrorEvent",
|
|
176
|
+
"description": "Fired when the asset fails to load, with the engine's error in `message`. Does not bubble. The element still becomes ready — readiness means the load settled, not that it succeeded."
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"name": "load",
|
|
180
|
+
"type": "Event",
|
|
181
|
+
"description": "Fired each time the asset finishes loading, including a `lazy` asset loaded later and any subsequent reloads. Does not bubble — listen on this element, or use a capture-phase listener on an ancestor to observe every asset."
|
|
182
|
+
},
|
|
141
183
|
{
|
|
142
184
|
"name": "ready",
|
|
143
185
|
"type": "CustomEvent",
|
|
@@ -155,10 +197,28 @@
|
|
|
155
197
|
"name": "lazy",
|
|
156
198
|
"description": "Gets whether the asset should be loaded lazily."
|
|
157
199
|
},
|
|
158
|
-
{
|
|
159
|
-
|
|
200
|
+
{
|
|
201
|
+
"name": "closestApp",
|
|
202
|
+
"description": "The nearest ancestor `<pc-app>` element, or `null` if this element has no `<pc-app>`\nancestor. The search starts at the parent, so an element never resolves to itself.",
|
|
203
|
+
"type": "AppElement | null"
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
"name": "closestEntity",
|
|
207
|
+
"description": "The nearest ancestor `<pc-entity>` element, or `null` if this element has no `<pc-entity>`\nancestor. The search starts at the parent, so an element never resolves to itself.",
|
|
208
|
+
"type": "EntityElement | null"
|
|
209
|
+
}
|
|
160
210
|
],
|
|
161
211
|
"events": [
|
|
212
|
+
{
|
|
213
|
+
"name": "error",
|
|
214
|
+
"type": "ErrorEvent",
|
|
215
|
+
"description": "Fired when the asset fails to load, with the engine's error in `message`. Does not bubble. The element still becomes ready — readiness means the load settled, not that it succeeded."
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
"name": "load",
|
|
219
|
+
"type": "Event",
|
|
220
|
+
"description": "Fired each time the asset finishes loading, including a `lazy` asset loaded later and any subsequent reloads. Does not bubble — listen on this element, or use a capture-phase listener on an ancestor to observe every asset."
|
|
221
|
+
},
|
|
162
222
|
{
|
|
163
223
|
"name": "ready",
|
|
164
224
|
"type": "CustomEvent",
|
|
@@ -264,8 +324,8 @@
|
|
|
264
324
|
"properties": [
|
|
265
325
|
{
|
|
266
326
|
"name": "entity",
|
|
267
|
-
"description": "The PlayCanvas entity instance.
|
|
268
|
-
"type": "Entity"
|
|
327
|
+
"description": "The PlayCanvas entity instance. `null` until the element is ready, and again once it has\nbeen removed from the document — await whenReady or the element's `ready()`\npromise before accessing it.",
|
|
328
|
+
"type": "Entity | null"
|
|
269
329
|
},
|
|
270
330
|
{
|
|
271
331
|
"name": "enabled",
|
|
@@ -285,8 +345,16 @@
|
|
|
285
345
|
"description": "Gets the scale of the entity."
|
|
286
346
|
},
|
|
287
347
|
{ "name": "tags", "description": "Gets the tags of the entity." },
|
|
288
|
-
{
|
|
289
|
-
|
|
348
|
+
{
|
|
349
|
+
"name": "closestApp",
|
|
350
|
+
"description": "The nearest ancestor `<pc-app>` element, or `null` if this element has no `<pc-app>`\nancestor. The search starts at the parent, so an element never resolves to itself.",
|
|
351
|
+
"type": "AppElement | null"
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
"name": "closestEntity",
|
|
355
|
+
"description": "The nearest ancestor `<pc-entity>` element, or `null` if this element has no `<pc-entity>`\nancestor. The search starts at the parent, so an element never resolves to itself.",
|
|
356
|
+
"type": "EntityElement | null"
|
|
357
|
+
}
|
|
290
358
|
],
|
|
291
359
|
"events": [
|
|
292
360
|
{
|
|
@@ -324,7 +392,7 @@
|
|
|
324
392
|
},
|
|
325
393
|
{
|
|
326
394
|
"name": "pc-material",
|
|
327
|
-
"description": "The MaterialElement interface provides properties and methods for manipulating\n[`<pc-material>`](https://developer.playcanvas.com/user-manual/web-components/tags/pc-material/) elements.\nThe MaterialElement interface also inherits the properties and methods of the\nHTMLElement interface.\n\nA `pc-material` must be a direct child of `pc-app` — elements placed elsewhere log a warning\nand never create a material. Elements inserted while the application is already running are\ncreated on insertion.\n\nThe element is metal/rough by default: unlike a bare `StandardMaterial` it enables the metalness\nworkflow, which is what the `metalness-*` attributes assume and what glTF means by PBR.
|
|
395
|
+
"description": "The MaterialElement interface provides properties and methods for manipulating\n[`<pc-material>`](https://developer.playcanvas.com/user-manual/web-components/tags/pc-material/) elements.\nThe MaterialElement interface also inherits the properties and methods of the\nHTMLElement interface.\n\nA `pc-material` must be a direct child of `pc-app` — elements placed elsewhere log a warning\nand never create a material. Elements inserted while the application is already running are\ncreated on insertion.\n\nThe element is metal/rough by default: unlike a bare `StandardMaterial` it enables the metalness\nworkflow, which is what the `metalness-*` attributes assume and what glTF means by PBR. It also\ndefaults `metalness` to 0 rather than the engine's 1, because those two defaults have to be\nchosen together - the engine's 1 is unreachable under its own `useMetalness` of false, and with\nthe workflow on it would make every material fully metallic, so `<pc-material diffuse=\"crimson\">`\nwould render as dark tinted reflections of an environment that may not exist rather than as a\ncrimson surface. `metalness=\"1\"` remains one attribute away.\n\nThe `roughness` and `roughness-map` attributes are aliases for `gloss` and `gloss-map` that\nadditionally invert the gloss channel; do not mix the two families on one element.\n\nThe two aliases are documented here rather than on an accessor, because they resolve to the\n`gloss` properties and would otherwise inherit gloss's description - which reads inverted.\n\n---\n\n\n### **Methods:**\n - **setMap(id: _string_, slot: _TextureSlot_)** - Points a texture slot at the resource of a `pc-asset`, waiting for the asset to load when it\nhas not already. An empty id clears the slot.",
|
|
328
396
|
"doc-url": "",
|
|
329
397
|
"attributes": [
|
|
330
398
|
{
|
|
@@ -577,7 +645,7 @@
|
|
|
577
645
|
{
|
|
578
646
|
"name": "metalness",
|
|
579
647
|
"description": "How metallic the surface is.",
|
|
580
|
-
"value": { "type": "number", "default": "
|
|
648
|
+
"value": { "type": "number", "default": "0" }
|
|
581
649
|
},
|
|
582
650
|
{
|
|
583
651
|
"name": "metalness-map",
|
|
@@ -1127,8 +1195,16 @@
|
|
|
1127
1195
|
"description": "Gets the id of the `pc-asset` to use for the model.",
|
|
1128
1196
|
"type": "string"
|
|
1129
1197
|
},
|
|
1130
|
-
{
|
|
1131
|
-
|
|
1198
|
+
{
|
|
1199
|
+
"name": "closestApp",
|
|
1200
|
+
"description": "The nearest ancestor `<pc-app>` element, or `null` if this element has no `<pc-app>`\nancestor. The search starts at the parent, so an element never resolves to itself.",
|
|
1201
|
+
"type": "AppElement | null"
|
|
1202
|
+
},
|
|
1203
|
+
{
|
|
1204
|
+
"name": "closestEntity",
|
|
1205
|
+
"description": "The nearest ancestor `<pc-entity>` element, or `null` if this element has no `<pc-entity>`\nancestor. The search starts at the parent, so an element never resolves to itself.",
|
|
1206
|
+
"type": "EntityElement | null"
|
|
1207
|
+
}
|
|
1132
1208
|
],
|
|
1133
1209
|
"events": [
|
|
1134
1210
|
{
|
|
@@ -1218,8 +1294,8 @@
|
|
|
1218
1294
|
"properties": [
|
|
1219
1295
|
{
|
|
1220
1296
|
"name": "scene",
|
|
1221
|
-
"description": "The PlayCanvas scene instance.
|
|
1222
|
-
"type": "Scene"
|
|
1297
|
+
"description": "The PlayCanvas scene instance. `null` until the element is ready — await\nwhenReady or the element's `ready()` promise before accessing it.",
|
|
1298
|
+
"type": "Scene | null"
|
|
1223
1299
|
},
|
|
1224
1300
|
{
|
|
1225
1301
|
"name": "fog",
|
|
@@ -1245,8 +1321,16 @@
|
|
|
1245
1321
|
"name": "gravity",
|
|
1246
1322
|
"description": "Gets the gravity of the scene."
|
|
1247
1323
|
},
|
|
1248
|
-
{
|
|
1249
|
-
|
|
1324
|
+
{
|
|
1325
|
+
"name": "closestApp",
|
|
1326
|
+
"description": "The nearest ancestor `<pc-app>` element, or `null` if this element has no `<pc-app>`\nancestor. The search starts at the parent, so an element never resolves to itself.",
|
|
1327
|
+
"type": "AppElement | null"
|
|
1328
|
+
},
|
|
1329
|
+
{
|
|
1330
|
+
"name": "closestEntity",
|
|
1331
|
+
"description": "The nearest ancestor `<pc-entity>` element, or `null` if this element has no `<pc-entity>`\nancestor. The search starts at the parent, so an element never resolves to itself.",
|
|
1332
|
+
"type": "EntityElement | null"
|
|
1333
|
+
}
|
|
1250
1334
|
],
|
|
1251
1335
|
"events": [
|
|
1252
1336
|
{
|
|
@@ -1344,8 +1428,16 @@
|
|
|
1344
1428
|
"description": "Gets the scale of the skybox."
|
|
1345
1429
|
},
|
|
1346
1430
|
{ "name": "type", "description": "Gets the type of the skybox." },
|
|
1347
|
-
{
|
|
1348
|
-
|
|
1431
|
+
{
|
|
1432
|
+
"name": "closestApp",
|
|
1433
|
+
"description": "The nearest ancestor `<pc-app>` element, or `null` if this element has no `<pc-app>`\nancestor. The search starts at the parent, so an element never resolves to itself.",
|
|
1434
|
+
"type": "AppElement | null"
|
|
1435
|
+
},
|
|
1436
|
+
{
|
|
1437
|
+
"name": "closestEntity",
|
|
1438
|
+
"description": "The nearest ancestor `<pc-entity>` element, or `null` if this element has no `<pc-entity>`\nancestor. The search starts at the parent, so an element never resolves to itself.",
|
|
1439
|
+
"type": "EntityElement | null"
|
|
1440
|
+
}
|
|
1349
1441
|
],
|
|
1350
1442
|
"events": [
|
|
1351
1443
|
{
|
|
@@ -1449,7 +1541,7 @@
|
|
|
1449
1541
|
{
|
|
1450
1542
|
"name": "component",
|
|
1451
1543
|
"description": "Gets the underlying PlayCanvas button component.",
|
|
1452
|
-
"type": "Component"
|
|
1544
|
+
"type": "Component | null"
|
|
1453
1545
|
},
|
|
1454
1546
|
{
|
|
1455
1547
|
"name": "active",
|
|
@@ -1511,8 +1603,16 @@
|
|
|
1511
1603
|
"name": "enabled",
|
|
1512
1604
|
"description": "Gets the enabled state of the component."
|
|
1513
1605
|
},
|
|
1514
|
-
{
|
|
1515
|
-
|
|
1606
|
+
{
|
|
1607
|
+
"name": "closestApp",
|
|
1608
|
+
"description": "The nearest ancestor `<pc-app>` element, or `null` if this element has no `<pc-app>`\nancestor. The search starts at the parent, so an element never resolves to itself.",
|
|
1609
|
+
"type": "AppElement | null"
|
|
1610
|
+
},
|
|
1611
|
+
{
|
|
1612
|
+
"name": "closestEntity",
|
|
1613
|
+
"description": "The nearest ancestor `<pc-entity>` element, or `null` if this element has no `<pc-entity>`\nancestor. The search starts at the parent, so an element never resolves to itself.",
|
|
1614
|
+
"type": "EntityElement | null"
|
|
1615
|
+
}
|
|
1516
1616
|
],
|
|
1517
1617
|
"events": [
|
|
1518
1618
|
{
|
|
@@ -1640,7 +1740,7 @@
|
|
|
1640
1740
|
{
|
|
1641
1741
|
"name": "component",
|
|
1642
1742
|
"description": "Gets the underlying PlayCanvas camera component.",
|
|
1643
|
-
"type": "Component"
|
|
1743
|
+
"type": "Component | null"
|
|
1644
1744
|
},
|
|
1645
1745
|
{
|
|
1646
1746
|
"name": "clearColor",
|
|
@@ -1735,8 +1835,16 @@
|
|
|
1735
1835
|
"name": "enabled",
|
|
1736
1836
|
"description": "Gets the enabled state of the component."
|
|
1737
1837
|
},
|
|
1738
|
-
{
|
|
1739
|
-
|
|
1838
|
+
{
|
|
1839
|
+
"name": "closestApp",
|
|
1840
|
+
"description": "The nearest ancestor `<pc-app>` element, or `null` if this element has no `<pc-app>`\nancestor. The search starts at the parent, so an element never resolves to itself.",
|
|
1841
|
+
"type": "AppElement | null"
|
|
1842
|
+
},
|
|
1843
|
+
{
|
|
1844
|
+
"name": "closestEntity",
|
|
1845
|
+
"description": "The nearest ancestor `<pc-entity>` element, or `null` if this element has no `<pc-entity>`\nancestor. The search starts at the parent, so an element never resolves to itself.",
|
|
1846
|
+
"type": "EntityElement | null"
|
|
1847
|
+
}
|
|
1740
1848
|
],
|
|
1741
1849
|
"events": [
|
|
1742
1850
|
{
|
|
@@ -1802,7 +1910,7 @@
|
|
|
1802
1910
|
{
|
|
1803
1911
|
"name": "component",
|
|
1804
1912
|
"description": "Gets the underlying PlayCanvas collision component.",
|
|
1805
|
-
"type": "Component"
|
|
1913
|
+
"type": "Component | null"
|
|
1806
1914
|
},
|
|
1807
1915
|
{ "name": "angularOffset" },
|
|
1808
1916
|
{ "name": "axis" },
|
|
@@ -1816,8 +1924,16 @@
|
|
|
1816
1924
|
"name": "enabled",
|
|
1817
1925
|
"description": "Gets the enabled state of the component."
|
|
1818
1926
|
},
|
|
1819
|
-
{
|
|
1820
|
-
|
|
1927
|
+
{
|
|
1928
|
+
"name": "closestApp",
|
|
1929
|
+
"description": "The nearest ancestor `<pc-app>` element, or `null` if this element has no `<pc-app>`\nancestor. The search starts at the parent, so an element never resolves to itself.",
|
|
1930
|
+
"type": "AppElement | null"
|
|
1931
|
+
},
|
|
1932
|
+
{
|
|
1933
|
+
"name": "closestEntity",
|
|
1934
|
+
"description": "The nearest ancestor `<pc-entity>` element, or `null` if this element has no `<pc-entity>`\nancestor. The search starts at the parent, so an element never resolves to itself.",
|
|
1935
|
+
"type": "EntityElement | null"
|
|
1936
|
+
}
|
|
1821
1937
|
],
|
|
1822
1938
|
"events": [
|
|
1823
1939
|
{
|
|
@@ -1984,7 +2100,7 @@
|
|
|
1984
2100
|
{
|
|
1985
2101
|
"name": "component",
|
|
1986
2102
|
"description": "Gets the underlying PlayCanvas element component.",
|
|
1987
|
-
"type": "Component"
|
|
2103
|
+
"type": "Component | null"
|
|
1988
2104
|
},
|
|
1989
2105
|
{
|
|
1990
2106
|
"name": "anchor",
|
|
@@ -2095,8 +2211,16 @@
|
|
|
2095
2211
|
"name": "enabled",
|
|
2096
2212
|
"description": "Gets the enabled state of the component."
|
|
2097
2213
|
},
|
|
2098
|
-
{
|
|
2099
|
-
|
|
2214
|
+
{
|
|
2215
|
+
"name": "closestApp",
|
|
2216
|
+
"description": "The nearest ancestor `<pc-app>` element, or `null` if this element has no `<pc-app>`\nancestor. The search starts at the parent, so an element never resolves to itself.",
|
|
2217
|
+
"type": "AppElement | null"
|
|
2218
|
+
},
|
|
2219
|
+
{
|
|
2220
|
+
"name": "closestEntity",
|
|
2221
|
+
"description": "The nearest ancestor `<pc-entity>` element, or `null` if this element has no `<pc-entity>`\nancestor. The search starts at the parent, so an element never resolves to itself.",
|
|
2222
|
+
"type": "EntityElement | null"
|
|
2223
|
+
}
|
|
2100
2224
|
],
|
|
2101
2225
|
"events": [
|
|
2102
2226
|
{
|
|
@@ -2160,7 +2284,7 @@
|
|
|
2160
2284
|
{
|
|
2161
2285
|
"name": "component",
|
|
2162
2286
|
"description": "Gets the underlying PlayCanvas gsplat component.",
|
|
2163
|
-
"type": "Component"
|
|
2287
|
+
"type": "Component | null"
|
|
2164
2288
|
},
|
|
2165
2289
|
{
|
|
2166
2290
|
"name": "asset",
|
|
@@ -2190,8 +2314,16 @@
|
|
|
2190
2314
|
"name": "enabled",
|
|
2191
2315
|
"description": "Gets the enabled state of the component."
|
|
2192
2316
|
},
|
|
2193
|
-
{
|
|
2194
|
-
|
|
2317
|
+
{
|
|
2318
|
+
"name": "closestApp",
|
|
2319
|
+
"description": "The nearest ancestor `<pc-app>` element, or `null` if this element has no `<pc-app>`\nancestor. The search starts at the parent, so an element never resolves to itself.",
|
|
2320
|
+
"type": "AppElement | null"
|
|
2321
|
+
},
|
|
2322
|
+
{
|
|
2323
|
+
"name": "closestEntity",
|
|
2324
|
+
"description": "The nearest ancestor `<pc-entity>` element, or `null` if this element has no `<pc-entity>`\nancestor. The search starts at the parent, so an element never resolves to itself.",
|
|
2325
|
+
"type": "EntityElement | null"
|
|
2326
|
+
}
|
|
2195
2327
|
],
|
|
2196
2328
|
"events": [
|
|
2197
2329
|
{
|
|
@@ -2260,7 +2392,7 @@
|
|
|
2260
2392
|
{
|
|
2261
2393
|
"name": "component",
|
|
2262
2394
|
"description": "Gets the underlying PlayCanvas layout child component.",
|
|
2263
|
-
"type": "Component"
|
|
2395
|
+
"type": "Component | null"
|
|
2264
2396
|
},
|
|
2265
2397
|
{
|
|
2266
2398
|
"name": "minWidth",
|
|
@@ -2294,8 +2426,16 @@
|
|
|
2294
2426
|
"name": "enabled",
|
|
2295
2427
|
"description": "Gets the enabled state of the component."
|
|
2296
2428
|
},
|
|
2297
|
-
{
|
|
2298
|
-
|
|
2429
|
+
{
|
|
2430
|
+
"name": "closestApp",
|
|
2431
|
+
"description": "The nearest ancestor `<pc-app>` element, or `null` if this element has no `<pc-app>`\nancestor. The search starts at the parent, so an element never resolves to itself.",
|
|
2432
|
+
"type": "AppElement | null"
|
|
2433
|
+
},
|
|
2434
|
+
{
|
|
2435
|
+
"name": "closestEntity",
|
|
2436
|
+
"description": "The nearest ancestor `<pc-entity>` element, or `null` if this element has no `<pc-entity>`\nancestor. The search starts at the parent, so an element never resolves to itself.",
|
|
2437
|
+
"type": "EntityElement | null"
|
|
2438
|
+
}
|
|
2299
2439
|
],
|
|
2300
2440
|
"events": [
|
|
2301
2441
|
{
|
|
@@ -2383,7 +2523,7 @@
|
|
|
2383
2523
|
{
|
|
2384
2524
|
"name": "component",
|
|
2385
2525
|
"description": "Gets the underlying PlayCanvas layout group component.",
|
|
2386
|
-
"type": "Component"
|
|
2526
|
+
"type": "Component | null"
|
|
2387
2527
|
},
|
|
2388
2528
|
{
|
|
2389
2529
|
"name": "orientation",
|
|
@@ -2425,8 +2565,16 @@
|
|
|
2425
2565
|
"name": "enabled",
|
|
2426
2566
|
"description": "Gets the enabled state of the component."
|
|
2427
2567
|
},
|
|
2428
|
-
{
|
|
2429
|
-
|
|
2568
|
+
{
|
|
2569
|
+
"name": "closestApp",
|
|
2570
|
+
"description": "The nearest ancestor `<pc-app>` element, or `null` if this element has no `<pc-app>`\nancestor. The search starts at the parent, so an element never resolves to itself.",
|
|
2571
|
+
"type": "AppElement | null"
|
|
2572
|
+
},
|
|
2573
|
+
{
|
|
2574
|
+
"name": "closestEntity",
|
|
2575
|
+
"description": "The nearest ancestor `<pc-entity>` element, or `null` if this element has no `<pc-entity>`\nancestor. The search starts at the parent, so an element never resolves to itself.",
|
|
2576
|
+
"type": "EntityElement | null"
|
|
2577
|
+
}
|
|
2430
2578
|
],
|
|
2431
2579
|
"events": [
|
|
2432
2580
|
{
|
|
@@ -2561,7 +2709,7 @@
|
|
|
2561
2709
|
{
|
|
2562
2710
|
"name": "component",
|
|
2563
2711
|
"description": "Gets the underlying PlayCanvas light component.",
|
|
2564
|
-
"type": "Component"
|
|
2712
|
+
"type": "Component | null"
|
|
2565
2713
|
},
|
|
2566
2714
|
{
|
|
2567
2715
|
"name": "castShadows",
|
|
@@ -2640,8 +2788,16 @@
|
|
|
2640
2788
|
"name": "enabled",
|
|
2641
2789
|
"description": "Gets the enabled state of the component."
|
|
2642
2790
|
},
|
|
2643
|
-
{
|
|
2644
|
-
|
|
2791
|
+
{
|
|
2792
|
+
"name": "closestApp",
|
|
2793
|
+
"description": "The nearest ancestor `<pc-app>` element, or `null` if this element has no `<pc-app>`\nancestor. The search starts at the parent, so an element never resolves to itself.",
|
|
2794
|
+
"type": "AppElement | null"
|
|
2795
|
+
},
|
|
2796
|
+
{
|
|
2797
|
+
"name": "closestEntity",
|
|
2798
|
+
"description": "The nearest ancestor `<pc-entity>` element, or `null` if this element has no `<pc-entity>`\nancestor. The search starts at the parent, so an element never resolves to itself.",
|
|
2799
|
+
"type": "EntityElement | null"
|
|
2800
|
+
}
|
|
2645
2801
|
],
|
|
2646
2802
|
"events": [
|
|
2647
2803
|
{
|
|
@@ -2675,14 +2831,22 @@
|
|
|
2675
2831
|
{
|
|
2676
2832
|
"name": "component",
|
|
2677
2833
|
"description": "Gets the underlying PlayCanvas audio listener component.",
|
|
2678
|
-
"type": "Component"
|
|
2834
|
+
"type": "Component | null"
|
|
2679
2835
|
},
|
|
2680
2836
|
{
|
|
2681
2837
|
"name": "enabled",
|
|
2682
2838
|
"description": "Gets the enabled state of the component."
|
|
2683
2839
|
},
|
|
2684
|
-
{
|
|
2685
|
-
|
|
2840
|
+
{
|
|
2841
|
+
"name": "closestApp",
|
|
2842
|
+
"description": "The nearest ancestor `<pc-app>` element, or `null` if this element has no `<pc-app>`\nancestor. The search starts at the parent, so an element never resolves to itself.",
|
|
2843
|
+
"type": "AppElement | null"
|
|
2844
|
+
},
|
|
2845
|
+
{
|
|
2846
|
+
"name": "closestEntity",
|
|
2847
|
+
"description": "The nearest ancestor `<pc-entity>` element, or `null` if this element has no `<pc-entity>`\nancestor. The search starts at the parent, so an element never resolves to itself.",
|
|
2848
|
+
"type": "EntityElement | null"
|
|
2849
|
+
}
|
|
2686
2850
|
],
|
|
2687
2851
|
"events": [
|
|
2688
2852
|
{
|
|
@@ -2721,7 +2885,7 @@
|
|
|
2721
2885
|
{
|
|
2722
2886
|
"name": "component",
|
|
2723
2887
|
"description": "Gets the underlying PlayCanvas particle system component.",
|
|
2724
|
-
"type": "Component"
|
|
2888
|
+
"type": "Component | null"
|
|
2725
2889
|
},
|
|
2726
2890
|
{
|
|
2727
2891
|
"name": "asset",
|
|
@@ -2732,8 +2896,16 @@
|
|
|
2732
2896
|
"name": "enabled",
|
|
2733
2897
|
"description": "Gets the enabled state of the component."
|
|
2734
2898
|
},
|
|
2735
|
-
{
|
|
2736
|
-
|
|
2899
|
+
{
|
|
2900
|
+
"name": "closestApp",
|
|
2901
|
+
"description": "The nearest ancestor `<pc-app>` element, or `null` if this element has no `<pc-app>`\nancestor. The search starts at the parent, so an element never resolves to itself.",
|
|
2902
|
+
"type": "AppElement | null"
|
|
2903
|
+
},
|
|
2904
|
+
{
|
|
2905
|
+
"name": "closestEntity",
|
|
2906
|
+
"description": "The nearest ancestor `<pc-entity>` element, or `null` if this element has no `<pc-entity>`\nancestor. The search starts at the parent, so an element never resolves to itself.",
|
|
2907
|
+
"type": "EntityElement | null"
|
|
2908
|
+
}
|
|
2737
2909
|
],
|
|
2738
2910
|
"events": [
|
|
2739
2911
|
{
|
|
@@ -2790,7 +2962,7 @@
|
|
|
2790
2962
|
{
|
|
2791
2963
|
"name": "component",
|
|
2792
2964
|
"description": "Gets the underlying PlayCanvas render component.",
|
|
2793
|
-
"type": "Component"
|
|
2965
|
+
"type": "Component | null"
|
|
2794
2966
|
},
|
|
2795
2967
|
{
|
|
2796
2968
|
"name": "type",
|
|
@@ -2815,8 +2987,16 @@
|
|
|
2815
2987
|
"name": "enabled",
|
|
2816
2988
|
"description": "Gets the enabled state of the component."
|
|
2817
2989
|
},
|
|
2818
|
-
{
|
|
2819
|
-
|
|
2990
|
+
{
|
|
2991
|
+
"name": "closestApp",
|
|
2992
|
+
"description": "The nearest ancestor `<pc-app>` element, or `null` if this element has no `<pc-app>`\nancestor. The search starts at the parent, so an element never resolves to itself.",
|
|
2993
|
+
"type": "AppElement | null"
|
|
2994
|
+
},
|
|
2995
|
+
{
|
|
2996
|
+
"name": "closestEntity",
|
|
2997
|
+
"description": "The nearest ancestor `<pc-entity>` element, or `null` if this element has no `<pc-entity>`\nancestor. The search starts at the parent, so an element never resolves to itself.",
|
|
2998
|
+
"type": "EntityElement | null"
|
|
2999
|
+
}
|
|
2820
3000
|
],
|
|
2821
3001
|
"events": [
|
|
2822
3002
|
{
|
|
@@ -2888,7 +3068,7 @@
|
|
|
2888
3068
|
{
|
|
2889
3069
|
"name": "component",
|
|
2890
3070
|
"description": "Gets the underlying PlayCanvas rigidbody component.",
|
|
2891
|
-
"type": "Component"
|
|
3071
|
+
"type": "Component | null"
|
|
2892
3072
|
},
|
|
2893
3073
|
{ "name": "angularDamping" },
|
|
2894
3074
|
{ "name": "angularFactor" },
|
|
@@ -2903,8 +3083,16 @@
|
|
|
2903
3083
|
"name": "enabled",
|
|
2904
3084
|
"description": "Gets the enabled state of the component."
|
|
2905
3085
|
},
|
|
2906
|
-
{
|
|
2907
|
-
|
|
3086
|
+
{
|
|
3087
|
+
"name": "closestApp",
|
|
3088
|
+
"description": "The nearest ancestor `<pc-app>` element, or `null` if this element has no `<pc-app>`\nancestor. The search starts at the parent, so an element never resolves to itself.",
|
|
3089
|
+
"type": "AppElement | null"
|
|
3090
|
+
},
|
|
3091
|
+
{
|
|
3092
|
+
"name": "closestEntity",
|
|
3093
|
+
"description": "The nearest ancestor `<pc-entity>` element, or `null` if this element has no `<pc-entity>`\nancestor. The search starts at the parent, so an element never resolves to itself.",
|
|
3094
|
+
"type": "EntityElement | null"
|
|
3095
|
+
}
|
|
2908
3096
|
],
|
|
2909
3097
|
"events": [
|
|
2910
3098
|
{
|
|
@@ -2964,7 +3152,7 @@
|
|
|
2964
3152
|
{
|
|
2965
3153
|
"name": "component",
|
|
2966
3154
|
"description": "Gets the underlying PlayCanvas screen component.",
|
|
2967
|
-
"type": "Component"
|
|
3155
|
+
"type": "Component | null"
|
|
2968
3156
|
},
|
|
2969
3157
|
{ "name": "priority" },
|
|
2970
3158
|
{ "name": "referenceResolution" },
|
|
@@ -2976,8 +3164,16 @@
|
|
|
2976
3164
|
"name": "enabled",
|
|
2977
3165
|
"description": "Gets the enabled state of the component."
|
|
2978
3166
|
},
|
|
2979
|
-
{
|
|
2980
|
-
|
|
3167
|
+
{
|
|
3168
|
+
"name": "closestApp",
|
|
3169
|
+
"description": "The nearest ancestor `<pc-app>` element, or `null` if this element has no `<pc-app>`\nancestor. The search starts at the parent, so an element never resolves to itself.",
|
|
3170
|
+
"type": "AppElement | null"
|
|
3171
|
+
},
|
|
3172
|
+
{
|
|
3173
|
+
"name": "closestEntity",
|
|
3174
|
+
"description": "The nearest ancestor `<pc-entity>` element, or `null` if this element has no `<pc-entity>`\nancestor. The search starts at the parent, so an element never resolves to itself.",
|
|
3175
|
+
"type": "EntityElement | null"
|
|
3176
|
+
}
|
|
2981
3177
|
],
|
|
2982
3178
|
"events": [
|
|
2983
3179
|
{
|
|
@@ -3011,14 +3207,22 @@
|
|
|
3011
3207
|
{
|
|
3012
3208
|
"name": "component",
|
|
3013
3209
|
"description": "Gets the underlying PlayCanvas script component.",
|
|
3014
|
-
"type": "Component"
|
|
3210
|
+
"type": "Component | null"
|
|
3015
3211
|
},
|
|
3016
3212
|
{
|
|
3017
3213
|
"name": "enabled",
|
|
3018
3214
|
"description": "Gets the enabled state of the component."
|
|
3019
3215
|
},
|
|
3020
|
-
{
|
|
3021
|
-
|
|
3216
|
+
{
|
|
3217
|
+
"name": "closestApp",
|
|
3218
|
+
"description": "The nearest ancestor `<pc-app>` element, or `null` if this element has no `<pc-app>`\nancestor. The search starts at the parent, so an element never resolves to itself.",
|
|
3219
|
+
"type": "AppElement | null"
|
|
3220
|
+
},
|
|
3221
|
+
{
|
|
3222
|
+
"name": "closestEntity",
|
|
3223
|
+
"description": "The nearest ancestor `<pc-entity>` element, or `null` if this element has no `<pc-entity>`\nancestor. The search starts at the parent, so an element never resolves to itself.",
|
|
3224
|
+
"type": "EntityElement | null"
|
|
3225
|
+
}
|
|
3022
3226
|
],
|
|
3023
3227
|
"events": [
|
|
3024
3228
|
{
|
|
@@ -3089,8 +3293,16 @@
|
|
|
3089
3293
|
"description": "Gets the Script instance created for this element. Returns `null` until the\ninstance exists — await whenReady or the element's `ready()` promise before\naccessing it.",
|
|
3090
3294
|
"type": "Script | null"
|
|
3091
3295
|
},
|
|
3092
|
-
{
|
|
3093
|
-
|
|
3296
|
+
{
|
|
3297
|
+
"name": "closestApp",
|
|
3298
|
+
"description": "The nearest ancestor `<pc-app>` element, or `null` if this element has no `<pc-app>`\nancestor. The search starts at the parent, so an element never resolves to itself.",
|
|
3299
|
+
"type": "AppElement | null"
|
|
3300
|
+
},
|
|
3301
|
+
{
|
|
3302
|
+
"name": "closestEntity",
|
|
3303
|
+
"description": "The nearest ancestor `<pc-entity>` element, or `null` if this element has no `<pc-entity>`\nancestor. The search starts at the parent, so an element never resolves to itself.",
|
|
3304
|
+
"type": "EntityElement | null"
|
|
3305
|
+
}
|
|
3094
3306
|
],
|
|
3095
3307
|
"events": [
|
|
3096
3308
|
{
|
|
@@ -3162,7 +3374,7 @@
|
|
|
3162
3374
|
{
|
|
3163
3375
|
"name": "component",
|
|
3164
3376
|
"description": "Gets the underlying PlayCanvas scrollbar component.",
|
|
3165
|
-
"type": "Component"
|
|
3377
|
+
"type": "Component | null"
|
|
3166
3378
|
},
|
|
3167
3379
|
{
|
|
3168
3380
|
"name": "orientation",
|
|
@@ -3184,8 +3396,16 @@
|
|
|
3184
3396
|
"name": "enabled",
|
|
3185
3397
|
"description": "Gets the enabled state of the component."
|
|
3186
3398
|
},
|
|
3187
|
-
{
|
|
3188
|
-
|
|
3399
|
+
{
|
|
3400
|
+
"name": "closestApp",
|
|
3401
|
+
"description": "The nearest ancestor `<pc-app>` element, or `null` if this element has no `<pc-app>`\nancestor. The search starts at the parent, so an element never resolves to itself.",
|
|
3402
|
+
"type": "AppElement | null"
|
|
3403
|
+
},
|
|
3404
|
+
{
|
|
3405
|
+
"name": "closestEntity",
|
|
3406
|
+
"description": "The nearest ancestor `<pc-entity>` element, or `null` if this element has no `<pc-entity>`\nancestor. The search starts at the parent, so an element never resolves to itself.",
|
|
3407
|
+
"type": "EntityElement | null"
|
|
3408
|
+
}
|
|
3189
3409
|
],
|
|
3190
3410
|
"events": [
|
|
3191
3411
|
{
|
|
@@ -3293,7 +3513,7 @@
|
|
|
3293
3513
|
{
|
|
3294
3514
|
"name": "component",
|
|
3295
3515
|
"description": "Gets the underlying PlayCanvas scroll view component.",
|
|
3296
|
-
"type": "Component"
|
|
3516
|
+
"type": "Component | null"
|
|
3297
3517
|
},
|
|
3298
3518
|
{
|
|
3299
3519
|
"name": "horizontal",
|
|
@@ -3348,8 +3568,16 @@
|
|
|
3348
3568
|
"name": "enabled",
|
|
3349
3569
|
"description": "Gets the enabled state of the component."
|
|
3350
3570
|
},
|
|
3351
|
-
{
|
|
3352
|
-
|
|
3571
|
+
{
|
|
3572
|
+
"name": "closestApp",
|
|
3573
|
+
"description": "The nearest ancestor `<pc-app>` element, or `null` if this element has no `<pc-app>`\nancestor. The search starts at the parent, so an element never resolves to itself.",
|
|
3574
|
+
"type": "AppElement | null"
|
|
3575
|
+
},
|
|
3576
|
+
{
|
|
3577
|
+
"name": "closestEntity",
|
|
3578
|
+
"description": "The nearest ancestor `<pc-entity>` element, or `null` if this element has no `<pc-entity>`\nancestor. The search starts at the parent, so an element never resolves to itself.",
|
|
3579
|
+
"type": "EntityElement | null"
|
|
3580
|
+
}
|
|
3353
3581
|
],
|
|
3354
3582
|
"events": [
|
|
3355
3583
|
{
|
|
@@ -3421,7 +3649,7 @@
|
|
|
3421
3649
|
{
|
|
3422
3650
|
"name": "component",
|
|
3423
3651
|
"description": "Gets the underlying PlayCanvas sound component.",
|
|
3424
|
-
"type": "Component"
|
|
3652
|
+
"type": "Component | null"
|
|
3425
3653
|
},
|
|
3426
3654
|
{
|
|
3427
3655
|
"name": "distanceModel",
|
|
@@ -3456,8 +3684,16 @@
|
|
|
3456
3684
|
"name": "enabled",
|
|
3457
3685
|
"description": "Gets the enabled state of the component."
|
|
3458
3686
|
},
|
|
3459
|
-
{
|
|
3460
|
-
|
|
3687
|
+
{
|
|
3688
|
+
"name": "closestApp",
|
|
3689
|
+
"description": "The nearest ancestor `<pc-app>` element, or `null` if this element has no `<pc-app>`\nancestor. The search starts at the parent, so an element never resolves to itself.",
|
|
3690
|
+
"type": "AppElement | null"
|
|
3691
|
+
},
|
|
3692
|
+
{
|
|
3693
|
+
"name": "closestEntity",
|
|
3694
|
+
"description": "The nearest ancestor `<pc-entity>` element, or `null` if this element has no `<pc-entity>`\nancestor. The search starts at the parent, so an element never resolves to itself.",
|
|
3695
|
+
"type": "EntityElement | null"
|
|
3696
|
+
}
|
|
3461
3697
|
],
|
|
3462
3698
|
"events": [
|
|
3463
3699
|
{
|
|
@@ -3570,8 +3806,16 @@
|
|
|
3570
3806
|
"name": "volume",
|
|
3571
3807
|
"description": "Gets the volume of the sound slot."
|
|
3572
3808
|
},
|
|
3573
|
-
{
|
|
3574
|
-
|
|
3809
|
+
{
|
|
3810
|
+
"name": "closestApp",
|
|
3811
|
+
"description": "The nearest ancestor `<pc-app>` element, or `null` if this element has no `<pc-app>`\nancestor. The search starts at the parent, so an element never resolves to itself.",
|
|
3812
|
+
"type": "AppElement | null"
|
|
3813
|
+
},
|
|
3814
|
+
{
|
|
3815
|
+
"name": "closestEntity",
|
|
3816
|
+
"description": "The nearest ancestor `<pc-entity>` element, or `null` if this element has no `<pc-entity>`\nancestor. The search starts at the parent, so an element never resolves to itself.",
|
|
3817
|
+
"type": "EntityElement | null"
|
|
3818
|
+
}
|
|
3575
3819
|
],
|
|
3576
3820
|
"events": [
|
|
3577
3821
|
{
|