Stay organized with collections Save and categorize content based on your preferences.

blockly > Xml > appendDomToWorkspace

Xml.appendDomToWorkspace() function

Decode an XML DOM and create blocks on the workspace. Position the new blocks immediately below prior blocks, aligned by their starting edge.

Signature:

export declare function appendDomToWorkspace(xml: Element, workspace: WorkspaceSvg): string[];

Parameters

Parameter Type Description
xml Element The XML DOM.
workspace WorkspaceSvg The workspace to add to.

Returns:

string[]

An array containing new block IDs.