Skip to main content

Home > blockly > BlockSvg > (constructor)

BlockSvg.(constructor)

Constructs a new instance of the BlockSvg class

Signature:

constructor(workspace: WorkspaceSvg, prototypeName: string, opt_id?: string);

Parameters

ParameterTypeDescription
workspaceWorkspaceSvgThe block's workspace.
prototypeNamestringName of the language object containing type-specific functions for this block.
opt_idstring(Optional) Optional ID. Use this ID if provided, otherwise create a new ID.