@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.
Files changed (40) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +84 -84
  3. package/dist/components/light-component.d.ts +48 -0
  4. package/dist/components/splat-component.d.ts +0 -13
  5. package/dist/pwc.cjs +275 -207
  6. package/dist/pwc.cjs.map +1 -1
  7. package/dist/pwc.js +275 -207
  8. package/dist/pwc.js.map +1 -1
  9. package/dist/pwc.min.js +1 -1
  10. package/dist/pwc.min.js.map +1 -1
  11. package/dist/pwc.mjs +276 -208
  12. package/dist/pwc.mjs.map +1 -1
  13. package/package.json +76 -66
  14. package/src/app.ts +612 -606
  15. package/src/asset.ts +159 -159
  16. package/src/async-element.ts +46 -46
  17. package/src/colors.ts +150 -150
  18. package/src/components/camera-component.ts +557 -557
  19. package/src/components/collision-component.ts +183 -183
  20. package/src/components/component.ts +97 -97
  21. package/src/components/element-component.ts +367 -367
  22. package/src/components/light-component.ts +570 -466
  23. package/src/components/listener-component.ts +30 -30
  24. package/src/components/particlesystem-component.ts +155 -155
  25. package/src/components/render-component.ts +147 -147
  26. package/src/components/rigidbody-component.ts +227 -227
  27. package/src/components/screen-component.ts +157 -157
  28. package/src/components/script-component.ts +270 -270
  29. package/src/components/script.ts +90 -90
  30. package/src/components/sound-component.ts +230 -230
  31. package/src/components/sound-slot.ts +288 -288
  32. package/src/components/splat-component.ts +102 -133
  33. package/src/entity.ts +360 -360
  34. package/src/index.ts +63 -63
  35. package/src/material.ts +141 -141
  36. package/src/model.ts +111 -111
  37. package/src/module.ts +43 -43
  38. package/src/scene.ts +217 -217
  39. package/src/sky.ts +293 -293
  40. package/src/utils.ts +71 -71
package/package.json CHANGED
@@ -1,66 +1,76 @@
1
- {
2
- "name": "@playcanvas/web-components",
3
- "version": "0.3.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
- "main": "dist/pwc.cjs",
20
- "module": "dist/pwc.mjs",
21
- "browser": "dist/pwc.js",
22
- "types": "dist/index.d.ts",
23
- "type": "module",
24
- "files": [
25
- "dist",
26
- "src"
27
- ],
28
- "scripts": {
29
- "build": "rollup -c",
30
- "dev": "concurrently \"npm run watch\" \"npm run serve\"",
31
- "docs": "typedoc",
32
- "lint": "eslint examples/js examples/assets/scripts src",
33
- "serve": "serve",
34
- "test": "echo \"Error: no test specified\" && exit 1",
35
- "publint": "publint",
36
- "type-check": "tsc --noEmit",
37
- "type-check:watch": "npm run type-check -- --watch",
38
- "watch": "rollup -c -w"
39
- },
40
- "devDependencies": {
41
- "@mediapipe/tasks-vision": "0.10.21",
42
- "@playcanvas/eslint-config": "2.1.0",
43
- "@rollup/plugin-commonjs": "29.0.0",
44
- "@rollup/plugin-node-resolve": "16.0.3",
45
- "@rollup/plugin-terser": "0.4.4",
46
- "@rollup/plugin-typescript": "12.3.0",
47
- "@tweenjs/tween.js": "25.0.0",
48
- "@typescript-eslint/eslint-plugin": "8.52.0",
49
- "@typescript-eslint/parser": "8.52.0",
50
- "concurrently": "9.2.1",
51
- "earcut": "3.0.2",
52
- "eslint": "9.39.2",
53
- "eslint-import-resolver-typescript": "4.4.4",
54
- "globals": "17.0.0",
55
- "mediabunny": "1.27.4",
56
- "opentype.js": "1.3.4",
57
- "playcanvas": "2.15.0",
58
- "publint": "0.3.16",
59
- "rollup": "4.55.1",
60
- "serve": "14.2.5",
61
- "tslib": "2.8.1",
62
- "typedoc": "0.28.16",
63
- "typedoc-plugin-mdn-links": "5.0.10",
64
- "typescript": "5.9.3"
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
+ }