sort slice/prep function bundles
This commit is contained in:
parent
cb758bf4af
commit
17d293a810
2 changed files with 33 additions and 33 deletions
|
|
@ -685,31 +685,31 @@ export function prepEach(widget, settings, print, firstPoint, update) {
|
||||||
printPoint = firstPoint || origin;
|
printPoint = firstPoint || origin;
|
||||||
|
|
||||||
let ops = {
|
let ops = {
|
||||||
stock,
|
|
||||||
setTool,
|
|
||||||
setDrill,
|
|
||||||
setSpindle,
|
|
||||||
setTolerance,
|
|
||||||
setPrintPoint,
|
|
||||||
setLasering,
|
|
||||||
getPrintPoint() { return printPoint },
|
|
||||||
printPoint,
|
|
||||||
newLayer,
|
|
||||||
addGCode,
|
addGCode,
|
||||||
|
bounds,
|
||||||
camOut,
|
camOut,
|
||||||
polyEmit,
|
|
||||||
poly2polyEmit,
|
|
||||||
tip2tipEmit,
|
|
||||||
depthRoughPath,
|
|
||||||
depthOutlinePath,
|
depthOutlinePath,
|
||||||
sliceOutput,
|
depthRoughPath,
|
||||||
emitDrills,
|
emitDrills,
|
||||||
emitTrace,
|
emitTrace,
|
||||||
bounds,
|
getPrintPoint() { return printPoint },
|
||||||
|
lastPoint: () => { return lastPoint },
|
||||||
|
newLayer,
|
||||||
|
poly2polyEmit,
|
||||||
|
polyEmit,
|
||||||
|
printPoint,
|
||||||
|
setDrill,
|
||||||
|
setLasering,
|
||||||
|
setPrintPoint,
|
||||||
|
setSpindle,
|
||||||
|
setTolerance,
|
||||||
|
setTool,
|
||||||
|
sliceOutput,
|
||||||
|
stock,
|
||||||
|
tip2tipEmit,
|
||||||
zclear,
|
zclear,
|
||||||
zmax,
|
zmax,
|
||||||
zsafe,
|
zsafe,
|
||||||
lastPoint: () => { return lastPoint }
|
|
||||||
};
|
};
|
||||||
|
|
||||||
let opSum = 0;
|
let opSum = 0;
|
||||||
|
|
|
||||||
|
|
@ -158,31 +158,31 @@ export async function cam_slice(settings, widget, onupdate, ondone) {
|
||||||
let shadows = {};
|
let shadows = {};
|
||||||
let slicer;
|
let slicer;
|
||||||
let state = {
|
let state = {
|
||||||
settings,
|
addSlices,
|
||||||
widget,
|
|
||||||
bounds,
|
bounds,
|
||||||
tabs,
|
color,
|
||||||
cutTabs,
|
computeShadows,
|
||||||
cutPolys,
|
|
||||||
contourPolys,
|
contourPolys,
|
||||||
|
cutPolys,
|
||||||
|
cutTabs,
|
||||||
|
dark,
|
||||||
healPolys,
|
healPolys,
|
||||||
|
isIndexed,
|
||||||
|
ops: opList,
|
||||||
|
setAxisIndex,
|
||||||
|
settings,
|
||||||
shadowAt,
|
shadowAt,
|
||||||
slicer,
|
slicer,
|
||||||
addSlices,
|
tabs,
|
||||||
isIndexed,
|
unsafe,
|
||||||
setAxisIndex,
|
|
||||||
updateToolDiams,
|
|
||||||
updateSlicer,
|
updateSlicer,
|
||||||
computeShadows,
|
updateToolDiams,
|
||||||
|
widget,
|
||||||
zBottom,
|
zBottom,
|
||||||
|
zMax,
|
||||||
zThru,
|
zThru,
|
||||||
ztOff,
|
ztOff,
|
||||||
zMax,
|
zTop
|
||||||
zTop,
|
|
||||||
unsafe,
|
|
||||||
color,
|
|
||||||
dark,
|
|
||||||
ops: opList
|
|
||||||
};
|
};
|
||||||
let tracker = setSliceTracker({ rotation: 0 });
|
let tracker = setSliceTracker({ rotation: 0 });
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue