Skip to main content

Home > blockly > blockRendering > ConstantProvider > getBlockStyle

blockRendering.ConstantProvider.getBlockStyle() method

Gets the BlockStyle for the given block style name.

Signature:

getBlockStyle(blockStyleName: string | null): BlockStyle;

Parameters

ParameterTypeDescription
blockStyleNamestring | nullThe name of the block style.

Returns:

BlockStyle

The named block style, or a default style if no style with the given name was found.