@playcanvas/web-components 0.17.0 → 0.19.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/README.md +5 -3
- package/dist/app.d.cts +28 -3
- package/dist/app.d.ts +28 -3
- package/dist/asset.d.cts +13 -3
- package/dist/asset.d.ts +13 -3
- package/dist/components/anim-clip.d.cts +3 -1
- package/dist/components/anim-clip.d.ts +3 -1
- package/dist/components/anim-component.d.cts +5 -0
- package/dist/components/anim-component.d.ts +5 -0
- package/dist/components/audio-listener-component.d.cts +4 -0
- package/dist/components/audio-listener-component.d.ts +4 -0
- package/dist/components/button-component.d.cts +5 -0
- package/dist/components/button-component.d.ts +5 -0
- package/dist/components/camera-component.d.cts +35 -1
- package/dist/components/camera-component.d.ts +35 -1
- package/dist/components/collision-component.d.cts +4 -0
- package/dist/components/collision-component.d.ts +4 -0
- package/dist/components/element-component.d.cts +4 -0
- package/dist/components/element-component.d.ts +4 -0
- package/dist/components/gsplat-component.d.cts +4 -0
- package/dist/components/gsplat-component.d.ts +4 -0
- package/dist/components/joint-component.d.cts +12 -2
- package/dist/components/joint-component.d.ts +12 -2
- package/dist/components/layout-child-component.d.cts +4 -0
- package/dist/components/layout-child-component.d.ts +4 -0
- package/dist/components/layout-group-component.d.cts +4 -0
- package/dist/components/layout-group-component.d.ts +4 -0
- package/dist/components/light-component.d.cts +50 -1
- package/dist/components/light-component.d.ts +50 -1
- package/dist/components/particle-system-component.d.cts +4 -0
- package/dist/components/particle-system-component.d.ts +4 -0
- package/dist/components/render-component.d.cts +5 -0
- package/dist/components/render-component.d.ts +5 -0
- package/dist/components/rigid-body-component.d.cts +5 -0
- package/dist/components/rigid-body-component.d.ts +5 -0
- package/dist/components/screen-component.d.cts +4 -0
- package/dist/components/screen-component.d.ts +4 -0
- package/dist/components/script-component.d.cts +3 -0
- package/dist/components/script-component.d.ts +3 -0
- package/dist/components/script-instance.d.cts +4 -0
- package/dist/components/script-instance.d.ts +4 -0
- package/dist/components/scroll-view-component.d.cts +4 -0
- package/dist/components/scroll-view-component.d.ts +4 -0
- package/dist/components/scrollbar-component.d.cts +4 -0
- package/dist/components/scrollbar-component.d.ts +4 -0
- package/dist/components/sound-component.d.cts +4 -0
- package/dist/components/sound-component.d.ts +4 -0
- package/dist/components/sound-slot.d.cts +3 -0
- package/dist/components/sound-slot.d.ts +3 -0
- package/dist/custom-elements.json +338 -7
- package/dist/entity-base.d.cts +5 -4
- package/dist/entity-base.d.ts +5 -4
- package/dist/entity-owner.d.cts +2 -2
- package/dist/entity-owner.d.ts +2 -2
- package/dist/entity.d.cts +13 -2
- package/dist/entity.d.ts +13 -2
- package/dist/index.d.cts +4 -1
- package/dist/index.d.ts +4 -1
- package/dist/material.d.cts +18 -7
- package/dist/material.d.ts +18 -7
- package/dist/model.d.cts +11 -0
- package/dist/model.d.ts +11 -0
- package/dist/node.d.cts +12 -1
- package/dist/node.d.ts +12 -1
- package/dist/pwc.cjs +601 -206
- package/dist/pwc.cjs.map +1 -1
- package/dist/pwc.js +601 -206
- 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 +602 -207
- package/dist/pwc.mjs.map +1 -1
- package/dist/scene.d.cts +19 -0
- package/dist/scene.d.ts +19 -0
- package/dist/sky.d.cts +4 -0
- package/dist/sky.d.ts +4 -0
- package/dist/vscode.html-custom-data.json +257 -62
- package/dist/wasm.d.cts +4 -0
- package/dist/wasm.d.ts +4 -0
- package/dist/web-types.json +169 -69
- package/package.json +3 -3
- package/src/app.ts +150 -71
- package/src/asset.ts +13 -4
- package/src/components/anim-clip.ts +3 -1
- package/src/components/anim-component.ts +5 -0
- package/src/components/audio-listener-component.ts +4 -0
- package/src/components/button-component.ts +5 -0
- package/src/components/camera-component.ts +63 -6
- package/src/components/collision-component.ts +4 -0
- package/src/components/element-component.ts +4 -0
- package/src/components/gsplat-component.ts +4 -0
- package/src/components/joint-component.ts +12 -2
- package/src/components/layout-child-component.ts +4 -0
- package/src/components/layout-group-component.ts +4 -0
- package/src/components/light-component.ts +108 -17
- package/src/components/particle-system-component.ts +4 -0
- package/src/components/render-component.ts +5 -0
- package/src/components/rigid-body-component.ts +5 -0
- package/src/components/screen-component.ts +4 -0
- package/src/components/script-component.ts +3 -0
- package/src/components/script-instance.ts +4 -0
- package/src/components/scroll-view-component.ts +4 -0
- package/src/components/scrollbar-component.ts +4 -0
- package/src/components/sound-component.ts +4 -0
- package/src/components/sound-slot.ts +3 -0
- package/src/entity-base.ts +28 -16
- package/src/entity-owner.ts +2 -2
- package/src/entity.ts +16 -4
- package/src/index.ts +12 -1
- package/src/material.ts +19 -8
- package/src/model.ts +14 -2
- package/src/node.ts +15 -3
- package/src/scene.ts +35 -1
- package/src/sky.ts +4 -0
- package/src/wasm.ts +4 -0
|
@@ -317,6 +317,7 @@
|
|
|
317
317
|
"name": "AsyncElement",
|
|
318
318
|
"module": "/src/async-element"
|
|
319
319
|
},
|
|
320
|
+
"summary": "The `<pc-app>` element creates a PlayCanvas application and the canvas it renders\ninto, and is the root of every scene. It holds the `<pc-asset>`, `<pc-material>`, `<pc-wasm>` and\n`<pc-scene>` elements, and the page's CSS sizes it, as it would a `<video>`.\n",
|
|
320
321
|
"tagName": "pc-app",
|
|
321
322
|
"customElement": true
|
|
322
323
|
}
|
|
@@ -767,6 +768,7 @@
|
|
|
767
768
|
"name": "AsyncElement",
|
|
768
769
|
"module": "/src/async-element"
|
|
769
770
|
},
|
|
771
|
+
"summary": "The `<pc-asset>` element declares an asset for the application to load — a model,\ntexture, font, sound, script or JSON file — under an `id` that other elements reference. Must be\na direct child of `<pc-app>`.\n",
|
|
770
772
|
"tagName": "pc-asset",
|
|
771
773
|
"customElement": true
|
|
772
774
|
}
|
|
@@ -1376,9 +1378,16 @@
|
|
|
1376
1378
|
"declarations": [
|
|
1377
1379
|
{
|
|
1378
1380
|
"kind": "class",
|
|
1379
|
-
"description": "The EntityElement interface provides properties and methods for manipulating\n[`<pc-entity>`](https://developer.playcanvas.com/user-manual/web-components/tags/pc-entity/) elements.\nThe EntityElement interface also inherits the properties and methods of the\nHTMLElement interface.\n\nThe pointer events below are dispatched by the containing `<pc-app>` element when the pointer\nintersects this entity's geometry. They are only generated while the entity has a listener for\nthem, registered either with addEventListener or with the matching inline `
|
|
1381
|
+
"description": "The EntityElement interface provides properties and methods for manipulating\n[`<pc-entity>`](https://developer.playcanvas.com/user-manual/web-components/tags/pc-entity/) elements.\nThe EntityElement interface also inherits the properties and methods of the\nHTMLElement interface.\n\nThe pointer events below are dispatched by the containing `<pc-app>` element when the pointer\nintersects this entity's geometry. They are only generated while the entity has a listener for\nthem, registered either with EventTarget.addEventListener or with the matching inline\nattribute (`onpointerdown`, `onclick`, ...).\n",
|
|
1380
1382
|
"name": "EntityElement",
|
|
1381
1383
|
"events": [
|
|
1384
|
+
{
|
|
1385
|
+
"type": {
|
|
1386
|
+
"text": "PointerEvent"
|
|
1387
|
+
},
|
|
1388
|
+
"description": "Fired when a primary pointer button is pressed and then released over the entity. A press and release that picked different entities fires on their nearest common ancestor instead, as in the DOM. `detail` carries the click count, so a double click arrives as a click whose `detail` is 2.",
|
|
1389
|
+
"name": "click"
|
|
1390
|
+
},
|
|
1382
1391
|
{
|
|
1383
1392
|
"type": {
|
|
1384
1393
|
"text": "PointerEvent"
|
|
@@ -1444,6 +1453,14 @@
|
|
|
1444
1453
|
"description": "The name of the entity.",
|
|
1445
1454
|
"fieldName": "name"
|
|
1446
1455
|
},
|
|
1456
|
+
{
|
|
1457
|
+
"type": {
|
|
1458
|
+
"text": "string"
|
|
1459
|
+
},
|
|
1460
|
+
"description": "Script to run when the entity is clicked: a primary pointer button pressed and then released over it.",
|
|
1461
|
+
"name": "onclick",
|
|
1462
|
+
"fieldName": "onclick"
|
|
1463
|
+
},
|
|
1447
1464
|
{
|
|
1448
1465
|
"type": {
|
|
1449
1466
|
"text": "string"
|
|
@@ -1524,6 +1541,7 @@
|
|
|
1524
1541
|
"name": "EntityOwnerElement",
|
|
1525
1542
|
"module": "/src/entity-owner"
|
|
1526
1543
|
},
|
|
1544
|
+
"summary": "The `<pc-entity>` element creates an entity: a named, transformable node of the\nscene hierarchy, and the host for component elements such as `<pc-camera>`, `<pc-light>` and\n`<pc-render>`. Place it in the `<pc-scene>`, or nest it under another `<pc-entity>`, a\n`<pc-model>` or a `<pc-node>` to parent it there.\n",
|
|
1527
1545
|
"tagName": "pc-entity",
|
|
1528
1546
|
"customElement": true,
|
|
1529
1547
|
"members": [
|
|
@@ -2088,6 +2106,30 @@
|
|
|
2088
2106
|
"module": "src/index.ts"
|
|
2089
2107
|
}
|
|
2090
2108
|
},
|
|
2109
|
+
{
|
|
2110
|
+
"kind": "js",
|
|
2111
|
+
"name": "AddressMode",
|
|
2112
|
+
"declaration": {
|
|
2113
|
+
"name": "AddressMode",
|
|
2114
|
+
"module": "./asset"
|
|
2115
|
+
}
|
|
2116
|
+
},
|
|
2117
|
+
{
|
|
2118
|
+
"kind": "js",
|
|
2119
|
+
"name": "MagFilterMode",
|
|
2120
|
+
"declaration": {
|
|
2121
|
+
"name": "MagFilterMode",
|
|
2122
|
+
"module": "./asset"
|
|
2123
|
+
}
|
|
2124
|
+
},
|
|
2125
|
+
{
|
|
2126
|
+
"kind": "js",
|
|
2127
|
+
"name": "MinFilterMode",
|
|
2128
|
+
"declaration": {
|
|
2129
|
+
"name": "MinFilterMode",
|
|
2130
|
+
"module": "./asset"
|
|
2131
|
+
}
|
|
2132
|
+
},
|
|
2091
2133
|
{
|
|
2092
2134
|
"kind": "js",
|
|
2093
2135
|
"name": "AsyncElementTagName",
|
|
@@ -2096,6 +2138,78 @@
|
|
|
2096
2138
|
"module": "./async-element"
|
|
2097
2139
|
}
|
|
2098
2140
|
},
|
|
2141
|
+
{
|
|
2142
|
+
"kind": "js",
|
|
2143
|
+
"name": "JointType",
|
|
2144
|
+
"declaration": {
|
|
2145
|
+
"name": "JointType",
|
|
2146
|
+
"module": "./components/joint-component"
|
|
2147
|
+
}
|
|
2148
|
+
},
|
|
2149
|
+
{
|
|
2150
|
+
"kind": "js",
|
|
2151
|
+
"name": "MotionMode",
|
|
2152
|
+
"declaration": {
|
|
2153
|
+
"name": "MotionMode",
|
|
2154
|
+
"module": "./components/joint-component"
|
|
2155
|
+
}
|
|
2156
|
+
},
|
|
2157
|
+
{
|
|
2158
|
+
"kind": "js",
|
|
2159
|
+
"name": "BlendType",
|
|
2160
|
+
"declaration": {
|
|
2161
|
+
"name": "BlendType",
|
|
2162
|
+
"module": "./material"
|
|
2163
|
+
}
|
|
2164
|
+
},
|
|
2165
|
+
{
|
|
2166
|
+
"kind": "js",
|
|
2167
|
+
"name": "ColorChannel",
|
|
2168
|
+
"declaration": {
|
|
2169
|
+
"name": "ColorChannel",
|
|
2170
|
+
"module": "./material"
|
|
2171
|
+
}
|
|
2172
|
+
},
|
|
2173
|
+
{
|
|
2174
|
+
"kind": "js",
|
|
2175
|
+
"name": "CullMode",
|
|
2176
|
+
"declaration": {
|
|
2177
|
+
"name": "CullMode",
|
|
2178
|
+
"module": "./material"
|
|
2179
|
+
}
|
|
2180
|
+
},
|
|
2181
|
+
{
|
|
2182
|
+
"kind": "js",
|
|
2183
|
+
"name": "FresnelModel",
|
|
2184
|
+
"declaration": {
|
|
2185
|
+
"name": "FresnelModel",
|
|
2186
|
+
"module": "./material"
|
|
2187
|
+
}
|
|
2188
|
+
},
|
|
2189
|
+
{
|
|
2190
|
+
"kind": "js",
|
|
2191
|
+
"name": "OccludeSpecular",
|
|
2192
|
+
"declaration": {
|
|
2193
|
+
"name": "OccludeSpecular",
|
|
2194
|
+
"module": "./material"
|
|
2195
|
+
}
|
|
2196
|
+
},
|
|
2197
|
+
{
|
|
2198
|
+
"kind": "js",
|
|
2199
|
+
"name": "OpacityDither",
|
|
2200
|
+
"declaration": {
|
|
2201
|
+
"name": "OpacityDither",
|
|
2202
|
+
"module": "./material"
|
|
2203
|
+
}
|
|
2204
|
+
},
|
|
2205
|
+
{
|
|
2206
|
+
"kind": "js",
|
|
2207
|
+
"name": "ScalarChannel",
|
|
2208
|
+
"declaration": {
|
|
2209
|
+
"name": "ScalarChannel",
|
|
2210
|
+
"module": "./material"
|
|
2211
|
+
}
|
|
2212
|
+
},
|
|
2099
2213
|
{
|
|
2100
2214
|
"kind": "js",
|
|
2101
2215
|
"name": "HierarchyMaterial",
|
|
@@ -2119,6 +2233,14 @@
|
|
|
2119
2233
|
"name": "MaterialOverrides",
|
|
2120
2234
|
"module": "./node"
|
|
2121
2235
|
}
|
|
2236
|
+
},
|
|
2237
|
+
{
|
|
2238
|
+
"kind": "js",
|
|
2239
|
+
"name": "NodeBindingState",
|
|
2240
|
+
"declaration": {
|
|
2241
|
+
"name": "NodeBindingState",
|
|
2242
|
+
"module": "./node"
|
|
2243
|
+
}
|
|
2122
2244
|
}
|
|
2123
2245
|
]
|
|
2124
2246
|
},
|
|
@@ -4276,6 +4398,7 @@
|
|
|
4276
4398
|
"superclass": {
|
|
4277
4399
|
"name": "HTMLElement"
|
|
4278
4400
|
},
|
|
4401
|
+
"summary": "The `<pc-material>` element defines a physically based material, which\n`<pc-render>` elements apply by naming its `id`. It is metal/rough by default, with `metalness`\nstarting at 0. Must be a direct child of `<pc-app>`.\n",
|
|
4279
4402
|
"tagName": "pc-material",
|
|
4280
4403
|
"customElement": true
|
|
4281
4404
|
}
|
|
@@ -4603,6 +4726,13 @@
|
|
|
4603
4726
|
}
|
|
4604
4727
|
],
|
|
4605
4728
|
"events": [
|
|
4729
|
+
{
|
|
4730
|
+
"type": {
|
|
4731
|
+
"text": "PointerEvent"
|
|
4732
|
+
},
|
|
4733
|
+
"description": "Fired when a primary pointer button is pressed and then released over the model. A press and release that picked different entities fires on their nearest common ancestor instead, as in the DOM. `detail` carries the click count, so a double click arrives as a click whose `detail` is 2.",
|
|
4734
|
+
"name": "click"
|
|
4735
|
+
},
|
|
4606
4736
|
{
|
|
4607
4737
|
"name": "error",
|
|
4608
4738
|
"type": {
|
|
@@ -4690,6 +4820,14 @@
|
|
|
4690
4820
|
"description": "The name of the model.",
|
|
4691
4821
|
"fieldName": "name"
|
|
4692
4822
|
},
|
|
4823
|
+
{
|
|
4824
|
+
"type": {
|
|
4825
|
+
"text": "string"
|
|
4826
|
+
},
|
|
4827
|
+
"description": "Script to run when the model is clicked: a primary pointer button pressed and then released over it.",
|
|
4828
|
+
"name": "onclick",
|
|
4829
|
+
"fieldName": "onclick"
|
|
4830
|
+
},
|
|
4693
4831
|
{
|
|
4694
4832
|
"type": {
|
|
4695
4833
|
"text": "string"
|
|
@@ -4770,6 +4908,7 @@
|
|
|
4770
4908
|
"name": "EntityOwnerElement",
|
|
4771
4909
|
"module": "/src/entity-owner"
|
|
4772
4910
|
},
|
|
4911
|
+
"summary": "The `<pc-model>` element instantiates a 3D model from a container asset\n(typically a GLB) beneath an entity of its own, so the element's transform and tags place the\ninstance in the scene. Its `<pc-node>` children override what the asset authored. Place it in the\n`<pc-scene>`, or nest it under a `<pc-entity>`, another `<pc-model>` or a `<pc-node>`.\n",
|
|
4773
4912
|
"tagName": "pc-model",
|
|
4774
4913
|
"customElement": true
|
|
4775
4914
|
}
|
|
@@ -5126,6 +5265,13 @@
|
|
|
5126
5265
|
}
|
|
5127
5266
|
],
|
|
5128
5267
|
"events": [
|
|
5268
|
+
{
|
|
5269
|
+
"type": {
|
|
5270
|
+
"text": "PointerEvent"
|
|
5271
|
+
},
|
|
5272
|
+
"description": "Fired when a primary pointer button is pressed and then released over the node. A press and release that picked different entities fires on their nearest common ancestor instead, as in the DOM. `detail` carries the click count, so a double click arrives as a click whose `detail` is 2.",
|
|
5273
|
+
"name": "click"
|
|
5274
|
+
},
|
|
5129
5275
|
{
|
|
5130
5276
|
"type": {
|
|
5131
5277
|
"text": "PointerEvent"
|
|
@@ -5206,6 +5352,14 @@
|
|
|
5206
5352
|
"description": "The name of the node to bind, resolved within the nearest ancestor `pc-model` (or `pc-node`) once it has instantiated.",
|
|
5207
5353
|
"fieldName": "name"
|
|
5208
5354
|
},
|
|
5355
|
+
{
|
|
5356
|
+
"type": {
|
|
5357
|
+
"text": "string"
|
|
5358
|
+
},
|
|
5359
|
+
"description": "Script to run when the node is clicked: a primary pointer button pressed and then released over it.",
|
|
5360
|
+
"name": "onclick",
|
|
5361
|
+
"fieldName": "onclick"
|
|
5362
|
+
},
|
|
5209
5363
|
{
|
|
5210
5364
|
"type": {
|
|
5211
5365
|
"text": "string"
|
|
@@ -5283,6 +5437,7 @@
|
|
|
5283
5437
|
"name": "EntityBaseElement",
|
|
5284
5438
|
"module": "/src/entity-base"
|
|
5285
5439
|
},
|
|
5440
|
+
"summary": "The `<pc-node>` element binds to a node inside the hierarchy a `<pc-model>`\ninstantiated and declares overrides against it: a transform, an enabled state, tags, components\nto add, or content to attach. Its `name` is a lookup, never a rename. Must be a descendant of\n`<pc-model>`.\n",
|
|
5286
5441
|
"tagName": "pc-node",
|
|
5287
5442
|
"customElement": true
|
|
5288
5443
|
}
|
|
@@ -5359,6 +5514,22 @@
|
|
|
5359
5514
|
"module": "src/async-element.ts"
|
|
5360
5515
|
}
|
|
5361
5516
|
},
|
|
5517
|
+
{
|
|
5518
|
+
"kind": "field",
|
|
5519
|
+
"name": "exposure",
|
|
5520
|
+
"description": "Gets the exposure of the scene.",
|
|
5521
|
+
"parameters": [
|
|
5522
|
+
{
|
|
5523
|
+
"description": "The exposure.",
|
|
5524
|
+
"name": "value"
|
|
5525
|
+
}
|
|
5526
|
+
],
|
|
5527
|
+
"return": {
|
|
5528
|
+
"type": {
|
|
5529
|
+
"text": ""
|
|
5530
|
+
}
|
|
5531
|
+
}
|
|
5532
|
+
},
|
|
5362
5533
|
{
|
|
5363
5534
|
"kind": "field",
|
|
5364
5535
|
"name": "fog",
|
|
@@ -5485,6 +5656,15 @@
|
|
|
5485
5656
|
}
|
|
5486
5657
|
],
|
|
5487
5658
|
"attributes": [
|
|
5659
|
+
{
|
|
5660
|
+
"name": "exposure",
|
|
5661
|
+
"type": {
|
|
5662
|
+
"text": "number"
|
|
5663
|
+
},
|
|
5664
|
+
"fieldName": "exposure",
|
|
5665
|
+
"default": "1",
|
|
5666
|
+
"description": "The exposure of the scene."
|
|
5667
|
+
},
|
|
5488
5668
|
{
|
|
5489
5669
|
"name": "fog",
|
|
5490
5670
|
"type": {
|
|
@@ -5544,6 +5724,7 @@
|
|
|
5544
5724
|
"name": "AsyncElement",
|
|
5545
5725
|
"module": "/src/async-element"
|
|
5546
5726
|
},
|
|
5727
|
+
"summary": "The `<pc-scene>` element holds the entity hierarchy the application renders,\nalong with the scene-wide fog, exposure and gravity settings. Must be a direct child of\n`<pc-app>`.\n",
|
|
5547
5728
|
"tagName": "pc-scene",
|
|
5548
5729
|
"customElement": true,
|
|
5549
5730
|
"events": [
|
|
@@ -5845,6 +6026,7 @@
|
|
|
5845
6026
|
"name": "AsyncElement",
|
|
5846
6027
|
"module": "/src/async-element"
|
|
5847
6028
|
},
|
|
6029
|
+
"summary": "The `<pc-sky>` element renders a skybox from a texture asset, projected as an\ninfinite background, a box or a dome, and optionally lights the scene from it. Must be a direct\nchild of `<pc-scene>`.\n",
|
|
5848
6030
|
"tagName": "pc-sky",
|
|
5849
6031
|
"customElement": true,
|
|
5850
6032
|
"events": [
|
|
@@ -5975,6 +6157,7 @@
|
|
|
5975
6157
|
"name": "AsyncElement",
|
|
5976
6158
|
"module": "/src/async-element"
|
|
5977
6159
|
},
|
|
6160
|
+
"summary": "The `<pc-wasm>` element loads a WebAssembly module the engine needs before the\napplication starts — `Ammo` for physics, `Basis` or `DracoDecoderModule` for compressed assets.\nMust be a direct child of `<pc-app>`.\n",
|
|
5978
6161
|
"tagName": "pc-wasm",
|
|
5979
6162
|
"customElement": true,
|
|
5980
6163
|
"events": [
|
|
@@ -6175,6 +6358,7 @@
|
|
|
6175
6358
|
"name": "AsyncElement",
|
|
6176
6359
|
"module": "/src/async-element"
|
|
6177
6360
|
},
|
|
6361
|
+
"summary": "The `<pc-anim-clip>` element declares one named animation clip on its parent\n`<pc-anim>`, taken from the `asset` it names or, without one, from the enclosing `<pc-model>`'s\nown animations. Must be a direct child of `<pc-anim>`.\n",
|
|
6178
6362
|
"tagName": "pc-anim-clip",
|
|
6179
6363
|
"customElement": true,
|
|
6180
6364
|
"events": [
|
|
@@ -6483,6 +6667,7 @@
|
|
|
6483
6667
|
"name": "ComponentElement",
|
|
6484
6668
|
"module": "/src/components/component"
|
|
6485
6669
|
},
|
|
6670
|
+
"summary": "The `<pc-anim>` element plays animation clips over its entity's hierarchy, taken\nfrom `<pc-anim-clip>` children or from the enclosing `<pc-model>`'s own animations. The first\nclip plays automatically, and the `clip` attribute switches between them. Must be a child of a\n`<pc-entity>`, `<pc-model>` or `<pc-node>`.\n",
|
|
6486
6671
|
"tagName": "pc-anim",
|
|
6487
6672
|
"customElement": true,
|
|
6488
6673
|
"events": [
|
|
@@ -6629,6 +6814,7 @@
|
|
|
6629
6814
|
"name": "ComponentElement",
|
|
6630
6815
|
"module": "/src/components/component"
|
|
6631
6816
|
},
|
|
6817
|
+
"summary": "The `<pc-audio-listener>` element makes its entity the point from which\npositional sounds are heard, typically the entity holding the `<pc-camera>`. Must be a child of a\n`<pc-entity>`, `<pc-model>` or `<pc-node>`.\n",
|
|
6632
6818
|
"tagName": "pc-audio-listener",
|
|
6633
6819
|
"customElement": true,
|
|
6634
6820
|
"attributes": [
|
|
@@ -7143,6 +7329,7 @@
|
|
|
7143
7329
|
"name": "ComponentElement",
|
|
7144
7330
|
"module": "/src/components/component"
|
|
7145
7331
|
},
|
|
7332
|
+
"summary": "The `<pc-button>` element makes its entity respond to pointer input, tinting or\nswapping its image as the pointer hovers, presses and releases it. The entity also needs a\n`<pc-element>` with `use-input` set. Must be a child of a `<pc-entity>`, `<pc-model>` or\n`<pc-node>`.\n",
|
|
7146
7333
|
"tagName": "pc-button",
|
|
7147
7334
|
"customElement": true,
|
|
7148
7335
|
"events": [
|
|
@@ -7188,6 +7375,20 @@
|
|
|
7188
7375
|
"description": "The CameraComponentElement interface provides properties and methods for manipulating\n[`<pc-camera>`](https://developer.playcanvas.com/user-manual/web-components/tags/pc-camera/) elements.\nThe CameraComponentElement interface also inherits the properties and methods of the\nHTMLElement interface.\n\nEngine component: CameraComponent (`camera`).\n",
|
|
7189
7376
|
"name": "CameraComponentElement",
|
|
7190
7377
|
"members": [
|
|
7378
|
+
{
|
|
7379
|
+
"kind": "field",
|
|
7380
|
+
"name": "arAvailable",
|
|
7381
|
+
"type": {
|
|
7382
|
+
"text": "boolean"
|
|
7383
|
+
},
|
|
7384
|
+
"description": "Whether immersive AR is available. Independent of vrAvailable: a device can offer\neither mode without the other.",
|
|
7385
|
+
"return": {
|
|
7386
|
+
"type": {
|
|
7387
|
+
"text": ""
|
|
7388
|
+
}
|
|
7389
|
+
},
|
|
7390
|
+
"readonly": true
|
|
7391
|
+
},
|
|
7191
7392
|
{
|
|
7192
7393
|
"kind": "field",
|
|
7193
7394
|
"name": "clearColor",
|
|
@@ -7226,6 +7427,25 @@
|
|
|
7226
7427
|
}
|
|
7227
7428
|
}
|
|
7228
7429
|
},
|
|
7430
|
+
{
|
|
7431
|
+
"kind": "field",
|
|
7432
|
+
"name": "clearDepth",
|
|
7433
|
+
"description": "Gets the depth value the depth buffer is cleared to.",
|
|
7434
|
+
"parameters": [
|
|
7435
|
+
{
|
|
7436
|
+
"description": "The clear depth value.",
|
|
7437
|
+
"name": "value"
|
|
7438
|
+
}
|
|
7439
|
+
],
|
|
7440
|
+
"type": {
|
|
7441
|
+
"text": "number"
|
|
7442
|
+
},
|
|
7443
|
+
"return": {
|
|
7444
|
+
"type": {
|
|
7445
|
+
"text": ""
|
|
7446
|
+
}
|
|
7447
|
+
}
|
|
7448
|
+
},
|
|
7229
7449
|
{
|
|
7230
7450
|
"kind": "field",
|
|
7231
7451
|
"name": "clearDepthBuffer",
|
|
@@ -7640,7 +7860,16 @@
|
|
|
7640
7860
|
},
|
|
7641
7861
|
{
|
|
7642
7862
|
"kind": "field",
|
|
7643
|
-
"name": "
|
|
7863
|
+
"name": "vrAvailable",
|
|
7864
|
+
"type": {
|
|
7865
|
+
"text": "boolean"
|
|
7866
|
+
},
|
|
7867
|
+
"description": "Whether immersive VR is available. Independent of arAvailable: a device can offer\neither mode without the other.",
|
|
7868
|
+
"return": {
|
|
7869
|
+
"type": {
|
|
7870
|
+
"text": ""
|
|
7871
|
+
}
|
|
7872
|
+
},
|
|
7644
7873
|
"readonly": true
|
|
7645
7874
|
}
|
|
7646
7875
|
],
|
|
@@ -7663,6 +7892,15 @@
|
|
|
7663
7892
|
"default": "true",
|
|
7664
7893
|
"description": "The clear color buffer of the camera."
|
|
7665
7894
|
},
|
|
7895
|
+
{
|
|
7896
|
+
"name": "clear-depth",
|
|
7897
|
+
"type": {
|
|
7898
|
+
"text": "number"
|
|
7899
|
+
},
|
|
7900
|
+
"fieldName": "clearDepth",
|
|
7901
|
+
"default": "1",
|
|
7902
|
+
"description": "The depth value the depth buffer is cleared to."
|
|
7903
|
+
},
|
|
7666
7904
|
{
|
|
7667
7905
|
"name": "clear-depth-buffer",
|
|
7668
7906
|
"type": {
|
|
@@ -7678,7 +7916,7 @@
|
|
|
7678
7916
|
"text": "boolean"
|
|
7679
7917
|
},
|
|
7680
7918
|
"fieldName": "clearStencilBuffer",
|
|
7681
|
-
"default": "
|
|
7919
|
+
"default": "true",
|
|
7682
7920
|
"description": "The clear stencil buffer of the camera."
|
|
7683
7921
|
},
|
|
7684
7922
|
{
|
|
@@ -7825,6 +8063,7 @@
|
|
|
7825
8063
|
"name": "ComponentElement",
|
|
7826
8064
|
"module": "/src/components/component"
|
|
7827
8065
|
},
|
|
8066
|
+
"summary": "The `<pc-camera>` element renders the scene from its entity's transform, with\nattributes for the projection, field of view, clip planes, clear color and tonemapping. Must be a\nchild of a `<pc-entity>`, `<pc-model>` or `<pc-node>`.\n",
|
|
7828
8067
|
"tagName": "pc-camera",
|
|
7829
8068
|
"customElement": true,
|
|
7830
8069
|
"events": [
|
|
@@ -8077,6 +8316,7 @@
|
|
|
8077
8316
|
"name": "ComponentElement",
|
|
8078
8317
|
"module": "/src/components/component"
|
|
8079
8318
|
},
|
|
8319
|
+
"summary": "The `<pc-collision>` element gives its entity a collision shape — a box, sphere,\ncapsule, cone, cylinder or mesh — for the physics simulation to collide against. Pair it with a\n`<pc-rigid-body>`. Must be a child of a `<pc-entity>`, `<pc-model>` or `<pc-node>`.\n",
|
|
8080
8320
|
"tagName": "pc-collision",
|
|
8081
8321
|
"customElement": true,
|
|
8082
8322
|
"events": [
|
|
@@ -9008,6 +9248,7 @@
|
|
|
9008
9248
|
"name": "ComponentElement",
|
|
9009
9249
|
"module": "/src/components/component"
|
|
9010
9250
|
},
|
|
9251
|
+
"summary": "The `<pc-element>` element gives its entity a 2D UI rectangle inside a\n`<pc-screen>` hierarchy, drawing an image, a line of text or nothing (`type=\"image\"`, `\"text\"` or\n`\"group\"`). Must be a child of a `<pc-entity>`, `<pc-model>` or `<pc-node>`.\n",
|
|
9011
9252
|
"tagName": "pc-element",
|
|
9012
9253
|
"customElement": true,
|
|
9013
9254
|
"events": [
|
|
@@ -9310,6 +9551,7 @@
|
|
|
9310
9551
|
"name": "ComponentElement",
|
|
9311
9552
|
"module": "/src/components/component"
|
|
9312
9553
|
},
|
|
9554
|
+
"summary": "The `<pc-gsplat>` element renders the 3D Gaussian splats of a `gsplat` asset at\nits entity, with attributes for shadow casting and level of detail. Must be a child of a\n`<pc-entity>`, `<pc-model>` or `<pc-node>`.\n",
|
|
9313
9555
|
"tagName": "pc-gsplat",
|
|
9314
9556
|
"customElement": true,
|
|
9315
9557
|
"events": [
|
|
@@ -10231,6 +10473,7 @@
|
|
|
10231
10473
|
"name": "ComponentElement",
|
|
10232
10474
|
"module": "/src/components/component"
|
|
10233
10475
|
},
|
|
10476
|
+
"summary": "The `<pc-joint>` element constrains two rigid bodies to each other — a hinged\ndoor, a swinging chain, a sliding drawer. Its entity's transform is the joint frame, and\n`entity-a` and `entity-b` name the bodies. Must be a child of a `<pc-entity>`, `<pc-model>` or\n`<pc-node>`.\n",
|
|
10234
10477
|
"tagName": "pc-joint",
|
|
10235
10478
|
"customElement": true
|
|
10236
10479
|
}
|
|
@@ -10544,6 +10787,7 @@
|
|
|
10544
10787
|
"name": "ComponentElement",
|
|
10545
10788
|
"module": "/src/components/component"
|
|
10546
10789
|
},
|
|
10790
|
+
"summary": "The `<pc-layout-child>` element controls how its entity is sized by the\n`<pc-layout-group>` above it, through minimum and maximum sizes and fit proportions. Must be a\nchild of a `<pc-entity>`, `<pc-model>` or `<pc-node>`.\n",
|
|
10547
10791
|
"tagName": "pc-layout-child",
|
|
10548
10792
|
"customElement": true,
|
|
10549
10793
|
"events": [
|
|
@@ -10922,6 +11166,7 @@
|
|
|
10922
11166
|
"name": "ComponentElement",
|
|
10923
11167
|
"module": "/src/components/component"
|
|
10924
11168
|
},
|
|
11169
|
+
"summary": "The `<pc-layout-group>` element arranges its entity's children in a row or\ncolumn, with spacing, padding, alignment and fitting. Must be a child of a `<pc-entity>`,\n`<pc-model>` or `<pc-node>`.\n",
|
|
10925
11170
|
"tagName": "pc-layout-group",
|
|
10926
11171
|
"customElement": true,
|
|
10927
11172
|
"events": [
|
|
@@ -10967,6 +11212,38 @@
|
|
|
10967
11212
|
"description": "The LightComponentElement interface provides properties and methods for manipulating\n[`<pc-light>`](https://developer.playcanvas.com/user-manual/web-components/tags/pc-light/) elements.\nThe LightComponentElement interface also inherits the properties and methods of the\nHTMLElement interface.\n\nEngine component: LightComponent (`light`).\n",
|
|
10968
11213
|
"name": "LightComponentElement",
|
|
10969
11214
|
"members": [
|
|
11215
|
+
{
|
|
11216
|
+
"kind": "field",
|
|
11217
|
+
"name": "cascadeBlend",
|
|
11218
|
+
"description": "Gets the cascade blend factor of the light, from 0 (no blending) to 1, which applies only to\n`directional` lights with `num-cascades` greater than 1.",
|
|
11219
|
+
"parameters": [
|
|
11220
|
+
{
|
|
11221
|
+
"description": "The cascade blend factor.",
|
|
11222
|
+
"name": "value"
|
|
11223
|
+
}
|
|
11224
|
+
],
|
|
11225
|
+
"return": {
|
|
11226
|
+
"type": {
|
|
11227
|
+
"text": ""
|
|
11228
|
+
}
|
|
11229
|
+
}
|
|
11230
|
+
},
|
|
11231
|
+
{
|
|
11232
|
+
"kind": "field",
|
|
11233
|
+
"name": "cascadeDistribution",
|
|
11234
|
+
"description": "Gets the cascade distribution of the light, from 0 (linear split) to 1 (logarithmic split,\nconcentrating shadow resolution near the camera), which applies only to `directional` lights\nwith `num-cascades` greater than 1.",
|
|
11235
|
+
"parameters": [
|
|
11236
|
+
{
|
|
11237
|
+
"description": "The cascade distribution.",
|
|
11238
|
+
"name": "value"
|
|
11239
|
+
}
|
|
11240
|
+
],
|
|
11241
|
+
"return": {
|
|
11242
|
+
"type": {
|
|
11243
|
+
"text": ""
|
|
11244
|
+
}
|
|
11245
|
+
}
|
|
11246
|
+
},
|
|
10970
11247
|
{
|
|
10971
11248
|
"kind": "field",
|
|
10972
11249
|
"name": "castShadows",
|
|
@@ -11121,6 +11398,22 @@
|
|
|
11121
11398
|
}
|
|
11122
11399
|
}
|
|
11123
11400
|
},
|
|
11401
|
+
{
|
|
11402
|
+
"kind": "field",
|
|
11403
|
+
"name": "numCascades",
|
|
11404
|
+
"description": "Gets the number of shadow cascades of the light, an integer from 1 (no cascades) to 4, which\napplies only to `directional` lights.",
|
|
11405
|
+
"parameters": [
|
|
11406
|
+
{
|
|
11407
|
+
"description": "The number of shadow cascades.",
|
|
11408
|
+
"name": "value"
|
|
11409
|
+
}
|
|
11410
|
+
],
|
|
11411
|
+
"return": {
|
|
11412
|
+
"type": {
|
|
11413
|
+
"text": ""
|
|
11414
|
+
}
|
|
11415
|
+
}
|
|
11416
|
+
},
|
|
11124
11417
|
{
|
|
11125
11418
|
"kind": "field",
|
|
11126
11419
|
"name": "outerConeAngle",
|
|
@@ -11361,6 +11654,24 @@
|
|
|
11361
11654
|
}
|
|
11362
11655
|
],
|
|
11363
11656
|
"attributes": [
|
|
11657
|
+
{
|
|
11658
|
+
"name": "cascade-blend",
|
|
11659
|
+
"type": {
|
|
11660
|
+
"text": "number"
|
|
11661
|
+
},
|
|
11662
|
+
"fieldName": "cascadeBlend",
|
|
11663
|
+
"default": "0",
|
|
11664
|
+
"description": "The cascade blend factor of the light, from 0 (no blending) to 1, which applies only to `directional` lights with `num-cascades` greater than 1."
|
|
11665
|
+
},
|
|
11666
|
+
{
|
|
11667
|
+
"name": "cascade-distribution",
|
|
11668
|
+
"type": {
|
|
11669
|
+
"text": "number"
|
|
11670
|
+
},
|
|
11671
|
+
"fieldName": "cascadeDistribution",
|
|
11672
|
+
"default": "0.5",
|
|
11673
|
+
"description": "The cascade distribution of the light, from 0 (linear split) to 1 (logarithmic split, concentrating shadow resolution near the camera), which applies only to `directional` lights with `num-cascades` greater than 1."
|
|
11674
|
+
},
|
|
11364
11675
|
{
|
|
11365
11676
|
"name": "cast-shadows",
|
|
11366
11677
|
"type": {
|
|
@@ -11416,9 +11727,18 @@
|
|
|
11416
11727
|
"text": "number"
|
|
11417
11728
|
},
|
|
11418
11729
|
"fieldName": "normalOffsetBias",
|
|
11419
|
-
"default": "0
|
|
11730
|
+
"default": "0",
|
|
11420
11731
|
"description": "The normal offset bias of the light."
|
|
11421
11732
|
},
|
|
11733
|
+
{
|
|
11734
|
+
"name": "num-cascades",
|
|
11735
|
+
"type": {
|
|
11736
|
+
"text": "number"
|
|
11737
|
+
},
|
|
11738
|
+
"fieldName": "numCascades",
|
|
11739
|
+
"default": "1",
|
|
11740
|
+
"description": "The number of shadow cascades of the light, an integer from 1 (no cascades) to 4, which applies only to `directional` lights."
|
|
11741
|
+
},
|
|
11422
11742
|
{
|
|
11423
11743
|
"name": "outer-cone-angle",
|
|
11424
11744
|
"type": {
|
|
@@ -11461,7 +11781,7 @@
|
|
|
11461
11781
|
"text": "number"
|
|
11462
11782
|
},
|
|
11463
11783
|
"fieldName": "shadowBias",
|
|
11464
|
-
"default": "0.
|
|
11784
|
+
"default": "0.05",
|
|
11465
11785
|
"description": "The shadow bias of the light."
|
|
11466
11786
|
},
|
|
11467
11787
|
{
|
|
@@ -11479,7 +11799,7 @@
|
|
|
11479
11799
|
"text": "number"
|
|
11480
11800
|
},
|
|
11481
11801
|
"fieldName": "shadowDistance",
|
|
11482
|
-
"default": "
|
|
11802
|
+
"default": "40",
|
|
11483
11803
|
"description": "The shadow distance of the light."
|
|
11484
11804
|
},
|
|
11485
11805
|
{
|
|
@@ -11533,7 +11853,7 @@
|
|
|
11533
11853
|
"text": "number"
|
|
11534
11854
|
},
|
|
11535
11855
|
"fieldName": "vsmBias",
|
|
11536
|
-
"default": "0.
|
|
11856
|
+
"default": "0.0025",
|
|
11537
11857
|
"description": "The VSM bias of the light."
|
|
11538
11858
|
},
|
|
11539
11859
|
{
|
|
@@ -11550,6 +11870,7 @@
|
|
|
11550
11870
|
"name": "ComponentElement",
|
|
11551
11871
|
"module": "/src/components/component"
|
|
11552
11872
|
},
|
|
11873
|
+
"summary": "The `<pc-light>` element lights the scene from its entity — as a directional,\nomni or spot light — with attributes for color, intensity, range and shadows. Must be a child of\na `<pc-entity>`, `<pc-model>` or `<pc-node>`.\n",
|
|
11553
11874
|
"tagName": "pc-light",
|
|
11554
11875
|
"customElement": true,
|
|
11555
11876
|
"events": [
|
|
@@ -11750,6 +12071,7 @@
|
|
|
11750
12071
|
"name": "ComponentElement",
|
|
11751
12072
|
"module": "/src/components/component"
|
|
11752
12073
|
},
|
|
12074
|
+
"summary": "The `<pc-particle-system>` element emits particles from its entity, with\nattributes for the emitter's shape, rate, lifetime, textures and blending. Must be a child of a\n`<pc-entity>`, `<pc-model>` or `<pc-node>`.\n",
|
|
11753
12075
|
"tagName": "pc-particle-system",
|
|
11754
12076
|
"customElement": true,
|
|
11755
12077
|
"events": [
|
|
@@ -12011,6 +12333,7 @@
|
|
|
12011
12333
|
"name": "ComponentElement",
|
|
12012
12334
|
"module": "/src/components/component"
|
|
12013
12335
|
},
|
|
12336
|
+
"summary": "The `<pc-render>` element renders one of the engine's built-in primitives at its\nentity — box, sphere, capsule, cone, cylinder or plane — shaded by the `<pc-material>` its\n`material` attribute names. For glTF content, use `<pc-model>` instead. Must be a child of a\n`<pc-entity>`, `<pc-model>` or `<pc-node>`.\n",
|
|
12014
12337
|
"tagName": "pc-render",
|
|
12015
12338
|
"customElement": true,
|
|
12016
12339
|
"events": [
|
|
@@ -12274,6 +12597,7 @@
|
|
|
12274
12597
|
"name": "ComponentElement",
|
|
12275
12598
|
"module": "/src/components/component"
|
|
12276
12599
|
},
|
|
12600
|
+
"summary": "The `<pc-rigid-body>` element hands its entity to the physics simulation, with\nattributes for its type, mass, friction and restitution. It needs a sibling `<pc-collision>` for\nits shape, and `Ammo` loaded through `<pc-wasm>`. Must be a child of a `<pc-entity>`,\n`<pc-model>` or `<pc-node>`.\n",
|
|
12277
12601
|
"tagName": "pc-rigid-body",
|
|
12278
12602
|
"customElement": true,
|
|
12279
12603
|
"events": [
|
|
@@ -12527,6 +12851,7 @@
|
|
|
12527
12851
|
"name": "ComponentElement",
|
|
12528
12852
|
"module": "/src/components/component"
|
|
12529
12853
|
},
|
|
12854
|
+
"summary": "The `<pc-screen>` element gives its entity a 2D space — in screen space or in the\nworld — that a hierarchy of `<pc-element>` descendants lays out inside. Must be a child of a\n`<pc-entity>`, `<pc-model>` or `<pc-node>`.\n",
|
|
12530
12855
|
"tagName": "pc-screen",
|
|
12531
12856
|
"customElement": true,
|
|
12532
12857
|
"events": [
|
|
@@ -12665,6 +12990,7 @@
|
|
|
12665
12990
|
"name": "ComponentElement",
|
|
12666
12991
|
"module": "/src/components/component"
|
|
12667
12992
|
},
|
|
12993
|
+
"summary": "The `<pc-script>` element holds the `<pc-script-instance>` children that attach\nscripts to its entity. Must be a child of a `<pc-entity>`, `<pc-model>` or `<pc-node>`.\n",
|
|
12668
12994
|
"tagName": "pc-script",
|
|
12669
12995
|
"customElement": true,
|
|
12670
12996
|
"attributes": [
|
|
@@ -12906,6 +13232,7 @@
|
|
|
12906
13232
|
"name": "AsyncElement",
|
|
12907
13233
|
"module": "/src/async-element"
|
|
12908
13234
|
},
|
|
13235
|
+
"summary": "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",
|
|
12909
13236
|
"tagName": "pc-script-instance",
|
|
12910
13237
|
"customElement": true
|
|
12911
13238
|
}
|
|
@@ -13367,6 +13694,7 @@
|
|
|
13367
13694
|
"name": "ComponentElement",
|
|
13368
13695
|
"module": "/src/components/component"
|
|
13369
13696
|
},
|
|
13697
|
+
"summary": "The `<pc-scroll-view>` element scrolls a larger content entity within a clipped\nviewport at its entity, optionally driven by the `<pc-scrollbar>` elements it references. Must be\na child of a `<pc-entity>`, `<pc-model>` or `<pc-node>`.\n",
|
|
13370
13698
|
"tagName": "pc-scroll-view",
|
|
13371
13699
|
"customElement": true,
|
|
13372
13700
|
"events": [
|
|
@@ -13619,6 +13947,7 @@
|
|
|
13619
13947
|
"name": "ComponentElement",
|
|
13620
13948
|
"module": "/src/components/component"
|
|
13621
13949
|
},
|
|
13950
|
+
"summary": "The `<pc-scrollbar>` element gives its entity a draggable handle reporting a\nposition from 0 to 1, which a `<pc-scroll-view>` references to scroll its content. Must be a\nchild of a `<pc-entity>`, `<pc-model>` or `<pc-node>`.\n",
|
|
13622
13951
|
"tagName": "pc-scrollbar",
|
|
13623
13952
|
"customElement": true,
|
|
13624
13953
|
"events": [
|
|
@@ -13950,6 +14279,7 @@
|
|
|
13950
14279
|
"name": "ComponentElement",
|
|
13951
14280
|
"module": "/src/components/component"
|
|
13952
14281
|
},
|
|
14282
|
+
"summary": "The `<pc-sound>` element holds the `<pc-sound-slot>` children that play sounds at\nits entity, along with the positional audio settings they share. Must be a child of a\n`<pc-entity>`, `<pc-model>` or `<pc-node>`.\n",
|
|
13953
14283
|
"tagName": "pc-sound",
|
|
13954
14284
|
"customElement": true,
|
|
13955
14285
|
"events": [
|
|
@@ -14286,6 +14616,7 @@
|
|
|
14286
14616
|
"name": "AsyncElement",
|
|
14287
14617
|
"module": "/src/async-element"
|
|
14288
14618
|
},
|
|
14619
|
+
"summary": "The `<pc-sound-slot>` element declares one named sound on its parent `<pc-sound>`\n— its asset, volume, pitch, looping and autoplay. Must be a direct child of `<pc-sound>`.\n",
|
|
14289
14620
|
"tagName": "pc-sound-slot",
|
|
14290
14621
|
"customElement": true,
|
|
14291
14622
|
"events": [
|