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

Method hasGraphElement

js/src/mimeExtension.ts:76–80  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

74 }
75
76 private hasGraphElement() {
77 // Check for the presence of the .plot-container element that plotly.js
78 // places at the top of the figure structure
79 return this.node.querySelector(".plot-container") !== null;
80 }
81
82 private updateImage(png_data: string) {
83 this.hideGraph();

Callers 2

renderModelMethod · 0.95
onUpdateRequestMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected