@spiffcommerce/preview 5.0.0-rc.2 → 5.0.0-rc.3

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.
Files changed (2) hide show
  1. package/dist/index.d.mts +12 -0
  2. package/package.json +2 -2
package/dist/index.d.mts CHANGED
@@ -148,6 +148,18 @@ type ThreeDPreviewService = {
148
148
  * to rotate around the product.
149
149
  */
150
150
  orbitEnabled(): boolean;
151
+ /**
152
+ * Flips a given transform from one handedness to another.
153
+ * NOTE: Will provide sensible defaults if only some values are provided.
154
+ * @param position The position vector for the transform
155
+ * @param rotation The rotation vector for the transform. NOTE: Should be expressed in radians.
156
+ * @param scale The scale vector for the transform
157
+ */
158
+ flipTransform(position?: Vector, rotation?: Vector, scale?: Vector): {
159
+ position: Vector;
160
+ rotation: Vector;
161
+ scale: Vector;
162
+ };
151
163
  /**
152
164
  * When called will trigger the internal engine to match the current
153
165
  * canvas size. This ensures the image renders correctly in the view and
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spiffcommerce/preview",
3
- "version": "5.0.0-rc.2",
3
+ "version": "5.0.0-rc.3",
4
4
  "description": "An internal implementation of the ThreeDPreviewService interface used by Spiff Commerce",
5
5
  "source": "src/index.ts",
6
6
  "main": "dist/index.umd.js",
@@ -20,7 +20,7 @@
20
20
  "babylonjs-gltf2interface": "^6.14.0"
21
21
  },
22
22
  "devDependencies": {
23
- "@ladle/react": "^2.17.2",
23
+ "@ladle/react": "^3.2.2",
24
24
  "@preact/preset-vite": "^2.5.0",
25
25
  "@size-limit/preset-big-lib": "^9.0.0",
26
26
  "@typescript-eslint/eslint-plugin": "^6.7.4",