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