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

Method getElement

packages/vega-deck.gl/src/presenter.ts:141–146  ·  view source on GitHub ↗

* Retrieve a sub-element of the rendered output. * @param type PresenterElement type of the HTMLElement to retrieve.

(type: PresenterElement)

Source from the content-addressed store, hash-verified

139 * @param type PresenterElement type of the HTMLElement to retrieve.
140 */
141 getElement(type: PresenterElement): HTMLElement {
142 const elements = this.el.getElementsByClassName(className(type, this));
143 if (elements && elements.length) {
144 return elements[0] as HTMLElement;
145 }
146 }
147
148 /**
149 * Present the Vega Scene, or Stage object using Deck.gl.

Callers 15

presentMethod · 0.95
showGuidesMethod · 0.95
componentDidMountMethod · 0.45
initializeMethod · 0.45
ensureHeadersFunction · 0.45
populateColorContextFunction · 0.45
constructorMethod · 0.45
onDataChangedMethod · 0.45
SandDanceVue.tsFile · 0.45
renderMethod · 0.45
getCanvasFunction · 0.45

Calls 1

classNameFunction · 0.90

Tested by

no test coverage detected