import * as i0 from '@angular/core'; import { AfterViewInit, OnChanges, OnDestroy, OnInit, ElementRef, Renderer2, SimpleChanges } from '@angular/core'; import * as i3 from '@angular/common'; declare class NgxGaugeAppend { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class NgxGaugePrepend { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class NgxGaugeValue { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class NgxGaugeLabel { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } type NgxGaugeType = 'full' | 'arch' | 'semi'; type NgxGaugeCap = 'round' | 'butt'; interface NgxGaugeThreshold { color?: string; backgroundColor?: string; bgOpacity?: number; } type NgxGaugeThresholds = Record; interface NgxGaugeMarker { color?: string; type?: 'line' | 'triangle'; size?: number; label?: string; font?: string; /** * Issue #123 / #145: color used for the marker's label text. Defaults * to `color` (the marker's stroke/fill color) when omitted, so labels * are visible on dark themes and don't inherit a stale `fillStyle` * from a previously drawn marker. */ labelColor?: string; } type NgxGaugeMarkers = Record; declare class NgxGauge implements AfterViewInit, OnChanges, OnDestroy, OnInit { private _elementRef; private _renderer; _canvas: ElementRef; _label: ElementRef; _reading: ElementRef; _labelChild: NgxGaugeLabel; _prependChild: NgxGaugePrepend; _appendChild: NgxGaugeAppend; _valueDisplayChild: NgxGaugeValue; private _size; private _min; private _max; private _animate; private _margin; private _initialized; private _context; private _animationRequestID; ariaLabel: string; ariaLabelledby: string | null; get size(): number; set size(value: number); get margin(): number; set margin(value: number); get min(): number; set min(value: number); get animate(): boolean; set animate(value: boolean); get max(): number; set max(value: number); type: NgxGaugeType; cap: NgxGaugeCap; thick: number; label: string; append: string; prepend: string; foregroundColor: string; backgroundColor: string; thresholds: NgxGaugeThresholds; markers: NgxGaugeMarkers; private _value; get value(): number; set value(val: number); duration: number; /** keep track of previous value in case of negative numbers or mistypes */ private _oldChangeVal; constructor(_elementRef: ElementRef, _renderer: Renderer2); ngOnInit(): void; ngOnChanges(changes: SimpleChanges): void; private _updateSize; ngAfterViewInit(): void; ngOnDestroy(): void; private _getBounds; private _drawShell; private _drawFill; /** * Issue #127: draw a single rounded "end cap" at either edge of the * thresholded background. Strokes a near-zero-length arc with * `lineCap='round'` so only the cap is rendered. `which='start'` rounds * the leading edge of the first range; `which='end'` rounds the * trailing edge of the last range. * * `lineCap`, `lineWidth`, and globalAlpha bookkeeping are the caller's * responsibility; this method only touches `strokeStyle`, `globalAlpha`, * the path, and `stroke()`. */ private _drawThresholdEndCap; private _addMarker; private _clear; private _getWidth; private _getHeight; private _getCanvasHeight; private _getRadius; private _getCenter; private _init; private _destroy; private _getForegroundColorByRange; private _getThresholdMatchForValue; private _getNextThreshold; private _getBackgroundColorRanges; private _getDisplacement; private _create; private _drawMarkersAndTicks; private _update; /** * Synchronous repaint at the current value. Used by ngOnChanges for * color / threshold / marker changes (#97, #151) so theme switches don't * re-run the entry animation. */ private _redraw; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class NgxGaugeModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } export { NgxGauge, NgxGaugeAppend, NgxGaugeLabel, NgxGaugeModule, NgxGaugePrepend, NgxGaugeValue }; export type { NgxGaugeCap, NgxGaugeMarker, NgxGaugeMarkers, NgxGaugeThreshold, NgxGaugeThresholds, NgxGaugeType };