@esfaenza/es-charts 11.2.12 → 11.2.13

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.
@@ -1624,16 +1624,8 @@
1624
1624
  this.ChartInstance.legend.position = (_f = settings === null || settings === void 0 ? void 0 : settings.LegendPosition) !== null && _f !== void 0 ? _f : 'right';
1625
1625
  this.ChartInstance.legend.scrollable = true;
1626
1626
  this.ChartInstance.legend.itemContainers.template.tooltipText = "{name}";
1627
- this.ChartInstance.legend.itemContainers.template.events.on("over", function (event) {
1628
- var series = event.target.dataItem.dataContext;
1629
- var fill = series.stacked;
1630
- _this.processOver(series, fill);
1631
- });
1632
- this.ChartInstance.legend.itemContainers.template.events.on("out", function (event) {
1633
- var series = event.target.dataItem.dataContext;
1634
- var fill = series.stacked;
1635
- _this.processOut(fill);
1636
- });
1627
+ this.ChartInstance.legend.itemContainers.template.events.on("over", function (event) { _this.processOver(event.target.dataItem.dataContext); });
1628
+ this.ChartInstance.legend.itemContainers.template.events.on("out", function () { _this.processOut(); });
1637
1629
  if (settings.LegendPadding) {
1638
1630
  var template = this.ChartInstance.legend.itemContainers.template;
1639
1631
  template.paddingTop = (_g = settings.LegendPadding.top) !== null && _g !== void 0 ? _g : 0;
@@ -1682,9 +1674,10 @@
1682
1674
  }
1683
1675
  };
1684
1676
  /** @ignore */
1685
- LineChartService.prototype.processOver = function (hoveredSeries, fill) {
1677
+ LineChartService.prototype.processOver = function (hoveredSeries) {
1686
1678
  var _this = this;
1687
1679
  hoveredSeries.toFront();
1680
+ var fill = hoveredSeries.stacked;
1688
1681
  hoveredSeries.segments.each(function (segment) {
1689
1682
  segment.setState("hover");
1690
1683
  if (!fill)
@@ -1693,17 +1686,20 @@
1693
1686
  if (!fill)
1694
1687
  hoveredSeries.legendDataItem.marker.children.getIndex(1).fillOpacity = this.OpacityOnSelected;
1695
1688
  this.ChartInstance.series.each(function (series) {
1696
- if (series != hoveredSeries)
1689
+ if (series != hoveredSeries) {
1690
+ var fill_1 = series.stacked;
1697
1691
  series.segments.each(function (segment) {
1698
1692
  segment.setState("dimmed");
1699
- if (!fill)
1693
+ if (!fill_1)
1700
1694
  segment.fillSprite.fillOpacity = 0;
1701
1695
  });
1696
+ }
1702
1697
  });
1703
1698
  };
1704
1699
  /** @ignore */
1705
- LineChartService.prototype.processOut = function (fill) {
1700
+ LineChartService.prototype.processOut = function () {
1706
1701
  this.ChartInstance.series.each(function (series) {
1702
+ var fill = series.stacked;
1707
1703
  series.segments.each(function (segment) {
1708
1704
  segment.setState("default");
1709
1705
  if (!fill)