@playcanvas/supersplat-viewer 1.41.0 → 1.42.1

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.d.ts CHANGED
@@ -26,95 +26,6 @@ type ViewerAssets = {
26
26
  */
27
27
  gsafDecoderUrl?: string;
28
28
  };
29
- /** Per-instance switches. Every one is optional and off unless stated. */
30
- type ViewerFlags = {
31
- /**
32
- * Requested renderer; the engine falls back to WebGL when WebGPU is unavailable. Default
33
- * `webgpu`.
34
- */
35
- renderer?: 'webgl' | 'webgpu';
36
- /**
37
- * Build the viewer's ui: the controls, panels, poster, loading bar, annotation hotspots
38
- * and their navigator. Defaults to `true`. `false` is the headless level: the canvas and
39
- * the api, with no overlay markup. Core camera input, browser integration and preference
40
- * persistence remain active. The host renders controls against the public handle;
41
- * `setMoveInput` supports a replacement joystick. Note that the touch joystick and the AR/VR
42
- * fallback prompt live in that ui, so a headless host owns those affordances too.
43
- */
44
- ui?: boolean;
45
- /**
46
- * Css pixels by which the toolbar, and everything else anchored to the viewer's bottom edge,
47
- * is lifted, so chrome a host app draws over the bottom of the viewer does not cover it. On
48
- * touch devices (a coarse primary pointer) only; elsewhere the toolbar stays at the edge.
49
- * Clamped to 0–200. Defaults to `0`. Experimental: it may be renamed or removed in a minor
50
- * release.
51
- */
52
- experimentalTouchInsetBottom?: number;
53
- /** Show the centre reticle in desktop fly/walk mode with gaming controls. Defaults to `false`. */
54
- reticle?: boolean;
55
- /** Start with the camera animation paused. */
56
- noanim?: boolean;
57
- /** Disable post effects. */
58
- nofx?: boolean;
59
- /** Override the settings' `highPrecisionRendering`. */
60
- hpr?: boolean;
61
- /** Show the engine's MiniStats panel. */
62
- ministats?: boolean;
63
- /** Render with LOD colorisation. */
64
- colorize?: boolean;
65
- /** Load all streaming LOD data before the first frame. */
66
- fullload?: boolean;
67
- /**
68
- * Offer VR at once: where VR can start, a prompt shows over the viewer while it loads, and a
69
- * tap on it starts a VR session as soon as the scene is placed, the rest of the scene streaming
70
- * in during the session; a tap elsewhere dismisses it. A session needs a tap: browsers start
71
- * none without one. The camera animation starts paused, as with `noanim`. Needs the ui.
72
- * Defaults to `false`.
73
- */
74
- vr?: boolean;
75
- /** Render with antialiasing. */
76
- aa?: boolean;
77
- /**
78
- * Developer override of the Performance Mode setting: `true` forces the stochastic splat
79
- * renderer (unsorted, depth-tested splats whose depth buffer also serves picking) in its
80
- * per-pixel mode, `'mobile'` in its interleaved-pixel-sets mode, and `'off'` keeps the
81
- * engine's sorted renderer; each hides the setting. Without it the user's Performance Mode
82
- * toggle decides, and the device class picks the mode. WebGPU only; ignored on WebGL. The
83
- * renderer draws WebGPU XR sessions too, one view per eye (Safari on Apple Vision Pro); where
84
- * only WebGL could host a session, the viewer offers a reload into WebGL.
85
- */
86
- stochastic?: boolean | 'mobile' | 'off';
87
- /**
88
- * Developer knob for the stochastic renderer: the data path that feeds it. Default
89
- * `direct`, the resident files read in place; `workbuffer` reads the engine's work buffer.
90
- */
91
- splatSource?: 'workbuffer' | 'direct';
92
- /**
93
- * Developer knob for the stochastic renderer: comma-separated `key:value` experiment
94
- * switches applied over the chosen mode's, e.g. `coverage:interleaved,jitter:2`.
95
- */
96
- variant?: string;
97
- /** Splat budget in millions, overriding the Quality slider's ladder (every position then gives it). */
98
- budget?: number;
99
- /**
100
- * Developer knob: while the viewer renders on demand, the most rendered frames the gpu may
101
- * have unfinished before the next continuous render (the camera moving, the stochastic
102
- * renderer accumulating) waits for one to finish; `0` lets them queue. Defaults to `2`.
103
- */
104
- framesInFlight?: number;
105
- /** Render the collision heatmap debug overlay (WebGPU only). */
106
- heatmap?: boolean;
107
- /** Open the developer debug panel on load; Ctrl+Shift+D toggles it either way. */
108
- debug?: boolean;
109
- /** Ui language. Default: detected from the browser. */
110
- lang?: string;
111
- /**
112
- * Publish `window.app`, `scrubTo`, `captureFrame`, `animationDuration` and the debug panel's
113
- * camera-state hooks. The standalone document turns this on for the thumbnail pipeline; an
114
- * embedded instance leaves it off, since two viewers would overwrite each other's.
115
- */
116
- exposeGlobals?: boolean;
117
- };
118
29
 
119
30
  /**
120
31
  * Asset urls and settings the embedder supplies to the viewer. The asset urls are the same
@@ -189,4 +100,4 @@ declare const css: string;
189
100
  declare const js: string;
190
101
 
191
102
  export { css, html, js, renderViewerHtml };
192
- export type { RenderViewerHtmlOptions, ViewerAssets, ViewerBootstrap, ViewerFlags };
103
+ export type { RenderViewerHtmlOptions, ViewerAssets, ViewerBootstrap };