@playcanvas/web-components 0.3.0 → 0.5.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/LICENSE +21 -21
- package/README.md +84 -84
- package/dist/components/light-component.d.ts +48 -0
- package/dist/components/splat-component.d.ts +0 -13
- package/dist/pwc.cjs +275 -207
- package/dist/pwc.cjs.map +1 -1
- package/dist/pwc.js +275 -207
- 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.mjs +276 -208
- package/dist/pwc.mjs.map +1 -1
- package/package.json +76 -66
- package/src/app.ts +612 -606
- package/src/asset.ts +159 -159
- package/src/async-element.ts +46 -46
- package/src/colors.ts +150 -150
- package/src/components/camera-component.ts +557 -557
- package/src/components/collision-component.ts +183 -183
- package/src/components/component.ts +97 -97
- package/src/components/element-component.ts +367 -367
- package/src/components/light-component.ts +570 -466
- package/src/components/listener-component.ts +30 -30
- package/src/components/particlesystem-component.ts +155 -155
- package/src/components/render-component.ts +147 -147
- package/src/components/rigidbody-component.ts +227 -227
- package/src/components/screen-component.ts +157 -157
- package/src/components/script-component.ts +270 -270
- package/src/components/script.ts +90 -90
- package/src/components/sound-component.ts +230 -230
- package/src/components/sound-slot.ts +288 -288
- package/src/components/splat-component.ts +102 -133
- package/src/entity.ts +360 -360
- package/src/index.ts +63 -63
- package/src/material.ts +141 -141
- package/src/model.ts +111 -111
- package/src/module.ts +43 -43
- package/src/scene.ts +217 -217
- package/src/sky.ts +293 -293
- package/src/utils.ts +71 -71
package/package.json
CHANGED
|
@@ -1,66 +1,76 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@playcanvas/web-components",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"author": "PlayCanvas <support@playcanvas.com>",
|
|
5
|
-
"homepage": "https://playcanvas.com",
|
|
6
|
-
"description": "Web Components for the PlayCanvas Engine",
|
|
7
|
-
"keywords": [
|
|
8
|
-
"custom-elements",
|
|
9
|
-
"declarative",
|
|
10
|
-
"html",
|
|
11
|
-
"playcanvas",
|
|
12
|
-
"typescript",
|
|
13
|
-
"web-components",
|
|
14
|
-
"webgl",
|
|
15
|
-
"webgpu",
|
|
16
|
-
"webxr"
|
|
17
|
-
],
|
|
18
|
-
"license": "MIT",
|
|
19
|
-
"
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
"
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
"
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
"
|
|
52
|
-
"eslint": "
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
|
|
66
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@playcanvas/web-components",
|
|
3
|
+
"version": "0.5.0",
|
|
4
|
+
"author": "PlayCanvas <support@playcanvas.com>",
|
|
5
|
+
"homepage": "https://playcanvas.com",
|
|
6
|
+
"description": "Web Components for the PlayCanvas Engine",
|
|
7
|
+
"keywords": [
|
|
8
|
+
"custom-elements",
|
|
9
|
+
"declarative",
|
|
10
|
+
"html",
|
|
11
|
+
"playcanvas",
|
|
12
|
+
"typescript",
|
|
13
|
+
"web-components",
|
|
14
|
+
"webgl",
|
|
15
|
+
"webgpu",
|
|
16
|
+
"webxr"
|
|
17
|
+
],
|
|
18
|
+
"license": "MIT",
|
|
19
|
+
"repository": {
|
|
20
|
+
"type": "git",
|
|
21
|
+
"url": "git+https://github.com/playcanvas/web-components.git"
|
|
22
|
+
},
|
|
23
|
+
"bugs": {
|
|
24
|
+
"url": "https://github.com/playcanvas/web-components/issues"
|
|
25
|
+
},
|
|
26
|
+
"main": "dist/pwc.cjs",
|
|
27
|
+
"module": "dist/pwc.mjs",
|
|
28
|
+
"browser": "dist/pwc.js",
|
|
29
|
+
"types": "dist/index.d.ts",
|
|
30
|
+
"type": "module",
|
|
31
|
+
"files": [
|
|
32
|
+
"dist",
|
|
33
|
+
"src"
|
|
34
|
+
],
|
|
35
|
+
"scripts": {
|
|
36
|
+
"build": "rollup -c",
|
|
37
|
+
"dev": "concurrently \"npm run watch\" \"npm run serve\"",
|
|
38
|
+
"docs": "typedoc",
|
|
39
|
+
"lint": "eslint examples/js examples/assets/scripts src",
|
|
40
|
+
"serve": "serve",
|
|
41
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
42
|
+
"publint": "publint",
|
|
43
|
+
"type-check": "tsc --noEmit",
|
|
44
|
+
"type-check:watch": "npm run type-check -- --watch",
|
|
45
|
+
"watch": "rollup -c -w"
|
|
46
|
+
},
|
|
47
|
+
"peerDependencies": {
|
|
48
|
+
"playcanvas": "^2.19.0"
|
|
49
|
+
},
|
|
50
|
+
"devDependencies": {
|
|
51
|
+
"@mediapipe/tasks-vision": "0.10.35",
|
|
52
|
+
"@playcanvas/eslint-config": "2.1.0",
|
|
53
|
+
"@rollup/plugin-commonjs": "29.0.3",
|
|
54
|
+
"@rollup/plugin-node-resolve": "16.0.3",
|
|
55
|
+
"@rollup/plugin-terser": "1.0.0",
|
|
56
|
+
"@rollup/plugin-typescript": "12.3.0",
|
|
57
|
+
"@tweenjs/tween.js": "25.0.0",
|
|
58
|
+
"@typescript-eslint/eslint-plugin": "8.60.0",
|
|
59
|
+
"@typescript-eslint/parser": "8.60.0",
|
|
60
|
+
"concurrently": "10.0.0",
|
|
61
|
+
"earcut": "3.0.2",
|
|
62
|
+
"eslint": "9.39.4",
|
|
63
|
+
"eslint-import-resolver-typescript": "4.4.4",
|
|
64
|
+
"globals": "17.6.0",
|
|
65
|
+
"mediabunny": "1.45.4",
|
|
66
|
+
"opentype.js": "2.0.0",
|
|
67
|
+
"playcanvas": "2.19.1",
|
|
68
|
+
"publint": "0.3.21",
|
|
69
|
+
"rollup": "4.60.4",
|
|
70
|
+
"serve": "14.2.6",
|
|
71
|
+
"tslib": "2.8.1",
|
|
72
|
+
"typedoc": "0.28.19",
|
|
73
|
+
"typedoc-plugin-mdn-links": "5.1.1",
|
|
74
|
+
"typescript": "6.0.3"
|
|
75
|
+
}
|
|
76
|
+
}
|