softbox 4.11.0 → 4.12.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
@@ -530,6 +530,14 @@ export declare interface SimpleViewerOptions {
530
530
  */
531
531
  floorAlignment?: boolean;
532
532
  backgroundColor?: string | number;
533
+ /**
534
+ * Optional darker edge colour for a RADIAL backdrop vignette. When set,
535
+ * `backgroundColor` is painted as the centre (behind the subject) and this as
536
+ * the corners/bottom, floating the model in a soft cove instead of a flat
537
+ * fill. Omit for a flat background. Runtime-tunable (applies on a live preset
538
+ * switch without a rebuild), same as `backgroundColor`.
539
+ */
540
+ backgroundColorEdge?: string | number;
533
541
  staticScene?: boolean;
534
542
  /** GLTF animation playback (autoplay, speed). */
535
543
  animations?: AnimationOptions;
@@ -702,10 +710,11 @@ declare interface Vec3Like {
702
710
  /**
703
711
  * Visual presets: cohesive deltas layered over the defaults (deep-merged) so a
704
712
  * model looks intentional on first paint. Each preset only sets **runtime** look
705
- * fields — background color, tone-mapping exposure and environment intensity —
706
- * so switching presets is applied live (no viewer rebuild, no model reload) and
707
- * everything else (camera auto-framing, lighting rig, controls, grid) is
708
- * inherited from the defaults. Explicit user options always win.
713
+ * fields — background color (plus an optional radial-vignette edge colour),
714
+ * tone-mapping exposure and environment intensity — so switching presets is
715
+ * applied live (no viewer rebuild, no model reload) and everything else (camera
716
+ * auto-framing, lighting rig, controls, grid) is inherited from the defaults.
717
+ * Explicit user options always win.
709
718
  */
710
719
  export declare const VIEWER_PRESETS: Record<ViewerPreset, Partial<SimpleViewerOptions>>;
711
720
 
package/dist/index.d.ts CHANGED
@@ -530,6 +530,14 @@ export declare interface SimpleViewerOptions {
530
530
  */
531
531
  floorAlignment?: boolean;
532
532
  backgroundColor?: string | number;
533
+ /**
534
+ * Optional darker edge colour for a RADIAL backdrop vignette. When set,
535
+ * `backgroundColor` is painted as the centre (behind the subject) and this as
536
+ * the corners/bottom, floating the model in a soft cove instead of a flat
537
+ * fill. Omit for a flat background. Runtime-tunable (applies on a live preset
538
+ * switch without a rebuild), same as `backgroundColor`.
539
+ */
540
+ backgroundColorEdge?: string | number;
533
541
  staticScene?: boolean;
534
542
  /** GLTF animation playback (autoplay, speed). */
535
543
  animations?: AnimationOptions;
@@ -702,10 +710,11 @@ declare interface Vec3Like {
702
710
  /**
703
711
  * Visual presets: cohesive deltas layered over the defaults (deep-merged) so a
704
712
  * model looks intentional on first paint. Each preset only sets **runtime** look
705
- * fields — background color, tone-mapping exposure and environment intensity —
706
- * so switching presets is applied live (no viewer rebuild, no model reload) and
707
- * everything else (camera auto-framing, lighting rig, controls, grid) is
708
- * inherited from the defaults. Explicit user options always win.
713
+ * fields — background color (plus an optional radial-vignette edge colour),
714
+ * tone-mapping exposure and environment intensity — so switching presets is
715
+ * applied live (no viewer rebuild, no model reload) and everything else (camera
716
+ * auto-framing, lighting rig, controls, grid) is inherited from the defaults.
717
+ * Explicit user options always win.
709
718
  */
710
719
  export declare const VIEWER_PRESETS: Record<ViewerPreset, Partial<SimpleViewerOptions>>;
711
720
 
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-BtZrTFUk.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-KNMh4NyY.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, h as t, e as E, T as i, V as p, i as T, r as l } from "./index-Df3usb4t.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-BGPXOXoA.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.11.0",
4
+ "version": "4.12.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",