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

Function _onAdd

modules/core/src/lib/widget.ts:148–150  ·  view source on GitHub ↗

Internal API called by Deck when the widget is first added to a Deck instance

(params: {deck: Deck<any>; viewId: string | null})

Source from the content-addressed store, hash-verified

146
147 /** Internal API called by Deck when the widget is first added to a Deck instance */
148 _onAdd(params: {deck: Deck<any>; viewId: string | null}): HTMLDivElement {
149 return this.onAdd(params) ?? this.onCreateRootElement();
150 }
151
152 /** Overridable by subclass - called when the widget is first added to a Deck instance
153 * @returns an optional UI element that should be appended to the Deck container

Callers

nothing calls this directly

Calls 2

onCreateRootElementMethod · 0.80
onAddMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…