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, OnChanges, ElementRef, EventEmitter } from '@angular/core';
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, OnChanges {
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
- readonly defaultConfiguration: {
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(_: ResizedEvent): void;
58
+ onResized(_event: ResizedEvent): void;
59
+ /**
60
+ * Clears the previous SVG and redraws chart
61
+ */
59
62
  private redrawChart;
60
- private initializeChartConfig;
61
- private drawGaugeChart;
62
- private createSvg;
63
- private adjustForScreenAndDrilldown;
64
- private prepareGaugeData;
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
- private drawCenterTexts;
69
- private alignSvg;
70
- private getRange;
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: any): void;
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "axidio-styleguide-library1-v2",
3
- "version": "0.2.6",
3
+ "version": "0.2.7",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.3.1",
6
6
  "@angular/core": "^17.3.1",