Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • BaseCollider
    • FloatingLabel

Implements

  • ISmarterLabel

Index

Constructors

  • new FloatingLabel(options: TFloatingLabelOptionsInternal, mapView: ICore): FloatingLabel
  • Parameters

    • options: TFloatingLabelOptionsInternal
    • mapView: ICore

    Returns FloatingLabel

Properties

__engine: any
_cache: {} = {}

Type declaration

    _initialRank: number = 0
    action: EColliderAction = EColliderAction.initial
    appearance: TAppearanceFilledIn
    contextConfigured: boolean = false
    dimensions: { height: number; width: number } = ...

    Type declaration

    • height: number
    • width: number
    enabled: boolean = false
    fillText: undefined | TDrawFn = ...
    getBoundingBoxForCurrentStrategy: undefined = undefined
    id: string = '0'
    lines: number = 0
    mapId: string = ''
    mapView: ICore
    newStyle: {} = {}

    Type declaration

      offscreen: boolean = false
      options: any = {}
      position: any = ...
      rank: number = 0
      screenPosition: [number, number] = ...
      style: TStyle = ...
      visible: boolean = false
      zoomProportion: number = 0
      original: FloatingLabel

      Accessors

      • get strategies(): TColliderStrategy[]
      • Returns TColliderStrategy[]

      Methods

      • clearColor(): void
      • Returns void

      • colliderDidGoOutsideGrid(): void
      • Returns void

      • colliderDidMount(): void
      • Returns void

      • colliderDidNotFindAHome(): void
      • Returns void

      • colliderDidUpdatePosition(pos: any): void
      • Parameters

        • pos: any

        Returns void

      • colliderDidUpdateVisiblity(): void
      • Returns void

      • demote(): void
      • Returns void

      • disable(updateEngine?: boolean): void
      • Parameters

        • updateEngine: boolean = true

        Returns void

      • draw(context: CanvasRenderingContext2D): void
      • Parameters

        • context: CanvasRenderingContext2D

        Returns void

      • enable(updateEngine?: boolean): void
      • Parameters

        • updateEngine: boolean = true

        Returns void

      • flipIfNeeded(): void
      • Returns void

      • getCachedSymbol(orientation: any, textAlign: any, xCoordinate: any): any
      • Parameters

        • orientation: any
        • textAlign: any
        • xCoordinate: any

        Returns any

      • promote(): void
      • Returns void

      • removeSelf(): void
      • Returns void

      • resetPriority(): void
      • Returns void

      • setAction(action: any): void
      • Parameters

        • action: any

        Returns void

      • setColor(): void
      • Returns void

      • setPriority(priority: any): void
      • Parameters

        • priority: any

        Returns void

      • clone(options: TFloatingLabelOptionsInternal, mapView: ICore): any
      • Parameters

        • options: TFloatingLabelOptionsInternal
        • mapView: ICore

        Returns any