Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix bug #9704 #10129

Closed
wants to merge 3 commits into from
Closed

fix bug #9704 #10129

wants to merge 3 commits into from

Conversation

yufeng04
Copy link
Contributor

No description provided.

@@ -46,7 +46,7 @@ export default {
var lineType = this.get('type');
var dotSize = Math.max(lineWidth, 2);
var dashSize = lineWidth * 4;
return (lineType === 'solid' || lineType == null) ? null
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to https://github.com/ecomfe/zrender/blob/master/src/graphic/Path.js#L136
I think default value should better not be a [0, 0], but still null is better.

For this issue, probably we can always set a value to style.lineDash in method getLineStyle above whether line dash is null or not.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I understand! I just choose the simplest way, but don't know whether this way is the best!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants