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.
@@ -87,7 +87,7 @@ var ItemLegend = /** @class */ /*@__PURE__*/ (function (_super) {
87
87
  if (!this.ak.m()) {
88
88
  return;
89
89
  }
90
- this.bi(b);
90
+ this.bk(b);
91
91
  };
92
92
  ItemLegend.prototype.get_isItemwise = function () {
93
93
  return true;
@@ -140,9 +140,9 @@ var ItemLegend = /** @class */ /*@__PURE__*/ (function (_super) {
140
140
  this.ak.ag();
141
141
  };
142
142
  ItemLegend.prototype.createLegendItemsInsert = function (a, b) {
143
- this.bh(a, b);
143
+ this.bj(a, b);
144
144
  };
145
- ItemLegend.prototype.bh = function (a, b) {
145
+ ItemLegend.prototype.bj = function (a, b) {
146
146
  var e_4, _a;
147
147
  this.ak.af();
148
148
  try {
@@ -187,9 +187,9 @@ var ItemLegend = /** @class */ /*@__PURE__*/ (function (_super) {
187
187
  }
188
188
  };
189
189
  ItemLegend.prototype.renderItemwiseContent = function (a) {
190
- this.bi(a);
190
+ this.bk(a);
191
191
  };
192
- ItemLegend.prototype.bi = function (a) {
192
+ ItemLegend.prototype.bk = function (a) {
193
193
  var _this = this;
194
194
  this.clearLegendItemsForSeries(a);
195
195
  if (a.hasSubItems) {
@@ -283,6 +283,26 @@ var ItemLegend = /** @class */ /*@__PURE__*/ (function (_super) {
283
283
  enumerable: true,
284
284
  configurable: true
285
285
  });
286
+ Object.defineProperty(ItemLegend.prototype, "bh", {
287
+ get: function () {
288
+ return this.ak.v;
289
+ },
290
+ set: function (a) {
291
+ this.ak.v = a;
292
+ },
293
+ enumerable: true,
294
+ configurable: true
295
+ });
296
+ Object.defineProperty(ItemLegend.prototype, "bi", {
297
+ get: function () {
298
+ return this.ak.w;
299
+ },
300
+ set: function (a) {
301
+ this.ak.w = a;
302
+ },
303
+ enumerable: true,
304
+ configurable: true
305
+ });
286
306
  ItemLegend.$t = markType(ItemLegend, 'ItemLegend', LegendBase.$, [IChartItemLegend_$type]);
287
307
  return ItemLegend;
288
308
  }(LegendBase));
@@ -97,6 +97,9 @@ var SeriesInteractionManager = /** @class */ /*@__PURE__*/ (function (_super) {
97
97
  else {
98
98
  j = NaN;
99
99
  }
100
+ if (u > g - 1 && a.ea) {
101
+ u = 0;
102
+ }
100
103
  if (u >= 0 && u < g) {
101
104
  k = d.ei(u, e) + f;
102
105
  }
@@ -432,6 +435,11 @@ var SeriesInteractionManager = /** @class */ /*@__PURE__*/ (function (_super) {
432
435
  return -1;
433
436
  }
434
437
  if (l < 0 || l > f.count - 1) {
438
+ if (a.ea) {
439
+ if (l > f.count - 1) {
440
+ return 0;
441
+ }
442
+ }
435
443
  return -1;
436
444
  }
437
445
  if (!c) {
@@ -3330,16 +3330,37 @@ var SeriesViewer = /** @class */ /*@__PURE__*/ (function (_super) {
3330
3330
  SeriesViewer.prototype.getDataLegendSeries = function () {
3331
3331
  var a = 0;
3332
3332
  for (var b = 0; b < this.series.count; b++) {
3333
- if (this.series._inner[b].isUsableInLegend) {
3334
- a++;
3333
+ if (this.series._inner[b].isStacked) {
3334
+ this.series._inner[b].la(function (c) {
3335
+ if (c.isUsableInLegend) {
3336
+ a++;
3337
+ }
3338
+ return true;
3339
+ });
3340
+ }
3341
+ else {
3342
+ if (this.series._inner[b].isUsableInLegend) {
3343
+ a++;
3344
+ }
3335
3345
  }
3336
3346
  }
3337
3347
  var c = new Array(a);
3338
3348
  var d = 0;
3339
3349
  for (var e = 0; e < this.series.count; e++) {
3340
- if (this.series._inner[e].isUsableInLegend) {
3341
- c[d] = this.series._inner[e];
3342
- d++;
3350
+ if (this.series._inner[e].isStacked) {
3351
+ this.series._inner[e].la(function (f) {
3352
+ if (f.isUsableInLegend) {
3353
+ c[d] = f;
3354
+ d++;
3355
+ }
3356
+ return true;
3357
+ });
3358
+ }
3359
+ else {
3360
+ if (this.series._inner[e].isUsableInLegend) {
3361
+ c[d] = this.series._inner[e];
3362
+ d++;
3363
+ }
3343
3364
  }
3344
3365
  }
3345
3366
  return c;
@@ -20422,11 +20443,16 @@ var AxisView = /** @class */ /*@__PURE__*/ (function (_super) {
20422
20443
  return null;
20423
20444
  };
20424
20445
  AxisView.prototype.p = function (dataItem_) {
20425
- if (this.a.at != null) {
20426
- return this.a.at(dataItem_);
20446
+ if (this.n() && this.l()) {
20447
+ return this.q(dataItem_);
20427
20448
  }
20428
- if (this.a.ah != null) {
20429
- return this.a.ah.i(dataItem_);
20449
+ else {
20450
+ if (this.a.at != null) {
20451
+ return this.a.at(dataItem_);
20452
+ }
20453
+ if (this.a.ah != null) {
20454
+ return this.a.ah.i(dataItem_);
20455
+ }
20430
20456
  }
20431
20457
  var label_ = this.a.fz;
20432
20458
  var a = typeof dataItem_ === 'number' && typeof label_ === 'string';
@@ -126,6 +126,32 @@ var IgcItemLegendComponent = /** @class */ /*@__PURE__*/ (function (_super) {
126
126
  enumerable: true,
127
127
  configurable: true
128
128
  });
129
+ Object.defineProperty(IgcItemLegendComponent.prototype, "textColor", {
130
+ /**
131
+ * Gets or sets color of text
132
+ */
133
+ get: function () {
134
+ return this.i.bh;
135
+ },
136
+ set: function (v) {
137
+ this.i.bh = v;
138
+ },
139
+ enumerable: true,
140
+ configurable: true
141
+ });
142
+ Object.defineProperty(IgcItemLegendComponent.prototype, "textStyle", {
143
+ /**
144
+ * Gets or sets style of text.
145
+ */
146
+ get: function () {
147
+ return this.i.bi;
148
+ },
149
+ set: function (v) {
150
+ this.i.bi = v;
151
+ },
152
+ enumerable: true,
153
+ configurable: true
154
+ });
129
155
  IgcItemLegendComponent._observedAttributesIgcItemLegendComponent = null;
130
156
  IgcItemLegendComponent.htmlTagName = "igc-item-legend";
131
157
  IgcItemLegendComponent._isElementRegistered = false;
@@ -5229,16 +5229,37 @@ let SeriesViewer = /*@__PURE__*/ (() => {
5229
5229
  getDataLegendSeries() {
5230
5230
  let a = 0;
5231
5231
  for (let b = 0; b < this.series.count; b++) {
5232
- if (this.series._inner[b].isUsableInLegend) {
5233
- a++;
5232
+ if (this.series._inner[b].isStacked) {
5233
+ this.series._inner[b].la((c) => {
5234
+ if (c.isUsableInLegend) {
5235
+ a++;
5236
+ }
5237
+ return true;
5238
+ });
5239
+ }
5240
+ else {
5241
+ if (this.series._inner[b].isUsableInLegend) {
5242
+ a++;
5243
+ }
5234
5244
  }
5235
5245
  }
5236
5246
  let c = new Array(a);
5237
5247
  let d = 0;
5238
5248
  for (let e = 0; e < this.series.count; e++) {
5239
- if (this.series._inner[e].isUsableInLegend) {
5240
- c[d] = this.series._inner[e];
5241
- d++;
5249
+ if (this.series._inner[e].isStacked) {
5250
+ this.series._inner[e].la((f) => {
5251
+ if (f.isUsableInLegend) {
5252
+ c[d] = f;
5253
+ d++;
5254
+ }
5255
+ return true;
5256
+ });
5257
+ }
5258
+ else {
5259
+ if (this.series._inner[e].isUsableInLegend) {
5260
+ c[d] = this.series._inner[e];
5261
+ d++;
5262
+ }
5242
5263
  }
5243
5264
  }
5244
5265
  return c;
@@ -19624,11 +19645,16 @@ let AxisView = /*@__PURE__*/ (() => {
19624
19645
  return null;
19625
19646
  }
19626
19647
  p(dataItem_) {
19627
- if (this.a.at != null) {
19628
- return this.a.at(dataItem_);
19648
+ if (this.n() && this.l()) {
19649
+ return this.q(dataItem_);
19629
19650
  }
19630
- if (this.a.ah != null) {
19631
- return this.a.ah.i(dataItem_);
19651
+ else {
19652
+ if (this.a.at != null) {
19653
+ return this.a.at(dataItem_);
19654
+ }
19655
+ if (this.a.ah != null) {
19656
+ return this.a.ah.i(dataItem_);
19657
+ }
19632
19658
  }
19633
19659
  let label_ = this.a.fz;
19634
19660
  let a = typeof dataItem_ === 'number' && typeof label_ === 'string';
@@ -25667,101 +25693,112 @@ let DataToolTipLayer = /*@__PURE__*/ (() => {
25667
25693
  k = n.cd.l;
25668
25694
  l = n.cd.m;
25669
25695
  if (n.dg) {
25670
- if (n.isStacked) {
25671
- continue;
25672
- }
25673
25696
  let o = n;
25674
- if (!o.categoryAxis.cn()) {
25675
- continue;
25676
- }
25677
- if (i) {
25678
- h = n.isVertical;
25697
+ let p = new List$1(Series.$, 0);
25698
+ if (o.isStacked) {
25699
+ o.la((q) => {
25700
+ p.add(q);
25701
+ return true;
25702
+ });
25679
25703
  }
25680
25704
  else {
25681
- if (h != n.isVertical) {
25705
+ p.add(o);
25706
+ }
25707
+ for (let q = 0; q < p.count; q++) {
25708
+ let r = p._inner[q];
25709
+ let s = p._inner[q];
25710
+ if (!r.categoryAxis.cn()) {
25682
25711
  continue;
25683
25712
  }
25684
- }
25685
- let p = this.qk(n);
25686
- if (!p.c) {
25687
- continue;
25688
- }
25689
- j = n.ph(p.d);
25690
- let q = n.pm(p.d, c, false);
25691
- if (h) {
25692
- if (!isNaN_(q.y)) {
25693
- d = Math.min(d, q.y);
25694
- e = Math.max(e, q.y);
25713
+ if (i) {
25714
+ h = s.isVertical;
25695
25715
  }
25696
- }
25697
- else {
25698
- if (!isNaN_(q.x)) {
25699
- d = Math.min(d, q.x);
25700
- e = Math.max(e, q.x);
25716
+ else {
25717
+ if (h != s.isVertical) {
25718
+ continue;
25719
+ }
25720
+ }
25721
+ let t = this.qk(s);
25722
+ if (!t.c) {
25723
+ continue;
25724
+ }
25725
+ j = s.ph(t.d);
25726
+ let u = s.pm(t.d, c, false);
25727
+ if (h) {
25728
+ if (!isNaN_(u.y)) {
25729
+ d = Math.min(d, u.y);
25730
+ e = Math.max(e, u.y);
25731
+ }
25732
+ }
25733
+ else {
25734
+ if (!isNaN_(u.x)) {
25735
+ d = Math.min(d, u.x);
25736
+ e = Math.max(e, u.x);
25737
+ }
25701
25738
  }
25702
25739
  }
25703
25740
  }
25704
25741
  else {
25705
- let r = n.ag();
25706
- for (let s = 0; s < r.length; s++) {
25707
- if (!r[s].cn()) {
25742
+ let v = n.ag();
25743
+ for (let w = 0; w < v.length; w++) {
25744
+ if (!v[w].cn()) {
25708
25745
  continue;
25709
25746
  }
25710
25747
  }
25711
- let t = n.pm(this.q5, c, false);
25748
+ let x = n.pm(this.q5, c, false);
25712
25749
  j = n.ph(this.q5);
25713
25750
  if (h) {
25714
- if (!isNaN_(t.y)) {
25715
- d = Math.min(d, t.y);
25716
- e = Math.max(e, t.y);
25751
+ if (!isNaN_(x.y)) {
25752
+ d = Math.min(d, x.y);
25753
+ e = Math.max(e, x.y);
25717
25754
  }
25718
25755
  }
25719
25756
  else {
25720
- if (!isNaN_(t.x)) {
25721
- d = Math.min(d, t.x);
25722
- e = Math.max(e, t.x);
25757
+ if (!isNaN_(x.x)) {
25758
+ d = Math.min(d, x.x);
25759
+ e = Math.max(e, x.x);
25723
25760
  }
25724
25761
  }
25725
25762
  }
25726
- let u = null;
25727
- let v = n.ht(this.q5);
25728
- if (n.dl && v != null) {
25729
- u = n.au(v);
25763
+ let y = null;
25764
+ let z = n.ht(this.q5);
25765
+ if (n.dl && z != null) {
25766
+ y = n.au(z);
25730
25767
  }
25731
25768
  else {
25732
- u = new DataContext();
25733
- u.item = v;
25734
- u.series = n;
25769
+ y = new DataContext();
25770
+ y.item = z;
25771
+ y.series = n;
25735
25772
  }
25736
- f.add(u);
25773
+ f.add(y);
25737
25774
  }
25738
- let w = 0;
25739
- let x = 0;
25775
+ let aa = 0;
25776
+ let ab = 0;
25740
25777
  if (h) {
25741
- x = (d + e) / 2;
25742
- w = this.pz.right;
25778
+ ab = (d + e) / 2;
25779
+ aa = this.pz.right;
25743
25780
  if (!isNaN_(j.x)) {
25744
- w = j.x;
25781
+ aa = j.x;
25745
25782
  }
25746
- if (x < 0 || x > this.pz.bottom) {
25747
- x = NaN;
25783
+ if (ab < 0 || ab > this.pz.bottom) {
25784
+ ab = NaN;
25748
25785
  }
25749
25786
  }
25750
25787
  else {
25751
- w = (d + e) / 2;
25788
+ aa = (d + e) / 2;
25752
25789
  if (!isNaN_(j.y)) {
25753
- x = j.y;
25790
+ ab = j.y;
25754
25791
  }
25755
- if (w < 0 || w > this.pz.right) {
25756
- w = NaN;
25792
+ if (aa < 0 || aa > this.pz.right) {
25793
+ aa = NaN;
25757
25794
  }
25758
25795
  }
25759
- let y = new DataToolTipSeriesInfo();
25760
- y.f = { $type: Point_$type, x: w, y: x };
25761
- y.e = { $type: Point_$type, x: j.x, y: j.y };
25762
- y.b = f;
25763
- y.a = h;
25764
- return y;
25796
+ let ac = new DataToolTipSeriesInfo();
25797
+ ac.f = { $type: Point_$type, x: aa, y: ab };
25798
+ ac.e = { $type: Point_$type, x: j.x, y: j.y };
25799
+ ac.b = f;
25800
+ ac.a = h;
25801
+ return ac;
25765
25802
  }
25766
25803
  ld() {
25767
25804
  this.q5 = { $type: Point_$type, x: NaN, y: NaN };
@@ -26372,7 +26409,15 @@ let DataToolTipLayer = /*@__PURE__*/ (() => {
26372
26409
  let j = this.rg();
26373
26410
  if (j != null) {
26374
26411
  for (let k of fromEnum(j.da())) {
26375
- i.add(k.dataLegendKey);
26412
+ if (k.isStacked) {
26413
+ k.la((l) => {
26414
+ i.add(l.dataLegendKey);
26415
+ return true;
26416
+ });
26417
+ }
26418
+ else {
26419
+ i.add(k.dataLegendKey);
26420
+ }
26376
26421
  }
26377
26422
  h.includedSeries = i.toArray();
26378
26423
  }
@@ -38483,7 +38528,7 @@ let DataLegendVisualDataColumn = /*@__PURE__*/ (() => {
38483
38528
  c.u(b + this.l("marginLeft") + DataLegendVisualData.serialize1(this.marginLeft) + a);
38484
38529
  c.u(b + this.l("marginRight") + DataLegendVisualData.serialize1(this.marginRight) + a);
38485
38530
  c.u(b + this.l("marginBottom") + DataLegendVisualData.serialize1(this.marginBottom) + a);
38486
- let d = "\"" + (this.fontFamily != null ? stringReplace(this.fontFamily, '\"', '\'') : "null") + "\"";
38531
+ let d = "\"" + (this.fontFamily != null ? stringReplace(this.fontFamily, "\"", "'") : "null") + "\"";
38487
38532
  c.u(b + this.l("fontFamily") + d + a);
38488
38533
  c.u(b + this.l("fontSize") + DataLegendVisualData.serialize1(this.fontSize) + a);
38489
38534
  c.u(b + this.l("fontWeight") + DataLegendVisualData.serialize1(this.fontWeight) + a);
@@ -39390,7 +39435,7 @@ let DataAbbreviator = /*@__PURE__*/ (() => {
39390
39435
  }
39391
39436
  return e;
39392
39437
  }
39393
- static g(a, b = -1, c = -1) {
39438
+ static g(a, b, c) {
39394
39439
  DataAbbreviator.s();
39395
39440
  let d = new List$1(DataAbbreviation.$, 0);
39396
39441
  for (let e = 0; e < a.length; e++) {
@@ -39446,7 +39491,7 @@ let DataAbbreviator = /*@__PURE__*/ (() => {
39446
39491
  return 0;
39447
39492
  }
39448
39493
  static d(a) {
39449
- let b = DataAbbreviator.g(a);
39494
+ let b = DataAbbreviator.g(a, -1, -1);
39450
39495
  b.aa((c, d) => {
39451
39496
  if (c.c < d.c) {
39452
39497
  return -1;
@@ -69179,6 +69224,9 @@ let SeriesInteractionManager = /*@__PURE__*/ (() => {
69179
69224
  else {
69180
69225
  j = NaN;
69181
69226
  }
69227
+ if (u > g - 1 && a.ea) {
69228
+ u = 0;
69229
+ }
69182
69230
  if (u >= 0 && u < g) {
69183
69231
  k = d.ei(u, e) + f;
69184
69232
  }
@@ -69514,6 +69562,11 @@ let SeriesInteractionManager = /*@__PURE__*/ (() => {
69514
69562
  return -1;
69515
69563
  }
69516
69564
  if (l < 0 || l > f.count - 1) {
69565
+ if (a.ea) {
69566
+ if (l > f.count - 1) {
69567
+ return 0;
69568
+ }
69569
+ }
69517
69570
  return -1;
69518
69571
  }
69519
69572
  if (!c) {
@@ -89377,7 +89430,7 @@ let CategoryDateTimeXAxis = /*@__PURE__*/ (() => {
89377
89430
  let d = this.j7();
89378
89431
  let e = this.j6();
89379
89432
  let f = new ScalerParams(0, b, c, this.cg, d);
89380
- if (this.mg == null && !this.mm() && !this.mn()) {
89433
+ if ((this.mg == null || this.mg.count < 1) && !this.mm() && !this.mn()) {
89381
89434
  return;
89382
89435
  }
89383
89436
  if (!b.isEmpty && !c.isEmpty && (this.nn != 1 || this.mg != null)) {
@@ -172434,7 +172487,7 @@ let ItemLegend = /*@__PURE__*/ (() => {
172434
172487
  if (!this.ak.m()) {
172435
172488
  return;
172436
172489
  }
172437
- this.bi(b);
172490
+ this.bk(b);
172438
172491
  }
172439
172492
  get_isItemwise() {
172440
172493
  return true;
@@ -172470,9 +172523,9 @@ let ItemLegend = /*@__PURE__*/ (() => {
172470
172523
  this.ak.ag();
172471
172524
  }
172472
172525
  createLegendItemsInsert(a, b) {
172473
- this.bh(a, b);
172526
+ this.bj(a, b);
172474
172527
  }
172475
- bh(a, b) {
172528
+ bj(a, b) {
172476
172529
  this.ak.af();
172477
172530
  try {
172478
172531
  let c = this.bf(b);
@@ -172500,9 +172553,9 @@ let ItemLegend = /*@__PURE__*/ (() => {
172500
172553
  }
172501
172554
  }
172502
172555
  renderItemwiseContent(a) {
172503
- this.bi(a);
172556
+ this.bk(a);
172504
172557
  }
172505
- bi(a) {
172558
+ bk(a) {
172506
172559
  this.clearLegendItemsForSeries(a);
172507
172560
  if (a.hasSubItems) {
172508
172561
  a.forSubItems((b) => {
@@ -172558,6 +172611,18 @@ let ItemLegend = /*@__PURE__*/ (() => {
172558
172611
  set bc(a) {
172559
172612
  this.ak.k = a == 0;
172560
172613
  }
172614
+ get bh() {
172615
+ return this.ak.v;
172616
+ }
172617
+ set bh(a) {
172618
+ this.ak.v = a;
172619
+ }
172620
+ get bi() {
172621
+ return this.ak.w;
172622
+ }
172623
+ set bi(a) {
172624
+ this.ak.w = a;
172625
+ }
172561
172626
  }
172562
172627
  ItemLegend.$t = /*@__PURE__*/ markType(ItemLegend, 'ItemLegend', LegendBase.$, [IChartItemLegend_$type]);
172563
172628
  return ItemLegend;
@@ -172718,6 +172783,24 @@ let IgcItemLegendComponent = /*@__PURE__*/ (() => {
172718
172783
  this.i.bc = ensureEnum(LegendOrientation_$type, v);
172719
172784
  this._a("orientation", enumToString(LegendOrientation_$type, this.i.bc));
172720
172785
  }
172786
+ /**
172787
+ * Gets or sets color of text
172788
+ */
172789
+ get textColor() {
172790
+ return this.i.bh;
172791
+ }
172792
+ set textColor(v) {
172793
+ this.i.bh = v;
172794
+ }
172795
+ /**
172796
+ * Gets or sets style of text.
172797
+ */
172798
+ get textStyle() {
172799
+ return this.i.bi;
172800
+ }
172801
+ set textStyle(v) {
172802
+ this.i.bi = v;
172803
+ }
172721
172804
  }
172722
172805
  IgcItemLegendComponent._observedAttributesIgcItemLegendComponent = null;
172723
172806
  IgcItemLegendComponent.htmlTagName = "igc-item-legend";