Function: appendDomToWorkspace()
function appendDomToWorkspace(xml, workspace): string[];
Defined in: packages/blockly/core/xml.ts:555
Decode an XML DOM and create blocks on the workspace. Position the new blocks immediately below prior blocks, aligned by their starting edge.
Parameters
| Parameter | Type | Description |
|---|---|---|
xml | Element | The XML DOM. |
workspace | WorkspaceSvg | The workspace to add to. |
Returns
string[]
An array containing new block IDs.