@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
package/dist/scene.d.cts
CHANGED
|
@@ -6,8 +6,16 @@ import { AsyncElement } from './async-element.cjs';
|
|
|
6
6
|
* {@link https://developer.playcanvas.com/user-manual/web-components/tags/pc-scene/ | `<pc-scene>`} elements.
|
|
7
7
|
* The SceneElement interface also inherits the properties and methods of the
|
|
8
8
|
* {@link HTMLElement} interface.
|
|
9
|
+
*
|
|
10
|
+
* @elementSummary The `<pc-scene>` element holds the entity hierarchy the application renders,
|
|
11
|
+
* along with the scene-wide fog, exposure and gravity settings. Must be a direct child of
|
|
12
|
+
* `<pc-app>`.
|
|
9
13
|
*/
|
|
10
14
|
declare class SceneElement extends AsyncElement {
|
|
15
|
+
/**
|
|
16
|
+
* The exposure of the scene.
|
|
17
|
+
*/
|
|
18
|
+
private _exposure;
|
|
11
19
|
/**
|
|
12
20
|
* The fog type of the scene.
|
|
13
21
|
*/
|
|
@@ -50,6 +58,17 @@ declare class SceneElement extends AsyncElement {
|
|
|
50
58
|
* @param value - The gravity to apply.
|
|
51
59
|
*/
|
|
52
60
|
private _applyGravity;
|
|
61
|
+
/**
|
|
62
|
+
* Sets the exposure of the scene, which tweaks the overall brightness of the rendered image.
|
|
63
|
+
* Ignored if the scene is using physical units. Defaults to 1.
|
|
64
|
+
* @param value - The exposure.
|
|
65
|
+
*/
|
|
66
|
+
set exposure(value: number);
|
|
67
|
+
/**
|
|
68
|
+
* Gets the exposure of the scene.
|
|
69
|
+
* @returns The exposure.
|
|
70
|
+
*/
|
|
71
|
+
get exposure(): number;
|
|
53
72
|
/**
|
|
54
73
|
* Sets the fog type of the scene. Can be `none`, `linear`, `exp` or `exp2`. Defaults to
|
|
55
74
|
* `none`.
|
package/dist/scene.d.ts
CHANGED
|
@@ -6,8 +6,16 @@ import { AsyncElement } from './async-element.js';
|
|
|
6
6
|
* {@link https://developer.playcanvas.com/user-manual/web-components/tags/pc-scene/ | `<pc-scene>`} elements.
|
|
7
7
|
* The SceneElement interface also inherits the properties and methods of the
|
|
8
8
|
* {@link HTMLElement} interface.
|
|
9
|
+
*
|
|
10
|
+
* @elementSummary The `<pc-scene>` element holds the entity hierarchy the application renders,
|
|
11
|
+
* along with the scene-wide fog, exposure and gravity settings. Must be a direct child of
|
|
12
|
+
* `<pc-app>`.
|
|
9
13
|
*/
|
|
10
14
|
declare class SceneElement extends AsyncElement {
|
|
15
|
+
/**
|
|
16
|
+
* The exposure of the scene.
|
|
17
|
+
*/
|
|
18
|
+
private _exposure;
|
|
11
19
|
/**
|
|
12
20
|
* The fog type of the scene.
|
|
13
21
|
*/
|
|
@@ -50,6 +58,17 @@ declare class SceneElement extends AsyncElement {
|
|
|
50
58
|
* @param value - The gravity to apply.
|
|
51
59
|
*/
|
|
52
60
|
private _applyGravity;
|
|
61
|
+
/**
|
|
62
|
+
* Sets the exposure of the scene, which tweaks the overall brightness of the rendered image.
|
|
63
|
+
* Ignored if the scene is using physical units. Defaults to 1.
|
|
64
|
+
* @param value - The exposure.
|
|
65
|
+
*/
|
|
66
|
+
set exposure(value: number);
|
|
67
|
+
/**
|
|
68
|
+
* Gets the exposure of the scene.
|
|
69
|
+
* @returns The exposure.
|
|
70
|
+
*/
|
|
71
|
+
get exposure(): number;
|
|
53
72
|
/**
|
|
54
73
|
* Sets the fog type of the scene. Can be `none`, `linear`, `exp` or `exp2`. Defaults to
|
|
55
74
|
* `none`.
|
package/dist/sky.d.cts
CHANGED
|
@@ -4,6 +4,10 @@ import { AsyncElement } from './async-element.cjs';
|
|
|
4
4
|
* The SkyElement interface provides properties and methods for manipulating
|
|
5
5
|
* `<pc-sky>` elements. The SkyElement interface also inherits the properties and
|
|
6
6
|
* methods of the {@link HTMLElement} interface.
|
|
7
|
+
*
|
|
8
|
+
* @elementSummary The `<pc-sky>` element renders a skybox from a texture asset, projected as an
|
|
9
|
+
* infinite background, a box or a dome, and optionally lights the scene from it. Must be a direct
|
|
10
|
+
* child of `<pc-scene>`.
|
|
7
11
|
*/
|
|
8
12
|
declare class SkyElement extends AsyncElement {
|
|
9
13
|
private _asset;
|
package/dist/sky.d.ts
CHANGED
|
@@ -4,6 +4,10 @@ import { AsyncElement } from './async-element.js';
|
|
|
4
4
|
* The SkyElement interface provides properties and methods for manipulating
|
|
5
5
|
* `<pc-sky>` elements. The SkyElement interface also inherits the properties and
|
|
6
6
|
* methods of the {@link HTMLElement} interface.
|
|
7
|
+
*
|
|
8
|
+
* @elementSummary The `<pc-sky>` element renders a skybox from a texture asset, projected as an
|
|
9
|
+
* infinite background, a box or a dome, and optionally lights the scene from it. Must be a direct
|
|
10
|
+
* child of `<pc-scene>`.
|
|
7
11
|
*/
|
|
8
12
|
declare class SkyElement extends AsyncElement {
|
|
9
13
|
private _asset;
|