@duet3d/objectmodel 3.7.0-alpha.1 → 3.7.0-alpha.10
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 +1 -1
- package/dist/ModelCollection.js +10 -15
- package/dist/ModelDictionary.d.ts +1 -1
- package/dist/ModelDictionary.js +7 -12
- package/dist/ModelObject.js +8 -14
- package/dist/ModelSet.js +2 -6
- package/dist/ObjectModel.js +42 -46
- package/dist/boards/Driver.d.ts +13 -0
- package/dist/boards/Driver.js +24 -13
- package/dist/boards/directDisplay/DirectDisplayScreen.d.ts +1 -1
- package/dist/boards/directDisplay/DirectDisplayScreen.js +5 -9
- package/dist/boards/directDisplay/DirectDisplayScreenBase.js +4 -7
- package/dist/boards/directDisplay/DirectDisplayScreenST7567.d.ts +1 -1
- package/dist/boards/directDisplay/DirectDisplayScreenST7567.js +6 -10
- package/dist/boards/directDisplay/index.js +16 -35
- package/dist/boards/index.d.ts +2 -1
- package/dist/boards/index.js +23 -43
- package/dist/deprecations.json +18 -0
- package/dist/directories/index.js +3 -7
- package/dist/enums.json +297 -0
- package/dist/fans/index.d.ts +0 -1
- package/dist/fans/index.js +4 -10
- package/dist/heat/Heater.js +10 -14
- package/dist/heat/HeaterModel.js +4 -9
- package/dist/heat/HeaterMonitor.js +7 -11
- package/dist/heat/index.d.ts +8 -0
- package/dist/heat/index.js +17 -27
- package/dist/index.js +26 -43
- package/dist/inputs/CodeChannel.js +3 -6
- package/dist/inputs/Compatibility.js +3 -6
- package/dist/inputs/InputChannel.js +9 -13
- package/dist/inputs/index.js +3 -19
- package/dist/job/Build.js +6 -11
- package/dist/job/GCodeFileInfo.js +8 -12
- package/dist/job/ThumbnailInfo.js +5 -9
- package/dist/job/index.d.ts +4 -0
- package/dist/job/index.js +19 -35
- package/dist/ledStrips/index.d.ts +10 -0
- package/dist/ledStrips/index.js +16 -9
- package/dist/limits/index.js +3 -7
- package/dist/messages/index.js +5 -9
- package/dist/move/Axis.js +10 -14
- package/dist/move/DriverId.d.ts +2 -1
- package/dist/move/DriverId.js +4 -9
- package/dist/move/Extruder.d.ts +9 -0
- package/dist/move/Extruder.js +20 -13
- package/dist/move/InputShaping.js +5 -9
- package/dist/move/KeepoutZone.js +5 -10
- package/dist/move/Microstepping.js +3 -7
- package/dist/move/MotionSystem.d.ts +20 -0
- package/dist/move/MotionSystem.js +23 -0
- package/dist/move/MoveCalibration.js +4 -9
- package/dist/move/MoveCompensation.js +10 -16
- package/dist/move/index.d.ts +19 -1
- package/dist/move/index.js +51 -55
- package/dist/move/kinematics/CoreKinematics.d.ts +1 -1
- package/dist/move/kinematics/CoreKinematics.js +5 -9
- package/dist/move/kinematics/DeltaKinematics.d.ts +2 -1
- package/dist/move/kinematics/DeltaKinematics.js +9 -14
- package/dist/move/kinematics/HangprinterKinematics.d.ts +1 -1
- package/dist/move/kinematics/HangprinterKinematics.js +6 -10
- package/dist/move/kinematics/KinematicsBase.js +8 -15
- package/dist/move/kinematics/PolarKinematics.d.ts +1 -1
- package/dist/move/kinematics/PolarKinematics.js +6 -10
- package/dist/move/kinematics/ScaraKinematics.d.ts +1 -1
- package/dist/move/kinematics/ScaraKinematics.js +5 -9
- package/dist/move/kinematics/index.d.ts +1 -1
- package/dist/move/kinematics/index.js +35 -54
- package/dist/network/NetworkInterface.d.ts +1 -1
- package/dist/network/NetworkInterface.js +12 -16
- package/dist/network/index.js +12 -30
- package/dist/plugins/PluginManifest.d.ts +2 -1
- package/dist/plugins/PluginManifest.js +7 -11
- package/dist/plugins/index.js +4 -22
- package/dist/sbc/CPU.js +3 -7
- package/dist/sbc/Memory.js +3 -7
- package/dist/sbc/dsf/HttpEndpoint.js +5 -9
- package/dist/sbc/dsf/UserSession.js +7 -11
- package/dist/sbc/dsf/index.js +9 -27
- package/dist/sbc/index.js +12 -30
- package/dist/sensors/AnalogSensor.d.ts +2 -0
- package/dist/sensors/AnalogSensor.js +9 -11
- package/dist/sensors/Endstop.js +5 -9
- package/dist/sensors/FilamentMonitors/Duet3DFilamentMonitor.js +4 -8
- package/dist/sensors/FilamentMonitors/FilamentMonitorBase.js +9 -13
- package/dist/sensors/FilamentMonitors/LaserFilamentMonitor.d.ts +3 -2
- package/dist/sensors/FilamentMonitors/LaserFilamentMonitor.js +12 -18
- package/dist/sensors/FilamentMonitors/PulsedFilamentMonitor.d.ts +2 -1
- package/dist/sensors/FilamentMonitors/PulsedFilamentMonitor.js +10 -16
- package/dist/sensors/FilamentMonitors/RotatingMagnetFilamentMonitor.d.ts +2 -1
- package/dist/sensors/FilamentMonitors/RotatingMagnetFilamentMonitor.js +11 -17
- package/dist/sensors/FilamentMonitors/index.d.ts +1 -1
- package/dist/sensors/FilamentMonitors/index.js +18 -37
- package/dist/sensors/Probe.js +7 -12
- package/dist/sensors/index.js +18 -37
- package/dist/spindles/index.js +7 -11
- package/dist/state/MachineStatus.js +3 -6
- package/dist/state/MessageBox.d.ts +2 -1
- package/dist/state/MessageBox.js +5 -9
- package/dist/state/RestorePoint.js +3 -7
- package/dist/state/index.d.ts +9 -0
- package/dist/state/index.js +32 -44
- package/dist/tools/ToolRetraction.js +3 -7
- package/dist/tools/index.d.ts +1 -1
- package/dist/tools/index.js +8 -12
- package/dist/volumes/index.js +3 -7
- package/package.json +16 -5
package/dist/index.js
CHANGED
|
@@ -1,47 +1,30 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.setArrayItem = setArrayItem;
|
|
18
1
|
// Expose all the sub-exports
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
2
|
+
export * from "./ModelCollection";
|
|
3
|
+
export * from "./ModelDictionary";
|
|
4
|
+
export * from "./ModelObject";
|
|
5
|
+
export * from "./ModelSet";
|
|
6
|
+
export * from "./boards";
|
|
7
|
+
export * from "./directories";
|
|
8
|
+
export * from "./fans";
|
|
9
|
+
export * from "./heat";
|
|
10
|
+
export * from "./inputs";
|
|
11
|
+
export * from "./job";
|
|
12
|
+
export * from "./ledStrips";
|
|
13
|
+
export * from "./limits";
|
|
14
|
+
export * from "./messages";
|
|
15
|
+
export * from "./move";
|
|
16
|
+
export * from "./network";
|
|
17
|
+
export * from "./plugins";
|
|
18
|
+
export * from "./sensors";
|
|
19
|
+
export * from "./spindles";
|
|
20
|
+
export * from "./sbc";
|
|
21
|
+
export * from "./state";
|
|
22
|
+
export * from "./tools";
|
|
23
|
+
export * from "./volumes";
|
|
24
|
+
export * from "./ObjectModel";
|
|
42
25
|
// Expose ObjectModel as default export
|
|
43
|
-
|
|
44
|
-
|
|
26
|
+
import ObjectModel from "./ObjectModel";
|
|
27
|
+
export default ObjectModel;
|
|
45
28
|
// Unfortunately we need to define a way to update arrays to remain compatible with Vue 2 (due to IE11).
|
|
46
29
|
// This will become obsolete as soon as DWC is upgraded to Vue 3, but that isn't going to happen anytime soon.
|
|
47
30
|
// Until then a Vue 2 user would have to call something like this on initialization to work around this limitation:
|
|
@@ -49,6 +32,6 @@ exports.default = ObjectModel_1.default;
|
|
|
49
32
|
// or in TypeScript
|
|
50
33
|
// (globalThis as any)._duetModelSetArray = (array: object, index: string | number, value: any) => Vue.set(array, index, value);
|
|
51
34
|
globalThis._duetModelSetArray = (array, index, value) => array[index] = value;
|
|
52
|
-
function setArrayItem(array, index, value) {
|
|
35
|
+
export function setArrayItem(array, index, value) {
|
|
53
36
|
globalThis._duetModelSetArray(array, index, value);
|
|
54
37
|
}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CodeChannel = void 0;
|
|
4
|
-
var CodeChannel;
|
|
1
|
+
export var CodeChannel;
|
|
5
2
|
(function (CodeChannel) {
|
|
6
3
|
CodeChannel[CodeChannel["http"] = 0] = "http";
|
|
7
4
|
CodeChannel[CodeChannel["telnet"] = 1] = "telnet";
|
|
@@ -18,5 +15,5 @@ var CodeChannel;
|
|
|
18
15
|
CodeChannel[CodeChannel["file2"] = 12] = "file2";
|
|
19
16
|
CodeChannel[CodeChannel["queue2"] = 13] = "queue2";
|
|
20
17
|
CodeChannel[CodeChannel["unknown"] = 14] = "unknown";
|
|
21
|
-
})(CodeChannel || (
|
|
22
|
-
|
|
18
|
+
})(CodeChannel || (CodeChannel = {}));
|
|
19
|
+
export default CodeChannel;
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Compatibility = void 0;
|
|
4
|
-
var Compatibility;
|
|
1
|
+
export var Compatibility;
|
|
5
2
|
(function (Compatibility) {
|
|
6
3
|
Compatibility["Default"] = "Default";
|
|
7
4
|
Compatibility["RepRapFirmware"] = "RepRapFirmware";
|
|
@@ -10,5 +7,5 @@ var Compatibility;
|
|
|
10
7
|
Compatibility["Sprinter"] = "Sprinter";
|
|
11
8
|
Compatibility["Repetier"] = "Repetier";
|
|
12
9
|
Compatibility["NanoDLP"] = "NanoDLP";
|
|
13
|
-
})(Compatibility || (
|
|
14
|
-
|
|
10
|
+
})(Compatibility || (Compatibility = {}));
|
|
11
|
+
export default Compatibility;
|
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const ModelObject_1 = require("../ModelObject");
|
|
5
|
-
const Compatibility_1 = require("./Compatibility");
|
|
6
|
-
var DistanceUnit;
|
|
1
|
+
import ModelObject from "../ModelObject";
|
|
2
|
+
import Compatibility from "./Compatibility";
|
|
3
|
+
export var DistanceUnit;
|
|
7
4
|
(function (DistanceUnit) {
|
|
8
5
|
DistanceUnit["mm"] = "mm";
|
|
9
6
|
DistanceUnit["inch"] = "in";
|
|
10
|
-
})(DistanceUnit || (
|
|
11
|
-
var InputChannelState;
|
|
7
|
+
})(DistanceUnit || (DistanceUnit = {}));
|
|
8
|
+
export var InputChannelState;
|
|
12
9
|
(function (InputChannelState) {
|
|
13
10
|
InputChannelState["awaitingAcknowledgement"] = "awaitingAcknowledgement";
|
|
14
11
|
InputChannelState["idle"] = "idle";
|
|
@@ -16,13 +13,13 @@ var InputChannelState;
|
|
|
16
13
|
InputChannelState["waiting"] = "waiting";
|
|
17
14
|
InputChannelState["reading"] = "reading";
|
|
18
15
|
InputChannelState["unused"] = "unused";
|
|
19
|
-
})(InputChannelState || (
|
|
20
|
-
class InputChannel extends
|
|
16
|
+
})(InputChannelState || (InputChannelState = {}));
|
|
17
|
+
export class InputChannel extends ModelObject {
|
|
21
18
|
constructor() {
|
|
22
19
|
super(...arguments);
|
|
23
20
|
this.active = true;
|
|
24
21
|
this.axesRelative = false;
|
|
25
|
-
this.compatibility =
|
|
22
|
+
this.compatibility = Compatibility.RepRapFirmware;
|
|
26
23
|
this.distanceUnit = DistanceUnit.mm;
|
|
27
24
|
this.drivesRelative = true;
|
|
28
25
|
this.feedRate = 50;
|
|
@@ -37,5 +34,4 @@ class InputChannel extends ModelObject_1.default {
|
|
|
37
34
|
this.volumetric = false;
|
|
38
35
|
}
|
|
39
36
|
}
|
|
40
|
-
|
|
41
|
-
exports.default = InputChannel;
|
|
37
|
+
export default InputChannel;
|
package/dist/inputs/index.js
CHANGED
|
@@ -1,19 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./CodeChannel"), exports);
|
|
18
|
-
__exportStar(require("./Compatibility"), exports);
|
|
19
|
-
__exportStar(require("./InputChannel"), exports);
|
|
1
|
+
export * from "./CodeChannel";
|
|
2
|
+
export * from "./Compatibility";
|
|
3
|
+
export * from "./InputChannel";
|
package/dist/job/Build.js
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const ModelCollection_1 = require("../ModelCollection");
|
|
5
|
-
const ModelObject_1 = require("../ModelObject");
|
|
6
|
-
class BuildObject extends ModelObject_1.default {
|
|
1
|
+
import ModelCollection from "../ModelCollection";
|
|
2
|
+
import ModelObject from "../ModelObject";
|
|
3
|
+
export class BuildObject extends ModelObject {
|
|
7
4
|
constructor() {
|
|
8
5
|
super(...arguments);
|
|
9
6
|
this.cancelled = false;
|
|
@@ -12,15 +9,13 @@ class BuildObject extends ModelObject_1.default {
|
|
|
12
9
|
this.y = new Array();
|
|
13
10
|
}
|
|
14
11
|
}
|
|
15
|
-
|
|
16
|
-
class Build extends ModelObject_1.default {
|
|
12
|
+
export class Build extends ModelObject {
|
|
17
13
|
constructor() {
|
|
18
14
|
super(...arguments);
|
|
19
15
|
this.currentObject = -1;
|
|
20
16
|
this.m486names = false;
|
|
21
17
|
this.m486numbers = false;
|
|
22
|
-
this.objects = new
|
|
18
|
+
this.objects = new ModelCollection(BuildObject);
|
|
23
19
|
}
|
|
24
20
|
}
|
|
25
|
-
|
|
26
|
-
exports.default = Build;
|
|
21
|
+
export default Build;
|
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const ModelObject_1 = require("../ModelObject");
|
|
7
|
-
const ThumbnailInfo_1 = require("./ThumbnailInfo");
|
|
8
|
-
class GCodeFileInfo extends ModelObject_1.default {
|
|
1
|
+
import ModelCollection from "../ModelCollection";
|
|
2
|
+
import ModelDictionary from "../ModelDictionary";
|
|
3
|
+
import ModelObject from "../ModelObject";
|
|
4
|
+
import ThumbnailInfo from "./ThumbnailInfo";
|
|
5
|
+
export class GCodeFileInfo extends ModelObject {
|
|
9
6
|
constructor() {
|
|
10
7
|
super(...arguments);
|
|
11
|
-
this.customInfo = new
|
|
8
|
+
this.customInfo = new ModelDictionary(false);
|
|
12
9
|
this.filament = new Array();
|
|
13
10
|
this.fileName = "";
|
|
14
11
|
this.generatedBy = "";
|
|
@@ -19,8 +16,7 @@ class GCodeFileInfo extends ModelObject_1.default {
|
|
|
19
16
|
this.printTime = null;
|
|
20
17
|
this.simulatedTime = null;
|
|
21
18
|
this.size = 0;
|
|
22
|
-
this.thumbnails = new
|
|
19
|
+
this.thumbnails = new ModelCollection(ThumbnailInfo);
|
|
23
20
|
}
|
|
24
21
|
}
|
|
25
|
-
|
|
26
|
-
exports.default = GCodeFileInfo;
|
|
22
|
+
export default GCodeFileInfo;
|
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.ThumbnailInfo = exports.ThumbnailFormat = void 0;
|
|
4
|
-
const ModelObject_1 = require("../ModelObject");
|
|
5
|
-
var ThumbnailFormat;
|
|
1
|
+
import { ModelObject } from "../ModelObject";
|
|
2
|
+
export var ThumbnailFormat;
|
|
6
3
|
(function (ThumbnailFormat) {
|
|
7
4
|
ThumbnailFormat["jpeg"] = "jpeg";
|
|
8
5
|
ThumbnailFormat["png"] = "png";
|
|
9
6
|
ThumbnailFormat["qoi"] = "qoi";
|
|
10
|
-
})(ThumbnailFormat || (
|
|
11
|
-
class ThumbnailInfo extends
|
|
7
|
+
})(ThumbnailFormat || (ThumbnailFormat = {}));
|
|
8
|
+
export class ThumbnailInfo extends ModelObject {
|
|
12
9
|
constructor() {
|
|
13
10
|
super(...arguments);
|
|
14
11
|
this.data = null;
|
|
@@ -19,5 +16,4 @@ class ThumbnailInfo extends ModelObject_1.ModelObject {
|
|
|
19
16
|
this.width = 0;
|
|
20
17
|
}
|
|
21
18
|
}
|
|
22
|
-
|
|
23
|
-
exports.default = ThumbnailInfo;
|
|
19
|
+
export default ThumbnailInfo;
|
package/dist/job/index.d.ts
CHANGED
|
@@ -4,7 +4,11 @@ import Build from "./Build";
|
|
|
4
4
|
import GCodeFileInfo from "./GCodeFileInfo";
|
|
5
5
|
export declare class Layer extends ModelObject {
|
|
6
6
|
duration: number;
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated use filamentUsage instead
|
|
9
|
+
*/
|
|
7
10
|
filament: Array<number>;
|
|
11
|
+
filamentUsage: number;
|
|
8
12
|
fractionPrinted: number;
|
|
9
13
|
height: number;
|
|
10
14
|
temperatures: Array<number>;
|
package/dist/job/index.js
CHANGED
|
@@ -1,36 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.Job = exports.TimesLeft = exports.Layer = void 0;
|
|
18
|
-
const ModelCollection_1 = require("../ModelCollection");
|
|
19
|
-
const ModelObject_1 = require("../ModelObject");
|
|
20
|
-
const Build_1 = require("./Build");
|
|
21
|
-
const GCodeFileInfo_1 = require("./GCodeFileInfo");
|
|
22
|
-
class Layer extends ModelObject_1.default {
|
|
1
|
+
import ModelCollection from "../ModelCollection";
|
|
2
|
+
import ModelObject from "../ModelObject";
|
|
3
|
+
import Build from "./Build";
|
|
4
|
+
import GCodeFileInfo from "./GCodeFileInfo";
|
|
5
|
+
export class Layer extends ModelObject {
|
|
23
6
|
constructor() {
|
|
24
7
|
super(...arguments);
|
|
25
8
|
this.duration = 0;
|
|
9
|
+
/**
|
|
10
|
+
* @deprecated use filamentUsage instead
|
|
11
|
+
*/
|
|
26
12
|
this.filament = new Array();
|
|
13
|
+
this.filamentUsage = 0;
|
|
27
14
|
this.fractionPrinted = 0;
|
|
28
15
|
this.height = 0;
|
|
29
16
|
this.temperatures = new Array();
|
|
30
17
|
}
|
|
31
18
|
}
|
|
32
|
-
|
|
33
|
-
class TimesLeft extends ModelObject_1.default {
|
|
19
|
+
export class TimesLeft extends ModelObject {
|
|
34
20
|
constructor() {
|
|
35
21
|
super(...arguments);
|
|
36
22
|
this.filament = null;
|
|
@@ -39,11 +25,10 @@ class TimesLeft extends ModelObject_1.default {
|
|
|
39
25
|
this.toPause = null;
|
|
40
26
|
}
|
|
41
27
|
}
|
|
42
|
-
|
|
43
|
-
class Job extends ModelObject_1.default {
|
|
28
|
+
export class Job extends ModelObject {
|
|
44
29
|
constructor() {
|
|
45
30
|
super();
|
|
46
|
-
this.build = new
|
|
31
|
+
this.build = new Build();
|
|
47
32
|
this.duration = null;
|
|
48
33
|
this.file = null;
|
|
49
34
|
this.filePosition = null;
|
|
@@ -54,18 +39,17 @@ class Job extends ModelObject_1.default {
|
|
|
54
39
|
this.lastFileSimulated = false;
|
|
55
40
|
this.lastWarmUpDuration = null;
|
|
56
41
|
this.layer = null;
|
|
57
|
-
this.layers = new
|
|
42
|
+
this.layers = new ModelCollection(Layer);
|
|
58
43
|
this.layerTime = null;
|
|
59
44
|
this.pauseDuration = null;
|
|
60
45
|
this.rawExtrusion = null;
|
|
61
46
|
this.timesLeft = new TimesLeft();
|
|
62
47
|
this.warmUpDuration = null;
|
|
63
|
-
|
|
64
|
-
|
|
48
|
+
ModelObject.wrapModelProperty(this, "build", Build);
|
|
49
|
+
ModelObject.wrapModelProperty(this, "file", GCodeFileInfo);
|
|
65
50
|
}
|
|
66
51
|
}
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
__exportStar(require("./ThumbnailInfo"), exports);
|
|
52
|
+
export default Job;
|
|
53
|
+
export * from "./Build";
|
|
54
|
+
export * from "./GCodeFileInfo";
|
|
55
|
+
export * from "./ThumbnailInfo";
|
|
@@ -4,8 +4,18 @@ export declare enum LedStripType {
|
|
|
4
4
|
NeoPixel_RGB = "NeoPixel_RGB",
|
|
5
5
|
NeoPixel_RGBW = "NeoPixel_RGBW"
|
|
6
6
|
}
|
|
7
|
+
export declare enum LedStripColorOrder {
|
|
8
|
+
BGR = 0,
|
|
9
|
+
BRG = 1,
|
|
10
|
+
RGB = 2,
|
|
11
|
+
RBG = 3,
|
|
12
|
+
GBR = 4,
|
|
13
|
+
GRB = 5
|
|
14
|
+
}
|
|
7
15
|
export declare class LedStrip extends ModelObject {
|
|
8
16
|
board: number;
|
|
17
|
+
colorOrder: LedStripColorOrder;
|
|
18
|
+
maxLeds: number;
|
|
9
19
|
pin: string;
|
|
10
20
|
stopMovement: boolean;
|
|
11
21
|
type: LedStripType;
|
package/dist/ledStrips/index.js
CHANGED
|
@@ -1,21 +1,28 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.LedStrip = exports.LedStripType = void 0;
|
|
4
|
-
const ModelObject_1 = require("../ModelObject");
|
|
5
|
-
var LedStripType;
|
|
1
|
+
import ModelObject from "../ModelObject";
|
|
2
|
+
export var LedStripType;
|
|
6
3
|
(function (LedStripType) {
|
|
7
4
|
LedStripType["DotStar"] = "DotStar";
|
|
8
5
|
LedStripType["NeoPixel_RGB"] = "NeoPixel_RGB";
|
|
9
6
|
LedStripType["NeoPixel_RGBW"] = "NeoPixel_RGBW";
|
|
10
|
-
})(LedStripType || (
|
|
11
|
-
|
|
7
|
+
})(LedStripType || (LedStripType = {}));
|
|
8
|
+
export var LedStripColorOrder;
|
|
9
|
+
(function (LedStripColorOrder) {
|
|
10
|
+
LedStripColorOrder[LedStripColorOrder["BGR"] = 0] = "BGR";
|
|
11
|
+
LedStripColorOrder[LedStripColorOrder["BRG"] = 1] = "BRG";
|
|
12
|
+
LedStripColorOrder[LedStripColorOrder["RGB"] = 2] = "RGB";
|
|
13
|
+
LedStripColorOrder[LedStripColorOrder["RBG"] = 3] = "RBG";
|
|
14
|
+
LedStripColorOrder[LedStripColorOrder["GBR"] = 4] = "GBR";
|
|
15
|
+
LedStripColorOrder[LedStripColorOrder["GRB"] = 5] = "GRB";
|
|
16
|
+
})(LedStripColorOrder || (LedStripColorOrder = {}));
|
|
17
|
+
export class LedStrip extends ModelObject {
|
|
12
18
|
constructor() {
|
|
13
19
|
super(...arguments);
|
|
14
20
|
this.board = 0;
|
|
21
|
+
this.colorOrder = LedStripColorOrder.GRB;
|
|
22
|
+
this.maxLeds = 0;
|
|
15
23
|
this.pin = "";
|
|
16
24
|
this.stopMovement = false;
|
|
17
25
|
this.type = LedStripType.DotStar;
|
|
18
26
|
}
|
|
19
27
|
}
|
|
20
|
-
|
|
21
|
-
exports.default = LedStrip;
|
|
28
|
+
export default LedStrip;
|
package/dist/limits/index.js
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.Limits = void 0;
|
|
4
|
-
const ModelObject_1 = require("../ModelObject");
|
|
5
|
-
class Limits extends ModelObject_1.default {
|
|
1
|
+
import ModelObject from "../ModelObject";
|
|
2
|
+
export class Limits extends ModelObject {
|
|
6
3
|
constructor() {
|
|
7
4
|
super(...arguments);
|
|
8
5
|
this.axes = null;
|
|
@@ -35,5 +32,4 @@ class Limits extends ModelObject_1.default {
|
|
|
35
32
|
this.zProbes = null;
|
|
36
33
|
}
|
|
37
34
|
}
|
|
38
|
-
|
|
39
|
-
exports.default = Limits;
|
|
35
|
+
export default Limits;
|
package/dist/messages/index.js
CHANGED
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.Message = exports.MessageType = void 0;
|
|
4
|
-
const ModelObject_1 = require("../ModelObject");
|
|
5
|
-
var MessageType;
|
|
1
|
+
import ModelObject from "../ModelObject";
|
|
2
|
+
export var MessageType;
|
|
6
3
|
(function (MessageType) {
|
|
7
4
|
MessageType[MessageType["success"] = 0] = "success";
|
|
8
5
|
MessageType[MessageType["warning"] = 1] = "warning";
|
|
9
6
|
MessageType[MessageType["error"] = 2] = "error";
|
|
10
|
-
})(MessageType || (
|
|
11
|
-
class Message extends
|
|
7
|
+
})(MessageType || (MessageType = {}));
|
|
8
|
+
export class Message extends ModelObject {
|
|
12
9
|
constructor() {
|
|
13
10
|
super(...arguments);
|
|
14
11
|
this.content = "";
|
|
@@ -23,5 +20,4 @@ class Message extends ModelObject_1.default {
|
|
|
23
20
|
}
|
|
24
21
|
}
|
|
25
22
|
}
|
|
26
|
-
|
|
27
|
-
exports.default = Message;
|
|
23
|
+
export default Message;
|
package/dist/move/Axis.js
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const DriverId_1 = require("./DriverId");
|
|
7
|
-
const Microstepping_1 = require("./Microstepping");
|
|
8
|
-
var AxisLetter;
|
|
1
|
+
import ModelObject from "../ModelObject";
|
|
2
|
+
import ModelCollection from "../ModelCollection";
|
|
3
|
+
import DriverId from "./DriverId";
|
|
4
|
+
import Microstepping from "./Microstepping";
|
|
5
|
+
export var AxisLetter;
|
|
9
6
|
(function (AxisLetter) {
|
|
10
7
|
AxisLetter["X"] = "X";
|
|
11
8
|
AxisLetter["Y"] = "Y";
|
|
@@ -44,22 +41,22 @@ var AxisLetter;
|
|
|
44
41
|
AxisLetter["y"] = "y";
|
|
45
42
|
AxisLetter["z"] = "z";
|
|
46
43
|
AxisLetter["none"] = "";
|
|
47
|
-
})(AxisLetter || (
|
|
48
|
-
class Axis extends
|
|
44
|
+
})(AxisLetter || (AxisLetter = {}));
|
|
45
|
+
export class Axis extends ModelObject {
|
|
49
46
|
constructor() {
|
|
50
47
|
super(...arguments);
|
|
51
48
|
this.acceleration = 0;
|
|
52
49
|
this.babystep = 0;
|
|
53
50
|
this.backlash = 0;
|
|
54
51
|
this.current = 0;
|
|
55
|
-
this.drivers = new
|
|
52
|
+
this.drivers = new ModelCollection(DriverId);
|
|
56
53
|
this.homed = false;
|
|
57
54
|
this.jerk = 15;
|
|
58
55
|
this.letter = AxisLetter.none;
|
|
59
56
|
this.machinePosition = null;
|
|
60
57
|
this.max = 200;
|
|
61
58
|
this.maxProbed = false;
|
|
62
|
-
this.microstepping = new
|
|
59
|
+
this.microstepping = new Microstepping();
|
|
63
60
|
this.min = 0;
|
|
64
61
|
this.minProbed = false;
|
|
65
62
|
this.percentCurrent = 100;
|
|
@@ -75,5 +72,4 @@ class Axis extends ModelObject_1.default {
|
|
|
75
72
|
this.workplaceOffsets = new Array();
|
|
76
73
|
}
|
|
77
74
|
}
|
|
78
|
-
|
|
79
|
-
exports.default = Axis;
|
|
75
|
+
export default Axis;
|
package/dist/move/DriverId.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import ModelObject
|
|
1
|
+
import ModelObject from "../ModelObject";
|
|
2
|
+
import type { IModelObject } from "../ModelObject";
|
|
2
3
|
export declare function isDriverId(value: any): value is DriverId;
|
|
3
4
|
export declare class DriverId extends ModelObject {
|
|
4
5
|
board: number | null;
|
package/dist/move/DriverId.js
CHANGED
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.DriverId = void 0;
|
|
4
|
-
exports.isDriverId = isDriverId;
|
|
5
|
-
const ModelObject_1 = require("../ModelObject");
|
|
6
|
-
function isDriverId(value) {
|
|
1
|
+
import ModelObject from "../ModelObject";
|
|
2
|
+
export function isDriverId(value) {
|
|
7
3
|
return (value instanceof Object) && value.board !== undefined && value.driver !== undefined;
|
|
8
4
|
}
|
|
9
|
-
class DriverId extends
|
|
5
|
+
export class DriverId extends ModelObject {
|
|
10
6
|
constructor() {
|
|
11
7
|
super(...arguments);
|
|
12
8
|
this.board = null;
|
|
@@ -45,5 +41,4 @@ class DriverId extends ModelObject_1.default {
|
|
|
45
41
|
return (this.board === null) ? this.driver.toString() : `${this.board}.${this.driver}`;
|
|
46
42
|
}
|
|
47
43
|
}
|
|
48
|
-
|
|
49
|
-
exports.default = DriverId;
|
|
44
|
+
export default DriverId;
|
package/dist/move/Extruder.d.ts
CHANGED
|
@@ -6,6 +6,11 @@ export declare class ExtruderNonlinear extends ModelObject {
|
|
|
6
6
|
b: number;
|
|
7
7
|
upperLimit: number;
|
|
8
8
|
}
|
|
9
|
+
export declare class ExtruderPressureAdvance extends ModelObject {
|
|
10
|
+
d: number | null;
|
|
11
|
+
k0: number;
|
|
12
|
+
k1: number;
|
|
13
|
+
}
|
|
9
14
|
export declare class Extruder extends ModelObject {
|
|
10
15
|
constructor();
|
|
11
16
|
acceleration: number;
|
|
@@ -21,6 +26,10 @@ export declare class Extruder extends ModelObject {
|
|
|
21
26
|
percentStstCurrent: number | null;
|
|
22
27
|
phaseStep: boolean | null;
|
|
23
28
|
position: number;
|
|
29
|
+
readonly pressAdv: ExtruderPressureAdvance;
|
|
30
|
+
/**
|
|
31
|
+
* @deprecated use pressAdv instead
|
|
32
|
+
*/
|
|
24
33
|
pressureAdvance: number;
|
|
25
34
|
printingJerk: number;
|
|
26
35
|
rawPosition: number;
|
package/dist/move/Extruder.js
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const DriverId_1 = require("./DriverId");
|
|
6
|
-
const Microstepping_1 = require("./Microstepping");
|
|
7
|
-
class ExtruderNonlinear extends ModelObject_1.default {
|
|
1
|
+
import ModelObject from "../ModelObject";
|
|
2
|
+
import DriverId from "./DriverId";
|
|
3
|
+
import Microstepping from "./Microstepping";
|
|
4
|
+
export class ExtruderNonlinear extends ModelObject {
|
|
8
5
|
constructor() {
|
|
9
6
|
super(...arguments);
|
|
10
7
|
this.a = 0;
|
|
@@ -12,8 +9,15 @@ class ExtruderNonlinear extends ModelObject_1.default {
|
|
|
12
9
|
this.upperLimit = 0.2;
|
|
13
10
|
}
|
|
14
11
|
}
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
export class ExtruderPressureAdvance extends ModelObject {
|
|
13
|
+
constructor() {
|
|
14
|
+
super(...arguments);
|
|
15
|
+
this.d = null;
|
|
16
|
+
this.k0 = 0;
|
|
17
|
+
this.k1 = 0;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
export class Extruder extends ModelObject {
|
|
17
21
|
constructor() {
|
|
18
22
|
super();
|
|
19
23
|
this.acceleration = 500;
|
|
@@ -23,19 +27,22 @@ class Extruder extends ModelObject_1.default {
|
|
|
23
27
|
this.filamentDiameter = 1.75;
|
|
24
28
|
this.factor = 1;
|
|
25
29
|
this.jerk = 15;
|
|
26
|
-
this.microstepping = new
|
|
30
|
+
this.microstepping = new Microstepping();
|
|
27
31
|
this.nonlinear = new ExtruderNonlinear();
|
|
28
32
|
this.percentCurrent = 100;
|
|
29
33
|
this.percentStstCurrent = null;
|
|
30
34
|
this.phaseStep = null;
|
|
31
35
|
this.position = 0;
|
|
36
|
+
this.pressAdv = new ExtruderPressureAdvance();
|
|
37
|
+
/**
|
|
38
|
+
* @deprecated use pressAdv instead
|
|
39
|
+
*/
|
|
32
40
|
this.pressureAdvance = 0;
|
|
33
41
|
this.printingJerk = 15;
|
|
34
42
|
this.rawPosition = 0;
|
|
35
43
|
this.speed = 100;
|
|
36
44
|
this.stepsPerMm = 420;
|
|
37
|
-
|
|
45
|
+
ModelObject.wrapModelProperty(this, "driver", DriverId);
|
|
38
46
|
}
|
|
39
47
|
}
|
|
40
|
-
|
|
41
|
-
exports.default = Extruder;
|
|
48
|
+
export default Extruder;
|