@dreamcomposer/engine-types 0.0.8 → 0.0.11

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
@@ -10,7 +10,6 @@ export interface Layer {
10
10
  *
11
11
  * Should start at `0`.
12
12
  */
13
- // TODO: The order should be dynamically set by the engine
14
13
  order: number;
15
14
  /**
16
15
  * The name of the material of the layer (e.g., "print_diffuse") or a complete material definition
@@ -41,10 +40,8 @@ export interface Layer {
41
40
  */
42
41
  overprintColor?: string;
43
42
  /**
44
- *
45
43
  * Overprint mode. Can be either "tint" (for tintable foils) or "opaque" (for
46
44
  * spot colors)
47
- *
48
45
  */
49
46
  overprintMode?: "tint" | "opaque";
50
47
  /**
@@ -86,10 +83,15 @@ export interface PatternEmbossingConfiguration {
86
83
  */
87
84
  overrides?: TextureOverride<unknown>[];
88
85
  /**
89
- * Scaling to scale the pixel size of the embossing to the real physical
90
- * size.
86
+ * Size of the main texture in pixels
87
+ */
88
+ sizePx: [number, number];
89
+
90
+ /**
91
+ * PPI of the texture
91
92
  */
92
- scaling?: [number, number];
93
+ ppi: number;
94
+
93
95
  /**
94
96
  * The offset of the embossing.
95
97
  */
@@ -1,7 +1,7 @@
1
1
  import { FromEngineMessage } from "../post-messages";
2
2
 
3
3
  /**
4
- * Sent whenever a file os loaded by the engine.
4
+ * Sent whenever a file is loaded by the engine.
5
5
  */
6
6
  export interface SetLoadingProgressMessage
7
7
  extends FromEngineMessage<"set-loading-progress"> {
@@ -21,13 +21,13 @@ export interface SetLoadingProgressMessage
21
21
  /**
22
22
  * The bytes loaded so far.
23
23
  *
24
- * `-1` if an error occured.
24
+ * `-1` if an error occurred.
25
25
  */
26
26
  bytes: number;
27
27
  /**
28
28
  * The total bytes of the file (or `0` if not known yet).
29
29
  *
30
- * `-1` if an error occured.
30
+ * `-1` if an error occurred.
31
31
  */
32
32
  total: number;
33
33
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dreamcomposer/engine-types",
3
- "version": "0.0.8",
3
+ "version": "0.0.11",
4
4
  "description": "The type definitions for messages from and to the engine",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,