Home Reference Source
import LinearGauge from 'canvas-gauges/lib/LinearGauge.js'
public class | source

LinearGauge

Extends:

BaseGauge → LinearGauge

Minimalistic HTML5 Canvas Linear Gauge

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

drawBox: *

Method Summary

Public Methods
public

Triggering linear gauge render on a canvas.

Inherited Summary

From class BaseGauge
public static

initialize(Type: string, options: GenericOptions)

Inject given gauge object into DOM

public get

Returns current value of the gauge

public set

value(value: number): *

Sets new value for this gauge.

public
public
public

Gauge options

public

Gauge type class

public

Performs destruction of this object properly

public abstract

Triggering gauge render on a canvas.

public

Updates gauge configuration options at runtime and redraws the gauge

Public Constructors

public constructor(options: LinearGaugeOptions) source

Override:

BaseGauge#constructor

Params:

NameTypeAttributeDescription
options LinearGaugeOptions

Public Members

public drawBox: * source

Public Methods

public draw(): LinearGauge source

Triggering linear gauge render on a canvas.

Override:

BaseGauge#draw

Return:

LinearGauge