@progress/kendo-angular-gauges 19.1.2-develop.4 → 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
|
@@ -14,29 +14,19 @@ import { validatePackage } from '@progress/kendo-licensing';
|
|
|
14
14
|
import { NgIf, NgTemplateOutlet } from '@angular/common';
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
18
|
-
*
|
|
17
|
+
* Represents a directive that allows customizing the center part of the `<kendo-arcgauge>` component.
|
|
18
|
+
* Use this directive to create a center template
|
|
19
19
|
* ([more information and example]({% slug centertemplate_arcgauge %})).
|
|
20
20
|
*
|
|
21
|
-
*
|
|
22
|
-
* ```ts
|
|
23
|
-
* import { Component } from '@angular/core';
|
|
24
|
-
*
|
|
25
|
-
* _@Component({
|
|
26
|
-
* selector: 'my-app',
|
|
27
|
-
* template: `
|
|
28
|
-
* <kendo-arcgauge [value]="value">
|
|
29
|
-
* <ng-template kendoArcGaugeCenterTemplate let-value="value">
|
|
30
|
-
* {{ value }}%
|
|
31
|
-
* </ng-template>
|
|
32
|
-
* </kendo-arcgauge>
|
|
33
|
-
*
|
|
34
|
-
* `
|
|
35
|
-
* })
|
|
36
|
-
* export class AppComponent {
|
|
37
|
-
* public value: number = 10;
|
|
38
|
-
* }
|
|
21
|
+
* The template context provides access to the current ArcGauge value through the `value` field.
|
|
39
22
|
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```html
|
|
25
|
+
* <kendo-arcgauge [value]="value">
|
|
26
|
+
* <ng-template kendoArcGaugeCenterTemplate let-value="value">
|
|
27
|
+
* {{ value }}%
|
|
28
|
+
* </ng-template>
|
|
29
|
+
* </kendo-arcgauge>
|
|
40
30
|
* ```
|
|
41
31
|
*/
|
|
42
32
|
class ArcCenterTemplateDirective {
|
|
@@ -265,8 +255,8 @@ const packageMetadata = {
|
|
|
265
255
|
productName: 'Kendo UI for Angular',
|
|
266
256
|
productCode: 'KENDOUIANGULAR',
|
|
267
257
|
productCodes: ['KENDOUIANGULAR'],
|
|
268
|
-
publishDate:
|
|
269
|
-
version: '19.1.2-develop.
|
|
258
|
+
publishDate: 1750431158,
|
|
259
|
+
version: '19.1.2-develop.5',
|
|
270
260
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
271
261
|
};
|
|
272
262
|
|
|
@@ -757,7 +747,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
757
747
|
* ```ts
|
|
758
748
|
* import { Component } from '@angular/core';
|
|
759
749
|
*
|
|
760
|
-
*
|
|
750
|
+
* @Component({
|
|
761
751
|
* selector: 'my-app',
|
|
762
752
|
* template: `
|
|
763
753
|
* <kendo-arcgauge [value]="value" [scale]="{ max: 100 }">
|
|
@@ -770,29 +760,31 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
770
760
|
* class AppComponent {
|
|
771
761
|
* public value: number = 10;
|
|
772
762
|
* }
|
|
773
|
-
*
|
|
774
763
|
* ```
|
|
764
|
+
*
|
|
765
|
+
* @remarks
|
|
766
|
+
* Supported children components are: {@link ArcScaleComponent}, {@link ArcLabelsComponent}, {@link ArcGaugeAreaComponent}, {@link ColorsComponent}.
|
|
775
767
|
*/
|
|
776
768
|
class ArcGaugeComponent extends GaugeComponent {
|
|
777
769
|
changeDetector;
|
|
778
770
|
/**
|
|
779
|
-
*
|
|
771
|
+
* Sets the value of the gauge.
|
|
780
772
|
*/
|
|
781
773
|
value;
|
|
782
774
|
/**
|
|
783
|
-
*
|
|
775
|
+
* Sets the color of the value pointer. Accepts a valid CSS color string, including hex and rgb.
|
|
784
776
|
*/
|
|
785
777
|
color;
|
|
786
778
|
/**
|
|
787
|
-
*
|
|
779
|
+
* Sets the color ranges of the value pointer.
|
|
788
780
|
*/
|
|
789
781
|
colors;
|
|
790
782
|
/**
|
|
791
|
-
*
|
|
783
|
+
* Sets the opacity of the value pointer.
|
|
792
784
|
*/
|
|
793
785
|
opacity;
|
|
794
786
|
/**
|
|
795
|
-
*
|
|
787
|
+
* Sets the scale options of the ArcGauge.
|
|
796
788
|
*/
|
|
797
789
|
scale;
|
|
798
790
|
centerTemplate;
|
|
@@ -819,16 +811,16 @@ class ArcGaugeComponent extends GaugeComponent {
|
|
|
819
811
|
}
|
|
820
812
|
}
|
|
821
813
|
/**
|
|
822
|
-
* Exports the
|
|
814
|
+
* Exports the Gauge as a Drawing `Scene`.
|
|
823
815
|
*
|
|
824
|
-
* @returns
|
|
816
|
+
* @returns A promise that resolves with the export visual.
|
|
825
817
|
*/
|
|
826
818
|
exportVisual() {
|
|
827
819
|
return drawDOM(this.element.nativeElement);
|
|
828
820
|
}
|
|
829
821
|
/**
|
|
830
822
|
* Detects the size of the container and redraws the Gauge.
|
|
831
|
-
* Resizing
|
|
823
|
+
* Resizing happens automatically unless you set the `resizeRateLimit` option to `0`.
|
|
832
824
|
*/
|
|
833
825
|
resize() {
|
|
834
826
|
super.resize();
|
|
@@ -933,12 +925,47 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
933
925
|
}] } });
|
|
934
926
|
|
|
935
927
|
/**
|
|
936
|
-
*
|
|
928
|
+
* Represents the configuration options for an ArcGauge color item.
|
|
929
|
+
*
|
|
930
|
+
* @example
|
|
931
|
+
* ```ts
|
|
932
|
+
* import { Component } from '@angular/core';
|
|
933
|
+
*
|
|
934
|
+
* @Component({
|
|
935
|
+
* selector: 'my-app',
|
|
936
|
+
* template: `
|
|
937
|
+
* <kendo-arcgauge [value]="value">
|
|
938
|
+
* <kendo-arcgauge-colors>
|
|
939
|
+
* <kendo-arcgauge-color
|
|
940
|
+
* [from]="0"
|
|
941
|
+
* [to]="50"
|
|
942
|
+
* color="green">
|
|
943
|
+
* </kendo-arcgauge-color>
|
|
944
|
+
* </kendo-arcgauge-colors>
|
|
945
|
+
* </kendo-arcgauge>
|
|
946
|
+
* `
|
|
947
|
+
* })
|
|
948
|
+
* export class AppComponent {
|
|
949
|
+
* public value: number = 25;
|
|
950
|
+
* }
|
|
951
|
+
* ```
|
|
937
952
|
*/
|
|
938
953
|
class ColorComponent extends CollectionItemComponent {
|
|
954
|
+
/**
|
|
955
|
+
* Sets the color of the range. Accepts a valid CSS color string, including hex and rgb.
|
|
956
|
+
*/
|
|
939
957
|
color;
|
|
958
|
+
/**
|
|
959
|
+
* Sets the opacity of the range.
|
|
960
|
+
*/
|
|
940
961
|
opacity;
|
|
962
|
+
/**
|
|
963
|
+
* Sets the start value of the range.
|
|
964
|
+
*/
|
|
941
965
|
from;
|
|
966
|
+
/**
|
|
967
|
+
* Sets the end value of the range.
|
|
968
|
+
*/
|
|
942
969
|
to;
|
|
943
970
|
constructor(configurationService, collectionChangesService) {
|
|
944
971
|
super(configurationService, collectionChangesService);
|
|
@@ -965,14 +992,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
965
992
|
}] } });
|
|
966
993
|
|
|
967
994
|
/**
|
|
968
|
-
*
|
|
995
|
+
* Represents a collection of one or more ArcGauge colors
|
|
969
996
|
* ([more information and example]({% slug colorranges_arcgauge %})).
|
|
970
997
|
*
|
|
971
998
|
* @example
|
|
972
999
|
* ```ts
|
|
973
1000
|
* import { Component } from '@angular/core';
|
|
974
1001
|
*
|
|
975
|
-
*
|
|
1002
|
+
* @Component({
|
|
976
1003
|
* selector: 'my-app',
|
|
977
1004
|
* template: `
|
|
978
1005
|
* <kendo-arcgauge [value]="value">
|
|
@@ -1003,8 +1030,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1003
1030
|
* color: '#f31700'
|
|
1004
1031
|
* }];
|
|
1005
1032
|
* }
|
|
1006
|
-
*
|
|
1007
1033
|
* ```
|
|
1034
|
+
*
|
|
1035
|
+
* @remarks
|
|
1036
|
+
* Supported children components are: {@link ColorComponent}.
|
|
1008
1037
|
*/
|
|
1009
1038
|
class ColorsComponent extends CollectionComponent {
|
|
1010
1039
|
children;
|
|
@@ -1028,8 +1057,28 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1028
1057
|
}] } });
|
|
1029
1058
|
|
|
1030
1059
|
/**
|
|
1031
|
-
*
|
|
1032
|
-
*
|
|
1060
|
+
* Represents the configuration options of the ArcGauge area.
|
|
1061
|
+
* Controls the entire visible area of the ArcGauge.
|
|
1062
|
+
*
|
|
1063
|
+
* @example
|
|
1064
|
+
* ```ts
|
|
1065
|
+
* import { Component } from '@angular/core';
|
|
1066
|
+
*
|
|
1067
|
+
* @Component({
|
|
1068
|
+
* selector: 'my-app',
|
|
1069
|
+
* template: `
|
|
1070
|
+
* <kendo-arcgauge [value]="value">
|
|
1071
|
+
* <kendo-arcgauge-area
|
|
1072
|
+
* background="lightgray"
|
|
1073
|
+
* [margin]="10">
|
|
1074
|
+
* </kendo-arcgauge-area>
|
|
1075
|
+
* </kendo-arcgauge>
|
|
1076
|
+
* `
|
|
1077
|
+
* })
|
|
1078
|
+
* export class AppComponent {
|
|
1079
|
+
* public value: number = 40;
|
|
1080
|
+
* }
|
|
1081
|
+
* ```
|
|
1033
1082
|
*/
|
|
1034
1083
|
class ArcGaugeAreaComponent extends GaugeAreaComponent {
|
|
1035
1084
|
configurationService;
|
|
@@ -1050,10 +1099,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1050
1099
|
}], ctorParameters: function () { return [{ type: ConfigurationService }]; } });
|
|
1051
1100
|
|
|
1052
1101
|
/**
|
|
1053
|
-
*
|
|
1102
|
+
* Configures the configuration options for the scale labels of the RadialGauge.
|
|
1103
|
+
*
|
|
1104
|
+
* @example
|
|
1105
|
+
* ```html
|
|
1106
|
+
* <kendo-radialgauge>
|
|
1107
|
+
* <kendo-radialgauge-scale>
|
|
1108
|
+
* <kendo-radialgauge-scale-labels [visible]="true" [format]="'N0'">
|
|
1109
|
+
* </kendo-radialgauge-scale-labels>
|
|
1110
|
+
* </kendo-radialgauge-scale>
|
|
1111
|
+
* </kendo-radialgauge>
|
|
1112
|
+
* ```
|
|
1054
1113
|
*/
|
|
1055
1114
|
class RadialLabelsComponent extends LabelsComponent {
|
|
1056
1115
|
configurationService;
|
|
1116
|
+
/**
|
|
1117
|
+
* Sepcifies rhe position of the labels relative to the scale.
|
|
1118
|
+
*/
|
|
1057
1119
|
position;
|
|
1058
1120
|
constructor(configurationService) {
|
|
1059
1121
|
super('scale.labels', configurationService);
|
|
@@ -1074,7 +1136,29 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1074
1136
|
}] } });
|
|
1075
1137
|
|
|
1076
1138
|
/**
|
|
1077
|
-
*
|
|
1139
|
+
* Represents the configuration options for the scale labels of the ArcGauge.
|
|
1140
|
+
*
|
|
1141
|
+
* @example
|
|
1142
|
+
* ```ts
|
|
1143
|
+
* import { Component } from '@angular/core';
|
|
1144
|
+
*
|
|
1145
|
+
* @Component({
|
|
1146
|
+
* selector: 'my-app',
|
|
1147
|
+
* template: `
|
|
1148
|
+
* <kendo-arcgauge [value]="value">
|
|
1149
|
+
* <kendo-arcgauge-scale>
|
|
1150
|
+
* <kendo-arcgauge-scale-labels
|
|
1151
|
+
* color="blue"
|
|
1152
|
+
* font="12px Arial">
|
|
1153
|
+
* </kendo-arcgauge-scale-labels>
|
|
1154
|
+
* </kendo-arcgauge-scale>
|
|
1155
|
+
* </kendo-arcgauge>
|
|
1156
|
+
* `
|
|
1157
|
+
* })
|
|
1158
|
+
* export class AppComponent {
|
|
1159
|
+
* public value: number = 50;
|
|
1160
|
+
* }
|
|
1161
|
+
* ```
|
|
1078
1162
|
*/
|
|
1079
1163
|
class ArcLabelsComponent extends RadialLabelsComponent {
|
|
1080
1164
|
configurationService;
|
|
@@ -1096,15 +1180,54 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1096
1180
|
}], ctorParameters: function () { return [{ type: ConfigurationService }]; } });
|
|
1097
1181
|
|
|
1098
1182
|
/**
|
|
1099
|
-
*
|
|
1183
|
+
* Represents the configuration options for the scale of the ArcGauge
|
|
1100
1184
|
* ([see example]({% slug scaleoptions_arcgauge %})).
|
|
1185
|
+
*
|
|
1186
|
+
* @example
|
|
1187
|
+
* ```ts
|
|
1188
|
+
* import { Component } from '@angular/core';
|
|
1189
|
+
*
|
|
1190
|
+
* @Component({
|
|
1191
|
+
* selector: 'my-app',
|
|
1192
|
+
* template: `
|
|
1193
|
+
* <kendo-arcgauge [value]="value">
|
|
1194
|
+
* <kendo-arcgauge-scale
|
|
1195
|
+
* [startAngle]="-90"
|
|
1196
|
+
* [endAngle]="90"
|
|
1197
|
+
* [rangeDistance]="10">
|
|
1198
|
+
* </kendo-arcgauge-scale>
|
|
1199
|
+
* </kendo-arcgauge>
|
|
1200
|
+
* `
|
|
1201
|
+
* })
|
|
1202
|
+
* export class AppComponent {
|
|
1203
|
+
* public value: number = 30;
|
|
1204
|
+
* }
|
|
1205
|
+
* ```
|
|
1206
|
+
*
|
|
1207
|
+
* @remarks
|
|
1208
|
+
* Supported children components are: {@link ArcLabelsComponent}
|
|
1101
1209
|
*/
|
|
1102
1210
|
class ArcScaleComponent extends ScaleComponent {
|
|
1103
1211
|
configurationService;
|
|
1212
|
+
/**
|
|
1213
|
+
* Sets the scale labels configuration.
|
|
1214
|
+
*/
|
|
1104
1215
|
labels;
|
|
1216
|
+
/**
|
|
1217
|
+
* Sets the distance between the scale ranges in pixels.
|
|
1218
|
+
*/
|
|
1105
1219
|
rangeDistance;
|
|
1220
|
+
/**
|
|
1221
|
+
* Sets the line cap style for the scale ranges.
|
|
1222
|
+
*/
|
|
1106
1223
|
rangeLineCap;
|
|
1224
|
+
/**
|
|
1225
|
+
* Sets the start angle of the Gauge in degrees.
|
|
1226
|
+
*/
|
|
1107
1227
|
startAngle;
|
|
1228
|
+
/**
|
|
1229
|
+
* Sets the end angle of the Gauge in degrees.
|
|
1230
|
+
*/
|
|
1108
1231
|
endAngle;
|
|
1109
1232
|
constructor(configurationService) {
|
|
1110
1233
|
super('scale', configurationService);
|
|
@@ -1133,29 +1256,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1133
1256
|
}] } });
|
|
1134
1257
|
|
|
1135
1258
|
/**
|
|
1136
|
-
*
|
|
1137
|
-
* within the `<kendo-circulargauge>` component which will be used for the center template
|
|
1259
|
+
* Represents a directive that allows customizing the center part of the `<kendo-circulargauge>` component
|
|
1138
1260
|
* ([more information and example]({% slug centertemplate_circulargauge %})).
|
|
1139
1261
|
*
|
|
1140
|
-
*
|
|
1141
|
-
* ```ts
|
|
1142
|
-
* import { Component } from '@angular/core';
|
|
1143
|
-
*
|
|
1144
|
-
* _@Component({
|
|
1145
|
-
* selector: 'my-app',
|
|
1146
|
-
* template: `
|
|
1147
|
-
* <kendo-circulargauge [value]="value">
|
|
1148
|
-
* <ng-template kendoCircularGaugeCenterTemplate let-value="value">
|
|
1149
|
-
* {{ value }}%
|
|
1150
|
-
* </ng-template>
|
|
1151
|
-
* </kendo-circulargauge>
|
|
1152
|
-
*
|
|
1153
|
-
* `
|
|
1154
|
-
* })
|
|
1155
|
-
* export class AppComponent {
|
|
1156
|
-
* public value: number = 10;
|
|
1157
|
-
* }
|
|
1262
|
+
* The template context provides access to the current CircularGauge value through the `value` field.
|
|
1158
1263
|
*
|
|
1264
|
+
* @example
|
|
1265
|
+
* ```html
|
|
1266
|
+
* <kendo-circulargauge [value]="value">
|
|
1267
|
+
* <ng-template kendoCircularGaugeCenterTemplate let-value="value">
|
|
1268
|
+
* { value }}%
|
|
1269
|
+
* </ng-template>
|
|
1270
|
+
* </kendo-circulargauge>
|
|
1159
1271
|
* ```
|
|
1160
1272
|
*/
|
|
1161
1273
|
class CircularGaugeCenterTemplateDirective {
|
|
@@ -1196,12 +1308,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1196
1308
|
* class AppComponent {
|
|
1197
1309
|
* public value: number = 10;
|
|
1198
1310
|
* }
|
|
1199
|
-
*
|
|
1200
1311
|
* ```
|
|
1312
|
+
*
|
|
1313
|
+
* @remarks
|
|
1314
|
+
* Supported children components are: {@link CircularGaugeScaleComponent}, {@link CircularGaugeLabelsComponent}, {@link CircularGaugeAreaComponent}.
|
|
1201
1315
|
*/
|
|
1202
1316
|
class CircularGaugeComponent extends ArcGaugeComponent {
|
|
1203
1317
|
/**
|
|
1204
|
-
*
|
|
1318
|
+
* Specifies the scale options of the Gauge.
|
|
1205
1319
|
*/
|
|
1206
1320
|
scale;
|
|
1207
1321
|
centerTemplate;
|
|
@@ -1257,8 +1371,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1257
1371
|
}] } });
|
|
1258
1372
|
|
|
1259
1373
|
/**
|
|
1260
|
-
*
|
|
1261
|
-
*
|
|
1374
|
+
* Represents the configuration options of the Circular Gauge area.
|
|
1375
|
+
* Sets up the entire visible area of the CircularGauge.
|
|
1376
|
+
*
|
|
1377
|
+
* @example
|
|
1378
|
+
* ```typescript
|
|
1379
|
+
* @Component({
|
|
1380
|
+
* selector: 'my-app',
|
|
1381
|
+
* template: `
|
|
1382
|
+
* <kendo-circulargauge>
|
|
1383
|
+
* <kendo-circulargauge-area background="lightblue" margin="10">
|
|
1384
|
+
* </kendo-circulargauge-area>
|
|
1385
|
+
* </kendo-circulargauge>
|
|
1386
|
+
* `
|
|
1387
|
+
* })
|
|
1388
|
+
* export class AppComponent { }
|
|
1389
|
+
* ```
|
|
1262
1390
|
*/
|
|
1263
1391
|
class CircularGaugeAreaComponent extends ArcGaugeAreaComponent {
|
|
1264
1392
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CircularGaugeAreaComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
@@ -1274,7 +1402,29 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1274
1402
|
}] });
|
|
1275
1403
|
|
|
1276
1404
|
/**
|
|
1277
|
-
*
|
|
1405
|
+
* Represents the configuration options for the scale labels of the Circular Gauge.
|
|
1406
|
+
*
|
|
1407
|
+
* @example
|
|
1408
|
+
* ```ts
|
|
1409
|
+
* import { Component } from '@angular/core';
|
|
1410
|
+
*
|
|
1411
|
+
* @Component({
|
|
1412
|
+
* selector: 'my-app',
|
|
1413
|
+
* template: `
|
|
1414
|
+
* <kendo-circulargauge [value]="value">
|
|
1415
|
+
* <kendo-circulargauge-scale>
|
|
1416
|
+
* <kendo-circulargauge-scale-labels
|
|
1417
|
+
* color="blue"
|
|
1418
|
+
* font="12px Arial">
|
|
1419
|
+
* </kendo-circulargauge-scale-labels>
|
|
1420
|
+
* </kendo-circulargauge-scale>
|
|
1421
|
+
* </kendo-circulargauge>
|
|
1422
|
+
* `
|
|
1423
|
+
* })
|
|
1424
|
+
* export class AppComponent {
|
|
1425
|
+
* public value: number = 75;
|
|
1426
|
+
* }
|
|
1427
|
+
* ```
|
|
1278
1428
|
*/
|
|
1279
1429
|
class CircularGaugeLabelsComponent extends ArcLabelsComponent {
|
|
1280
1430
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CircularGaugeLabelsComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
@@ -1290,8 +1440,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1290
1440
|
}] });
|
|
1291
1441
|
|
|
1292
1442
|
/**
|
|
1293
|
-
*
|
|
1443
|
+
* Represents the configuration options for the scale of the Circular Gauge
|
|
1294
1444
|
* ([see example]({% slug scaleoptions_circulargauge %})).
|
|
1445
|
+
*
|
|
1446
|
+
* @example
|
|
1447
|
+
* ```typescript
|
|
1448
|
+
* @Component({
|
|
1449
|
+
* selector: 'my-app',
|
|
1450
|
+
* template: `
|
|
1451
|
+
* <kendo-circulargauge>
|
|
1452
|
+
* <kendo-circulargauge-scale [min]="0" [max]="100">
|
|
1453
|
+
* </kendo-circulargauge-scale>
|
|
1454
|
+
* </kendo-circulargauge>
|
|
1455
|
+
* `
|
|
1456
|
+
* })
|
|
1457
|
+
* class AppComponent { }
|
|
1458
|
+
* ```
|
|
1459
|
+
*
|
|
1460
|
+
* @remarks
|
|
1461
|
+
* Supported children components are: {@link CircularGaugeLabelsComponent}
|
|
1295
1462
|
*/
|
|
1296
1463
|
class CircularGaugeScaleComponent extends ArcScaleComponent {
|
|
1297
1464
|
/**
|
|
@@ -1311,8 +1478,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1311
1478
|
}] });
|
|
1312
1479
|
|
|
1313
1480
|
/**
|
|
1314
|
-
*
|
|
1315
|
-
*
|
|
1481
|
+
* Represents the configuration options for the LinearGauge area.
|
|
1482
|
+
* This component controls the entire visible area of the LinearGauge.
|
|
1483
|
+
*
|
|
1484
|
+
* @example
|
|
1485
|
+
* ```html
|
|
1486
|
+
* <kendo-lineargauge>
|
|
1487
|
+
* <kendo-lineargauge-area background="lightblue" [border]="{ width: 2 }">
|
|
1488
|
+
* </kendo-lineargauge-area>
|
|
1489
|
+
* </kendo-lineargauge>
|
|
1490
|
+
* ```
|
|
1316
1491
|
*/
|
|
1317
1492
|
class LinearGaugeAreaComponent extends GaugeAreaComponent {
|
|
1318
1493
|
configurationService;
|
|
@@ -1333,7 +1508,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1333
1508
|
}], ctorParameters: function () { return [{ type: ConfigurationService }]; } });
|
|
1334
1509
|
|
|
1335
1510
|
/**
|
|
1336
|
-
*
|
|
1511
|
+
* Represents the configuration options for the LinearGauge scale labels.
|
|
1512
|
+
*
|
|
1513
|
+
* @example
|
|
1514
|
+
* ```html
|
|
1515
|
+
* <kendo-lineargauge>
|
|
1516
|
+
* <kendo-lineargauge-scale>
|
|
1517
|
+
* <kendo-lineargauge-scale-labels [visible]="true" [format]="'N0'">
|
|
1518
|
+
* </kendo-lineargauge-scale-labels>
|
|
1519
|
+
* </kendo-lineargauge-scale>
|
|
1520
|
+
* </kendo-lineargauge>
|
|
1521
|
+
* ```
|
|
1337
1522
|
*/
|
|
1338
1523
|
class LinearLabelsComponent extends LabelsComponent {
|
|
1339
1524
|
configurationService;
|
|
@@ -1360,7 +1545,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1360
1545
|
* ```ts
|
|
1361
1546
|
* import { Component } from '@angular/core';
|
|
1362
1547
|
*
|
|
1363
|
-
*
|
|
1548
|
+
* _Component({
|
|
1364
1549
|
* selector: 'my-app',
|
|
1365
1550
|
* template: `
|
|
1366
1551
|
* <kendo-lineargauge [pointer]="{ value: value }">
|
|
@@ -1370,16 +1555,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1370
1555
|
* class AppComponent {
|
|
1371
1556
|
* public value: number = 10;
|
|
1372
1557
|
* }
|
|
1373
|
-
*
|
|
1374
1558
|
* ```
|
|
1559
|
+
*
|
|
1560
|
+
* @remarks
|
|
1561
|
+
* Supported children components are: {@link LinearScaleComponent}, {@link LinearLabelsComponent}, {@link LinearGaugeAreaComponent}, {@link LinearPointersComponent}, {@link LinearRangesComponent}.
|
|
1375
1562
|
*/
|
|
1376
1563
|
class LinearGaugeComponent extends GaugeComponent {
|
|
1377
1564
|
/**
|
|
1378
|
-
*
|
|
1565
|
+
* Configures the pointers of the LinearGauge.
|
|
1379
1566
|
*/
|
|
1380
1567
|
pointer;
|
|
1381
1568
|
/**
|
|
1382
|
-
*
|
|
1569
|
+
* Configures the scale of the LinearGauge.
|
|
1383
1570
|
*/
|
|
1384
1571
|
scale;
|
|
1385
1572
|
constructor(configurationService, themeService, intlService, localizationService, element, renderer, ngZone) {
|
|
@@ -1429,15 +1616,46 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1429
1616
|
}] } });
|
|
1430
1617
|
|
|
1431
1618
|
/**
|
|
1432
|
-
*
|
|
1619
|
+
* Represents the configuration options for a pointer item of a LinearGauge.
|
|
1620
|
+
*
|
|
1621
|
+
* @example
|
|
1622
|
+
* ```html
|
|
1623
|
+
* <kendo-lineargauge>
|
|
1624
|
+
* <kendo-lineargauge-pointers>
|
|
1625
|
+
* <kendo-lineargauge-pointer [value]="35" color="#ff4500" shape="barIndicator">
|
|
1626
|
+
* </kendo-lineargauge-pointer>
|
|
1627
|
+
* </kendo-lineargauge-pointers>
|
|
1628
|
+
* </kendo-lineargauge>
|
|
1629
|
+
* ```
|
|
1433
1630
|
*/
|
|
1434
1631
|
class LinearPointerComponent extends CollectionItemComponent {
|
|
1632
|
+
/**
|
|
1633
|
+
* Configures the border settings of the pointer.
|
|
1634
|
+
*/
|
|
1435
1635
|
border;
|
|
1636
|
+
/**
|
|
1637
|
+
* Specifies the color of the pointer.
|
|
1638
|
+
*/
|
|
1436
1639
|
color;
|
|
1640
|
+
/**
|
|
1641
|
+
* Sets the margin of the pointer. You can set this option to a number or an object with specific margin values.
|
|
1642
|
+
*/
|
|
1437
1643
|
margin;
|
|
1644
|
+
/**
|
|
1645
|
+
* Controls the transparency of the pointer. The value ranges from 0 (transparent) to 1 (opaque).
|
|
1646
|
+
*/
|
|
1438
1647
|
opacity;
|
|
1648
|
+
/**
|
|
1649
|
+
* Defines the shape of the pointer.
|
|
1650
|
+
*/
|
|
1439
1651
|
shape;
|
|
1652
|
+
/**
|
|
1653
|
+
* Sets the size of the pointer in pixels.
|
|
1654
|
+
*/
|
|
1440
1655
|
size;
|
|
1656
|
+
/**
|
|
1657
|
+
* Specifies the value that the pointer displays on the scale.
|
|
1658
|
+
*/
|
|
1441
1659
|
value;
|
|
1442
1660
|
constructor(configurationService, collectionChangesService) {
|
|
1443
1661
|
super(configurationService, collectionChangesService);
|
|
@@ -1470,14 +1688,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1470
1688
|
}] } });
|
|
1471
1689
|
|
|
1472
1690
|
/**
|
|
1473
|
-
*
|
|
1691
|
+
* Represents a collection of one or more LinearGauge pointers
|
|
1474
1692
|
* ([more information]({% slug multiplepointers_lineargauge %})).
|
|
1475
1693
|
*
|
|
1476
1694
|
* @example
|
|
1477
1695
|
* ```ts
|
|
1478
1696
|
* import { Component } from '@angular/core';
|
|
1479
1697
|
*
|
|
1480
|
-
*
|
|
1698
|
+
* @Component({
|
|
1481
1699
|
* selector: 'my-app',
|
|
1482
1700
|
* template: `
|
|
1483
1701
|
* <kendo-lineargauge>
|
|
@@ -1501,8 +1719,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1501
1719
|
* color: '#8b0000'
|
|
1502
1720
|
* }];
|
|
1503
1721
|
* }
|
|
1504
|
-
*
|
|
1505
1722
|
* ```
|
|
1723
|
+
*
|
|
1724
|
+
* @remarks
|
|
1725
|
+
* Supported children components are: {@link LinearPointerComponent}
|
|
1506
1726
|
*/
|
|
1507
1727
|
class LinearPointersComponent extends CollectionComponent {
|
|
1508
1728
|
children;
|
|
@@ -1526,7 +1746,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1526
1746
|
}] } });
|
|
1527
1747
|
|
|
1528
1748
|
/**
|
|
1529
|
-
*
|
|
1749
|
+
* Represents the configuration options for a scale range item of a LinearGauge.
|
|
1750
|
+
*
|
|
1751
|
+
* @example
|
|
1752
|
+
* ```html
|
|
1753
|
+
* <kendo-lineargauge>
|
|
1754
|
+
* <kendo-lineargauge-scale>
|
|
1755
|
+
* <kendo-lineargauge-scale-ranges>
|
|
1756
|
+
* <kendo-lineargauge-scale-range *ngFor="let range of ranges" [from]="range.from" [to]="range.to" [color]="range.color">
|
|
1757
|
+
* </kendo-lineargauge-scale-range>
|
|
1758
|
+
* </kendo-lineargauge-scale-ranges>
|
|
1759
|
+
* </kendo-lineargauge-scale>
|
|
1760
|
+
* </kendo-lineargauge>
|
|
1761
|
+
* ```
|
|
1530
1762
|
*/
|
|
1531
1763
|
class LinearRangeComponent extends RangeComponent {
|
|
1532
1764
|
constructor(configurationService, collectionChangesService) {
|
|
@@ -1546,14 +1778,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1546
1778
|
}], ctorParameters: function () { return [{ type: ConfigurationService }, { type: CollectionChangesService }]; } });
|
|
1547
1779
|
|
|
1548
1780
|
/**
|
|
1549
|
-
*
|
|
1781
|
+
* Represents a collection of one or more LinearGauge scale ranges
|
|
1550
1782
|
* ([more information and example]({% slug scaleranghes_lineargauge %})).
|
|
1551
1783
|
*
|
|
1784
|
+
* You can use this component to define multiple ranges on your LinearGauge scale. Each range displays a colored segment
|
|
1785
|
+
* that highlights specific value intervals on the LinearGauge.
|
|
1786
|
+
*
|
|
1552
1787
|
* @example
|
|
1553
1788
|
* ```ts
|
|
1554
1789
|
* import { Component } from '@angular/core';
|
|
1555
1790
|
*
|
|
1556
|
-
*
|
|
1791
|
+
* @Component({
|
|
1557
1792
|
* selector: 'my-app',
|
|
1558
1793
|
* template: `
|
|
1559
1794
|
* <kendo-lineargauge>
|
|
@@ -1582,8 +1817,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1582
1817
|
* color: '#78d237'
|
|
1583
1818
|
* }];
|
|
1584
1819
|
* }
|
|
1585
|
-
*
|
|
1586
1820
|
* ```
|
|
1821
|
+
*
|
|
1822
|
+
* @remarks
|
|
1823
|
+
* Supported children components are: {@link LinearRangeComponent}
|
|
1587
1824
|
*/
|
|
1588
1825
|
class LinearRangesComponent extends CollectionComponent {
|
|
1589
1826
|
children;
|
|
@@ -1607,14 +1844,41 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1607
1844
|
}] } });
|
|
1608
1845
|
|
|
1609
1846
|
/**
|
|
1610
|
-
*
|
|
1847
|
+
* Represents the configuration options for the scale of the LinearGauge
|
|
1611
1848
|
* ([see example]({% slug scaleoptions_lineargauge %})).
|
|
1849
|
+
*
|
|
1850
|
+
* @example
|
|
1851
|
+
* ```html
|
|
1852
|
+
* <kendo-lineargauge>
|
|
1853
|
+
* <kendo-lineargauge-scale [mirror]="true" [vertical]="false">
|
|
1854
|
+
* </kendo-lineargauge-scale>
|
|
1855
|
+
* </kendo-lineargauge>
|
|
1856
|
+
* ```
|
|
1857
|
+
*
|
|
1858
|
+
* @remarks
|
|
1859
|
+
* Supported children components are: {@link LinearLabelsComponent}, {@link LinearRangesComponent}.
|
|
1612
1860
|
*/
|
|
1613
1861
|
class LinearScaleComponent extends ScaleComponent {
|
|
1614
1862
|
configurationService;
|
|
1863
|
+
/**
|
|
1864
|
+
* Configures the appearance of the scale line.
|
|
1865
|
+
*/
|
|
1615
1866
|
line;
|
|
1867
|
+
/**
|
|
1868
|
+
* Configures the ranges that are displayed on the scale.
|
|
1869
|
+
*/
|
|
1616
1870
|
ranges;
|
|
1871
|
+
/**
|
|
1872
|
+
* Mirrors the scale labels and ticks. When you set this option to `true`, the labels and ticks appear on the opposite side of the scale.
|
|
1873
|
+
*
|
|
1874
|
+
* @default false
|
|
1875
|
+
*/
|
|
1617
1876
|
mirror;
|
|
1877
|
+
/**
|
|
1878
|
+
* Sets the orientation of the scale. When you set this option to `false`, the scale displays horizontally.
|
|
1879
|
+
*
|
|
1880
|
+
* @default true
|
|
1881
|
+
*/
|
|
1618
1882
|
vertical;
|
|
1619
1883
|
constructor(configurationService) {
|
|
1620
1884
|
super('scale', configurationService);
|
|
@@ -1641,8 +1905,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1641
1905
|
}] } });
|
|
1642
1906
|
|
|
1643
1907
|
/**
|
|
1644
|
-
*
|
|
1645
|
-
*
|
|
1908
|
+
* Represents the configuration options for the RadialGauge area.
|
|
1909
|
+
* This component controls the entire visible area of the RadialGauge.
|
|
1910
|
+
*
|
|
1911
|
+
* @example
|
|
1912
|
+
* ```ts
|
|
1913
|
+
* import { Component } from '@angular/core';
|
|
1914
|
+
*
|
|
1915
|
+
* @Component({
|
|
1916
|
+
* selector: 'my-app',
|
|
1917
|
+
* template: `
|
|
1918
|
+
* <kendo-radialgauge-area background="lightblue">
|
|
1919
|
+
* </kendo-radialgauge-area>
|
|
1920
|
+
* `
|
|
1921
|
+
* })
|
|
1922
|
+
* class AppComponent {
|
|
1923
|
+
* }
|
|
1924
|
+
* ```
|
|
1646
1925
|
*/
|
|
1647
1926
|
class RadialGaugeAreaComponent extends GaugeAreaComponent {
|
|
1648
1927
|
configurationService;
|
|
@@ -1663,12 +1942,34 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1663
1942
|
}], ctorParameters: function () { return [{ type: ConfigurationService }]; } });
|
|
1664
1943
|
|
|
1665
1944
|
/**
|
|
1666
|
-
*
|
|
1945
|
+
* Represents the configuration options for a pointer in the RadialGauge.
|
|
1946
|
+
*
|
|
1947
|
+
* @example
|
|
1948
|
+
* ```html
|
|
1949
|
+
* <kendo-radialgauge>
|
|
1950
|
+
* <kendo-radialgauge-pointers>
|
|
1951
|
+
* <kendo-radialgauge-pointer [value]="35" color="#ff4500" shape="barIndicator">
|
|
1952
|
+
* </kendo-radialgauge-pointer>
|
|
1953
|
+
* </kendo-radialgauge-pointers>
|
|
1954
|
+
* </kendo-radialgauge>
|
|
1955
|
+
* ```
|
|
1667
1956
|
*/
|
|
1668
1957
|
class RadialPointerComponent extends CollectionItemComponent {
|
|
1958
|
+
/**
|
|
1959
|
+
* Configures the pointer cap.
|
|
1960
|
+
*/
|
|
1669
1961
|
cap;
|
|
1962
|
+
/**
|
|
1963
|
+
* Specifies the color of the pointer.
|
|
1964
|
+
*/
|
|
1670
1965
|
color;
|
|
1966
|
+
/**
|
|
1967
|
+
* Sets the length of the pointer as a percentage of the scale radius.
|
|
1968
|
+
*/
|
|
1671
1969
|
length;
|
|
1970
|
+
/**
|
|
1971
|
+
* Sets the value of the pointer.
|
|
1972
|
+
*/
|
|
1672
1973
|
value;
|
|
1673
1974
|
constructor(configurationService, collectionChangesService) {
|
|
1674
1975
|
super(configurationService, collectionChangesService);
|
|
@@ -1695,14 +1996,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1695
1996
|
}] } });
|
|
1696
1997
|
|
|
1697
1998
|
/**
|
|
1698
|
-
*
|
|
1999
|
+
* Represents a collection of one or more RadialGauge pointers
|
|
1699
2000
|
* ([more information and example]({% slug multiplepointers_radialgauge %})).
|
|
1700
2001
|
*
|
|
2002
|
+
* Use this component to group multiple pointer components within a RadialGauge.
|
|
2003
|
+
* Each pointer displays a specific value on the gauge.
|
|
2004
|
+
*
|
|
1701
2005
|
* @example
|
|
1702
2006
|
* ```ts
|
|
1703
2007
|
* import { Component } from '@angular/core';
|
|
1704
2008
|
*
|
|
1705
|
-
*
|
|
2009
|
+
* @Component({
|
|
1706
2010
|
* selector: 'my-app',
|
|
1707
2011
|
* template: `
|
|
1708
2012
|
* <kendo-radialgauge>
|
|
@@ -1726,8 +2030,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1726
2030
|
* color: '#78d237'
|
|
1727
2031
|
* }];
|
|
1728
2032
|
* }
|
|
1729
|
-
*
|
|
1730
2033
|
* ```
|
|
2034
|
+
*
|
|
2035
|
+
* @remarks
|
|
2036
|
+
* Supported children components are: {@link RadialPointerComponent}
|
|
1731
2037
|
*/
|
|
1732
2038
|
class RadialPointersComponent extends CollectionComponent {
|
|
1733
2039
|
children;
|
|
@@ -1757,26 +2063,30 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1757
2063
|
* ```ts
|
|
1758
2064
|
* import { Component } from '@angular/core';
|
|
1759
2065
|
*
|
|
1760
|
-
*
|
|
2066
|
+
* @Component({
|
|
1761
2067
|
* selector: 'my-app',
|
|
1762
2068
|
* template: `
|
|
1763
2069
|
* <kendo-radialgauge [pointer]="{ value: value }">
|
|
1764
2070
|
* </kendo-radialgauge>
|
|
1765
2071
|
* `
|
|
1766
2072
|
* })
|
|
1767
|
-
* class AppComponent {
|
|
2073
|
+
* export class AppComponent {
|
|
1768
2074
|
* public value: number = 10;
|
|
1769
2075
|
* }
|
|
1770
|
-
*
|
|
1771
2076
|
* ```
|
|
2077
|
+
*
|
|
2078
|
+
* @remarks
|
|
2079
|
+
* Supported children components are: {@link RadialGaugeAreaComponent}, {@link RadialLabelsComponent}, {@link RadialPointersComponent}, {@link RadialRangesComponent}, {@link RadialScaleComponent}.
|
|
1772
2080
|
*/
|
|
1773
2081
|
class RadialGaugeComponent extends GaugeComponent {
|
|
1774
2082
|
/**
|
|
1775
|
-
*
|
|
2083
|
+
* Sets the configuration of the pointers.
|
|
2084
|
+
* You can configure single or multiple pointers for the RadialGauge.
|
|
1776
2085
|
*/
|
|
1777
2086
|
pointer;
|
|
1778
2087
|
/**
|
|
1779
|
-
*
|
|
2088
|
+
* Sets the configuration of the scale.
|
|
2089
|
+
* The scale defines the range, appearance, and behavior of the gauge.
|
|
1780
2090
|
*/
|
|
1781
2091
|
scale;
|
|
1782
2092
|
constructor(configurationService, themeService, intlService, localizationService, element, renderer, ngZone) {
|
|
@@ -1826,7 +2136,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1826
2136
|
}] } });
|
|
1827
2137
|
|
|
1828
2138
|
/**
|
|
1829
|
-
*
|
|
2139
|
+
* Represents the configuration options for a range in the RadialGauge scale.
|
|
2140
|
+
*
|
|
2141
|
+
* @example
|
|
2142
|
+
* ```html
|
|
2143
|
+
* <kendo-radialgauge>
|
|
2144
|
+
* <kendo-radialgauge-scale>
|
|
2145
|
+
* <kendo-radialgauge-scale-ranges>
|
|
2146
|
+
* <kendo-radialgauge-scale-range [from]="0" [to]="50" color="red">
|
|
2147
|
+
* </kendo-radialgauge-scale-range>
|
|
2148
|
+
* </kendo-radialgauge-scale-ranges>
|
|
2149
|
+
* </kendo-radialgauge-scale>
|
|
2150
|
+
* </kendo-radialgauge>
|
|
2151
|
+
* ```
|
|
1830
2152
|
*/
|
|
1831
2153
|
class RadialRangeComponent extends RangeComponent {
|
|
1832
2154
|
constructor(configurationService, collectionChangesService) {
|
|
@@ -1846,14 +2168,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1846
2168
|
}], ctorParameters: function () { return [{ type: ConfigurationService }, { type: CollectionChangesService }]; } });
|
|
1847
2169
|
|
|
1848
2170
|
/**
|
|
1849
|
-
*
|
|
2171
|
+
* Represents a collection of one or more RadialGauge scale ranges
|
|
1850
2172
|
* ([more information and example]({% slug scaleranghes_radialgauge %})).
|
|
1851
2173
|
*
|
|
2174
|
+
* Use this component to define multiple ranges on your RadialGauge scale.
|
|
2175
|
+
* Each range displays a colored segment that highlights specific value intervals.
|
|
2176
|
+
*
|
|
1852
2177
|
* @example
|
|
1853
2178
|
* ```ts
|
|
1854
2179
|
* import { Component } from '@angular/core';
|
|
1855
2180
|
*
|
|
1856
|
-
*
|
|
2181
|
+
* @Component({
|
|
1857
2182
|
* selector: 'my-app',
|
|
1858
2183
|
* template: `
|
|
1859
2184
|
* <kendo-radialgauge>
|
|
@@ -1882,8 +2207,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1882
2207
|
* color: '#78d237'
|
|
1883
2208
|
* }];
|
|
1884
2209
|
* }
|
|
1885
|
-
*
|
|
1886
2210
|
* ```
|
|
2211
|
+
*
|
|
2212
|
+
* @remarks
|
|
2213
|
+
* Supported children components are: {@link RadialRangeComponent}
|
|
1887
2214
|
*/
|
|
1888
2215
|
class RadialRangesComponent extends CollectionComponent {
|
|
1889
2216
|
children;
|
|
@@ -1907,15 +2234,41 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1907
2234
|
}] } });
|
|
1908
2235
|
|
|
1909
2236
|
/**
|
|
1910
|
-
*
|
|
2237
|
+
* Represents the configuration options for the scale of a RadialGauge
|
|
1911
2238
|
* ([more information and example]({% slug scaleoptions_radialgauge %})).
|
|
2239
|
+
*
|
|
2240
|
+
* @example
|
|
2241
|
+
* ```html
|
|
2242
|
+
* <kendo-radialgauge>
|
|
2243
|
+
* <kendo-radialgauge-scale [startAngle]="0" [endAngle]="180">
|
|
2244
|
+
* </kendo-radialgauge-scale>
|
|
2245
|
+
* </kendo-radialgauge>
|
|
2246
|
+
* ```
|
|
2247
|
+
*
|
|
2248
|
+
* @remarks
|
|
2249
|
+
* Supported children components are: {@link RadialLabelsComponent}, {@link RadialRangesComponent}
|
|
1912
2250
|
*/
|
|
1913
2251
|
class RadialScaleComponent extends ScaleComponent {
|
|
1914
2252
|
configurationService;
|
|
2253
|
+
/**
|
|
2254
|
+
* Configures the scale labels.
|
|
2255
|
+
*/
|
|
1915
2256
|
labels;
|
|
2257
|
+
/**
|
|
2258
|
+
* Specifies the distance between the scale ranges and the ticks.
|
|
2259
|
+
*/
|
|
1916
2260
|
rangeDistance;
|
|
2261
|
+
/**
|
|
2262
|
+
* Sets the ranges of the scale.
|
|
2263
|
+
*/
|
|
1917
2264
|
ranges;
|
|
2265
|
+
/**
|
|
2266
|
+
* Specifies the start angle of the Gauge in degrees.
|
|
2267
|
+
*/
|
|
1918
2268
|
startAngle;
|
|
2269
|
+
/**
|
|
2270
|
+
* Specifies the end angle of the Gauge in degrees.
|
|
2271
|
+
*/
|
|
1919
2272
|
endAngle;
|
|
1920
2273
|
constructor(configurationService) {
|
|
1921
2274
|
super('scale', configurationService);
|
|
@@ -1944,7 +2297,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1944
2297
|
}] } });
|
|
1945
2298
|
|
|
1946
2299
|
/**
|
|
1947
|
-
*
|
|
2300
|
+
* Use this utility array to access all ArcGauge-related components and directives in a standalone Angular component.
|
|
1948
2301
|
*/
|
|
1949
2302
|
const KENDO_ARCGAUGE = [
|
|
1950
2303
|
ArcGaugeComponent,
|
|
@@ -1956,7 +2309,7 @@ const KENDO_ARCGAUGE = [
|
|
|
1956
2309
|
ColorComponent
|
|
1957
2310
|
];
|
|
1958
2311
|
/**
|
|
1959
|
-
*
|
|
2312
|
+
* Use this utility array to access all CircularGauge-related components and directives in a standalone Angular component.
|
|
1960
2313
|
*/
|
|
1961
2314
|
const KENDO_CIRCULARGAUGE = [
|
|
1962
2315
|
CircularGaugeComponent,
|
|
@@ -1966,7 +2319,7 @@ const KENDO_CIRCULARGAUGE = [
|
|
|
1966
2319
|
CircularGaugeLabelsComponent
|
|
1967
2320
|
];
|
|
1968
2321
|
/**
|
|
1969
|
-
*
|
|
2322
|
+
* Use this utility array to access all LinearGauge-related components and directives in a standalone Angular component.
|
|
1970
2323
|
*/
|
|
1971
2324
|
const KENDO_LINEARGAUGE = [
|
|
1972
2325
|
LinearGaugeComponent,
|
|
@@ -1979,7 +2332,7 @@ const KENDO_LINEARGAUGE = [
|
|
|
1979
2332
|
LinearRangesComponent
|
|
1980
2333
|
];
|
|
1981
2334
|
/**
|
|
1982
|
-
*
|
|
2335
|
+
* Use this utility array to access all RadialGauge-related components and directives in a standalone Angular component.
|
|
1983
2336
|
*/
|
|
1984
2337
|
const KENDO_RADIALGAUGE = [
|
|
1985
2338
|
RadialGaugeComponent,
|
|
@@ -1992,7 +2345,7 @@ const KENDO_RADIALGAUGE = [
|
|
|
1992
2345
|
RadialRangesComponent
|
|
1993
2346
|
];
|
|
1994
2347
|
/**
|
|
1995
|
-
*
|
|
2348
|
+
* Use this utility array to access all `@progress/kendo-angular-gauges`-related components and directives in a standalone Angular component.
|
|
1996
2349
|
*/
|
|
1997
2350
|
const KENDO_GAUGES = [
|
|
1998
2351
|
...KENDO_ARCGAUGE,
|
|
@@ -2003,25 +2356,24 @@ const KENDO_GAUGES = [
|
|
|
2003
2356
|
|
|
2004
2357
|
// IMPORTANT: NgModule export kept for backwards compatibility
|
|
2005
2358
|
/**
|
|
2006
|
-
*
|
|
2007
|
-
*
|
|
2359
|
+
* Represents the [`NgModule`](link:site.data.urls.angular['ngmodules']) definition that includes the ArcGauge component and its directives.
|
|
2360
|
+
* Import the `ArcGaugeModule` into your application
|
|
2008
2361
|
* [root module](link:site.data.urls.angular['ngmodules']#angular-modularity) or any other sub-module
|
|
2009
2362
|
* that will use the ArcGauge component.
|
|
2010
2363
|
*
|
|
2011
2364
|
* @example
|
|
2012
|
-
* ```
|
|
2365
|
+
* ```typescript
|
|
2013
2366
|
* import { NgModule } from '@angular/core';
|
|
2014
2367
|
* import { BrowserModule } from '@angular/platform-browser';
|
|
2015
2368
|
* import { ArcGaugeModule } from '@progress/kendo-angular-gauges';
|
|
2016
2369
|
* import { AppComponent } from './app.component';
|
|
2017
2370
|
*
|
|
2018
|
-
*
|
|
2371
|
+
* @NgModule({
|
|
2019
2372
|
* bootstrap: [AppComponent],
|
|
2020
2373
|
* declarations: [AppComponent],
|
|
2021
2374
|
* imports: [BrowserModule, ArcGaugeModule]
|
|
2022
2375
|
* })
|
|
2023
|
-
* export class AppModule {
|
|
2024
|
-
* }
|
|
2376
|
+
* export class AppModule { }
|
|
2025
2377
|
* ```
|
|
2026
2378
|
*/
|
|
2027
2379
|
class ArcGaugeModule {
|
|
@@ -2040,19 +2392,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
2040
2392
|
|
|
2041
2393
|
// IMPORTANT: NgModule export kept for backwards compatibility
|
|
2042
2394
|
/**
|
|
2043
|
-
*
|
|
2044
|
-
*
|
|
2395
|
+
* Represents the [NgModule](link:site.data.urls.angular['ngmodules']) definition that includes the LinearGauge component and its directives.
|
|
2396
|
+
* Import the `LinearGaugeModule` into your application
|
|
2045
2397
|
* [root module](link:site.data.urls.angular['ngmodules']#angular-modularity) or any other sub-module
|
|
2046
2398
|
* that will use the LinearGauge component.
|
|
2047
2399
|
*
|
|
2048
2400
|
* @example
|
|
2049
|
-
* ```ts
|
|
2401
|
+
* ```ts
|
|
2050
2402
|
* import { NgModule } from '@angular/core';
|
|
2051
2403
|
* import { BrowserModule } from '@angular/platform-browser';
|
|
2052
2404
|
* import { LinearGaugeModule } from '@progress/kendo-angular-gauges';
|
|
2053
2405
|
* import { AppComponent } from './app.component';
|
|
2054
2406
|
*
|
|
2055
|
-
*
|
|
2407
|
+
* @NgModule({
|
|
2056
2408
|
* bootstrap: [AppComponent],
|
|
2057
2409
|
* declarations: [AppComponent],
|
|
2058
2410
|
* imports: [BrowserModule, LinearGaugeModule]
|
|
@@ -2077,19 +2429,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
2077
2429
|
|
|
2078
2430
|
// IMPORTANT: NgModule export kept for backwards compatibility
|
|
2079
2431
|
/**
|
|
2080
|
-
*
|
|
2081
|
-
*
|
|
2432
|
+
* Represents the [NgModule](link:site.data.urls.angular['ngmodules']) definition that includes the RadialGauge component and its directives.
|
|
2433
|
+
* Import the RadialGaugeModule into your application
|
|
2082
2434
|
* [root module](link:site.data.urls.angular['ngmodules']#angular-modularity) or any other sub-module
|
|
2083
|
-
* that
|
|
2435
|
+
* that uses the RadialGauge component.
|
|
2084
2436
|
*
|
|
2085
2437
|
* @example
|
|
2086
|
-
* ```ts
|
|
2438
|
+
* ```ts
|
|
2087
2439
|
* import { NgModule } from '@angular/core';
|
|
2088
2440
|
* import { BrowserModule } from '@angular/platform-browser';
|
|
2089
2441
|
* import { RadialGaugeModule } from '@progress/kendo-angular-gauges';
|
|
2090
2442
|
* import { AppComponent } from './app.component';
|
|
2091
2443
|
*
|
|
2092
|
-
*
|
|
2444
|
+
* @NgModule({
|
|
2093
2445
|
* bootstrap: [AppComponent],
|
|
2094
2446
|
* declarations: [AppComponent],
|
|
2095
2447
|
* imports: [BrowserModule, RadialGaugeModule]
|
|
@@ -2114,25 +2466,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
2114
2466
|
|
|
2115
2467
|
// IMPORTANT: NgModule export kept for backwards compatibility
|
|
2116
2468
|
/**
|
|
2117
|
-
*
|
|
2118
|
-
*
|
|
2469
|
+
* Represents the [`NgModule`](link:site.data.urls.angular['ngmodules']) definition that includes the CircularGauge component and its directives.
|
|
2470
|
+
* Import the `CircularGaugeModule` into your application
|
|
2119
2471
|
* [root module](link:site.data.urls.angular['ngmodules']#angular-modularity) or any other sub-module
|
|
2120
|
-
* that
|
|
2472
|
+
* that uses the CircularGauge component.
|
|
2121
2473
|
*
|
|
2122
2474
|
* @example
|
|
2123
|
-
* ```ts
|
|
2475
|
+
* ```ts
|
|
2124
2476
|
* import { NgModule } from '@angular/core';
|
|
2125
2477
|
* import { BrowserModule } from '@angular/platform-browser';
|
|
2126
2478
|
* import { CircularGaugeModule } from '@progress/kendo-angular-gauges';
|
|
2127
2479
|
* import { AppComponent } from './app.component';
|
|
2128
2480
|
*
|
|
2129
|
-
*
|
|
2481
|
+
* @NgModule({
|
|
2130
2482
|
* bootstrap: [AppComponent],
|
|
2131
2483
|
* declarations: [AppComponent],
|
|
2132
2484
|
* imports: [BrowserModule, CircularGaugeModule]
|
|
2133
2485
|
* })
|
|
2134
|
-
* export class AppModule {
|
|
2135
|
-
* }
|
|
2486
|
+
* export class AppModule { }
|
|
2136
2487
|
* ```
|
|
2137
2488
|
*/
|
|
2138
2489
|
class CircularGaugeModule {
|
|
@@ -2151,9 +2502,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
2151
2502
|
|
|
2152
2503
|
// IMPORTANT: NgModule export kept for backwards compatibility
|
|
2153
2504
|
/**
|
|
2154
|
-
*
|
|
2505
|
+
* Represents the [NgModule](link:site.data.urls.angular['ngmodules']) definition that includes all Gauge components and directives.
|
|
2155
2506
|
*
|
|
2156
|
-
*
|
|
2507
|
+
* Import the `GaugesModule` into your application
|
|
2157
2508
|
* [root module](link:site.data.urls.angular['ngmodules']#angular-modularity) or any other sub-module
|
|
2158
2509
|
* that will use the Gauge components.
|
|
2159
2510
|
*
|
|
@@ -2161,7 +2512,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
2161
2512
|
* ```ts-no-run
|
|
2162
2513
|
* import { NgModule } from '@angular/core';
|
|
2163
2514
|
* import { BrowserModule } from '@angular/platform-browser';
|
|
2164
|
-
* import { GaugesModule } from '@progress/kendo-angular-
|
|
2515
|
+
* import { GaugesModule } from '@progress/kendo-angular-gauges';
|
|
2165
2516
|
* import { AppComponent } from './app.component';
|
|
2166
2517
|
*
|
|
2167
2518
|
* _@NgModule({
|