()
| 102 | private volumeChangeRequested = true; |
| 103 | |
| 104 | public constructor() { |
| 105 | super(); |
| 106 | this.root = this.attachShadow({mode: 'open'}); |
| 107 | this.root.innerHTML = TEMPLATE; |
| 108 | |
| 109 | this.overlay = this.root.querySelector('.overlay')!; |
| 110 | this.canvas = this.stage.finalBuffer; |
| 111 | this.canvas.classList.add('canvas'); |
| 112 | this.root.prepend(this.canvas); |
| 113 | this.setState(State.Initial); |
| 114 | } |
| 115 | |
| 116 | public setProject(project: Project) { |
| 117 | this.updateProject(project); |