@playcanvas/web-components 0.19.0 → 0.21.0
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.cts +5 -99
- package/dist/app.d.ts +5 -99
- package/dist/asset-binding.d.cts +1 -0
- package/dist/asset-binding.d.ts +1 -0
- package/dist/components/anim-clip.d.cts +8 -10
- package/dist/components/anim-clip.d.ts +8 -10
- package/dist/components/anim-component.d.cts +5 -4
- package/dist/components/anim-component.d.ts +5 -4
- package/dist/components/audio-listener-component.d.cts +5 -4
- package/dist/components/audio-listener-component.d.ts +5 -4
- package/dist/components/button-component.d.cts +14 -9
- package/dist/components/button-component.d.ts +14 -9
- package/dist/components/camera-component.d.cts +5 -4
- package/dist/components/camera-component.d.ts +5 -4
- package/dist/components/collision-component.d.cts +5 -4
- package/dist/components/collision-component.d.ts +5 -4
- package/dist/components/component.d.cts +2 -2
- package/dist/components/component.d.ts +2 -2
- package/dist/components/element-component.d.cts +5 -4
- package/dist/components/element-component.d.ts +5 -4
- package/dist/components/gsplat-component.d.cts +5 -4
- package/dist/components/gsplat-component.d.ts +5 -4
- package/dist/components/joint-component.d.cts +29 -14
- package/dist/components/joint-component.d.ts +29 -14
- package/dist/components/layout-child-component.d.cts +5 -4
- package/dist/components/layout-child-component.d.ts +5 -4
- package/dist/components/layout-group-component.d.cts +5 -4
- package/dist/components/layout-group-component.d.ts +5 -4
- package/dist/components/light-component.d.cts +5 -4
- package/dist/components/light-component.d.ts +5 -4
- package/dist/components/particle-system-component.d.cts +22 -5
- package/dist/components/particle-system-component.d.ts +22 -5
- package/dist/components/render-component.d.cts +5 -4
- package/dist/components/render-component.d.ts +5 -4
- package/dist/components/rigid-body-component.d.cts +5 -4
- package/dist/components/rigid-body-component.d.ts +5 -4
- package/dist/components/screen-component.d.cts +5 -4
- package/dist/components/screen-component.d.ts +5 -4
- package/dist/components/script-component.d.cts +9 -6
- package/dist/components/script-component.d.ts +9 -6
- package/dist/components/script-instance.d.cts +14 -6
- package/dist/components/script-instance.d.ts +14 -6
- package/dist/components/scroll-view-component.d.cts +29 -16
- package/dist/components/scroll-view-component.d.ts +29 -16
- package/dist/components/scrollbar-component.d.cts +11 -7
- package/dist/components/scrollbar-component.d.ts +11 -7
- package/dist/components/sound-component.d.cts +5 -4
- package/dist/components/sound-component.d.ts +5 -4
- package/dist/custom-elements.json +59 -59
- package/dist/entity-reference.d.cts +13 -0
- package/dist/entity-reference.d.ts +13 -0
- package/dist/material.d.cts +8 -6
- package/dist/material.d.ts +8 -6
- package/dist/model.d.cts +8 -9
- package/dist/model.d.ts +8 -9
- package/dist/parse.d.cts +0 -3
- package/dist/parse.d.ts +0 -3
- package/dist/pointer-controller.d.cts +1 -0
- package/dist/pointer-controller.d.ts +1 -0
- package/dist/pwc.cjs +1085 -633
- package/dist/pwc.cjs.map +1 -1
- package/dist/pwc.js +1085 -633
- 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 +1086 -634
- package/dist/pwc.mjs.map +1 -1
- package/dist/sky.d.cts +6 -7
- package/dist/sky.d.ts +6 -7
- package/dist/vscode.html-custom-data.json +10 -10
- package/dist/web-types.json +58 -58
- package/package.json +3 -3
- package/src/app.ts +16 -416
- package/src/asset-binding.ts +141 -0
- package/src/components/anim-clip.ts +22 -45
- package/src/components/anim-component.ts +10 -6
- package/src/components/audio-listener-component.ts +6 -5
- package/src/components/button-component.ts +25 -15
- package/src/components/camera-component.ts +6 -5
- package/src/components/collision-component.ts +6 -5
- package/src/components/component.ts +6 -4
- package/src/components/element-component.ts +6 -5
- package/src/components/gsplat-component.ts +6 -5
- package/src/components/joint-component.ts +36 -20
- package/src/components/layout-child-component.ts +6 -5
- package/src/components/layout-group-component.ts +6 -5
- package/src/components/light-component.ts +6 -5
- package/src/components/particle-system-component.ts +56 -30
- package/src/components/render-component.ts +6 -5
- package/src/components/rigid-body-component.ts +6 -5
- package/src/components/screen-component.ts +6 -5
- package/src/components/script-component.ts +28 -17
- package/src/components/script-instance.ts +14 -6
- package/src/components/scroll-view-component.ts +56 -34
- package/src/components/scrollbar-component.ts +20 -13
- package/src/components/sound-component.ts +6 -5
- package/src/entity-reference.ts +237 -0
- package/src/material.ts +25 -29
- package/src/model.ts +24 -48
- package/src/parse.ts +0 -35
- package/src/pointer-controller.ts +550 -0
- package/src/sky.ts +19 -30
package/dist/sky.d.cts
CHANGED
|
@@ -22,19 +22,18 @@ declare class SkyElement extends AsyncElement {
|
|
|
22
22
|
private _appElement;
|
|
23
23
|
/**
|
|
24
24
|
* Incremented on every new load and on disconnect, and captured by a load when it starts. A
|
|
25
|
-
* load that resumes from an await
|
|
26
|
-
*
|
|
25
|
+
* load that resumes from an await abandons itself if the value has moved on, so a superseded
|
|
26
|
+
* load cannot generate a skybox for a scene it no longer configures. The asset subscription
|
|
27
|
+
* itself is guarded by the binding below.
|
|
27
28
|
*/
|
|
28
29
|
private _loadGeneration;
|
|
29
30
|
/**
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
* than leave it registered until the asset loads (or forever, if it never does).
|
|
31
|
+
* Watches the current texture asset while it loads. Starting a new load or disconnecting
|
|
32
|
+
* cancels it, so a superseded texture can never generate the skybox.
|
|
33
33
|
*/
|
|
34
|
-
private
|
|
34
|
+
private _binding;
|
|
35
35
|
connectedCallback(): void;
|
|
36
36
|
disconnectedCallback(): void;
|
|
37
|
-
private _detachLoadHandler;
|
|
38
37
|
private _generateSkybox;
|
|
39
38
|
private _loadSkybox;
|
|
40
39
|
private _unloadSkybox;
|
package/dist/sky.d.ts
CHANGED
|
@@ -22,19 +22,18 @@ declare class SkyElement extends AsyncElement {
|
|
|
22
22
|
private _appElement;
|
|
23
23
|
/**
|
|
24
24
|
* Incremented on every new load and on disconnect, and captured by a load when it starts. A
|
|
25
|
-
* load that resumes from an await
|
|
26
|
-
*
|
|
25
|
+
* load that resumes from an await abandons itself if the value has moved on, so a superseded
|
|
26
|
+
* load cannot generate a skybox for a scene it no longer configures. The asset subscription
|
|
27
|
+
* itself is guarded by the binding below.
|
|
27
28
|
*/
|
|
28
29
|
private _loadGeneration;
|
|
29
30
|
/**
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
* than leave it registered until the asset loads (or forever, if it never does).
|
|
31
|
+
* Watches the current texture asset while it loads. Starting a new load or disconnecting
|
|
32
|
+
* cancels it, so a superseded texture can never generate the skybox.
|
|
33
33
|
*/
|
|
34
|
-
private
|
|
34
|
+
private _binding;
|
|
35
35
|
connectedCallback(): void;
|
|
36
36
|
disconnectedCallback(): void;
|
|
37
|
-
private _detachLoadHandler;
|
|
38
37
|
private _generateSkybox;
|
|
39
38
|
private _loadSkybox;
|
|
40
39
|
private _unloadSkybox;
|
|
@@ -1153,7 +1153,7 @@
|
|
|
1153
1153
|
},
|
|
1154
1154
|
{
|
|
1155
1155
|
"name": "image",
|
|
1156
|
-
"description": "The reference to the
|
|
1156
|
+
"description": "The reference (a `pc-entity`, `pc-model` or `pc-node` name, or a document-wide `#` selector) to the entity whose image element is used for visual transitions, or empty for the button's own entity.",
|
|
1157
1157
|
"values": []
|
|
1158
1158
|
},
|
|
1159
1159
|
{
|
|
@@ -1648,12 +1648,12 @@
|
|
|
1648
1648
|
},
|
|
1649
1649
|
{
|
|
1650
1650
|
"name": "entity-a",
|
|
1651
|
-
"description": "The reference
|
|
1651
|
+
"description": "The reference (a `pc-entity`, `pc-model` or `pc-node` name, or a document-wide `#` selector) to the element providing the first constrained body.",
|
|
1652
1652
|
"values": []
|
|
1653
1653
|
},
|
|
1654
1654
|
{
|
|
1655
1655
|
"name": "entity-b",
|
|
1656
|
-
"description": "The reference
|
|
1656
|
+
"description": "The reference (a `pc-entity`, `pc-model` or `pc-node` name, or a document-wide `#` selector) to the element providing the second constrained body, or empty for the world-space case.",
|
|
1657
1657
|
"values": []
|
|
1658
1658
|
},
|
|
1659
1659
|
{
|
|
@@ -2192,11 +2192,11 @@
|
|
|
2192
2192
|
},
|
|
2193
2193
|
{
|
|
2194
2194
|
"name": "pc-script-instance",
|
|
2195
|
-
"description": "The `<pc-script-instance>` element attaches one script class, named by `name`, to\nthe entity of its parent `<pc-script>`. Its other attributes set script attributes of the same\nname, and `attributes` takes a JSON object instead. Must be a direct child of `<pc-script>`.\n\n---\n\n\n### **Events:**\n - **ready** - Fired when the element is fully initialized — once per readiness cycle, so an element that is torn down and re-initialized (for example by removing and re-inserting it) fires it again. Bubbles and is composed.\n- **scriptattributeschange** - Fired when the script's attributes change. The `detail` carries the new `attributes` object. Bubbles.\n- **scriptenablechange** - Fired when the script's enabled state changes. The `detail` carries the new `enabled` state. Bubbles.\n- **scriptnamechange** - Fired when the script is renamed on a live element. The `detail` carries `oldName` and `newName`. Bubbles.",
|
|
2195
|
+
"description": "The `<pc-script-instance>` element attaches one script class, named by `name`, to\nthe entity of its parent `<pc-script>`. Its other attributes set script attributes of the same\nname, and `attributes` takes a JSON object instead. An `entity:` value is an entity name —\nwrite `entity:#id` for an element id. Must be a direct child of `<pc-script>`.\n\n---\n\n\n### **Events:**\n - **ready** - Fired when the element is fully initialized — once per readiness cycle, so an element that is torn down and re-initialized (for example by removing and re-inserting it) fires it again. Bubbles and is composed.\n- **scriptattributeschange** - Fired when the script's attributes change. The `detail` carries the new `attributes` object. Bubbles.\n- **scriptenablechange** - Fired when the script's enabled state changes. The `detail` carries the new `enabled` state. Bubbles.\n- **scriptnamechange** - Fired when the script is renamed on a live element. The `detail` carries `oldName` and `newName`. Bubbles.",
|
|
2196
2196
|
"attributes": [
|
|
2197
2197
|
{
|
|
2198
2198
|
"name": "attributes",
|
|
2199
|
-
"description": "The attributes of the script.",
|
|
2199
|
+
"description": "The attributes of the script as an object whose `asset:`, `entity:`, `vec2:`, `vec3:`, `vec4:` and `color:` prefixed values are resolved when applied — an `entity:` value being an entity name (nearest enclosing entity first, then outward, then the document) or a document-wide `#` selector (`entity:#id`), never a bare element id.",
|
|
2200
2200
|
"values": []
|
|
2201
2201
|
},
|
|
2202
2202
|
{
|
|
@@ -2228,7 +2228,7 @@
|
|
|
2228
2228
|
},
|
|
2229
2229
|
{
|
|
2230
2230
|
"name": "content",
|
|
2231
|
-
"description": "The reference to the
|
|
2231
|
+
"description": "The reference (a `pc-entity`, `pc-model` or `pc-node` name, or a document-wide `#` selector) to the entity used as the content.",
|
|
2232
2232
|
"values": []
|
|
2233
2233
|
},
|
|
2234
2234
|
{
|
|
@@ -2244,7 +2244,7 @@
|
|
|
2244
2244
|
},
|
|
2245
2245
|
{
|
|
2246
2246
|
"name": "horizontal-scrollbar",
|
|
2247
|
-
"description": "The reference to the
|
|
2247
|
+
"description": "The reference (a `pc-entity`, `pc-model` or `pc-node` name, or a document-wide `#` selector) to the entity containing the horizontal scrollbar.",
|
|
2248
2248
|
"values": []
|
|
2249
2249
|
},
|
|
2250
2250
|
{
|
|
@@ -2278,7 +2278,7 @@
|
|
|
2278
2278
|
},
|
|
2279
2279
|
{
|
|
2280
2280
|
"name": "vertical-scrollbar",
|
|
2281
|
-
"description": "The reference to the
|
|
2281
|
+
"description": "The reference (a `pc-entity`, `pc-model` or `pc-node` name, or a document-wide `#` selector) to the entity containing the vertical scrollbar.",
|
|
2282
2282
|
"values": []
|
|
2283
2283
|
},
|
|
2284
2284
|
{
|
|
@@ -2288,7 +2288,7 @@
|
|
|
2288
2288
|
},
|
|
2289
2289
|
{
|
|
2290
2290
|
"name": "viewport",
|
|
2291
|
-
"description": "The reference to the
|
|
2291
|
+
"description": "The reference (a `pc-entity`, `pc-model` or `pc-node` name, or a document-wide `#` selector) to the entity used as the viewport.",
|
|
2292
2292
|
"values": []
|
|
2293
2293
|
}
|
|
2294
2294
|
],
|
|
@@ -2310,7 +2310,7 @@
|
|
|
2310
2310
|
},
|
|
2311
2311
|
{
|
|
2312
2312
|
"name": "handle",
|
|
2313
|
-
"description": "The reference to the
|
|
2313
|
+
"description": "The reference (a `pc-entity`, `pc-model` or `pc-node` name, or a document-wide `#` selector) to the entity used as the scrollbar handle.",
|
|
2314
2314
|
"values": []
|
|
2315
2315
|
},
|
|
2316
2316
|
{
|
package/dist/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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.
|
|
4
|
+
"version": "0.21.0",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -2137,8 +2137,8 @@
|
|
|
2137
2137
|
},
|
|
2138
2138
|
{
|
|
2139
2139
|
"name": "component",
|
|
2140
|
-
"description": "Gets the underlying PlayCanvas anim component.",
|
|
2141
|
-
"type": "
|
|
2140
|
+
"description": "Gets the underlying PlayCanvas anim component. `null` until the element is\nready — see ComponentElement.component.",
|
|
2141
|
+
"type": "AnimComponent | null"
|
|
2142
2142
|
},
|
|
2143
2143
|
{
|
|
2144
2144
|
"name": "enabled",
|
|
@@ -2194,8 +2194,8 @@
|
|
|
2194
2194
|
},
|
|
2195
2195
|
{
|
|
2196
2196
|
"name": "component",
|
|
2197
|
-
"description": "Gets the underlying PlayCanvas audio listener component.",
|
|
2198
|
-
"type": "
|
|
2197
|
+
"description": "Gets the underlying PlayCanvas audio listener component. `null` until the element is\nready — see ComponentElement.component.",
|
|
2198
|
+
"type": "AudioListenerComponent | null"
|
|
2199
2199
|
},
|
|
2200
2200
|
{
|
|
2201
2201
|
"name": "enabled",
|
|
@@ -2253,7 +2253,7 @@
|
|
|
2253
2253
|
},
|
|
2254
2254
|
{
|
|
2255
2255
|
"name": "image",
|
|
2256
|
-
"description": "The reference to the
|
|
2256
|
+
"description": "The reference (a `pc-entity`, `pc-model` or `pc-node` name, or a document-wide `#` selector) to the entity whose image element is used for visual transitions, or empty for the button's own entity.",
|
|
2257
2257
|
"value": { "type": "string" }
|
|
2258
2258
|
},
|
|
2259
2259
|
{
|
|
@@ -2317,8 +2317,8 @@
|
|
|
2317
2317
|
},
|
|
2318
2318
|
{
|
|
2319
2319
|
"name": "component",
|
|
2320
|
-
"description": "Gets the underlying PlayCanvas button component.",
|
|
2321
|
-
"type": "
|
|
2320
|
+
"description": "Gets the underlying PlayCanvas button component. `null` until the element is\nready — see ComponentElement.component.",
|
|
2321
|
+
"type": "ButtonComponent | null"
|
|
2322
2322
|
},
|
|
2323
2323
|
{
|
|
2324
2324
|
"name": "enabled",
|
|
@@ -2346,7 +2346,7 @@
|
|
|
2346
2346
|
},
|
|
2347
2347
|
{
|
|
2348
2348
|
"name": "image",
|
|
2349
|
-
"description": "Gets the reference to the
|
|
2349
|
+
"description": "Gets the reference (a `pc-entity`, `pc-model` or `pc-node` name, or a document-wide `#`\nselector) to the entity whose image element is used for visual transitions, or empty for\nthe button's own entity."
|
|
2350
2350
|
},
|
|
2351
2351
|
{
|
|
2352
2352
|
"name": "inactiveSpriteAsset",
|
|
@@ -2549,8 +2549,8 @@
|
|
|
2549
2549
|
},
|
|
2550
2550
|
{
|
|
2551
2551
|
"name": "component",
|
|
2552
|
-
"description": "Gets the underlying PlayCanvas camera component.",
|
|
2553
|
-
"type": "
|
|
2552
|
+
"description": "Gets the underlying PlayCanvas camera component. `null` until the element is\nready — see ComponentElement.component.",
|
|
2553
|
+
"type": "CameraComponent | null"
|
|
2554
2554
|
},
|
|
2555
2555
|
{
|
|
2556
2556
|
"name": "cullFaces",
|
|
@@ -2705,8 +2705,8 @@
|
|
|
2705
2705
|
},
|
|
2706
2706
|
{
|
|
2707
2707
|
"name": "component",
|
|
2708
|
-
"description": "Gets the underlying PlayCanvas collision component.",
|
|
2709
|
-
"type": "
|
|
2708
|
+
"description": "Gets the underlying PlayCanvas collision component. `null` until the element is\nready — see ComponentElement.component.",
|
|
2709
|
+
"type": "CollisionComponent | null"
|
|
2710
2710
|
},
|
|
2711
2711
|
{ "name": "convexHull" },
|
|
2712
2712
|
{
|
|
@@ -2917,8 +2917,8 @@
|
|
|
2917
2917
|
},
|
|
2918
2918
|
{
|
|
2919
2919
|
"name": "component",
|
|
2920
|
-
"description": "Gets the underlying PlayCanvas element component.",
|
|
2921
|
-
"type": "
|
|
2920
|
+
"description": "Gets the underlying PlayCanvas element component. `null` until the element is\nready — see ComponentElement.component.",
|
|
2921
|
+
"type": "ElementComponent | null"
|
|
2922
2922
|
},
|
|
2923
2923
|
{
|
|
2924
2924
|
"name": "enabled",
|
|
@@ -3085,8 +3085,8 @@
|
|
|
3085
3085
|
},
|
|
3086
3086
|
{
|
|
3087
3087
|
"name": "component",
|
|
3088
|
-
"description": "Gets the underlying PlayCanvas gsplat component.",
|
|
3089
|
-
"type": "
|
|
3088
|
+
"description": "Gets the underlying PlayCanvas gsplat component. `null` until the element is\nready — see ComponentElement.component.",
|
|
3089
|
+
"type": "GSplatComponent | null"
|
|
3090
3090
|
},
|
|
3091
3091
|
{
|
|
3092
3092
|
"name": "enabled",
|
|
@@ -3199,12 +3199,12 @@
|
|
|
3199
3199
|
},
|
|
3200
3200
|
{
|
|
3201
3201
|
"name": "entity-a",
|
|
3202
|
-
"description": "The reference
|
|
3202
|
+
"description": "The reference (a `pc-entity`, `pc-model` or `pc-node` name, or a document-wide `#` selector) to the element providing the first constrained body.",
|
|
3203
3203
|
"value": { "type": "string" }
|
|
3204
3204
|
},
|
|
3205
3205
|
{
|
|
3206
3206
|
"name": "entity-b",
|
|
3207
|
-
"description": "The reference
|
|
3207
|
+
"description": "The reference (a `pc-entity`, `pc-model` or `pc-node` name, or a document-wide `#` selector) to the element providing the second constrained body, or empty for the world-space case.",
|
|
3208
3208
|
"value": { "type": "string" }
|
|
3209
3209
|
},
|
|
3210
3210
|
{
|
|
@@ -3366,8 +3366,8 @@
|
|
|
3366
3366
|
},
|
|
3367
3367
|
{
|
|
3368
3368
|
"name": "component",
|
|
3369
|
-
"description": "Gets the underlying PlayCanvas joint component.",
|
|
3370
|
-
"type": "
|
|
3369
|
+
"description": "Gets the underlying PlayCanvas joint component. `null` until the element is\nready — see ComponentElement.component.",
|
|
3370
|
+
"type": "JointComponent | null"
|
|
3371
3371
|
},
|
|
3372
3372
|
{
|
|
3373
3373
|
"name": "enableCollision",
|
|
@@ -3383,11 +3383,11 @@
|
|
|
3383
3383
|
},
|
|
3384
3384
|
{
|
|
3385
3385
|
"name": "entityA",
|
|
3386
|
-
"description": "Gets the reference
|
|
3386
|
+
"description": "Gets the reference (a `pc-entity`, `pc-model` or `pc-node` name, or a document-wide `#`\nselector) to the element providing the first constrained body."
|
|
3387
3387
|
},
|
|
3388
3388
|
{
|
|
3389
3389
|
"name": "entityB",
|
|
3390
|
-
"description": "Gets the reference
|
|
3390
|
+
"description": "Gets the reference (a `pc-entity`, `pc-model` or `pc-node` name, or a document-wide `#`\nselector) to the element providing the second constrained body, or empty for the\nworld-space case."
|
|
3391
3391
|
},
|
|
3392
3392
|
{
|
|
3393
3393
|
"name": "limits",
|
|
@@ -3532,8 +3532,8 @@
|
|
|
3532
3532
|
},
|
|
3533
3533
|
{
|
|
3534
3534
|
"name": "component",
|
|
3535
|
-
"description": "Gets the underlying PlayCanvas layout child component.",
|
|
3536
|
-
"type": "
|
|
3535
|
+
"description": "Gets the underlying PlayCanvas layout child component. `null` until the element is\nready — see ComponentElement.component.",
|
|
3536
|
+
"type": "LayoutChildComponent | null"
|
|
3537
3537
|
},
|
|
3538
3538
|
{
|
|
3539
3539
|
"name": "enabled",
|
|
@@ -3667,8 +3667,8 @@
|
|
|
3667
3667
|
},
|
|
3668
3668
|
{
|
|
3669
3669
|
"name": "component",
|
|
3670
|
-
"description": "Gets the underlying PlayCanvas layout group component.",
|
|
3671
|
-
"type": "
|
|
3670
|
+
"description": "Gets the underlying PlayCanvas layout group component. `null` until the element is\nready — see ComponentElement.component.",
|
|
3671
|
+
"type": "LayoutGroupComponent | null"
|
|
3672
3672
|
},
|
|
3673
3673
|
{
|
|
3674
3674
|
"name": "enabled",
|
|
@@ -3880,8 +3880,8 @@
|
|
|
3880
3880
|
},
|
|
3881
3881
|
{
|
|
3882
3882
|
"name": "component",
|
|
3883
|
-
"description": "Gets the underlying PlayCanvas light component.",
|
|
3884
|
-
"type": "
|
|
3883
|
+
"description": "Gets the underlying PlayCanvas light component. `null` until the element is\nready — see ComponentElement.component.",
|
|
3884
|
+
"type": "LightComponent | null"
|
|
3885
3885
|
},
|
|
3886
3886
|
{
|
|
3887
3887
|
"name": "enabled",
|
|
@@ -4008,8 +4008,8 @@
|
|
|
4008
4008
|
},
|
|
4009
4009
|
{
|
|
4010
4010
|
"name": "component",
|
|
4011
|
-
"description": "Gets the underlying PlayCanvas particle system component.",
|
|
4012
|
-
"type": "
|
|
4011
|
+
"description": "Gets the underlying PlayCanvas particle system component. `null` until the element is\nready — see ComponentElement.component.",
|
|
4012
|
+
"type": "ParticleSystemComponent | null"
|
|
4013
4013
|
},
|
|
4014
4014
|
{
|
|
4015
4015
|
"name": "enabled",
|
|
@@ -4085,8 +4085,8 @@
|
|
|
4085
4085
|
},
|
|
4086
4086
|
{
|
|
4087
4087
|
"name": "component",
|
|
4088
|
-
"description": "Gets the underlying PlayCanvas render component.",
|
|
4089
|
-
"type": "
|
|
4088
|
+
"description": "Gets the underlying PlayCanvas render component. `null` until the element is\nready — see ComponentElement.component.",
|
|
4089
|
+
"type": "RenderComponent | null"
|
|
4090
4090
|
},
|
|
4091
4091
|
{
|
|
4092
4092
|
"name": "enabled",
|
|
@@ -4188,8 +4188,8 @@
|
|
|
4188
4188
|
},
|
|
4189
4189
|
{
|
|
4190
4190
|
"name": "component",
|
|
4191
|
-
"description": "Gets the underlying PlayCanvas rigidbody component.",
|
|
4192
|
-
"type": "
|
|
4191
|
+
"description": "Gets the underlying PlayCanvas rigidbody component. `null` until the element is\nready — see ComponentElement.component.",
|
|
4192
|
+
"type": "RigidBodyComponent | null"
|
|
4193
4193
|
},
|
|
4194
4194
|
{
|
|
4195
4195
|
"name": "enabled",
|
|
@@ -4272,8 +4272,8 @@
|
|
|
4272
4272
|
},
|
|
4273
4273
|
{
|
|
4274
4274
|
"name": "component",
|
|
4275
|
-
"description": "Gets the underlying PlayCanvas screen component.",
|
|
4276
|
-
"type": "
|
|
4275
|
+
"description": "Gets the underlying PlayCanvas screen component. `null` until the element is\nready — see ComponentElement.component.",
|
|
4276
|
+
"type": "ScreenComponent | null"
|
|
4277
4277
|
},
|
|
4278
4278
|
{
|
|
4279
4279
|
"name": "enabled",
|
|
@@ -4333,8 +4333,8 @@
|
|
|
4333
4333
|
},
|
|
4334
4334
|
{
|
|
4335
4335
|
"name": "component",
|
|
4336
|
-
"description": "Gets the underlying PlayCanvas script component.",
|
|
4337
|
-
"type": "
|
|
4336
|
+
"description": "Gets the underlying PlayCanvas script component. `null` until the element is\nready — see ComponentElement.component.",
|
|
4337
|
+
"type": "ScriptComponent | null"
|
|
4338
4338
|
},
|
|
4339
4339
|
{
|
|
4340
4340
|
"name": "enabled",
|
|
@@ -4352,12 +4352,12 @@
|
|
|
4352
4352
|
},
|
|
4353
4353
|
{
|
|
4354
4354
|
"name": "pc-script-instance",
|
|
4355
|
-
"description": "The `<pc-script-instance>` element attaches one script class, named by `name`, to\nthe entity of its parent `<pc-script>`. Its other attributes set script attributes of the same\nname, and `attributes` takes a JSON object instead. Must be a direct child of `<pc-script>`.\n\n---\n\n\n### **Events:**\n - **ready** - Fired when the element is fully initialized — once per readiness cycle, so an element that is torn down and re-initialized (for example by removing and re-inserting it) fires it again. Bubbles and is composed.\n- **scriptattributeschange** - Fired when the script's attributes change. The `detail` carries the new `attributes` object. Bubbles.\n- **scriptenablechange** - Fired when the script's enabled state changes. The `detail` carries the new `enabled` state. Bubbles.\n- **scriptnamechange** - Fired when the script is renamed on a live element. The `detail` carries `oldName` and `newName`. Bubbles.",
|
|
4355
|
+
"description": "The `<pc-script-instance>` element attaches one script class, named by `name`, to\nthe entity of its parent `<pc-script>`. Its other attributes set script attributes of the same\nname, and `attributes` takes a JSON object instead. An `entity:` value is an entity name —\nwrite `entity:#id` for an element id. Must be a direct child of `<pc-script>`.\n\n---\n\n\n### **Events:**\n - **ready** - Fired when the element is fully initialized — once per readiness cycle, so an element that is torn down and re-initialized (for example by removing and re-inserting it) fires it again. Bubbles and is composed.\n- **scriptattributeschange** - Fired when the script's attributes change. The `detail` carries the new `attributes` object. Bubbles.\n- **scriptenablechange** - Fired when the script's enabled state changes. The `detail` carries the new `enabled` state. Bubbles.\n- **scriptnamechange** - Fired when the script is renamed on a live element. The `detail` carries `oldName` and `newName`. Bubbles.",
|
|
4356
4356
|
"doc-url": "https://developer.playcanvas.com/user-manual/web-components/tags/pc-script-instance/",
|
|
4357
4357
|
"attributes": [
|
|
4358
4358
|
{
|
|
4359
4359
|
"name": "attributes",
|
|
4360
|
-
"description": "The attributes of the script.",
|
|
4360
|
+
"description": "The attributes of the script as an object whose `asset:`, `entity:`, `vec2:`, `vec3:`, `vec4:` and `color:` prefixed values are resolved when applied — an `entity:` value being an entity name (nearest enclosing entity first, then outward, then the document) or a document-wide `#` selector (`entity:#id`), never a bare element id.",
|
|
4361
4361
|
"value": { "type": "string" }
|
|
4362
4362
|
},
|
|
4363
4363
|
{
|
|
@@ -4417,7 +4417,7 @@
|
|
|
4417
4417
|
},
|
|
4418
4418
|
{
|
|
4419
4419
|
"name": "scriptAttributes",
|
|
4420
|
-
"description": "Gets the attributes of the script.",
|
|
4420
|
+
"description": "Gets the attributes of the script as an object whose `asset:`, `entity:`, `vec2:`, `vec3:`,\n`vec4:` and `color:` prefixed values are resolved when applied — an `entity:` value being\nan entity name (nearest enclosing entity first, then outward, then the document) or a\ndocument-wide `#` selector (`entity:#id`), never a bare element id.",
|
|
4421
4421
|
"type": "Record<string, any>"
|
|
4422
4422
|
}
|
|
4423
4423
|
],
|
|
@@ -4457,7 +4457,7 @@
|
|
|
4457
4457
|
},
|
|
4458
4458
|
{
|
|
4459
4459
|
"name": "content",
|
|
4460
|
-
"description": "The reference to the
|
|
4460
|
+
"description": "The reference (a `pc-entity`, `pc-model` or `pc-node` name, or a document-wide `#` selector) to the entity used as the content.",
|
|
4461
4461
|
"value": { "type": "string" }
|
|
4462
4462
|
},
|
|
4463
4463
|
{
|
|
@@ -4477,7 +4477,7 @@
|
|
|
4477
4477
|
},
|
|
4478
4478
|
{
|
|
4479
4479
|
"name": "horizontal-scrollbar",
|
|
4480
|
-
"description": "The reference to the
|
|
4480
|
+
"description": "The reference (a `pc-entity`, `pc-model` or `pc-node` name, or a document-wide `#` selector) to the entity containing the horizontal scrollbar.",
|
|
4481
4481
|
"value": { "type": "string" }
|
|
4482
4482
|
},
|
|
4483
4483
|
{
|
|
@@ -4513,7 +4513,7 @@
|
|
|
4513
4513
|
},
|
|
4514
4514
|
{
|
|
4515
4515
|
"name": "vertical-scrollbar",
|
|
4516
|
-
"description": "The reference to the
|
|
4516
|
+
"description": "The reference (a `pc-entity`, `pc-model` or `pc-node` name, or a document-wide `#` selector) to the entity containing the vertical scrollbar.",
|
|
4517
4517
|
"value": { "type": "string" }
|
|
4518
4518
|
},
|
|
4519
4519
|
{
|
|
@@ -4526,7 +4526,7 @@
|
|
|
4526
4526
|
},
|
|
4527
4527
|
{
|
|
4528
4528
|
"name": "viewport",
|
|
4529
|
-
"description": "The reference to the
|
|
4529
|
+
"description": "The reference (a `pc-entity`, `pc-model` or `pc-node` name, or a document-wide `#` selector) to the entity used as the viewport.",
|
|
4530
4530
|
"value": { "type": "string" }
|
|
4531
4531
|
}
|
|
4532
4532
|
],
|
|
@@ -4555,12 +4555,12 @@
|
|
|
4555
4555
|
},
|
|
4556
4556
|
{
|
|
4557
4557
|
"name": "component",
|
|
4558
|
-
"description": "Gets the underlying PlayCanvas scroll view component.",
|
|
4559
|
-
"type": "
|
|
4558
|
+
"description": "Gets the underlying PlayCanvas scroll view component. `null` until the element is\nready — see ComponentElement.component.",
|
|
4559
|
+
"type": "ScrollViewComponent | null"
|
|
4560
4560
|
},
|
|
4561
4561
|
{
|
|
4562
4562
|
"name": "content",
|
|
4563
|
-
"description": "Gets the reference to the
|
|
4563
|
+
"description": "Gets the reference (a `pc-entity`, `pc-model` or `pc-node` name, or a document-wide `#`\nselector) to the entity used as the content."
|
|
4564
4564
|
},
|
|
4565
4565
|
{
|
|
4566
4566
|
"name": "enabled",
|
|
@@ -4573,7 +4573,7 @@
|
|
|
4573
4573
|
},
|
|
4574
4574
|
{
|
|
4575
4575
|
"name": "horizontalScrollbar",
|
|
4576
|
-
"description": "Gets the reference to the
|
|
4576
|
+
"description": "Gets the reference (a `pc-entity`, `pc-model` or `pc-node` name, or a document-wide `#`\nselector) to the entity containing the horizontal scrollbar."
|
|
4577
4577
|
},
|
|
4578
4578
|
{
|
|
4579
4579
|
"name": "horizontalScrollbarVisibility",
|
|
@@ -4597,7 +4597,7 @@
|
|
|
4597
4597
|
},
|
|
4598
4598
|
{
|
|
4599
4599
|
"name": "verticalScrollbar",
|
|
4600
|
-
"description": "Gets the reference to the
|
|
4600
|
+
"description": "Gets the reference (a `pc-entity`, `pc-model` or `pc-node` name, or a document-wide `#`\nselector) to the entity containing the vertical scrollbar."
|
|
4601
4601
|
},
|
|
4602
4602
|
{
|
|
4603
4603
|
"name": "verticalScrollbarVisibility",
|
|
@@ -4605,7 +4605,7 @@
|
|
|
4605
4605
|
},
|
|
4606
4606
|
{
|
|
4607
4607
|
"name": "viewport",
|
|
4608
|
-
"description": "Gets the reference to the
|
|
4608
|
+
"description": "Gets the reference (a `pc-entity`, `pc-model` or `pc-node` name, or a document-wide `#`\nselector) to the entity used as the viewport."
|
|
4609
4609
|
}
|
|
4610
4610
|
],
|
|
4611
4611
|
"events": [
|
|
@@ -4629,7 +4629,7 @@
|
|
|
4629
4629
|
},
|
|
4630
4630
|
{
|
|
4631
4631
|
"name": "handle",
|
|
4632
|
-
"description": "The reference to the
|
|
4632
|
+
"description": "The reference (a `pc-entity`, `pc-model` or `pc-node` name, or a document-wide `#` selector) to the entity used as the scrollbar handle.",
|
|
4633
4633
|
"value": { "type": "string" }
|
|
4634
4634
|
},
|
|
4635
4635
|
{
|
|
@@ -4672,8 +4672,8 @@
|
|
|
4672
4672
|
},
|
|
4673
4673
|
{
|
|
4674
4674
|
"name": "component",
|
|
4675
|
-
"description": "Gets the underlying PlayCanvas scrollbar component.",
|
|
4676
|
-
"type": "
|
|
4675
|
+
"description": "Gets the underlying PlayCanvas scrollbar component. `null` until the element is\nready — see ComponentElement.component.",
|
|
4676
|
+
"type": "ScrollbarComponent | null"
|
|
4677
4677
|
},
|
|
4678
4678
|
{
|
|
4679
4679
|
"name": "enabled",
|
|
@@ -4681,7 +4681,7 @@
|
|
|
4681
4681
|
},
|
|
4682
4682
|
{
|
|
4683
4683
|
"name": "handle",
|
|
4684
|
-
"description": "Gets the reference to the
|
|
4684
|
+
"description": "Gets the reference (a `pc-entity`, `pc-model` or `pc-node` name, or a document-wide `#`\nselector) to the entity used as the scrollbar handle."
|
|
4685
4685
|
},
|
|
4686
4686
|
{
|
|
4687
4687
|
"name": "handleSize",
|
|
@@ -4775,8 +4775,8 @@
|
|
|
4775
4775
|
},
|
|
4776
4776
|
{
|
|
4777
4777
|
"name": "component",
|
|
4778
|
-
"description": "Gets the underlying PlayCanvas sound component.",
|
|
4779
|
-
"type": "
|
|
4778
|
+
"description": "Gets the underlying PlayCanvas sound component. `null` until the element is\nready — see ComponentElement.component.",
|
|
4779
|
+
"type": "SoundComponent | null"
|
|
4780
4780
|
},
|
|
4781
4781
|
{
|
|
4782
4782
|
"name": "distanceModel",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@playcanvas/web-components",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.21.0",
|
|
4
4
|
"author": "PlayCanvas <support@playcanvas.com>",
|
|
5
5
|
"homepage": "https://playcanvas.com",
|
|
6
6
|
"description": "Web Components for the PlayCanvas Engine",
|
|
@@ -99,12 +99,12 @@
|
|
|
99
99
|
"eslint": "9.39.5",
|
|
100
100
|
"globals": "17.11.0",
|
|
101
101
|
"jsdom": "30.0.1",
|
|
102
|
-
"mediabunny": "1.55.
|
|
102
|
+
"mediabunny": "1.55.5",
|
|
103
103
|
"opentype.js": "2.0.0",
|
|
104
104
|
"playcanvas": "2.21.4",
|
|
105
105
|
"prettier": "3.9.6",
|
|
106
106
|
"publint": "0.3.24",
|
|
107
|
-
"rollup": "4.63.
|
|
107
|
+
"rollup": "4.63.1",
|
|
108
108
|
"serve": "14.2.6",
|
|
109
109
|
"tslib": "2.8.1",
|
|
110
110
|
"typedoc": "0.28.20",
|