Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PolarAxisTick

Implementation of Polar Axis Tick.

Index

Constructors

constructor

  • new PolarAxisTick(tickLevel: AxisTickLevel, value: number, _removeFromAxis: RemoveHandler<AbstractAxisTick>, _restoreToAxis: RestoreHandler<AbstractAxisTick>, _scale: RadialScale, _labelLayer: Layer2D, _gridlineLayer: Layer2D, gridline: Arc | Line, tickline: Line, label?: Text): PolarAxisTick
  • Parameters

    • tickLevel: AxisTickLevel

      AxisTickLevel tick belongs to.

    • value: number

      Position of Tick on Axis.

    • _removeFromAxis: RemoveHandler<AbstractAxisTick>

      Remove handler for Tick.

    • _restoreToAxis: RestoreHandler<AbstractAxisTick>

      Restore handler for Tick.

    • _scale: RadialScale

      Scale for shapes.

    • _labelLayer: Layer2D

      Layer for rendering Label.

    • _gridlineLayer: Layer2D
    • gridline: Arc | Line

      Shape for rendering Tick gridline (type depends on PolarAxis).

    • tickline: Line

      Shape for rendering Tick line. Not using LineCollection for simplicity.

    • label: Text

      Optionally injectable Tick Label shape. Injection can be useful to reuse Tick shapes for performance.

    Returns PolarAxisTick

Properties

Readonly gridline

gridline : Arc | Line

Shape for rendering Tick gridline (type depends on PolarAxis).

Readonly label

label : Text

Optionally injectable Tick Label shape. Injection can be useful to reuse Tick shapes for performance.

tickLevel

tickLevel : AxisTickLevel

AxisTickLevel tick belongs to.

Readonly tickline

tickline : Line

Shape for rendering Tick line. Not using LineCollection for simplicity.

value

value : number

Position of Tick on Axis.

Methods

dispose

  • dispose(): this
  • Disposes all tick sub-elements

    Returns this

    This for fluid interface

isDisposed

  • isDisposed(): boolean
  • Returns boolean

    True if all sub-elements are disposed, false if not.

restore

  • restore(): this
  • Restores all custom tick sub-elements

    Returns this

    This for fluid interface