(data: DataFile | object[], getPartialInsight: (columns: SandDance.types.Column[]) => Partial<SandDance.specs.Insight>, snapshots: SandDance.types.Snapshot[], tooltipExclusions: string[])
| 109 | } |
| 110 | |
| 111 | load(data: DataFile | object[], getPartialInsight: (columns: SandDance.types.Column[]) => Partial<SandDance.specs.Insight>, snapshots: SandDance.types.Snapshot[], tooltipExclusions: string[]) { |
| 112 | const wasLoaded = this.state.loaded; |
| 113 | this.setState({ loaded: true }); |
| 114 | if (wasLoaded) { |
| 115 | this.explorer.setState({ |
| 116 | calculating: () => { |
| 117 | this.explorer.load(data, getPartialInsight, { tooltipExclusions }); |
| 118 | this.explorer.setState({ snapshots }); |
| 119 | }, |
| 120 | }); |
| 121 | } else { |
| 122 | this.explorer.load(data, getPartialInsight, { tooltipExclusions }); |
| 123 | this.explorer.setState({ snapshots }); |
| 124 | } |
| 125 | } |
| 126 | |
| 127 | unload() { |
| 128 | this.setState({ loaded: false }); |
no outgoing calls
no test coverage detected