@progress/kendo-angular-gauges 19.1.2-develop.3 → 19.1.2-develop.5
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/arc-gauge/arc-center-template.directive.d.ts +10 -20
- package/arc-gauge/arc-gauge.component.d.ts +12 -10
- package/arc-gauge/arc-gauge.module.d.ts +5 -6
- package/arc-gauge/color.component.d.ts +36 -1
- package/arc-gauge/colors.component.d.ts +5 -3
- package/arc-gauge/gauge-area.component.d.ts +22 -2
- package/arc-gauge/labels.component.d.ts +23 -1
- package/arc-gauge/scale.component.d.ts +40 -1
- package/circular-gauge/center-template.directive.d.ts +9 -20
- package/circular-gauge/circular-gauge.component.d.ts +4 -2
- package/circular-gauge/circular-gauge.module.d.ts +6 -7
- package/circular-gauge/gauge-area.component.d.ts +16 -2
- package/circular-gauge/labels.component.d.ts +23 -1
- package/circular-gauge/scale.component.d.ts +18 -1
- package/directives.d.ts +5 -5
- package/esm2022/arc-gauge/arc-center-template.directive.mjs +10 -20
- package/esm2022/arc-gauge/arc-gauge.component.mjs +12 -10
- package/esm2022/arc-gauge/arc-gauge.module.mjs +5 -6
- package/esm2022/arc-gauge/color.component.mjs +36 -1
- package/esm2022/arc-gauge/colors.component.mjs +5 -3
- package/esm2022/arc-gauge/gauge-area.component.mjs +22 -2
- package/esm2022/arc-gauge/labels.component.mjs +23 -1
- package/esm2022/arc-gauge/scale.component.mjs +40 -1
- package/esm2022/circular-gauge/center-template.directive.mjs +9 -20
- package/esm2022/circular-gauge/circular-gauge.component.mjs +4 -2
- package/esm2022/circular-gauge/circular-gauge.module.mjs +6 -7
- package/esm2022/circular-gauge/gauge-area.component.mjs +16 -2
- package/esm2022/circular-gauge/labels.component.mjs +23 -1
- package/esm2022/circular-gauge/scale.component.mjs +18 -1
- package/esm2022/directives.mjs +5 -5
- package/esm2022/gauges.module.mjs +3 -3
- package/esm2022/linear-gauge/gauge-area.component.mjs +10 -2
- package/esm2022/linear-gauge/labels.component.mjs +11 -1
- package/esm2022/linear-gauge/linear-gauge.component.mjs +6 -4
- package/esm2022/linear-gauge/linear-gauge.module.mjs +4 -4
- package/esm2022/linear-gauge/pointer.component.mjs +32 -1
- package/esm2022/linear-gauge/pointers.component.mjs +5 -3
- package/esm2022/linear-gauge/range.component.mjs +13 -1
- package/esm2022/linear-gauge/ranges.component.mjs +8 -3
- package/esm2022/linear-gauge/scale.component.mjs +28 -1
- package/esm2022/package-metadata.mjs +2 -2
- package/esm2022/radial-gauge/gauge-area.component.mjs +17 -2
- package/esm2022/radial-gauge/labels.component.mjs +14 -1
- package/esm2022/radial-gauge/pointer.component.mjs +23 -1
- package/esm2022/radial-gauge/pointers.component.mjs +8 -3
- package/esm2022/radial-gauge/radial-gauge.component.mjs +9 -5
- package/esm2022/radial-gauge/radial-gauge.module.mjs +5 -5
- package/esm2022/radial-gauge/range.component.mjs +13 -1
- package/esm2022/radial-gauge/ranges.component.mjs +8 -3
- package/esm2022/radial-gauge/scale.component.mjs +27 -1
- package/fesm2022/progress-kendo-angular-gauges.mjs +480 -129
- package/gauges.module.d.ts +3 -3
- package/linear-gauge/gauge-area.component.d.ts +10 -2
- package/linear-gauge/labels.component.d.ts +11 -1
- package/linear-gauge/linear-gauge.component.d.ts +6 -4
- package/linear-gauge/linear-gauge.module.d.ts +4 -4
- package/linear-gauge/pointer.component.d.ts +32 -1
- package/linear-gauge/pointers.component.d.ts +5 -3
- package/linear-gauge/range.component.d.ts +13 -1
- package/linear-gauge/ranges.component.d.ts +8 -3
- package/linear-gauge/scale.component.d.ts +28 -1
- package/package.json +6 -6
- package/radial-gauge/gauge-area.component.d.ts +17 -2
- package/radial-gauge/labels.component.d.ts +14 -1
- package/radial-gauge/pointer.component.d.ts +23 -1
- package/radial-gauge/pointers.component.d.ts +8 -3
- package/radial-gauge/radial-gauge.component.d.ts +9 -5
- package/radial-gauge/radial-gauge.module.d.ts +5 -5
- package/radial-gauge/range.component.d.ts +13 -1
- package/radial-gauge/ranges.component.d.ts +8 -3
- package/radial-gauge/scale.component.d.ts +27 -1
- package/types/arc-scale.interface.d.ts +8 -8
- package/types/border.interface.d.ts +4 -4
- package/types/cap.interface.d.ts +3 -3
- package/types/circular-gauge-scale.interface.d.ts +1 -1
- package/types/color-range.interface.d.ts +5 -5
- package/types/dash-type.interface.d.ts +1 -1
- package/types/gauge-area.interface.d.ts +7 -7
- package/types/labels.interface.d.ts +10 -10
- package/types/line-cap.d.ts +1 -1
- package/types/line.interface.d.ts +5 -5
- package/types/linear-pointer-shape.d.ts +1 -1
- package/types/linear-pointer.interface.d.ts +9 -9
- package/types/linear-scale.interface.d.ts +5 -5
- package/types/margin.interface.d.ts +5 -5
- package/types/padding.interface.d.ts +5 -5
- package/types/radial-label-position.d.ts +1 -1
- package/types/radial-labels.interface.d.ts +5 -1
- package/types/radial-pointer.interface.d.ts +7 -7
- package/types/radial-scale.interface.d.ts +8 -8
- package/types/range.interface.d.ts +5 -5
- package/types/scale.interface.d.ts +10 -10
- package/types/ticks.interface.d.ts +5 -5
|
@@ -4,20 +4,20 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { DashType } from './dash-type.interface';
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Represents the appearance settings for the border lines.
|
|
8
8
|
*/
|
|
9
9
|
export interface Border {
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Sets the color of the border line.
|
|
12
12
|
* Accepts valid CSS color strings, including hex and rgb.
|
|
13
13
|
*/
|
|
14
14
|
color?: string;
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* Sets the dash type of the border line.
|
|
17
17
|
*/
|
|
18
18
|
dashType?: DashType;
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* Sets the width of the border line in pixels.
|
|
21
21
|
*/
|
|
22
22
|
width?: number;
|
|
23
23
|
}
|
package/types/cap.interface.d.ts
CHANGED
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Represents the configuration options for the RadialGauge pointer cap.
|
|
7
7
|
*/
|
|
8
8
|
export interface Cap {
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Sets the color of the cap.
|
|
11
11
|
* Accepts valid CSS color strings, including hex and rgb.
|
|
12
12
|
*/
|
|
13
13
|
color?: string;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Sets the size of the cap as a percentage from 0 to 1.
|
|
16
16
|
*/
|
|
17
17
|
size?: number;
|
|
18
18
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { ArcScale } from './arc-scale.interface';
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Represents the scale options of the Gauge.
|
|
8
8
|
*/
|
|
9
9
|
export interface CircularGaugeScale extends ArcScale {
|
|
10
10
|
/**
|
|
@@ -3,23 +3,23 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Represents the color range configuration.
|
|
7
7
|
*/
|
|
8
8
|
export interface ColorRange {
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Sets the color of the range. Accepts valid CSS color strings, including hex and rgb.
|
|
11
11
|
*/
|
|
12
12
|
color?: string;
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* Sets the opacity of the range.
|
|
15
15
|
*/
|
|
16
16
|
opacity?: number;
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* Sets the range start value.
|
|
19
19
|
*/
|
|
20
20
|
from?: number;
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* Sets the range end value.
|
|
23
23
|
*/
|
|
24
24
|
to?: number;
|
|
25
25
|
}
|
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Represents the dash type of a line.
|
|
7
7
|
*/
|
|
8
8
|
export type DashType = 'dash' | 'dashDot' | 'dot' | 'longDash' | 'longDashDot' | 'longDashDotDot' | 'solid';
|
|
@@ -5,28 +5,28 @@
|
|
|
5
5
|
import { Border } from './border.interface';
|
|
6
6
|
import { Margin } from './margin.interface';
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
9
|
-
*
|
|
8
|
+
* Represents the configuration options for the Gauge area.
|
|
9
|
+
* Controls the entire visible area of the Gauge.
|
|
10
10
|
*/
|
|
11
11
|
export interface GaugeArea {
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Sets the background of the Gauge area. Accepts valid CSS color strings, including hex and rgb.
|
|
14
14
|
*/
|
|
15
15
|
background?: string;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* Sets the border of the Gauge area.
|
|
18
18
|
*/
|
|
19
19
|
border?: Border;
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* Sets the height of the Gauge area in pixels.
|
|
22
22
|
*/
|
|
23
23
|
height?: number;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* Sets the margin of the Gauge area.
|
|
26
26
|
*/
|
|
27
27
|
margin?: number | Margin;
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* Sets the width of the Gauge area in pixels.
|
|
30
30
|
*/
|
|
31
31
|
width?: number;
|
|
32
32
|
}
|
|
@@ -6,42 +6,42 @@ import { Border } from './border.interface';
|
|
|
6
6
|
import { Margin } from './margin.interface';
|
|
7
7
|
import { Padding } from './padding.interface';
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Represents the configuration of the scale labels.
|
|
10
10
|
*/
|
|
11
11
|
export interface Labels {
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Sets the background of the labels.
|
|
14
14
|
* Accepts valid CSS color strings, including hex and rgb.
|
|
15
15
|
*/
|
|
16
16
|
background?: string;
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* Sets the border of the labels.
|
|
19
19
|
*/
|
|
20
20
|
border?: Border;
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* Sets the color of the labels.
|
|
23
23
|
* Accepts valid CSS color strings, including hex and rgb.
|
|
24
24
|
*/
|
|
25
25
|
color?: string;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Sets the font of the labels.
|
|
28
28
|
*/
|
|
29
29
|
font?: string;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Sets the format that displays the labels.
|
|
32
32
|
* Uses the IntlService [`format`]({% slug api_intl_intlservice %}#toc-format) method.
|
|
33
33
|
*/
|
|
34
34
|
format?: string;
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
36
|
+
* Sets the margin of the labels.
|
|
37
37
|
*/
|
|
38
38
|
margin?: number | Margin;
|
|
39
39
|
/**
|
|
40
|
-
*
|
|
40
|
+
* Sets the padding of the labels.
|
|
41
41
|
*/
|
|
42
42
|
padding?: number | Padding;
|
|
43
43
|
/**
|
|
44
|
-
*
|
|
44
|
+
* Sets the function which returns the label content.
|
|
45
45
|
*
|
|
46
46
|
* The available fields in the function argument are:
|
|
47
47
|
*
|
|
@@ -51,7 +51,7 @@ export interface Labels {
|
|
|
51
51
|
*/
|
|
52
52
|
content?: (e: any) => string;
|
|
53
53
|
/**
|
|
54
|
-
*
|
|
54
|
+
* Sets the visibility of the labels.
|
|
55
55
|
*/
|
|
56
56
|
visible?: boolean;
|
|
57
57
|
}
|
package/types/line-cap.d.ts
CHANGED
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Represents the cap style of a line.
|
|
7
7
|
*/
|
|
8
8
|
export type LineCap = 'butt' | 'round' | 'square';
|
|
@@ -4,24 +4,24 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { DashType } from './dash-type.interface';
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Represents the scale line options.
|
|
8
8
|
*/
|
|
9
9
|
export interface Line {
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Sets the color of the lines.
|
|
12
12
|
* Accepts valid CSS color strings, including hex and rgb.
|
|
13
13
|
*/
|
|
14
14
|
color?: string;
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* Sets the dash type of the line.
|
|
17
17
|
*/
|
|
18
18
|
dashType?: DashType;
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* Sets the visibility of the lines.
|
|
21
21
|
*/
|
|
22
22
|
visible?: boolean;
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* Sets the width of the line in pixels.
|
|
25
25
|
*/
|
|
26
26
|
width?: number;
|
|
27
27
|
}
|
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Represents the shape of the pointer.
|
|
7
7
|
*/
|
|
8
8
|
export type LinearPointerShape = 'barIndicator' | 'arrow';
|
|
@@ -6,36 +6,36 @@ import { Border } from './border.interface';
|
|
|
6
6
|
import { Margin } from './margin.interface';
|
|
7
7
|
import { LinearPointerShape } from './linear-pointer-shape';
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Represents the configuration options for the LinearGauge pointer.
|
|
10
10
|
*/
|
|
11
11
|
export interface LinearPointer {
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Sets the border of the Gauge area.
|
|
14
14
|
*/
|
|
15
15
|
border?: Border;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
18
|
-
* Accepts valid CSS color strings, including hex and rgb
|
|
17
|
+
* Sets the color of the pointer.
|
|
18
|
+
* Accepts valid CSS color strings, including `hex` and `rgb`.
|
|
19
19
|
*/
|
|
20
20
|
color?: string;
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* Specifies the margin of the pointer.
|
|
23
23
|
*/
|
|
24
24
|
margin?: number | Margin;
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* Sets the opacity of the pointer.
|
|
27
27
|
*/
|
|
28
28
|
opacity?: number;
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
* Sets the shape of the pointer.
|
|
31
31
|
*/
|
|
32
32
|
shape?: LinearPointerShape;
|
|
33
33
|
/**
|
|
34
|
-
*
|
|
34
|
+
* Specifies the size of the pointer.
|
|
35
35
|
*/
|
|
36
36
|
size?: number;
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
38
|
+
* Sets the value of the pointer.
|
|
39
39
|
*/
|
|
40
40
|
value?: number;
|
|
41
41
|
}
|
|
@@ -6,25 +6,25 @@ import { Scale } from './scale.interface';
|
|
|
6
6
|
import { Line } from './line.interface';
|
|
7
7
|
import { Range } from './range.interface';
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Represents the scale options of the Gauge.
|
|
10
10
|
*/
|
|
11
11
|
export interface LinearScale extends Scale {
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Sets up the scale line.
|
|
14
14
|
*/
|
|
15
15
|
line?: Line;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* Defines the ranges of the scale.
|
|
18
18
|
*/
|
|
19
19
|
ranges?: Range[];
|
|
20
20
|
/**
|
|
21
21
|
* Mirrors the scale labels and ticks.
|
|
22
22
|
* If the labels are normally on the left side of the scale,
|
|
23
|
-
*
|
|
23
|
+
* mirroring the scale renders them to the right.
|
|
24
24
|
*/
|
|
25
25
|
mirror?: boolean;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Determines if the scale is vertical
|
|
28
28
|
* ([see example]({% slug orientation_lineargauge %})).
|
|
29
29
|
* @default true
|
|
30
30
|
*/
|
|
@@ -3,23 +3,23 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Represents the margin settings for each side.
|
|
7
7
|
*/
|
|
8
8
|
export interface Margin {
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Sets the top margin in pixels.
|
|
11
11
|
*/
|
|
12
12
|
top?: number;
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* Sets the right margin in pixels.
|
|
15
15
|
*/
|
|
16
16
|
right?: number;
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* Sets the bottom margin in pixels.
|
|
19
19
|
*/
|
|
20
20
|
bottom?: number;
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* Sets the left margin in pixels.
|
|
23
23
|
*/
|
|
24
24
|
left?: number;
|
|
25
25
|
}
|
|
@@ -3,23 +3,23 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Represents the padding settings for each side.
|
|
7
7
|
*/
|
|
8
8
|
export interface Padding {
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Sets the top padding in pixels.
|
|
11
11
|
*/
|
|
12
12
|
top?: number;
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* Sets the right padding in pixels.
|
|
15
15
|
*/
|
|
16
16
|
right?: number;
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* Sets the bottom padding in pixels.
|
|
19
19
|
*/
|
|
20
20
|
bottom?: number;
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* Sets the left padding in pixels.
|
|
23
23
|
*/
|
|
24
24
|
left?: number;
|
|
25
25
|
}
|
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Represents the possible positions of the RadialGauge labels.
|
|
7
7
|
*/
|
|
8
8
|
export type RadialLabelPosition = 'inside' | 'outside';
|
|
@@ -4,9 +4,13 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { Labels } from './labels.interface';
|
|
6
6
|
import { RadialLabelPosition } from './radial-label-position';
|
|
7
|
+
/**
|
|
8
|
+
* Represents the labels configuration of the Gauge.
|
|
9
|
+
*/
|
|
7
10
|
export interface RadialLabels extends Labels {
|
|
8
11
|
/**
|
|
9
|
-
*
|
|
12
|
+
* Sets the position of the labels.
|
|
13
|
+
* This property determines where the labels will be placed relative to the radial gauge.
|
|
10
14
|
*/
|
|
11
15
|
position?: RadialLabelPosition;
|
|
12
16
|
}
|
|
@@ -4,26 +4,26 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { Cap } from './cap.interface';
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Represents the configuration options for the RadialGauge pointer.
|
|
8
8
|
*/
|
|
9
9
|
export interface RadialPointer {
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Defines the settings for the cap.
|
|
12
12
|
*/
|
|
13
13
|
cap?: Cap;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
16
|
-
* Accepts valid CSS color strings, including hex and rgb
|
|
15
|
+
* Sets the color of the pointer.
|
|
16
|
+
* Accepts valid CSS color strings, including `hex` and `rgb`.
|
|
17
17
|
*/
|
|
18
18
|
color?: string;
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
21
|
-
* The default length of `1`
|
|
20
|
+
* Sets the pointer length in percent based on the distance to the scale.
|
|
21
|
+
* The default length of `1` means that the pointer exactly reaches the scale.
|
|
22
22
|
* Accepts values between `0.1` and `1.5`.
|
|
23
23
|
*/
|
|
24
24
|
length?: number;
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* Sets the pointer value.
|
|
27
27
|
*/
|
|
28
28
|
value?: number;
|
|
29
29
|
}
|
|
@@ -6,29 +6,29 @@ import { RadialLabels } from './radial-labels.interface';
|
|
|
6
6
|
import { Scale } from './scale.interface';
|
|
7
7
|
import { Range } from './range.interface';
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Represents the scale options of the Gauge.
|
|
10
10
|
*/
|
|
11
11
|
export interface RadialScale extends Scale {
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Sets up the scale labels.
|
|
14
14
|
*/
|
|
15
15
|
labels?: RadialLabels;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* Defines the distance between the range indicators and the ticks.
|
|
18
18
|
*/
|
|
19
19
|
rangeDistance?: number;
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* Defines the ranges of the scale.
|
|
22
22
|
*/
|
|
23
23
|
ranges?: Range[];
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
26
|
-
* The Gauge
|
|
25
|
+
* Sets the starting angle of the gauge.
|
|
26
|
+
* The Gauge renders clockwise where 0 degrees equals 180 degrees in the polar coordinate system.
|
|
27
27
|
*/
|
|
28
28
|
startAngle?: number;
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
31
|
-
* The Gauge
|
|
30
|
+
* Sets the ending angle of the gauge.
|
|
31
|
+
* The Gauge renders clockwise where 0 degrees equals 180 degrees in the polar coordinate system.
|
|
32
32
|
*/
|
|
33
33
|
endAngle?: number;
|
|
34
34
|
}
|
|
@@ -3,23 +3,23 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Represents the configuration for the scale ranges.
|
|
7
7
|
*/
|
|
8
8
|
export interface Range {
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Sets the start position of the range.
|
|
11
11
|
*/
|
|
12
12
|
from?: number;
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* Sets the end position of the range.
|
|
15
15
|
*/
|
|
16
16
|
to?: number;
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* Sets the range opacity.
|
|
19
19
|
*/
|
|
20
20
|
opacity?: number;
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* Sets the color of the range. Accepts valid CSS color strings, including hex and rgb.
|
|
23
23
|
*/
|
|
24
24
|
color?: string;
|
|
25
25
|
}
|
|
@@ -5,35 +5,35 @@
|
|
|
5
5
|
import { Labels } from './labels.interface';
|
|
6
6
|
import { Ticks } from './ticks.interface';
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Represents the scale options of the Gauge.
|
|
9
9
|
*/
|
|
10
10
|
export interface Scale {
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Sets the scale labels.
|
|
13
13
|
*/
|
|
14
14
|
labels?: Labels;
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* Sets the major scale ticks.
|
|
17
17
|
*/
|
|
18
18
|
majorTicks?: Ticks;
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* Sets the minor scale ticks.
|
|
21
21
|
*/
|
|
22
22
|
minorTicks?: Ticks;
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* Specifies the minimum value of the scale.
|
|
25
25
|
*/
|
|
26
26
|
min?: number;
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
28
|
+
* Specifies the maximum value of the scale.
|
|
29
29
|
*/
|
|
30
30
|
max?: number;
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* Defines the interval between minor divisions.
|
|
33
33
|
*/
|
|
34
34
|
minorUnit?: number;
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
36
|
+
* Defines the interval between major divisions.
|
|
37
37
|
*/
|
|
38
38
|
majorUnit?: number;
|
|
39
39
|
/**
|
|
@@ -41,11 +41,11 @@ export interface Scale {
|
|
|
41
41
|
*/
|
|
42
42
|
reverse?: boolean;
|
|
43
43
|
/**
|
|
44
|
-
*
|
|
44
|
+
* Specifies the width of the range indicators.
|
|
45
45
|
*/
|
|
46
46
|
rangeSize?: number;
|
|
47
47
|
/**
|
|
48
|
-
*
|
|
48
|
+
* Sets the default color of the ranges.
|
|
49
49
|
*/
|
|
50
50
|
rangePlaceholderColor?: string;
|
|
51
51
|
}
|
|
@@ -3,23 +3,23 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Represents the options for the scale ticks.
|
|
7
7
|
*/
|
|
8
8
|
export interface Ticks {
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Defines the color of the ticks. Accepts a valid CSS color string, including `hex` and `rgb`.
|
|
11
11
|
*/
|
|
12
12
|
color?: string;
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* Sets the size of the ticks. This sets the length of the line in pixels that shows the tick on the scale.
|
|
15
15
|
*/
|
|
16
16
|
size?: number;
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* Determines if the ticks are visible.
|
|
19
19
|
*/
|
|
20
20
|
visible?: boolean;
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* Sets the width of the ticks in pixels.
|
|
23
23
|
*/
|
|
24
24
|
width?: number;
|
|
25
25
|
}
|