@dreamcomposer/engine-types 0.0.8 → 0.0.9
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
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FromEngineMessage } from "../post-messages";
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* Sent whenever a file
|
|
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
|
|
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
|
|
30
|
+
* `-1` if an error occurred.
|
|
31
31
|
*/
|
|
32
32
|
total: number;
|
|
33
33
|
};
|