I like macSVG as it keeps the SVG XML structure intact when editing.
I ran across many existing icons with an issue.
At least partly where created in Adobe Illustrator.
Simplified one looks like:
When I open it in macSVG it opens correctly, but as soon as I want to drag the path shape it moves out of sight. In inspecting another file that did work I noticed this one has no width or height attributes in the svg element. If I add those in a text editor like width="513px" height="513px" (using viewBox dimensions for test) then I can move the shape Ok.
Should/could this be corrected in macSVG by using a width/height equal to the viewBox or perhaps the maximum shape dimensions if no width or height is specified ?
The XML was formatted with a newline after the path element and before the closing . This results in macSVG showing a Text element with an empty value "", see screenshot. I know that elements can have text as element value between sub-elements, but shouldn't whitespace be filtered out when parsing an XML ? When there are many shapes there are an equal amount of empty text boxes, which is annoying/needless. When I save the SVG from macSVG the newlines are removed (formatting gone, but Ok) and immediately the empty text elements are gone...
I was going to give a try to see if I could inspect(/fix ?) above 2 issues in the source code. However, running Xcode 9.4.1 and opening the workspace, it did not build directly. I needed to set 'Code Signing Identity' to 'Don't Code Sign for each and every (plugin) project within the workspace. After that I'm left with complaints with can't find MacSVGPlugin/MacSVGPlugin.h in some of the projects... I will noodle a bit further with search path, I guess I need to build MacSVGPlugin.framework first and there are some assumptions about the Products Build Locations...
I'm not sure how actively macSVG is maintained, but it would be great if you could react on above.
Hello Douglas,
I like macSVG as it keeps the SVG XML structure intact when editing. I ran across many existing icons with an issue. At least partly where created in Adobe Illustrator. Simplified one looks like:
When I open it in macSVG it opens correctly, but as soon as I want to drag the path shape it moves out of sight. In inspecting another file that did work I noticed this one has no width or height attributes in the svg element. If I add those in a text editor like width="513px" height="513px" (using viewBox dimensions for test) then I can move the shape Ok. Should/could this be corrected in macSVG by using a width/height equal to the viewBox or perhaps the maximum shape dimensions if no width or height is specified ?
The XML was formatted with a newline after the path element and before the closing . This results in macSVG showing a Text element with an empty value "", see screenshot. I know that elements can have text as element value between sub-elements, but shouldn't whitespace be filtered out when parsing an XML ? When there are many shapes there are an equal amount of empty text boxes, which is annoying/needless. When I save the SVG from macSVG the newlines are removed (formatting gone, but Ok) and immediately the empty text elements are gone...
I'm not sure how actively macSVG is maintained, but it would be great if you could react on above.
Thanks !
Henk Demper