fix frame api
This commit is contained in:
parent
07da144aee
commit
841082c485
6 changed files with 13 additions and 4 deletions
|
|
@ -115,6 +115,9 @@ window.addEventListener('message', msg => {
|
|||
let bin = data.parse;
|
||||
let widget;
|
||||
switch ((data.type || 'stl').toLowerCase()) {
|
||||
case 'gcode':
|
||||
api.function.parse(bin, 'gcode');
|
||||
break;
|
||||
case 'stl':
|
||||
if (!bin.buffer) bin = new Float32Array(bin).buffer;
|
||||
new load.STL().parse(bin, vertices => {
|
||||
|
|
|
|||
|
|
@ -28,6 +28,7 @@ import { space } from '../../../moto/space.js';
|
|||
import { LAST, MODES, SEED, VIEWS } from '../../core/consts.js';
|
||||
|
||||
import STACKS from '../stacks.js';
|
||||
import '../frame.js';
|
||||
|
||||
let { SETUP } = api.const,
|
||||
{ CAM, SLA, FDM, LASER, DRAG, WJET, WEDM } = MODES,
|
||||
|
|
|
|||
Loading…
Reference in a new issue