MCPcopy
hub / github.com/RaspberryPiFoundation/blockly / domToBlock

Function domToBlock

packages/blockly/core/xml.ts:614–618  ·  view source on GitHub ↗
(xmlBlock: Element, workspace: Workspace)

Source from the content-addressed store, hash-verified

612 * @returns The root block created.
613 */
614export function domToBlock(xmlBlock: Element, workspace: Workspace): Block {
615 const block = domToBlockInternal(xmlBlock, workspace);
616 if (workspace.rendered) renderManagement.triggerQueuedRenders();
617 return block;
618}
619
620/**
621 * Decode an XML block tag and create a block (and possibly sub blocks) on the

Callers

nothing calls this directly

Calls 1

domToBlockInternalFunction · 0.85

Tested by

no test coverage detected