MCPcopy Index your code
hub / github.com/microsoft/SandDance / getCanvas

Function getCanvas

docs/app/js/sanddance-app.js:13383–13386  ·  view source on GitHub ↗
(viewer)

Source from the content-addressed store, hash-verified

13381var _sanddanceReact = require("@msrvida/sanddance-react");
13382var PresenterElement = (0, _sanddanceReact.SandDance).VegaDeckGl.PresenterElement;
13383function getCanvas(viewer) {
13384 var tags = viewer.presenter.getElement(PresenterElement.gl).getElementsByTagName("canvas");
13385 if (tags) return tags[0];
13386}
13387function removeTabIndex(viewer) {
13388 var canvas = getCanvas(viewer);
13389 if (canvas) canvas.tabIndex = -1;

Callers 2

removeTabIndexFunction · 0.70
createGLContextFunction · 0.70

Calls 2

onErrorFunction · 0.70
getElementMethod · 0.45

Tested by

no test coverage detected