igniteui-webcomponents-charts 5.0.0 → 5.0.1

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.
@@ -56,7 +56,7 @@ var LegendBaseViewManager = /** @class */ /*@__PURE__*/ (function (_super) {
56
56
  var a = LegendItemHelper.b;
57
57
  if (window.devicePixelRatio != undefined && (isNaN_(a) || window.devicePixelRatio != a)) {
58
58
  LegendItemHelper.b = window.devicePixelRatio;
59
- this.a.al();
59
+ this.a.am();
60
60
  }
61
61
  };
62
62
  LegendBaseViewManager.prototype.u = function () {
@@ -72,7 +72,7 @@ var LegendBaseViewManager = /** @class */ /*@__PURE__*/ (function (_super) {
72
72
  }
73
73
  this.g = a;
74
74
  this.l = this.i();
75
- this.l.addClass(this.a.s);
75
+ this.l.addClass(this.a.t);
76
76
  this.g.append(this.l);
77
77
  };
78
78
  LegendBaseViewManager.prototype.i = function () {
@@ -80,8 +80,8 @@ var LegendBaseViewManager = /** @class */ /*@__PURE__*/ (function (_super) {
80
80
  };
81
81
  LegendBaseViewManager.prototype.h = function () {
82
82
  var a = this.g.createElement("tr");
83
- a.addClass(this.a.t);
84
- var b = this.a.k;
83
+ a.addClass(this.a.u);
84
+ var b = this.a.l;
85
85
  if (b) {
86
86
  a.setStyleProperty("display", "block");
87
87
  a.setStyleProperty("float", "left");
@@ -122,14 +122,14 @@ var LegendBaseViewManager = /** @class */ /*@__PURE__*/ (function (_super) {
122
122
  c.ah.render(h);
123
123
  var i = d.findByClass(".ui-legend-item-badge");
124
124
  for (var j = 0; j < i.length; j++) {
125
- i[j].removeClass("ui-legend-item-badge").addClass(this.a.r);
125
+ i[j].removeClass("ui-legend-item-badge").addClass(this.a.s);
126
126
  }
127
127
  i = d.findByClass(".ui-legend-item-text");
128
128
  for (var k = 0; k < i.length; k++) {
129
- if (this.a.k) {
129
+ if (this.a.l) {
130
130
  i[k].setStyleProperty("white-space", "nowrap");
131
131
  }
132
- i[k].removeClass("ui-legend-item-text").addClass(this.a.u);
132
+ i[k].removeClass("ui-legend-item-text").addClass(this.a.v);
133
133
  }
134
134
  }
135
135
  }
@@ -137,10 +137,10 @@ var LegendBaseViewManager = /** @class */ /*@__PURE__*/ (function (_super) {
137
137
  };
138
138
  LegendBaseViewManager.prototype.o = function (a, b) {
139
139
  var c = this.k(a, this.l);
140
- c.listen("mouseup", runOn(this.a, this.a.ae));
141
- c.listen("mousedown", runOn(this.a, this.a.ab));
142
- c.listen("mouseleave", runOn(this.a, this.a.ac));
143
- c.listen("mousemove", runOn(this.a, this.a.ad));
140
+ c.listen("mouseup", runOn(this.a, this.a.af));
141
+ c.listen("mousedown", runOn(this.a, this.a.ac));
142
+ c.listen("mouseleave", runOn(this.a, this.a.ad));
143
+ c.listen("mousemove", runOn(this.a, this.a.ae));
144
144
  this.f.addItem(a, c);
145
145
  if ((this.l.getChildCount() == 0) || (b >= this.l.getChildCount())) {
146
146
  this.l.append(c);
@@ -316,7 +316,7 @@ var LegendBase = /** @class */ /*@__PURE__*/ (function (_super) {
316
316
  _this.legendItemMouseMove = null;
317
317
  var a = _this.aj();
318
318
  _this.a8(a);
319
- a.ak();
319
+ a.al();
320
320
  _this.at = new ObservableCollection$1(UIElement.$, 0);
321
321
  _this.aw = "ig-chart-legend-items-list";
322
322
  _this.ax = "ig-chart-legend-item";
@@ -325,10 +325,10 @@ var LegendBase = /** @class */ /*@__PURE__*/ (function (_super) {
325
325
  return _this;
326
326
  }
327
327
  LegendBase.prototype.onDetachedFromUI = function () {
328
- this.ak.aj();
328
+ this.ak.ak();
329
329
  };
330
330
  LegendBase.prototype.onAttachedToUI = function () {
331
- this.ak.ah();
331
+ this.ak.ai();
332
332
  };
333
333
  LegendBase.prototype.aj = function () {
334
334
  return new LegendBaseView(this);
@@ -498,50 +498,50 @@ var LegendBase = /** @class */ /*@__PURE__*/ (function (_super) {
498
498
  }
499
499
  };
500
500
  LegendBase.prototype.provideContainer = function (a) {
501
- this.ak.ai(a);
501
+ this.ak.aj(a);
502
502
  };
503
503
  Object.defineProperty(LegendBase.prototype, "aw", {
504
504
  get: function () {
505
- return this.ak.s;
505
+ return this.ak.t;
506
506
  },
507
507
  set: function (a) {
508
- this.ak.s = a;
508
+ this.ak.t = a;
509
509
  },
510
510
  enumerable: false,
511
511
  configurable: true
512
512
  });
513
513
  Object.defineProperty(LegendBase.prototype, "ax", {
514
514
  get: function () {
515
- return this.ak.t;
515
+ return this.ak.u;
516
516
  },
517
517
  set: function (a) {
518
- this.ak.t = a;
518
+ this.ak.u = a;
519
519
  },
520
520
  enumerable: false,
521
521
  configurable: true
522
522
  });
523
523
  Object.defineProperty(LegendBase.prototype, "av", {
524
524
  get: function () {
525
- return this.ak.r;
525
+ return this.ak.s;
526
526
  },
527
527
  set: function (a) {
528
- this.ak.r = a;
528
+ this.ak.s = a;
529
529
  },
530
530
  enumerable: false,
531
531
  configurable: true
532
532
  });
533
533
  Object.defineProperty(LegendBase.prototype, "ay", {
534
534
  get: function () {
535
- return this.ak.u;
535
+ return this.ak.v;
536
536
  },
537
537
  set: function (a) {
538
- this.ak.u = a;
538
+ this.ak.v = a;
539
539
  },
540
540
  enumerable: false,
541
541
  configurable: true
542
542
  });
543
543
  LegendBase.prototype.exportVisualData = function () {
544
- return this.ak.f();
544
+ return this.ak.g();
545
545
  };
546
546
  LegendBase.prototype.exportSerializedVisualData = function () {
547
547
  var a = this.exportVisualData();
@@ -568,44 +568,44 @@ var LegendBaseView = /** @class */ /*@__PURE__*/ (function (_super) {
568
568
  __extends(LegendBaseView, _super);
569
569
  function LegendBaseView(a) {
570
570
  var _this = _super.call(this) || this;
571
+ _this.d = null;
571
572
  _this.c = null;
572
- _this.b = null;
573
- _this.s = null;
574
573
  _this.t = null;
575
- _this.r = null;
576
574
  _this.u = null;
577
- _this.l = false;
578
- _this.i = false;
579
- _this.p = null;
575
+ _this.s = null;
576
+ _this.v = null;
577
+ _this.m = false;
578
+ _this.j = false;
580
579
  _this.q = null;
581
- _this.b = a;
582
- _this.c = new LegendBaseViewManager(_this);
583
- _this.c.p();
580
+ _this.r = null;
581
+ _this.c = a;
582
+ _this.d = new LegendBaseViewManager(_this);
583
+ _this.d.p();
584
584
  return _this;
585
585
  }
586
- LegendBaseView.prototype.aj = function () {
587
- this.c.u();
586
+ LegendBaseView.prototype.ak = function () {
587
+ this.d.u();
588
588
  };
589
- LegendBaseView.prototype.ah = function () {
590
- this.c.s();
589
+ LegendBaseView.prototype.ai = function () {
590
+ this.d.s();
591
591
  };
592
- LegendBaseView.prototype.ak = function () {
592
+ LegendBaseView.prototype.al = function () {
593
593
  };
594
- LegendBaseView.prototype.get_j = function () {
594
+ LegendBaseView.prototype.get_k = function () {
595
595
  return false;
596
596
  };
597
- Object.defineProperty(LegendBaseView.prototype, "j", {
597
+ Object.defineProperty(LegendBaseView.prototype, "k", {
598
598
  get: function () {
599
- return this.get_j();
599
+ return this.get_k();
600
600
  },
601
601
  enumerable: false,
602
602
  configurable: true
603
603
  });
604
- LegendBaseView.prototype.d = function (a) {
604
+ LegendBaseView.prototype.e = function (a) {
605
605
  var b;
606
606
  var c;
607
607
  var d;
608
- var e = this.aa(a, b, c, d);
608
+ var e = this.ab(a, b, c, d);
609
609
  b = e.p1;
610
610
  c = e.p2;
611
611
  d = e.p3;
@@ -613,11 +613,11 @@ var LegendBaseView = /** @class */ /*@__PURE__*/ (function (_super) {
613
613
  var g = new LegendMouseButtonEventArgs(b, c, d, f, a);
614
614
  return g;
615
615
  };
616
- LegendBaseView.prototype.e = function (a) {
616
+ LegendBaseView.prototype.f = function (a) {
617
617
  var b;
618
618
  var c;
619
619
  var d;
620
- var e = this.aa(a, b, c, d);
620
+ var e = this.ab(a, b, c, d);
621
621
  b = e.p1;
622
622
  c = e.p2;
623
623
  d = e.p3;
@@ -625,8 +625,8 @@ var LegendBaseView = /** @class */ /*@__PURE__*/ (function (_super) {
625
625
  var g = new LegendMouseEventArgs(b, c, d, f, a);
626
626
  return g;
627
627
  };
628
- LegendBaseView.prototype.aa = function (a, b, c, d) {
629
- b = this.b.ai;
628
+ LegendBaseView.prototype.ab = function (a, b, c, d) {
629
+ b = this.c.ai;
630
630
  c = null;
631
631
  d = null;
632
632
  if (a != null) {
@@ -646,93 +646,93 @@ var LegendBaseView = /** @class */ /*@__PURE__*/ (function (_super) {
646
646
  p3: d
647
647
  };
648
648
  };
649
- LegendBaseView.prototype.z = function () {
649
+ LegendBaseView.prototype.aa = function () {
650
650
  };
651
- LegendBaseView.prototype.m = function () {
651
+ LegendBaseView.prototype.n = function () {
652
652
  return true;
653
653
  };
654
- LegendBaseView.prototype.y = function (a) {
655
- };
656
- LegendBaseView.prototype.am = function (a) {
657
- };
658
- LegendBaseView.prototype.ai = function (a) {
659
- this.c.t(a);
654
+ LegendBaseView.prototype.z = function (a) {
660
655
  };
661
656
  LegendBaseView.prototype.an = function (a) {
662
- this.c.x(a);
663
657
  };
664
- LegendBaseView.prototype.x = function (a) {
665
- var b = this.b.at.indexOf(a);
666
- this.c.o(a, b);
658
+ LegendBaseView.prototype.aj = function (a) {
659
+ this.d.t(a);
667
660
  };
668
- LegendBaseView.prototype.af = function () {
669
- this.c.q();
661
+ LegendBaseView.prototype.ao = function (a) {
662
+ this.d.x(a);
663
+ };
664
+ LegendBaseView.prototype.y = function (a) {
665
+ var b = this.c.at.indexOf(a);
666
+ this.d.o(a, b);
670
667
  };
671
668
  LegendBaseView.prototype.ag = function () {
672
- this.c.r();
669
+ this.d.q();
673
670
  };
674
- Object.defineProperty(LegendBaseView.prototype, "k", {
671
+ LegendBaseView.prototype.ah = function () {
672
+ this.d.r();
673
+ };
674
+ Object.defineProperty(LegendBaseView.prototype, "l", {
675
675
  get: function () {
676
- return this.i;
676
+ return this.j;
677
677
  },
678
678
  set: function (a) {
679
- this.i = a;
680
- this.c.v(this.i);
679
+ this.j = a;
680
+ this.d.v(this.j);
681
681
  },
682
682
  enumerable: false,
683
683
  configurable: true
684
684
  });
685
- Object.defineProperty(LegendBaseView.prototype, "v", {
685
+ Object.defineProperty(LegendBaseView.prototype, "w", {
686
686
  get: function () {
687
- return this.p;
687
+ return this.q;
688
688
  },
689
689
  set: function (a) {
690
- this.p = a;
691
- this.c.z(this.p);
690
+ this.q = a;
691
+ this.d.z(this.q);
692
692
  },
693
693
  enumerable: false,
694
694
  configurable: true
695
695
  });
696
- Object.defineProperty(LegendBaseView.prototype, "w", {
696
+ Object.defineProperty(LegendBaseView.prototype, "x", {
697
697
  get: function () {
698
- return this.q;
698
+ return this.r;
699
699
  },
700
700
  set: function (a) {
701
- this.q = a;
702
- this.c.aa(this.q);
701
+ this.r = a;
702
+ this.d.aa(this.r);
703
703
  },
704
704
  enumerable: false,
705
705
  configurable: true
706
706
  });
707
- LegendBaseView.prototype.al = function () {
708
- this.c.p();
707
+ LegendBaseView.prototype.am = function () {
708
+ this.d.p();
709
709
  };
710
- LegendBaseView.prototype.n = function (e_) {
710
+ LegendBaseView.prototype.o = function (e_) {
711
711
  var ev_ = e_.originalEvent;
712
712
  return ev_.currentTarget;
713
713
  };
714
- LegendBaseView.prototype.o = function (e_) {
715
- return this.c.n(this.n(e_));
714
+ LegendBaseView.prototype.p = function (e_) {
715
+ return this.d.n(this.o(e_));
716
+ };
717
+ LegendBaseView.prototype.ae = function (a) {
718
+ if (!this.m) {
719
+ this.c.a3(this.f(this.p(a)));
720
+ }
721
+ this.m = true;
716
722
  };
717
723
  LegendBaseView.prototype.ad = function (a) {
718
- if (!this.l) {
719
- this.b.a3(this.e(this.o(a)));
724
+ if (this.m) {
725
+ this.c.a4(this.f(this.p(a)));
720
726
  }
721
- this.l = true;
727
+ this.m = false;
722
728
  };
723
729
  LegendBaseView.prototype.ac = function (a) {
724
- if (this.l) {
725
- this.b.a4(this.e(this.o(a)));
726
- }
727
- this.l = false;
730
+ this.c.a5(this.e(this.p(a)));
728
731
  };
729
- LegendBaseView.prototype.ab = function (a) {
730
- this.b.a5(this.d(this.o(a)));
732
+ LegendBaseView.prototype.af = function (a) {
733
+ this.c.a6(this.e(this.p(a)));
731
734
  };
732
- LegendBaseView.prototype.ae = function (a) {
733
- this.b.a6(this.d(this.o(a)));
734
- };
735
- LegendBaseView.prototype.h = function (a) {
735
+ LegendBaseView.prototype.i = function (a) {
736
736
  var b = a.querySelectorAll("span *");
737
737
  var c = Rect.empty;
738
738
  for (var e = 0; e < b.length; e++) {
@@ -746,16 +746,16 @@ var LegendBaseView = /** @class */ /*@__PURE__*/ (function (_super) {
746
746
  }
747
747
  return RectData.b(c);
748
748
  };
749
- LegendBaseView.prototype.g = function (a) {
749
+ LegendBaseView.prototype.h = function (a) {
750
750
  var b = a.querySelectorAll("canvas");
751
751
  var c = b.length > 0 ? b[0] : null;
752
752
  return c != null ? new RectData(c.getOffset().left, c.getOffset().top, c.width(), c.height()) : null;
753
753
  };
754
754
  LegendBaseView.prototype.a = function (a) {
755
- if (this.b == null || this.b.at == null || this.b.at.count <= a) {
755
+ if (this.c == null || this.c.at == null || this.c.at.count <= a) {
756
756
  return null;
757
757
  }
758
- var b = this.b.at._inner[a];
758
+ var b = this.c.at._inner[a];
759
759
  if (b == null) {
760
760
  return null;
761
761
  }
@@ -766,9 +766,24 @@ var LegendBaseView = /** @class */ /*@__PURE__*/ (function (_super) {
766
766
  var d = c.actualItemBrush != null ? c.actualItemBrush : c.itemBrush;
767
767
  return AppearanceHelper.b(d);
768
768
  };
769
- LegendBaseView.prototype.f = function () {
769
+ LegendBaseView.prototype.b = function (a) {
770
+ if (this.c == null || this.c.at == null || this.c.at.count <= a) {
771
+ return null;
772
+ }
773
+ var b = this.c.at._inner[a];
774
+ if (b == null) {
775
+ return null;
776
+ }
777
+ var c = b.content;
778
+ if (c == null) {
779
+ return null;
780
+ }
781
+ var d = c.outline;
782
+ return AppearanceHelper.b(d);
783
+ };
784
+ LegendBaseView.prototype.g = function () {
770
785
  var a = new LegendVisualData();
771
- var b = this.c.l;
786
+ var b = this.d.l;
772
787
  var c = b.getChildCount();
773
788
  for (var d = 0; d < c; d++) {
774
789
  var e = new LegendItemVisualData();
@@ -776,12 +791,15 @@ var LegendBaseView = /** @class */ /*@__PURE__*/ (function (_super) {
776
791
  e.label = f.getText();
777
792
  e.label = e.label != null ? e.label.trim() : null;
778
793
  e.bounds = new RectData(f.getOffset().left, f.getOffset().top, f.width(), f.height());
779
- e.labelBounds = this.h(f);
780
- e.badgeBounds = this.g(f);
794
+ e.labelBounds = this.i(f);
795
+ e.badgeBounds = this.h(f);
796
+ e.appearance.fill = this.a(d);
797
+ e.appearance.stroke = this.b(d);
781
798
  a.items.add(e);
782
799
  }
783
- for (var g = 0; g < this.b.at.count; g++) {
800
+ for (var g = 0; g < this.c.at.count; g++) {
784
801
  a.items._inner[g].appearance.fill = this.a(g);
802
+ a.items._inner[g].appearance.stroke = this.b(g);
785
803
  }
786
804
  return a;
787
805
  };
@@ -26,7 +26,7 @@ var Legend = /** @class */ /*@__PURE__*/ (function (_super) {
26
26
  try {
27
27
  for (var _c = __values(fromEn(b.oldItems)), _d = _c.next(); !_d.done; _d = _c.next()) {
28
28
  var c = _d.value;
29
- _this.bc.an(c);
29
+ _this.bc.ao(c);
30
30
  }
31
31
  }
32
32
  catch (e_1_1) {
@@ -47,7 +47,7 @@ var Legend = /** @class */ /*@__PURE__*/ (function (_super) {
47
47
  try {
48
48
  for (var _e = __values(fromEn(b.newItems)), _f = _e.next(); !_f.done; _f = _e.next()) {
49
49
  var d = _f.value;
50
- _this.bc.x(d);
50
+ _this.bc.y(d);
51
51
  }
52
52
  }
53
53
  catch (e_2_1) {
@@ -95,7 +95,7 @@ var Legend = /** @class */ /*@__PURE__*/ (function (_super) {
95
95
  var e = void 0;
96
96
  var f = void 0;
97
97
  var g = void 0;
98
- var h = this.ak.aa(d, e, f, g);
98
+ var h = this.ak.ab(d, e, f, g);
99
99
  e = h.p1;
100
100
  f = h.p2;
101
101
  g = h.p3;
@@ -151,10 +151,10 @@ var Legend = /** @class */ /*@__PURE__*/ (function (_super) {
151
151
  };
152
152
  Object.defineProperty(Legend.prototype, "bb", {
153
153
  get: function () {
154
- return this.ak.k ? 0 : 1;
154
+ return this.ak.l ? 0 : 1;
155
155
  },
156
156
  set: function (a) {
157
- this.ak.k = a == 0;
157
+ this.ak.l = a == 0;
158
158
  },
159
159
  enumerable: false,
160
160
  configurable: true
@@ -164,20 +164,20 @@ var Legend = /** @class */ /*@__PURE__*/ (function (_super) {
164
164
  };
165
165
  Object.defineProperty(Legend.prototype, "bh", {
166
166
  get: function () {
167
- return this.ak.v;
167
+ return this.ak.w;
168
168
  },
169
169
  set: function (a) {
170
- this.ak.v = a;
170
+ this.ak.w = a;
171
171
  },
172
172
  enumerable: false,
173
173
  configurable: true
174
174
  });
175
175
  Object.defineProperty(Legend.prototype, "bi", {
176
176
  get: function () {
177
- return this.ak.w;
177
+ return this.ak.x;
178
178
  },
179
179
  set: function (a) {
180
- this.ak.w = a;
180
+ this.ak.x = a;
181
181
  },
182
182
  enumerable: false,
183
183
  configurable: true
@@ -193,12 +193,12 @@ var LegendView = /** @class */ /*@__PURE__*/ (function (_super) {
193
193
  __extends(LegendView, _super);
194
194
  function LegendView(a) {
195
195
  var _this = _super.call(this, a) || this;
196
- _this.ao = null;
197
- _this.ao = a;
196
+ _this.ap = null;
197
+ _this.ap = a;
198
198
  return _this;
199
199
  }
200
- LegendView.prototype.ak = function () {
201
- _super.prototype.ak.call(this);
200
+ LegendView.prototype.al = function () {
201
+ _super.prototype.al.call(this);
202
202
  };
203
203
  LegendView.$t = markType(LegendView, 'LegendView', LegendBaseView.$);
204
204
  return LegendView;