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

Method _sendLayoutDelta

js/src/widget.ts:1529–1544  ·  view source on GitHub ↗

* Construct layout delta object and send layoutDelta message to the * Python side * * @param layout_edit_id * Edit ID of message that triggered the creation of the layout delta * @private

(layout_edit_id: any)

Source from the content-addressed store, hash-verified

1527 * @private
1528 */
1529 _sendLayoutDelta(layout_edit_id: any) {
1530 // ### Handle layout delta ###
1531 var layout_delta = createDeltaObject(
1532 this.getFullLayout(),
1533 this.model.get("_widget_layout")
1534 );
1535
1536 /** @type{Js2PyLayoutDeltaMsg} */
1537 var layoutDeltaMsg: Js2PyLayoutDeltaMsg = {
1538 layout_delta: layout_delta,
1539 layout_edit_id: layout_edit_id,
1540 };
1541
1542 this.model.set("_js2py_widget_layoutDelta", layoutDeltaMsg);
1543 this.touch();
1544 }
1545
1546 /**
1547 * Construct trace deltas array for the requested trace indexes and

Callers 8

do_restyleMethod · 0.95
do_relayoutMethod · 0.95
do_updateMethod · 0.95
perform_renderMethod · 0.45
autosizeFigureMethod · 0.45
do_addTracesMethod · 0.45
do_deleteTracesMethod · 0.45
do_animateMethod · 0.45

Calls 5

getFullLayoutMethod · 0.95
touchMethod · 0.95
createDeltaObjectFunction · 0.85
getMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected