axidio-styleguide-library1-v2 0.2.6 → 0.2.7
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,8 +1,8 @@
|
|
|
1
|
-
import { OnInit,
|
|
1
|
+
import { OnInit, ElementRef, EventEmitter } from '@angular/core';
|
|
2
2
|
import { ComponentUniqueId } from '../unique-id';
|
|
3
3
|
import { ResizedEvent } from 'angular-resize-event';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class GuageChartComponent extends ComponentUniqueId implements OnInit
|
|
5
|
+
export declare class GuageChartComponent extends ComponentUniqueId implements OnInit {
|
|
6
6
|
containerElt: ElementRef;
|
|
7
7
|
guagecontainerElt: ElementRef;
|
|
8
8
|
chartData: any;
|
|
@@ -12,9 +12,9 @@ export declare class GuageChartComponent extends ComponentUniqueId implements On
|
|
|
12
12
|
chartConfiguration: any;
|
|
13
13
|
dataType: string;
|
|
14
14
|
datatype_status: boolean;
|
|
15
|
-
isHeaderVisible: boolean;
|
|
16
15
|
uniqueId: string;
|
|
17
|
-
|
|
16
|
+
isHeaderVisible: boolean;
|
|
17
|
+
defaultConfiguration: {
|
|
18
18
|
margin: {
|
|
19
19
|
top: number;
|
|
20
20
|
right: number;
|
|
@@ -55,22 +55,47 @@ export declare class GuageChartComponent extends ComponentUniqueId implements On
|
|
|
55
55
|
get isAlertEnabled(): boolean;
|
|
56
56
|
ngOnInit(): void;
|
|
57
57
|
ngOnChanges(): void;
|
|
58
|
-
onResized(
|
|
58
|
+
onResized(_event: ResizedEvent): void;
|
|
59
|
+
/**
|
|
60
|
+
* Clears the previous SVG and redraws chart
|
|
61
|
+
*/
|
|
59
62
|
private redrawChart;
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
private
|
|
64
|
-
|
|
63
|
+
/**
|
|
64
|
+
* Main entry point for chart rendering
|
|
65
|
+
*/
|
|
66
|
+
private initializeLineChart;
|
|
67
|
+
/**
|
|
68
|
+
* Prepare chart configuration
|
|
69
|
+
*/
|
|
70
|
+
private prepareConfiguration;
|
|
71
|
+
/**
|
|
72
|
+
* Process data, calculate colors and angles
|
|
73
|
+
*/
|
|
74
|
+
private processChartData;
|
|
75
|
+
/**
|
|
76
|
+
* Create SVG base container
|
|
77
|
+
*/
|
|
78
|
+
private createSvgContainer;
|
|
79
|
+
/**
|
|
80
|
+
* Draw gauge arcs
|
|
81
|
+
*/
|
|
65
82
|
private drawArcs;
|
|
83
|
+
/**
|
|
84
|
+
* Draw the pointer/needle
|
|
85
|
+
*/
|
|
66
86
|
private drawPointer;
|
|
87
|
+
/**
|
|
88
|
+
* Draw numeric labels around gauge
|
|
89
|
+
*/
|
|
67
90
|
private drawLabels;
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
91
|
+
/**
|
|
92
|
+
* Draw texts (value, status, date)
|
|
93
|
+
*/
|
|
94
|
+
private drawTexts;
|
|
95
|
+
/** Convert degrees to radians */
|
|
71
96
|
private deg2rad;
|
|
72
97
|
handleClick(d: any): void;
|
|
73
|
-
handleHeaderMenuClick(id:
|
|
98
|
+
handleHeaderMenuClick(id: string): void;
|
|
74
99
|
static ɵfac: i0.ɵɵFactoryDeclaration<GuageChartComponent, never>;
|
|
75
100
|
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>;
|
|
76
101
|
}
|