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(BoundingRect): don't check if the width and height is finite in constructor. #748

Merged
merged 1 commit into from
Apr 18, 2021

Conversation

plainheart
Copy link
Collaborator

fix apache/echarts#14534

PENDING:
It seems Infinity cannot be simply considered as 0, after all, it's infinitely large but not zero.

And I saw the BoundingRect#union is checking if the value is finite, which indicates the infinite values can exist in the constructed instance of BoundingRect, so I'm thinking the no check need to do in the constructor.

@pissang pissang merged commit c22d56a into master Apr 18, 2021
@pissang pissang deleted the fix/bounding-rect branch April 18, 2021 07:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants