@siemens/native-charts-ng 47.7.0 → 48.0.0-next.1
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.
- package/fesm2022/siemens-native-charts-ng-gauge.mjs +299 -0
- package/fesm2022/siemens-native-charts-ng-gauge.mjs.map +1 -0
- package/fesm2022/siemens-native-charts-ng-micro-bar.mjs +46 -0
- package/fesm2022/siemens-native-charts-ng-micro-bar.mjs.map +1 -0
- package/fesm2022/siemens-native-charts-ng-micro-donut.mjs +100 -0
- package/fesm2022/siemens-native-charts-ng-micro-donut.mjs.map +1 -0
- package/fesm2022/siemens-native-charts-ng-micro-line.mjs +60 -0
- package/fesm2022/siemens-native-charts-ng-micro-line.mjs.map +1 -0
- package/fesm2022/siemens-native-charts-ng-micro-progress.mjs +40 -0
- package/fesm2022/siemens-native-charts-ng-micro-progress.mjs.map +1 -0
- package/fesm2022/siemens-native-charts-ng-utils.mjs +82 -0
- package/fesm2022/siemens-native-charts-ng-utils.mjs.map +1 -0
- package/fesm2022/siemens-native-charts-ng.mjs +8 -358
- package/fesm2022/siemens-native-charts-ng.mjs.map +1 -1
- package/{components/si-nchart-gauge/si-nchart-gauge.component.d.ts → gauge/index.d.ts} +27 -28
- package/gauge/package.json +3 -0
- package/index.d.ts +11 -5
- package/micro-bar/index.d.ts +34 -0
- package/micro-bar/package.json +3 -0
- package/micro-donut/index.d.ts +57 -0
- package/micro-donut/package.json +3 -0
- package/micro-line/index.d.ts +35 -0
- package/micro-line/package.json +3 -0
- package/micro-progress/index.d.ts +32 -0
- package/micro-progress/package.json +3 -0
- package/package.json +27 -3
- package/utils/{svg-math.d.ts → index.d.ts} +14 -5
- package/utils/package.json +3 -0
- package/components/index.d.ts +0 -5
- package/public-api.d.ts +0 -6
- package/public-api.module.d.ts +0 -8
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import { OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
6
|
-
import { Coordinate } from '../../utils/svg-math';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { OnInit, OnChanges, SimpleChanges } from '@angular/core';
|
|
3
|
+
import { Coordinate } from '@siemens/native-charts-ng/utils';
|
|
4
|
+
|
|
8
5
|
/**
|
|
9
6
|
* One series of the gauge chart.
|
|
10
7
|
*/
|
|
11
|
-
|
|
8
|
+
interface GaugeSeries {
|
|
12
9
|
/** value */
|
|
13
10
|
value: number;
|
|
14
11
|
/** color token */
|
|
@@ -24,7 +21,7 @@ export interface GaugeSeries {
|
|
|
24
21
|
* One segment of the gauge chart. The first segment starts at the `min` value of the gauge
|
|
25
22
|
* chart and ends at `endValue`.
|
|
26
23
|
*/
|
|
27
|
-
|
|
24
|
+
interface GaugeSegment {
|
|
28
25
|
/** color token for this segment. */
|
|
29
26
|
colorToken: string;
|
|
30
27
|
/** end value for this segment, exclusive except for last segment where it's inclusive */
|
|
@@ -47,83 +44,83 @@ interface Tick {
|
|
|
47
44
|
label: string;
|
|
48
45
|
textPos: Coordinate;
|
|
49
46
|
}
|
|
50
|
-
|
|
47
|
+
declare class SiNChartGaugeComponent implements OnInit, OnChanges {
|
|
51
48
|
/**
|
|
52
49
|
* Start angle in degrees
|
|
53
50
|
*
|
|
54
51
|
* @defaultValue -90
|
|
55
52
|
*/
|
|
56
|
-
readonly startAngle:
|
|
53
|
+
readonly startAngle: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
57
54
|
/**
|
|
58
55
|
* End angle in degrees
|
|
59
56
|
*
|
|
60
57
|
* @defaultValue 90
|
|
61
58
|
*/
|
|
62
|
-
readonly endAngle:
|
|
59
|
+
readonly endAngle: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
63
60
|
/**
|
|
64
61
|
* Min value, can be negative
|
|
65
62
|
*
|
|
66
63
|
* @defaultValue -100
|
|
67
64
|
*/
|
|
68
|
-
readonly min:
|
|
65
|
+
readonly min: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
69
66
|
/**
|
|
70
67
|
* Max value, can be negative
|
|
71
68
|
*
|
|
72
69
|
* @defaultValue 100
|
|
73
70
|
*/
|
|
74
|
-
readonly max:
|
|
71
|
+
readonly max: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
75
72
|
/**
|
|
76
73
|
* Display mode: `sum` to sum up multiple series or `single` for a single value with optional
|
|
77
74
|
* segmented display.
|
|
78
75
|
*
|
|
79
76
|
* @defaultValue 'sum'
|
|
80
77
|
*/
|
|
81
|
-
readonly mode:
|
|
78
|
+
readonly mode: _angular_core.InputSignal<"sum" | "single">;
|
|
82
79
|
/**
|
|
83
80
|
* Series
|
|
84
81
|
*
|
|
85
82
|
* @defaultValue []
|
|
86
83
|
*/
|
|
87
|
-
readonly series:
|
|
84
|
+
readonly series: _angular_core.InputSignal<GaugeSeries[]>;
|
|
88
85
|
/**
|
|
89
86
|
* Colored segments.
|
|
90
87
|
*
|
|
91
88
|
* @defaultValue []
|
|
92
89
|
*/
|
|
93
|
-
readonly segments:
|
|
90
|
+
readonly segments: _angular_core.InputSignal<GaugeSegment[]>;
|
|
94
91
|
/**
|
|
95
92
|
* Unit
|
|
96
93
|
*
|
|
97
94
|
* @defaultValue ''
|
|
98
95
|
*/
|
|
99
|
-
readonly unit:
|
|
96
|
+
readonly unit: _angular_core.InputSignal<string>;
|
|
100
97
|
/**
|
|
101
98
|
* Min number of decimals.
|
|
102
99
|
* @defaultValue 0
|
|
103
100
|
*/
|
|
104
|
-
readonly minNumberOfDecimals:
|
|
101
|
+
readonly minNumberOfDecimals: _angular_core.InputSignal<number>;
|
|
105
102
|
/**
|
|
106
103
|
* Max number of decimals.
|
|
107
104
|
* @defaultValue 2
|
|
108
105
|
*/
|
|
109
|
-
readonly maxNumberOfDecimals:
|
|
106
|
+
readonly maxNumberOfDecimals: _angular_core.InputSignal<number>;
|
|
110
107
|
/**
|
|
111
108
|
* Number of decimals on the axis.
|
|
112
109
|
* @defaultValue 0
|
|
113
110
|
*/
|
|
114
|
-
readonly axisNumberOfDecimals:
|
|
111
|
+
readonly axisNumberOfDecimals: _angular_core.InputSignal<number>;
|
|
115
112
|
/**
|
|
116
113
|
* Whether to show ticks
|
|
117
114
|
*
|
|
118
115
|
* @defaultValue true
|
|
119
116
|
*/
|
|
120
|
-
readonly showTicks:
|
|
117
|
+
readonly showTicks: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
121
118
|
/**
|
|
122
119
|
* Whether to show the legend
|
|
123
120
|
*
|
|
124
121
|
* @defaultValue true
|
|
125
122
|
*/
|
|
126
|
-
readonly showLegend:
|
|
123
|
+
readonly showLegend: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
127
124
|
/**
|
|
128
125
|
* Legend position:
|
|
129
126
|
* - `column`: chart and legend form a column, i.e. the legend is below the chart.
|
|
@@ -133,13 +130,13 @@ export declare class SiNChartGaugeComponent implements OnInit, OnChanges {
|
|
|
133
130
|
*
|
|
134
131
|
* @defaultValue 'row'
|
|
135
132
|
*/
|
|
136
|
-
readonly legendPosition:
|
|
133
|
+
readonly legendPosition: _angular_core.InputSignal<"row" | "column">;
|
|
137
134
|
/**
|
|
138
135
|
* Whether to show range start/end labels on the outside of the ring
|
|
139
136
|
*
|
|
140
137
|
* @defaultValue false
|
|
141
138
|
*/
|
|
142
|
-
readonly showRangeLabelsOutside:
|
|
139
|
+
readonly showRangeLabelsOutside: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
143
140
|
protected dim: {
|
|
144
141
|
width: number;
|
|
145
142
|
height: number;
|
|
@@ -169,7 +166,9 @@ export declare class SiNChartGaugeComponent implements OnInit, OnChanges {
|
|
|
169
166
|
private addInternalSeries;
|
|
170
167
|
private pushInternalSeries;
|
|
171
168
|
private containAngle;
|
|
172
|
-
static ɵfac:
|
|
173
|
-
static ɵcmp:
|
|
169
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SiNChartGaugeComponent, never>;
|
|
170
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SiNChartGaugeComponent, "si-nchart-gauge", never, { "startAngle": { "alias": "startAngle"; "required": false; "isSignal": true; }; "endAngle": { "alias": "endAngle"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "series": { "alias": "series"; "required": false; "isSignal": true; }; "segments": { "alias": "segments"; "required": false; "isSignal": true; }; "unit": { "alias": "unit"; "required": false; "isSignal": true; }; "minNumberOfDecimals": { "alias": "minNumberOfDecimals"; "required": false; "isSignal": true; }; "maxNumberOfDecimals": { "alias": "maxNumberOfDecimals"; "required": false; "isSignal": true; }; "axisNumberOfDecimals": { "alias": "axisNumberOfDecimals"; "required": false; "isSignal": true; }; "showTicks": { "alias": "showTicks"; "required": false; "isSignal": true; }; "showLegend": { "alias": "showLegend"; "required": false; "isSignal": true; }; "legendPosition": { "alias": "legendPosition"; "required": false; "isSignal": true; }; "showRangeLabelsOutside": { "alias": "showRangeLabelsOutside"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
174
171
|
}
|
|
175
|
-
|
|
172
|
+
|
|
173
|
+
export { SiNChartGaugeComponent };
|
|
174
|
+
export type { GaugeSegment, GaugeSeries };
|
package/index.d.ts
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import * as i1 from '@siemens/native-charts-ng/gauge';
|
|
2
|
+
export * from '@siemens/native-charts-ng/gauge';
|
|
3
|
+
import * as i0 from '@angular/core';
|
|
4
|
+
|
|
5
|
+
declare class SiNativeChartsNgModule {
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiNativeChartsNgModule, never>;
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SiNativeChartsNgModule, never, [typeof i1.SiNChartGaugeComponent], [typeof i1.SiNChartGaugeComponent]>;
|
|
8
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SiNativeChartsNgModule>;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export { SiNativeChartsNgModule, SiNativeChartsNgModule as SimplNativeChartsNgModule };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
|
|
3
|
+
interface MicroBarSeries {
|
|
4
|
+
values: number[];
|
|
5
|
+
/**
|
|
6
|
+
* Use a data-color. See: {@link https://element.siemens.io/fundamentals/colors/data-visualization-colors/#tokens}
|
|
7
|
+
*
|
|
8
|
+
* @example "element-data-10"
|
|
9
|
+
*/
|
|
10
|
+
colorToken: string;
|
|
11
|
+
}
|
|
12
|
+
declare class SiMicroBarComponent {
|
|
13
|
+
/** @defaultValue 64 */
|
|
14
|
+
readonly width: _angular_core.InputSignal<number>;
|
|
15
|
+
/** @defaultValue 16 */
|
|
16
|
+
readonly height: _angular_core.InputSignal<number>;
|
|
17
|
+
/**
|
|
18
|
+
* Micro bar series.
|
|
19
|
+
* Example series can be:
|
|
20
|
+
* @example
|
|
21
|
+
* ```ts
|
|
22
|
+
* Series: MicroBarSeries = { values: [2, 4, 5, 3, 5, 7, 7, 9, 11, 10, 12, 9], colorToken: 'element-data-7'};
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
readonly series: _angular_core.InputSignal<MicroBarSeries>;
|
|
26
|
+
protected barWidth: number;
|
|
27
|
+
protected padding: number;
|
|
28
|
+
protected readonly maxValue: _angular_core.Signal<number>;
|
|
29
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SiMicroBarComponent, never>;
|
|
30
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SiMicroBarComponent, "si-micro-bar", never, { "width": { "alias": "width"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "series": { "alias": "series"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export { SiMicroBarComponent };
|
|
34
|
+
export type { MicroBarSeries };
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* One series of the micro donut chart.
|
|
5
|
+
*/
|
|
6
|
+
interface MicroDonutSeries {
|
|
7
|
+
/** value in percent */
|
|
8
|
+
valuePercent: number;
|
|
9
|
+
/** color token */
|
|
10
|
+
colorToken: string;
|
|
11
|
+
/** ID exposed as `data-id` */
|
|
12
|
+
id?: string;
|
|
13
|
+
}
|
|
14
|
+
interface InternalSeries {
|
|
15
|
+
series: MicroDonutSeries;
|
|
16
|
+
path: string;
|
|
17
|
+
colorVar: string;
|
|
18
|
+
}
|
|
19
|
+
declare class SiMicroDonutComponent {
|
|
20
|
+
/**
|
|
21
|
+
* Micro donut series. Can also be an array representing multiple series.
|
|
22
|
+
* Each series, in case of multiple, forms section of the arc, in percentage
|
|
23
|
+
* of the respective value.
|
|
24
|
+
* Example series can be:
|
|
25
|
+
* @example
|
|
26
|
+
* ```ts
|
|
27
|
+
* Series: MicroDonutSeries[] = [{ valuePercent: 40, colorToken: 'element-data-4' }];
|
|
28
|
+
* ```
|
|
29
|
+
* @defaultValue []
|
|
30
|
+
*/
|
|
31
|
+
readonly series: _angular_core.InputSignal<MicroDonutSeries[]>;
|
|
32
|
+
/**
|
|
33
|
+
* Radius of donut. The radius is calculated from center of the donut to the mid point of the arc.
|
|
34
|
+
* @defaultValue 7.5
|
|
35
|
+
*/
|
|
36
|
+
readonly radius: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
37
|
+
protected readonly arcThickness: _angular_core.Signal<number>;
|
|
38
|
+
protected readonly dim: _angular_core.Signal<{
|
|
39
|
+
width: number;
|
|
40
|
+
height: number;
|
|
41
|
+
}>;
|
|
42
|
+
protected readonly backgroundPath: _angular_core.Signal<string>;
|
|
43
|
+
private readonly center;
|
|
44
|
+
private readonly min;
|
|
45
|
+
private readonly max;
|
|
46
|
+
private readonly startAngle;
|
|
47
|
+
private readonly endAngle;
|
|
48
|
+
private readonly bufferSpace;
|
|
49
|
+
protected readonly internalSeries: _angular_core.Signal<InternalSeries[]>;
|
|
50
|
+
private toInternalSeries;
|
|
51
|
+
private containAngle;
|
|
52
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SiMicroDonutComponent, never>;
|
|
53
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SiMicroDonutComponent, "si-micro-donut", never, { "series": { "alias": "series"; "required": true; "isSignal": true; }; "radius": { "alias": "radius"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export { SiMicroDonutComponent };
|
|
57
|
+
export type { MicroDonutSeries };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
|
|
3
|
+
interface MicroLineSeries {
|
|
4
|
+
/** Series values */
|
|
5
|
+
values: number[];
|
|
6
|
+
/**
|
|
7
|
+
* Use a data-color. See: {@link https://element.siemens.io/fundamentals/colors/data-visualization-colors/#tokens}
|
|
8
|
+
*
|
|
9
|
+
* @example "element-data-10"
|
|
10
|
+
*/
|
|
11
|
+
colorToken: string;
|
|
12
|
+
}
|
|
13
|
+
declare class SiMicroLineComponent {
|
|
14
|
+
/**
|
|
15
|
+
* Micro line series.
|
|
16
|
+
* Example series can be:
|
|
17
|
+
* @example
|
|
18
|
+
* ```ts
|
|
19
|
+
* Series: MicroLineSeries = { values: [2, 3, 6, 5, 4, 7, 8], colorToken: 'element-data-10' };
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
readonly series: _angular_core.InputSignal<MicroLineSeries>;
|
|
23
|
+
/** @defaultValue 64 */
|
|
24
|
+
readonly width: _angular_core.InputSignal<number>;
|
|
25
|
+
/** @defaultValue 24 */
|
|
26
|
+
readonly height: _angular_core.InputSignal<number>;
|
|
27
|
+
protected strokeWidth: number;
|
|
28
|
+
protected readonly path: _angular_core.Signal<string>;
|
|
29
|
+
private mapToCoordinates;
|
|
30
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SiMicroLineComponent, never>;
|
|
31
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SiMicroLineComponent, "si-micro-line", never, { "series": { "alias": "series"; "required": true; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export { SiMicroLineComponent };
|
|
35
|
+
export type { MicroLineSeries };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
|
|
3
|
+
interface MicroProgressSeries {
|
|
4
|
+
/** Value in percent */
|
|
5
|
+
valuePercent: number;
|
|
6
|
+
/**
|
|
7
|
+
* Use a data-color. See: {@link https://element.siemens.io/fundamentals/colors/data-visualization-colors/#tokens}
|
|
8
|
+
*
|
|
9
|
+
* @example "element-data-10"
|
|
10
|
+
*/
|
|
11
|
+
colorToken: string;
|
|
12
|
+
}
|
|
13
|
+
declare class SiMicroProgressComponent {
|
|
14
|
+
/**
|
|
15
|
+
* Micro progress series.
|
|
16
|
+
* Example series can be:
|
|
17
|
+
* @example
|
|
18
|
+
* ```ts
|
|
19
|
+
* Series: MicroProgressSeries = { valuePercent: 80, colorToken: 'element-data-7' };
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
readonly series: _angular_core.InputSignal<MicroProgressSeries>;
|
|
23
|
+
/** @defaultValue 64 */
|
|
24
|
+
readonly barWidth: _angular_core.InputSignal<number>;
|
|
25
|
+
/** @defaultValue 4 */
|
|
26
|
+
readonly barHeight: _angular_core.InputSignal<number>;
|
|
27
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SiMicroProgressComponent, never>;
|
|
28
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SiMicroProgressComponent, "si-micro-progress", never, { "series": { "alias": "series"; "required": true; "isSignal": true; }; "barWidth": { "alias": "barWidth"; "required": false; "isSignal": true; }; "barHeight": { "alias": "barHeight"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export { SiMicroProgressComponent };
|
|
32
|
+
export type { MicroProgressSeries };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@siemens/native-charts-ng",
|
|
3
3
|
"description": "Element Native charts library.",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "48.0.0-next.1",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"repository": {
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"access": "public"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
|
-
"@angular/common": "
|
|
22
|
-
"@angular/core": "
|
|
21
|
+
"@angular/common": "20",
|
|
22
|
+
"@angular/core": "20"
|
|
23
23
|
},
|
|
24
24
|
"exports": {
|
|
25
25
|
"./docs.json": {
|
|
@@ -31,6 +31,30 @@
|
|
|
31
31
|
".": {
|
|
32
32
|
"types": "./index.d.ts",
|
|
33
33
|
"default": "./fesm2022/siemens-native-charts-ng.mjs"
|
|
34
|
+
},
|
|
35
|
+
"./micro-bar": {
|
|
36
|
+
"types": "./micro-bar/index.d.ts",
|
|
37
|
+
"default": "./fesm2022/siemens-native-charts-ng-micro-bar.mjs"
|
|
38
|
+
},
|
|
39
|
+
"./gauge": {
|
|
40
|
+
"types": "./gauge/index.d.ts",
|
|
41
|
+
"default": "./fesm2022/siemens-native-charts-ng-gauge.mjs"
|
|
42
|
+
},
|
|
43
|
+
"./micro-donut": {
|
|
44
|
+
"types": "./micro-donut/index.d.ts",
|
|
45
|
+
"default": "./fesm2022/siemens-native-charts-ng-micro-donut.mjs"
|
|
46
|
+
},
|
|
47
|
+
"./micro-line": {
|
|
48
|
+
"types": "./micro-line/index.d.ts",
|
|
49
|
+
"default": "./fesm2022/siemens-native-charts-ng-micro-line.mjs"
|
|
50
|
+
},
|
|
51
|
+
"./micro-progress": {
|
|
52
|
+
"types": "./micro-progress/index.d.ts",
|
|
53
|
+
"default": "./fesm2022/siemens-native-charts-ng-micro-progress.mjs"
|
|
54
|
+
},
|
|
55
|
+
"./utils": {
|
|
56
|
+
"types": "./utils/index.d.ts",
|
|
57
|
+
"default": "./fesm2022/siemens-native-charts-ng-utils.mjs"
|
|
34
58
|
}
|
|
35
59
|
},
|
|
36
60
|
"module": "fesm2022/siemens-native-charts-ng.mjs",
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* Cartesian coordinate
|
|
7
7
|
*/
|
|
8
|
-
|
|
8
|
+
interface Coordinate {
|
|
9
9
|
x: number;
|
|
10
10
|
y: number;
|
|
11
11
|
}
|
|
@@ -16,7 +16,7 @@ export interface Coordinate {
|
|
|
16
16
|
* @param angleDeg - Angle in degrees
|
|
17
17
|
* @returns cartesian coordinate
|
|
18
18
|
*/
|
|
19
|
-
|
|
19
|
+
declare function polarToCartesian(center: Coordinate, radius: number, angleDeg: number): Coordinate;
|
|
20
20
|
/**
|
|
21
21
|
* Creates a SVG path representing an arc
|
|
22
22
|
* @param center - Center of circle in cartesian coordinate
|
|
@@ -25,14 +25,20 @@ export declare function polarToCartesian(center: Coordinate, radius: number, ang
|
|
|
25
25
|
* @param endAngle - End angel in degrees
|
|
26
26
|
* @returns SVG path string
|
|
27
27
|
*/
|
|
28
|
-
|
|
28
|
+
declare function makeArc(center: Coordinate, radius: number, startAngle: number, endAngle: number): string;
|
|
29
29
|
/**
|
|
30
30
|
* Creates a SVG path representing a line
|
|
31
31
|
* @param start - Start coordinate
|
|
32
32
|
* @param end - End coordinate
|
|
33
33
|
* @returns SVG path string
|
|
34
34
|
*/
|
|
35
|
-
|
|
35
|
+
declare function makeLine(start: Coordinate, end: Coordinate): string;
|
|
36
|
+
/**
|
|
37
|
+
* Creates a SVG path representing a poly line
|
|
38
|
+
* @param points - Object array with x y coordinates
|
|
39
|
+
* @returns SVG path string for a polyline
|
|
40
|
+
*/
|
|
41
|
+
declare function makePolyline(points: Coordinate[]): string;
|
|
36
42
|
/**
|
|
37
43
|
* Calculates the relative angle for a given value
|
|
38
44
|
* @param minAngle - min/start angle in degrees
|
|
@@ -42,4 +48,7 @@ export declare function makeLine(start: Coordinate, end: Coordinate): string;
|
|
|
42
48
|
* @param value - Value
|
|
43
49
|
* @returns Relative (from minAngle) angle in degrees
|
|
44
50
|
*/
|
|
45
|
-
|
|
51
|
+
declare function valueToRelativeAngle(minAngle: number, maxAngle: number, min: number, max: number, value: number): number;
|
|
52
|
+
|
|
53
|
+
export { makeArc, makeLine, makePolyline, polarToCartesian, valueToRelativeAngle };
|
|
54
|
+
export type { Coordinate };
|
package/components/index.d.ts
DELETED
package/public-api.d.ts
DELETED
package/public-api.module.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./components/si-nchart-gauge/si-nchart-gauge.component";
|
|
3
|
-
export declare class SiNativeChartsNgModule {
|
|
4
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SiNativeChartsNgModule, never>;
|
|
5
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SiNativeChartsNgModule, never, [typeof i1.SiNChartGaugeComponent], [typeof i1.SiNChartGaugeComponent]>;
|
|
6
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<SiNativeChartsNgModule>;
|
|
7
|
-
}
|
|
8
|
-
export { SiNativeChartsNgModule as SimplNativeChartsNgModule };
|