Update rect.class.js - fix issue with incorrect <rect> tags in SVG #5582
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
issue where svg containing
<rect>
tag missing height or width will have incorrect height or width (inherits from canvas height/width)May also be fixable by changing the line where it extends from options, but this seems less dangerous.
image of issue.
malformed tag (note missing height)
<rect x="171.5" y="289.63" width="94.59" transform="translate(-140.68 239.31) rotate(-44.96)" fill="#F8485E" stroke="none"></rect>