MCPcopy
hub / github.com/microsoft/SandDance / getCanvas

Function getCanvas

packages/sanddance-explorer/src/canvas.ts:4–9  ·  view source on GitHub ↗
(viewer: SandDance.Viewer)

Source from the content-addressed store, hash-verified

2import PresenterElement = SandDance.VegaDeckGl.PresenterElement;
3
4export function getCanvas(viewer: SandDance.Viewer) {
5 const tags = viewer.presenter.getElement(PresenterElement.gl).getElementsByTagName('canvas');
6 if (tags) {
7 return tags[0];
8 }
9}
10
11export function removeTabIndex(viewer: SandDance.Viewer) {
12 const canvas = getCanvas(viewer);

Callers 2

editSnapshotMethod · 0.90
removeTabIndexFunction · 0.70

Calls 1

getElementMethod · 0.45

Tested by

no test coverage detected