@dreamcomposer/engine-types 0.0.16 → 0.0.18

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.
@@ -0,0 +1,9 @@
1
+ import { FromEngineMessage } from "../post-messages";
2
+
3
+ /**
4
+ * Sent whenever the loading ui should be displayed.
5
+ */
6
+ export interface DisplayLoadingUiMessage
7
+ extends FromEngineMessage<"display-loading-ui"> {
8
+ payload: {};
9
+ }
@@ -0,0 +1,9 @@
1
+ import { FromEngineMessage } from "../post-messages";
2
+
3
+ /**
4
+ * Sent whenever the loading ui should be hidden.
5
+ */
6
+ export interface HideLoadingUiMessage
7
+ extends FromEngineMessage<"hide-loading-ui"> {
8
+ payload: {};
9
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dreamcomposer/engine-types",
3
- "version": "0.0.16",
3
+ "version": "0.0.18",
4
4
  "description": "The type definitions for messages from and to the engine",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,
@@ -38,6 +38,8 @@ import { SetUseFramingAnimation } from "./to-engine/SetUseFramingAnimation";
38
38
  import { SetSkeletonStatesMessage } from "./to-engine/SetSkeletonStatesMessage";
39
39
  import { RecenterSkeletonObjectsMessage } from "./to-engine/RecenterSkeletonObjectsMessage";
40
40
  import { SetShadowPlaneVisibilityMessage } from "./to-engine/SetShadowPlaneVisibilityMessage";
41
+ import { DisplayLoadingUiMessage } from "./from-engine/DisplayLoadingUiMessage";
42
+ import { HideLoadingUiMessage } from "./from-engine/HideLoadingUiMessage";
41
43
 
42
44
  /**
43
45
  * A message sent from the engine to the embedder.
@@ -63,8 +65,10 @@ export interface ToEngineMessage<Channel> {
63
65
  export type FromEnginePostMessage =
64
66
  | AckMessage
65
67
  | CanvasImageUrlMessage
68
+ | DisplayLoadingUiMessage
66
69
  | EngineReadyMessage
67
70
  | HideGuiMessage
71
+ | HideLoadingUiMessage
68
72
  | KeyDownMessage
69
73
  | PointerEventMessage
70
74
  | SetEffectsSettingsAckMessage
@@ -9,8 +9,9 @@ import { ToEngineMessage } from "../post-messages";
9
9
  export interface SetCutoutTextureMessage
10
10
  extends ToEngineMessage<"set-cutout-texture"> {
11
11
  /**
12
- * The cutout mask in the PNG format or an empty string to reset it (i.e.,
13
- * setting a texture with no cutouts).
12
+ * The cutout mask in the PNG format. Can either be a blob or a URL to the
13
+ * cutout texture. An empty string is used to reset it (i.e., setting a
14
+ * texture with no cutouts).
14
15
  */
15
- payload: Blob | "";
16
+ payload: Blob | string | "";
16
17
  }
@@ -4,7 +4,8 @@ import { ToEngineMessage } from "../post-messages";
4
4
  /**
5
5
  * A message to set the mesh skeleton states
6
6
  */
7
- export interface SetSkeletonStatesMessage extends ToEngineMessage<"set-skeleton-states"> {
7
+ export interface SetSkeletonStatesMessage
8
+ extends ToEngineMessage<"set-skeleton-states"> {
8
9
  payload: {
9
10
  /**
10
11
  * The skeleton states. The key is the name of the skeleton from the mesh.