Skip to main content

Home > blockly > blockRendering > PathObject > updateShapeForInputHighlight

blockRendering.PathObject.updateShapeForInputHighlight() method

Add or remove styling that shows that if the dragging block is dropped, this block will be connected to the input.

Signature:

updateShapeForInputHighlight(_conn: Connection, _enable: boolean): void;

Parameters

ParameterTypeDescription
_connConnectionThe connection on the input to highlight.
_enablebooleanTrue if styling should be added.

Returns:

void