igniteui-webcomponents-charts 5.0.1 → 5.0.2

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.
Files changed (60) hide show
  1. package/bundles/igniteui-webcomponents-charts.umd.js +809 -708
  2. package/bundles/igniteui-webcomponents-charts.umd.min.js +1 -1
  3. package/esm2015/lib/AnchoredRadialBucketCalculator_combined.js +2 -2
  4. package/esm2015/lib/CalloutLayer_combined.js +1 -1
  5. package/esm2015/lib/CategoryBucketCalculator_combined.js +50 -50
  6. package/esm2015/lib/DataPieBaseChart.js +311 -298
  7. package/esm2015/lib/DataPieChart.js +73 -73
  8. package/esm2015/lib/PieChartViewManager_combined.js +11 -1
  9. package/esm2015/lib/PolarBase_combined.js +24 -24
  10. package/esm2015/lib/RadialBucketCalculator_combined.js +32 -32
  11. package/esm2015/lib/RadialPieSeries_combined.js +153 -78
  12. package/esm2015/lib/ScatterBase_combined.js +20 -20
  13. package/esm2015/lib/ScatterPolygonSeries_combined.js +20 -20
  14. package/esm2015/lib/SeriesViewer_combined.js +2 -2
  15. package/esm2015/lib/StackedSeriesCreatedEventArgs_combined.js +2 -2
  16. package/esm2015/lib/igc-data-pie-base-chart-component.js +91 -83
  17. package/esm2015/lib/igc-data-pie-chart-component.js +23 -23
  18. package/esm2015/lib/igc-pie-chart-base-component.js +1 -1
  19. package/esm2015/lib/igc-radial-pie-series-component.js +20 -9
  20. package/esm2015/public_api.js +0 -1
  21. package/esm5/lib/AnchoredRadialBucketCalculator_combined.js +2 -2
  22. package/esm5/lib/CalloutLayer_combined.js +1 -1
  23. package/esm5/lib/CategoryBucketCalculator_combined.js +50 -50
  24. package/esm5/lib/DataPieBaseChart.js +285 -268
  25. package/esm5/lib/DataPieChart.js +65 -65
  26. package/esm5/lib/PieChartViewManager_combined.js +11 -1
  27. package/esm5/lib/PolarBase_combined.js +24 -24
  28. package/esm5/lib/RadialBucketCalculator_combined.js +32 -32
  29. package/esm5/lib/RadialPieSeries_combined.js +160 -76
  30. package/esm5/lib/ScatterBase_combined.js +20 -20
  31. package/esm5/lib/ScatterPolygonSeries_combined.js +20 -20
  32. package/esm5/lib/SeriesViewer_combined.js +2 -2
  33. package/esm5/lib/StackedSeriesCreatedEventArgs_combined.js +2 -2
  34. package/esm5/lib/igc-data-pie-base-chart-component.js +95 -83
  35. package/esm5/lib/igc-data-pie-chart-component.js +23 -23
  36. package/esm5/lib/igc-pie-chart-base-component.js +1 -1
  37. package/esm5/lib/igc-radial-pie-series-component.js +24 -9
  38. package/esm5/public_api.js +0 -1
  39. package/fesm2015/igniteui-webcomponents-charts.js +826 -744
  40. package/fesm5/igniteui-webcomponents-charts.js +808 -705
  41. package/lib/AnchoredRadialBucketCalculator_combined.d.ts +1 -1
  42. package/lib/CategoryBucketCalculator_combined.d.ts +1 -1
  43. package/lib/DataPieBaseChart.d.ts +96 -92
  44. package/lib/DataPieChart.d.ts +26 -26
  45. package/lib/PieChartViewManager_combined.d.ts +1 -1
  46. package/lib/PolarBase_combined.d.ts +1 -1
  47. package/lib/RadialBucketCalculator_combined.d.ts +2 -2
  48. package/lib/RadialPieSeries_combined.d.ts +18 -12
  49. package/lib/ScatterBase_combined.d.ts +1 -1
  50. package/lib/ScatterPolygonSeries_combined.d.ts +1 -1
  51. package/lib/SeriesViewer_combined.d.ts +1 -1
  52. package/lib/StackedSeriesCreatedEventArgs_combined.d.ts +1 -1
  53. package/lib/igc-data-pie-base-chart-component.d.ts +3 -0
  54. package/lib/igc-pie-chart-base-component.d.ts +1 -1
  55. package/lib/igc-radial-pie-series-component.d.ts +6 -0
  56. package/package.json +2 -2
  57. package/public_api.d.ts +0 -1
  58. package/esm2015/lib/LegendEmptyValuesMode.js +0 -29
  59. package/esm5/lib/LegendEmptyValuesMode.js +0 -29
  60. package/lib/LegendEmptyValuesMode.d.ts +0 -22
