MCPcopy Create free account
hub / github.com/microsoft/SandDance / use

Function use

packages/sanddance-explorer/src/base.ts:40–63  ·  view source on GitHub ↗
(
    fluentUI: FluentUIComponents,
    react: typeof React,
    reactDOM: typeof ReactDOM,
    vega: SandDance.VegaDeckGl.types.VegaBase,
    deck: SandDance.VegaDeckGl.types.DeckBase,
    layers: SandDance.VegaDeckGl.types.DeckLayerBase,
    luma: SandDance.VegaDeckGl.types.LumaBase,
)

Source from the content-addressed store, hash-verified

38 * @param luma @luma.gl/core library.
39 */
40export 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}

Callers 2

app.tsFile · 0.90
widget.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected