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.
@@ -5942,16 +5942,37 @@ var SeriesViewer = /** @class */ /*@__PURE__*/ (function (_super) {
5942
5942
  SeriesViewer.prototype.getDataLegendSeries = function () {
5943
5943
  var a = 0;
5944
5944
  for (var b = 0; b < this.series.count; b++) {
5945
- if (this.series._inner[b].isUsableInLegend) {
5946
- a++;
5945
+ if (this.series._inner[b].isStacked) {
5946
+ this.series._inner[b].la(function (c) {
5947
+ if (c.isUsableInLegend) {
5948
+ a++;
5949
+ }
5950
+ return true;
5951
+ });
5952
+ }
5953
+ else {
5954
+ if (this.series._inner[b].isUsableInLegend) {
5955
+ a++;
5956
+ }
5947
5957
  }
5948
5958
  }
5949
5959
  var c = new Array(a);
5950
5960
  var d = 0;
5951
5961
  for (var e = 0; e < this.series.count; e++) {
5952
- if (this.series._inner[e].isUsableInLegend) {
5953
- c[d] = this.series._inner[e];
5954
- d++;
5962
+ if (this.series._inner[e].isStacked) {
5963
+ this.series._inner[e].la(function (f) {
5964
+ if (f.isUsableInLegend) {
5965
+ c[d] = f;
5966
+ d++;
5967
+ }
5968
+ return true;
5969
+ });
5970
+ }
5971
+ else {
5972
+ if (this.series._inner[e].isUsableInLegend) {
5973
+ c[d] = this.series._inner[e];
5974
+ d++;
5975
+ }
5955
5976
  }
5956
5977
  }
5957
5978
  return c;
@@ -22995,11 +23016,16 @@ var AxisView = /** @class */ /*@__PURE__*/ (function (_super) {
22995
23016
  return null;
22996
23017
  };
22997
23018
  AxisView.prototype.p = function (dataItem_) {
22998
- if (this.a.at != null) {
22999
- return this.a.at(dataItem_);
23019
+ if (this.n() && this.l()) {
23020
+ return this.q(dataItem_);
23000
23021
  }
23001
- if (this.a.ah != null) {
23002
- return this.a.ah.i(dataItem_);
23022
+ else {
23023
+ if (this.a.at != null) {
23024
+ return this.a.at(dataItem_);
23025
+ }
23026
+ if (this.a.ah != null) {
23027
+ return this.a.ah.i(dataItem_);
23028
+ }
23003
23029
  }
23004
23030
  var label_ = this.a.fz;
23005
23031
  var a = typeof dataItem_ === 'number' && typeof label_ === 'string';
@@ -29641,106 +29667,121 @@ var DataToolTipLayer = /** @class */ /*@__PURE__*/ (function (_super) {
29641
29667
  var j = { $type: Point_$type, x: NaN, y: NaN };
29642
29668
  var k = 0;
29643
29669
  var l = 0;
29644
- for (var m = 0; m < b.count; m++) {
29670
+ var _loop_1 = function (m) {
29645
29671
  var n = b.item(m);
29646
29672
  k = n.cd.l;
29647
29673
  l = n.cd.m;
29648
29674
  if (n.dg) {
29649
- if (n.isStacked) {
29650
- continue;
29651
- }
29652
29675
  var o = n;
29653
- if (!o.categoryAxis.cn()) {
29654
- continue;
29655
- }
29656
- if (i) {
29657
- h = n.isVertical;
29676
+ var p_1 = new List$1(Series.$, 0);
29677
+ if (o.isStacked) {
29678
+ o.la(function (q) {
29679
+ p_1.add(q);
29680
+ return true;
29681
+ });
29658
29682
  }
29659
29683
  else {
29660
- if (h != n.isVertical) {
29684
+ p_1.add(o);
29685
+ }
29686
+ for (var q = 0; q < p_1.count; q++) {
29687
+ var r = p_1._inner[q];
29688
+ var s = p_1._inner[q];
29689
+ if (!r.categoryAxis.cn()) {
29661
29690
  continue;
29662
29691
  }
29663
- }
29664
- var p = this.qk(n);
29665
- if (!p.c) {
29666
- continue;
29667
- }
29668
- j = n.ph(p.d);
29669
- var q = n.pm(p.d, c, false);
29670
- if (h) {
29671
- if (!isNaN_(q.y)) {
29672
- d = Math.min(d, q.y);
29673
- e = Math.max(e, q.y);
29692
+ if (i) {
29693
+ h = s.isVertical;
29674
29694
  }
29675
- }
29676
- else {
29677
- if (!isNaN_(q.x)) {
29678
- d = Math.min(d, q.x);
29679
- e = Math.max(e, q.x);
29695
+ else {
29696
+ if (h != s.isVertical) {
29697
+ continue;
29698
+ }
29699
+ }
29700
+ var t = this_1.qk(s);
29701
+ if (!t.c) {
29702
+ continue;
29703
+ }
29704
+ j = s.ph(t.d);
29705
+ var u = s.pm(t.d, c, false);
29706
+ if (h) {
29707
+ if (!isNaN_(u.y)) {
29708
+ d = Math.min(d, u.y);
29709
+ e = Math.max(e, u.y);
29710
+ }
29711
+ }
29712
+ else {
29713
+ if (!isNaN_(u.x)) {
29714
+ d = Math.min(d, u.x);
29715
+ e = Math.max(e, u.x);
29716
+ }
29680
29717
  }
29681
29718
  }
29682
29719
  }
29683
29720
  else {
29684
- var r = n.ag();
29685
- for (var s = 0; s < r.length; s++) {
29686
- if (!r[s].cn()) {
29721
+ var v = n.ag();
29722
+ for (var w = 0; w < v.length; w++) {
29723
+ if (!v[w].cn()) {
29687
29724
  continue;
29688
29725
  }
29689
29726
  }
29690
- var t = n.pm(this.q5, c, false);
29691
- j = n.ph(this.q5);
29727
+ var x = n.pm(this_1.q5, c, false);
29728
+ j = n.ph(this_1.q5);
29692
29729
  if (h) {
29693
- if (!isNaN_(t.y)) {
29694
- d = Math.min(d, t.y);
29695
- e = Math.max(e, t.y);
29730
+ if (!isNaN_(x.y)) {
29731
+ d = Math.min(d, x.y);
29732
+ e = Math.max(e, x.y);
29696
29733
  }
29697
29734
  }
29698
29735
  else {
29699
- if (!isNaN_(t.x)) {
29700
- d = Math.min(d, t.x);
29701
- e = Math.max(e, t.x);
29736
+ if (!isNaN_(x.x)) {
29737
+ d = Math.min(d, x.x);
29738
+ e = Math.max(e, x.x);
29702
29739
  }
29703
29740
  }
29704
29741
  }
29705
- var u = null;
29706
- var v = n.ht(this.q5);
29707
- if (n.dl && v != null) {
29708
- u = n.au(v);
29742
+ var y = null;
29743
+ var z = n.ht(this_1.q5);
29744
+ if (n.dl && z != null) {
29745
+ y = n.au(z);
29709
29746
  }
29710
29747
  else {
29711
- u = new DataContext();
29712
- u.item = v;
29713
- u.series = n;
29748
+ y = new DataContext();
29749
+ y.item = z;
29750
+ y.series = n;
29714
29751
  }
29715
- f.add(u);
29752
+ f.add(y);
29753
+ };
29754
+ var this_1 = this;
29755
+ for (var m = 0; m < b.count; m++) {
29756
+ _loop_1(m);
29716
29757
  }
29717
- var w = 0;
29718
- var x = 0;
29758
+ var aa = 0;
29759
+ var ab = 0;
29719
29760
  if (h) {
29720
- x = (d + e) / 2;
29721
- w = this.pz.right;
29761
+ ab = (d + e) / 2;
29762
+ aa = this.pz.right;
29722
29763
  if (!isNaN_(j.x)) {
29723
- w = j.x;
29764
+ aa = j.x;
29724
29765
  }
29725
- if (x < 0 || x > this.pz.bottom) {
29726
- x = NaN;
29766
+ if (ab < 0 || ab > this.pz.bottom) {
29767
+ ab = NaN;
29727
29768
  }
29728
29769
  }
29729
29770
  else {
29730
- w = (d + e) / 2;
29771
+ aa = (d + e) / 2;
29731
29772
  if (!isNaN_(j.y)) {
29732
- x = j.y;
29773
+ ab = j.y;
29733
29774
  }
29734
- if (w < 0 || w > this.pz.right) {
29735
- w = NaN;
29775
+ if (aa < 0 || aa > this.pz.right) {
29776
+ aa = NaN;
29736
29777
  }
29737
29778
  }
29738
- var y = new DataToolTipSeriesInfo();
29739
- y.f = { $type: Point_$type, x: w, y: x };
29740
- y.e = { $type: Point_$type, x: j.x, y: j.y };
29741
- y.b = f;
29742
- y.a = h;
29743
- return y;
29779
+ var ac = new DataToolTipSeriesInfo();
29780
+ ac.f = { $type: Point_$type, x: aa, y: ab };
29781
+ ac.e = { $type: Point_$type, x: j.x, y: j.y };
29782
+ ac.b = f;
29783
+ ac.a = h;
29784
+ return ac;
29744
29785
  };
29745
29786
  DataToolTipLayer.prototype.ld = function () {
29746
29787
  this.q5 = { $type: Point_$type, x: NaN, y: NaN };
@@ -30370,7 +30411,15 @@ var DataToolTipLayer = /** @class */ /*@__PURE__*/ (function (_super) {
30370
30411
  try {
30371
30412
  for (var _b = __values(fromEnum(j.da())), _c = _b.next(); !_c.done; _c = _b.next()) {
30372
30413
  var k = _c.value;
30373
- i.add(k.dataLegendKey);
30414
+ if (k.isStacked) {
30415
+ k.la(function (l) {
30416
+ i.add(l.dataLegendKey);
30417
+ return true;
30418
+ });
30419
+ }
30420
+ else {
30421
+ i.add(k.dataLegendKey);
30422
+ }
30374
30423
  }
30375
30424
  }
30376
30425
  catch (e_6_1) {
@@ -44968,7 +45017,7 @@ var DataLegendVisualDataColumn = /** @class */ /*@__PURE__*/ (function (_super)
44968
45017
  c.u(b + this.l("marginLeft") + DataLegendVisualData.serialize1(this.marginLeft) + a);
44969
45018
  c.u(b + this.l("marginRight") + DataLegendVisualData.serialize1(this.marginRight) + a);
44970
45019
  c.u(b + this.l("marginBottom") + DataLegendVisualData.serialize1(this.marginBottom) + a);
44971
- var d = "\"" + (this.fontFamily != null ? stringReplace(this.fontFamily, '\"', '\'') : "null") + "\"";
45020
+ var d = "\"" + (this.fontFamily != null ? stringReplace(this.fontFamily, "\"", "'") : "null") + "\"";
44972
45021
  c.u(b + this.l("fontFamily") + d + a);
44973
45022
  c.u(b + this.l("fontSize") + DataLegendVisualData.serialize1(this.fontSize) + a);
44974
45023
  c.u(b + this.l("fontWeight") + DataLegendVisualData.serialize1(this.fontWeight) + a);
@@ -46066,12 +46115,6 @@ var DataAbbreviator = /** @class */ /*@__PURE__*/ (function (_super) {
46066
46115
  return e;
46067
46116
  };
46068
46117
  DataAbbreviator.g = function (a, b, c) {
46069
- if (b === void 0) {
46070
- b = -1;
46071
- }
46072
- if (c === void 0) {
46073
- c = -1;
46074
- }
46075
46118
  DataAbbreviator.s();
46076
46119
  var d = new List$1(DataAbbreviation.$, 0);
46077
46120
  for (var e = 0; e < a.length; e++) {
@@ -46133,7 +46176,7 @@ var DataAbbreviator = /** @class */ /*@__PURE__*/ (function (_super) {
46133
46176
  return 0;
46134
46177
  };
46135
46178
  DataAbbreviator.d = function (a) {
46136
- var b = DataAbbreviator.g(a);
46179
+ var b = DataAbbreviator.g(a, -1, -1);
46137
46180
  b.aa(function (c, d) {
46138
46181
  if (c.c < d.c) {
46139
46182
  return -1;
@@ -81261,6 +81304,9 @@ var SeriesInteractionManager = /** @class */ /*@__PURE__*/ (function (_super) {
81261
81304
  else {
81262
81305
  j = NaN;
81263
81306
  }
81307
+ if (u > g - 1 && a.ea) {
81308
+ u = 0;
81309
+ }
81264
81310
  if (u >= 0 && u < g) {
81265
81311
  k = d.ei(u, e) + f;
81266
81312
  }
@@ -81596,6 +81642,11 @@ var SeriesInteractionManager = /** @class */ /*@__PURE__*/ (function (_super) {
81596
81642
  return -1;
81597
81643
  }
81598
81644
  if (l < 0 || l > f.count - 1) {
81645
+ if (a.ea) {
81646
+ if (l > f.count - 1) {
81647
+ return 0;
81648
+ }
81649
+ }
81599
81650
  return -1;
81600
81651
  }
81601
81652
  if (!c) {
@@ -104744,7 +104795,7 @@ var CategoryDateTimeXAxis = /** @class */ /*@__PURE__*/ (function (_super) {
104744
104795
  var d = this.j7();
104745
104796
  var e = this.j6();
104746
104797
  var f = new ScalerParams(0, b, c, this.cg, d);
104747
- if (this.mg == null && !this.mm() && !this.mn()) {
104798
+ if ((this.mg == null || this.mg.count < 1) && !this.mm() && !this.mn()) {
104748
104799
  return;
104749
104800
  }
104750
104801
  if (!b.isEmpty && !c.isEmpty && (this.nn != 1 || this.mg != null)) {
@@ -201423,7 +201474,7 @@ var ItemLegend = /** @class */ /*@__PURE__*/ (function (_super) {
201423
201474
  if (!this.ak.m()) {
201424
201475
  return;
201425
201476
  }
201426
- this.bi(b);
201477
+ this.bk(b);
201427
201478
  };
201428
201479
  ItemLegend.prototype.get_isItemwise = function () {
201429
201480
  return true;
@@ -201476,9 +201527,9 @@ var ItemLegend = /** @class */ /*@__PURE__*/ (function (_super) {
201476
201527
  this.ak.ag();
201477
201528
  };
201478
201529
  ItemLegend.prototype.createLegendItemsInsert = function (a, b) {
201479
- this.bh(a, b);
201530
+ this.bj(a, b);
201480
201531
  };
201481
- ItemLegend.prototype.bh = function (a, b) {
201532
+ ItemLegend.prototype.bj = function (a, b) {
201482
201533
  var e_4, _a;
201483
201534
  this.ak.af();
201484
201535
  try {
@@ -201523,9 +201574,9 @@ var ItemLegend = /** @class */ /*@__PURE__*/ (function (_super) {
201523
201574
  }
201524
201575
  };
201525
201576
  ItemLegend.prototype.renderItemwiseContent = function (a) {
201526
- this.bi(a);
201577
+ this.bk(a);
201527
201578
  };
201528
- ItemLegend.prototype.bi = function (a) {
201579
+ ItemLegend.prototype.bk = function (a) {
201529
201580
  var _this = this;
201530
201581
  this.clearLegendItemsForSeries(a);
201531
201582
  if (a.hasSubItems) {
@@ -201619,6 +201670,26 @@ var ItemLegend = /** @class */ /*@__PURE__*/ (function (_super) {
201619
201670
  enumerable: true,
201620
201671
  configurable: true
201621
201672
  });
201673
+ Object.defineProperty(ItemLegend.prototype, "bh", {
201674
+ get: function () {
201675
+ return this.ak.v;
201676
+ },
201677
+ set: function (a) {
201678
+ this.ak.v = a;
201679
+ },
201680
+ enumerable: true,
201681
+ configurable: true
201682
+ });
201683
+ Object.defineProperty(ItemLegend.prototype, "bi", {
201684
+ get: function () {
201685
+ return this.ak.w;
201686
+ },
201687
+ set: function (a) {
201688
+ this.ak.w = a;
201689
+ },
201690
+ enumerable: true,
201691
+ configurable: true
201692
+ });
201622
201693
  ItemLegend.$t = markType(ItemLegend, 'ItemLegend', LegendBase.$, [IChartItemLegend_$type]);
201623
201694
  return ItemLegend;
201624
201695
  }(LegendBase));
@@ -201795,6 +201866,32 @@ var IgcItemLegendComponent = /** @class */ /*@__PURE__*/ (function (_super) {
201795
201866
  enumerable: true,
201796
201867
  configurable: true
201797
201868
  });
201869
+ Object.defineProperty(IgcItemLegendComponent.prototype, "textColor", {
201870
+ /**
201871
+ * Gets or sets color of text
201872
+ */
201873
+ get: function () {
201874
+ return this.i.bh;
201875
+ },
201876
+ set: function (v) {
201877
+ this.i.bh = v;
201878
+ },
201879
+ enumerable: true,
201880
+ configurable: true
201881
+ });
201882
+ Object.defineProperty(IgcItemLegendComponent.prototype, "textStyle", {
201883
+ /**
201884
+ * Gets or sets style of text.
201885
+ */
201886
+ get: function () {
201887
+ return this.i.bi;
201888
+ },
201889
+ set: function (v) {
201890
+ this.i.bi = v;
201891
+ },
201892
+ enumerable: true,
201893
+ configurable: true
201894
+ });
201798
201895
  IgcItemLegendComponent._observedAttributesIgcItemLegendComponent = null;
201799
201896
  IgcItemLegendComponent.htmlTagName = "igc-item-legend";
201800
201897
  IgcItemLegendComponent._isElementRegistered = false;
@@ -20,7 +20,7 @@ export declare class DataAbbreviator extends Base {
20
20
  static a(a: number, b: DataAbbreviationMode, c: number, d: number): DataAbbreviation;
21
21
  static h(a: number[], b: DataAbbreviationMode, c?: number, d?: number): List$1<DataAbbreviation>;
22
22
  private static j;
23
- static g(a: number[], b?: number, c?: number): List$1<DataAbbreviation>;
23
+ static g(a: number[], b: number, c: number): List$1<DataAbbreviation>;
24
24
  private static i;
25
25
  static m(a: string): number;
26
26
  static n(a: string): number;
@@ -23,13 +23,15 @@ export declare class ItemLegend extends LegendBase implements IChartItemLegend {
23
23
  createItemwiseLegendItems(a: List$1<UIElement>, b: ILegendSeries): void;
24
24
  a0(a: List$1<UIElement>, b: ILegendSeries): void;
25
25
  createLegendItemsInsert(a: List$1<UIElement>, b: ILegendSeries): void;
26
- bh(a: List$1<UIElement>, b: ILegendSeries): void;
26
+ bj(a: List$1<UIElement>, b: ILegendSeries): void;
27
27
  renderItemwiseContent(a: ILegendSeries): void;
28
- bi(a: ILegendSeries): void;
28
+ bk(a: ILegendSeries): void;
29
29
  bf(a: ILegendSeries): number;
30
30
  private be;
31
31
  bd: IFastItemColumn$1<number>;
32
32
  bc: LegendOrientation;
33
+ bh: string;
34
+ bi: string;
33
35
  }
34
36
  /**
35
37
  * @hidden
@@ -51,8 +51,8 @@ import { Tuple$2 } from "igniteui-webcomponents-core";
51
51
  import { ScalerParams } from "./ScalerParams";
52
52
  import { SeriesViewerManipulationEventArgs } from "./SeriesViewerManipulationEventArgs";
53
53
  import { Key } from "igniteui-webcomponents-core";
54
- import { CultureInfo } from "igniteui-webcomponents-core";
55
54
  import { RectChangedEventArgs } from "igniteui-webcomponents-core";
55
+ import { CultureInfo } from "igniteui-webcomponents-core";
56
56
  import { RefreshCompletedEventArgs } from "./RefreshCompletedEventArgs";
57
57
  import { Thickness } from "igniteui-webcomponents-core";
58
58
  import { AxisTitlePosition } from "./AxisTitlePosition";
@@ -33,4 +33,12 @@ export declare class IgcItemLegendComponent extends IgcLegendBaseComponent {
33
33
  * Gets or sets the current Legend object's orientation.
34
34
  */
35
35
  orientation: LegendOrientation;
36
+ /**
37
+ * Gets or sets color of text
38
+ */
39
+ textColor: string;
40
+ /**
41
+ * Gets or sets style of text.
42
+ */
43
+ textStyle: string;
36
44
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "igniteui-webcomponents-charts",
3
- "version": "3.2.2",
3
+ "version": "3.2.3",
4
4
  "description": "Ignite UI Web Components charting components for building rich data visualizations using TypeScript APIs.",
5
5
  "homepage": "https://github.com/IgniteUI/igniteui-webcomponents-charts",
6
6
  "keywords": [
@@ -24,7 +24,7 @@
24
24
  "tslib": "^2.3.1"
25
25
  },
26
26
  "peerDependencies": {
27
- "igniteui-webcomponents-core": "3.2.2"
27
+ "igniteui-webcomponents-core": "3.2.3"
28
28
  },
29
29
  "sideEffects": false,
30
30
  "typings": "igniteui-webcomponents-charts.d.ts",