1 | import { ElementRef, AfterViewInit, EventEmitter, TemplateRef } from '@angular/core';
|
2 | import { BaseChartComponent } from '../common/base-chart.component';
|
3 | import { ColorHelper } from '../common/color.helper';
|
4 | import { ArcItem } from './gauge-arc.component';
|
5 | import { LegendOptions, LegendPosition } from '../common/types/legend.model';
|
6 | import { ViewDimensions } from '../common/types/view-dimension.interface';
|
7 | import * as i0 from "@angular/core";
|
8 | interface Arcs {
|
9 | backgroundArc: ArcItem;
|
10 | valueArc: ArcItem;
|
11 | }
|
12 | export declare class GaugeComponent extends BaseChartComponent implements AfterViewInit {
|
13 | legend: boolean;
|
14 | legendTitle: string;
|
15 | legendPosition: LegendPosition;
|
16 | min: number;
|
17 | max: number;
|
18 | textValue: string;
|
19 | units: string;
|
20 | bigSegments: number;
|
21 | smallSegments: number;
|
22 | results: any[];
|
23 | showAxis: boolean;
|
24 | startAngle: number;
|
25 | angleSpan: number;
|
26 | activeEntries: any[];
|
27 | axisTickFormatting: any;
|
28 | tooltipDisabled: boolean;
|
29 | valueFormatting: (value: any) => string;
|
30 | showText: boolean;
|
31 | margin: number[];
|
32 | activate: EventEmitter<any>;
|
33 | deactivate: EventEmitter<any>;
|
34 | tooltipTemplate: TemplateRef<any>;
|
35 | textEl: ElementRef;
|
36 | dims: ViewDimensions;
|
37 | domain: any[];
|
38 | valueDomain: [number, number];
|
39 | valueScale: any;
|
40 | colors: ColorHelper;
|
41 | transform: string;
|
42 | outerRadius: number;
|
43 | textRadius: number;
|
44 | resizeScale: number;
|
45 | rotation: string;
|
46 | textTransform: string;
|
47 | cornerRadius: number;
|
48 | arcs: Arcs[];
|
49 | displayValue: string;
|
50 | legendOptions: LegendOptions;
|
51 | ngAfterViewInit(): void;
|
52 | update(): void;
|
53 | getArcs(): any[];
|
54 | getDomain(): string[];
|
55 | getValueDomain(): [number, number];
|
56 | getValueScale(): any;
|
57 | getDisplayValue(): string;
|
58 | scaleText(repeat?: boolean): void;
|
59 | onClick(data: any): void;
|
60 | getLegendOptions(): LegendOptions;
|
61 | setColors(): void;
|
62 | onActivate(item: any): void;
|
63 | onDeactivate(item: any): void;
|
64 | isActive(entry: any): boolean;
|
65 | trackBy(index: number, item: Arcs): any;
|
66 | static ɵfac: i0.ɵɵFactoryDeclaration<GaugeComponent, never>;
|
67 | static ɵcmp: i0.ɵɵComponentDeclaration<GaugeComponent, "ngx-charts-gauge", never, { "legend": { "alias": "legend"; "required": false; }; "legendTitle": { "alias": "legendTitle"; "required": false; }; "legendPosition": { "alias": "legendPosition"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "textValue": { "alias": "textValue"; "required": false; }; "units": { "alias": "units"; "required": false; }; "bigSegments": { "alias": "bigSegments"; "required": false; }; "smallSegments": { "alias": "smallSegments"; "required": false; }; "results": { "alias": "results"; "required": false; }; "showAxis": { "alias": "showAxis"; "required": false; }; "startAngle": { "alias": "startAngle"; "required": false; }; "angleSpan": { "alias": "angleSpan"; "required": false; }; "activeEntries": { "alias": "activeEntries"; "required": false; }; "axisTickFormatting": { "alias": "axisTickFormatting"; "required": false; }; "tooltipDisabled": { "alias": "tooltipDisabled"; "required": false; }; "valueFormatting": { "alias": "valueFormatting"; "required": false; }; "showText": { "alias": "showText"; "required": false; }; "margin": { "alias": "margin"; "required": false; }; }, { "activate": "activate"; "deactivate": "deactivate"; }, ["tooltipTemplate"], never, false, never>;
|
68 | }
|
69 | export {};
|