sort slice/prep function bundles

This commit is contained in:
Stewart Allen 2025-11-18 00:41:10 -05:00
commit 17d293a810
2 changed files with 33 additions and 33 deletions

View file

@ -685,31 +685,31 @@ export function prepEach(widget, settings, print, firstPoint, update) {
printPoint = firstPoint || origin;
let ops = {
stock,
setTool,
setDrill,
setSpindle,
setTolerance,
setPrintPoint,
setLasering,
getPrintPoint() { return printPoint },
printPoint,
newLayer,
addGCode,
bounds,
camOut,
polyEmit,
poly2polyEmit,
tip2tipEmit,
depthRoughPath,
depthOutlinePath,
sliceOutput,
depthRoughPath,
emitDrills,
emitTrace,
bounds,
getPrintPoint() { return printPoint },
lastPoint: () => { return lastPoint },
newLayer,
poly2polyEmit,
polyEmit,
printPoint,
setDrill,
setLasering,
setPrintPoint,
setSpindle,
setTolerance,
setTool,
sliceOutput,
stock,
tip2tipEmit,
zclear,
zmax,
zsafe,
lastPoint: () => { return lastPoint }
};
let opSum = 0;

View file

@ -158,31 +158,31 @@ export async function cam_slice(settings, widget, onupdate, ondone) {
let shadows = {};
let slicer;
let state = {
settings,
widget,
addSlices,
bounds,
tabs,
cutTabs,
cutPolys,
color,
computeShadows,
contourPolys,
cutPolys,
cutTabs,
dark,
healPolys,
isIndexed,
ops: opList,
setAxisIndex,
settings,
shadowAt,
slicer,
addSlices,
isIndexed,
setAxisIndex,
updateToolDiams,
tabs,
unsafe,
updateSlicer,
computeShadows,
updateToolDiams,
widget,
zBottom,
zMax,
zThru,
ztOff,
zMax,
zTop,
unsafe,
color,
dark,
ops: opList
zTop
};
let tracker = setSliceTracker({ rotation: 0 });