UNPKG

snapmaker-luban-engine

Version:

40 lines (31 loc) 1.66 kB
"use strict"; var _module$exports; function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } var _require = require("./slicer.js"), Slicer = _require.Slicer, SLICE_LASER = _require.SLICE_LASER, SLICE_CNC = _require.SLICE_CNC, MODEL_SUPPORT = _require.MODEL_SUPPORT; var getpath = require("./getpath.js"); var slice = function slice(type, inputPath, outputPath, settingsPath) { var slice = new Slicer(type, inputPath, outputPath, settingsPath); return slice; }; var sliceLaser = function sliceLaser(inputPath, outputPath, settingsPath) { var slice = new Slicer(SLICE_LASER, inputPath, outputPath, settingsPath); return slice; }; var sliceCNC = function sliceCNC(inputPath, outputPath, settingsPath) { var slice = new Slicer(SLICE_CNC, inputPath, outputPath, settingsPath); return slice; }; var modelSupport = function modelSupport(inputPath, outputPath, settingsPath) { var slice = new Slicer(MODEL_SUPPORT, inputPath, outputPath, settingsPath); return slice; }; module.exports = (_module$exports = { SLICE_LASER: SLICE_LASER, SLICE_CNC: SLICE_CNC, slice: slice, sliceLaser: sliceLaser }, _defineProperty(_module$exports, "sliceLaser", sliceLaser), _defineProperty(_module$exports, "sliceCNC", sliceCNC), _defineProperty(_module$exports, "sliceCNC", sliceCNC), _defineProperty(_module$exports, "modelSupport", modelSupport), _defineProperty(_module$exports, "modelSupport", modelSupport), _defineProperty(_module$exports, "getPath", getpath), _module$exports);