()
| 22 | return new Promise((resolve) => { |
| 23 | |
| 24 | const innerLoad = () => { |
| 25 | let getPartialInsight: (columns: SandDance.types.Column[]) => Partial<SandDance.specs.Insight>; |
| 26 | if (insight) { |
| 27 | //TODO make sure that insight columns exist in dataset |
| 28 | getPartialInsight = columns => insight; |
| 29 | } |
| 30 | sandDanceExplorer.load(data, getPartialInsight).then(resolve); |
| 31 | }; |
| 32 | |
| 33 | const create = () => { |
| 34 | SandDanceExplorer.use(FluentUIReact, React, ReactDOM, vega, deck, deck, luma); |