checkpoint cam animation work

This commit is contained in:
Stewart Allen 2020-11-24 11:01:29 -05:00
commit b85607598b
5 changed files with 173 additions and 34 deletions

View file

@ -11,8 +11,16 @@
CAM = KIRI.driver.CAM;
class Tool {
constructor(settings, id) {
this.tool = settings.tools.filter(tool => tool.id === id)[0];
constructor(settings, id, number) {
if (number >= 0) {
this.tool = settings.tools.filter(tool => tool.number === number)[0];
} else {
this.tool = settings.tools.filter(tool => tool.id === id)[0];
}
}
getID() {
return this.tool.id;
}
getType() {
@ -95,6 +103,10 @@
}
this.profile = toolOffset;
this.profileDim = {
size: shaft_pix_float,
pix: profile_pix_iter
};
return this;
}
}