| 38 | * @param luma @luma.gl/core library. |
| 39 | */ |
| 40 | export function use( |
| 41 | fluentUI: FluentUIComponents, |
| 42 | react: typeof React, |
| 43 | reactDOM: typeof ReactDOM, |
| 44 | vega: SandDance.VegaDeckGl.types.VegaBase, |
| 45 | deck: SandDance.VegaDeckGl.types.DeckBase, |
| 46 | layers: SandDance.VegaDeckGl.types.DeckLayerBase, |
| 47 | luma: SandDance.VegaDeckGl.types.LumaBase, |
| 48 | ) { |
| 49 | _use(react, reactDOM, vega, deck, layers, luma); |
| 50 | base.fluentUI = fluentUI; |
| 51 | base.react = react; |
| 52 | base.reactDOM = reactDOM; |
| 53 | |
| 54 | //inform React that we are using a dynamic base class |
| 55 | Chart.prototype = react.Component.prototype as any; |
| 56 | DataExportPicker.prototype = react.Component.prototype as any; |
| 57 | Explorer.prototype = react.Component.prototype as any; |
| 58 | PositionedColumnMap.prototype = react.Component.prototype as any; |
| 59 | Search.prototype = react.Component.prototype as any; |
| 60 | SnapshotEditor.prototype = react.Component.prototype as any; |
| 61 | Snapshots.prototype = react.Component.prototype as any; |
| 62 | Settings.prototype = react.Component.prototype as any; |
| 63 | } |