MCPcopy Index your code
hub / github.com/plotly/plotly.py / onUpdateRequest

Method onUpdateRequest

js/src/mimeExtension.ts:197–203  ·  view source on GitHub ↗

* A message handler invoked on an `'update-request'` message.

(msg: Message)

Source from the content-addressed store, hash-verified

195 * A message handler invoked on an `'update-request'` message.
196 */
197 protected onUpdateRequest(msg: Message): void {
198 if (RenderedPlotly.Plotly && this.isVisible && this.hasGraphElement()) {
199 RenderedPlotly.Plotly.redraw(this.node).then(() => {
200 RenderedPlotly.Plotly!.Plots.resize(this.node);
201 });
202 }
203 }
204
205 private _mimeType: string;
206 private _img_el: HTMLImageElement;

Callers

nothing calls this directly

Calls 3

hasGraphElementMethod · 0.95
redrawMethod · 0.45
resizeMethod · 0.45

Tested by

no test coverage detected