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

Add clip option for line, bar, lines, scatter, custom series #11283

Merged
merged 12 commits into from
Sep 20, 2019
Merged

Conversation

pissang
Copy link
Contributor

@pissang pissang commented Sep 19, 2019

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:

npm run test:visual

screencapture-localhost-8866-test-runTest-client-index-html-2019-09-19-16_20_37

layout.width = x2 - x;
layout.height = y2 - y;

var clipped = layout.width < 0 || layout.height < 0;;
Copy link
Member

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);
Copy link
Member

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.

Copy link
Contributor Author

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.

@pissang pissang merged commit e239a02 into master Sep 20, 2019
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