(options)
| 47 | } |
| 48 | |
| 49 | constructor (options) { |
| 50 | super(options) |
| 51 | this.expandedDeltas = [] |
| 52 | this.skipPaths = options.skipPaths |
| 53 | if (key.shift && key.alt) { |
| 54 | this.maxDeltas = 1e9 |
| 55 | } else if (key.shift) { |
| 56 | this.maxDeltas = 1000 |
| 57 | } |
| 58 | |
| 59 | for (const modelName of ['model', 'headModel', 'comparisonModel']) { |
| 60 | this[modelName] = options[modelName] |
| 61 | if (!this[modelName] || !options.loadModels) { continue } |
| 62 | if (!this[modelName].isLoaded) { |
| 63 | this[modelName] = this.supermodel.loadModel(this[modelName]).model |
| 64 | } |
| 65 | } |
| 66 | |
| 67 | if (this.supermodel.finished()) { this.buildDeltas() } |
| 68 | } |
| 69 | |
| 70 | onLoaded () { |
| 71 | this.buildDeltas() |
nothing calls this directly
no test coverage detected