Good morning all,
I have been working on a new and updated SVG Editor to replace the existing one. It is currently available in the Rhino 8.9 SRC for testing!
How to Access
Run the hidden command TestSvgEdit
Toggling this setting to New
will toggle which editor appears by default when you edit toolbar buttons, create new ones, or create Script Editor Icons. If you love it, you can keep using it, if you don’t, please tell me why below and I’ll see if I can’t fix your issues
I hope you all enjoy it, and furthermore, I hope you all have lots of lovely requests for it!
Features
My aim is to reach feature parity with the existing editor and massively succeed it in terms of usability and usefulness.
1 - File IO
New File / Import / Save / SaveAs
Note: that SVGs that cannot be fully supported will offer to be imported as a background image
2 - Standard Tools
Select / Line / Rectangle / Bezier Curve / Circle / Ellipse / Polyline
Note : Curves are … overzealous … after the 4th click, still a WIP
3 - Light / Dark Mode
The new editor combines light and dark icons. SVG Elements can have different properties between Light / Dark Mode.
Note : Rhino does not render this embedded light/dark data yet, TBC
4 - SVG Properties Panel
Edit any valid property of SVG Elements, the join and caps also show multi-select, and all propertiy updates will change everything selected.
5 - Layers
Drag and drop elements behind and infront of each with precision
Note : This doesn’t seem to work on Windows for me now? Mac is fine. Typical.
6 - Pixel Preview
Pixel preview gives you a zoomed in representation of your icon at that size. The elements are fully editable whilst in this mode, so you can edit, nudge, update properties and pixel-peep to your hearts content until your icon is pixel perfect.
7 - Grid Snapping
Grid snapping will set the snapping for new items, editing items, and nudging
Note : This is not quite right in the 24x24 px preview
Things to note
- SVG is a HUGELY compex spec compared to a Bitmap, and hence, many SVG files (i.e Rhino Icons) will not be editable quite yet. I aim to improve SVG Spec support as time goes on and am curious how best to handle un-editable files in the meantime
- As mentioned above, the light dark mode is not supported by Rhino Icons just yet
- This is a work in progress, so not everything will be perfect just yet
– cs