Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GaugeChart <PublicSlice, InternalSlice >

Index

Properties

engine

engine: PublicEngine

pixelScale

pixelScale: Vec2<Scale>

uiScale

uiScale: Vec2<Scale>

Methods

addLegendBox

  • Type parameters

    • UIElementType: UIPart

    Parameters

    Returns UIElementType & UIElement

    LegendBox that fulfills interfaces: UIElementType (typeparam) and UIElement

addUIElement

  • Type parameters

    • UIElementType: UIPart

    Parameters

    Returns UIElementType & UIElement

    Object that fulfills interfaces: UIElementType (typeparam) and UIElement

disableAnimations

  • disableAnimations(): this
  • Returns this

    Chart itself for fluent interface.

dispose

  • dispose(): this
  • Returns this

    Object itself for fluent interface

getAnimationsEnabled

  • getAnimationsEnabled(): boolean
  • Returns boolean

    Boolean state for animations enabled

getBackgroundFillStyle

getBackgroundStrokeStyle

  • getBackgroundStrokeStyle(): LineStyle
  • Returns LineStyle

    LineStyle

getPadding

  • Returns Margin

    Padding datastructure

getTitle

  • getTitle(): string
  • Returns string

    Chart title as a string.

getTitleFillStyle

getTitleFont

getTitleMarginBottom

  • getTitleMarginBottom(): number
  • Returns number

    Padding after Chart title

getTitleMarginTop

  • getTitleMarginTop(): number
  • Returns number

    Padding before Chart title

offResize

  • offResize(token: Token): boolean
  • Parameters

    • token: Token

    Returns boolean

    True if the listener is successfully removed and false if it is not found

onResize

  • onResize(handler: function): Token
  • Parameters

    • handler: function
        • Parameters

          • obj: this
          • width: pixel
          • height: pixel
          • engineWidth: pixel
          • engineHeight: pixel

          Returns void

    Returns Token

    Token of subscription

saveToFile

  • saveToFile(fileName: string, type: undefined | string, encoderOptions: undefined | number): this
  • Parameters

    • fileName: string
    • Optional type: undefined | string
    • Optional encoderOptions: undefined | number

    Returns this

setAnimationsEnabled

  • setAnimationsEnabled(animationsEnabled: boolean): this
  • Parameters

    • animationsEnabled: boolean

    Returns this

    Gauge itself for fluent interface.

setBackgroundFillStyle

setBackgroundStrokeStyle

  • setBackgroundStrokeStyle(value: LineStyle | ImmutableMutator<LineStyle>): this
  • Parameters

    Returns this

    Object itself

setPadding

  • setPadding(padding: Partial<Margin> | number): this
  • Parameters

    • padding: Partial<Margin> | number

    Returns this

    Object itself

setTitle

  • setTitle(title: string): this
  • Parameters

    • title: string

    Returns this

    Object itself for fluent interface.

setTitleFillStyle

setTitleFont

setTitleMarginBottom

  • setTitleMarginBottom(marginPixels: pixel): this
  • Parameters

    • marginPixels: pixel

    Returns this

    Chart itself for fluent interface

setTitleMarginTop

  • setTitleMarginTop(marginPixels: pixel): this
  • Parameters

    • marginPixels: pixel

    Returns this

    Chart itself for fluent interface