softbox 4.18.0 → 4.19.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-B1WEEKgQ.cjs → ThreePathTracingService-CMw8SvGp.cjs} +51 -51
- package/dist/{ThreePathTracingService-qV8I_V9u.js → ThreePathTracingService-Dze7maGx.js} +415 -415
- package/dist/index.d.cts +13 -0
- package/dist/index.d.ts +13 -0
- package/dist/simple-viewer.cjs +3 -3
- package/dist/simple-viewer.es.js +1923 -1904
- package/dist/unwrap-CuSMMFPQ.cjs +2 -0
- package/dist/{ContactShadowBaker-MzqtJ-0h.js → unwrap-DdgS2iXe.js} +244 -209
- package/package.json +7 -3
- package/dist/ContactShadowBaker-lWQW97Cr.cjs +0 -2
package/dist/index.d.cts
CHANGED
|
@@ -225,6 +225,7 @@ export declare enum ErrorCode {
|
|
|
225
225
|
INVALID_STATE = "INVALID_STATE",
|
|
226
226
|
INVALID_PARAMETER = "INVALID_PARAMETER",
|
|
227
227
|
OPERATION_FAILED = "OPERATION_FAILED",
|
|
228
|
+
POST_PROCESSING_FAILED = "POST_PROCESSING_FAILED",
|
|
228
229
|
UNKNOWN = "UNKNOWN"
|
|
229
230
|
}
|
|
230
231
|
|
|
@@ -418,6 +419,13 @@ export declare interface PathTracingOptions {
|
|
|
418
419
|
export declare interface RendererOptions {
|
|
419
420
|
antialias?: boolean;
|
|
420
421
|
alpha?: boolean;
|
|
422
|
+
premultipliedAlpha?: boolean;
|
|
423
|
+
/**
|
|
424
|
+
* Note: the viewer forces this ON regardless — a completed path-traced
|
|
425
|
+
* frame must survive on the canvas for captureStill to read back.
|
|
426
|
+
*/
|
|
427
|
+
preserveDrawingBuffer?: boolean;
|
|
428
|
+
powerPreference?: 'high-performance' | 'low-power' | 'default';
|
|
421
429
|
shadowMapEnabled?: boolean;
|
|
422
430
|
pixelRatio?: number;
|
|
423
431
|
/** A `THREE.ShadowMapType` constant (e.g. `THREE.PCFShadowMap` === 1). */
|
|
@@ -532,6 +540,11 @@ export declare interface SimpleViewerHandle {
|
|
|
532
540
|
/**
|
|
533
541
|
* Replace the environment map (reflections + background) at runtime with the
|
|
534
542
|
* equirectangular HDRI/LDR image at `url`. Cached by URL, so re-applying is cheap.
|
|
543
|
+
*
|
|
544
|
+
* Like the capture APIs, the environment APIs throw (async ones reject) with
|
|
545
|
+
* INVALID_STATE when the viewer was disposed — including a dispose that lands
|
|
546
|
+
* while the map is still loading. Fire-and-forget callers should attach a
|
|
547
|
+
* `.catch` if unmount races are possible (e.g. React StrictMode in dev).
|
|
535
548
|
*/
|
|
536
549
|
setEnvironmentMap: (url: string) => Promise<void>;
|
|
537
550
|
/** Restore the built-in studio environment and clean gradient background. */
|
package/dist/index.d.ts
CHANGED
|
@@ -225,6 +225,7 @@ export declare enum ErrorCode {
|
|
|
225
225
|
INVALID_STATE = "INVALID_STATE",
|
|
226
226
|
INVALID_PARAMETER = "INVALID_PARAMETER",
|
|
227
227
|
OPERATION_FAILED = "OPERATION_FAILED",
|
|
228
|
+
POST_PROCESSING_FAILED = "POST_PROCESSING_FAILED",
|
|
228
229
|
UNKNOWN = "UNKNOWN"
|
|
229
230
|
}
|
|
230
231
|
|
|
@@ -418,6 +419,13 @@ export declare interface PathTracingOptions {
|
|
|
418
419
|
export declare interface RendererOptions {
|
|
419
420
|
antialias?: boolean;
|
|
420
421
|
alpha?: boolean;
|
|
422
|
+
premultipliedAlpha?: boolean;
|
|
423
|
+
/**
|
|
424
|
+
* Note: the viewer forces this ON regardless — a completed path-traced
|
|
425
|
+
* frame must survive on the canvas for captureStill to read back.
|
|
426
|
+
*/
|
|
427
|
+
preserveDrawingBuffer?: boolean;
|
|
428
|
+
powerPreference?: 'high-performance' | 'low-power' | 'default';
|
|
421
429
|
shadowMapEnabled?: boolean;
|
|
422
430
|
pixelRatio?: number;
|
|
423
431
|
/** A `THREE.ShadowMapType` constant (e.g. `THREE.PCFShadowMap` === 1). */
|
|
@@ -532,6 +540,11 @@ export declare interface SimpleViewerHandle {
|
|
|
532
540
|
/**
|
|
533
541
|
* Replace the environment map (reflections + background) at runtime with the
|
|
534
542
|
* equirectangular HDRI/LDR image at `url`. Cached by URL, so re-applying is cheap.
|
|
543
|
+
*
|
|
544
|
+
* Like the capture APIs, the environment APIs throw (async ones reject) with
|
|
545
|
+
* INVALID_STATE when the viewer was disposed — including a dispose that lands
|
|
546
|
+
* while the map is still loading. Fire-and-forget callers should attach a
|
|
547
|
+
* `.catch` if unmount races are possible (e.g. React StrictMode in dev).
|
|
535
548
|
*/
|
|
536
549
|
setEnvironmentMap: (url: string) => Promise<void>;
|
|
537
550
|
/** Restore the built-in studio environment and clean gradient background. */
|