Inkpad icon indicating copy to clipboard operation
Inkpad copied to clipboard

Fix issue with SVG import of viewBox with x & y that are non-zero

Open combinatorial opened this issue 10 years ago • 5 comments

When importing an SVG file that has a viewBox with an x or y component then the content is not correctly positioned in the viewport. This change correctly positions the content.

e.g. <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="6.287879in" height="3.750000in" version="1.1" viewBox="150.000000 85.500000 830.000000 495.000000">

combinatorial avatar Mar 28 '14 20:03 combinatorial

Do you have an example file that illustrates the problem?

sprang avatar Apr 04 '14 13:04 sprang

Good, can we merge this?

ghost avatar Feb 08 '16 03:02 ghost

@combinatorial Do you have an example of an SVG file that is affected by this bug?

alistairmcmillan avatar Feb 11 '16 23:02 alistairmcmillan

Is there an easy way for me to import SVG now... dropbox doesn't work if I just pull and build... it's been a long time since I looked at this.

combinatorial avatar Feb 18 '16 00:02 combinatorial

One way is to upload to http://openclipart.org and then use builtin Openclipart import.

On Thu, Feb 18, 2016 at 8:16 AM, David Brittain [email protected] wrote:

Is there an easy way for me to import SVG now... dropbox doesn't work if I just pull and build... it's been a long time since I looked at this.

— Reply to this email directly or view it on GitHub https://github.com/sprang/Inkpad/pull/102#issuecomment-185473008.

ghost avatar Feb 19 '16 04:02 ghost