@playcanvas/supersplat-viewer 1.33.0 → 1.35.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 +1 -1
- package/dist/index.js +2 -2
- package/dist/viewer.css +452 -130
- package/dist/viewer.js +896 -691
- package/dist/viewer.js.map +1 -1
- package/docs/api.md +2 -2
- package/package.json +4 -4
- package/public/index.css +452 -130
- package/public/index.js +914 -701
- package/public/index.js.map +1 -1
package/docs/api.md
CHANGED
|
@@ -152,7 +152,7 @@ The value stays active until replaced. The viewer clears it on camera/XR mode ch
|
|
|
152
152
|
|
|
153
153
|
### Saved preferences
|
|
154
154
|
|
|
155
|
-
`performanceMode`, `gamingControls` and `showAnnotations` load from and write changes to the existing origin-wide local-storage keys, with or without the built-in UI. Creation does not write defaults; the legacy `retinaDisplay` migration is preserved. A new viewer reads the saved values; already-mounted viewers keep their own state rather than synchronizing through storage. The host can change these preferences through the corresponding writable state fields. Storage denial or quota errors leave the viewer usable, and destruction removes its persistence subscriptions.
|
|
155
|
+
`performanceMode`, `gamingControls` and `showAnnotations` load from and write changes to the existing origin-wide local-storage keys, with or without the built-in UI. Creation does not write defaults; the legacy `retinaDisplay` migration is preserved. A new viewer reads the saved values; already-mounted viewers keep their own state rather than synchronizing through storage. The host can change these preferences through the corresponding writable state fields. Storage denial or quota errors leave the viewer usable, and destruction removes its persistence subscriptions. The built-in UI also remembers whether its controls panel is open, under the origin-wide key `controlsPanelOpen`; it is open for a new visitor until they close it.
|
|
156
156
|
|
|
157
157
|
### Controlling annotations
|
|
158
158
|
|
|
@@ -175,7 +175,7 @@ else viewer.events.once('loaded:changed', selectFirst);
|
|
|
175
175
|
|
|
176
176
|
Selection switches to orbit and transitions to the annotation's authored camera without changing the animation pause flag. Selecting the same index again navigates again. `selectAnnotation(null)` clears selection while leaving the camera and any transition alone. Commands return immediately and throw before readiness, after destruction, or for an index that is not an integer in range. Clearing an empty annotation list is valid.
|
|
177
177
|
|
|
178
|
-
With `ui: false`, the same data, selection and camera navigation are available; the host supplies presentation. `state.showAnnotations` controls built-in visibility and does not clear selection, so showing annotations again restores the selected panel. The built-in navigator retains its last title and navigation position after dismissal. Clicking elsewhere inside this viewer clears selection; clicking host controls or another viewer does not.
|
|
178
|
+
With `ui: false`, the same data, selection and camera navigation are available; the host supplies presentation. `state.showAnnotations` controls built-in visibility and does not clear selection, so showing annotations again restores the selected panel. The built-in navigator retains its last title and navigation position after dismissal, greyed out while nothing is selected; clicking it selects that annotation again. Clicking elsewhere inside this viewer clears selection; clicking host controls or another viewer does not.
|
|
179
179
|
|
|
180
180
|
### Fullscreen and XR
|
|
181
181
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@playcanvas/supersplat-viewer",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.35.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",
|
|
@@ -67,15 +67,15 @@
|
|
|
67
67
|
"concurrently": "9.2.4",
|
|
68
68
|
"eslint": "9.39.5",
|
|
69
69
|
"globals": "17.12.0",
|
|
70
|
-
"playcanvas": "2.22.
|
|
70
|
+
"playcanvas": "2.22.4",
|
|
71
71
|
"postcss": "8.5.28",
|
|
72
|
-
"prettier": "3.9.
|
|
72
|
+
"prettier": "3.9.9",
|
|
73
73
|
"publint": "0.3.24",
|
|
74
74
|
"rollup": "4.63.4",
|
|
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.
|
|
78
|
+
"sass": "1.105.0",
|
|
79
79
|
"serve": "14.2.6",
|
|
80
80
|
"typescript": "5.9.3"
|
|
81
81
|
},
|