blockly > blockRendering > register

blockRendering.register() function

Registers a new renderer.

Signature:

export declare function register(name: string, rendererClass: Function): void;

Parameters

Parameter Type Description
name string The name of the renderer.
rendererClass Function The new renderer class to register.

Returns:

void

Exceptions

{Error} if a renderer with the same name has already been registered.