@dreamcomposer/engine-types 2.1.0 → 2.1.1
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/package.json
CHANGED
|
@@ -4,8 +4,12 @@ import { ToEngineMessage } from "../post-messages";
|
|
|
4
4
|
* Resets the camera to its initial position.
|
|
5
5
|
*/
|
|
6
6
|
export interface ResetCameraPositionMessage extends ToEngineMessage<"reset-camera-position"> {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
payload: {
|
|
8
|
+
/**
|
|
9
|
+
* When true, the reset additionally restores the camera's default orientation
|
|
10
|
+
* on top of zoom and shift. Defaults to false (zoom/shift only), which keeps
|
|
11
|
+
* the current viewing angle.
|
|
12
|
+
*/
|
|
13
|
+
resetRotation?: boolean;
|
|
14
|
+
};
|
|
11
15
|
}
|
|
@@ -4,8 +4,9 @@ import type { ToEngineMessage } from "../post-messages";
|
|
|
4
4
|
/**
|
|
5
5
|
* Defines the initial geometry rotation and position.
|
|
6
6
|
*
|
|
7
|
-
* The initial transform is used if the transform is reseted.
|
|
7
|
+
* The initial transform is used if the transform is reseted. Setting it also applies it:
|
|
8
|
+
* instantly by default, or as a glide of `transitionDuration` seconds.
|
|
8
9
|
*/
|
|
9
10
|
export interface SetInitialGeometryTransformMessage extends ToEngineMessage<"set-initial-geometry-transform"> {
|
|
10
|
-
payload: { transform: GeometryTransform };
|
|
11
|
+
payload: { transform: GeometryTransform; transitionDuration?: number };
|
|
11
12
|
}
|