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

Method do_update

js/src/widget.ts:668–679  ·  view source on GitHub ↗

* Handle update message

()

Source from the content-addressed store, hash-verified

666 * Handle update message
667 */
668 do_update() {
669 /** @type {Py2JsUpdateMsg} */
670 var msgData: Py2JsUpdateMsg = this.model.get("_py2js_update");
671
672 if (msgData !== null) {
673 var style = msgData.style_data;
674 var layout = msgData.layout_data;
675 var styleTraces = this._normalize_trace_indexes(msgData.style_traces);
676 performRestyleLike(this.model.get("_widget_data"), style, styleTraces);
677 performRelayoutLike(this.model.get("_widget_layout"), layout);
678 }
679 }
680
681 /**
682 * Handle animate message

Callers 1

initializeMethod · 0.95

Calls 4

performRestyleLikeFunction · 0.85
performRelayoutLikeFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected