softbox 4.12.0 → 4.13.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-CYLglFOT.cjs → ThreePathTracingService-CV1X4U4s.cjs} +1 -1
- package/dist/{ThreePathTracingService-D40s_tO4.js → ThreePathTracingService-CaXZfNBg.js} +1 -1
- package/dist/index-Boctv1Ta.cjs +29 -0
- package/dist/{index-BGPXOXoA.js → index-CWhSg5nm.js} +1401 -1360
- package/dist/index.d.cts +22 -2
- package/dist/index.d.ts +22 -2
- package/dist/simple-viewer.cjs +1 -1
- package/dist/simple-viewer.es.js +1 -1
- package/package.json +1 -1
- package/dist/index-KNMh4NyY.cjs +0 -29
package/dist/index.d.cts
CHANGED
|
@@ -2,6 +2,19 @@ import { default as default_2 } from 'react';
|
|
|
2
2
|
import * as React_2 from 'react';
|
|
3
3
|
import * as THREE from 'three';
|
|
4
4
|
|
|
5
|
+
/**
|
|
6
|
+
* A soft, shadowless directional light used for the fill and rim/back roles of
|
|
7
|
+
* a studio three-point rig. Same direction semantics as the key, but it never
|
|
8
|
+
* casts shadows (only the key does — see `findDirectionalLight`, which resolves
|
|
9
|
+
* the first directional as the shadow/contact-shadow source).
|
|
10
|
+
*/
|
|
11
|
+
export declare interface AccentLightOptions {
|
|
12
|
+
color?: string | number;
|
|
13
|
+
intensity?: number;
|
|
14
|
+
/** Direction is position → origin; distance does not attenuate. */
|
|
15
|
+
position?: Vec3Like | [number, number, number];
|
|
16
|
+
}
|
|
17
|
+
|
|
5
18
|
/** Uniform fill from every direction; lifts shadows, adds no shading. */
|
|
6
19
|
export declare interface AmbientLightOptions {
|
|
7
20
|
color?: string | number;
|
|
@@ -286,13 +299,20 @@ export declare interface HotspotProps {
|
|
|
286
299
|
}
|
|
287
300
|
|
|
288
301
|
/**
|
|
289
|
-
* The
|
|
290
|
-
*
|
|
302
|
+
* The studio rig. Every light is optional; the defaults are a balanced
|
|
303
|
+
* product-shot three-point setup (see `defaultOptions.lighting`): a shadow-
|
|
304
|
+
* casting key, a soft opposite-side fill that opens the shadow, and a rim/back
|
|
305
|
+
* light behind the subject that separates its silhouette from the background.
|
|
306
|
+
* Ambient + hemisphere add a gentle omnidirectional base.
|
|
291
307
|
*/
|
|
292
308
|
export declare interface LightingOptions {
|
|
293
309
|
ambientLight?: AmbientLightOptions;
|
|
294
310
|
hemisphereLight?: HemisphereLightOptions;
|
|
295
311
|
directionalLight?: DirectionalLightOptions;
|
|
312
|
+
/** Soft opposite-side fill; opens the shadow side without a second shadow. */
|
|
313
|
+
fillLight?: AccentLightOptions;
|
|
314
|
+
/** Rim/back light behind the subject; separates the silhouette from the backdrop. */
|
|
315
|
+
rimLight?: AccentLightOptions;
|
|
296
316
|
}
|
|
297
317
|
|
|
298
318
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,19 @@ import { default as default_2 } from 'react';
|
|
|
2
2
|
import * as React_2 from 'react';
|
|
3
3
|
import * as THREE from 'three';
|
|
4
4
|
|
|
5
|
+
/**
|
|
6
|
+
* A soft, shadowless directional light used for the fill and rim/back roles of
|
|
7
|
+
* a studio three-point rig. Same direction semantics as the key, but it never
|
|
8
|
+
* casts shadows (only the key does — see `findDirectionalLight`, which resolves
|
|
9
|
+
* the first directional as the shadow/contact-shadow source).
|
|
10
|
+
*/
|
|
11
|
+
export declare interface AccentLightOptions {
|
|
12
|
+
color?: string | number;
|
|
13
|
+
intensity?: number;
|
|
14
|
+
/** Direction is position → origin; distance does not attenuate. */
|
|
15
|
+
position?: Vec3Like | [number, number, number];
|
|
16
|
+
}
|
|
17
|
+
|
|
5
18
|
/** Uniform fill from every direction; lifts shadows, adds no shading. */
|
|
6
19
|
export declare interface AmbientLightOptions {
|
|
7
20
|
color?: string | number;
|
|
@@ -286,13 +299,20 @@ export declare interface HotspotProps {
|
|
|
286
299
|
}
|
|
287
300
|
|
|
288
301
|
/**
|
|
289
|
-
* The
|
|
290
|
-
*
|
|
302
|
+
* The studio rig. Every light is optional; the defaults are a balanced
|
|
303
|
+
* product-shot three-point setup (see `defaultOptions.lighting`): a shadow-
|
|
304
|
+
* casting key, a soft opposite-side fill that opens the shadow, and a rim/back
|
|
305
|
+
* light behind the subject that separates its silhouette from the background.
|
|
306
|
+
* Ambient + hemisphere add a gentle omnidirectional base.
|
|
291
307
|
*/
|
|
292
308
|
export declare interface LightingOptions {
|
|
293
309
|
ambientLight?: AmbientLightOptions;
|
|
294
310
|
hemisphereLight?: HemisphereLightOptions;
|
|
295
311
|
directionalLight?: DirectionalLightOptions;
|
|
312
|
+
/** Soft opposite-side fill; opens the shadow side without a second shadow. */
|
|
313
|
+
fillLight?: AccentLightOptions;
|
|
314
|
+
/** Rim/back light behind the subject; separates the silhouette from the backdrop. */
|
|
315
|
+
rimLight?: AccentLightOptions;
|
|
296
316
|
}
|
|
297
317
|
|
|
298
318
|
/**
|
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-Boctv1Ta.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