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

Function toggleView

packages/sanddance-test-umd/src/transition.ts:17–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15 SandDance.use(vega, deck, deck, luma);
16
17 export function toggleView() {
18 if (viewType === '3d') {
19 viewType = '2d';
20 } else {
21 viewType = '3d';
22 }
23 update(lastSpec);
24 }
25
26 export function update(spec: Vega.Spec) {
27 view = new SandDance.VegaDeckGl.ViewGl(vega.parse(spec), { presenter: view && view.presenter, getView: () => viewType })

Callers

nothing calls this directly

Calls 1

updateFunction · 0.70

Tested by

no test coverage detected