axidio-styleguide-library1-v2 0.2.10 → 0.2.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,57 +1,28 @@
|
|
|
1
|
-
import { OnInit,
|
|
2
|
-
import { ResizedEvent } from 'angular-resize-event';
|
|
1
|
+
import { OnInit, ElementRef, EventEmitter } from '@angular/core';
|
|
3
2
|
import { ComponentUniqueId } from '../unique-id';
|
|
3
|
+
import { ResizedEvent } from 'angular-resize-event';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class GuageChartComponent extends ComponentUniqueId implements OnInit
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
export declare class GuageChartComponent extends ComponentUniqueId implements OnInit {
|
|
6
|
+
containerElt: ElementRef;
|
|
7
|
+
guagecontainerElt: ElementRef;
|
|
8
8
|
chartData: any;
|
|
9
9
|
customChartConfiguration: any;
|
|
10
10
|
clickEvent: EventEmitter<any>;
|
|
11
11
|
headerMenuclickEvent: EventEmitter<any>;
|
|
12
12
|
chartConfiguration: any;
|
|
13
|
-
dataType:
|
|
13
|
+
dataType: any;
|
|
14
14
|
datatype_status: boolean;
|
|
15
|
-
uniqueId:
|
|
15
|
+
uniqueId: any;
|
|
16
16
|
isHeaderVisible: boolean;
|
|
17
17
|
defaultConfiguration: any;
|
|
18
18
|
constructor();
|
|
19
19
|
get isAlertEnabled(): boolean;
|
|
20
|
-
|
|
21
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
20
|
+
ngOnChanges(): void;
|
|
22
21
|
onResized(event: ResizedEvent): void;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
* --------------------------------------------- */
|
|
26
|
-
private renderChart;
|
|
27
|
-
/** Merge custom config into default config */
|
|
28
|
-
private mergeConfigurations;
|
|
29
|
-
/** Handle currency or unit type */
|
|
30
|
-
private setDataType;
|
|
31
|
-
/** Resolve color map based on colorType */
|
|
32
|
-
private resolveColorMap;
|
|
33
|
-
/** Compute difference between consecutive data points */
|
|
34
|
-
private computeDataDiffs;
|
|
35
|
-
/** Convert data differences into cumulative angles */
|
|
36
|
-
private computeAngles;
|
|
37
|
-
/** D3 utility methods */
|
|
38
|
-
private deg2rad;
|
|
39
|
-
private getChartWidth;
|
|
40
|
-
private getChartHeight;
|
|
41
|
-
private createSvgContainer;
|
|
42
|
-
private adjustScaleFactors;
|
|
43
|
-
/** Draw the colored arcs */
|
|
44
|
-
private drawArcs;
|
|
45
|
-
/** Draw the pointer indicator */
|
|
46
|
-
private drawPointer;
|
|
47
|
-
/** Draw the numeric labels around the arc */
|
|
48
|
-
private drawLabels;
|
|
49
|
-
/** Draw central text blocks (value, status, date range) */
|
|
50
|
-
private drawTextBlocks;
|
|
51
|
-
private centerSvg;
|
|
52
|
-
/** Event Emitters */
|
|
22
|
+
ngOnInit(): void;
|
|
23
|
+
initializeLineChart(): void;
|
|
53
24
|
handleClick(d: any): void;
|
|
54
|
-
handleHeaderMenuClick(id:
|
|
25
|
+
handleHeaderMenuClick(id: any): void;
|
|
55
26
|
static ɵfac: i0.ɵɵFactoryDeclaration<GuageChartComponent, never>;
|
|
56
27
|
static ɵcmp: i0.ɵɵComponentDeclaration<GuageChartComponent, "lib-guage-chart", never, { "chartData": { "alias": "chartData"; "required": false; }; "customChartConfiguration": { "alias": "customChartConfiguration"; "required": false; }; }, { "clickEvent": "clickEvent"; "headerMenuclickEvent": "headerMenuclickEvent"; }, never, never, false, never>;
|
|
57
28
|
}
|