@dreamcomposer/engine-types 0.0.4-next.3 → 0.0.7
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
package/post-messages.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ import { SetEffectsSettingsAckMessage } from "./from-engine/SetEffectsSettingsAc
|
|
|
17
17
|
import { SetEmbossingHeightTextureMessage } from "./to-engine/SetEmbossingHeightTextureMessage";
|
|
18
18
|
import { SetEnvironmentMessage } from "./to-engine/SetEnvironmentMessage";
|
|
19
19
|
import { SetEnvironmentVisibleMessage } from "./to-engine/SetEnvironmentVisibleMessage";
|
|
20
|
+
import { SetFullscreenMessage } from "./to-engine/SetFullscreenMessage";
|
|
20
21
|
import { SetGeometryBlobMessage } from "./to-engine/SetGeometryBlobMessage";
|
|
21
22
|
import { SetGeometryMessage } from "./to-engine/SetGeometryMessage";
|
|
22
23
|
import { SetGridVisibilityMessage } from "./to-engine/SetGridVisibilityMessage";
|
|
@@ -79,6 +80,7 @@ export type ToEnginePostMessage =
|
|
|
79
80
|
| SetEmbossingHeightTextureMessage
|
|
80
81
|
| SetEnvironmentMessage
|
|
81
82
|
| SetEnvironmentVisibleMessage
|
|
83
|
+
| SetFullscreenMessage
|
|
82
84
|
| SetGeometryBlobMessage
|
|
83
85
|
| SetGeometryMessage
|
|
84
86
|
| SetGeometryUrlMessage
|
|
@@ -11,8 +11,6 @@ export interface ScreenshotPayload {
|
|
|
11
11
|
* Downloads a high-resolution screenshot of the current scene.
|
|
12
12
|
*
|
|
13
13
|
* The download starts automatically once the screenshot has been rendered.
|
|
14
|
-
*
|
|
15
|
-
* TODO: What resolution does the screenshot have? What is the file name?
|
|
16
14
|
*/
|
|
17
15
|
export interface DownloadScreenshotMessage
|
|
18
16
|
extends ToEngineMessage<"download-screenshot"> {
|
|
@@ -17,12 +17,8 @@ export interface SetEnvironmentMessage
|
|
|
17
17
|
export interface Environment {
|
|
18
18
|
/**
|
|
19
19
|
* An url to the environment file.
|
|
20
|
-
*
|
|
21
|
-
* When `blobHDR` is set, this field is still necessary to get the extension
|
|
22
|
-
* (i.e., the type) of the HDR but is not loaded from the URL. In this case
|
|
23
|
-
* it can be a name instead of a URL.
|
|
24
20
|
*/
|
|
25
|
-
filenameHDR
|
|
21
|
+
filenameHDR?: string;
|
|
26
22
|
/**
|
|
27
23
|
* The data of the HDR. If set, the data is not loaded from the URL provided
|
|
28
24
|
* with the `filenameHDR` field.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ToEngineMessage } from "../post-messages";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Explicitely sets full screen mode for the IFrame
|
|
5
|
+
*/
|
|
6
|
+
export interface SetFullscreenMessage
|
|
7
|
+
extends ToEngineMessage<"set-fullscreen"> {
|
|
8
|
+
/**
|
|
9
|
+
* A boolean, describing the desired full screen state
|
|
10
|
+
*/
|
|
11
|
+
payload: boolean;
|
|
12
|
+
}
|