@duet3d/objectmodel 3.7.0-alpha.1 → 3.7.0-alpha.11

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.
Files changed (110) hide show
  1. package/dist/ModelCollection.d.ts +1 -1
  2. package/dist/ModelCollection.js +10 -15
  3. package/dist/ModelDictionary.d.ts +1 -1
  4. package/dist/ModelDictionary.js +7 -12
  5. package/dist/ModelObject.js +8 -14
  6. package/dist/ModelSet.js +2 -6
  7. package/dist/ObjectModel.js +42 -46
  8. package/dist/boards/Driver.d.ts +13 -0
  9. package/dist/boards/Driver.js +24 -13
  10. package/dist/boards/directDisplay/DirectDisplayScreen.d.ts +1 -1
  11. package/dist/boards/directDisplay/DirectDisplayScreen.js +5 -9
  12. package/dist/boards/directDisplay/DirectDisplayScreenBase.js +4 -7
  13. package/dist/boards/directDisplay/DirectDisplayScreenST7567.d.ts +1 -1
  14. package/dist/boards/directDisplay/DirectDisplayScreenST7567.js +6 -10
  15. package/dist/boards/directDisplay/index.js +16 -35
  16. package/dist/boards/index.d.ts +2 -1
  17. package/dist/boards/index.js +23 -43
  18. package/dist/deprecations.json +18 -0
  19. package/dist/directories/index.js +3 -7
  20. package/dist/enums.json +301 -0
  21. package/dist/fans/index.d.ts +0 -1
  22. package/dist/fans/index.js +4 -10
  23. package/dist/heat/Heater.js +10 -14
  24. package/dist/heat/HeaterModel.js +4 -9
  25. package/dist/heat/HeaterMonitor.js +7 -11
  26. package/dist/heat/index.d.ts +8 -0
  27. package/dist/heat/index.js +17 -27
  28. package/dist/index.js +26 -43
  29. package/dist/inputs/CodeChannel.js +3 -6
  30. package/dist/inputs/Compatibility.js +3 -6
  31. package/dist/inputs/InputChannel.js +9 -13
  32. package/dist/inputs/index.js +3 -19
  33. package/dist/job/Build.js +6 -11
  34. package/dist/job/GCodeFileInfo.js +8 -12
  35. package/dist/job/ThumbnailInfo.js +5 -9
  36. package/dist/job/index.d.ts +4 -0
  37. package/dist/job/index.js +19 -35
  38. package/dist/ledStrips/index.d.ts +10 -0
  39. package/dist/ledStrips/index.js +16 -9
  40. package/dist/limits/index.js +3 -7
  41. package/dist/messages/index.js +5 -9
  42. package/dist/move/Axis.js +10 -14
  43. package/dist/move/DriverId.d.ts +2 -1
  44. package/dist/move/DriverId.js +4 -9
  45. package/dist/move/Extruder.d.ts +9 -0
  46. package/dist/move/Extruder.js +20 -13
  47. package/dist/move/InputShaping.js +5 -9
  48. package/dist/move/KeepoutZone.js +5 -10
  49. package/dist/move/Microstepping.js +3 -7
  50. package/dist/move/MotionSystem.d.ts +20 -0
  51. package/dist/move/MotionSystem.js +23 -0
  52. package/dist/move/MoveCalibration.js +4 -9
  53. package/dist/move/MoveCompensation.js +10 -16
  54. package/dist/move/index.d.ts +19 -1
  55. package/dist/move/index.js +51 -55
  56. package/dist/move/kinematics/CoreKinematics.d.ts +1 -1
  57. package/dist/move/kinematics/CoreKinematics.js +5 -9
  58. package/dist/move/kinematics/DeltaKinematics.d.ts +2 -1
  59. package/dist/move/kinematics/DeltaKinematics.js +9 -14
  60. package/dist/move/kinematics/HangprinterKinematics.d.ts +1 -1
  61. package/dist/move/kinematics/HangprinterKinematics.js +6 -10
  62. package/dist/move/kinematics/KinematicsBase.js +8 -15
  63. package/dist/move/kinematics/PolarKinematics.d.ts +1 -1
  64. package/dist/move/kinematics/PolarKinematics.js +6 -10
  65. package/dist/move/kinematics/ScaraKinematics.d.ts +1 -1
  66. package/dist/move/kinematics/ScaraKinematics.js +5 -9
  67. package/dist/move/kinematics/index.d.ts +1 -1
  68. package/dist/move/kinematics/index.js +35 -54
  69. package/dist/network/NetworkInterface.d.ts +1 -1
  70. package/dist/network/NetworkInterface.js +12 -16
  71. package/dist/network/index.js +12 -30
  72. package/dist/plugins/PluginManifest.d.ts +2 -1
  73. package/dist/plugins/PluginManifest.js +7 -11
  74. package/dist/plugins/index.js +4 -22
  75. package/dist/sbc/CPU.js +3 -7
  76. package/dist/sbc/Memory.js +3 -7
  77. package/dist/sbc/dsf/CommunicationMethod.d.ts +5 -0
  78. package/dist/sbc/dsf/CommunicationMethod.js +6 -0
  79. package/dist/sbc/dsf/HttpEndpoint.js +5 -9
  80. package/dist/sbc/dsf/UserSession.js +7 -11
  81. package/dist/sbc/dsf/index.d.ts +3 -0
  82. package/dist/sbc/dsf/index.js +12 -27
  83. package/dist/sbc/index.js +12 -30
  84. package/dist/sensors/AnalogSensor.d.ts +2 -0
  85. package/dist/sensors/AnalogSensor.js +9 -11
  86. package/dist/sensors/Endstop.js +5 -9
  87. package/dist/sensors/FilamentMonitors/Duet3DFilamentMonitor.js +4 -8
  88. package/dist/sensors/FilamentMonitors/FilamentMonitorBase.js +9 -13
  89. package/dist/sensors/FilamentMonitors/LaserFilamentMonitor.d.ts +3 -2
  90. package/dist/sensors/FilamentMonitors/LaserFilamentMonitor.js +12 -18
  91. package/dist/sensors/FilamentMonitors/PulsedFilamentMonitor.d.ts +2 -1
  92. package/dist/sensors/FilamentMonitors/PulsedFilamentMonitor.js +10 -16
  93. package/dist/sensors/FilamentMonitors/RotatingMagnetFilamentMonitor.d.ts +3 -2
  94. package/dist/sensors/FilamentMonitors/RotatingMagnetFilamentMonitor.js +12 -18
  95. package/dist/sensors/FilamentMonitors/index.d.ts +1 -1
  96. package/dist/sensors/FilamentMonitors/index.js +18 -37
  97. package/dist/sensors/Probe.js +7 -12
  98. package/dist/sensors/index.js +18 -37
  99. package/dist/spindles/index.js +7 -11
  100. package/dist/state/MachineStatus.js +3 -6
  101. package/dist/state/MessageBox.d.ts +2 -1
  102. package/dist/state/MessageBox.js +5 -9
  103. package/dist/state/RestorePoint.js +3 -7
  104. package/dist/state/index.d.ts +9 -0
  105. package/dist/state/index.js +32 -44
  106. package/dist/tools/ToolRetraction.js +3 -7
  107. package/dist/tools/index.d.ts +1 -1
  108. package/dist/tools/index.js +8 -12
  109. package/dist/volumes/index.js +3 -7
  110. package/package.json +16 -5
