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.
@@ -5945,16 +5945,37 @@
5945
5945
  SeriesViewer.prototype.getDataLegendSeries = function () {
5946
5946
  var a = 0;
5947
5947
  for (var b = 0; b < this.series.count; b++) {
5948
- if (this.series._inner[b].isUsableInLegend) {
5949
- a++;
5948
+ if (this.series._inner[b].isStacked) {
5949
+ this.series._inner[b].la(function (c) {
5950
+ if (c.isUsableInLegend) {
5951
+ a++;
5952
+ }
5953
+ return true;
5954
+ });
5955
+ }
5956
+ else {
5957
+ if (this.series._inner[b].isUsableInLegend) {
5958
+ a++;
5959
+ }
5950
5960
  }
5951
5961
  }
5952
5962
  var c = new Array(a);
5953
5963
  var d = 0;
5954
5964
  for (var e = 0; e < this.series.count; e++) {
5955
- if (this.series._inner[e].isUsableInLegend) {
5956
- c[d] = this.series._inner[e];
5957
- d++;
5965
+ if (this.series._inner[e].isStacked) {
5966
+ this.series._inner[e].la(function (f) {
5967
+ if (f.isUsableInLegend) {
5968
+ c[d] = f;
5969
+ d++;
5970
+ }
5971
+ return true;
5972
+ });
5973
+ }
5974
+ else {
5975
+ if (this.series._inner[e].isUsableInLegend) {
5976
+ c[d] = this.series._inner[e];
5977
+ d++;
5978
+ }
5958
5979
  }
5959
5980
  }
5960
5981
  return c;
@@ -22998,11 +23019,16 @@
22998
23019
  return null;
22999
23020
  };
23000
23021
  AxisView.prototype.p = function (dataItem_) {
23001
- if (this.a.at != null) {
23002
- return this.a.at(dataItem_);
23022
+ if (this.n() && this.l()) {
23023
+ return this.q(dataItem_);
23003
23024
  }
23004
- if (this.a.ah != null) {
23005
- return this.a.ah.i(dataItem_);
23025
+ else {
23026
+ if (this.a.at != null) {
23027
+ return this.a.at(dataItem_);
23028
+ }
23029
+ if (this.a.ah != null) {
23030
+ return this.a.ah.i(dataItem_);
23031
+ }
23006
23032
  }
23007
23033
  var label_ = this.a.fz;
23008
23034
  var a = typeof dataItem_ === 'number' && typeof label_ === 'string';
@@ -29644,106 +29670,121 @@
29644
29670
  var j = { $type: igniteuiWebcomponentsCore.Point_$type, x: NaN, y: NaN };
29645
29671
  var k = 0;
29646
29672
  var l = 0;
29647
- for (var m = 0; m < b.count; m++) {
29673
+ var _loop_1 = function (m) {
29648
29674
  var n = b.item(m);
29649
29675
  k = n.cd.l;
29650
29676
  l = n.cd.m;
29651
29677
  if (n.dg) {
29652
- if (n.isStacked) {
29653
- continue;
29654
- }
29655
29678
  var o = n;
29656
- if (!o.categoryAxis.cn()) {
29657
- continue;
29658
- }
29659
- if (i) {
29660
- h = n.isVertical;
29679
+ var p_1 = new igniteuiWebcomponentsCore.List$1(Series.$, 0);
29680
+ if (o.isStacked) {
29681
+ o.la(function (q) {
29682
+ p_1.add(q);
29683
+ return true;
29684
+ });
29661
29685
  }
29662
29686
  else {
29663
- if (h != n.isVertical) {
29687
+ p_1.add(o);
29688
+ }
29689
+ for (var q = 0; q < p_1.count; q++) {
29690
+ var r = p_1._inner[q];
29691
+ var s = p_1._inner[q];
29692
+ if (!r.categoryAxis.cn()) {
29664
29693
  continue;
29665
29694
  }
29666
- }
29667
- var p = this.qk(n);
29668
- if (!p.c) {
29669
- continue;
29670
- }
29671
- j = n.ph(p.d);
29672
- var q = n.pm(p.d, c, false);
29673
- if (h) {
29674
- if (!igniteuiWebcomponentsCore.isNaN_(q.y)) {
29675
- d = Math.min(d, q.y);
29676
- e = Math.max(e, q.y);
29695
+ if (i) {
29696
+ h = s.isVertical;
29677
29697
  }
29678
- }
29679
- else {
29680
- if (!igniteuiWebcomponentsCore.isNaN_(q.x)) {
29681
- d = Math.min(d, q.x);
29682
- e = Math.max(e, q.x);
29698
+ else {
29699
+ if (h != s.isVertical) {
29700
+ continue;
29701
+ }
29702
+ }
29703
+ var t = this_1.qk(s);
29704
+ if (!t.c) {
29705
+ continue;
29706
+ }
29707
+ j = s.ph(t.d);
29708
+ var u = s.pm(t.d, c, false);
29709
+ if (h) {
29710
+ if (!igniteuiWebcomponentsCore.isNaN_(u.y)) {
29711
+ d = Math.min(d, u.y);
29712
+ e = Math.max(e, u.y);
29713
+ }
29714
+ }
29715
+ else {
29716
+ if (!igniteuiWebcomponentsCore.isNaN_(u.x)) {
29717
+ d = Math.min(d, u.x);
29718
+ e = Math.max(e, u.x);
29719
+ }
29683
29720
  }
29684
29721
  }
29685
29722
  }
29686
29723
  else {
29687
- var r = n.ag();
29688
- for (var s = 0; s < r.length; s++) {
29689
- if (!r[s].cn()) {
29724
+ var v = n.ag();
29725
+ for (var w = 0; w < v.length; w++) {
29726
+ if (!v[w].cn()) {
29690
29727
  continue;
29691
29728
  }
29692
29729
  }
29693
- var t = n.pm(this.q5, c, false);
29694
- j = n.ph(this.q5);
29730
+ var x = n.pm(this_1.q5, c, false);
29731
+ j = n.ph(this_1.q5);
29695
29732
  if (h) {
29696
- if (!igniteuiWebcomponentsCore.isNaN_(t.y)) {
29697
- d = Math.min(d, t.y);
29698
- e = Math.max(e, t.y);
29733
+ if (!igniteuiWebcomponentsCore.isNaN_(x.y)) {
29734
+ d = Math.min(d, x.y);
29735
+ e = Math.max(e, x.y);
29699
29736
  }
29700
29737
  }
29701
29738
  else {
29702
- if (!igniteuiWebcomponentsCore.isNaN_(t.x)) {
29703
- d = Math.min(d, t.x);
29704
- e = Math.max(e, t.x);
29739
+ if (!igniteuiWebcomponentsCore.isNaN_(x.x)) {
29740
+ d = Math.min(d, x.x);
29741
+ e = Math.max(e, x.x);
29705
29742
  }
29706
29743
  }
29707
29744
  }
29708
- var u = null;
29709
- var v = n.ht(this.q5);
29710
- if (n.dl && v != null) {
29711
- u = n.au(v);
29745
+ var y = null;
29746
+ var z = n.ht(this_1.q5);
29747
+ if (n.dl && z != null) {
29748
+ y = n.au(z);
29712
29749
  }
29713
29750
  else {
29714
- u = new igniteuiWebcomponentsCore.DataContext();
29715
- u.item = v;
29716
- u.series = n;
29751
+ y = new igniteuiWebcomponentsCore.DataContext();
29752
+ y.item = z;
29753
+ y.series = n;
29717
29754
  }
29718
- f.add(u);
29755
+ f.add(y);
29756
+ };
29757
+ var this_1 = this;
29758
+ for (var m = 0; m < b.count; m++) {
29759
+ _loop_1(m);
29719
29760
  }
29720
- var w = 0;
29721
- var x = 0;
29761
+ var aa = 0;
29762
+ var ab = 0;
29722
29763
  if (h) {
29723
- x = (d + e) / 2;
29724
- w = this.pz.right;
29764
+ ab = (d + e) / 2;
29765
+ aa = this.pz.right;
29725
29766
  if (!igniteuiWebcomponentsCore.isNaN_(j.x)) {
29726
- w = j.x;
29767
+ aa = j.x;
29727
29768
  }
29728
- if (x < 0 || x > this.pz.bottom) {
29729
- x = NaN;
29769
+ if (ab < 0 || ab > this.pz.bottom) {
29770
+ ab = NaN;
29730
29771
  }
29731
29772
  }
29732
29773
  else {
29733
- w = (d + e) / 2;
29774
+ aa = (d + e) / 2;
29734
29775
  if (!igniteuiWebcomponentsCore.isNaN_(j.y)) {
29735
- x = j.y;
29776
+ ab = j.y;
29736
29777
  }
29737
- if (w < 0 || w > this.pz.right) {
29738
- w = NaN;
29778
+ if (aa < 0 || aa > this.pz.right) {
29779
+ aa = NaN;
29739
29780
  }
29740
29781
  }
29741
- var y = new DataToolTipSeriesInfo();
29742
- y.f = { $type: igniteuiWebcomponentsCore.Point_$type, x: w, y: x };
29743
- y.e = { $type: igniteuiWebcomponentsCore.Point_$type, x: j.x, y: j.y };
29744
- y.b = f;
29745
- y.a = h;
29746
- return y;
29782
+ var ac = new DataToolTipSeriesInfo();
29783
+ ac.f = { $type: igniteuiWebcomponentsCore.Point_$type, x: aa, y: ab };
29784
+ ac.e = { $type: igniteuiWebcomponentsCore.Point_$type, x: j.x, y: j.y };
29785
+ ac.b = f;
29786
+ ac.a = h;
29787
+ return ac;
29747
29788
  };
29748
29789
  DataToolTipLayer.prototype.ld = function () {
29749
29790
  this.q5 = { $type: igniteuiWebcomponentsCore.Point_$type, x: NaN, y: NaN };
@@ -30373,7 +30414,15 @@
30373
30414
  try {
30374
30415
  for (var _b = tslib_1.__values(igniteuiWebcomponentsCore.fromEnum(j.da())), _c = _b.next(); !_c.done; _c = _b.next()) {
30375
30416
  var k = _c.value;
30376
- i.add(k.dataLegendKey);
30417
+ if (k.isStacked) {
30418
+ k.la(function (l) {
30419
+ i.add(l.dataLegendKey);
30420
+ return true;
30421
+ });
30422
+ }
30423
+ else {
30424
+ i.add(k.dataLegendKey);
30425
+ }
30377
30426
  }
30378
30427
  }
30379
30428
  catch (e_6_1) {
@@ -44971,7 +45020,7 @@
44971
45020
  c.u(b + this.l("marginLeft") + DataLegendVisualData.serialize1(this.marginLeft) + a);
44972
45021
  c.u(b + this.l("marginRight") + DataLegendVisualData.serialize1(this.marginRight) + a);
44973
45022
  c.u(b + this.l("marginBottom") + DataLegendVisualData.serialize1(this.marginBottom) + a);
44974
- var d = "\"" + (this.fontFamily != null ? igniteuiWebcomponentsCore.stringReplace(this.fontFamily, '\"', '\'') : "null") + "\"";
45023
+ var d = "\"" + (this.fontFamily != null ? igniteuiWebcomponentsCore.stringReplace(this.fontFamily, "\"", "'") : "null") + "\"";
44975
45024
  c.u(b + this.l("fontFamily") + d + a);
44976
45025
  c.u(b + this.l("fontSize") + DataLegendVisualData.serialize1(this.fontSize) + a);
44977
45026
  c.u(b + this.l("fontWeight") + DataLegendVisualData.serialize1(this.fontWeight) + a);
@@ -46069,12 +46118,6 @@
46069
46118
  return e;
46070
46119
  };
46071
46120
  DataAbbreviator.g = function (a, b, c) {
46072
- if (b === void 0) {
46073
- b = -1;
46074
- }
46075
- if (c === void 0) {
46076
- c = -1;
46077
- }
46078
46121
  DataAbbreviator.s();
46079
46122
  var d = new igniteuiWebcomponentsCore.List$1(DataAbbreviation.$, 0);
46080
46123
  for (var e = 0; e < a.length; e++) {
@@ -46136,7 +46179,7 @@
46136
46179
  return 0;
46137
46180
  };
46138
46181
  DataAbbreviator.d = function (a) {
46139
- var b = DataAbbreviator.g(a);
46182
+ var b = DataAbbreviator.g(a, -1, -1);
46140
46183
  b.aa(function (c, d) {
46141
46184
  if (c.c < d.c) {
46142
46185
  return -1;
@@ -81264,6 +81307,9 @@
81264
81307
  else {
81265
81308
  j = NaN;
81266
81309
  }
81310
+ if (u > g - 1 && a.ea) {
81311
+ u = 0;
81312
+ }
81267
81313
  if (u >= 0 && u < g) {
81268
81314
  k = d.ei(u, e) + f;
81269
81315
  }
@@ -81599,6 +81645,11 @@
81599
81645
  return -1;
81600
81646
  }
81601
81647
  if (l < 0 || l > f.count - 1) {
81648
+ if (a.ea) {
81649
+ if (l > f.count - 1) {
81650
+ return 0;
81651
+ }
81652
+ }
81602
81653
  return -1;
81603
81654
  }
81604
81655
  if (!c) {
@@ -104747,7 +104798,7 @@
104747
104798
  var d = this.j7();
104748
104799
  var e = this.j6();
104749
104800
  var f = new ScalerParams(0, b, c, this.cg, d);
104750
- if (this.mg == null && !this.mm() && !this.mn()) {
104801
+ if ((this.mg == null || this.mg.count < 1) && !this.mm() && !this.mn()) {
104751
104802
  return;
104752
104803
  }
104753
104804
  if (!b.isEmpty && !c.isEmpty && (this.nn != 1 || this.mg != null)) {
@@ -201426,7 +201477,7 @@
201426
201477
  if (!this.ak.m()) {
201427
201478
  return;
201428
201479
  }
201429
- this.bi(b);
201480
+ this.bk(b);
201430
201481
  };
201431
201482
  ItemLegend.prototype.get_isItemwise = function () {
201432
201483
  return true;
@@ -201479,9 +201530,9 @@
201479
201530
  this.ak.ag();
201480
201531
  };
201481
201532
  ItemLegend.prototype.createLegendItemsInsert = function (a, b) {
201482
- this.bh(a, b);
201533
+ this.bj(a, b);
201483
201534
  };
201484
- ItemLegend.prototype.bh = function (a, b) {
201535
+ ItemLegend.prototype.bj = function (a, b) {
201485
201536
  var e_4, _a;
201486
201537
  this.ak.af();
201487
201538
  try {
@@ -201526,9 +201577,9 @@
201526
201577
  }
201527
201578
  };
201528
201579
  ItemLegend.prototype.renderItemwiseContent = function (a) {
201529
- this.bi(a);
201580
+ this.bk(a);
201530
201581
  };
201531
- ItemLegend.prototype.bi = function (a) {
201582
+ ItemLegend.prototype.bk = function (a) {
201532
201583
  var _this = this;
201533
201584
  this.clearLegendItemsForSeries(a);
201534
201585
  if (a.hasSubItems) {
@@ -201622,6 +201673,26 @@
201622
201673
  enumerable: true,
201623
201674
  configurable: true
201624
201675
  });
201676
+ Object.defineProperty(ItemLegend.prototype, "bh", {
201677
+ get: function () {
201678
+ return this.ak.v;
201679
+ },
201680
+ set: function (a) {
201681
+ this.ak.v = a;
201682
+ },
201683
+ enumerable: true,
201684
+ configurable: true
201685
+ });
201686
+ Object.defineProperty(ItemLegend.prototype, "bi", {
201687
+ get: function () {
201688
+ return this.ak.w;
201689
+ },
201690
+ set: function (a) {
201691
+ this.ak.w = a;
201692
+ },
201693
+ enumerable: true,
201694
+ configurable: true
201695
+ });
201625
201696
  ItemLegend.$t = igniteuiWebcomponentsCore.markType(ItemLegend, 'ItemLegend', LegendBase.$, [igniteuiWebcomponentsCore.IChartItemLegend_$type]);
201626
201697
  return ItemLegend;
201627
201698
  }(LegendBase));
@@ -201798,6 +201869,32 @@
201798
201869
  enumerable: true,
201799
201870
  configurable: true
201800
201871
  });
201872
+ Object.defineProperty(IgcItemLegendComponent.prototype, "textColor", {
201873
+ /**
201874
+ * Gets or sets color of text
201875
+ */
201876
+ get: function () {
201877
+ return this.i.bh;
201878
+ },
201879
+ set: function (v) {
201880
+ this.i.bh = v;
201881
+ },
201882
+ enumerable: true,
201883
+ configurable: true
201884
+ });
201885
+ Object.defineProperty(IgcItemLegendComponent.prototype, "textStyle", {
201886
+ /**
201887
+ * Gets or sets style of text.
201888
+ */
201889
+ get: function () {
201890
+ return this.i.bi;
201891
+ },
201892
+ set: function (v) {
201893
+ this.i.bi = v;
201894
+ },
201895
+ enumerable: true,
201896
+ configurable: true
201897
+ });
201801
201898
  IgcItemLegendComponent._observedAttributesIgcItemLegendComponent = null;
201802
201899
  IgcItemLegendComponent.htmlTagName = "igc-item-legend";
201803
201900
  IgcItemLegendComponent._isElementRegistered = false;