Files
P42_UI/app/views/visualisers/SpaceView.js
T
2025-09-28 18:28:17 +00:00

38 lines
951 B
JavaScript

class SpaceView extends EICDomContent {
constructor() {
super()
Object.assign(this, app.helpers.activeAttributes)
//this.tileMarkup = app.Assets.Store.html['/app/assets/html/mailing/tile.html']
}
DOMContentFocused(options) {
if(this.wasBlured){ // Avoid 2nd refesh on DomContentLoaded
//this.refreshyoustuff()
}
this.wasBlured = false
}
DOMContentBlured(options) { this.wasBlured = true }
DOMContentLoaded(options) {
for(let model in options.models) this[model] = options.models[model]
this.ttb = options.ttb
const components = ui.eicfy(this.el)
this.setupTriggers(components)
this.setupRefs(components)
this.ttb.startRendering(this.outputs.ttbCanvas, options.mode)
}
settings(){
console.log('Settings!')
}
}
app.registerClass('SpaceView', SpaceView)