You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by wa...@apache.org on 2021/09/22 11:22:21 UTC
[echarts] 01/01: revert(line): revert the default design "make line
bolder in the empahsis state".
This is an automated email from the ASF dual-hosted git repository.
wangzx pushed a commit to branch revert-default-line-bolder
in repository https://gitbox.apache.org/repos/asf/echarts.git
commit 0292e76e49e15de1c5970b90558c31854e04a01d
Author: plainheart <yh...@all-my-life.cn>
AuthorDate: Wed Sep 22 19:17:28 2021 +0800
revert(line): revert the default design "make line bolder in the empahsis state".
---
src/chart/line/LineSeries.ts | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/src/chart/line/LineSeries.ts b/src/chart/line/LineSeries.ts
index 1b572b5..b58c6a6 100644
--- a/src/chart/line/LineSeries.ts
+++ b/src/chart/line/LineSeries.ts
@@ -72,8 +72,8 @@ export interface LineEndLabelOption extends SeriesLabelOption {
export interface LineSeriesOption extends SeriesOption<LineStateOption<CallbackDataParams>, LineStateOptionMixin & {
emphasis?: {
- lineStyle?: LineStyleOption | {
- width?: 'bolder'
+ lineStyle?: Omit<LineStyleOption, 'width'> & {
+ width?: LineStyleOption['width'] | 'bolder'
}
areaStyle?: AreaStyleOption
}
@@ -169,10 +169,7 @@ class LineSeriesModel extends SeriesModel<LineSeriesOption> {
},
emphasis: {
- scale: true,
- lineStyle: {
- width: 'bolder'
- }
+ scale: true
},
// areaStyle: {
// origin of areaStyle. Valid values:
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org