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

Enhancement-Feature Request: SVG and JS export #8

Open
CatinhoCR opened this issue Sep 24, 2020 · 3 comments
Open

Enhancement-Feature Request: SVG and JS export #8

CatinhoCR opened this issue Sep 24, 2020 · 3 comments
Labels
enhancement New feature or request

Comments

@CatinhoCR
Copy link

While using this I thought of 2 possible nice to have's additions:

  1. Export option, with options/selections for things like:
  • Export to single path/multiple paths (break on Z or MZ)
  • Export as JS array (same, break on Z/MZ but add each to an array's index)
    -- Others not as cool but useful: Include SVG header, viewbox, Id/Class
  1. Drag and drop for the whole path (and better coordinate calculations on mouse)

P.S:
This is great stuff, thanks for sharing! Helped me a lot today.
I could try to work on some of those and add PRs if you're OK with that.
Cheers!

@Yqnn
Copy link
Owner

Yqnn commented Sep 26, 2020

Thanks for the suggestions 🍺

Drag and drop for the whole path: you can achieve this by converting the full path to relative coordinates, then dragging the first point of the path, or using the Translate operation. I admit these 2 workarounds are not very user-friendly, but having to move a whole path is no something so common.

What do you mean by better coordinate calculations on mouse ?

@Yqnn Yqnn added the enhancement New feature or request label Sep 26, 2020
@dflock
Copy link

dflock commented Nov 19, 2020

Yeah, export to SVG would be really nice!

@Yqnn
Copy link
Owner

Yqnn commented Nov 28, 2020

SVG export is done in PR #20

@Yqnn Yqnn changed the title Enhancement-Feature Request Enhancement-Feature Request: SVG and JS export Jan 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants