cleanup
dependencies hashes: openFrameworks d78075f4bca6be2a2533c6e51a75cc1f18404501 ofxMsdfgen e14da13d02c4dff04fb69d7923469f606924e6c3 ofxGPUFont d482bb7cbdf6b296fa4ab5abcf73fb5ff8c8b239 ofxVariableLab 8df98846248a93aa068989a3ebd0d2f0f16e5e69 ofxProfiler fa1d70e6a5fae16633eed2ce65fb8b23f2edbbb8 theatre 86d3e07f6f2c75fd6e08fca8c97e3617c9e23b18
This commit is contained in:
parent
6d3b064da7
commit
365ac34de6
1 changed files with 0 additions and 14 deletions
|
@ -11,10 +11,6 @@ import {
|
||||||
getNestedProperty,
|
getNestedProperty,
|
||||||
} from './utils.js';
|
} from './utils.js';
|
||||||
|
|
||||||
//import {
|
|
||||||
//config
|
|
||||||
//} from './config.js';
|
|
||||||
|
|
||||||
const TheatrePlay = function(autoInit = false) {
|
const TheatrePlay = function(autoInit = false) {
|
||||||
|
|
||||||
//private
|
//private
|
||||||
|
@ -28,9 +24,7 @@ const TheatrePlay = function(autoInit = false) {
|
||||||
let theatrePanel = null;
|
let theatrePanel = null;
|
||||||
let sequencePanelLeft = null;
|
let sequencePanelLeft = null;
|
||||||
const getSequencePanelLeft = () => {
|
const getSequencePanelLeft = () => {
|
||||||
// if (sequencePanelLeft === null) {
|
|
||||||
sequencePanelLeft = tp.shadowRoot.querySelector('[data-testid="SequencePanel-Left"]');
|
sequencePanelLeft = tp.shadowRoot.querySelector('[data-testid="SequencePanel-Left"]');
|
||||||
// }
|
|
||||||
return sequencePanelLeft;
|
return sequencePanelLeft;
|
||||||
};
|
};
|
||||||
const getPanel = () => {
|
const getPanel = () => {
|
||||||
|
@ -148,8 +142,6 @@ const TheatrePlay = function(autoInit = false) {
|
||||||
}
|
}
|
||||||
const prop = getNestedProperty(layer.theatreObject.props, path);
|
const prop = getNestedProperty(layer.theatreObject.props, path);
|
||||||
return studio.__experimental.__experimental_isPropSequenced(prop);
|
return studio.__experimental.__experimental_isPropSequenced(prop);
|
||||||
// is this better than this?
|
|
||||||
//return getSequenceButton(path) === null;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const setSequenced = (path, sequenced = true, layer = getLayer()) => {
|
const setSequenced = (path, sequenced = true, layer = getLayer()) => {
|
||||||
|
@ -567,13 +559,9 @@ const TheatrePlay = function(autoInit = false) {
|
||||||
console.log('TheatrePlay::uploadProject', 'could not verify project');
|
console.log('TheatrePlay::uploadProject', 'could not verify project');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
//Module.importProjectAsZip(vt_project.arrayBuffer, vt_project.fileSize, "debug_tmp");
|
|
||||||
} else if (verifyVariableTimeProject(vt_project)) {
|
} else if (verifyVariableTimeProject(vt_project)) {
|
||||||
this.possiblyAskForFontsPromise(vt_project).then((vt_project_u) => {
|
this.possiblyAskForFontsPromise(vt_project).then((vt_project_u) => {
|
||||||
vt_project = vt_project_u;
|
vt_project = vt_project_u;
|
||||||
//if (reeeload) {
|
|
||||||
//localStorage.clear();
|
|
||||||
//}
|
|
||||||
this.saveProject(vt_project.projectId, vt_project, true);
|
this.saveProject(vt_project.projectId, vt_project, true);
|
||||||
if (reeeload) {
|
if (reeeload) {
|
||||||
this.reloadToProject(vt_project.projectId);
|
this.reloadToProject(vt_project.projectId);
|
||||||
|
@ -624,12 +612,10 @@ const TheatrePlay = function(autoInit = false) {
|
||||||
if (saveBeforeDownloading) {
|
if (saveBeforeDownloading) {
|
||||||
this.saveProject(projectId, vt_project, true);
|
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));
|
Module.downloadProject(projectId, JSON.stringify(vt_project));
|
||||||
} else {
|
} else {
|
||||||
const p = this.getProject(projectId);
|
const p = this.getProject(projectId);
|
||||||
if (p !== false) {
|
if (p !== false) {
|
||||||
//downloadFile(p, `${config.projects.savePrefix}${projectId}.json`, 'application/json');
|
|
||||||
Module.downloadProject(projectId, JSON.stringify(p));
|
Module.downloadProject(projectId, JSON.stringify(p));
|
||||||
} else {
|
} else {
|
||||||
console.error('TheatrePlay::downloadProject', `cannot download project with id ${projectId}, because it is neither current project or saved in localStorage`);
|
console.error('TheatrePlay::downloadProject', `cannot download project with id ${projectId}, because it is neither current project or saved in localStorage`);
|
||||||
|
|
Loading…
Reference in a new issue