@spiffcommerce/preview 5.3.12 → 5.3.14-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.mts +6 -0
- package/dist/index.esm.js +228 -208
- package/dist/index.umd.js +1 -1
- package/package.json +4 -4
package/dist/index.d.mts
CHANGED
|
@@ -499,6 +499,12 @@ type PreviewOptions = {
|
|
|
499
499
|
* @returns A canvas to be used for rendering.
|
|
500
500
|
*/
|
|
501
501
|
readonly createCanvas?: () => HTMLCanvasElement;
|
|
502
|
+
/**
|
|
503
|
+
* A custom function that will be used to load models. Useful if you want to pre-load models or load them from disk.
|
|
504
|
+
* @param src The source of the model to load.
|
|
505
|
+
* @returns A promise which resolves to an ArrayBufferView of the model file.
|
|
506
|
+
*/
|
|
507
|
+
readonly loadModel?: (src: string) => Promise<ArrayBuffer>;
|
|
502
508
|
};
|
|
503
509
|
/**
|
|
504
510
|
* Defines an animation to be played on a product.
|