@dreamcomposer/engine-types 0.0.31 → 0.0.33

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.d.ts CHANGED
@@ -28,7 +28,7 @@ export interface Layer {
28
28
  * - in the URL itself
29
29
  * - via a TextureUrl and TextureUrlCollection object
30
30
  */
31
- texture: string | TextureUrl | Blob | TextureBlob;
31
+ texture?: string | TextureUrl | Blob | TextureBlob;
32
32
  /**
33
33
  * Whether or not the layer is overprinted with the texture.
34
34
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dreamcomposer/engine-types",
3
- "version": "0.0.31",
3
+ "version": "0.0.33",
4
4
  "description": "The type definitions for messages from and to the engine",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,
@@ -39,6 +39,41 @@ export interface SetStageMappingsMessage
39
39
  * and `1`).
40
40
  */
41
41
  height: number;
42
+ /**
43
+ * Defines a sub area of the target geometry, where the stage will be displayed
44
+ *
45
+ * If no subMeshUVArea is defined, the whole area is used.
46
+ */
47
+ subMeshUVArea?: {
48
+ /**
49
+ * The x position where the target uv box begins.
50
+ *
51
+ * This is not a pixel value but a percentage (i.e., a value between `0`
52
+ * and `1`).
53
+ */
54
+ x: number;
55
+ /**
56
+ * The y position where the target uv box begins.
57
+ *
58
+ * This is not a pixel value but a percentage (i.e., a value between `0`
59
+ * and `1`).
60
+ */
61
+ y: number;
62
+ /**
63
+ * The width of target uv box
64
+ *
65
+ * This is not a pixel value but a percentage (i.e., a value between `0`
66
+ * and `1`).
67
+ */
68
+ width: number;
69
+ /**
70
+ * The height of target uv box
71
+ *
72
+ * This is not a pixel value but a percentage (i.e., a value between `0`
73
+ * and `1`).
74
+ */
75
+ height: number;
76
+ };
42
77
  };
43
78
  };
44
79
  }