@@ -28,14 +28,14 @@ var DataPieChart = /** @class */ /*@__PURE__*/ (function (_super) {
28
28
  __extends(DataPieChart, _super);
29
29
  function DataPieChart() {
30
30
  var _this = _super.call(this) || this;
31
- _this.akc = 1000;
32
- _this.akd = 1000;
33
- _this.aj6 = null;
34
- _this.aj7 = null;
35
- _this.aj2 = 0;
36
- _this.aka = true;
37
- _this.aj0 = 0;
38
- _this.aj4 = 3;
31
+ _this.akf = 1000;
32
+ _this.akg = 1000;
33
+ _this.aj9 = null;
34
+ _this.aka = null;
35
+ _this.aj5 = 0;
36
+ _this.akd = true;
37
+ _this.aj3 = 0;
38
+ _this.aj7 = 3;
39
39
  _this.ue();
40
40
  return _this;
41
41
  }
@@ -73,7 +73,7 @@ var DataPieChart = /** @class */ /*@__PURE__*/ (function (_super) {
73
73
  this.he = false;
74
74
  this.b3 = 1;
75
75
  this.bz = 11;
76
- this.akb = true;
76
+ this.ake = true;
77
77
  this.xq = BrushUtil.h(255, 255, 255, 255);
78
78
  this.jl = DeviceUtils.g(2);
79
79
  this.gm = true;
@@ -84,86 +84,86 @@ var DataPieChart = /** @class */ /*@__PURE__*/ (function (_super) {
84
84
  };
85
85
  DataPieChart.prototype.uz = function (a, b) {
86
86
  _super.prototype.uz.call(this, a, b);
87
- a.kc = this.ake;
88
- a.kd = this.akf;
89
- a.dc = this.aj8;
90
- a.dd = this.aj9;
87
+ a.kc = this.akh;
88
+ a.kd = this.aki;
89
+ a.dc = this.akb;
90
+ a.dd = this.akc;
91
91
  };
92
92
  DataPieChart.prototype.vo = function (a, b, c) {
93
93
  var _this = this;
94
94
  _super.prototype.vo.call(this, a, b, c);
95
95
  switch (a) {
96
96
  case "TransitionInDuration":
97
- this.um(function (d) { return d.kc = _this.ake; });
97
+ this.um(function (d) { return d.kc = _this.akh; });
98
98
  break;
99
99
  case "TransitionOutDuration":
100
- this.um(function (d) { return d.kd = _this.akf; });
100
+ this.um(function (d) { return d.kd = _this.aki; });
101
101
  break;
102
102
  case "TransitionInEasingFunction":
103
- this.um(function (d) { return d.dc = _this.aj8; });
103
+ this.um(function (d) { return d.dc = _this.akb; });
104
104
  break;
105
105
  case "TransitionOutEasingFunction":
106
- this.um(function (d) { return d.dd = _this.aj9; });
106
+ this.um(function (d) { return d.dd = _this.akc; });
107
107
  break;
108
108
  }
109
109
  };
110
- Object.defineProperty(DataPieChart.prototype, "ake", {
110
+ Object.defineProperty(DataPieChart.prototype, "akh", {
111
111
  get: function () {
112
- return this.akc;
112
+ return this.akf;
113
113
  },
114
114
  set: function (a) {
115
- var b = this.ake;
115
+ var b = this.akh;
116
116
  if (a != b) {
117
- this.akc = a;
118
- this.vl("TransitionInDuration", b, this.ake);
117
+ this.akf = a;
118
+ this.vl("TransitionInDuration", b, this.akh);
119
119
  }
120
120
  },
121
121
  enumerable: false,
122
122
  configurable: true
123
123
  });
124
- Object.defineProperty(DataPieChart.prototype, "akf", {
124
+ Object.defineProperty(DataPieChart.prototype, "aki", {
125
125
  get: function () {
126
- return this.akd;
126
+ return this.akg;
127
127
  },
128
128
  set: function (a) {
129
- var b = this.akf;
129
+ var b = this.aki;
130
130
  if (a != b) {
131
- this.akd = a;
132
- this.vl("TransitionOutDuration", b, this.akf);
131
+ this.akg = a;
132
+ this.vl("TransitionOutDuration", b, this.aki);
133
133
  }
134
134
  },
135
135
  enumerable: false,
136
136
  configurable: true
137
137
  });
138
- Object.defineProperty(DataPieChart.prototype, "aj8", {
138
+ Object.defineProperty(DataPieChart.prototype, "akb", {
139
139
  get: function () {
140
- return this.aj6;
140
+ return this.aj9;
141
141
  },
142
142
  set: function (a) {
143
- var b = this.aj8;
143
+ var b = this.akb;
144
144
  if (a != b) {
145
- this.aj6 = a;
146
- this.vl("TransitionInEasingFunction", b, this.aj8);
145
+ this.aj9 = a;
146
+ this.vl("TransitionInEasingFunction", b, this.akb);
147
147
  }
148
148
  },
149
149
  enumerable: false,
150
150
  configurable: true
151
151
  });
152
- Object.defineProperty(DataPieChart.prototype, "aj9", {
152
+ Object.defineProperty(DataPieChart.prototype, "akc", {
153
153
  get: function () {
154
- return this.aj7;
154
+ return this.aka;
155
155
  },
156
156
  set: function (a) {
157
- var b = this.aj9;
157
+ var b = this.akc;
158
158
  if (a != b) {
159
- this.aj7 = a;
160
- this.vl("TransitionOutEasingFunction", b, this.aj9);
159
+ this.aka = a;
160
+ this.vl("TransitionOutEasingFunction", b, this.akc);
161
161
  }
162
162
  },
163
163
  enumerable: false,
164
164
  configurable: true
165
165
  });
166
- DataPieChart.prototype.akh = function () {
166
+ DataPieChart.prototype.akk = function () {
167
167
  var cvd_ = this.lv();
168
168
  cvd_.scaleByViewport();
169
169
  return (cvd_.serialize());
@@ -197,14 +197,14 @@ var DataPieChart = /** @class */ /*@__PURE__*/ (function (_super) {
197
197
  enumerable: false,
198
198
  configurable: true
199
199
  });
200
- DataPieChart.prototype.get_ahd = function () {
200
+ DataPieChart.prototype.get_ahf = function () {
201
201
  return false;
202
202
  };
203
203
  DataPieChart.prototype.bi = function (a) {
204
- if (this.aj3 == 0) {
204
+ if (this.aj6 == 0) {
205
205
  return a.suggestedSeries;
206
206
  }
207
- if (this.aj3 == 1) {
207
+ if (this.aj6 == 1) {
208
208
  return 34;
209
209
  }
210
210
  return 34;
@@ -222,9 +222,9 @@ var DataPieChart = /** @class */ /*@__PURE__*/ (function (_super) {
222
222
  if (c == null) {
223
223
  return;
224
224
  }
225
- c.zk = this.akb;
226
- c.yu = this.aj1;
227
- c.c3 = this.aj5;
225
+ c.zk = this.ake;
226
+ c.yu = this.aj4;
227
+ c.c3 = this.aj8;
228
228
  };
229
229
  DataPieChart.prototype.t3 = function (a, b) {
230
230
  _super.prototype.t3.call(this, a, b);
@@ -254,57 +254,57 @@ var DataPieChart = /** @class */ /*@__PURE__*/ (function (_super) {
254
254
  enumerable: false,
255
255
  configurable: true
256
256
  });
257
- Object.defineProperty(DataPieChart.prototype, "aj3", {
257
+ Object.defineProperty(DataPieChart.prototype, "aj6", {
258
258
  get: function () {
259
- return this.aj2;
259
+ return this.aj5;
260
260
  },
261
261
  set: function (a) {
262
- if (a != this.aj2) {
263
- var b = this.aj3;
264
- this.aj2 = a;
265
- this.vl("ChartType", enumGetBox(DataPieChartType_$type, b), enumGetBox(DataPieChartType_$type, this.aj3));
262
+ if (a != this.aj5) {
263
+ var b = this.aj6;
264
+ this.aj5 = a;
265
+ this.vl("ChartType", enumGetBox(DataPieChartType_$type, b), enumGetBox(DataPieChartType_$type, this.aj6));
266
266
  }
267
267
  },
268
268
  enumerable: false,
269
269
  configurable: true
270
270
  });
271
- Object.defineProperty(DataPieChart.prototype, "akb", {
271
+ Object.defineProperty(DataPieChart.prototype, "ake", {
272
272
  get: function () {
273
- return this.aka;
273
+ return this.akd;
274
274
  },
275
275
  set: function (a) {
276
- var b = this.akb;
276
+ var b = this.ake;
277
277
  if (a != b) {
278
- this.aka = a;
279
- this.vl("IsTransitionInEnabled", b, this.akb);
278
+ this.akd = a;
279
+ this.vl("IsTransitionInEnabled", b, this.ake);
280
280
  }
281
281
  },
282
282
  enumerable: false,
283
283
  configurable: true
284
284
  });
285
- Object.defineProperty(DataPieChart.prototype, "aj1", {
285
+ Object.defineProperty(DataPieChart.prototype, "aj4", {
286
286
  get: function () {
287
- return this.aj0;
287
+ return this.aj3;
288
288
  },
289
289
  set: function (a) {
290
- var b = this.aj1;
290
+ var b = this.aj4;
291
291
  if (a != b) {
292
- this.aj0 = a;
293
- this.vl("TransitionInMode", enumGetBox(CategoryTransitionInMode_$type, b), enumGetBox(CategoryTransitionInMode_$type, this.aj1));
292
+ this.aj3 = a;
293
+ this.vl("TransitionInMode", enumGetBox(CategoryTransitionInMode_$type, b), enumGetBox(CategoryTransitionInMode_$type, this.aj4));
294
294
  }
295
295
  },
296
296
  enumerable: false,
297
297
  configurable: true
298
298
  });
299
- Object.defineProperty(DataPieChart.prototype, "aj5", {
299
+ Object.defineProperty(DataPieChart.prototype, "aj8", {
300
300
  get: function () {
301
- return this.aj4;
301
+ return this.aj7;
302
302
  },
303
303
  set: function (a) {
304
- var b = this.aj5;
304
+ var b = this.aj8;
305
305
  if (a != b) {
306
- this.aj4 = a;
307
- this.vl("TransitionInSpeedType", enumGetBox(TransitionInSpeedType_$type, b), enumGetBox(TransitionInSpeedType_$type, this.aj5));
306
+ this.aj7 = a;
307
+ this.vl("TransitionInSpeedType", enumGetBox(TransitionInSpeedType_$type, b), enumGetBox(TransitionInSpeedType_$type, this.aj8));
308
308
  }
309
309
  },
310
310
  enumerable: false,
@@ -45,7 +45,7 @@ import { NotifyCollectionChangedEventArgs } from "igniteui-webcomponents-core";
45
45
  import { IChartLegend_$type } from "igniteui-webcomponents-core";
46
46
  import { SweepDirection_$type } from "igniteui-webcomponents-core";
47
47
  import { DataTemplate } from "igniteui-webcomponents-core";
48
- import { LegendEmptyValuesMode_$type } from "./LegendEmptyValuesMode";
48
+ import { LegendEmptyValuesMode_$type } from "igniteui-webcomponents-core";
49
49
  import { SliceSelectionMode_$type } from "./SliceSelectionMode";
50
50
  import { ObjectCollection } from "igniteui-webcomponents-core";
51
51
  import { BindingFormatter } from "igniteui-webcomponents-core";
@@ -2938,6 +2938,16 @@ var PieChartBase = /** @class */ /*@__PURE__*/ (function (_super) {
2938
2938
  };
2939
2939
  PieChartBase.prototype.destroy = function () {
2940
2940
  this.gv();
2941
+ if (this.b0) {
2942
+ var a = this.ak;
2943
+ a.collectionChanged = delegateRemove(a.collectionChanged, this.cu);
2944
+ this.b0 = false;
2945
+ }
2946
+ if (this.b3) {
2947
+ var b = this.al;
2948
+ b.collectionChanged = delegateRemove(b.collectionChanged, this.cu);
2949
+ this.b3 = false;
2950
+ }
2941
2951
  this.a4.az(null);
2942
2952
  };
2943
2953
  Object.defineProperty(PieChartBase.prototype, "fq", {
@@ -104,40 +104,40 @@ var PolarBase = /** @class */ /*@__PURE__*/ (function (_super) {
104
104
  PolarBase.prototype.get_fn = function () {
105
105
  return true;
106
106
  };
107
- PolarBase.prototype.d9 = function (a, b, c, d) {
107
+ PolarBase.prototype.d9 = function (a, b, c, d, e) {
108
108
  var _this = this;
109
109
  if (!this.hasMarkers) {
110
110
  return false;
111
111
  }
112
- var e = this.yl;
113
- var f = new ScalerParams(1, this.c9.vl, this.wl, e.ch);
114
- f.c = this.getEffectiveViewport1(this.ct);
115
- var g = this.ym;
116
- var h = new ScalerParams(1, this.c9.vl, this.wl, g.ch);
117
- h.c = this.getEffectiveViewport1(this.ct);
112
+ var f = this.yl;
113
+ var g = new ScalerParams(1, this.c9.vl, this.wl, f.ch);
114
+ g.c = this.getEffectiveViewport1(this.ct);
115
+ var h = this.ym;
116
+ var i = new ScalerParams(1, this.c9.vl, this.wl, h.ch);
117
+ i.c = this.getEffectiveViewport1(this.ct);
118
118
  a.clear();
119
- this.wy.cj(function (i) {
120
- if (i._visibility == 0) {
121
- var j = new SeriesPointOfInterest();
122
- var k = i.n;
123
- var l = i.o;
124
- if (k < _this.wl.left || k > _this.wl.right || l < _this.wl.top || l > _this.wl.bottom) {
119
+ this.wy.cj(function (j) {
120
+ if (j._visibility == 0) {
121
+ var k = new SeriesPointOfInterest();
122
+ var l = j.n;
123
+ var m = j.o;
124
+ if (l < _this.wl.left || l > _this.wl.right || m < _this.wl.top || m > _this.wl.bottom) {
125
125
  return;
126
126
  }
127
- var m = void 0;
128
127
  var n = void 0;
129
- var o = _this.yn.f(k, l, _this.ct.by, _this.ct.bx, _this.ct.getEffectiveViewport(), m, n);
130
- m = o.p5;
131
- n = o.p6;
132
- j.d = m;
133
- j.e = n;
134
- j.b = i.content;
135
- j.g = _this.va;
136
- j.c = i.ak;
128
+ var o = void 0;
129
+ var p = _this.yn.f(l, m, _this.ct.by, _this.ct.bx, _this.ct.getEffectiveViewport(), n, o);
130
+ n = p.p5;
131
+ o = p.p6;
132
+ k.d = n;
133
+ k.e = o;
134
+ k.b = j.content;
135
+ k.g = _this.va;
136
+ k.c = j.ak;
137
137
  if (_this.g7) {
138
- j.g = _this.vh(i.ak);
138
+ k.g = _this.vh(j.ak);
139
139
  }
140
- a.add(j);
140
+ a.add(k);
141
141
  }
142
142
  });
143
143
  return true;
@@ -183,49 +183,49 @@ var RadialBase = /** @class */ /*@__PURE__*/ (function (_super) {
183
183
  }
184
184
  _super.prototype.pn.call(this, a);
185
185
  };
186
- RadialBase.prototype.d9 = function (a, b, c, d) {
186
+ RadialBase.prototype.d9 = function (a, b, c, d, e) {
187
187
  var _this = this;
188
188
  if (!this.hasMarkers) {
189
189
  return false;
190
190
  }
191
- var e = this.yr;
192
- var f = new ScalerParams(1, this.c9.vl, this.wl, e.ch);
193
- f.c = this.getEffectiveViewport1(this.ct);
194
- var g = this.yw;
195
- var h = new ScalerParams(1, this.c9.vl, this.wl, g.ch);
196
- h.c = this.getEffectiveViewport1(this.ct);
197
- var i = this.zw;
191
+ var f = this.yr;
192
+ var g = new ScalerParams(1, this.c9.vl, this.wl, f.ch);
193
+ g.c = this.getEffectiveViewport1(this.ct);
194
+ var h = this.yw;
195
+ var i = new ScalerParams(1, this.c9.vl, this.wl, h.ch);
196
+ i.c = this.getEffectiveViewport1(this.ct);
197
+ var j = this.zw;
198
198
  a.clear();
199
- this.wy.cj(function (j) {
200
- if (j._visibility == 0) {
201
- var k = new SeriesPointOfInterest();
202
- var l = j.n;
203
- var m = j.o;
204
- if (l < _this.wl.left || l > _this.wl.right || m < _this.wl.top || m > _this.wl.bottom) {
199
+ this.wy.cj(function (k) {
200
+ if (k._visibility == 0) {
201
+ var l = new SeriesPointOfInterest();
202
+ var m = k.n;
203
+ var n = k.o;
204
+ if (m < _this.wl.left || m > _this.wl.right || n < _this.wl.top || n > _this.wl.bottom) {
205
205
  return;
206
206
  }
207
- var n = null;
208
- if (j.content != null) {
209
- n = j.content.item;
207
+ var o = null;
208
+ if (k.content != null) {
209
+ o = k.content.item;
210
210
  }
211
- var o = void 0;
212
211
  var p = void 0;
213
- var q = _this.yz.g(l, m, _this.ct.by, _this.ct.bx, _this.ct.getEffectiveViewport(), o, p);
214
- o = q.p5;
215
- p = q.p6;
216
- k.d = o;
217
- k.e = p;
218
- var r = k.e;
219
- var s = j.ak;
220
- k.f = _this.aav(r, n, s, d, i, c, b, false);
221
- k.b = j.content;
222
- k.g = _this.va;
223
- k.c = j.ak;
212
+ var q = void 0;
213
+ var r = _this.yz.g(m, n, _this.ct.by, _this.ct.bx, _this.ct.getEffectiveViewport(), p, q);
214
+ p = r.p5;
215
+ q = r.p6;
216
+ l.d = p;
217
+ l.e = q;
218
+ var s = l.e;
219
+ var t = k.ak;
220
+ l.f = _this.aav(s, o, t, d, j, c, b, false);
221
+ l.b = k.content;
222
+ l.g = _this.va;
223
+ l.c = k.ak;
224
224
  if (_this.g7) {
225
- k.g = _this.vh(j.ak);
225
+ l.g = _this.vh(k.ak);
226
226
  }
227
- k.a = _this.aq(j.ak, j.al);
228
- a.add(k);
227
+ l.a = _this.aq(k.ak, k.al);
228
+ a.add(l);
229
229
  }
230
230
  });
231
231
  return true;