@duet3d/objectmodel 3.4.0-b4 → 3.4.0-b5
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/ModelCollection.d.ts +2 -1
- package/dist/ModelCollection.js +2 -0
- package/dist/ModelDictionary.d.ts +2 -1
- package/dist/ModelDictionary.js +2 -0
- package/dist/ModelObject.d.ts +2 -1
- package/dist/ModelObject.js +3 -2
- package/dist/ObjectModel.d.ts +44 -0
- package/dist/ObjectModel.js +51 -0
- package/dist/boards/index.d.ts +2 -1
- package/dist/boards/index.js +2 -1
- package/dist/directories/index.d.ts +2 -1
- package/dist/directories/index.js +2 -0
- package/dist/fans/index.d.ts +2 -1
- package/dist/fans/index.js +2 -1
- package/dist/heat/Heater.d.ts +2 -1
- package/dist/heat/Heater.js +2 -1
- package/dist/heat/HeaterModel.d.ts +2 -1
- package/dist/heat/HeaterModel.js +2 -1
- package/dist/heat/HeaterMonitor.d.ts +2 -1
- package/dist/heat/HeaterMonitor.js +2 -1
- package/dist/heat/index.d.ts +3 -2
- package/dist/heat/index.js +3 -1
- package/dist/httpEndpoints/index.d.ts +2 -1
- package/dist/httpEndpoints/index.js +2 -1
- package/dist/index.d.ts +4 -44
- package/dist/index.js +14 -57
- package/dist/inputs/CodeChannel.d.ts +1 -0
- package/dist/inputs/CodeChannel.js +1 -0
- package/dist/inputs/Compatibility.d.ts +1 -0
- package/dist/inputs/Compatibility.js +1 -0
- package/dist/inputs/InputChannel.d.ts +3 -2
- package/dist/inputs/InputChannel.js +4 -3
- package/dist/job/Build.d.ts +3 -2
- package/dist/job/Build.js +3 -2
- package/dist/job/GCodeFileInfo.d.ts +3 -2
- package/dist/job/GCodeFileInfo.js +3 -1
- package/dist/job/ThumbnailInfo.d.ts +3 -2
- package/dist/job/ThumbnailInfo.js +3 -2
- package/dist/job/index.d.ts +3 -2
- package/dist/job/index.js +3 -2
- package/dist/limits/index.d.ts +2 -1
- package/dist/limits/index.js +2 -0
- package/dist/messages/index.d.ts +2 -1
- package/dist/messages/index.js +2 -1
- package/dist/move/Axis.d.ts +2 -1
- package/dist/move/Axis.js +2 -1
- package/dist/move/DriverId.d.ts +2 -1
- package/dist/move/DriverId.js +2 -0
- package/dist/move/Extruder.d.ts +2 -1
- package/dist/move/Extruder.js +2 -1
- package/dist/move/InputShaping.d.ts +2 -1
- package/dist/move/InputShaping.js +2 -1
- package/dist/move/Microstepping.d.ts +2 -1
- package/dist/move/Microstepping.js +2 -0
- package/dist/move/MoveCalibration.d.ts +2 -1
- package/dist/move/MoveCalibration.js +2 -1
- package/dist/move/MoveCompensation.d.ts +2 -1
- package/dist/move/MoveCompensation.js +2 -1
- package/dist/move/index.d.ts +2 -1
- package/dist/move/index.js +2 -1
- package/dist/move/kinematics/CoreKinematics.d.ts +2 -1
- package/dist/move/kinematics/CoreKinematics.js +2 -0
- package/dist/move/kinematics/DeltaKinematics.d.ts +2 -1
- package/dist/move/kinematics/DeltaKinematics.js +2 -1
- package/dist/move/kinematics/HangprinterKinematics.d.ts +2 -1
- package/dist/move/kinematics/HangprinterKinematics.js +2 -0
- package/dist/move/kinematics/KinematicsBase.d.ts +2 -1
- package/dist/move/kinematics/KinematicsBase.js +2 -1
- package/dist/move/kinematics/PolarKinematics.d.ts +2 -1
- package/dist/move/kinematics/PolarKinematics.js +2 -0
- package/dist/move/kinematics/ScaraKinematics.d.ts +2 -1
- package/dist/move/kinematics/ScaraKinematics.js +2 -0
- package/dist/move/kinematics/index.d.ts +2 -1
- package/dist/move/kinematics/index.js +2 -1
- package/dist/network/NetworkInterface.d.ts +2 -1
- package/dist/network/NetworkInterface.js +2 -1
- package/dist/network/index.d.ts +2 -1
- package/dist/network/index.js +2 -1
- package/dist/plugins/PluginManifest.d.ts +2 -1
- package/dist/plugins/PluginManifest.js +3 -2
- package/dist/plugins/index.d.ts +2 -1
- package/dist/plugins/index.js +2 -0
- package/dist/scanner/index.d.ts +2 -1
- package/dist/scanner/index.js +2 -1
- package/dist/sensors/AnalogSensor.d.ts +2 -1
- package/dist/sensors/AnalogSensor.js +2 -1
- package/dist/sensors/Endstop.d.ts +2 -1
- package/dist/sensors/Endstop.js +2 -1
- package/dist/sensors/FilamentMonitors/FilamentMonitorBase.d.ts +2 -1
- package/dist/sensors/FilamentMonitors/FilamentMonitorBase.js +2 -1
- package/dist/sensors/FilamentMonitors/LaserFilamentMonitor.d.ts +2 -1
- package/dist/sensors/FilamentMonitors/LaserFilamentMonitor.js +2 -1
- package/dist/sensors/FilamentMonitors/PulsedFilamentMonitor.d.ts +2 -1
- package/dist/sensors/FilamentMonitors/PulsedFilamentMonitor.js +2 -1
- package/dist/sensors/FilamentMonitors/RotatingMagnetFilamentMonitor.d.ts +2 -1
- package/dist/sensors/FilamentMonitors/RotatingMagnetFilamentMonitor.js +2 -1
- package/dist/sensors/FilamentMonitors/index.d.ts +2 -1
- package/dist/sensors/FilamentMonitors/index.js +2 -1
- package/dist/sensors/Probe.d.ts +2 -1
- package/dist/sensors/Probe.js +2 -1
- package/dist/sensors/index.d.ts +2 -1
- package/dist/sensors/index.js +2 -1
- package/dist/spindles/index.d.ts +2 -1
- package/dist/spindles/index.js +2 -1
- package/dist/state/MachineStatus.d.ts +1 -0
- package/dist/state/MachineStatus.js +1 -0
- package/dist/state/MessageBox.d.ts +2 -1
- package/dist/state/MessageBox.js +2 -1
- package/dist/state/RestorePoint.d.ts +2 -1
- package/dist/state/RestorePoint.js +2 -0
- package/dist/state/index.d.ts +2 -1
- package/dist/state/index.js +2 -1
- package/dist/tools/index.d.ts +2 -1
- package/dist/tools/index.js +2 -1
- package/dist/userSessions/index.d.ts +2 -1
- package/dist/userSessions/index.js +2 -1
- package/dist/volumes/index.d.ts +2 -1
- package/dist/volumes/index.js +2 -0
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ import { IModelObject } from "./ModelObject";
|
|
|
2
2
|
/**
|
|
3
3
|
* Class for storing model object items in an array
|
|
4
4
|
*/
|
|
5
|
-
export
|
|
5
|
+
export declare class ModelCollection<T extends IModelObject> extends Array<T> implements IModelObject {
|
|
6
6
|
private readonly itemConstructor;
|
|
7
7
|
/**
|
|
8
8
|
* Constructor of this class
|
|
@@ -23,3 +23,4 @@ export default class ModelCollection<T extends IModelObject> extends Array<T> im
|
|
|
23
23
|
*/
|
|
24
24
|
update(jsonElement: any): IModelObject | null;
|
|
25
25
|
}
|
|
26
|
+
export default ModelCollection;
|
package/dist/ModelCollection.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ModelCollection = void 0;
|
|
3
4
|
const ModelObject_1 = require("./ModelObject");
|
|
4
5
|
const index_1 = require("./index");
|
|
5
6
|
/**
|
|
@@ -76,4 +77,5 @@ class ModelCollection extends Array {
|
|
|
76
77
|
return this;
|
|
77
78
|
}
|
|
78
79
|
}
|
|
80
|
+
exports.ModelCollection = ModelCollection;
|
|
79
81
|
exports.default = ModelCollection;
|
|
@@ -2,7 +2,7 @@ import { IModelObject } from "./ModelObject";
|
|
|
2
2
|
/**
|
|
3
3
|
* Dictionary class to map object model data
|
|
4
4
|
*/
|
|
5
|
-
export
|
|
5
|
+
export declare class ModelDictionary<T> extends Map<string, T | null> implements IModelObject {
|
|
6
6
|
private readonly nullDeletesKeys;
|
|
7
7
|
private readonly itemConstructor;
|
|
8
8
|
/**
|
|
@@ -26,3 +26,4 @@ export default class ModelDictionary<T> extends Map<string, T | null> implements
|
|
|
26
26
|
*/
|
|
27
27
|
update(jsonElement: any): IModelObject | null;
|
|
28
28
|
}
|
|
29
|
+
export default ModelDictionary;
|
package/dist/ModelDictionary.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ModelDictionary = void 0;
|
|
3
4
|
const ModelObject_1 = require("./ModelObject");
|
|
4
5
|
/**
|
|
5
6
|
* Dictionary class to map object model data
|
|
@@ -64,4 +65,5 @@ class ModelDictionary extends Map {
|
|
|
64
65
|
return this;
|
|
65
66
|
}
|
|
66
67
|
}
|
|
68
|
+
exports.ModelDictionary = ModelDictionary;
|
|
67
69
|
exports.default = ModelDictionary;
|
package/dist/ModelObject.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ export declare function isModelObject(value: any): value is IModelObject;
|
|
|
17
17
|
/**
|
|
18
18
|
* Base class for object model classes
|
|
19
19
|
*/
|
|
20
|
-
export
|
|
20
|
+
export declare abstract class ModelObject implements IModelObject {
|
|
21
21
|
/**
|
|
22
22
|
* Update this instance from the given data
|
|
23
23
|
* @param jsonElement JSON data to upgrade this instance from
|
|
@@ -44,3 +44,4 @@ export declare function initItem<T>(itemType: {
|
|
|
44
44
|
}, data: {
|
|
45
45
|
[Property in keyof T]?: T[Property];
|
|
46
46
|
}): T;
|
|
47
|
+
export default ModelObject;
|
package/dist/ModelObject.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.initItem = exports.isModelObject = void 0;
|
|
3
|
+
exports.initItem = exports.ModelObject = exports.isModelObject = void 0;
|
|
4
4
|
const index_1 = require("./index");
|
|
5
5
|
/**
|
|
6
6
|
* Check whether a given value provides model update functionality
|
|
@@ -152,7 +152,7 @@ class ModelObject {
|
|
|
152
152
|
});
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
|
-
exports.
|
|
155
|
+
exports.ModelObject = ModelObject;
|
|
156
156
|
/**
|
|
157
157
|
* Initialize a class item from the given data
|
|
158
158
|
* @param itemType Item type to create
|
|
@@ -167,3 +167,4 @@ function initItem(itemType, data) {
|
|
|
167
167
|
return result;
|
|
168
168
|
}
|
|
169
169
|
exports.initItem = initItem;
|
|
170
|
+
exports.default = ModelObject;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import ModelCollection from "./ModelCollection";
|
|
2
|
+
import ModelDictionary from "./ModelDictionary";
|
|
3
|
+
import ModelObject from "./ModelObject";
|
|
4
|
+
import Board from "./boards";
|
|
5
|
+
import State from "./state";
|
|
6
|
+
import Directories from "./directories";
|
|
7
|
+
import Fan from "./fans";
|
|
8
|
+
import Heat from "./heat";
|
|
9
|
+
import HttpEndpoint from "./httpEndpoints";
|
|
10
|
+
import InputChannel from "./inputs/InputChannel";
|
|
11
|
+
import Job from "./job";
|
|
12
|
+
import Limits from "./limits";
|
|
13
|
+
import Message from "./messages";
|
|
14
|
+
import Move from "./move";
|
|
15
|
+
import Plugin from "./plugins";
|
|
16
|
+
import Scanner from "./scanner";
|
|
17
|
+
import Sensors from "./sensors";
|
|
18
|
+
import Spindle from "./spindles";
|
|
19
|
+
import UserSession from "./userSessions";
|
|
20
|
+
import Volume from "./volumes";
|
|
21
|
+
/**
|
|
22
|
+
* Refer to the DSF/RRF documentation for descriptions of the object model fields
|
|
23
|
+
*/
|
|
24
|
+
export declare class ObjectModel extends ModelObject {
|
|
25
|
+
readonly boards: ModelCollection<Board>;
|
|
26
|
+
readonly directories: Directories;
|
|
27
|
+
readonly fans: ModelCollection<Fan>;
|
|
28
|
+
readonly global: ModelDictionary<any>;
|
|
29
|
+
readonly heat: Heat;
|
|
30
|
+
readonly httpEndpoints: ModelCollection<HttpEndpoint>;
|
|
31
|
+
readonly inputs: ModelCollection<InputChannel>;
|
|
32
|
+
readonly job: Job;
|
|
33
|
+
readonly limits: Limits;
|
|
34
|
+
readonly messages: ModelCollection<Message>;
|
|
35
|
+
readonly move: Move;
|
|
36
|
+
readonly plugins: ModelDictionary<Plugin>;
|
|
37
|
+
readonly scanner: Scanner;
|
|
38
|
+
readonly sensors: Sensors;
|
|
39
|
+
readonly spindles: ModelCollection<Spindle>;
|
|
40
|
+
readonly state: State;
|
|
41
|
+
readonly userSessions: ModelCollection<UserSession>;
|
|
42
|
+
readonly volumes: ModelCollection<Volume>;
|
|
43
|
+
}
|
|
44
|
+
export default ObjectModel;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ObjectModel = void 0;
|
|
4
|
+
const ModelCollection_1 = require("./ModelCollection");
|
|
5
|
+
const ModelDictionary_1 = require("./ModelDictionary");
|
|
6
|
+
const ModelObject_1 = require("./ModelObject");
|
|
7
|
+
const boards_1 = require("./boards");
|
|
8
|
+
const state_1 = require("./state");
|
|
9
|
+
const directories_1 = require("./directories");
|
|
10
|
+
const fans_1 = require("./fans");
|
|
11
|
+
const heat_1 = require("./heat");
|
|
12
|
+
const httpEndpoints_1 = require("./httpEndpoints");
|
|
13
|
+
const InputChannel_1 = require("./inputs/InputChannel");
|
|
14
|
+
const job_1 = require("./job");
|
|
15
|
+
const limits_1 = require("./limits");
|
|
16
|
+
const messages_1 = require("./messages");
|
|
17
|
+
const move_1 = require("./move");
|
|
18
|
+
const plugins_1 = require("./plugins");
|
|
19
|
+
const scanner_1 = require("./scanner");
|
|
20
|
+
const sensors_1 = require("./sensors");
|
|
21
|
+
const spindles_1 = require("./spindles");
|
|
22
|
+
const userSessions_1 = require("./userSessions");
|
|
23
|
+
const volumes_1 = require("./volumes");
|
|
24
|
+
/**
|
|
25
|
+
* Refer to the DSF/RRF documentation for descriptions of the object model fields
|
|
26
|
+
*/
|
|
27
|
+
class ObjectModel extends ModelObject_1.default {
|
|
28
|
+
constructor() {
|
|
29
|
+
super(...arguments);
|
|
30
|
+
this.boards = new ModelCollection_1.default(boards_1.default);
|
|
31
|
+
this.directories = new directories_1.default();
|
|
32
|
+
this.fans = new ModelCollection_1.default(fans_1.default);
|
|
33
|
+
this.global = new ModelDictionary_1.default(false);
|
|
34
|
+
this.heat = new heat_1.default();
|
|
35
|
+
this.httpEndpoints = new ModelCollection_1.default(httpEndpoints_1.default);
|
|
36
|
+
this.inputs = new ModelCollection_1.default(InputChannel_1.default);
|
|
37
|
+
this.job = new job_1.default();
|
|
38
|
+
this.limits = new limits_1.default();
|
|
39
|
+
this.messages = new ModelCollection_1.default(messages_1.default); // must be manually cleared after updates
|
|
40
|
+
this.move = new move_1.default();
|
|
41
|
+
this.plugins = new ModelDictionary_1.default(true, plugins_1.default);
|
|
42
|
+
this.scanner = new scanner_1.default();
|
|
43
|
+
this.sensors = new sensors_1.default();
|
|
44
|
+
this.spindles = new ModelCollection_1.default(spindles_1.default);
|
|
45
|
+
this.state = new state_1.default();
|
|
46
|
+
this.userSessions = new ModelCollection_1.default(userSessions_1.default);
|
|
47
|
+
this.volumes = new ModelCollection_1.default(volumes_1.default);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
exports.ObjectModel = ObjectModel;
|
|
51
|
+
exports.default = ObjectModel;
|
package/dist/boards/index.d.ts
CHANGED
|
@@ -24,7 +24,7 @@ export declare class DirectDisplay extends ModelObject {
|
|
|
24
24
|
spiFreq: number;
|
|
25
25
|
typeName: string;
|
|
26
26
|
}
|
|
27
|
-
export
|
|
27
|
+
export declare class Board extends ModelObject {
|
|
28
28
|
constructor();
|
|
29
29
|
accelerometer: Accelerometer | null;
|
|
30
30
|
bootloaderFileName: string | null;
|
|
@@ -47,3 +47,4 @@ export default class Board extends ModelObject {
|
|
|
47
47
|
v12: MinMaxCurrent | null;
|
|
48
48
|
vIn: MinMaxCurrent | null;
|
|
49
49
|
}
|
|
50
|
+
export default Board;
|
package/dist/boards/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DirectDisplay = exports.MinMaxCurrent = exports.ClosedLoop = exports.BoardState = exports.Accelerometer = void 0;
|
|
3
|
+
exports.Board = exports.DirectDisplay = exports.MinMaxCurrent = exports.ClosedLoop = exports.BoardState = exports.Accelerometer = void 0;
|
|
4
4
|
const ModelObject_1 = require("../ModelObject");
|
|
5
5
|
class Accelerometer extends ModelObject_1.default {
|
|
6
6
|
constructor() {
|
|
@@ -75,4 +75,5 @@ class Board extends ModelObject_1.default {
|
|
|
75
75
|
this.wrapModelProperty("vIn", MinMaxCurrent);
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
|
+
exports.Board = Board;
|
|
78
79
|
exports.default = Board;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import ModelObject from "../ModelObject";
|
|
2
|
-
export
|
|
2
|
+
export declare class Directories extends ModelObject {
|
|
3
3
|
filaments: string;
|
|
4
4
|
firmware: string;
|
|
5
5
|
gCodes: string;
|
|
@@ -9,3 +9,4 @@ export default class Directories extends ModelObject {
|
|
|
9
9
|
system: string;
|
|
10
10
|
web: string;
|
|
11
11
|
}
|
|
12
|
+
export default Directories;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Directories = void 0;
|
|
3
4
|
const ModelObject_1 = require("../ModelObject");
|
|
4
5
|
class Directories extends ModelObject_1.default {
|
|
5
6
|
constructor() {
|
|
@@ -14,4 +15,5 @@ class Directories extends ModelObject_1.default {
|
|
|
14
15
|
this.web = "0:/www";
|
|
15
16
|
}
|
|
16
17
|
}
|
|
18
|
+
exports.Directories = Directories;
|
|
17
19
|
exports.default = Directories;
|
package/dist/fans/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export declare class FanThermostaticControl extends ModelObject {
|
|
|
4
4
|
highTemperature: number | null;
|
|
5
5
|
lowTemperature: number | null;
|
|
6
6
|
}
|
|
7
|
-
export
|
|
7
|
+
export declare class Fan extends ModelObject {
|
|
8
8
|
actualValue: number;
|
|
9
9
|
blip: number;
|
|
10
10
|
frequency: number;
|
|
@@ -15,3 +15,4 @@ export default class Fan extends ModelObject {
|
|
|
15
15
|
rpm: number;
|
|
16
16
|
readonly thermostatic: FanThermostaticControl;
|
|
17
17
|
}
|
|
18
|
+
export default Fan;
|
package/dist/fans/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FanThermostaticControl = void 0;
|
|
3
|
+
exports.Fan = exports.FanThermostaticControl = void 0;
|
|
4
4
|
const ModelObject_1 = require("../ModelObject");
|
|
5
5
|
class FanThermostaticControl extends ModelObject_1.default {
|
|
6
6
|
constructor() {
|
|
@@ -25,4 +25,5 @@ class Fan extends ModelObject_1.default {
|
|
|
25
25
|
this.thermostatic = new FanThermostaticControl();
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
|
+
exports.Fan = Fan;
|
|
28
29
|
exports.default = Fan;
|
package/dist/heat/Heater.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export declare enum HeaterState {
|
|
|
10
10
|
tuning = "tuning",
|
|
11
11
|
offline = "offline"
|
|
12
12
|
}
|
|
13
|
-
export
|
|
13
|
+
export declare class Heater extends ModelObject {
|
|
14
14
|
active: number;
|
|
15
15
|
avgPwm: number;
|
|
16
16
|
current: number;
|
|
@@ -22,3 +22,4 @@ export default class Heater extends ModelObject {
|
|
|
22
22
|
standby: number;
|
|
23
23
|
state: HeaterState;
|
|
24
24
|
}
|
|
25
|
+
export default Heater;
|
package/dist/heat/Heater.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.HeaterState = void 0;
|
|
3
|
+
exports.Heater = exports.HeaterState = void 0;
|
|
4
4
|
const ModelCollection_1 = require("../ModelCollection");
|
|
5
5
|
const HeaterModel_1 = require("./HeaterModel");
|
|
6
6
|
const ModelObject_1 = require("../ModelObject");
|
|
@@ -29,4 +29,5 @@ class Heater extends ModelObject_1.default {
|
|
|
29
29
|
this.state = HeaterState.off;
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
|
+
exports.Heater = Heater;
|
|
32
33
|
exports.default = Heater;
|
|
@@ -6,7 +6,7 @@ export declare class HeaterModelPID extends ModelObject {
|
|
|
6
6
|
p: number;
|
|
7
7
|
used: boolean;
|
|
8
8
|
}
|
|
9
|
-
export
|
|
9
|
+
export declare class HeaterModel extends ModelObject {
|
|
10
10
|
coolingExp: number;
|
|
11
11
|
coolingRate: number;
|
|
12
12
|
deadTime: number;
|
|
@@ -18,3 +18,4 @@ export default class HeaterModel extends ModelObject {
|
|
|
18
18
|
readonly pid: HeaterModelPID;
|
|
19
19
|
standardVoltage: number | null;
|
|
20
20
|
}
|
|
21
|
+
export default HeaterModel;
|
package/dist/heat/HeaterModel.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.HeaterModelPID = void 0;
|
|
3
|
+
exports.HeaterModel = exports.HeaterModelPID = void 0;
|
|
4
4
|
const ModelObject_1 = require("../ModelObject");
|
|
5
5
|
class HeaterModelPID extends ModelObject_1.default {
|
|
6
6
|
constructor() {
|
|
@@ -28,4 +28,5 @@ class HeaterModel extends ModelObject_1.default {
|
|
|
28
28
|
this.standardVoltage = null;
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
|
+
exports.HeaterModel = HeaterModel;
|
|
31
32
|
exports.default = HeaterModel;
|
|
@@ -10,8 +10,9 @@ export declare enum HeaterMonitorCondition {
|
|
|
10
10
|
tooHigh = "tooHigh",
|
|
11
11
|
tooLow = "tooLow"
|
|
12
12
|
}
|
|
13
|
-
export
|
|
13
|
+
export declare class HeaterMonitor extends ModelObject {
|
|
14
14
|
action: HeaterMonitorAction;
|
|
15
15
|
condition: HeaterMonitorCondition;
|
|
16
16
|
limit: number;
|
|
17
17
|
}
|
|
18
|
+
export default HeaterMonitor;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.HeaterMonitorCondition = exports.HeaterMonitorAction = void 0;
|
|
3
|
+
exports.HeaterMonitor = exports.HeaterMonitorCondition = exports.HeaterMonitorAction = void 0;
|
|
4
4
|
const ModelObject_1 = require("../ModelObject");
|
|
5
5
|
var HeaterMonitorAction;
|
|
6
6
|
(function (HeaterMonitorAction) {
|
|
@@ -23,4 +23,5 @@ class HeaterMonitor extends ModelObject_1.default {
|
|
|
23
23
|
this.limit = 2000;
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
+
exports.HeaterMonitor = HeaterMonitor;
|
|
26
27
|
exports.default = HeaterMonitor;
|
package/dist/heat/index.d.ts
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import ModelCollection from "../ModelCollection";
|
|
2
|
-
import Heater from "./Heater";
|
|
3
2
|
import ModelObject from "../ModelObject";
|
|
4
|
-
|
|
3
|
+
import Heater from "./Heater";
|
|
4
|
+
export declare class Heat extends ModelObject {
|
|
5
5
|
bedHeaters: Array<number>;
|
|
6
6
|
chamberHeaters: Array<number>;
|
|
7
7
|
coldExtrudeTemperature: number;
|
|
8
8
|
coldRetractTemperature: number;
|
|
9
9
|
readonly heaters: ModelCollection<Heater>;
|
|
10
10
|
}
|
|
11
|
+
export default Heat;
|
|
11
12
|
export * from "./Heater";
|
|
12
13
|
export * from "./HeaterModel";
|
|
13
14
|
export * from "./HeaterMonitor";
|
package/dist/heat/index.js
CHANGED
|
@@ -14,9 +14,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.Heat = void 0;
|
|
17
18
|
const ModelCollection_1 = require("../ModelCollection");
|
|
18
|
-
const Heater_1 = require("./Heater");
|
|
19
19
|
const ModelObject_1 = require("../ModelObject");
|
|
20
|
+
const Heater_1 = require("./Heater");
|
|
20
21
|
class Heat extends ModelObject_1.default {
|
|
21
22
|
constructor() {
|
|
22
23
|
super(...arguments);
|
|
@@ -27,6 +28,7 @@ class Heat extends ModelObject_1.default {
|
|
|
27
28
|
this.heaters = new ModelCollection_1.default(Heater_1.default);
|
|
28
29
|
}
|
|
29
30
|
}
|
|
31
|
+
exports.Heat = Heat;
|
|
30
32
|
exports.default = Heat;
|
|
31
33
|
__exportStar(require("./Heater"), exports);
|
|
32
34
|
__exportStar(require("./HeaterModel"), exports);
|
|
@@ -9,10 +9,11 @@ export declare enum HttpEndpointType {
|
|
|
9
9
|
OPTIONS = "OPTIONS",
|
|
10
10
|
WebSocket = "WebSocket"
|
|
11
11
|
}
|
|
12
|
-
export
|
|
12
|
+
export declare class HttpEndpoint extends ModelObject {
|
|
13
13
|
endpointType: HttpEndpointType;
|
|
14
14
|
namespace: string;
|
|
15
15
|
path: string;
|
|
16
16
|
isUploadRequest: boolean;
|
|
17
17
|
unixSocket: string;
|
|
18
18
|
}
|
|
19
|
+
export default HttpEndpoint;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.HttpEndpointType = void 0;
|
|
3
|
+
exports.HttpEndpoint = exports.HttpEndpointType = void 0;
|
|
4
4
|
const ModelObject_1 = require("../ModelObject");
|
|
5
5
|
var HttpEndpointType;
|
|
6
6
|
(function (HttpEndpointType) {
|
|
@@ -23,4 +23,5 @@ class HttpEndpoint extends ModelObject_1.default {
|
|
|
23
23
|
this.unixSocket = "";
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
+
exports.HttpEndpoint = HttpEndpoint;
|
|
26
27
|
exports.default = HttpEndpoint;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,47 +1,3 @@
|
|
|
1
|
-
import ModelCollection from "./ModelCollection";
|
|
2
|
-
import ModelDictionary from "./ModelDictionary";
|
|
3
|
-
import ModelObject from "./ModelObject";
|
|
4
|
-
import Board from "./boards";
|
|
5
|
-
import State from "./state";
|
|
6
|
-
import Directories from "./directories";
|
|
7
|
-
import Fan from "./fans";
|
|
8
|
-
import Heat from "./heat";
|
|
9
|
-
import HttpEndpoint from "./httpEndpoints";
|
|
10
|
-
import InputChannel from "./inputs/InputChannel";
|
|
11
|
-
import Job from "./job";
|
|
12
|
-
import Limits from "./limits";
|
|
13
|
-
import Message from "./messages";
|
|
14
|
-
import Move from "./move";
|
|
15
|
-
import Plugin from "./plugins";
|
|
16
|
-
import Scanner from "./scanner";
|
|
17
|
-
import Sensors from "./sensors";
|
|
18
|
-
import Spindle from "./spindles";
|
|
19
|
-
import UserSession from "./userSessions";
|
|
20
|
-
import Volume from "./volumes";
|
|
21
|
-
export declare function setArrayItem(array: Array<any>, index: number, value: any): void;
|
|
22
|
-
/**
|
|
23
|
-
* Refer to the DSF/RRF documentation for descriptions of the object model fields
|
|
24
|
-
*/
|
|
25
|
-
export default class ObjectModel extends ModelObject {
|
|
26
|
-
readonly boards: ModelCollection<Board>;
|
|
27
|
-
readonly directories: Directories;
|
|
28
|
-
readonly fans: ModelCollection<Fan>;
|
|
29
|
-
readonly global: ModelDictionary<any>;
|
|
30
|
-
readonly heat: Heat;
|
|
31
|
-
readonly httpEndpoints: ModelCollection<HttpEndpoint>;
|
|
32
|
-
readonly inputs: ModelCollection<InputChannel>;
|
|
33
|
-
readonly job: Job;
|
|
34
|
-
readonly limits: Limits;
|
|
35
|
-
readonly messages: ModelCollection<Message>;
|
|
36
|
-
readonly move: Move;
|
|
37
|
-
readonly plugins: ModelDictionary<Plugin>;
|
|
38
|
-
readonly scanner: Scanner;
|
|
39
|
-
readonly sensors: Sensors;
|
|
40
|
-
readonly spindles: ModelCollection<Spindle>;
|
|
41
|
-
readonly state: State;
|
|
42
|
-
readonly userSessions: ModelCollection<UserSession>;
|
|
43
|
-
readonly volumes: ModelCollection<Volume>;
|
|
44
|
-
}
|
|
45
1
|
export * from "./ModelCollection";
|
|
46
2
|
export * from "./ModelDictionary";
|
|
47
3
|
export * from "./ModelObject";
|
|
@@ -62,3 +18,7 @@ export * from "./sensors";
|
|
|
62
18
|
export * from "./spindles";
|
|
63
19
|
export * from "./userSessions";
|
|
64
20
|
export * from "./volumes";
|
|
21
|
+
export * from "./ObjectModel";
|
|
22
|
+
import ObjectModel from "./ObjectModel";
|
|
23
|
+
export default ObjectModel;
|
|
24
|
+
export declare function setArrayItem(array: Array<any>, index: number, value: any): void;
|
package/dist/index.js
CHANGED
|
@@ -15,63 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.setArrayItem = void 0;
|
|
18
|
-
|
|
19
|
-
const ModelDictionary_1 = require("./ModelDictionary");
|
|
20
|
-
const ModelObject_1 = require("./ModelObject");
|
|
21
|
-
const boards_1 = require("./boards");
|
|
22
|
-
const state_1 = require("./state");
|
|
23
|
-
const directories_1 = require("./directories");
|
|
24
|
-
const fans_1 = require("./fans");
|
|
25
|
-
const heat_1 = require("./heat");
|
|
26
|
-
const httpEndpoints_1 = require("./httpEndpoints");
|
|
27
|
-
const InputChannel_1 = require("./inputs/InputChannel");
|
|
28
|
-
const job_1 = require("./job");
|
|
29
|
-
const limits_1 = require("./limits");
|
|
30
|
-
const messages_1 = require("./messages");
|
|
31
|
-
const move_1 = require("./move");
|
|
32
|
-
const plugins_1 = require("./plugins");
|
|
33
|
-
const scanner_1 = require("./scanner");
|
|
34
|
-
const sensors_1 = require("./sensors");
|
|
35
|
-
const spindles_1 = require("./spindles");
|
|
36
|
-
const userSessions_1 = require("./userSessions");
|
|
37
|
-
const volumes_1 = require("./volumes");
|
|
38
|
-
// Unfortunately we need to define a way to update arrays to remain compatible with Vue 2 (due to IE11).
|
|
39
|
-
// This will become obsolete as soon as DWC is upgraded to Vue 3, but that isn't going to happen anytime soon.
|
|
40
|
-
// Until then a Vue 2 user would have to call something like this on initialization to work around this limitation:
|
|
41
|
-
// globalThis._duetModelSetArray = (array, index, value) => Vue.set(array, index, value);
|
|
42
|
-
globalThis._duetModelSetArray = (array, index, value) => array[index] = value;
|
|
43
|
-
function setArrayItem(array, index, value) {
|
|
44
|
-
globalThis._duetModelSetArray(array, index, value);
|
|
45
|
-
}
|
|
46
|
-
exports.setArrayItem = setArrayItem;
|
|
47
|
-
/**
|
|
48
|
-
* Refer to the DSF/RRF documentation for descriptions of the object model fields
|
|
49
|
-
*/
|
|
50
|
-
class ObjectModel extends ModelObject_1.default {
|
|
51
|
-
constructor() {
|
|
52
|
-
super(...arguments);
|
|
53
|
-
this.boards = new ModelCollection_1.default(boards_1.default);
|
|
54
|
-
this.directories = new directories_1.default();
|
|
55
|
-
this.fans = new ModelCollection_1.default(fans_1.default);
|
|
56
|
-
this.global = new ModelDictionary_1.default(false);
|
|
57
|
-
this.heat = new heat_1.default();
|
|
58
|
-
this.httpEndpoints = new ModelCollection_1.default(httpEndpoints_1.default);
|
|
59
|
-
this.inputs = new ModelCollection_1.default(InputChannel_1.default);
|
|
60
|
-
this.job = new job_1.default();
|
|
61
|
-
this.limits = new limits_1.default();
|
|
62
|
-
this.messages = new ModelCollection_1.default(messages_1.default); // must be manually cleared after updates
|
|
63
|
-
this.move = new move_1.default();
|
|
64
|
-
this.plugins = new ModelDictionary_1.default(true, plugins_1.default);
|
|
65
|
-
this.scanner = new scanner_1.default();
|
|
66
|
-
this.sensors = new sensors_1.default();
|
|
67
|
-
this.spindles = new ModelCollection_1.default(spindles_1.default);
|
|
68
|
-
this.state = new state_1.default();
|
|
69
|
-
this.userSessions = new ModelCollection_1.default(userSessions_1.default);
|
|
70
|
-
this.volumes = new ModelCollection_1.default(volumes_1.default);
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
exports.default = ObjectModel;
|
|
74
|
-
// Export everything again from here to simplify imports from other packages
|
|
18
|
+
// Expose all the sub-exports
|
|
75
19
|
__exportStar(require("./ModelCollection"), exports);
|
|
76
20
|
__exportStar(require("./ModelDictionary"), exports);
|
|
77
21
|
__exportStar(require("./ModelObject"), exports);
|
|
@@ -92,3 +36,16 @@ __exportStar(require("./sensors"), exports);
|
|
|
92
36
|
__exportStar(require("./spindles"), exports);
|
|
93
37
|
__exportStar(require("./userSessions"), exports);
|
|
94
38
|
__exportStar(require("./volumes"), exports);
|
|
39
|
+
__exportStar(require("./ObjectModel"), exports);
|
|
40
|
+
// Expose ObjectModel as default export
|
|
41
|
+
const ObjectModel_1 = require("./ObjectModel");
|
|
42
|
+
exports.default = ObjectModel_1.default;
|
|
43
|
+
// Unfortunately we need to define a way to update arrays to remain compatible with Vue 2 (due to IE11).
|
|
44
|
+
// This will become obsolete as soon as DWC is upgraded to Vue 3, but that isn't going to happen anytime soon.
|
|
45
|
+
// Until then a Vue 2 user would have to call something like this on initialization to work around this limitation:
|
|
46
|
+
// globalThis._duetModelSetArray = (array, index, value) => Vue.set(array, index, value);
|
|
47
|
+
globalThis._duetModelSetArray = (array, index, value) => array[index] = value;
|
|
48
|
+
function setArrayItem(array, index, value) {
|
|
49
|
+
globalThis._duetModelSetArray(array, index, value);
|
|
50
|
+
}
|
|
51
|
+
exports.setArrayItem = setArrayItem;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Compatibility } from "./Compatibility";
|
|
2
1
|
import ModelObject from "../ModelObject";
|
|
2
|
+
import Compatibility from "./Compatibility";
|
|
3
3
|
export declare enum DistanceUnit {
|
|
4
4
|
mm = "mm",
|
|
5
5
|
inch = "inch"
|
|
@@ -11,7 +11,7 @@ export declare enum InputChannelState {
|
|
|
11
11
|
waiting = "waiting",
|
|
12
12
|
reading = "reading"
|
|
13
13
|
}
|
|
14
|
-
export
|
|
14
|
+
export declare class InputChannel extends ModelObject {
|
|
15
15
|
axesRelative: boolean;
|
|
16
16
|
compatibility: Compatibility;
|
|
17
17
|
distanceUnit: DistanceUnit;
|
|
@@ -25,3 +25,4 @@ export default class InputChannel extends ModelObject {
|
|
|
25
25
|
lineNumber: bigint;
|
|
26
26
|
volumetric: boolean;
|
|
27
27
|
}
|
|
28
|
+
export default InputChannel;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.InputChannelState = exports.DistanceUnit = void 0;
|
|
4
|
-
const Compatibility_1 = require("./Compatibility");
|
|
3
|
+
exports.InputChannel = exports.InputChannelState = exports.DistanceUnit = void 0;
|
|
5
4
|
const ModelObject_1 = require("../ModelObject");
|
|
5
|
+
const Compatibility_1 = require("./Compatibility");
|
|
6
6
|
var DistanceUnit;
|
|
7
7
|
(function (DistanceUnit) {
|
|
8
8
|
DistanceUnit["mm"] = "mm";
|
|
@@ -20,7 +20,7 @@ class InputChannel extends ModelObject_1.default {
|
|
|
20
20
|
constructor() {
|
|
21
21
|
super(...arguments);
|
|
22
22
|
this.axesRelative = false;
|
|
23
|
-
this.compatibility = Compatibility_1.
|
|
23
|
+
this.compatibility = Compatibility_1.default.RepRapFirmware;
|
|
24
24
|
this.distanceUnit = DistanceUnit.mm;
|
|
25
25
|
this.drivesRelative = true;
|
|
26
26
|
this.feedRate = 50;
|
|
@@ -33,4 +33,5 @@ class InputChannel extends ModelObject_1.default {
|
|
|
33
33
|
this.volumetric = false;
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
|
+
exports.InputChannel = InputChannel;
|
|
36
37
|
exports.default = InputChannel;
|
package/dist/job/Build.d.ts
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import ModelObject from "../ModelObject";
|
|
2
1
|
import ModelCollection from "../ModelCollection";
|
|
2
|
+
import ModelObject from "../ModelObject";
|
|
3
3
|
export declare class BuildObject extends ModelObject {
|
|
4
4
|
cancelled: boolean;
|
|
5
5
|
name: string | null;
|
|
6
6
|
x: Array<number | null>;
|
|
7
7
|
y: Array<number | null>;
|
|
8
8
|
}
|
|
9
|
-
export
|
|
9
|
+
export declare class Build extends ModelObject {
|
|
10
10
|
currentObject: number;
|
|
11
11
|
m486names: boolean;
|
|
12
12
|
m486numbers: boolean;
|
|
13
13
|
readonly objects: ModelCollection<BuildObject>;
|
|
14
14
|
}
|
|
15
|
+
export default Build;
|