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.
Files changed (79) hide show
  1. package/bundles/igniteui-webcomponents-charts.umd.js +1088 -948
  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/DataLegendContent_combined.js +7 -0
  7. package/esm2015/lib/DataLegendVisualData_combined.js +24 -14
  8. package/esm2015/lib/DataPieBaseChart.js +311 -298
  9. package/esm2015/lib/DataPieChart.js +73 -73
  10. package/esm2015/lib/FinancialLegend_combined.js +3 -3
  11. package/esm2015/lib/ItemLegend_combined.js +26 -25
  12. package/esm2015/lib/LegendBaseViewManager_combined.js +118 -100
  13. package/esm2015/lib/Legend_combined.js +13 -13
  14. package/esm2015/lib/PieChartViewManager_combined.js +11 -1
  15. package/esm2015/lib/PolarBase_combined.js +24 -24
  16. package/esm2015/lib/RadialBucketCalculator_combined.js +32 -32
  17. package/esm2015/lib/RadialPieSeries_combined.js +153 -78
  18. package/esm2015/lib/ScaleLegend_combined.js +82 -82
  19. package/esm2015/lib/ScatterBase_combined.js +23 -22
  20. package/esm2015/lib/ScatterPolygonSeries_combined.js +20 -20
  21. package/esm2015/lib/SeriesViewer_combined.js +2 -2
  22. package/esm2015/lib/StackedSeriesCreatedEventArgs_combined.js +2 -2
  23. package/esm2015/lib/igc-data-pie-base-chart-component.js +91 -83
  24. package/esm2015/lib/igc-data-pie-chart-component.js +23 -23
  25. package/esm2015/lib/igc-pie-chart-base-component.js +1 -1
  26. package/esm2015/lib/igc-radial-pie-series-component.js +20 -9
  27. package/esm2015/public_api.js +0 -1
  28. package/esm5/lib/AnchoredRadialBucketCalculator_combined.js +2 -2
  29. package/esm5/lib/CalloutLayer_combined.js +1 -1
  30. package/esm5/lib/CategoryBucketCalculator_combined.js +50 -50
  31. package/esm5/lib/DataLegendContent_combined.js +7 -0
  32. package/esm5/lib/DataLegendVisualData_combined.js +28 -14
  33. package/esm5/lib/DataPieBaseChart.js +285 -268
  34. package/esm5/lib/DataPieChart.js +65 -65
  35. package/esm5/lib/FinancialLegend_combined.js +3 -3
  36. package/esm5/lib/ItemLegend_combined.js +26 -25
  37. package/esm5/lib/LegendBaseViewManager_combined.js +118 -100
  38. package/esm5/lib/Legend_combined.js +13 -13
  39. package/esm5/lib/PieChartViewManager_combined.js +11 -1
  40. package/esm5/lib/PolarBase_combined.js +24 -24
  41. package/esm5/lib/RadialBucketCalculator_combined.js +32 -32
  42. package/esm5/lib/RadialPieSeries_combined.js +160 -76
  43. package/esm5/lib/ScaleLegend_combined.js +82 -82
  44. package/esm5/lib/ScatterBase_combined.js +23 -22
  45. package/esm5/lib/ScatterPolygonSeries_combined.js +20 -20
  46. package/esm5/lib/SeriesViewer_combined.js +2 -2
  47. package/esm5/lib/StackedSeriesCreatedEventArgs_combined.js +2 -2
  48. package/esm5/lib/igc-data-pie-base-chart-component.js +95 -83
  49. package/esm5/lib/igc-data-pie-chart-component.js +23 -23
  50. package/esm5/lib/igc-pie-chart-base-component.js +1 -1
  51. package/esm5/lib/igc-radial-pie-series-component.js +24 -9
  52. package/esm5/public_api.js +0 -1
  53. package/fesm2015/igniteui-webcomponents-charts.js +1101 -984
  54. package/fesm5/igniteui-webcomponents-charts.js +1087 -945
  55. package/lib/AnchoredRadialBucketCalculator_combined.d.ts +1 -1
  56. package/lib/CategoryBucketCalculator_combined.d.ts +1 -1
  57. package/lib/DataLegendVisualData_combined.d.ts +5 -1
  58. package/lib/DataPieBaseChart.d.ts +96 -92
  59. package/lib/DataPieChart.d.ts +26 -26
  60. package/lib/ItemLegend_combined.d.ts +5 -5
  61. package/lib/LegendBaseViewManager_combined.d.ts +33 -32
  62. package/lib/Legend_combined.d.ts +2 -2
  63. package/lib/PieChartViewManager_combined.d.ts +1 -1
  64. package/lib/PolarBase_combined.d.ts +1 -1
  65. package/lib/RadialBucketCalculator_combined.d.ts +2 -2
  66. package/lib/RadialPieSeries_combined.d.ts +18 -12
  67. package/lib/ScaleLegend_combined.d.ts +23 -23
  68. package/lib/ScatterBase_combined.d.ts +1 -1
  69. package/lib/ScatterPolygonSeries_combined.d.ts +1 -1
  70. package/lib/SeriesViewer_combined.d.ts +1 -1
  71. package/lib/StackedSeriesCreatedEventArgs_combined.d.ts +1 -1
  72. package/lib/igc-data-pie-base-chart-component.d.ts +3 -0
  73. package/lib/igc-pie-chart-base-component.d.ts +1 -1
  74. package/lib/igc-radial-pie-series-component.d.ts +6 -0
  75. package/package.json +2 -2
  76. package/public_api.d.ts +0 -1
  77. package/esm2015/lib/LegendEmptyValuesMode.js +0 -29
  78. package/esm5/lib/LegendEmptyValuesMode.js +0 -29
  79. package/lib/LegendEmptyValuesMode.d.ts +0 -22
