import { Component , NgZone , ElementRef , OnInit } from '@angular/core' ; import { BaseGauge } from './base-gauge' ; import * as CanvasGauges from 'canvas-gauges' ; export { LinearGaugeOptions } from 'canvas-gauges' ; /**
 * Implements Linear Gauge from the original library
 */ @ Component ( { selector : 'linear-gauge' , template : '<canvas #gauge></canvas>' } ) export class LinearGauge extends BaseGauge < CanvasGauges . LinearGauge , CanvasGauges . LinearGaugeOptions > implements OnInit { constructor ( el , zone ) { super ( el , zone ) ; } ngOnInit ( ) { this . gauge = new CanvasGauges . LinearGauge ( this . options ) . draw ( ) ; } }