* 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)
| 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 |
no test coverage detected