Skip to content
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

Custom SVG shapes with svgedit integration #229

Open
kyr0 opened this issue Feb 1, 2024 · 0 comments
Open

Custom SVG shapes with svgedit integration #229

kyr0 opened this issue Feb 1, 2024 · 0 comments

Comments

@kyr0
Copy link

kyr0 commented Feb 1, 2024

https://github.com/SVG-Edit/svgedit is an open source SVG editor. To support custom shapes and editing them, it might be an idea to integrate this popular SVG editor with a doubleclick on an SVG element added to the viewport, to the svgeditor in a modal to customize the SVG.

Another button could be added to the Shapes tab which says: "Add custom shape". In this user story, the modal would appear and the SVG created in there, would be saved as a SVG primitive and added/previewed as a new shape. A name would need to be provided on close of modal. Double-clicking an already added custom shape or context-click -> edit would allow a user to change the primitive SVG custom shape.

When such a custom SVG shape is added to the viewport, it could only be moved and scaled as a whole.

This feature would greatly increase the versatility and power of this project as users could maintain their own custom wireframing component libraries easily, all inside the mydraft editor; and as SVGs can be serialized, the custom shapes could also be stored as part of the project state and locally referenced.

edit: Streamlined the idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant