Open adroitwhiz opened 4 years ago
@adroitwhiz yes that's a bug indeed! Your fix looks good, thank you! I'll do some testing shortly, but it looks good to go! Out of curiosity: Github says LLK/paper.js
is 91 commits ahead. Is there other work that we should bring back over?
There's a lot of stuff related to text import/export, most of which (I think) is specific to the Scratch paint editor.
There's a couple other things that may be worth merging:
@fsih Any other LLK-specific paper.js fixes that could be upstreamed here?
@adroitwhiz apologies for not taking care of this yet. Unfortunately I have had very little time to take care of Paper.js in the past year due to a difficult personal situation. May I ask why you closed the issue?
PR #1825 fixed this specific issue. I can leave it open to discuss the other LLK-specific changes if you want.
Ah good. Perhaps we should close this and create follow up issues for the other bits?
Sounds good.
Description/Steps to reproduce
In some cases, paths'
strokeBounds
will be incorrectly sized too small. This can easily be seen with e.g. a rotated ellipse, as in the sketch below.paper.Path.Ellipse
Link to reproduction test-case
Sketch
Expected result
An item's
strokeBounds
should cover the entire item-- otherwise, this can lead to viewboxes of exported SVGs being incorrectly shrunken and cutting off outlines.Additional information
This occurs across browsers/OSes