( name )
| 255 | } |
| 256 | |
| 257 | loadPath( name ){ |
| 258 | const data = this.store.read( name ); |
| 259 | if (data){ |
| 260 | this.nodes = data.nodes; |
| 261 | for (const [key, value] of Object.entries(data.config)) { |
| 262 | this.config[key] = value; |
| 263 | } |
| 264 | this.activePath = name; |
| 265 | this.store.activePath = name; |
| 266 | } |
| 267 | this.render(); |
| 268 | this.gui.controllersRecursive().forEach( controller => controller.updateDisplay() ); |
| 269 | } |
| 270 | |
| 271 | deletePath(){ |
| 272 | if ( this.activePath == null ) return; |
no test coverage detected