@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.
@@ -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 = "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"] = "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 = 0n;
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;
@@ -16,7 +16,7 @@ class GCodeFileInfo extends ModelObject_1.default {
16
16
  this.numLayers = 0;
17
17
  this.printTime = null;
18
18
  this.simulatedTime = null;
19
- this.size = 0n;
19
+ this.size = 0;
20
20
  this.thumbnails = new ModelCollection_1.default(ThumbnailInfo_1.default);
21
21
  }
22
22
  }
@@ -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
- Halted = "halted",
7
- Pausing = "pausing",
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["Halted"] = "halted";
11
- MachineStatus["Pausing"] = "pausing";
10
+ MachineStatus["halted"] = "halted";
11
+ MachineStatus["pausing"] = "pausing";
12
12
  MachineStatus["paused"] = "paused";
13
13
  MachineStatus["resuming"] = "resuming";
14
14
  MachineStatus["cancelling"] = "cancelling";
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duet3d/objectmodel",
3
- "version": "3.4.0-b20",
3
+ "version": "3.4.0-b23",
4
4
  "description": "TypeScript implementation of the Duet3D Object Model",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",