@spiffcommerce/preview 4.1.0-alpha.5 → 4.1.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 +2 -26
- package/dist/index.esm.js +334 -335
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -214,21 +214,6 @@ type ThreeDPreviewService = {
|
|
|
214
214
|
* @param plugin The plugin to remove.
|
|
215
215
|
*/
|
|
216
216
|
unregisterPlugin(plugin: PreviewServicePlugin): void;
|
|
217
|
-
/**
|
|
218
|
-
* Rotates a transform around the origin.
|
|
219
|
-
* @param transform The transform to rotate. All values are optional and default to standard identity values.
|
|
220
|
-
* @param axis The axis to rotate around. Defaults to the Y axis.
|
|
221
|
-
* @param angle The angle to rotate by. Defaults to PI (180 degrees);
|
|
222
|
-
*/
|
|
223
|
-
rotateAroundOrigin(transform: {
|
|
224
|
-
position?: Vector;
|
|
225
|
-
rotation?: Vector;
|
|
226
|
-
scale?: Vector;
|
|
227
|
-
}, axis: Vector, angle: number): {
|
|
228
|
-
position: Vector;
|
|
229
|
-
rotation: Vector;
|
|
230
|
-
scale: Vector;
|
|
231
|
-
};
|
|
232
217
|
};
|
|
233
218
|
/**
|
|
234
219
|
* Represents a service capable of managing and returning contexts that
|
|
@@ -1116,22 +1101,13 @@ declare class SpiffCommerce3DPreviewService implements ThreeDPreviewService {
|
|
|
1116
1101
|
modelUnloaded(modelContainer: ModelContainer): void;
|
|
1117
1102
|
private triggerModelLoadEvent;
|
|
1118
1103
|
/**
|
|
1119
|
-
*
|
|
1120
|
-
* @param transform The transform to rotate. All values are optional and default to standard identity values.
|
|
1121
|
-
* @param axis The axis to rotate around. Defaults to the Y axis.
|
|
1122
|
-
* @param angle The angle to rotate by. Defaults to PI (180 degrees);
|
|
1104
|
+
* Flips a transform around the origin.
|
|
1123
1105
|
*/
|
|
1124
|
-
|
|
1125
|
-
position?: Vector;
|
|
1126
|
-
rotation?: Vector;
|
|
1127
|
-
scale?: Vector;
|
|
1128
|
-
}, axis?: Vector, angle?: number): {
|
|
1106
|
+
flipTransform(position?: Vector, rotation?: Vector, scale?: Vector): {
|
|
1129
1107
|
position: Vector;
|
|
1130
1108
|
rotation: Vector;
|
|
1131
1109
|
scale: Vector;
|
|
1132
1110
|
};
|
|
1133
|
-
private toBabylonVector3;
|
|
1134
|
-
private fromBabylonVector3;
|
|
1135
1111
|
private handleMaterialProgressCallback;
|
|
1136
1112
|
private handleModelProgressCallback;
|
|
1137
1113
|
/**
|