split cam ops

This commit is contained in:
Stewart Allen 2025-07-05 10:49:09 -04:00
commit 9a74e5aca8
17 changed files with 1993 additions and 1846 deletions

View file

@ -0,0 +1,17 @@
/** Copyright Stewart Allen <sa@grid.space> -- All Rights Reserved */
import { CamOp } from './op.js';
export class OpLaserOff extends CamOp {
constructor(state, op) {
super(state, op);
}
prepare(ops, progress) {
const { printPoint, zmax, camOut } = ops;
this.op.silent = true;
ops.addGCode(this.op.disable);
ops.setLasering(false);
camOut(printPoint.clone().setZ(zmax), 0);
}
}