Skip to main content

LeaderAnnotationStyle

Visual appearance of a leader annotation.

Extends​

Properties​

color​

color: number

Line and text color as a hex number (e.g. 0xff0000).

Inherited from​

BaseAnnotationStyle . color


fontSize​

fontSize: number

Font size of the text label in drawing local units.

Inherited from​

BaseAnnotationStyle . fontSize


leaderShape?​

optional leaderShape: "angular" | "curved"

Leader line shape.

  • "angular" (default) β€” two straight segments: arrowTip β†’ elbow β†’ extensionEnd.
  • "curved" β€” quadratic BΓ©zier with elbow as the control point.

lineTick?​

optional lineTick: LineTickBuilder

Line-segment tick at the arrow tip β€” geometry is included in the same LineSegments as the leader line. When both tick and meshTick are absent, nothing is drawn at the tip.


meshTick?​

optional meshTick: MeshTickBuilder

Filled (mesh) tick at the arrow tip β€” rendered as a separate THREE.Mesh. Can be combined with tick (e.g. open circle + filled disc = target).


textOffset​

textOffset: number

Distance from extensionEnd to the text label anchor, measured along the extension direction.

Overrides​

BaseAnnotationStyle . textOffset


tickSize​

tickSize: number

Size of the tick at the arrow tip in drawing local units.


unit?​

optional unit: DimensionUnit

Unit used to format measured values in text labels. Defaults to Units.m (metres) when not set.

Inherited from​

BaseAnnotationStyle . unit