-
-
Notifications
You must be signed in to change notification settings - Fork 759
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IMPORTED SVGs BORDERS ON DESIGN PAGE #2342
Comments
Thanks for the report. I did a quick test and there is obviously something wrong when importing SVG:s. This will require some time to investigate... |
I have discovered that I can resolve my own issue by making sure that, in the SVG, I have a node at the left, right , top and bottom extremes of the path. These then ensure the SVG is brought into the editor with the correct sizes. |
I did some poking around and couldn't find anything obvious in the code. It may be the library we are using for importing or it may be something with my code converting to the internal model. It is tricky to debug and right now I have some more urgent issues to work with.
You are very welcome to try, it would be a nice addition! You might be able to add some properties for the rounded corners here to the rectangle shape: The parsing of the rectangle is done here SvgReader.java |
Version
2.0.21
Hardware / Firmware
GRBL 1.1
What happened
I imported an SVG file onto the design sheet and its aspect ratio was changed. I then set its width to the original 165mm width. The frame around the shape is 165mm but the shape itself is not 165mm wide. The The SVG has no border and no hidden/floating elements. I tried importing a different SVG (heart shape) and got the same result, however importing a circle or square had no problems. This is the screen shot showing the issue:
The SVG data is shown in this screen shot:
![Screen Shot 2023-10-17 at 8 58 41 pm](https://private-user-images.githubusercontent.com/148178866/275795692-aa5c5912-b958-47b4-9468-14a5938142fd.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjI1NjkxNzcsIm5iZiI6MTcyMjU2ODg3NywicGF0aCI6Ii8xNDgxNzg4NjYvMjc1Nzk1NjkyLWFhNWM1OTEyLWI5NTgtNDdiNC05NDY4LTE0YTU5MzgxNDJmZC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODAyJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgwMlQwMzIxMTdaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT05NzAyODE4YzY3ZjdjM2I0YjYxYTJiMGViMDFlYzg1ZjI5Mjc1MTk3ZDFmZTc2NmMyZGEyMDFhMzcwMzAwOTY3JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.dk981Vl5fB6eS8Jj1OZJ4LCERQtlGx9-y9U3G1dAGCY)
How to reproduce
Import the attached SVG file onto the design sheet and the aspect ratio should be changed from the original 165 in the x direction and 145.115 in the y direction. Putting the left bottom corner onto (0,0) shows the white space on either side of the heart shape.
Operating System
MAC OS Catalina Version 10.15.07
Anything else
Every time the file is imported.
The text was updated successfully, but these errors were encountered: