You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by su...@apache.org on 2020/05/26 20:45:10 UTC
[incubator-echarts] 04/05: ts: fix type.
This is an automated email from the ASF dual-hosted git repository.
sushuang pushed a commit to branch merge-release-to-next
in repository https://gitbox.apache.org/repos/asf/incubator-echarts.git
commit 99260dd5aaa6cbdddb1436c041aa2acbdb859498
Author: 100pah <su...@gmail.com>
AuthorDate: Wed May 27 04:12:03 2020 +0800
ts: fix type.
---
src/chart/helper/Line.ts | 2 +-
src/coord/geo/geoSourceManager.ts | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/chart/helper/Line.ts b/src/chart/helper/Line.ts
index 0ec7ce5..d67694d 100644
--- a/src/chart/helper/Line.ts
+++ b/src/chart/helper/Line.ts
@@ -277,7 +277,7 @@ class Line extends graphic.Group {
// Only these properties supported in this emphasis style here.
emphasisState.style = {
text: emphasisText as string,
- textFill: hoverLabelModel.getTextColor(true),
+ fill: hoverLabelModel.getTextColor(true),
// For merging hover style to normal style, do not use
// `hoverLabelModel.getFont()` here.
fontStyle: hoverLabelModel.getShallow('fontStyle'),
diff --git a/src/coord/geo/geoSourceManager.ts b/src/coord/geo/geoSourceManager.ts
index b1dc27d..6ec97cd 100644
--- a/src/coord/geo/geoSourceManager.ts
+++ b/src/coord/geo/geoSourceManager.ts
@@ -30,7 +30,7 @@ import Group from 'zrender/src/graphic/Group';
interface Loader {
- load: (mapName: string, mapRecord: MapRecord, nameProperty: string) => {
+ load: (mapName: string, mapRecord: MapRecord, nameProperty?: string) => {
regions?: Region[];
boundingRect?: BoundingRect;
};
@@ -44,7 +44,7 @@ const loaders = {
export default {
- load: function (mapName: string, nameMap: NameMap, nameProperty: string): {
+ load: function (mapName: string, nameMap: NameMap, nameProperty?: string): {
regions: Region[];
// Key: mapName
regionsMap: HashMap<Region>;
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org