split dragknife out of laser and create new mode based on it. template for waterjet and wire-edm

This commit is contained in:
Stewart Allen 2024-06-09 11:00:53 -07:00
commit 85f48ef9b4
12 changed files with 137 additions and 56 deletions

View file

@ -14,7 +14,7 @@ const { driver, newSlice } = kiri;
const { polygons, newPoint } = base;
const POLY = polygons;
const LASER = driver.LASER = {
const DRIVER = driver.LASER = {
init,
slice,
prepare,
@ -181,9 +181,7 @@ async function prepare(widgets, settings, update) {
let device = settings.device,
process = settings.process,
print = self.worker.print = kiri.newPrint(settings, widgets),
knifeOn = process.knifeOn,
// knifeDepth = process.outputKnifeDepth,
// knifePasses = process.outputKnifePasses,
knifeOn = self.worker.mode === 'DRAG',
knifeTipOff = process.outputKnifeTip,
output = print.output = [],
totalSlices = 0,