TextAnnotationAnchor Interface

Describes the horizontal and vertical alignment of a TextAnnotation's text relative to the Placement origin of the TextAnnotation2d or TextAnnotation3d host element, also referred to as the annotation's "anchor point". For example, if the anchor is specified as middle-center, the text will be centered on the element's origin. The anchor point also serves as the pivot point for rotation, such that the text is rotated about the anchor point while the anchor point remains fixed.

Properties

Name Type Description
horizontal "center" | "left" | "right" The horizontal alignment of the anchor point.  
vertical "top" | "middle" | "bottom" The vertical alignment of the anchor point.  

Defined in

Last Updated: 06 May, 2024