Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • BaseCollider
    • TFloatingLabel

Implements

  • ISmarterLabel

Index

Constructors

constructor

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

    • options: TFloatingLabelOptionsInternal
    • mapView: ICore

    Returns TFloatingLabel

Properties

__engine

__engine: any

_cache

_cache: {} = {}

Type declaration

_dirty

_dirty: boolean = true

_initialRank

_initialRank: number = 0

action

action: EColliderAction = ...

appearance

appearance: TAppearanceFilledIn

contextConfigured

contextConfigured: boolean = false

currentStrategyName

currentStrategyName: null = null

dimensions

dimensions: { height: number; width: number } = ...

Type declaration

  • height: number
  • width: number

enabled

enabled: boolean = false

fillText

fillText: undefined | TDrawFn = ...

id

id: string = '0'

lines

lines: number = 0

mapId

mapId: string = ''

mapView

mapView: ICore

newStyle

newStyle: {} = {}

Type declaration

options

options: any = {}

position

position: Vector3 = ...

rank

rank: number = 0

screenPosition

screenPosition: [number, number] = ...

style

style: TStyle = ...

visible

visible: boolean = false

zoomProportion

zoomProportion: number = 0

Static original

original: TFloatingLabel

Accessors

strategies

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

Methods

clearColor

  • clearColor(): void
  • Returns void

colliderDidGoOutsideGrid

  • colliderDidGoOutsideGrid(): void
  • Returns void

colliderDidMount

  • colliderDidMount(): void
  • Returns void

colliderDidNotFindAHome

  • colliderDidNotFindAHome(): void
  • Returns void

colliderDidUpdatePosition

  • colliderDidUpdatePosition(x: any, y: any): void
  • Parameters

    • x: any
    • y: any

    Returns void

colliderDidUpdateVisiblity

  • colliderDidUpdateVisiblity(): void
  • Returns void

demote

  • demote(): void
  • Returns void

disable

  • disable(): void
  • Returns void

draw

  • draw(context: CanvasRenderingContext2D): void
  • Parameters

    • context: CanvasRenderingContext2D

    Returns void

enable

  • enable(): void
  • Returns void

flipIfNeeded

  • flipIfNeeded(): void
  • Returns void

getCachedSymbol

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

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

    Returns any

promote

  • promote(): void
  • Returns void

removeSelf

  • removeSelf(): void
  • Returns void

resetPriority

  • resetPriority(): void
  • Returns void

setAction

  • setAction(action: any): void
  • Parameters

    • action: any

    Returns void

setColor

  • setColor(): void
  • Returns void

setPriority

  • setPriority(priority: any): void
  • Parameters

    • priority: any

    Returns void

Static clone

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

    • options: TFloatingLabelOptionsInternal
    • mapView: ICore

    Returns any