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

Function use

packages/sanddance-react/src/base.ts:29–43  ·  view source on GitHub ↗
(
    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

27 * @param luma @luma.gl/core library.
28 */
29export function use(
30 react: typeof React,
31 reactDOM: typeof ReactDOM,
32 vega: SandDance.VegaDeckGl.types.VegaBase,
33 deck: SandDance.VegaDeckGl.types.DeckBase,
34 layers: SandDance.VegaDeckGl.types.DeckLayerBase,
35 luma: SandDance.VegaDeckGl.types.LumaBase,
36) {
37 SandDance.VegaDeckGl.use(vega, deck, layers, luma);
38 base.react = react;
39 base.reactDOM = reactDOM;
40
41 //inform React that we are using a dynamic base class
42 SandDanceReact.prototype = react.Component.prototype as any;
43}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected