This is an automated email from the ASF dual-hosted git repository.

shenyi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/echarts.git


The following commit(s) were added to refs/heads/master by this push:
     new d6d1ff0  fix(type): ts error
     new dc75783  Merge pull request #16008 from susiwen8/scale-type
d6d1ff0 is described below

commit d6d1ff0e963689e5532c42d945b79ad4e51dddb3
Author: susiwen8 <[email protected]>
AuthorDate: Thu Nov 4 11:28:23 2021 +0800

    fix(type): ts error
---
 src/coord/axisModelCommonMixin.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/coord/axisModelCommonMixin.ts 
b/src/coord/axisModelCommonMixin.ts
index 9fdb6d4..57adacf 100644
--- a/src/coord/axisModelCommonMixin.ts
+++ b/src/coord/axisModelCommonMixin.ts
@@ -31,7 +31,7 @@ interface AxisModelCommonMixin<Opt extends AxisBaseOption> 
extends Pick<Model<Op
 class AxisModelCommonMixin<Opt extends AxisBaseOption> {
 
     getNeedCrossZero(): boolean {
-        const option: ValueAxisBaseOption = this.option;
+        const option = this.option as ValueAxisBaseOption;
         return !option.scale;
     }
 

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to