normalize driver api
This commit is contained in:
parent
15ab91f192
commit
2f5cf932e8
9 changed files with 64 additions and 129 deletions
|
|
@ -14,7 +14,9 @@
|
|||
DBUG = BASE.debug,
|
||||
LASER = KIRI.driver.LASER = {
|
||||
slice,
|
||||
sliceRender,
|
||||
printSetup,
|
||||
printRender,
|
||||
exportGCode,
|
||||
exportSVG,
|
||||
exportDXF
|
||||
|
|
@ -51,9 +53,10 @@
|
|||
});
|
||||
};
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
function sliceRender(widget) {
|
||||
return KIRI.driver.CAM.sliceRender(widget);
|
||||
}
|
||||
|
||||
function sliceEmitObjects(print, slice, groups) {
|
||||
let start = newPoint(0,0,0);
|
||||
let process = print.settings.process;
|
||||
|
|
@ -455,4 +458,8 @@
|
|||
return lines.join('\n');
|
||||
};
|
||||
|
||||
function printRender(print) {
|
||||
return KIRI.driver.FDM.printRender(print, {aslines: true, nomoves: true});
|
||||
}
|
||||
|
||||
})();
|
||||
|
|
|
|||
Loading…
Reference in a new issue