@dreamcomposer/engine-types 0.0.87 → 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/Layer.ts CHANGED
@@ -94,6 +94,11 @@ export interface TextureUrl {
94
94
  * This is only necessary, if the url does not contain the extension itself
95
95
  */
96
96
  fileExtension?: string;
97
+ /**
98
+ * Wether or not Mipmaps should be generated for the texture.
99
+ * @default true
100
+ */
101
+ generateMipmaps?: boolean;
97
102
  }
98
103
  export interface TextureBlob {
99
104
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dreamcomposer/engine-types",
3
- "version": "0.0.87",
3
+ "version": "0.0.89",
4
4
  "description": "The type definitions for messages from and to the engine",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,
@@ -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
+ }