@@ -1,8 +1,5 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.InputShaping = exports.InputShapingType = void 0;
4
- const ModelObject_1 = require("../ModelObject");
5
- var InputShapingType;
1
+ import ModelObject from "../ModelObject";
2
+ export var InputShapingType;
6
3
  (function (InputShapingType) {
7
4
  InputShapingType["none"] = "none";
8
5
  InputShapingType["mzv"] = "mzv";
@@ -12,8 +9,8 @@ var InputShapingType;
12
9
  InputShapingType["ei2"] = "ei2";
13
10
  InputShapingType["ei3"] = "ei3";
14
11
  InputShapingType["custom"] = "custom";
15
- })(InputShapingType || (exports.InputShapingType = InputShapingType = {}));
16
- class InputShaping extends ModelObject_1.default {
12
+ })(InputShapingType || (InputShapingType = {}));
13
+ export class InputShaping extends ModelObject {
17
14
  constructor() {
18
15
  super(...arguments);
19
16
  this.amplitudes = [];
@@ -23,5 +20,4 @@ class InputShaping extends ModelObject_1.default {
23
20
  this.type = InputShapingType.none;
24
21
  }
25
22
  }
26
- exports.InputShaping = InputShaping;
27
- exports.default = InputShaping;
23
+ export default InputShaping;
@@ -1,21 +1,16 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.KeepoutZoneCoordinates = void 0;
4
- const ModelCollection_1 = require("../ModelCollection");
5
- const ModelObject_1 = require("../ModelObject");
6
- class KeepoutZoneCoordinates extends ModelObject_1.ModelObject {
1
+ import { ModelCollection } from "../ModelCollection";
2
+ import { ModelObject } from "../ModelObject";
3
+ export class KeepoutZoneCoordinates extends ModelObject {
7
4
  constructor() {
8
5
  super(...arguments);
9
6
  this.max = 0;
10
7
  this.min = 0;
11
8
  }
12
9
  }
13
- exports.KeepoutZoneCoordinates = KeepoutZoneCoordinates;
14
- class KeepoutZone extends ModelObject_1.ModelObject {
10
+ export default class KeepoutZone extends ModelObject {
15
11
  constructor() {
16
12
  super(...arguments);
17
13
  this.active = true;
18
- this.coords = new ModelCollection_1.ModelCollection(KeepoutZoneCoordinates);
14
+ this.coords = new ModelCollection(KeepoutZoneCoordinates);
19
15
  }
20
16
  }
21
- exports.default = KeepoutZone;
@@ -1,13 +1,9 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Microstepping = void 0;
4
- const ModelObject_1 = require("../ModelObject");
5
- class Microstepping extends ModelObject_1.default {
1
+ import ModelObject from "../ModelObject";
2
+ export class Microstepping extends ModelObject {
6
3
  constructor() {
7
4
  super(...arguments);
8
5
  this.interpolated = false;
9
6
  this.value = 16;
10
7
  }
11
8
  }
12
- exports.Microstepping = Microstepping;
13
- exports.default = Microstepping;
9
+ export default Microstepping;
@@ -0,0 +1,20 @@
1
+ import ModelObject from "../ModelObject";
2
+ import ModelCollection from "../ModelCollection";
3
+ import RestorePoint from "../state/RestorePoint";
4
+ import { CurrentMove, MoveRotation } from ".";
5
+ export declare class MotionSystem extends ModelObject {
6
+ readonly currentMove: CurrentMove;
7
+ currentObject: number | null;
8
+ currentTool: number;
9
+ nextTool: number;
10
+ previousTool: number;
11
+ printingAcceleration: number;
12
+ readonly restorePoints: ModelCollection<RestorePoint>;
13
+ readonly rotation: MoveRotation;
14
+ speedFactor: number;
15
+ travelAcceleration: number;
16
+ userPosition: Array<number>;
17
+ virtualEPos: number;
18
+ workplaceNumber: number;
19
+ }
20
+ export default MotionSystem;
@@ -0,0 +1,23 @@
1
+ import ModelObject from "../ModelObject";
2
+ import ModelCollection from "../ModelCollection";
3
+ import RestorePoint from "../state/RestorePoint";
4
+ import { CurrentMove, MoveRotation } from ".";
5
+ export class MotionSystem extends ModelObject {
6
+ constructor() {
7
+ super(...arguments);
8
+ this.currentMove = new CurrentMove();
9
+ this.currentObject = null;
10
+ this.currentTool = -1;
11
+ this.nextTool = -1;
12
+ this.previousTool = -1;
13
+ this.printingAcceleration = 10000;
14
+ this.restorePoints = new ModelCollection(RestorePoint);
15
+ this.rotation = new MoveRotation();
16
+ this.speedFactor = 1;
17
+ this.travelAcceleration = 10000;
18
+ this.userPosition = [];
19
+ this.virtualEPos = 0;
20
+ this.workplaceNumber = 0;
21
+ }
22
+ }
23
+ export default MotionSystem;
@@ -1,16 +1,12 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MoveCalibration = exports.MoveDeviations = void 0;
4
- const ModelObject_1 = require("../ModelObject");
5
- class MoveDeviations extends ModelObject_1.default {
1
+ import ModelObject from "../ModelObject";
2
+ export class MoveDeviations extends ModelObject {
6
3
  constructor() {
7
4
  super(...arguments);
8
5
  this.deviation = 0;
9
6
  this.mean = 0;
10
7
  }
11
8
  }
12
- exports.MoveDeviations = MoveDeviations;
13
- class MoveCalibration extends ModelObject_1.default {
9
+ export class MoveCalibration extends ModelObject {
14
10
  constructor() {
15
11
  super(...arguments);
16
12
  this.final = new MoveDeviations();
@@ -18,5 +14,4 @@ class MoveCalibration extends ModelObject_1.default {
18
14
  this.numFactors = 0;
19
15
  }
20
16
  }
21
- exports.MoveCalibration = MoveCalibration;
22
- exports.default = MoveCalibration;
17
+ export default MoveCalibration;
@@ -1,9 +1,6 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MoveCompensation = exports.MoveCompensationType = exports.Skew = exports.ProbeGrid = void 0;
4
- const ModelObject_1 = require("../ModelObject");
5
- const MoveCalibration_1 = require("./MoveCalibration");
6
- class ProbeGrid extends ModelObject_1.default {
1
+ import ModelObject from "../ModelObject";
2
+ import { MoveDeviations } from "./MoveCalibration";
3
+ export class ProbeGrid extends ModelObject {
7
4
  constructor() {
8
5
  super(...arguments);
9
6
  this.axes = ['X', 'Y'];
@@ -13,8 +10,7 @@ class ProbeGrid extends ModelObject_1.default {
13
10
  this.spacings = [0, 0];
14
11
  }
15
12
  }
16
- exports.ProbeGrid = ProbeGrid;
17
- class Skew extends ModelObject_1.default {
13
+ export class Skew extends ModelObject {
18
14
  constructor() {
19
15
  super(...arguments);
20
16
  this.compensateXY = true;
@@ -23,13 +19,12 @@ class Skew extends ModelObject_1.default {
23
19
  this.tanYZ = 0;
24
20
  }
25
21
  }
26
- exports.Skew = Skew;
27
- var MoveCompensationType;
22
+ export var MoveCompensationType;
28
23
  (function (MoveCompensationType) {
29
24
  MoveCompensationType["none"] = "none";
30
25
  MoveCompensationType["mesh"] = "mesh";
31
- })(MoveCompensationType || (exports.MoveCompensationType = MoveCompensationType = {}));
32
- class MoveCompensation extends ModelObject_1.default {
26
+ })(MoveCompensationType || (MoveCompensationType = {}));
27
+ export class MoveCompensation extends ModelObject {
33
28
  constructor() {
34
29
  super();
35
30
  this.fadeHeight = null;
@@ -39,9 +34,8 @@ class MoveCompensation extends ModelObject_1.default {
39
34
  this.probeGrid = new ProbeGrid();
40
35
  this.skew = new Skew();
41
36
  this.type = MoveCompensationType.none;
42
- ModelObject_1.default.wrapModelProperty(this, "liveGrid", ProbeGrid);
43
- ModelObject_1.default.wrapModelProperty(this, "meshDeviation", MoveCalibration_1.MoveDeviations);
37
+ ModelObject.wrapModelProperty(this, "liveGrid", ProbeGrid);
38
+ ModelObject.wrapModelProperty(this, "meshDeviation", MoveDeviations);
44
39
  }
45
40
  }
46
- exports.MoveCompensation = MoveCompensation;
47
- exports.default = MoveCompensation;
41
+ export default MoveCompensation;
@@ -4,6 +4,7 @@ import Axis from "./Axis";
4
4
  import Extruder from "./Extruder";
5
5
  import InputShaping from "./InputShaping";
6
6
  import KeepoutZone from "./KeepoutZone";
7
+ import MotionSystem from "./MotionSystem";
7
8
  import MoveCalibration from "./MoveCalibration";
8
9
  import MoveCompensation from "./MoveCompensation";
9
10
  import Kinematics from "./kinematics";
@@ -40,14 +41,30 @@ export declare class Move extends ModelObject {
40
41
  kinematics: Kinematics;
41
42
  limitAxes: boolean;
42
43
  noMovesBeforeHoming: boolean;
44
+ readonly motionSystems: ModelCollection<MotionSystem>;
45
+ /**
46
+ * @deprecated use motionSystems[].printingAcceleration instead
47
+ */
43
48
  printingAcceleration: number;
44
49
  readonly queue: ModelCollection<MoveQueueItem>;
50
+ /**
51
+ * @deprecated use motionSystems[].rotation instead
52
+ */
45
53
  readonly rotation: MoveRotation;
46
54
  readonly shaping: InputShaping;
47
55
  speedFactor: number;
56
+ /**
57
+ * @deprecated use motionSystems[].travelAcceleration instead
58
+ */
48
59
  travelAcceleration: number;
49
- usingSCurve: boolean | null;
60
+ usingSCurve: boolean;
61
+ /**
62
+ * @deprecated use motionSystems[].virtualEPos instead
63
+ */
50
64
  virtualEPos: number;
65
+ /**
66
+ * @deprecated use motionSystems[].workplaceNumber instead
67
+ */
51
68
  workplaceNumber: number;
52
69
  }
53
70
  export default Move;
@@ -59,4 +76,5 @@ export * from "./InputShaping";
59
76
  export * from "./KeepoutZone";
60
77
  export * from "./Microstepping";
61
78
  export * from "./MoveCalibration";
79
+ export * from "./MotionSystem";
62
80
  export * from "./MoveCompensation";
@@ -1,30 +1,14 @@
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.Move = exports.MoveRotation = exports.MoveQueueItem = exports.MotorsIdleControl = exports.CurrentMove = void 0;
18
- const ModelObject_1 = require("../ModelObject");
19
- const ModelCollection_1 = require("../ModelCollection");
20
- const Axis_1 = require("./Axis");
21
- const Extruder_1 = require("./Extruder");
22
- const InputShaping_1 = require("./InputShaping");
23
- const KeepoutZone_1 = require("./KeepoutZone");
24
- const MoveCalibration_1 = require("./MoveCalibration");
25
- const MoveCompensation_1 = require("./MoveCompensation");
26
- const kinematics_1 = require("./kinematics");
27
- class CurrentMove extends ModelObject_1.default {
1
+ import ModelObject from "../ModelObject";
2
+ import ModelCollection from "../ModelCollection";
3
+ import Axis from "./Axis";
4
+ import Extruder from "./Extruder";
5
+ import InputShaping from "./InputShaping";
6
+ import KeepoutZone from "./KeepoutZone";
7
+ import MotionSystem from "./MotionSystem";
8
+ import MoveCalibration from "./MoveCalibration";
9
+ import MoveCompensation from "./MoveCompensation";
10
+ import Kinematics, { CoreKinematics, KinematicsName } from "./kinematics";
11
+ export class CurrentMove extends ModelObject {
28
12
  constructor() {
29
13
  super(...arguments);
30
14
  this.acceleration = 0;
@@ -35,65 +19,77 @@ class CurrentMove extends ModelObject_1.default {
35
19
  this.topSpeed = 0;
36
20
  }
37
21
  }
38
- exports.CurrentMove = CurrentMove;
39
- class MotorsIdleControl extends ModelObject_1.default {
22
+ export class MotorsIdleControl extends ModelObject {
40
23
  constructor() {
41
24
  super(...arguments);
42
25
  this.factor = 0.3;
43
26
  this.timeout = 30;
44
27
  }
45
28
  }
46
- exports.MotorsIdleControl = MotorsIdleControl;
47
- class MoveQueueItem extends ModelObject_1.default {
29
+ export class MoveQueueItem extends ModelObject {
48
30
  constructor() {
49
31
  super(...arguments);
50
32
  this.gracePeriod = 0;
51
33
  this.length = 0;
52
34
  }
53
35
  }
54
- exports.MoveQueueItem = MoveQueueItem;
55
- class MoveRotation extends ModelObject_1.default {
36
+ export class MoveRotation extends ModelObject {
56
37
  constructor() {
57
38
  super(...arguments);
58
39
  this.angle = 0;
59
40
  this.centre = [0, 0];
60
41
  }
61
42
  }
62
- exports.MoveRotation = MoveRotation;
63
- class Move extends ModelObject_1.default {
43
+ export class Move extends ModelObject {
64
44
  constructor() {
65
45
  super(...arguments);
66
46
  this.accelerationTime = null;
67
- this.axes = new ModelCollection_1.default(Axis_1.default);
47
+ this.axes = new ModelCollection(Axis);
68
48
  this.backlashFactor = 10;
69
- this.calibration = new MoveCalibration_1.default();
70
- this.compensation = new MoveCompensation_1.default();
49
+ this.calibration = new MoveCalibration();
50
+ this.compensation = new MoveCompensation();
71
51
  this.currentMove = new CurrentMove();
72
- this.extruders = new ModelCollection_1.default(Extruder_1.default);
52
+ this.extruders = new ModelCollection(Extruder);
73
53
  this.idle = new MotorsIdleControl();
74
- this.keepout = new ModelCollection_1.default(KeepoutZone_1.default);
75
- this.kinematics = new kinematics_1.CoreKinematics(kinematics_1.KinematicsName.cartesian);
54
+ this.keepout = new ModelCollection(KeepoutZone);
55
+ this.kinematics = new CoreKinematics(KinematicsName.cartesian);
76
56
  this.limitAxes = true;
77
57
  this.noMovesBeforeHoming = true;
58
+ this.motionSystems = new ModelCollection(MotionSystem);
59
+ /**
60
+ * @deprecated use motionSystems[].printingAcceleration instead
61
+ */
78
62
  this.printingAcceleration = 10000;
79
- this.queue = new ModelCollection_1.default(MoveQueueItem);
63
+ this.queue = new ModelCollection(MoveQueueItem);
64
+ /**
65
+ * @deprecated use motionSystems[].rotation instead
66
+ */
80
67
  this.rotation = new MoveRotation();
81
- this.shaping = new InputShaping_1.default();
68
+ this.shaping = new InputShaping();
82
69
  this.speedFactor = 1;
70
+ /**
71
+ * @deprecated use motionSystems[].travelAcceleration instead
72
+ */
83
73
  this.travelAcceleration = 10000;
84
- this.usingSCurve = null;
74
+ this.usingSCurve = false;
75
+ /**
76
+ * @deprecated use motionSystems[].virtualEPos instead
77
+ */
85
78
  this.virtualEPos = 0;
79
+ /**
80
+ * @deprecated use motionSystems[].workplaceNumber instead
81
+ */
86
82
  this.workplaceNumber = 0;
87
83
  }
88
84
  }
89
- exports.Move = Move;
90
- exports.default = Move;
91
- __exportStar(require("./kinematics"), exports);
92
- __exportStar(require("./Axis"), exports);
93
- __exportStar(require("./DriverId"), exports);
94
- __exportStar(require("./Extruder"), exports);
95
- __exportStar(require("./InputShaping"), exports);
96
- __exportStar(require("./KeepoutZone"), exports);
97
- __exportStar(require("./Microstepping"), exports);
98
- __exportStar(require("./MoveCalibration"), exports);
99
- __exportStar(require("./MoveCompensation"), exports);
85
+ export default Move;
86
+ export * from "./kinematics";
87
+ export * from "./Axis";
88
+ export * from "./DriverId";
89
+ export * from "./Extruder";
90
+ export * from "./InputShaping";
91
+ export * from "./KeepoutZone";
92
+ export * from "./Microstepping";
93
+ export * from "./MoveCalibration";
94
+ export * from "./MotionSystem";
95
+ export * from "./MoveCompensation";
@@ -1,4 +1,4 @@
1
- import { IModelObject } from "../../ModelObject";
1
+ import type { IModelObject } from "../../ModelObject";
2
2
  import { KinematicsName, ZLeadscrewKinematics } from "./KinematicsBase";
3
3
  export declare class CoreKinematics extends ZLeadscrewKinematics {
4
4
  constructor(name: KinematicsName);
@@ -1,9 +1,6 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CoreKinematics = void 0;
4
- const KinematicsBase_1 = require("./KinematicsBase");
5
- const index_1 = require("./index");
6
- class CoreKinematics extends KinematicsBase_1.ZLeadscrewKinematics {
1
+ import { KinematicsName, ZLeadscrewKinematics } from "./KinematicsBase";
2
+ import { getKinematics } from "./index";
3
+ export class CoreKinematics extends ZLeadscrewKinematics {
7
4
  constructor(name) {
8
5
  super(name);
9
6
  this.forwardMatrix = [
@@ -22,10 +19,9 @@ class CoreKinematics extends KinematicsBase_1.ZLeadscrewKinematics {
22
19
  throw new Error("Kinematics must not be null");
23
20
  }
24
21
  if (typeof jsonElement.name === "string" && this.name !== jsonElement.name) {
25
- return (0, index_1.getKinematics)(jsonElement.name).update(jsonElement);
22
+ return getKinematics(jsonElement.name).update(jsonElement);
26
23
  }
27
24
  return super.update(jsonElement);
28
25
  }
29
26
  }
30
- exports.CoreKinematics = CoreKinematics;
31
- exports.default = CoreKinematics;
27
+ export default CoreKinematics;
@@ -1,5 +1,6 @@
1
1
  import ModelCollection from "../../ModelCollection";
2
- import ModelObject, { IModelObject } from "../../ModelObject";
2
+ import ModelObject from "../../ModelObject";
3
+ import type { IModelObject } from "../../ModelObject";
3
4
  import KinematicsBase from "./KinematicsBase";
4
5
  export declare class DeltaTower extends ModelObject {
5
6
  angleCorrection: number;
@@ -1,11 +1,8 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DeltaKinematics = exports.DeltaTower = void 0;
4
- const ModelCollection_1 = require("../../ModelCollection");
5
- const ModelObject_1 = require("../../ModelObject");
6
- const KinematicsBase_1 = require("./KinematicsBase");
7
- const index_1 = require("./index");
8
- class DeltaTower extends ModelObject_1.default {
1
+ import ModelCollection, { initCollection } from "../../ModelCollection";
2
+ import ModelObject from "../../ModelObject";
3
+ import KinematicsBase from "./KinematicsBase";
4
+ import { getKinematics } from "./index";
5
+ export class DeltaTower extends ModelObject {
9
6
  constructor() {
10
7
  super(...arguments);
11
8
  this.angleCorrection = 0;
@@ -15,14 +12,13 @@ class DeltaTower extends ModelObject_1.default {
15
12
  this.yPos = 0;
16
13
  }
17
14
  }
18
- exports.DeltaTower = DeltaTower;
19
- class DeltaKinematics extends KinematicsBase_1.default {
15
+ export class DeltaKinematics extends KinematicsBase {
20
16
  constructor() {
21
17
  super(...arguments);
22
18
  this.deltaRadius = 0;
23
19
  this.homedHeight = 0;
24
20
  this.printRadius = 0;
25
- this.towers = (0, ModelCollection_1.initCollection)(DeltaTower, [{}, {}, {}]);
21
+ this.towers = initCollection(DeltaTower, [{}, {}, {}]);
26
22
  this.xTilt = 0;
27
23
  this.yTilt = 0;
28
24
  }
@@ -31,10 +27,9 @@ class DeltaKinematics extends KinematicsBase_1.default {
31
27
  throw new Error("Kinematics must not be null");
32
28
  }
33
29
  if (typeof jsonElement.name === "string" && this.name !== jsonElement.name) {
34
- return (0, index_1.getKinematics)(jsonElement.name).update(jsonElement);
30
+ return getKinematics(jsonElement.name).update(jsonElement);
35
31
  }
36
32
  return super.update(jsonElement);
37
33
  }
38
34
  }
39
- exports.DeltaKinematics = DeltaKinematics;
40
- exports.default = DeltaKinematics;
35
+ export default DeltaKinematics;
@@ -1,4 +1,4 @@
1
- import { IModelObject } from "../../ModelObject";
1
+ import type { IModelObject } from "../../ModelObject";
2
2
  import KinematicsBase from "./KinematicsBase";
3
3
  export declare class HangprinterKinematics extends KinematicsBase {
4
4
  anchors: Array<Array<number>>;
@@ -1,11 +1,8 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.HangprinterKinematics = void 0;
4
- const KinematicsBase_1 = require("./KinematicsBase");
5
- const index_1 = require("./index");
6
- class HangprinterKinematics extends KinematicsBase_1.default {
1
+ import KinematicsBase, { KinematicsName } from "./KinematicsBase";
2
+ import { getKinematics } from "./index";
3
+ export class HangprinterKinematics extends KinematicsBase {
7
4
  constructor() {
8
- super(KinematicsBase_1.KinematicsName.hangprinter);
5
+ super(KinematicsName.hangprinter);
9
6
  this.anchors = [
10
7
  [0, -2000, -100],
11
8
  [2000, 1000, -100],
@@ -19,10 +16,9 @@ class HangprinterKinematics extends KinematicsBase_1.default {
19
16
  throw new Error("Kinematics must not be null");
20
17
  }
21
18
  if (typeof jsonElement.name === "string" && this.name !== jsonElement.name) {
22
- return (0, index_1.getKinematics)(jsonElement.name).update(jsonElement);
19
+ return getKinematics(jsonElement.name).update(jsonElement);
23
20
  }
24
21
  return super.update(jsonElement);
25
22
  }
26
23
  }
27
- exports.HangprinterKinematics = HangprinterKinematics;
28
- exports.default = HangprinterKinematics;
24
+ export default HangprinterKinematics;
@@ -1,8 +1,5 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ZLeadscrewKinematics = exports.TiltCorrection = exports.KinematicsBase = exports.MoveSegmentation = exports.KinematicsName = void 0;
4
- const ModelObject_1 = require("../../ModelObject");
5
- var KinematicsName;
1
+ import ModelObject from "../../ModelObject";
2
+ export var KinematicsName;
6
3
  (function (KinematicsName) {
7
4
  KinematicsName["cartesian"] = "cartesian";
8
5
  KinematicsName["coreXY"] = "coreXY";
@@ -17,25 +14,23 @@ var KinematicsName;
17
14
  KinematicsName["rotaryDelta"] = "rotaryDelta";
18
15
  KinematicsName["scara"] = "scara";
19
16
  KinematicsName["unknown"] = "unknown";
20
- })(KinematicsName || (exports.KinematicsName = KinematicsName = {}));
21
- class MoveSegmentation extends ModelObject_1.default {
17
+ })(KinematicsName || (KinematicsName = {}));
18
+ export class MoveSegmentation extends ModelObject {
22
19
  constructor() {
23
20
  super(...arguments);
24
21
  this.segmentsPerSec = 0;
25
22
  this.minSegmentLength = 0;
26
23
  }
27
24
  }
28
- exports.MoveSegmentation = MoveSegmentation;
29
- class KinematicsBase extends ModelObject_1.default {
25
+ export class KinematicsBase extends ModelObject {
30
26
  constructor(name) {
31
27
  super();
32
28
  this.segmentation = new MoveSegmentation();
33
29
  this.name = name;
34
30
  }
35
31
  }
36
- exports.KinematicsBase = KinematicsBase;
37
- exports.default = KinematicsBase;
38
- class TiltCorrection extends ModelObject_1.default {
32
+ export default KinematicsBase;
33
+ export class TiltCorrection extends ModelObject {
39
34
  constructor() {
40
35
  super(...arguments);
41
36
  this.correctionFactor = 0;
@@ -46,11 +41,9 @@ class TiltCorrection extends ModelObject_1.default {
46
41
  this.screwY = [];
47
42
  }
48
43
  }
49
- exports.TiltCorrection = TiltCorrection;
50
- class ZLeadscrewKinematics extends KinematicsBase {
44
+ export class ZLeadscrewKinematics extends KinematicsBase {
51
45
  constructor() {
52
46
  super(...arguments);
53
47
  this.tiltCorrection = new TiltCorrection();
54
48
  }
55
49
  }
56
- exports.ZLeadscrewKinematics = ZLeadscrewKinematics;
@@ -1,4 +1,4 @@
1
- import { IModelObject } from "../../ModelObject";
1
+ import type { IModelObject } from "../../ModelObject";
2
2
  import KinematicsBase from "./KinematicsBase";
3
3
  export declare class PolarKinematics extends KinematicsBase {
4
4
  constructor();
@@ -1,11 +1,8 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PolarKinematics = void 0;
4
- const KinematicsBase_1 = require("./KinematicsBase");
5
- const index_1 = require("./index");
6
- class PolarKinematics extends KinematicsBase_1.default {
1
+ import KinematicsBase, { KinematicsName } from "./KinematicsBase";
2
+ import { getKinematics } from "./index";
3
+ export class PolarKinematics extends KinematicsBase {
7
4
  constructor() {
8
- super(KinematicsBase_1.KinematicsName.polar);
5
+ super(KinematicsName.polar);
9
6
  this.radiusHomed = 0;
10
7
  this.radiusMax = 0;
11
8
  this.radiusMin = 0;
@@ -17,10 +14,9 @@ class PolarKinematics extends KinematicsBase_1.default {
17
14
  throw new Error("Kinematics must not be null");
18
15
  }
19
16
  if (typeof jsonElement.name === "string" && this.name !== jsonElement.name) {
20
- return (0, index_1.getKinematics)(jsonElement.name).update(jsonElement);
17
+ return getKinematics(jsonElement.name).update(jsonElement);
21
18
  }
22
19
  return super.update(jsonElement);
23
20
  }
24
21
  }
25
- exports.PolarKinematics = PolarKinematics;
26
- exports.default = PolarKinematics;
22
+ export default PolarKinematics;
@@ -1,4 +1,4 @@
1
- import { IModelObject } from "../../ModelObject";
1
+ import type { IModelObject } from "../../ModelObject";
2
2
  import { ZLeadscrewKinematics } from "./KinematicsBase";
3
3
  export declare class ScaraKinematics extends ZLeadscrewKinematics {
4
4
  crosstalk: number[];
@@ -1,9 +1,6 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ScaraKinematics = void 0;
4
- const KinematicsBase_1 = require("./KinematicsBase");
5
- const index_1 = require("./index");
6
- class ScaraKinematics extends KinematicsBase_1.ZLeadscrewKinematics {
1
+ import { ZLeadscrewKinematics } from "./KinematicsBase";
2
+ import { getKinematics } from "./index";
3
+ export class ScaraKinematics extends ZLeadscrewKinematics {
7
4
  constructor() {
8
5
  super(...arguments);
9
6
  this.crosstalk = [0, 0, 0];
@@ -20,10 +17,9 @@ class ScaraKinematics extends KinematicsBase_1.ZLeadscrewKinematics {
20
17
  throw new Error("Kinematics must not be null");
21
18
  }
22
19
  if (typeof jsonElement.name === "string" && this.name !== jsonElement.name) {
23
- return (0, index_1.getKinematics)(jsonElement.name).update(jsonElement);
20
+ return getKinematics(jsonElement.name).update(jsonElement);
24
21
  }
25
22
  return super.update(jsonElement);
26
23
  }
27
24
  }
28
- exports.ScaraKinematics = ScaraKinematics;
29
- exports.default = ScaraKinematics;
25
+ export default ScaraKinematics;