igniteui-webcomponents-charts 3.2.2 → 3.2.3

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.
@@ -88,7 +88,7 @@ export let CategoryDateTimeXAxis = /*@__PURE__*/ (() => {
88
88
  let d = this.j7();
89
89
  let e = this.j6();
90
90
  let f = new ScalerParams(0, b, c, this.cg, d);
91
- if (this.mg == null && !this.mm() && !this.mn()) {
91
+ if ((this.mg == null || this.mg.count < 1) && !this.mm() && !this.mn()) {
92
92
  return;
93
93
  }
94
94
  if (!b.isEmpty && !c.isEmpty && (this.nn != 1 || this.mg != null)) {
@@ -256,7 +256,7 @@ export let DataAbbreviator = /*@__PURE__*/ (() => {
256
256
  }
257
257
  return e;
258
258
  }
259
- static g(a, b = -1, c = -1) {
259
+ static g(a, b, c) {
260
260
  DataAbbreviator.s();
261
261
  let d = new List$1(DataAbbreviation.$, 0);
262
262
  for (let e = 0; e < a.length; e++) {
@@ -312,7 +312,7 @@ export let DataAbbreviator = /*@__PURE__*/ (() => {
312
312
  return 0;
313
313
  }
314
314
  static d(a) {
315
- let b = DataAbbreviator.g(a);
315
+ let b = DataAbbreviator.g(a, -1, -1);
316
316
  b.aa((c, d) => {
317
317
  if (c.c < d.c) {
318
318
  return -1;
@@ -196,7 +196,7 @@ export let DataLegendVisualDataColumn = /*@__PURE__*/ (() => {
196
196
  c.u(b + this.l("marginLeft") + DataLegendVisualData.serialize1(this.marginLeft) + a);
197
197
  c.u(b + this.l("marginRight") + DataLegendVisualData.serialize1(this.marginRight) + a);
198
198
  c.u(b + this.l("marginBottom") + DataLegendVisualData.serialize1(this.marginBottom) + a);
199
- let d = "\"" + (this.fontFamily != null ? stringReplace(this.fontFamily, '\"', '\'') : "null") + "\"";
199
+ let d = "\"" + (this.fontFamily != null ? stringReplace(this.fontFamily, "\"", "'") : "null") + "\"";
200
200
  c.u(b + this.l("fontFamily") + d + a);
201
201
  c.u(b + this.l("fontSize") + DataLegendVisualData.serialize1(this.fontSize) + a);
202
202
  c.u(b + this.l("fontWeight") + DataLegendVisualData.serialize1(this.fontWeight) + a);
@@ -540,101 +540,112 @@ export let DataToolTipLayer = /*@__PURE__*/ (() => {
540
540
  k = n.cd.l;
541
541
  l = n.cd.m;
542
542
  if (n.dg) {
543
- if (n.isStacked) {
544
- continue;
545
- }
546
543
  let o = n;
547
- if (!o.categoryAxis.cn()) {
548
- continue;
549
- }
550
- if (i) {
551
- h = n.isVertical;
544
+ let p = new List$1(Series.$, 0);
545
+ if (o.isStacked) {
546
+ o.la((q) => {
547
+ p.add(q);
548
+ return true;
549
+ });
552
550
  }
553
551
  else {
554
- if (h != n.isVertical) {
552
+ p.add(o);
553
+ }
554
+ for (let q = 0; q < p.count; q++) {
555
+ let r = p._inner[q];
556
+ let s = p._inner[q];
557
+ if (!r.categoryAxis.cn()) {
555
558
  continue;
556
559
  }
557
- }
558
- let p = this.qk(n);
559
- if (!p.c) {
560
- continue;
561
- }
562
- j = n.ph(p.d);
563
- let q = n.pm(p.d, c, false);
564
- if (h) {
565
- if (!isNaN_(q.y)) {
566
- d = Math.min(d, q.y);
567
- e = Math.max(e, q.y);
560
+ if (i) {
561
+ h = s.isVertical;
568
562
  }
569
- }
570
- else {
571
- if (!isNaN_(q.x)) {
572
- d = Math.min(d, q.x);
573
- e = Math.max(e, q.x);
563
+ else {
564
+ if (h != s.isVertical) {
565
+ continue;
566
+ }
567
+ }
568
+ let t = this.qk(s);
569
+ if (!t.c) {
570
+ continue;
571
+ }
572
+ j = s.ph(t.d);
573
+ let u = s.pm(t.d, c, false);
574
+ if (h) {
575
+ if (!isNaN_(u.y)) {
576
+ d = Math.min(d, u.y);
577
+ e = Math.max(e, u.y);
578
+ }
579
+ }
580
+ else {
581
+ if (!isNaN_(u.x)) {
582
+ d = Math.min(d, u.x);
583
+ e = Math.max(e, u.x);
584
+ }
574
585
  }
575
586
  }
576
587
  }
577
588
  else {
578
- let r = n.ag();
579
- for (let s = 0; s < r.length; s++) {
580
- if (!r[s].cn()) {
589
+ let v = n.ag();
590
+ for (let w = 0; w < v.length; w++) {
591
+ if (!v[w].cn()) {
581
592
  continue;
582
593
  }
583
594
  }
584
- let t = n.pm(this.q5, c, false);
595
+ let x = n.pm(this.q5, c, false);
585
596
  j = n.ph(this.q5);
586
597
  if (h) {
587
- if (!isNaN_(t.y)) {
588
- d = Math.min(d, t.y);
589
- e = Math.max(e, t.y);
598
+ if (!isNaN_(x.y)) {
599
+ d = Math.min(d, x.y);
600
+ e = Math.max(e, x.y);
590
601
  }
591
602
  }
592
603
  else {
593
- if (!isNaN_(t.x)) {
594
- d = Math.min(d, t.x);
595
- e = Math.max(e, t.x);
604
+ if (!isNaN_(x.x)) {
605
+ d = Math.min(d, x.x);
606
+ e = Math.max(e, x.x);
596
607
  }
597
608
  }
598
609
  }
599
- let u = null;
600
- let v = n.ht(this.q5);
601
- if (n.dl && v != null) {
602
- u = n.au(v);
610
+ let y = null;
611
+ let z = n.ht(this.q5);
612
+ if (n.dl && z != null) {
613
+ y = n.au(z);
603
614
  }
604
615
  else {
605
- u = new DataContext();
606
- u.item = v;
607
- u.series = n;
616
+ y = new DataContext();
617
+ y.item = z;
618
+ y.series = n;
608
619
  }
609
- f.add(u);
620
+ f.add(y);
610
621
  }
611
- let w = 0;
612
- let x = 0;
622
+ let aa = 0;
623
+ let ab = 0;
613
624
  if (h) {
614
- x = (d + e) / 2;
615
- w = this.pz.right;
625
+ ab = (d + e) / 2;
626
+ aa = this.pz.right;
616
627
  if (!isNaN_(j.x)) {
617
- w = j.x;
628
+ aa = j.x;
618
629
  }
619
- if (x < 0 || x > this.pz.bottom) {
620
- x = NaN;
630
+ if (ab < 0 || ab > this.pz.bottom) {
631
+ ab = NaN;
621
632
  }
622
633
  }
623
634
  else {
624
- w = (d + e) / 2;
635
+ aa = (d + e) / 2;
625
636
  if (!isNaN_(j.y)) {
626
- x = j.y;
637
+ ab = j.y;
627
638
  }
628
- if (w < 0 || w > this.pz.right) {
629
- w = NaN;
639
+ if (aa < 0 || aa > this.pz.right) {
640
+ aa = NaN;
630
641
  }
631
642
  }
632
- let y = new DataToolTipSeriesInfo();
633
- y.f = { $type: Point_$type, x: w, y: x };
634
- y.e = { $type: Point_$type, x: j.x, y: j.y };
635
- y.b = f;
636
- y.a = h;
637
- return y;
643
+ let ac = new DataToolTipSeriesInfo();
644
+ ac.f = { $type: Point_$type, x: aa, y: ab };
645
+ ac.e = { $type: Point_$type, x: j.x, y: j.y };
646
+ ac.b = f;
647
+ ac.a = h;
648
+ return ac;
638
649
  }
639
650
  ld() {
640
651
  this.q5 = { $type: Point_$type, x: NaN, y: NaN };
@@ -1245,7 +1256,15 @@ export let DataToolTipLayer = /*@__PURE__*/ (() => {
1245
1256
  let j = this.rg();
1246
1257
  if (j != null) {
1247
1258
  for (let k of fromEnum(j.da())) {
1248
- i.add(k.dataLegendKey);
1259
+ if (k.isStacked) {
1260
+ k.la((l) => {
1261
+ i.add(l.dataLegendKey);
1262
+ return true;
1263
+ });
1264
+ }
1265
+ else {
1266
+ i.add(k.dataLegendKey);
1267
+ }
1249
1268
  }
1250
1269
  h.includedSeries = i.toArray();
1251
1270
  }
@@ -52,7 +52,7 @@ export let ItemLegend = /*@__PURE__*/ (() => {
52
52
  if (!this.ak.m()) {
53
53
  return;
54
54
  }
55
- this.bi(b);
55
+ this.bk(b);
56
56
  }
57
57
  get_isItemwise() {
58
58
  return true;
@@ -88,9 +88,9 @@ export let ItemLegend = /*@__PURE__*/ (() => {
88
88
  this.ak.ag();
89
89
  }
90
90
  createLegendItemsInsert(a, b) {
91
- this.bh(a, b);
91
+ this.bj(a, b);
92
92
  }
93
- bh(a, b) {
93
+ bj(a, b) {
94
94
  this.ak.af();
95
95
  try {
96
96
  let c = this.bf(b);
@@ -118,9 +118,9 @@ export let ItemLegend = /*@__PURE__*/ (() => {
118
118
  }
119
119
  }
120
120
  renderItemwiseContent(a) {
121
- this.bi(a);
121
+ this.bk(a);
122
122
  }
123
- bi(a) {
123
+ bk(a) {
124
124
  this.clearLegendItemsForSeries(a);
125
125
  if (a.hasSubItems) {
126
126
  a.forSubItems((b) => {
@@ -176,6 +176,18 @@ export let ItemLegend = /*@__PURE__*/ (() => {
176
176
  set bc(a) {
177
177
  this.ak.k = a == 0;
178
178
  }
179
+ get bh() {
180
+ return this.ak.v;
181
+ }
182
+ set bh(a) {
183
+ this.ak.v = a;
184
+ }
185
+ get bi() {
186
+ return this.ak.w;
187
+ }
188
+ set bi(a) {
189
+ this.ak.w = a;
190
+ }
179
191
  }
180
192
  ItemLegend.$t = /*@__PURE__*/ markType(ItemLegend, 'ItemLegend', LegendBase.$, [IChartItemLegend_$type]);
181
193
  return ItemLegend;
@@ -95,6 +95,9 @@ export let SeriesInteractionManager = /*@__PURE__*/ (() => {
95
95
  else {
96
96
  j = NaN;
97
97
  }
98
+ if (u > g - 1 && a.ea) {
99
+ u = 0;
100
+ }
98
101
  if (u >= 0 && u < g) {
99
102
  k = d.ei(u, e) + f;
100
103
  }
@@ -430,6 +433,11 @@ export let SeriesInteractionManager = /*@__PURE__*/ (() => {
430
433
  return -1;
431
434
  }
432
435
  if (l < 0 || l > f.count - 1) {
436
+ if (a.ea) {
437
+ if (l > f.count - 1) {
438
+ return 0;
439
+ }
440
+ }
433
441
  return -1;
434
442
  }
435
443
  if (!c) {
@@ -2690,16 +2690,37 @@ export let SeriesViewer = /*@__PURE__*/ (() => {
2690
2690
  getDataLegendSeries() {
2691
2691
  let a = 0;
2692
2692
  for (let b = 0; b < this.series.count; b++) {
2693
- if (this.series._inner[b].isUsableInLegend) {
2694
- a++;
2693
+ if (this.series._inner[b].isStacked) {
2694
+ this.series._inner[b].la((c) => {
2695
+ if (c.isUsableInLegend) {
2696
+ a++;
2697
+ }
2698
+ return true;
2699
+ });
2700
+ }
2701
+ else {
2702
+ if (this.series._inner[b].isUsableInLegend) {
2703
+ a++;
2704
+ }
2695
2705
  }
2696
2706
  }
2697
2707
  let c = new Array(a);
2698
2708
  let d = 0;
2699
2709
  for (let e = 0; e < this.series.count; e++) {
2700
- if (this.series._inner[e].isUsableInLegend) {
2701
- c[d] = this.series._inner[e];
2702
- d++;
2710
+ if (this.series._inner[e].isStacked) {
2711
+ this.series._inner[e].la((f) => {
2712
+ if (f.isUsableInLegend) {
2713
+ c[d] = f;
2714
+ d++;
2715
+ }
2716
+ return true;
2717
+ });
2718
+ }
2719
+ else {
2720
+ if (this.series._inner[e].isUsableInLegend) {
2721
+ c[d] = this.series._inner[e];
2722
+ d++;
2723
+ }
2703
2724
  }
2704
2725
  }
2705
2726
  return c;
@@ -17085,11 +17106,16 @@ export let AxisView = /*@__PURE__*/ (() => {
17085
17106
  return null;
17086
17107
  }
17087
17108
  p(dataItem_) {
17088
- if (this.a.at != null) {
17089
- return this.a.at(dataItem_);
17109
+ if (this.n() && this.l()) {
17110
+ return this.q(dataItem_);
17090
17111
  }
17091
- if (this.a.ah != null) {
17092
- return this.a.ah.i(dataItem_);
17112
+ else {
17113
+ if (this.a.at != null) {
17114
+ return this.a.at(dataItem_);
17115
+ }
17116
+ if (this.a.ah != null) {
17117
+ return this.a.ah.i(dataItem_);
17118
+ }
17093
17119
  }
17094
17120
  let label_ = this.a.fz;
17095
17121
  let a = typeof dataItem_ === 'number' && typeof label_ === 'string';
@@ -108,6 +108,24 @@ export let IgcItemLegendComponent = /*@__PURE__*/ (() => {
108
108
  this.i.bc = ensureEnum(LegendOrientation_$type, v);
109
109
  this._a("orientation", enumToString(LegendOrientation_$type, this.i.bc));
110
110
  }
111
+ /**
112
+ * Gets or sets color of text
113
+ */
114
+ get textColor() {
115
+ return this.i.bh;
116
+ }
117
+ set textColor(v) {
118
+ this.i.bh = v;
119
+ }
120
+ /**
121
+ * Gets or sets style of text.
122
+ */
123
+ get textStyle() {
124
+ return this.i.bi;
125
+ }
126
+ set textStyle(v) {
127
+ this.i.bi = v;
128
+ }
111
129
  }
112
130
  IgcItemLegendComponent._observedAttributesIgcItemLegendComponent = null;
113
131
  IgcItemLegendComponent.htmlTagName = "igc-item-legend";
@@ -102,7 +102,7 @@ var CategoryDateTimeXAxis = /** @class */ /*@__PURE__*/ (function (_super) {
102
102
  var d = this.j7();
103
103
  var e = this.j6();
104
104
  var f = new ScalerParams(0, b, c, this.cg, d);
105
- if (this.mg == null && !this.mm() && !this.mn()) {
105
+ if ((this.mg == null || this.mg.count < 1) && !this.mm() && !this.mn()) {
106
106
  return;
107
107
  }
108
108
  if (!b.isEmpty && !c.isEmpty && (this.nn != 1 || this.mg != null)) {
@@ -307,12 +307,6 @@ var DataAbbreviator = /** @class */ /*@__PURE__*/ (function (_super) {
307
307
  return e;
308
308
  };
309
309
  DataAbbreviator.g = function (a, b, c) {
310
- if (b === void 0) {
311
- b = -1;
312
- }
313
- if (c === void 0) {
314
- c = -1;
315
- }
316
310
  DataAbbreviator.s();
317
311
  var d = new List$1(DataAbbreviation.$, 0);
318
312
  for (var e = 0; e < a.length; e++) {
@@ -374,7 +368,7 @@ var DataAbbreviator = /** @class */ /*@__PURE__*/ (function (_super) {
374
368
  return 0;
375
369
  };
376
370
  DataAbbreviator.d = function (a) {
377
- var b = DataAbbreviator.g(a);
371
+ var b = DataAbbreviator.g(a, -1, -1);
378
372
  b.aa(function (c, d) {
379
373
  if (c.c < d.c) {
380
374
  return -1;
@@ -280,7 +280,7 @@ var DataLegendVisualDataColumn = /** @class */ /*@__PURE__*/ (function (_super)
280
280
  c.u(b + this.l("marginLeft") + DataLegendVisualData.serialize1(this.marginLeft) + a);
281
281
  c.u(b + this.l("marginRight") + DataLegendVisualData.serialize1(this.marginRight) + a);
282
282
  c.u(b + this.l("marginBottom") + DataLegendVisualData.serialize1(this.marginBottom) + a);
283
- var d = "\"" + (this.fontFamily != null ? stringReplace(this.fontFamily, '\"', '\'') : "null") + "\"";
283
+ var d = "\"" + (this.fontFamily != null ? stringReplace(this.fontFamily, "\"", "'") : "null") + "\"";
284
284
  c.u(b + this.l("fontFamily") + d + a);
285
285
  c.u(b + this.l("fontSize") + DataLegendVisualData.serialize1(this.fontSize) + a);
286
286
  c.u(b + this.l("fontWeight") + DataLegendVisualData.serialize1(this.fontWeight) + a);
@@ -626,106 +626,121 @@ var DataToolTipLayer = /** @class */ /*@__PURE__*/ (function (_super) {
626
626
  var j = { $type: Point_$type, x: NaN, y: NaN };
627
627
  var k = 0;
628
628
  var l = 0;
629
- for (var m = 0; m < b.count; m++) {
629
+ var _loop_1 = function (m) {
630
630
  var n = b.item(m);
631
631
  k = n.cd.l;
632
632
  l = n.cd.m;
633
633
  if (n.dg) {
634
- if (n.isStacked) {
635
- continue;
636
- }
637
634
  var o = n;
638
- if (!o.categoryAxis.cn()) {
639
- continue;
640
- }
641
- if (i) {
642
- h = n.isVertical;
635
+ var p_1 = new List$1(Series.$, 0);
636
+ if (o.isStacked) {
637
+ o.la(function (q) {
638
+ p_1.add(q);
639
+ return true;
640
+ });
643
641
  }
644
642
  else {
645
- if (h != n.isVertical) {
643
+ p_1.add(o);
644
+ }
645
+ for (var q = 0; q < p_1.count; q++) {
646
+ var r = p_1._inner[q];
647
+ var s = p_1._inner[q];
648
+ if (!r.categoryAxis.cn()) {
646
649
  continue;
647
650
  }
648
- }
649
- var p = this.qk(n);
650
- if (!p.c) {
651
- continue;
652
- }
653
- j = n.ph(p.d);
654
- var q = n.pm(p.d, c, false);
655
- if (h) {
656
- if (!isNaN_(q.y)) {
657
- d = Math.min(d, q.y);
658
- e = Math.max(e, q.y);
651
+ if (i) {
652
+ h = s.isVertical;
659
653
  }
660
- }
661
- else {
662
- if (!isNaN_(q.x)) {
663
- d = Math.min(d, q.x);
664
- e = Math.max(e, q.x);
654
+ else {
655
+ if (h != s.isVertical) {
656
+ continue;
657
+ }
658
+ }
659
+ var t = this_1.qk(s);
660
+ if (!t.c) {
661
+ continue;
662
+ }
663
+ j = s.ph(t.d);
664
+ var u = s.pm(t.d, c, false);
665
+ if (h) {
666
+ if (!isNaN_(u.y)) {
667
+ d = Math.min(d, u.y);
668
+ e = Math.max(e, u.y);
669
+ }
670
+ }
671
+ else {
672
+ if (!isNaN_(u.x)) {
673
+ d = Math.min(d, u.x);
674
+ e = Math.max(e, u.x);
675
+ }
665
676
  }
666
677
  }
667
678
  }
668
679
  else {
669
- var r = n.ag();
670
- for (var s = 0; s < r.length; s++) {
671
- if (!r[s].cn()) {
680
+ var v = n.ag();
681
+ for (var w = 0; w < v.length; w++) {
682
+ if (!v[w].cn()) {
672
683
  continue;
673
684
  }
674
685
  }
675
- var t = n.pm(this.q5, c, false);
676
- j = n.ph(this.q5);
686
+ var x = n.pm(this_1.q5, c, false);
687
+ j = n.ph(this_1.q5);
677
688
  if (h) {
678
- if (!isNaN_(t.y)) {
679
- d = Math.min(d, t.y);
680
- e = Math.max(e, t.y);
689
+ if (!isNaN_(x.y)) {
690
+ d = Math.min(d, x.y);
691
+ e = Math.max(e, x.y);
681
692
  }
682
693
  }
683
694
  else {
684
- if (!isNaN_(t.x)) {
685
- d = Math.min(d, t.x);
686
- e = Math.max(e, t.x);
695
+ if (!isNaN_(x.x)) {
696
+ d = Math.min(d, x.x);
697
+ e = Math.max(e, x.x);
687
698
  }
688
699
  }
689
700
  }
690
- var u = null;
691
- var v = n.ht(this.q5);
692
- if (n.dl && v != null) {
693
- u = n.au(v);
701
+ var y = null;
702
+ var z = n.ht(this_1.q5);
703
+ if (n.dl && z != null) {
704
+ y = n.au(z);
694
705
  }
695
706
  else {
696
- u = new DataContext();
697
- u.item = v;
698
- u.series = n;
707
+ y = new DataContext();
708
+ y.item = z;
709
+ y.series = n;
699
710
  }
700
- f.add(u);
711
+ f.add(y);
712
+ };
713
+ var this_1 = this;
714
+ for (var m = 0; m < b.count; m++) {
715
+ _loop_1(m);
701
716
  }
702
- var w = 0;
703
- var x = 0;
717
+ var aa = 0;
718
+ var ab = 0;
704
719
  if (h) {
705
- x = (d + e) / 2;
706
- w = this.pz.right;
720
+ ab = (d + e) / 2;
721
+ aa = this.pz.right;
707
722
  if (!isNaN_(j.x)) {
708
- w = j.x;
723
+ aa = j.x;
709
724
  }
710
- if (x < 0 || x > this.pz.bottom) {
711
- x = NaN;
725
+ if (ab < 0 || ab > this.pz.bottom) {
726
+ ab = NaN;
712
727
  }
713
728
  }
714
729
  else {
715
- w = (d + e) / 2;
730
+ aa = (d + e) / 2;
716
731
  if (!isNaN_(j.y)) {
717
- x = j.y;
732
+ ab = j.y;
718
733
  }
719
- if (w < 0 || w > this.pz.right) {
720
- w = NaN;
734
+ if (aa < 0 || aa > this.pz.right) {
735
+ aa = NaN;
721
736
  }
722
737
  }
723
- var y = new DataToolTipSeriesInfo();
724
- y.f = { $type: Point_$type, x: w, y: x };
725
- y.e = { $type: Point_$type, x: j.x, y: j.y };
726
- y.b = f;
727
- y.a = h;
728
- return y;
738
+ var ac = new DataToolTipSeriesInfo();
739
+ ac.f = { $type: Point_$type, x: aa, y: ab };
740
+ ac.e = { $type: Point_$type, x: j.x, y: j.y };
741
+ ac.b = f;
742
+ ac.a = h;
743
+ return ac;
729
744
  };
730
745
  DataToolTipLayer.prototype.ld = function () {
731
746
  this.q5 = { $type: Point_$type, x: NaN, y: NaN };
@@ -1355,7 +1370,15 @@ var DataToolTipLayer = /** @class */ /*@__PURE__*/ (function (_super) {
1355
1370
  try {
1356
1371
  for (var _b = tslib_1.__values(fromEnum(j.da())), _c = _b.next(); !_c.done; _c = _b.next()) {
1357
1372
  var k = _c.value;
1358
- i.add(k.dataLegendKey);
1373
+ if (k.isStacked) {
1374
+ k.la(function (l) {
1375
+ i.add(l.dataLegendKey);
1376
+ return true;
1377
+ });
1378
+ }
1379
+ else {
1380
+ i.add(k.dataLegendKey);
1381
+ }
1359
1382
  }
1360
1383
  }
1361
1384
  catch (e_6_1) {