@dreamcomposer/engine-types 0.0.88 → 0.0.89
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
|
@@ -52,6 +52,7 @@ import { SetBackgroundImageMessage } from "./to-engine/SetBackgroundImageMessage
|
|
|
52
52
|
import { AnnotationTagPositionChangedMessage } from "./from-engine/AnnotationTagPositionChangedMessage";
|
|
53
53
|
import { SetAnnotationTagsMessage } from "./to-engine/SetAnnotationTagsMessage";
|
|
54
54
|
import { SetCustomRequestHeaders } from "./to-engine/SetCustomRequestHeaders";
|
|
55
|
+
import { SetObjectForScaleMessage } from "./to-engine/SetObjectForScaleMessage";
|
|
55
56
|
|
|
56
57
|
/**
|
|
57
58
|
* A message sent from the engine to the embedder.
|
|
@@ -130,6 +131,7 @@ export type ToEnginePostMessage =
|
|
|
130
131
|
| ResetGeometryTransformMessage
|
|
131
132
|
| PlaceGeometryOnGroundMessage
|
|
132
133
|
| SetAnnotationTagsMessage
|
|
133
|
-
| SetCustomRequestHeaders
|
|
134
|
+
| SetCustomRequestHeaders
|
|
135
|
+
| SetObjectForScaleMessage;
|
|
134
136
|
|
|
135
137
|
export type PostMessage = FromEnginePostMessage | ToEnginePostMessage;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ToEngineMessage } from "../post-messages";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Set the geometry.
|
|
5
|
+
*/
|
|
6
|
+
export interface SetObjectForScaleMessage
|
|
7
|
+
extends ToEngineMessage<"set-object-for-scale"> {
|
|
8
|
+
payload: {
|
|
9
|
+
/**
|
|
10
|
+
* The BLOB or URL of the geometry (i.e., the 3D model, for example a box or a
|
|
11
|
+
* bottle) in the GLTF/GLB format.
|
|
12
|
+
*/
|
|
13
|
+
model: string | Blob | undefined;
|
|
14
|
+
config: {
|
|
15
|
+
placement: "left" | "right" | "front" | "back";
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
}
|