Skip to content

five-on-it / apps/client/src/ui/map-labels / PlacedLabel

Interface: PlacedLabel ​

Defined in: apps/client/src/ui/map-labels.ts:41

A label placed: the candidate and its box's half-sizes (px, padding included).

Extends ​

Properties ​

angle ​

angle: number

Defined in: apps/client/src/ui/map-labels.ts:35

Inherited from ​

LabelCandidate.angle


halfHeight ​

halfHeight: number

Defined in: apps/client/src/ui/map-labels.ts:43


halfWidth ​

halfWidth: number

Defined in: apps/client/src/ui/map-labels.ts:42


kind ​

kind: LabelKind

Defined in: apps/client/src/ui/map-labels.ts:31

Inherited from ​

LabelCandidate.kind


side? ​

optional side?: number

Defined in: apps/client/src/ui/map-labels.ts:37

A box kept clear for a marker: its side (px); a text's box is its measured width.

Inherited from ​

LabelCandidate.side


text ​

text: string

Defined in: apps/client/src/ui/map-labels.ts:32

Inherited from ​

LabelCandidate.text


x ​

x: number

Defined in: apps/client/src/ui/map-labels.ts:33

Inherited from ​

LabelCandidate.x


y ​

y: number

Defined in: apps/client/src/ui/map-labels.ts:34

Inherited from ​

LabelCandidate.y