igniteui-webcomponents-charts 5.0.0 → 5.0.2-beta.0
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/bundles/igniteui-webcomponents-charts.umd.js +1088 -948
- package/bundles/igniteui-webcomponents-charts.umd.min.js +1 -1
- package/esm2015/lib/AnchoredRadialBucketCalculator_combined.js +2 -2
- package/esm2015/lib/CalloutLayer_combined.js +1 -1
- package/esm2015/lib/CategoryBucketCalculator_combined.js +50 -50
- package/esm2015/lib/DataLegendContent_combined.js +7 -0
- package/esm2015/lib/DataLegendVisualData_combined.js +24 -14
- package/esm2015/lib/DataPieBaseChart.js +311 -298
- package/esm2015/lib/DataPieChart.js +73 -73
- package/esm2015/lib/FinancialLegend_combined.js +3 -3
- package/esm2015/lib/ItemLegend_combined.js +26 -25
- package/esm2015/lib/LegendBaseViewManager_combined.js +118 -100
- package/esm2015/lib/Legend_combined.js +13 -13
- package/esm2015/lib/PieChartViewManager_combined.js +11 -1
- package/esm2015/lib/PolarBase_combined.js +24 -24
- package/esm2015/lib/RadialBucketCalculator_combined.js +32 -32
- package/esm2015/lib/RadialPieSeries_combined.js +153 -78
- package/esm2015/lib/ScaleLegend_combined.js +82 -82
- package/esm2015/lib/ScatterBase_combined.js +23 -22
- package/esm2015/lib/ScatterPolygonSeries_combined.js +20 -20
- package/esm2015/lib/SeriesViewer_combined.js +2 -2
- package/esm2015/lib/StackedSeriesCreatedEventArgs_combined.js +2 -2
- package/esm2015/lib/igc-data-pie-base-chart-component.js +91 -83
- package/esm2015/lib/igc-data-pie-chart-component.js +23 -23
- package/esm2015/lib/igc-pie-chart-base-component.js +1 -1
- package/esm2015/lib/igc-radial-pie-series-component.js +20 -9
- package/esm2015/public_api.js +0 -1
- package/esm5/lib/AnchoredRadialBucketCalculator_combined.js +2 -2
- package/esm5/lib/CalloutLayer_combined.js +1 -1
- package/esm5/lib/CategoryBucketCalculator_combined.js +50 -50
- package/esm5/lib/DataLegendContent_combined.js +7 -0
- package/esm5/lib/DataLegendVisualData_combined.js +28 -14
- package/esm5/lib/DataPieBaseChart.js +285 -268
- package/esm5/lib/DataPieChart.js +65 -65
- package/esm5/lib/FinancialLegend_combined.js +3 -3
- package/esm5/lib/ItemLegend_combined.js +26 -25
- package/esm5/lib/LegendBaseViewManager_combined.js +118 -100
- package/esm5/lib/Legend_combined.js +13 -13
- package/esm5/lib/PieChartViewManager_combined.js +11 -1
- package/esm5/lib/PolarBase_combined.js +24 -24
- package/esm5/lib/RadialBucketCalculator_combined.js +32 -32
- package/esm5/lib/RadialPieSeries_combined.js +160 -76
- package/esm5/lib/ScaleLegend_combined.js +82 -82
- package/esm5/lib/ScatterBase_combined.js +23 -22
- package/esm5/lib/ScatterPolygonSeries_combined.js +20 -20
- package/esm5/lib/SeriesViewer_combined.js +2 -2
- package/esm5/lib/StackedSeriesCreatedEventArgs_combined.js +2 -2
- package/esm5/lib/igc-data-pie-base-chart-component.js +95 -83
- package/esm5/lib/igc-data-pie-chart-component.js +23 -23
- package/esm5/lib/igc-pie-chart-base-component.js +1 -1
- package/esm5/lib/igc-radial-pie-series-component.js +24 -9
- package/esm5/public_api.js +0 -1
- package/fesm2015/igniteui-webcomponents-charts.js +1101 -984
- package/fesm5/igniteui-webcomponents-charts.js +1087 -945
- package/lib/AnchoredRadialBucketCalculator_combined.d.ts +1 -1
- package/lib/CategoryBucketCalculator_combined.d.ts +1 -1
- package/lib/DataLegendVisualData_combined.d.ts +5 -1
- package/lib/DataPieBaseChart.d.ts +96 -92
- package/lib/DataPieChart.d.ts +26 -26
- package/lib/ItemLegend_combined.d.ts +5 -5
- package/lib/LegendBaseViewManager_combined.d.ts +33 -32
- package/lib/Legend_combined.d.ts +2 -2
- package/lib/PieChartViewManager_combined.d.ts +1 -1
- package/lib/PolarBase_combined.d.ts +1 -1
- package/lib/RadialBucketCalculator_combined.d.ts +2 -2
- package/lib/RadialPieSeries_combined.d.ts +18 -12
- package/lib/ScaleLegend_combined.d.ts +23 -23
- package/lib/ScatterBase_combined.d.ts +1 -1
- package/lib/ScatterPolygonSeries_combined.d.ts +1 -1
- package/lib/SeriesViewer_combined.d.ts +1 -1
- package/lib/StackedSeriesCreatedEventArgs_combined.d.ts +1 -1
- package/lib/igc-data-pie-base-chart-component.d.ts +3 -0
- package/lib/igc-pie-chart-base-component.d.ts +1 -1
- package/lib/igc-radial-pie-series-component.d.ts +6 -0
- package/package.json +2 -2
- package/public_api.d.ts +0 -1
- package/esm2015/lib/LegendEmptyValuesMode.js +0 -29
- package/esm5/lib/LegendEmptyValuesMode.js +0 -29
- package/lib/LegendEmptyValuesMode.d.ts +0 -22
|
@@ -269,41 +269,41 @@ export let IgcDataPieChartComponent = /*@__PURE__*/ (() => {
|
|
|
269
269
|
* Gets or sets the duration used for animating series plots when the chart is loading into view
|
|
270
270
|
*/
|
|
271
271
|
get transitionInDuration() {
|
|
272
|
-
return this.i.
|
|
272
|
+
return this.i.akh;
|
|
273
273
|
}
|
|
274
274
|
set transitionInDuration(v) {
|
|
275
|
-
this.i.
|
|
276
|
-
this._a("transitionInDuration", this.i.
|
|
275
|
+
this.i.akh = +v;
|
|
276
|
+
this._a("transitionInDuration", this.i.akh);
|
|
277
277
|
}
|
|
278
278
|
/**
|
|
279
279
|
* Gets or sets the duration used for animating series plots when the series is leaving view
|
|
280
280
|
*/
|
|
281
281
|
get transitionOutDuration() {
|
|
282
|
-
return this.i.
|
|
282
|
+
return this.i.aki;
|
|
283
283
|
}
|
|
284
284
|
set transitionOutDuration(v) {
|
|
285
|
-
this.i.
|
|
286
|
-
this._a("transitionOutDuration", this.i.
|
|
285
|
+
this.i.aki = +v;
|
|
286
|
+
this._a("transitionOutDuration", this.i.aki);
|
|
287
287
|
}
|
|
288
288
|
/**
|
|
289
289
|
* Gets or sets the easing function used for animating series plots when the chart is loading into view
|
|
290
290
|
* This can be set to one of the known values "linear" or "cubic," or it can be set to an easing function which takes a single numeric parameter and returns a number.
|
|
291
291
|
*/
|
|
292
292
|
get transitionInEasingFunction() {
|
|
293
|
-
return this.i.
|
|
293
|
+
return this.i.akb;
|
|
294
294
|
}
|
|
295
295
|
set transitionInEasingFunction(v) {
|
|
296
|
-
this.i.
|
|
296
|
+
this.i.akb = v;
|
|
297
297
|
}
|
|
298
298
|
/**
|
|
299
299
|
* Gets or sets the easing function used for animating series plots when the chart is loading into view
|
|
300
300
|
* This can be set to one of the known values "linear" or "cubic," or it can be set to an easing function which takes a single numeric parameter and returns a number.
|
|
301
301
|
*/
|
|
302
302
|
get transitionOutEasingFunction() {
|
|
303
|
-
return this.i.
|
|
303
|
+
return this.i.akc;
|
|
304
304
|
}
|
|
305
305
|
set transitionOutEasingFunction(v) {
|
|
306
|
-
this.i.
|
|
306
|
+
this.i.akc = v;
|
|
307
307
|
}
|
|
308
308
|
/**
|
|
309
309
|
* Gets the domain type of this chart
|
|
@@ -315,48 +315,48 @@ export let IgcDataPieChartComponent = /*@__PURE__*/ (() => {
|
|
|
315
315
|
* Gets or sets the type of chart series to generate from the data.
|
|
316
316
|
*/
|
|
317
317
|
get chartType() {
|
|
318
|
-
return this.i.
|
|
318
|
+
return this.i.aj6;
|
|
319
319
|
}
|
|
320
320
|
set chartType(v) {
|
|
321
|
-
this.i.
|
|
322
|
-
this._a("chartType", enumToString(DataPieChartType_$type, this.i.
|
|
321
|
+
this.i.aj6 = ensureEnum(DataPieChartType_$type, v);
|
|
322
|
+
this._a("chartType", enumToString(DataPieChartType_$type, this.i.aj6));
|
|
323
323
|
}
|
|
324
324
|
/**
|
|
325
325
|
* Gets or sets whether animation of series plots is enabled when the chart is loading into view
|
|
326
326
|
*/
|
|
327
327
|
get isTransitionInEnabled() {
|
|
328
|
-
return this.i.
|
|
328
|
+
return this.i.ake;
|
|
329
329
|
}
|
|
330
330
|
set isTransitionInEnabled(v) {
|
|
331
|
-
this.i.
|
|
332
|
-
this._a("isTransitionInEnabled", this.i.
|
|
331
|
+
this.i.ake = ensureBool(v);
|
|
332
|
+
this._a("isTransitionInEnabled", this.i.ake);
|
|
333
333
|
}
|
|
334
334
|
/**
|
|
335
335
|
* Gets or sets the method that determines how to animate series plots when the chart is loading into view
|
|
336
336
|
*/
|
|
337
337
|
get transitionInMode() {
|
|
338
|
-
return this.i.
|
|
338
|
+
return this.i.aj4;
|
|
339
339
|
}
|
|
340
340
|
set transitionInMode(v) {
|
|
341
|
-
this.i.
|
|
342
|
-
this._a("transitionInMode", enumToString(CategoryTransitionInMode_$type, this.i.
|
|
341
|
+
this.i.aj4 = ensureEnum(CategoryTransitionInMode_$type, v);
|
|
342
|
+
this._a("transitionInMode", enumToString(CategoryTransitionInMode_$type, this.i.aj4));
|
|
343
343
|
}
|
|
344
344
|
/**
|
|
345
345
|
* Gets or sets the arrival speed used for animating series plots when the chart is loading into view
|
|
346
346
|
*/
|
|
347
347
|
get transitionInSpeedType() {
|
|
348
|
-
return this.i.
|
|
348
|
+
return this.i.aj8;
|
|
349
349
|
}
|
|
350
350
|
set transitionInSpeedType(v) {
|
|
351
|
-
this.i.
|
|
352
|
-
this._a("transitionInSpeedType", enumToString(TransitionInSpeedType_$type, this.i.
|
|
351
|
+
this.i.aj8 = ensureEnum(TransitionInSpeedType_$type, v);
|
|
352
|
+
this._a("transitionInSpeedType", enumToString(TransitionInSpeedType_$type, this.i.aj8));
|
|
353
353
|
}
|
|
354
354
|
/**
|
|
355
355
|
* Export serialized visual data.
|
|
356
356
|
|
|
357
357
|
*/
|
|
358
358
|
exportSerializedVisualData() {
|
|
359
|
-
let iv = this.i.
|
|
359
|
+
let iv = this.i.akk();
|
|
360
360
|
return (iv);
|
|
361
361
|
}
|
|
362
362
|
}
|
|
@@ -6,7 +6,7 @@ import { LeaderLineType_$type } from "./LeaderLineType";
|
|
|
6
6
|
import { OthersCategoryType_$type } from "igniteui-webcomponents-core";
|
|
7
7
|
import { IgcIndexCollection } from "./igc-index-collection";
|
|
8
8
|
import { SweepDirection_$type } from "igniteui-webcomponents-core";
|
|
9
|
-
import { LegendEmptyValuesMode_$type } from "
|
|
9
|
+
import { LegendEmptyValuesMode_$type } from "igniteui-webcomponents-core";
|
|
10
10
|
import { SliceSelectionMode_$type } from "./SliceSelectionMode";
|
|
11
11
|
import { IgcObjectCollection } from "igniteui-webcomponents-core";
|
|
12
12
|
import { IgcLabelClickEventArgs } from "./igc-label-click-event-args";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { LegendEmptyValuesMode_$type } from "igniteui-webcomponents-core";
|
|
1
2
|
import { IgcAnchoredRadialSeriesComponent } from "./igc-anchored-radial-series-component";
|
|
2
3
|
import { RadialPieSeries } from "./RadialPieSeries";
|
|
3
|
-
import { getAllPropertyNames, toSpinal, toPoint, fromRect } from "igniteui-webcomponents-core";
|
|
4
|
+
import { getAllPropertyNames, toSpinal, ensureEnum, enumToString, toPoint, fromRect } from "igniteui-webcomponents-core";
|
|
4
5
|
import { RegisterElementHelper } from "igniteui-webcomponents-core";
|
|
5
6
|
/**
|
|
6
7
|
* Represents a IgxDataChartComponent radial pie series.
|
|
@@ -75,30 +76,40 @@ export let IgcRadialPieSeriesComponent = /*@__PURE__*/ (() => {
|
|
|
75
76
|
* Gets or sets the x-radius of the ellipse that is used to round the corners of the column.
|
|
76
77
|
*/
|
|
77
78
|
get radiusX() {
|
|
78
|
-
return this.i.
|
|
79
|
+
return this.i.adj;
|
|
79
80
|
}
|
|
80
81
|
set radiusX(v) {
|
|
81
|
-
this.i.
|
|
82
|
-
this._a("radiusX", this.i.
|
|
82
|
+
this.i.adj = +v;
|
|
83
|
+
this._a("radiusX", this.i.adj);
|
|
83
84
|
}
|
|
84
85
|
/**
|
|
85
86
|
* Gets or sets the y-radius of the ellipse that is used to round the corners of the column.
|
|
86
87
|
*/
|
|
87
88
|
get radiusY() {
|
|
88
|
-
return this.i.
|
|
89
|
+
return this.i.adk;
|
|
89
90
|
}
|
|
90
91
|
set radiusY(v) {
|
|
91
|
-
this.i.
|
|
92
|
-
this._a("radiusY", this.i.
|
|
92
|
+
this.i.adk = +v;
|
|
93
|
+
this._a("radiusY", this.i.adk);
|
|
93
94
|
}
|
|
94
95
|
/**
|
|
95
96
|
* Gets or sets the property name that contains the legend labels.
|
|
96
97
|
*/
|
|
97
98
|
get legendLabelMemberPath() {
|
|
98
|
-
return this.i.
|
|
99
|
+
return this.i.ado;
|
|
99
100
|
}
|
|
100
101
|
set legendLabelMemberPath(v) {
|
|
101
|
-
this.i.
|
|
102
|
+
this.i.ado = v;
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Determines display mode for zero values in the legend.
|
|
106
|
+
*/
|
|
107
|
+
get legendEmptyValuesMode() {
|
|
108
|
+
return this.i.ade;
|
|
109
|
+
}
|
|
110
|
+
set legendEmptyValuesMode(v) {
|
|
111
|
+
this.i.ade = ensureEnum(LegendEmptyValuesMode_$type, v);
|
|
112
|
+
this._a("legendEmptyValuesMode", enumToString(LegendEmptyValuesMode_$type, this.i.ade));
|
|
102
113
|
}
|
|
103
114
|
/**
|
|
104
115
|
* For a category plotted series, returns the current width of the items within the categories. This only returns a value if the items have some form of width (e.g. columns, bars, etc.) otherwise 0 is returned.
|
package/esm2015/public_api.js
CHANGED
|
@@ -1123,7 +1123,6 @@ export * from './lib/igc-pie-chart-module';
|
|
|
1123
1123
|
export * from './lib/igc-pie-chart-component';
|
|
1124
1124
|
export * from './lib/PieChartViewManager';
|
|
1125
1125
|
export * from './lib/PieLegendTemplates';
|
|
1126
|
-
export * from './lib/LegendEmptyValuesMode';
|
|
1127
1126
|
export * from './lib/LabelsPosition';
|
|
1128
1127
|
export * from './lib/LeaderLineType';
|
|
1129
1128
|
export * from './lib/SliceSelectionMode';
|
|
@@ -16,10 +16,10 @@ import { Brush } from "igniteui-webcomponents-core";
|
|
|
16
16
|
import { PenLineCap_$type } from "igniteui-webcomponents-core";
|
|
17
17
|
import { DoubleCollection } from "igniteui-webcomponents-core";
|
|
18
18
|
import { RadialFrame } from "./RadialFrame";
|
|
19
|
+
import { ProportionalCategoryAngleAxis } from "./ProportionalCategoryAngleAxis";
|
|
19
20
|
import { ScalerParams } from "./ScalerParams";
|
|
20
21
|
import { Rect } from "igniteui-webcomponents-core";
|
|
21
22
|
import { FastItemCoalescingColumn } from "./FastItemCoalescingColumn";
|
|
22
|
-
import { ProportionalCategoryAngleAxis } from "./ProportionalCategoryAngleAxis";
|
|
23
23
|
import { List$1 } from "igniteui-webcomponents-core";
|
|
24
24
|
import { SeriesLayerPropertyOverlay } from "./SeriesLayerPropertyOverlay";
|
|
25
25
|
import { DataLegendSeriesValueInfo } from "igniteui-webcomponents-core";
|
|
@@ -131,7 +131,7 @@ var AnchoredRadialSeries = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
131
131
|
};
|
|
132
132
|
AnchoredRadialSeries.prototype.kr = function (a) {
|
|
133
133
|
if (this.yr != null && this.yr.cl) {
|
|
134
|
-
if (a == this.yr.
|
|
134
|
+
if (a == this.yr.othersIndex) {
|
|
135
135
|
return this.yy;
|
|
136
136
|
}
|
|
137
137
|
}
|
|
@@ -1233,7 +1233,7 @@ var CalloutLayer = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
1233
1233
|
d = true;
|
|
1234
1234
|
}
|
|
1235
1235
|
a.kg = this.zs;
|
|
1236
|
-
if (!a.gg && a.d9(this.aa9, this.aa4, this.aa0, this.abn)) {
|
|
1236
|
+
if (!a.gg && a.d9(this.aa9, this.aa4, this.aa0, this.abn, false)) {
|
|
1237
1237
|
var e = this.aa9;
|
|
1238
1238
|
var _loop_1 = function (f) {
|
|
1239
1239
|
var g = e._inner[f];
|
|
@@ -765,104 +765,104 @@ var CategorySeries = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
765
765
|
enumerable: false,
|
|
766
766
|
configurable: true
|
|
767
767
|
});
|
|
768
|
-
CategorySeries.prototype.d9 = function (a, b, c, d) {
|
|
768
|
+
CategorySeries.prototype.d9 = function (a, b, c, d, e) {
|
|
769
769
|
var _this = this;
|
|
770
770
|
if (!this.hasMarkers) {
|
|
771
771
|
return false;
|
|
772
772
|
}
|
|
773
|
-
var
|
|
774
|
-
var
|
|
775
|
-
var
|
|
776
|
-
|
|
777
|
-
var
|
|
778
|
-
var
|
|
779
|
-
|
|
780
|
-
var
|
|
781
|
-
var
|
|
782
|
-
var
|
|
783
|
-
var
|
|
784
|
-
if (
|
|
785
|
-
|
|
773
|
+
var f = this.getEffectiveViewport1(this.ct);
|
|
774
|
+
var g = this.yk();
|
|
775
|
+
var h = new ScalerParams(1, this.c9.vl, this.wl, g.ch);
|
|
776
|
+
h.c = f;
|
|
777
|
+
var i = this.y0();
|
|
778
|
+
var j = new ScalerParams(1, this.c9.vl, this.wl, i.ch);
|
|
779
|
+
j.c = f;
|
|
780
|
+
var k = this.c9.vl;
|
|
781
|
+
var l = this.wl;
|
|
782
|
+
var m = this.currentMode2Index;
|
|
783
|
+
var n = 0;
|
|
784
|
+
if (g.ce && g.cc) {
|
|
785
|
+
n = g.getSeriesOffset(k, l, f, m, g.categoryMode);
|
|
786
786
|
}
|
|
787
787
|
a.clear();
|
|
788
|
-
this.wy.cj(function (
|
|
789
|
-
if (
|
|
790
|
-
var
|
|
791
|
-
var
|
|
792
|
-
var
|
|
793
|
-
if (
|
|
788
|
+
this.wy.cj(function (o) {
|
|
789
|
+
if (o._visibility == 0) {
|
|
790
|
+
var p = new SeriesPointOfInterest();
|
|
791
|
+
var q = o.n;
|
|
792
|
+
var r = o.o;
|
|
793
|
+
if (q < _this.wl.left || q > _this.wl.right || r < _this.wl.top || r > _this.wl.bottom) {
|
|
794
794
|
return;
|
|
795
795
|
}
|
|
796
796
|
if (_this.isVertical) {
|
|
797
|
-
if (
|
|
798
|
-
|
|
797
|
+
if (g.cb && !g.ce && g.categoryMode != 0) {
|
|
798
|
+
p.e = o.ak;
|
|
799
799
|
}
|
|
800
800
|
else {
|
|
801
|
-
|
|
801
|
+
p.e = g.en(r, h);
|
|
802
802
|
}
|
|
803
|
-
|
|
803
|
+
p.d = i.en(q, j);
|
|
804
804
|
}
|
|
805
805
|
else {
|
|
806
|
-
if (
|
|
807
|
-
|
|
806
|
+
if (g.cb && !g.ce && g.categoryMode != 0) {
|
|
807
|
+
p.d = o.ak;
|
|
808
808
|
}
|
|
809
809
|
else {
|
|
810
|
-
|
|
810
|
+
p.d = g.en(q, h);
|
|
811
811
|
}
|
|
812
|
-
|
|
812
|
+
p.e = i.en(r, j);
|
|
813
813
|
}
|
|
814
|
-
|
|
814
|
+
p.b = o.content;
|
|
815
815
|
if (b) {
|
|
816
816
|
if (_this.isVertical) {
|
|
817
817
|
if (c) {
|
|
818
|
-
|
|
818
|
+
p.f = _this.zq(p.d, d);
|
|
819
819
|
}
|
|
820
820
|
else {
|
|
821
|
-
var
|
|
822
|
-
if (!isNaN_(
|
|
823
|
-
|
|
821
|
+
var s = _this.jb(o);
|
|
822
|
+
if (!isNaN_(s)) {
|
|
823
|
+
p.f = _this.zq(s, d);
|
|
824
824
|
}
|
|
825
825
|
else {
|
|
826
|
-
|
|
826
|
+
p.f = _this.zq(p.d, d);
|
|
827
827
|
}
|
|
828
828
|
}
|
|
829
829
|
}
|
|
830
830
|
else {
|
|
831
831
|
if (c) {
|
|
832
|
-
|
|
832
|
+
p.f = _this.zq(p.e, d);
|
|
833
833
|
}
|
|
834
834
|
else {
|
|
835
|
-
var
|
|
836
|
-
if (!isNaN_(
|
|
837
|
-
|
|
835
|
+
var t = _this.jb(o);
|
|
836
|
+
if (!isNaN_(t)) {
|
|
837
|
+
p.f = _this.zq(t, d);
|
|
838
838
|
}
|
|
839
839
|
else {
|
|
840
|
-
|
|
840
|
+
p.f = _this.zq(p.e, d);
|
|
841
841
|
}
|
|
842
842
|
}
|
|
843
843
|
}
|
|
844
844
|
}
|
|
845
845
|
else {
|
|
846
|
-
var
|
|
847
|
-
if (
|
|
848
|
-
var
|
|
849
|
-
if (
|
|
850
|
-
|
|
846
|
+
var u = _this.at(true);
|
|
847
|
+
if (u != null) {
|
|
848
|
+
var v = _this.kq(o.ak, false);
|
|
849
|
+
if (v != null) {
|
|
850
|
+
p.f = u.i(v);
|
|
851
851
|
}
|
|
852
852
|
else {
|
|
853
|
-
|
|
853
|
+
p.f = null;
|
|
854
854
|
}
|
|
855
855
|
}
|
|
856
856
|
else {
|
|
857
|
-
|
|
857
|
+
p.f = g.ge(o.ak);
|
|
858
858
|
}
|
|
859
859
|
}
|
|
860
|
-
|
|
861
|
-
|
|
860
|
+
p.c = o.ak;
|
|
861
|
+
p.g = _this.va;
|
|
862
862
|
if (_this.g7) {
|
|
863
|
-
|
|
863
|
+
p.g = _this.vh(o.ak);
|
|
864
864
|
}
|
|
865
|
-
a.add(
|
|
865
|
+
a.add(p);
|
|
866
866
|
}
|
|
867
867
|
});
|
|
868
868
|
return true;
|
|
@@ -34,8 +34,10 @@ import { Extensions } from "igniteui-webcomponents-core";
|
|
|
34
34
|
import { TextBlock } from "igniteui-webcomponents-core";
|
|
35
35
|
import { DataLegendVisualDataRow } from "./DataLegendVisualDataRow";
|
|
36
36
|
import { DataLegendVisualDataColumn } from "./DataLegendVisualDataColumn";
|
|
37
|
+
import { ILegendContext_$type } from "igniteui-webcomponents-core";
|
|
37
38
|
import { RectData } from "igniteui-webcomponents-core";
|
|
38
39
|
import { AppearanceHelper } from "igniteui-webcomponents-core";
|
|
40
|
+
import { PrimitiveAppearanceData } from "igniteui-webcomponents-core";
|
|
39
41
|
import { FrameworkElement } from "igniteui-webcomponents-core";
|
|
40
42
|
import { DataLegendSummaryEventArgs } from "./DataLegendSummaryEventArgs";
|
|
41
43
|
import { DataLegendSummaryCalculationTotal } from "./DataLegendSummaryCalculationTotal";
|
|
@@ -776,6 +778,11 @@ var XamDataLegend = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
776
778
|
l.badgeMarginBottom = k.z.bottom;
|
|
777
779
|
l.badgeMarginRight = k.z.right;
|
|
778
780
|
l.badgeMarginLeft = k.z.left;
|
|
781
|
+
l.badgeAppearance = new PrimitiveAppearanceData();
|
|
782
|
+
var aa = typeCast(ILegendContext_$type, k.n);
|
|
783
|
+
var ab = typeCast(ILegendContext_$type, k.i);
|
|
784
|
+
l.badgeAppearance.fill = AppearanceHelper.b(aa.actualItemBrush);
|
|
785
|
+
l.badgeAppearance.stroke = AppearanceHelper.b(aa.outline);
|
|
779
786
|
l.badgeShape = k.o;
|
|
780
787
|
}
|
|
781
788
|
l.rowBounds = RectData.b(m);
|
|
@@ -311,6 +311,7 @@ var DataLegendVisualDataRow = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
311
311
|
_this._badgeMarginRight = 0;
|
|
312
312
|
_this._badgeMarginBottom = 0;
|
|
313
313
|
_this._badgeShape = null;
|
|
314
|
+
_this._badgeAppearance = null;
|
|
314
315
|
_this._rowBounds = null;
|
|
315
316
|
_this._rowMarginLeft = 0;
|
|
316
317
|
_this._rowMarginTop = 0;
|
|
@@ -400,6 +401,16 @@ var DataLegendVisualDataRow = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
400
401
|
enumerable: false,
|
|
401
402
|
configurable: true
|
|
402
403
|
});
|
|
404
|
+
Object.defineProperty(DataLegendVisualDataRow.prototype, "badgeAppearance", {
|
|
405
|
+
get: function () {
|
|
406
|
+
return this._badgeAppearance;
|
|
407
|
+
},
|
|
408
|
+
set: function (a) {
|
|
409
|
+
this._badgeAppearance = a;
|
|
410
|
+
},
|
|
411
|
+
enumerable: false,
|
|
412
|
+
configurable: true
|
|
413
|
+
});
|
|
403
414
|
Object.defineProperty(DataLegendVisualDataRow.prototype, "rowBounds", {
|
|
404
415
|
get: function () {
|
|
405
416
|
return this._rowBounds;
|
|
@@ -456,22 +467,25 @@ var DataLegendVisualDataRow = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
456
467
|
var b = " ";
|
|
457
468
|
var c = new StringBuilder(0);
|
|
458
469
|
c.u("{");
|
|
459
|
-
c.u(b + this.
|
|
460
|
-
c.u(b + this.
|
|
461
|
-
c.u(b + this.
|
|
462
|
-
c.u(b + this.
|
|
470
|
+
c.u(b + this.o("badgeMarginLeft") + this.badgeMarginLeft + a);
|
|
471
|
+
c.u(b + this.o("badgeMarginTop") + this.badgeMarginTop + a);
|
|
472
|
+
c.u(b + this.o("badgeMarginRight") + this.badgeMarginRight + a);
|
|
473
|
+
c.u(b + this.o("badgeMarginBottom") + this.badgeMarginBottom + a);
|
|
463
474
|
if (this.badgeBounds == null) {
|
|
464
|
-
c.u(b + this.
|
|
475
|
+
c.u(b + this.o("badgeBounds") + "{}" + a);
|
|
465
476
|
}
|
|
466
477
|
else {
|
|
467
|
-
c.u(b + this.
|
|
478
|
+
c.u(b + this.o("badgeBounds") + DataLegendVisualData.serialize1(this.badgeBounds) + a);
|
|
479
|
+
}
|
|
480
|
+
c.u(b + this.o("badgeShape") + DataLegendVisualData.serialize1(this.badgeShape) + a);
|
|
481
|
+
if (this.badgeAppearance != null) {
|
|
482
|
+
c.u(b + this.o("badgeAppearance") + this.badgeAppearance.serialize() + a);
|
|
468
483
|
}
|
|
469
|
-
c.u(b + this.
|
|
470
|
-
c.u(b + this.
|
|
471
|
-
c.u(b + this.
|
|
472
|
-
c.u(b + this.
|
|
473
|
-
c.u(b + this.
|
|
474
|
-
c.u(b + this.n("rowMarginBottom") + this.rowMarginBottom + a);
|
|
484
|
+
c.u(b + this.o("rowBounds") + DataLegendVisualData.serialize1(this.rowBounds) + a);
|
|
485
|
+
c.u(b + this.o("rowMarginLeft") + this.rowMarginLeft + a);
|
|
486
|
+
c.u(b + this.o("rowMarginTop") + this.rowMarginTop + a);
|
|
487
|
+
c.u(b + this.o("rowMarginRight") + this.rowMarginRight + a);
|
|
488
|
+
c.u(b + this.o("rowMarginBottom") + this.rowMarginBottom + a);
|
|
475
489
|
var d = new List$1(String_$type, 0);
|
|
476
490
|
try {
|
|
477
491
|
for (var _b = __values(fromEnum(this.columns)), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
@@ -492,13 +506,13 @@ var DataLegendVisualDataRow = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
492
506
|
throw e_2.error;
|
|
493
507
|
}
|
|
494
508
|
}
|
|
495
|
-
c.u(b + this.
|
|
509
|
+
c.u(b + this.o("columns") + "[");
|
|
496
510
|
c.u(b + b + stringJoin.apply(void 0, __spreadArray([", \n" + b + b], __read(d.toArray()), false)));
|
|
497
511
|
c.u(b + "]");
|
|
498
512
|
c.u("}");
|
|
499
513
|
return c.toString();
|
|
500
514
|
};
|
|
501
|
-
DataLegendVisualDataRow.prototype.
|
|
515
|
+
DataLegendVisualDataRow.prototype.o = function (a) {
|
|
502
516
|
return a + ": ";
|
|
503
517
|
};
|
|
504
518
|
DataLegendVisualDataRow.$t = markType(DataLegendVisualDataRow, 'DataLegendVisualDataRow');
|