blockly > blockRendering > MarkerSvg > setParent_
blockRendering.MarkerSvg.setParent_() method
Attaches the SVG root of the marker to the SVG group of the parent.
Signature:
protected setParent_(newParent: IASTNodeLocationSvg): void;
Parameters
Parameter | Type | Description |
---|---|---|
newParent | IASTNodeLocationSvg | The workspace, field, or block that the marker SVG element should be attached to. |
Returns:
void