@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.
package/package.json
CHANGED
package/post-messages.d.ts
CHANGED
|
@@ -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
|
|
13
|
-
*
|
|
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
|
|
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.
|