@dreamcomposer/engine-types 0.0.32-next.1 → 0.0.34
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/Layer.d.ts
CHANGED
|
@@ -28,7 +28,7 @@ export interface Layer {
|
|
|
28
28
|
* - in the URL itself
|
|
29
29
|
* - via a TextureUrl and TextureUrlCollection object
|
|
30
30
|
*/
|
|
31
|
-
texture
|
|
31
|
+
texture?: string | TextureUrl | Blob | TextureBlob;
|
|
32
32
|
/**
|
|
33
33
|
* Whether or not the layer is overprinted with the texture.
|
|
34
34
|
*
|
package/package.json
CHANGED
package/post-messages.d.ts
CHANGED
|
@@ -23,7 +23,6 @@ import { SetHardwareScalingLevelMessage } from "./to-engine/SetHardwareScalingLe
|
|
|
23
23
|
import { SetLayersMessage } from "./to-engine/SetLayersMessage";
|
|
24
24
|
import { SetPpiMessage } from "./to-engine/SetPpiMessage";
|
|
25
25
|
import { SetStageMappingsMessage } from "./to-engine/SetStageMappingsMessage";
|
|
26
|
-
import { SetStageRotationsMessage } from "./to-engine/SetStageRotationsMessage";
|
|
27
26
|
import { SetSurfaceMaterialMessage } from "./to-engine/SetSurfaceMaterialMessage";
|
|
28
27
|
import { ToggleFullscreenMessage } from "./to-engine/ToggleFullscreenMessage";
|
|
29
28
|
import { ToggleInspectorMessage } from "./to-engine/ToggleInspectorMessage";
|
|
@@ -91,7 +90,6 @@ export type ToEnginePostMessage =
|
|
|
91
90
|
| SetLayersMessage
|
|
92
91
|
| SetPpiMessage
|
|
93
92
|
| SetStageMappingsMessage
|
|
94
|
-
| SetStageRotationsMessage
|
|
95
93
|
| SetSurfaceMaterialMessage
|
|
96
94
|
| SetUseFramingAnimation
|
|
97
95
|
| ToggleFullscreenMessage
|
|
@@ -39,6 +39,18 @@ export interface SetStageMappingsMessage
|
|
|
39
39
|
* and `1`).
|
|
40
40
|
*/
|
|
41
41
|
height: number;
|
|
42
|
+
/**
|
|
43
|
+
* The rotation of the mapping in degrees.
|
|
44
|
+
*
|
|
45
|
+
* Defaults to `0`.
|
|
46
|
+
*/
|
|
47
|
+
rotation?: 0 | 90 | 180 | 270;
|
|
48
|
+
/**
|
|
49
|
+
* Defines if the stage should be visible or not.
|
|
50
|
+
*
|
|
51
|
+
* Defaults to `true`.
|
|
52
|
+
*/
|
|
53
|
+
visible?: boolean;
|
|
42
54
|
/**
|
|
43
55
|
* Defines a sub area of the target geometry, where the stage will be displayed
|
|
44
56
|
*
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ToEngineMessage } from "../post-messages";
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Sets how the engine should rotate the stages.
|
|
5
|
-
*/
|
|
6
|
-
export interface SetStageRotationsMessage
|
|
7
|
-
extends ToEngineMessage<"set-stage-rotations"> {
|
|
8
|
-
payload: {
|
|
9
|
-
/**
|
|
10
|
-
* The name of the stage with its rotation in degrees.
|
|
11
|
-
*/
|
|
12
|
-
[stageName: string]: 0 | 90 | 180 | 270;
|
|
13
|
-
};
|
|
14
|
-
}
|