issue-95 get exports working

This commit is contained in:
Kurt Hutten
2020-11-14 18:18:35 +11:00
parent de7c94e7d6
commit 7abdd87f03
3 changed files with 3 additions and 2 deletions

View File

@@ -61,7 +61,7 @@ const IdeCascadeStudio = ({ part, saveCode, loading, error }) => {
canEdit={canEdit}
isChanges={isChanges && !loading}
onSave={() => {}}
onExport={() => {}}
onExport={(type) => threejsViewport[`saveShape${type}`]()}
/>
<div id="topnav" className="topnav hidden">
<a href="https://github.com/zalo/CascadeStudio">

View File

@@ -11,6 +11,7 @@
// Install Cascade Studio as a Progressive Web App for Offline Access
// This needs to be put before ANY HTTP Requests are made, so it can cache them.
var messageHandlers = {};
var threejsViewport = {};
messageHandlers["resetWorking"] = () => { workerWorking = false; }
var cascadeStudioWorker
var workerWorking = false