## Kiri:Moto Javascript Engine API

javascript
gcode output

## Engine Methods

- load(url) - where URL points to an STL
- parse(data) - where data is a string or binary STL
- setMode(mode) - FDM, CAM, LASER, SLA
- setListener(fn) - function to receive engine progress messages
- setDevice(options) - change default object parameters
- setProcess(options) - change default process parameters
- moveTo(x,y,z) - absolute move origin of loaded object
- move(x,y,z) - relative move origin of loaded object
- scale(x,y,z) - scale axes of loaded object
- rotate(x,y,z) - rotate axes of loaded object in radians
- slice() - async slice loaded object
- prepare() - async path routing of slice data
- export() - async gcode generation from path routing