| 455 | // console.log 'cached', cached, 'missed', missed |
| 456 | |
| 457 | fillInDefaultSystemConfiguration (levelSystems) { |
| 458 | return (() => { |
| 459 | const result = [] |
| 460 | for (const system of Array.from(levelSystems != null ? levelSystems : [])) { |
| 461 | if (system.config == null) { system.config = {} } |
| 462 | TreemaUtils.populateDefaults(system.config, system.model.configSchema || {}, tv4) |
| 463 | this.lastType = 'system' |
| 464 | result.push(this.lastOriginal = system.model.name) |
| 465 | } |
| 466 | return result |
| 467 | })() |
| 468 | } |
| 469 | |
| 470 | dimensions () { |
| 471 | let width = 0 |