diff --git a/bin/em/variabletime/web/js/theatre-play.js b/bin/em/variabletime/web/js/theatre-play.js index b3ebd47..ed05d4b 100644 --- a/bin/em/variabletime/web/js/theatre-play.js +++ b/bin/em/variabletime/web/js/theatre-play.js @@ -11,10 +11,6 @@ import { getNestedProperty, } from './utils.js'; -//import { - //config -//} from './config.js'; - const TheatrePlay = function(autoInit = false) { //private @@ -28,9 +24,7 @@ const TheatrePlay = function(autoInit = false) { let theatrePanel = null; let sequencePanelLeft = null; const getSequencePanelLeft = () => { - // if (sequencePanelLeft === null) { sequencePanelLeft = tp.shadowRoot.querySelector('[data-testid="SequencePanel-Left"]'); - // } return sequencePanelLeft; }; const getPanel = () => { @@ -148,8 +142,6 @@ const TheatrePlay = function(autoInit = false) { } const prop = getNestedProperty(layer.theatreObject.props, path); return studio.__experimental.__experimental_isPropSequenced(prop); - // is this better than this? - //return getSequenceButton(path) === null; }; const setSequenced = (path, sequenced = true, layer = getLayer()) => { @@ -567,13 +559,9 @@ const TheatrePlay = function(autoInit = false) { console.log('TheatrePlay::uploadProject', 'could not verify project'); } }); - //Module.importProjectAsZip(vt_project.arrayBuffer, vt_project.fileSize, "debug_tmp"); } else if (verifyVariableTimeProject(vt_project)) { this.possiblyAskForFontsPromise(vt_project).then((vt_project_u) => { vt_project = vt_project_u; - //if (reeeload) { - //localStorage.clear(); - //} this.saveProject(vt_project.projectId, vt_project, true); if (reeeload) { this.reloadToProject(vt_project.projectId); @@ -624,12 +612,10 @@ const TheatrePlay = function(autoInit = false) { if (saveBeforeDownloading) { this.saveProject(projectId, vt_project, true); } - //downloadFile(JSON.stringify(vt_project), `${config.projects.savePrefix}${projectId}.json`, 'application/json'); Module.downloadProject(projectId, JSON.stringify(vt_project)); } else { const p = this.getProject(projectId); if (p !== false) { - //downloadFile(p, `${config.projects.savePrefix}${projectId}.json`, 'application/json'); Module.downloadProject(projectId, JSON.stringify(p)); } else { console.error('TheatrePlay::downloadProject', `cannot download project with id ${projectId}, because it is neither current project or saved in localStorage`);