Function: blockToDomWithXY()
function blockToDomWithXY(block, opt_noId?): Element | DocumentFragment;
Defined in: packages/blockly/core/xml.ts:116
Encode a block subtree as XML with XY coordinates.
Parameters
| Parameter | Type | Description |
|---|---|---|
block | Block | The root block to encode. |
opt_noId? | boolean | True if the encoder should skip the block ID. |
Returns
Element | DocumentFragment
Tree of XML elements or an empty document fragment if the block was an insertion marker.