@progress/kendo-charts 1.16.1-dev.202101080910 → 1.17.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.
@@ -1508,9 +1508,9 @@ var Chart = (function (Class) {
1508
1508
  items = plotArea.pointsBySeriesIndex(seriesIndex);
1509
1509
  }
1510
1510
 
1511
- if (this._hasInactiveOpacity() && currentSeries.visible) {
1511
+ if (this._hasInactiveOpacity() && currentSeries.visible && items) {
1512
1512
  var multipleSeries = plotArea.series.length > 1;
1513
- var point = items[0];
1513
+ var point = items.length ? items[0] : items;
1514
1514
 
1515
1515
  this._displayInactiveOpacity(point, multipleSeries, items);
1516
1516
  } else {
@@ -45,24 +45,23 @@ var PlotAreaBase = (function (ChartElement) {
45
45
  PlotAreaBase.prototype.createPanes = function createPanes () {
46
46
  var this$1 = this;
47
47
 
48
- var defaults = { title: { color: (this.options.title || {}).color } };
49
- var panes = [];
48
+ var titleOptions = this.options.title || {};
49
+ var paneDefaults = this.options.paneDefaults;
50
50
  var paneOptions = this.options.panes || [];
51
51
  var panesLength = Math.max(paneOptions.length, 1);
52
+ var panes = [];
52
53
 
53
- function setTitle(options, defaults) {
54
- if (isString(options.title)) {
55
- options.title = {
56
- text: options.title
57
- };
54
+ var defaults = deepExtend({
55
+ title: {
56
+ color: titleOptions.color
58
57
  }
59
-
60
- options.title = deepExtend({}, defaults.title, options.title);
61
- }
58
+ }, paneDefaults);
62
59
 
63
60
  for (var i = 0; i < panesLength; i++) {
64
- var options = paneOptions[i] || {};
65
- setTitle(options, defaults);
61
+ var options = deepExtend({}, defaults, paneOptions[i]);
62
+ if (isString(options.title)) {
63
+ options.title = deepExtend({ text: options.title }, defaults.title);
64
+ }
66
65
 
67
66
  var currentPane = new Pane(options);
68
67
  currentPane.paneIndex = i;
@@ -1018,6 +1017,9 @@ setDefaultOptions(PlotAreaBase, {
1018
1017
  color: BLACK,
1019
1018
  width: 0
1020
1019
  },
1020
+ paneDefaults: {
1021
+ title: {}
1022
+ },
1021
1023
  legend: {
1022
1024
  inactiveItems: {
1023
1025
  labels: {
@@ -1462,9 +1462,9 @@ class Chart extends Class {
1462
1462
  items = plotArea.pointsBySeriesIndex(seriesIndex);
1463
1463
  }
1464
1464
 
1465
- if (this._hasInactiveOpacity() && currentSeries.visible) {
1465
+ if (this._hasInactiveOpacity() && currentSeries.visible && items) {
1466
1466
  const multipleSeries = plotArea.series.length > 1;
1467
- const point = items[0];
1467
+ const point = items.length ? items[0] : items;
1468
1468
 
1469
1469
  this._displayInactiveOpacity(point, multipleSeries, items);
1470
1470
  } else {
@@ -39,24 +39,23 @@ class PlotAreaBase extends ChartElement {
39
39
  }
40
40
 
41
41
  createPanes() {
42
- const defaults = { title: { color: (this.options.title || {}).color } };
43
- const panes = [];
42
+ const titleOptions = this.options.title || {};
43
+ const paneDefaults = this.options.paneDefaults;
44
44
  const paneOptions = this.options.panes || [];
45
45
  const panesLength = Math.max(paneOptions.length, 1);
46
+ const panes = [];
46
47
 
47
- function setTitle(options, defaults) {
48
- if (isString(options.title)) {
49
- options.title = {
50
- text: options.title
51
- };
48
+ const defaults = deepExtend({
49
+ title: {
50
+ color: titleOptions.color
52
51
  }
53
-
54
- options.title = deepExtend({}, defaults.title, options.title);
55
- }
52
+ }, paneDefaults);
56
53
 
57
54
  for (let i = 0; i < panesLength; i++) {
58
- const options = paneOptions[i] || {};
59
- setTitle(options, defaults);
55
+ const options = deepExtend({}, defaults, paneOptions[i]);
56
+ if (isString(options.title)) {
57
+ options.title = deepExtend({ text: options.title }, defaults.title);
58
+ }
60
59
 
61
60
  const currentPane = new Pane(options);
62
61
  currentPane.paneIndex = i;
@@ -987,6 +986,9 @@ setDefaultOptions(PlotAreaBase, {
987
986
  color: BLACK,
988
987
  width: 0
989
988
  },
989
+ paneDefaults: {
990
+ title: {}
991
+ },
990
992
  legend: {
991
993
  inactiveItems: {
992
994
  labels: {