blockly > Bubble > setAnchorLocation

Bubble.setAnchorLocation() method

Set the location the tail of this bubble points to.

Signature:

setAnchorLocation(anchor: Coordinate, relayout?: boolean): void;

Parameters

Parameter Type Description
anchor Coordinate The location the tail of this bubble points to.
relayout boolean (Optional) If true, reposition the bubble from scratch so that it is optimally visible. If false, reposition it so it maintains the same position relative to the anchor.

Returns:

void