refactor widget as class. patch engine, frame, cli

This commit is contained in:
Stewart Allen 2022-02-18 12:08:08 -05:00
commit 74d3d8752c
9 changed files with 300 additions and 306 deletions

View file

@ -399,7 +399,7 @@
}
}
if (data.load) {
platformLoad(data.load, (verts, widget) => {
api.platform.load(data.load, (verts, widget) => {
send({event: "loaded", data: [ widget.id ]});
})
};
@ -2044,7 +2044,7 @@
function loadFile() {
$('load-file').onchange = function(event) {
console.log(event);
platformLoadFiles(event.target.files);
api.platform.load_files(event.target.files);
};
$('load-file').click();
// alert2("drag/drop STL files onto platform to import\nreload page to return to last saved state");