Skip to content

fix(BoundingRect): don't check if the width and height is finite in constructor.#748

Merged
pissang merged 1 commit into
masterfrom
fix/bounding-rect
Apr 18, 2021
Merged

fix(BoundingRect): don't check if the width and height is finite in constructor.#748
pissang merged 1 commit into
masterfrom
fix/bounding-rect

Conversation

@plainheart
Copy link
Copy Markdown
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

Development

Successfully merging this pull request may close these issues.

TypeError Failed to execute 'createLinearGradient' on 'CanvasRenderingContext2D': The provided double value is non-finite.

2 participants