-
Notifications
You must be signed in to change notification settings - Fork 19.7k
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
Add clip option for line, bar, lines, scatter, custom series #11283
Conversation
…in recorder page.
layout.width = x2 - x; | ||
layout.height = y2 - y; | ||
|
||
var clipped = layout.width < 0 || layout.height < 0;; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
two ;;
this.group.setClipPath(clipPath); | ||
} | ||
else { | ||
this.group.removeClipPath(null); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
null
is not needed.
It seems that removeClipPath
has no arg.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @100pah . I will fix it in another PR.
This is a pull request about adding clip option for line, bar, lines, scatter and custom series.
More details can be found in the issue #11240
Test Case
https://github.com/apache/incubator-echarts/blob/feature/clip/test/clip.html
Test result compared to 4.2.1
The result is generated with Visual Regression Testing Tool.
You can run it by the following command: