@dreamcomposer/engine-types 0.0.5 → 0.0.6

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dreamcomposer/engine-types",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "description": "The type definitions for messages from and to the engine",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,
@@ -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
@@ -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: string;
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
+ }