@playcanvas/supersplat-viewer 1.42.1 → 1.43.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/viewer.css CHANGED
@@ -385,8 +385,12 @@
385
385
  display: flex;
386
386
  gap: 8px;
387
387
  }
388
+ .sse-viewer .sse-controlsWrap > .sse-buttonsContainer > .sse-spacer {
389
+ margin-right: -8px;
390
+ }
388
391
  .sse-viewer .sse-controlsWrap > .sse-buttonsContainer .sse-buttonGroup {
389
392
  display: flex;
393
+ min-width: 0;
390
394
  background-color: rgba(0, 0, 0, 0.3);
391
395
  border-radius: 6px;
392
396
  }
@@ -398,7 +402,8 @@
398
402
  }
399
403
  .sse-viewer .sse-controlsWrap > .sse-buttonsContainer .sse-controlButton {
400
404
  width: 34px;
401
- height: 34px;
405
+ min-width: 0;
406
+ aspect-ratio: 1;
402
407
  padding: 0;
403
408
  margin: 0;
404
409
  border: 0;
@@ -415,6 +420,9 @@
415
420
  .sse-viewer .sse-controlsWrap > .sse-buttonsContainer .sse-controlButton > svg {
416
421
  display: block;
417
422
  margin: auto;
423
+ width: 70.5882352941%;
424
+ height: auto;
425
+ aspect-ratio: 1;
418
426
  }
419
427
  .sse-viewer .sse-controlsWrap > .sse-buttonsContainer .sse-controlButton > svg > g.sse-stroke {
420
428
  fill: none;
package/dist/viewer.d.ts CHANGED
@@ -27,13 +27,18 @@ type ViewerAssets = {
27
27
  * export provides.
28
28
  */
29
29
  gsafDecoderUrl?: string;
30
+ /**
31
+ * The ZSTD decoder's wasm, fetched only when a version 4 `.spz` file loads, on its own or as
32
+ * a chunk of an `.lcc2` scene. Defaults to the `zstd-decoder.wasm` shipped beside the viewer's
33
+ * bundle. A document with no sibling files (an inlined bundle) sets it to a `data:` url.
34
+ */
35
+ zstdDecoderUrl?: string;
30
36
  };
31
37
  /** Per-instance switches. Every one is optional and off unless stated. */
32
38
  type ViewerFlags = {
33
39
  /**
34
40
  * Requested renderer; the engine falls back to WebGL when WebGPU is unavailable. Default
35
- * `webgpu`. For now the Quest Browser, whose WebGPU cannot host an XR session, gets `webgl`
36
- * whatever is requested, unless the page url has `?webgpu`. Both are temporary.
41
+ * `webgpu`.
37
42
  */
38
43
  renderer?: 'webgl' | 'webgpu';
39
44
  /**
@@ -67,7 +72,11 @@ type ViewerFlags = {
67
72
  * Defaults to `false`.
68
73
  */
69
74
  vr?: boolean;
70
- /** Render with antialiasing. */
75
+ /**
76
+ * Override the anti-aliasing compensation that splats trained with anti-aliasing need: `true`
77
+ * renders every splat with it, `false` without. When not set, the engine follows the training
78
+ * mode each splat file records (PlayCanvas Engine 2.24 and later).
79
+ */
71
80
  aa?: boolean;
72
81
  /**
73
82
  * Developer override of the Performance Mode setting: `true` forces the stochastic splat