Skip to content

Fix: svg import ignores rectangle radius when only one side is set.#1866

Open
sasensi wants to merge 1 commit intopaperjs:developfrom
sasensi:fix/svg-import-with-rectangle-radius
Open

Fix: svg import ignores rectangle radius when only one side is set.#1866
sasensi wants to merge 1 commit intopaperjs:developfrom
sasensi:fix/svg-import-with-rectangle-radius

Conversation

@sasensi
Copy link
Copy Markdown
Contributor

@sasensi sasensi commented Nov 4, 2020

Description

This follows the SVG spec in which only one side can be set and set the other
side to the same value in this case.
This also adds support for percent values.

Related issues

Checklist

  • New tests added or existing tests modified to cover all changes
  • Code conforms with the JSHint rules (npm run jshint passes)

@sasensi sasensi marked this pull request as draft November 4, 2020 10:10
This follows the SVG spec in which only one side can be set and set the other
side to the same value in this case.
This also adds support for percent values.

Fixes paperjs#1863
@sasensi sasensi force-pushed the fix/svg-import-with-rectangle-radius branch from 50b9b6b to 216412d Compare November 4, 2020 10:26
@sasensi sasensi marked this pull request as ready for review November 4, 2020 10:35
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.

SVG import ignores rectangle radius when only one side is set

1 participant