Skip to main content

Home > blockly > bubbles > Bubble > setAnchorLocation

bubbles.Bubble.setAnchorLocation() method

Set the location the tail of this bubble points to.

Signature:

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

Parameters

ParameterTypeDescription
anchorCoordinateThe location the tail of this bubble points to.
relayoutboolean(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