blockly > WorkspaceSvg > createDom

WorkspaceSvg.createDom() method

Create the workspace DOM elements.

Signature:

createDom(opt_backgroundClass?: string, injectionDiv?: Element): Element;

Parameters

Parameter Type Description
opt_backgroundClass string (Optional) Either 'blocklyMainBackground' or 'blocklyMutatorBackground'.
injectionDiv Element (Optional)

Returns:

Element

The workspace's SVG group.