@duet3d/objectmodel 3.4.0-b20 → 3.4.0-b23
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/dist/ModelObject.js +1 -1
- package/dist/inputs/InputChannel.d.ts +2 -2
- package/dist/inputs/InputChannel.js +2 -2
- package/dist/job/GCodeFileInfo.d.ts +3 -3
- package/dist/job/GCodeFileInfo.js +1 -1
- package/dist/job/index.d.ts +1 -1
- package/dist/state/MachineStatus.d.ts +2 -2
- package/dist/state/MachineStatus.js +2 -2
- package/dist/volumes/index.d.ts +2 -2
- package/package.json +1 -1
package/dist/ModelObject.js
CHANGED
|
@@ -114,7 +114,7 @@ class ModelObject {
|
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
116
|
else if (propType === "number") {
|
|
117
|
-
if (typeof value === "number") {
|
|
117
|
+
if (typeof value === "number" || typeof value === "bigint") {
|
|
118
118
|
this[ownKey] = value;
|
|
119
119
|
}
|
|
120
120
|
else if (process.env.NODE_ENV !== "production") {
|
|
@@ -2,7 +2,7 @@ import ModelObject from "../ModelObject";
|
|
|
2
2
|
import Compatibility from "./Compatibility";
|
|
3
3
|
export declare enum DistanceUnit {
|
|
4
4
|
mm = "mm",
|
|
5
|
-
inch = "
|
|
5
|
+
inch = "in"
|
|
6
6
|
}
|
|
7
7
|
export declare enum InputChannelState {
|
|
8
8
|
awaitingAcknowledgement = "awaitingAcknowledgement",
|
|
@@ -22,7 +22,7 @@ export declare class InputChannel extends ModelObject {
|
|
|
22
22
|
name: string;
|
|
23
23
|
stackDepth: number;
|
|
24
24
|
state: InputChannelState;
|
|
25
|
-
lineNumber: bigint;
|
|
25
|
+
lineNumber: number | bigint;
|
|
26
26
|
volumetric: boolean;
|
|
27
27
|
}
|
|
28
28
|
export default InputChannel;
|
|
@@ -6,7 +6,7 @@ const Compatibility_1 = require("./Compatibility");
|
|
|
6
6
|
var DistanceUnit;
|
|
7
7
|
(function (DistanceUnit) {
|
|
8
8
|
DistanceUnit["mm"] = "mm";
|
|
9
|
-
DistanceUnit["inch"] = "
|
|
9
|
+
DistanceUnit["inch"] = "in";
|
|
10
10
|
})(DistanceUnit = exports.DistanceUnit || (exports.DistanceUnit = {}));
|
|
11
11
|
var InputChannelState;
|
|
12
12
|
(function (InputChannelState) {
|
|
@@ -29,7 +29,7 @@ class InputChannel extends ModelObject_1.default {
|
|
|
29
29
|
this.name = "";
|
|
30
30
|
this.stackDepth = 0;
|
|
31
31
|
this.state = InputChannelState.idle;
|
|
32
|
-
this.lineNumber =
|
|
32
|
+
this.lineNumber = 0;
|
|
33
33
|
this.volumetric = false;
|
|
34
34
|
}
|
|
35
35
|
}
|
|
@@ -9,9 +9,9 @@ export declare class GCodeFileInfo extends ModelObject {
|
|
|
9
9
|
lastModified: string | null;
|
|
10
10
|
layerHeight: number;
|
|
11
11
|
numLayers: number;
|
|
12
|
-
printTime: bigint | null;
|
|
13
|
-
simulatedTime: bigint | null;
|
|
14
|
-
size: bigint;
|
|
12
|
+
printTime: number | bigint | null;
|
|
13
|
+
simulatedTime: number | bigint | null;
|
|
14
|
+
size: number | bigint;
|
|
15
15
|
readonly thumbnails: ModelCollection<ThumbnailInfo>;
|
|
16
16
|
}
|
|
17
17
|
export default GCodeFileInfo;
|
package/dist/job/index.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ export declare class Job extends ModelObject {
|
|
|
20
20
|
build: Build;
|
|
21
21
|
duration: number | null;
|
|
22
22
|
file: GCodeFileInfo | null;
|
|
23
|
-
filePosition: bigint | null;
|
|
23
|
+
filePosition: number | bigint | null;
|
|
24
24
|
lastDuration: number | null;
|
|
25
25
|
lastFileName: string | null;
|
|
26
26
|
lastFileAborted: boolean;
|
|
@@ -3,8 +3,8 @@ export declare enum MachineStatus {
|
|
|
3
3
|
starting = "starting",
|
|
4
4
|
updating = "updating",
|
|
5
5
|
off = "off",
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
halted = "halted",
|
|
7
|
+
pausing = "pausing",
|
|
8
8
|
paused = "paused",
|
|
9
9
|
resuming = "resuming",
|
|
10
10
|
cancelling = "cancelling",
|
|
@@ -7,8 +7,8 @@ var MachineStatus;
|
|
|
7
7
|
MachineStatus["starting"] = "starting";
|
|
8
8
|
MachineStatus["updating"] = "updating";
|
|
9
9
|
MachineStatus["off"] = "off";
|
|
10
|
-
MachineStatus["
|
|
11
|
-
MachineStatus["
|
|
10
|
+
MachineStatus["halted"] = "halted";
|
|
11
|
+
MachineStatus["pausing"] = "pausing";
|
|
12
12
|
MachineStatus["paused"] = "paused";
|
|
13
13
|
MachineStatus["resuming"] = "resuming";
|
|
14
14
|
MachineStatus["cancelling"] = "cancelling";
|
package/dist/volumes/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import ModelObject from "../ModelObject";
|
|
2
2
|
export declare class Volume extends ModelObject {
|
|
3
|
-
capacity: bigint | null;
|
|
4
|
-
freeSpace: bigint | null;
|
|
3
|
+
capacity: number | bigint | null;
|
|
4
|
+
freeSpace: number | bigint | null;
|
|
5
5
|
mounted: boolean;
|
|
6
6
|
name: string | null;
|
|
7
7
|
openFiles: number | null;
|