@duet3d/objectmodel 3.4.0-b17 → 3.4.0-b18
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IModelObject } from "../../ModelObject";
|
|
2
2
|
import KinematicsBase, { KinematicsName } from "./KinematicsBase";
|
|
3
3
|
export declare class Kinematics extends KinematicsBase {
|
|
4
|
-
constructor();
|
|
4
|
+
constructor(name?: KinematicsName);
|
|
5
5
|
update(jsonElement: any): IModelObject | null;
|
|
6
6
|
}
|
|
7
7
|
export default Kinematics;
|
|
@@ -22,8 +22,8 @@ const HangprinterKinematics_1 = require("./HangprinterKinematics");
|
|
|
22
22
|
const ScaraKinematics_1 = require("./ScaraKinematics");
|
|
23
23
|
const PolarKinematics_1 = require("./PolarKinematics");
|
|
24
24
|
class Kinematics extends KinematicsBase_1.default {
|
|
25
|
-
constructor() {
|
|
26
|
-
super(
|
|
25
|
+
constructor(name = KinematicsBase_1.KinematicsName.unknown) {
|
|
26
|
+
super(name);
|
|
27
27
|
}
|
|
28
28
|
update(jsonElement) {
|
|
29
29
|
if (jsonElement === null) {
|
|
@@ -47,8 +47,9 @@ function getKinematics(name) {
|
|
|
47
47
|
case KinematicsBase_1.KinematicsName.markForged:
|
|
48
48
|
return new CoreKinematics_1.default(name);
|
|
49
49
|
case KinematicsBase_1.KinematicsName.delta:
|
|
50
|
-
case KinematicsBase_1.KinematicsName.rotaryDelta:
|
|
51
50
|
return new DeltaKinematics_1.default(name);
|
|
51
|
+
case KinematicsBase_1.KinematicsName.rotaryDelta:
|
|
52
|
+
return new Kinematics(name);
|
|
52
53
|
case KinematicsBase_1.KinematicsName.hangprinter:
|
|
53
54
|
return new HangprinterKinematics_1.default();
|
|
54
55
|
case KinematicsBase_1.KinematicsName.fiveBarScara:
|