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

Method updateImage

js/src/mimeExtension.ts:82–86  ·  view source on GitHub ↗
(png_data: string)

Source from the content-addressed store, hash-verified

80 }
81
82 private updateImage(png_data: string) {
83 this.hideGraph();
84 this._img_el.src = "data:image/png;base64," + <string>png_data;
85 this.showImage();
86 }
87
88 private hideGraph() {
89 // Hide the graph if there is one

Callers 2

renderModelMethod · 0.95
createGraphMethod · 0.95

Calls 2

hideGraphMethod · 0.95
showImageMethod · 0.95

Tested by

no test coverage detected