You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by sh...@apache.org on 2020/08/03 03:51:43 UTC
[incubator-echarts] branch next updated: fix(util/styleCompat): fix
a typo in `convertToEC4RichItem` function.
This is an automated email from the ASF dual-hosted git repository.
shenyi pushed a commit to branch next
in repository https://gitbox.apache.org/repos/asf/incubator-echarts.git
The following commit(s) were added to refs/heads/next by this push:
new 2a1fe0e fix(util/styleCompat): fix a typo in `convertToEC4RichItem` function.
new 00d58d3 Merge pull request #13070 from plainheart/fix-typo
2a1fe0e is described below
commit 2a1fe0e7ee431de4ab8251f0e3c79461fcb22904
Author: plainheart <yh...@all-my-life.cn>
AuthorDate: Mon Aug 3 11:30:22 2020 +0800
fix(util/styleCompat): fix a typo in `convertToEC4RichItem` function.
---
src/util/styleCompat.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/util/styleCompat.ts b/src/util/styleCompat.ts
index 8844dea..87b21bc 100644
--- a/src/util/styleCompat.ts
+++ b/src/util/styleCompat.ts
@@ -215,7 +215,7 @@ function convertToEC4RichItem(out: Dictionary<unknown>, richItem: TextStyleProps
hasOwn(richItem, 'stroke') && (out.textStroke = richItem.fill);
hasOwn(richItem, 'lineWidth') && (out.textStrokeWidth = richItem.lineWidth);
- hasOwn(richItem, 'font') && (out.textStrokeWidth = richItem.font);
+ hasOwn(richItem, 'font') && (out.font = richItem.font);
hasOwn(richItem, 'fontStyle') && (out.fontStyle = richItem.fontStyle);
hasOwn(richItem, 'fontWeight') && (out.fontWeight = richItem.fontWeight);
hasOwn(richItem, 'fontSize') && (out.fontSize = richItem.fontSize);
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org