@progress/kendo-charts 2.7.3-develop.1 → 2.7.3-develop.2

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.
@@ -44,7 +44,8 @@ class Bubble extends LinePoint {
44
44
  color: border.color ||
45
45
  new Color(markers.background).brightness(BORDER_BRIGHTNESS).toHex(),
46
46
  width: border.width,
47
- opacity: border.opacity
47
+ opacity: border.opacity,
48
+ dashType: border.dashType
48
49
  },
49
50
  fill: createPatternFill(this.options.pattern, {
50
51
  color: markers.background,
@@ -91,7 +91,7 @@ class Candlestick extends ChartElement {
91
91
 
92
92
  if (options.border.width > 0) {
93
93
  body.options.set("stroke", {
94
- color: this.getBorderColor(),
94
+ color: this.getBorderColor(options),
95
95
  width: options.border.width,
96
96
  dashType: options.border.dashType,
97
97
  opacity: valueOrDefault(options.border.opacity, options.opacity)
@@ -134,12 +134,12 @@ class Candlestick extends ChartElement {
134
134
  }
135
135
  }
136
136
 
137
- getBorderColor() {
138
- const border = this.options.border;
137
+ getBorderColor(options) {
138
+ const border = options.border;
139
139
  let borderColor = border.color;
140
140
 
141
141
  if (!defined(borderColor)) {
142
- borderColor = new Color(this.color).brightness(border._brightness).toHex();
142
+ borderColor = new Color(this.color).brightness(this.options.border._brightness).toHex();
143
143
  }
144
144
 
145
145
  return borderColor;
@@ -165,7 +165,7 @@ class Candlestick extends ChartElement {
165
165
  const overlay = this.mainVisual(
166
166
  deepExtend({}, this.options, {
167
167
  line: {
168
- color: this.getBorderColor()
168
+ color: this.getBorderColor(highlight)
169
169
  }
170
170
  }, highlight)
171
171
  );
@@ -223,7 +223,8 @@ class PieSegment extends ChartElement {
223
223
  stroke: {
224
224
  opacity: border.opacity,
225
225
  width: border.width,
226
- color: border.color
226
+ color: border.color,
227
+ dashType: border.dashType
227
228
  }
228
229
  }));
229
230
  }
@@ -36,14 +36,17 @@ export class Legend extends SankeyElement {
36
36
  labelsTemplate = getTemplate(labels);
37
37
  }
38
38
 
39
- const data = nodes.map((node) => ({
40
- text: labelsTemplate ? labelsTemplate(node) : (node.label && node.label.text) || '',
41
- area: {
42
- background: item.areaBackground !== undefined ? item.areaBackground : node.color,
43
- opacity: item.areaOpacity !== undefined ? item.areaOpacity : node.opacity
44
- },
45
- node: node
46
- }));
39
+ const data = nodes.map((node) => {
40
+ const text = (node.label && node.label.text) || '';
41
+ return ({
42
+ text: labelsTemplate ? labelsTemplate({ text, node }) : text,
43
+ area: {
44
+ background: item.areaBackground !== undefined ? item.areaBackground : node.color,
45
+ opacity: item.areaOpacity !== undefined ? item.areaOpacity : node.opacity
46
+ },
47
+ node: node
48
+ });
49
+ });
47
50
 
48
51
  data.sort(sort(rtl));
49
52
 
@@ -44,7 +44,8 @@ class Bubble extends LinePoint {
44
44
  color: border.color ||
45
45
  new Color(markers.background).brightness(BORDER_BRIGHTNESS).toHex(),
46
46
  width: border.width,
47
- opacity: border.opacity
47
+ opacity: border.opacity,
48
+ dashType: border.dashType
48
49
  },
49
50
  fill: createPatternFill(this.options.pattern, {
50
51
  color: markers.background,
@@ -91,7 +91,7 @@ class Candlestick extends ChartElement {
91
91
 
92
92
  if (options.border.width > 0) {
93
93
  body.options.set("stroke", {
94
- color: this.getBorderColor(),
94
+ color: this.getBorderColor(options),
95
95
  width: options.border.width,
96
96
  dashType: options.border.dashType,
97
97
  opacity: valueOrDefault(options.border.opacity, options.opacity)
@@ -134,12 +134,12 @@ class Candlestick extends ChartElement {
134
134
  }
135
135
  }
136
136
 
137
- getBorderColor() {
138
- const border = this.options.border;
137
+ getBorderColor(options) {
138
+ const border = options.border;
139
139
  let borderColor = border.color;
140
140
 
141
141
  if (!defined(borderColor)) {
142
- borderColor = new Color(this.color).brightness(border._brightness).toHex();
142
+ borderColor = new Color(this.color).brightness(this.options.border._brightness).toHex();
143
143
  }
144
144
 
145
145
  return borderColor;
@@ -165,7 +165,7 @@ class Candlestick extends ChartElement {
165
165
  const overlay = this.mainVisual(
166
166
  deepExtend({}, this.options, {
167
167
  line: {
168
- color: this.getBorderColor()
168
+ color: this.getBorderColor(highlight)
169
169
  }
170
170
  }, highlight)
171
171
  );
@@ -223,7 +223,8 @@ class PieSegment extends ChartElement {
223
223
  stroke: {
224
224
  opacity: border.opacity,
225
225
  width: border.width,
226
- color: border.color
226
+ color: border.color,
227
+ dashType: border.dashType
227
228
  }
228
229
  }));
229
230
  }
@@ -36,14 +36,17 @@ export class Legend extends SankeyElement {
36
36
  labelsTemplate = getTemplate(labels);
37
37
  }
38
38
 
39
- const data = nodes.map((node) => ({
40
- text: labelsTemplate ? labelsTemplate(node) : (node.label && node.label.text) || '',
41
- area: {
42
- background: item.areaBackground !== undefined ? item.areaBackground : node.color,
43
- opacity: item.areaOpacity !== undefined ? item.areaOpacity : node.opacity
44
- },
45
- node: node
46
- }));
39
+ const data = nodes.map((node) => {
40
+ const text = (node.label && node.label.text) || '';
41
+ return ({
42
+ text: labelsTemplate ? labelsTemplate({ text, node }) : text,
43
+ area: {
44
+ background: item.areaBackground !== undefined ? item.areaBackground : node.color,
45
+ opacity: item.areaOpacity !== undefined ? item.areaOpacity : node.opacity
46
+ },
47
+ node: node
48
+ });
49
+ });
47
50
 
48
51
  data.sort(sort(rtl));
49
52