blockly > blockRendering > Drawer > draw

blockRendering.Drawer.draw() method

Draw the block to the workspace. Here "drawing" means setting SVG path elements and moving fields, icons, and connections on the screen.

The pieces of the paths are pushed into arrays of "steps", which are then joined with spaces and set directly on the block. This guarantees that the steps are separated by spaces for improved readability, but isn't required.

Signature:

draw(): void;

Returns:

void