@dreamcomposer/engine-types 1.0.1 → 1.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.
|
@@ -1,8 +1,20 @@
|
|
|
1
1
|
import { FromEngineMessage } from "../post-messages";
|
|
2
|
+
|
|
3
|
+
export type EnvironmentRotationSource = "user" | "library";
|
|
4
|
+
|
|
2
5
|
/**
|
|
3
6
|
* A message that gets send by the engine when the scene environment is rotated.
|
|
4
7
|
*/
|
|
5
8
|
export interface EnvironmentRotationChangedMessage
|
|
6
9
|
extends FromEngineMessage<"environment-rotation-change"> {
|
|
7
|
-
payload:
|
|
10
|
+
payload: {
|
|
11
|
+
rotation: number;
|
|
12
|
+
/**
|
|
13
|
+
* The source of the rotation change:
|
|
14
|
+
*
|
|
15
|
+
* - `"user"`: triggered by user interaction (e.g. mouse drag)
|
|
16
|
+
* - `"library"`: triggered by a library event (update-environment-rotation)
|
|
17
|
+
*/
|
|
18
|
+
source: EnvironmentRotationSource;
|
|
19
|
+
};
|
|
8
20
|
}
|