@@ -15,10 +15,10 @@ import { Brush } from "igniteui-webcomponents-core";
15
15
  import { PenLineCap_$type } from "igniteui-webcomponents-core";
16
16
  import { DoubleCollection } from "igniteui-webcomponents-core";
17
17
  import { RadialFrame } from "./RadialFrame";
18
+ import { ProportionalCategoryAngleAxis } from "./ProportionalCategoryAngleAxis";
18
19
  import { ScalerParams } from "./ScalerParams";
19
20
  import { Rect } from "igniteui-webcomponents-core";
20
21
  import { FastItemCoalescingColumn } from "./FastItemCoalescingColumn";
21
- import { ProportionalCategoryAngleAxis } from "./ProportionalCategoryAngleAxis";
22
22
  import { List$1 } from "igniteui-webcomponents-core";
23
23
  import { SeriesLayerPropertyOverlay } from "./SeriesLayerPropertyOverlay";
24
24
  import { DataLegendSeriesValueInfo } from "igniteui-webcomponents-core";
@@ -116,7 +116,7 @@ export let AnchoredRadialSeries = /*@__PURE__*/ (() => {
116
116
  }
117
117
  kr(a) {
118
118
  if (this.yr != null && this.yr.cl) {
119
- if (a == this.yr.lh - 1) {
119
+ if (a == this.yr.othersIndex) {
120
120
  return this.yy;
121
121
  }
122
122
  }
@@ -1151,7 +1151,7 @@ export let CalloutLayer = /*@__PURE__*/ (() => {
1151
1151
  d = true;
1152
1152
  }
1153
1153
  a.kg = this.zs;
1154
- if (!a.gg && a.d9(this.aa9, this.aa4, this.aa0, this.abn)) {
1154
+ if (!a.gg && a.d9(this.aa9, this.aa4, this.aa0, this.abn, false)) {
1155
1155
  let e = this.aa9;
1156
1156
  for (let f = 0; f < this.aa9.count; f++) {
1157
1157
  let g = e._inner[f];
@@ -711,103 +711,103 @@ export let CategorySeries = /*@__PURE__*/ (() => {
711
711
  }
712
712
  return this.yy;
713
713
  }
714
- d9(a, b, c, d) {
714
+ d9(a, b, c, d, e) {
715
715
  if (!this.hasMarkers) {
716
716
  return false;
717
717
  }
718
- let e = this.getEffectiveViewport1(this.ct);
719
- let f = this.yk();
720
- let g = new ScalerParams(1, this.c9.vl, this.wl, f.ch);
721
- g.c = e;
722
- let h = this.y0();
723
- let i = new ScalerParams(1, this.c9.vl, this.wl, h.ch);
724
- i.c = e;
725
- let j = this.c9.vl;
726
- let k = this.wl;
727
- let l = this.currentMode2Index;
728
- let m = 0;
729
- if (f.ce && f.cc) {
730
- m = f.getSeriesOffset(j, k, e, l, f.categoryMode);
718
+ let f = this.getEffectiveViewport1(this.ct);
719
+ let g = this.yk();
720
+ let h = new ScalerParams(1, this.c9.vl, this.wl, g.ch);
721
+ h.c = f;
722
+ let i = this.y0();
723
+ let j = new ScalerParams(1, this.c9.vl, this.wl, i.ch);
724
+ j.c = f;
725
+ let k = this.c9.vl;
726
+ let l = this.wl;
727
+ let m = this.currentMode2Index;
728
+ let n = 0;
729
+ if (g.ce && g.cc) {
730
+ n = g.getSeriesOffset(k, l, f, m, g.categoryMode);
731
731
  }
732
732
  a.clear();
733
- this.wy.cj((n) => {
734
- if (n._visibility == 0) {
735
- let o = new SeriesPointOfInterest();
736
- let p = n.n;
737
- let q = n.o;
738
- if (p < this.wl.left || p > this.wl.right || q < this.wl.top || q > this.wl.bottom) {
733
+ this.wy.cj((o) => {
734
+ if (o._visibility == 0) {
735
+ let p = new SeriesPointOfInterest();
736
+ let q = o.n;
737
+ let r = o.o;
738
+ if (q < this.wl.left || q > this.wl.right || r < this.wl.top || r > this.wl.bottom) {
739
739
  return;
740
740
  }
741
741
  if (this.isVertical) {
742
- if (f.cb && !f.ce && f.categoryMode != 0) {
743
- o.e = n.ak;
742
+ if (g.cb && !g.ce && g.categoryMode != 0) {
743
+ p.e = o.ak;
744
744
  }
745
745
  else {
746
- o.e = f.en(q, g);
746
+ p.e = g.en(r, h);
747
747
  }
748
- o.d = h.en(p, i);
748
+ p.d = i.en(q, j);
749
749
  }
750
750
  else {
751
- if (f.cb && !f.ce && f.categoryMode != 0) {
752
- o.d = n.ak;
751
+ if (g.cb && !g.ce && g.categoryMode != 0) {
752
+ p.d = o.ak;
753
753
  }
754
754
  else {
755
- o.d = f.en(p, g);
755
+ p.d = g.en(q, h);
756
756
  }
757
- o.e = h.en(q, i);
757
+ p.e = i.en(r, j);
758
758
  }
759
- o.b = n.content;
759
+ p.b = o.content;
760
760
  if (b) {
761
761
  if (this.isVertical) {
762
762
  if (c) {
763
- o.f = this.zq(o.d, d);
763
+ p.f = this.zq(p.d, d);
764
764
  }
765
765
  else {
766
- let r = this.jb(n);
767
- if (!isNaN_(r)) {
768
- o.f = this.zq(r, d);
766
+ let s = this.jb(o);
767
+ if (!isNaN_(s)) {
768
+ p.f = this.zq(s, d);
769
769
  }
770
770
  else {
771
- o.f = this.zq(o.d, d);
771
+ p.f = this.zq(p.d, d);
772
772
  }
773
773
  }
774
774
  }
775
775
  else {
776
776
  if (c) {
777
- o.f = this.zq(o.e, d);
777
+ p.f = this.zq(p.e, d);
778
778
  }
779
779
  else {
780
- let s = this.jb(n);
781
- if (!isNaN_(s)) {
782
- o.f = this.zq(s, d);
780
+ let t = this.jb(o);
781
+ if (!isNaN_(t)) {
782
+ p.f = this.zq(t, d);
783
783
  }
784
784
  else {
785
- o.f = this.zq(o.e, d);
785
+ p.f = this.zq(p.e, d);
786
786
  }
787
787
  }
788
788
  }
789
789
  }
790
790
  else {
791
- let t = this.at(true);
792
- if (t != null) {
793
- let u = this.kq(n.ak, false);
794
- if (u != null) {
795
- o.f = t.i(u);
791
+ let u = this.at(true);
792
+ if (u != null) {
793
+ let v = this.kq(o.ak, false);
794
+ if (v != null) {
795
+ p.f = u.i(v);
796
796
  }
797
797
  else {
798
- o.f = null;
798
+ p.f = null;
799
799
  }
800
800
  }
801
801
  else {
802
- o.f = f.ge(n.ak);
802
+ p.f = g.ge(o.ak);
803
803
  }
804
804
  }
805
- o.c = n.ak;
806
- o.g = this.va;
805
+ p.c = o.ak;
806
+ p.g = this.va;
807
807
  if (this.g7) {
808
- o.g = this.vh(n.ak);
808
+ p.g = this.vh(o.ak);
809
809
  }
810
- a.add(o);
810
+ a.add(p);
811
811
  }
812
812
  });
813
813
  return true;
@@ -33,8 +33,10 @@ import { Extensions } from "igniteui-webcomponents-core";
33
33
  import { TextBlock } from "igniteui-webcomponents-core";
34
34
  import { DataLegendVisualDataRow } from "./DataLegendVisualDataRow";
35
35
  import { DataLegendVisualDataColumn } from "./DataLegendVisualDataColumn";
36
+ import { ILegendContext_$type } from "igniteui-webcomponents-core";
36
37
  import { RectData } from "igniteui-webcomponents-core";
37
38
  import { AppearanceHelper } from "igniteui-webcomponents-core";
39
+ import { PrimitiveAppearanceData } from "igniteui-webcomponents-core";
38
40
  import { FrameworkElement } from "igniteui-webcomponents-core";
39
41
  import { DataLegendSummaryEventArgs } from "./DataLegendSummaryEventArgs";
40
42
  import { DataLegendSummaryCalculationTotal } from "./DataLegendSummaryCalculationTotal";
@@ -642,6 +644,11 @@ export let XamDataLegend = /*@__PURE__*/ (() => {
642
644
  l.badgeMarginBottom = k.z.bottom;
643
645
  l.badgeMarginRight = k.z.right;
644
646
  l.badgeMarginLeft = k.z.left;
647
+ l.badgeAppearance = new PrimitiveAppearanceData();
648
+ let aa = typeCast(ILegendContext_$type, k.n);
649
+ let ab = typeCast(ILegendContext_$type, k.i);
650
+ l.badgeAppearance.fill = AppearanceHelper.b(aa.actualItemBrush);
651
+ l.badgeAppearance.stroke = AppearanceHelper.b(aa.outline);
645
652
  l.badgeShape = k.o;
646
653
  }
647
654
  l.rowBounds = RectData.b(m);
@@ -227,6 +227,7 @@ export let DataLegendVisualDataRow = /*@__PURE__*/ (() => {
227
227
  this._badgeMarginRight = 0;
228
228
  this._badgeMarginBottom = 0;
229
229
  this._badgeShape = null;
230
+ this._badgeAppearance = null;
230
231
  this._rowBounds = null;
231
232
  this._rowMarginLeft = 0;
232
233
  this._rowMarginTop = 0;
@@ -283,6 +284,12 @@ export let DataLegendVisualDataRow = /*@__PURE__*/ (() => {
283
284
  set badgeShape(a) {
284
285
  this._badgeShape = a;
285
286
  }
287
+ get badgeAppearance() {
288
+ return this._badgeAppearance;
289
+ }
290
+ set badgeAppearance(a) {
291
+ this._badgeAppearance = a;
292
+ }
286
293
  get rowBounds() {
287
294
  return this._rowBounds;
288
295
  }
@@ -318,33 +325,36 @@ export let DataLegendVisualDataRow = /*@__PURE__*/ (() => {
318
325
  let b = " ";
319
326
  let c = new StringBuilder(0);
320
327
  c.u("{");
321
- c.u(b + this.n("badgeMarginLeft") + this.badgeMarginLeft + a);
322
- c.u(b + this.n("badgeMarginTop") + this.badgeMarginTop + a);
323
- c.u(b + this.n("badgeMarginRight") + this.badgeMarginRight + a);
324
- c.u(b + this.n("badgeMarginBottom") + this.badgeMarginBottom + a);
328
+ c.u(b + this.o("badgeMarginLeft") + this.badgeMarginLeft + a);
329
+ c.u(b + this.o("badgeMarginTop") + this.badgeMarginTop + a);
330
+ c.u(b + this.o("badgeMarginRight") + this.badgeMarginRight + a);
331
+ c.u(b + this.o("badgeMarginBottom") + this.badgeMarginBottom + a);
325
332
  if (this.badgeBounds == null) {
326
- c.u(b + this.n("badgeBounds") + "{}" + a);
333
+ c.u(b + this.o("badgeBounds") + "{}" + a);
327
334
  }
328
335
  else {
329
- c.u(b + this.n("badgeBounds") + DataLegendVisualData.serialize1(this.badgeBounds) + a);
336
+ c.u(b + this.o("badgeBounds") + DataLegendVisualData.serialize1(this.badgeBounds) + a);
337
+ }
338
+ c.u(b + this.o("badgeShape") + DataLegendVisualData.serialize1(this.badgeShape) + a);
339
+ if (this.badgeAppearance != null) {
340
+ c.u(b + this.o("badgeAppearance") + this.badgeAppearance.serialize() + a);
330
341
  }
331
- c.u(b + this.n("badgeShape") + DataLegendVisualData.serialize1(this.badgeShape) + a);
332
- c.u(b + this.n("rowBounds") + DataLegendVisualData.serialize1(this.rowBounds) + a);
333
- c.u(b + this.n("rowMarginLeft") + this.rowMarginLeft + a);
334
- c.u(b + this.n("rowMarginTop") + this.rowMarginTop + a);
335
- c.u(b + this.n("rowMarginRight") + this.rowMarginRight + a);
336
- c.u(b + this.n("rowMarginBottom") + this.rowMarginBottom + a);
342
+ c.u(b + this.o("rowBounds") + DataLegendVisualData.serialize1(this.rowBounds) + a);
343
+ c.u(b + this.o("rowMarginLeft") + this.rowMarginLeft + a);
344
+ c.u(b + this.o("rowMarginTop") + this.rowMarginTop + a);
345
+ c.u(b + this.o("rowMarginRight") + this.rowMarginRight + a);
346
+ c.u(b + this.o("rowMarginBottom") + this.rowMarginBottom + a);
337
347
  let d = new List$1(String_$type, 0);
338
348
  for (let e of fromEnum(this.columns)) {
339
349
  d.add(e.serialize());
340
350
  }
341
- c.u(b + this.n("columns") + "[");
351
+ c.u(b + this.o("columns") + "[");
342
352
  c.u(b + b + stringJoin(", \n" + b + b, ...d.toArray()));
343
353
  c.u(b + "]");
344
354
  c.u("}");
345
355
  return c.toString();
346
356
  }
347
- n(a) {
357
+ o(a) {
348
358
  return a + ": ";
349
359
  }
350
360
  }