()
| 206 | }); |
| 207 | |
| 208 | async #_start() { |
| 209 | if (this.hitCriticalError) return; |
| 210 | // Find node if id given |
| 211 | if (this._userNode) { |
| 212 | if (typeof this._userNode === 'string') { |
| 213 | this._userNode = document.getElementById(this._userNode); |
| 214 | } |
| 215 | } |
| 216 | |
| 217 | await this.#_setup(); |
| 218 | if (this.hitCriticalError) return; |
| 219 | if (!this._recording) { |
| 220 | this._draw(); |
| 221 | } |
| 222 | } |
| 223 | |
| 224 | async #_setup() { |
| 225 | // Run `presetup` hooks |
no test coverage detected