softbox 4.10.1 → 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/{ThreePathTracingService-BbmIpVLo.cjs → ThreePathTracingService-CYLglFOT.cjs} +1 -1
- package/dist/{ThreePathTracingService-dzdi5vxw.js → ThreePathTracingService-D40s_tO4.js} +1 -1
- package/dist/{index-51m_nNmI.js → index-BGPXOXoA.js} +2240 -2076
- package/dist/index-KNMh4NyY.cjs +29 -0
- package/dist/index.d.cts +27 -4
- package/dist/index.d.ts +27 -4
- package/dist/simple-viewer.cjs +1 -1
- package/dist/simple-viewer.es.js +1 -1
- package/package.json +1 -1
- package/dist/index-D2nrtXiT.cjs +0 -29
package/dist/index.d.cts
CHANGED
|
@@ -491,6 +491,20 @@ export declare interface SimpleViewerHandle {
|
|
|
491
491
|
playAnimations: (clipName?: string) => void;
|
|
492
492
|
/** Freezes playback on the current pose; playAnimations() resumes. */
|
|
493
493
|
pauseAnimations: () => void;
|
|
494
|
+
/**
|
|
495
|
+
* Replace the environment map (reflections + background) at runtime with the
|
|
496
|
+
* equirectangular HDRI/LDR image at `url`. Cached by URL, so re-applying is cheap.
|
|
497
|
+
*/
|
|
498
|
+
setEnvironmentMap: (url: string) => Promise<void>;
|
|
499
|
+
/** Restore the built-in studio environment and clean gradient background. */
|
|
500
|
+
resetEnvironment: () => void;
|
|
501
|
+
/**
|
|
502
|
+
* Paint an uploaded image (URL, File, or HTMLImageElement) as the scene backdrop
|
|
503
|
+
* without changing the environment lighting. Clear it with setBackgroundColor.
|
|
504
|
+
*/
|
|
505
|
+
setBackgroundImage: (source: string | File | HTMLImageElement) => Promise<void>;
|
|
506
|
+
/** Set a solid background color (also clears a background image). */
|
|
507
|
+
setBackgroundColor: (color: string | number) => void;
|
|
494
508
|
dispose: () => void;
|
|
495
509
|
}
|
|
496
510
|
|
|
@@ -516,6 +530,14 @@ export declare interface SimpleViewerOptions {
|
|
|
516
530
|
*/
|
|
517
531
|
floorAlignment?: boolean;
|
|
518
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;
|
|
519
541
|
staticScene?: boolean;
|
|
520
542
|
/** GLTF animation playback (autoplay, speed). */
|
|
521
543
|
animations?: AnimationOptions;
|
|
@@ -688,10 +710,11 @@ declare interface Vec3Like {
|
|
|
688
710
|
/**
|
|
689
711
|
* Visual presets: cohesive deltas layered over the defaults (deep-merged) so a
|
|
690
712
|
* model looks intentional on first paint. Each preset only sets **runtime** look
|
|
691
|
-
* fields — background color
|
|
692
|
-
*
|
|
693
|
-
*
|
|
694
|
-
*
|
|
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.
|
|
695
718
|
*/
|
|
696
719
|
export declare const VIEWER_PRESETS: Record<ViewerPreset, Partial<SimpleViewerOptions>>;
|
|
697
720
|
|
package/dist/index.d.ts
CHANGED
|
@@ -491,6 +491,20 @@ export declare interface SimpleViewerHandle {
|
|
|
491
491
|
playAnimations: (clipName?: string) => void;
|
|
492
492
|
/** Freezes playback on the current pose; playAnimations() resumes. */
|
|
493
493
|
pauseAnimations: () => void;
|
|
494
|
+
/**
|
|
495
|
+
* Replace the environment map (reflections + background) at runtime with the
|
|
496
|
+
* equirectangular HDRI/LDR image at `url`. Cached by URL, so re-applying is cheap.
|
|
497
|
+
*/
|
|
498
|
+
setEnvironmentMap: (url: string) => Promise<void>;
|
|
499
|
+
/** Restore the built-in studio environment and clean gradient background. */
|
|
500
|
+
resetEnvironment: () => void;
|
|
501
|
+
/**
|
|
502
|
+
* Paint an uploaded image (URL, File, or HTMLImageElement) as the scene backdrop
|
|
503
|
+
* without changing the environment lighting. Clear it with setBackgroundColor.
|
|
504
|
+
*/
|
|
505
|
+
setBackgroundImage: (source: string | File | HTMLImageElement) => Promise<void>;
|
|
506
|
+
/** Set a solid background color (also clears a background image). */
|
|
507
|
+
setBackgroundColor: (color: string | number) => void;
|
|
494
508
|
dispose: () => void;
|
|
495
509
|
}
|
|
496
510
|
|
|
@@ -516,6 +530,14 @@ export declare interface SimpleViewerOptions {
|
|
|
516
530
|
*/
|
|
517
531
|
floorAlignment?: boolean;
|
|
518
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;
|
|
519
541
|
staticScene?: boolean;
|
|
520
542
|
/** GLTF animation playback (autoplay, speed). */
|
|
521
543
|
animations?: AnimationOptions;
|
|
@@ -688,10 +710,11 @@ declare interface Vec3Like {
|
|
|
688
710
|
/**
|
|
689
711
|
* Visual presets: cohesive deltas layered over the defaults (deep-merged) so a
|
|
690
712
|
* model looks intentional on first paint. Each preset only sets **runtime** look
|
|
691
|
-
* fields — background color
|
|
692
|
-
*
|
|
693
|
-
*
|
|
694
|
-
*
|
|
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.
|
|
695
718
|
*/
|
|
696
719
|
export declare const VIEWER_PRESETS: Record<ViewerPreset, Partial<SimpleViewerOptions>>;
|
|
697
720
|
|
package/dist/simple-viewer.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
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;
|
package/dist/simple-viewer.es.js
CHANGED
package/package.json
CHANGED