softbox 4.4.1 → 4.5.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.d.cts CHANGED
@@ -355,9 +355,13 @@ export declare interface LoadingIndicatorOptions {
355
355
  export declare type ModelUnits = 'meters' | 'centimeters' | 'millimeters' | 'feet' | 'inches';
356
356
 
357
357
  /**
358
- * Progressive path tracing for photoreal stills (three-gpu-pathtracer). The
359
- * tracer accumulates samples whenever the camera rests and presents the
360
- * converged frame; it ships in a lazy chunk that loads only when enabled.
358
+ * Progressive path tracing for photoreal rendering (three-gpu-pathtracer).
359
+ * Interactive: while the camera moves you see a fast preview, and whenever it
360
+ * rests the tracer re-accumulates to a converged frame — orbiting after
361
+ * convergence starts a fresh accumulation from the new viewpoint. The tracer
362
+ * stays warm for the viewer's lifetime; it ships in a lazy chunk that loads
363
+ * only when enabled. While animations play, accumulation is suspended (the
364
+ * raster renderer shows the motion) and resumes on the paused pose.
361
365
  *
362
366
  * The whole object is structural in `<SimpleViewer>`: changing ANY field
363
367
  * rebuilds the viewer (and reloads the model).
@@ -529,6 +533,14 @@ export declare interface SimpleViewerOptions {
529
533
  * Ignored; will be removed in 5.0.
530
534
  */
531
535
  animationLoop?: ((time: number) => void) | null;
536
+ /**
537
+ * Replace the canvas with an `<img>` snapshot when a path-traced
538
+ * accumulation completes; the first click restores the live viewer by
539
+ * reloading the model (default `false`). A legacy from one-shot path
540
+ * tracing — the interactive tracer keeps the converged frame on the live
541
+ * canvas and re-accumulates on camera moves, so most consumers should
542
+ * leave this off.
543
+ */
532
544
  replaceWithScreenshotOnComplete?: boolean;
533
545
  /**
534
546
  * When to boot the WebGL engine and fetch the model (default `'eager'`).
package/dist/index.d.ts CHANGED
@@ -355,9 +355,13 @@ export declare interface LoadingIndicatorOptions {
355
355
  export declare type ModelUnits = 'meters' | 'centimeters' | 'millimeters' | 'feet' | 'inches';
356
356
 
357
357
  /**
358
- * Progressive path tracing for photoreal stills (three-gpu-pathtracer). The
359
- * tracer accumulates samples whenever the camera rests and presents the
360
- * converged frame; it ships in a lazy chunk that loads only when enabled.
358
+ * Progressive path tracing for photoreal rendering (three-gpu-pathtracer).
359
+ * Interactive: while the camera moves you see a fast preview, and whenever it
360
+ * rests the tracer re-accumulates to a converged frame — orbiting after
361
+ * convergence starts a fresh accumulation from the new viewpoint. The tracer
362
+ * stays warm for the viewer's lifetime; it ships in a lazy chunk that loads
363
+ * only when enabled. While animations play, accumulation is suspended (the
364
+ * raster renderer shows the motion) and resumes on the paused pose.
361
365
  *
362
366
  * The whole object is structural in `<SimpleViewer>`: changing ANY field
363
367
  * rebuilds the viewer (and reloads the model).
@@ -529,6 +533,14 @@ export declare interface SimpleViewerOptions {
529
533
  * Ignored; will be removed in 5.0.
530
534
  */
531
535
  animationLoop?: ((time: number) => void) | null;
536
+ /**
537
+ * Replace the canvas with an `<img>` snapshot when a path-traced
538
+ * accumulation completes; the first click restores the live viewer by
539
+ * reloading the model (default `false`). A legacy from one-shot path
540
+ * tracing — the interactive tracer keeps the converged frame on the live
541
+ * canvas and re-accumulates on camera moves, so most consumers should
542
+ * leave this off.
543
+ */
532
544
  replaceWithScreenshotOnComplete?: boolean;
533
545
  /**
534
546
  * When to boot the WebGL engine and fetch the model (default `'eager'`).
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-BiSXFVUP.cjs");exports.ControlType=e.ControlType;exports.ErrorCode=e.ErrorCode;exports.Hotspot=e.Hotspot;exports.SimpleViewer=e.SimpleViewerWrapper;exports.ThreeViewerError=e.ThreeViewerError;exports.TypedEventEmitter=e.TypedEventEmitter;exports.VIEWER_PRESETS=e.VIEWER_PRESETS;exports.defaultOptions=e.defaultOptions;exports.resolvePreset=e.resolvePreset;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CadyonSB.cjs");exports.ControlType=e.ControlType;exports.ErrorCode=e.ErrorCode;exports.Hotspot=e.Hotspot;exports.SimpleViewer=e.SimpleViewerWrapper;exports.ThreeViewerError=e.ThreeViewerError;exports.TypedEventEmitter=e.TypedEventEmitter;exports.VIEWER_PRESETS=e.VIEWER_PRESETS;exports.defaultOptions=e.defaultOptions;exports.resolvePreset=e.resolvePreset;
@@ -1,4 +1,4 @@
1
- import { f as s, E as o, H as a, i as t, e as E, T as i, V as p, j as T, r as l } from "./index-uh2exMyt.js";
1
+ import { f as s, E as o, H as a, h as t, e as E, T as i, V as p, i as T, r as l } from "./index-CC3LzFRV.js";
2
2
  export {
3
3
  s as ControlType,
4
4
  o as ErrorCode,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "softbox",
3
3
  "private": false,
4
- "version": "4.4.1",
4
+ "version": "4.5.0",
5
5
  "homepage": "https://leming.github.io/softbox/",
6
6
  "type": "module",
7
7
  "description": "Batteries-included React 3D viewer — any GLB looks studio-shot in one line",