BaseGauge
Direct Subclass:
Basic abstract BaseGauge class implementing common functionality for different type of gauges.
It should not be instantiated directly but must be extended by a final gauge implementation.
Example:
class MyCoolGauge extends BaseGauge {
// theses methods below MUST be implemented:
constructor(options) {
// ... do something with options
super(options);
// ... implement anything else
}
draw() {
// ... some implementation here
return this;
}
}
Static Method Summary
Static Public Methods | ||
public static |
initialize(Type: string, options: GenericOptions) Inject given gauge object into DOM |
Constructor Summary
Public Constructor | ||
public abstract |
constructor(options: GenericOptions) |
Member Summary
Public Members | ||
public |
|
|
public |
|
|
public |
Gauge options |
|
public |
Gauge type class |
|
public set |
Sets new value for this gauge. |
|
public get |
Returns current value of the gauge |
Method Summary
Public Methods | ||
public |
destroy() Performs destruction of this object properly |
|
public abstract |
Triggering gauge render on a canvas. |
|
public |
update(options: RadialGaugeOptions): BaseGauge Updates gauge configuration options at runtime and redraws the gauge |
Static Public Methods
public static initialize(Type: string, options: GenericOptions) source
Inject given gauge object into DOM
Params:
Name | Type | Attribute | Description |
Type | string | ||
options | GenericOptions |
Public Constructors
public abstract constructor(options: GenericOptions) source
Params:
Name | Type | Attribute | Description |
options | GenericOptions |
Public Members
public canvas: SmartCanvas source
Public Methods
public update(options: RadialGaugeOptions): BaseGauge source
Updates gauge configuration options at runtime and redraws the gauge
Params:
Name | Type | Attribute | Description |
options | RadialGaugeOptions |