softbox 4.2.1 → 4.3.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
@@ -379,7 +379,10 @@ export declare interface SimpleViewerHandle {
379
379
  captureVideo: (options?: CaptureVideoOptions) => Promise<Blob>;
380
380
  /** Clip names of the loaded model, in file order (empty when none). */
381
381
  getAnimationNames: () => string[];
382
- /** Plays one clip by name, or ALL clips when no name is given (looped). */
382
+ /**
383
+ * Plays one clip by name, or ALL clips when no name is given (looped).
384
+ * Throws `INVALID_PARAMETER` on a clip name the model does not carry.
385
+ */
383
386
  playAnimations: (clipName?: string) => void;
384
387
  /** Freezes playback on the current pose; playAnimations() resumes. */
385
388
  pauseAnimations: () => void;
package/dist/index.d.ts CHANGED
@@ -379,7 +379,10 @@ export declare interface SimpleViewerHandle {
379
379
  captureVideo: (options?: CaptureVideoOptions) => Promise<Blob>;
380
380
  /** Clip names of the loaded model, in file order (empty when none). */
381
381
  getAnimationNames: () => string[];
382
- /** Plays one clip by name, or ALL clips when no name is given (looped). */
382
+ /**
383
+ * Plays one clip by name, or ALL clips when no name is given (looped).
384
+ * Throws `INVALID_PARAMETER` on a clip name the model does not carry.
385
+ */
383
386
  playAnimations: (clipName?: string) => void;
384
387
  /** Freezes playback on the current pose; playAnimations() resumes. */
385
388
  pauseAnimations: () => void;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-B1GvtGsa.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-Baq0VFRM.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-ryi3d7wY.js";
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-CfbgrXOX.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.2.1",
4
+ "version": "4.3.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",