@playcanvas/supersplat-viewer 1.36.2 → 1.37.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/dist/index.js +1 -1
- package/dist/viewer.js +116 -36
- package/dist/viewer.js.map +1 -1
- package/docs/api.md +4 -0
- package/package.json +6 -6
- package/public/index.js +20664 -16874
- package/public/index.js.map +1 -1
package/docs/api.md
CHANGED
|
@@ -198,6 +198,10 @@ Native fullscreen targets this viewer's root. Read-only `state.isFullscreen` fol
|
|
|
198
198
|
|
|
199
199
|
Read-only `state.xrMode` is `'ar'`, `'vr'` or `null` and follows both API and browser-initiated session exit. `startXR()` resolves when the session starts; it rejects invalid modes and attempts while a session is active, starting or ending. `endXR()` resolves on session exit, is a no-op while idle, and rejects during startup or another pending exit. All four methods reject after destruction; destruction also rejects outstanding API waits. Browser session requests themselves cannot be cancelled, so native XR teardown while a permission request is open still needs device testing.
|
|
200
200
|
|
|
201
|
+
On standalone headsets (Meta Quest and Pico browsers), sessions render with fixed foveation, a 72 Hz target where supported and a 1 million splat budget, or the `budget` option when it is set. In performance mode they also render at 0.8x resolution, chosen when the session starts. The 2D budget returns when the session ends.
|
|
202
|
+
|
|
203
|
+
During a session, squeezing both grips, or making fists with tracked hands, drags, turns and scales the scene: about the user's feet in VR, and about their hands in AR. The scene returns to its authored placement when the session ends.
|
|
204
|
+
|
|
201
205
|
### Restyling
|
|
202
206
|
|
|
203
207
|
The colours the UI is built from are CSS custom properties on the instance root, so you can
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@playcanvas/supersplat-viewer",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.37.0",
|
|
4
4
|
"author": "PlayCanvas <support@playcanvas.com>",
|
|
5
5
|
"homepage": "https://github.com/playcanvas/supersplat-viewer#readme",
|
|
6
6
|
"description": "Viewer for https://superspl.at",
|
|
@@ -66,16 +66,16 @@
|
|
|
66
66
|
"autoprefixer": "10.6.1",
|
|
67
67
|
"concurrently": "9.2.4",
|
|
68
68
|
"eslint": "9.39.5",
|
|
69
|
-
"globals": "17.
|
|
70
|
-
"playcanvas": "2.
|
|
69
|
+
"globals": "17.13.0",
|
|
70
|
+
"playcanvas": "2.23.0",
|
|
71
71
|
"postcss": "8.5.28",
|
|
72
72
|
"prettier": "3.9.9",
|
|
73
|
-
"publint": "0.3.
|
|
74
|
-
"rollup": "4.63.
|
|
73
|
+
"publint": "0.3.25",
|
|
74
|
+
"rollup": "4.63.6",
|
|
75
75
|
"rollup-plugin-dts": "6.5.1",
|
|
76
76
|
"rollup-plugin-scss": "4.0.1",
|
|
77
77
|
"rollup-plugin-string": "3.0.0",
|
|
78
|
-
"sass": "1.105.
|
|
78
|
+
"sass": "1.105.1",
|
|
79
79
|
"serve": "14.2.6",
|
|
80
80
|
"typescript": "5.9.3"
|
|
81
81
|
},
|