storysplat-viewer 2.9.1 → 2.9.2
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 +18 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/storysplat-viewer.bundled.umd.js +1 -1
- package/dist/storysplat-viewer.bundled.umd.js.map +1 -1
- package/dist/storysplat-viewer.umd.js +1 -1
- package/dist/storysplat-viewer.umd.js.map +1 -1
- package/dist/types/dynamic-viewer/CameraControls.d.ts +11 -2
- package/dist/types/dynamic-viewer/SessionRecorder.d.ts +14 -0
- package/dist/types/editor/splat-edit/SplatEditAttachment.d.ts +4 -0
- package/dist/types/editor/splat-edit/SplatEditSystem.d.ts +3 -1
- package/dist/types/editor/splat-edit/SplatSerializer.d.ts +8 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/types/index.d.ts +11 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -796,11 +796,28 @@ return () => {
|
|
|
796
796
|
};
|
|
797
797
|
```
|
|
798
798
|
|
|
799
|
+
### Build Target Must Be ES2016+
|
|
800
|
+
|
|
801
|
+
If you bundle `storysplat-viewer` with Vite, esbuild, or another bundler, your build target **must be `es2016` or higher** (we recommend `es2020`).
|
|
802
|
+
|
|
803
|
+
PlayCanvas (the 3D engine) serializes its gsplat sort worker via `Function.toString()` into a blob URL. If your bundler targets `es2015`, it will extract the `**` (exponentiation) operator into a module-scoped helper function. That helper doesn't exist inside the worker's isolated scope, causing a `ReferenceError` at runtime (e.g., `ss is not defined`).
|
|
804
|
+
|
|
805
|
+
```js
|
|
806
|
+
// vite.config.ts
|
|
807
|
+
export default {
|
|
808
|
+
build: {
|
|
809
|
+
target: 'es2020', // Must be es2016+ (NOT es2015)
|
|
810
|
+
}
|
|
811
|
+
};
|
|
812
|
+
```
|
|
813
|
+
|
|
814
|
+
This only affects production builds — development servers typically don't minify and won't trigger the issue.
|
|
815
|
+
|
|
799
816
|
### Browser Compatibility
|
|
800
817
|
|
|
801
818
|
StorySplat Viewer requires:
|
|
802
819
|
- WebGL 2.0 support
|
|
803
|
-
- Modern JavaScript (
|
|
820
|
+
- Modern JavaScript (ES2016+)
|
|
804
821
|
- Recommended browsers: Chrome 80+, Firefox 75+, Safari 13+, Edge 80+
|
|
805
822
|
|
|
806
823
|
## Native App Integration
|