MCPcopy
hub / github.com/visgl/deck.gl / onRenderHTML

Method onRenderHTML

modules/widgets/src/zoom-widget.tsx:74–90  ·  view source on GitHub ↗
(rootElement: HTMLElement)

Source from the content-addressed store, hash-verified

72 }
73
74 onRenderHTML(rootElement: HTMLElement): void {
75 const ui = (
76 <ButtonGroup orientation={this.props.orientation}>
77 <IconButton
78 onClick={() => this.handleZoomIn()}
79 label={this.props.zoomInLabel}
80 className="deck-widget-zoom-in"
81 />
82 <IconButton
83 onClick={() => this.handleZoomOut()}
84 label={this.props.zoomOutLabel}
85 className="deck-widget-zoom-out"
86 />
87 </ButtonGroup>
88 );
89 render(ui, rootElement);
90 }
91
92 isOrthographicView(viewId: string): boolean {
93 const deck = this.deck;

Callers

nothing calls this directly

Calls 3

handleZoomInMethod · 0.95
handleZoomOutMethod · 0.95
renderFunction · 0.50

Tested by

no test coverage detected