Type Alias TLabelState

TLabelState: {
    appearance: LabelAppearance;
    enabled: boolean;
    interactive: boolean;
    occlude: boolean;
    rank: TCollisionRankingTier | "initial";
    text: string;
    textPlacement:
        | "hidden"
        | "right"
        | "left"
        | "top"
        | "center"
        | ("hidden" | "right" | "left" | "top" | "center")[];
    type: "label";
}

Type declaration

  • appearance: LabelAppearance

    Customize the appearance of the Label and its pin

  • enabled: boolean

    Whether the label is enabled.

    true
    
  • interactive: boolean

    Whether the Label should be clickable.

    false
    
  • occlude: boolean

    Whether the label should be occluded by 3D geometry.

    true
    
  • rank: TCollisionRankingTier | "initial"

    Determines the collision ranking tier of the label, which influences its visibility in relation to other colliders.

    'medium'
    
  • text: string

    Text content of the label

  • textPlacement:
        | "hidden"
        | "right"
        | "left"
        | "top"
        | "center"
        | ("hidden" | "right" | "left" | "top" | "center")[]

    The placement of the text relative to the pin.

  • type: "label"