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

Support editing d path attributes. #18

Open
DavidSouther opened this issue Jun 10, 2015 · 1 comment
Open

Support editing d path attributes. #18

DavidSouther opened this issue Jun 10, 2015 · 1 comment
Labels

Comments

@DavidSouther
Copy link

What would be involved with creating an editor for the d attribute of the path tag?

@oslego
Copy link
Member

oslego commented Jun 10, 2015

It shouldn't be too difficult to adapt this for editing SVG <path>.

Under the hood, this library already uses SVG (Snap.svg) to draw the editor UI. The polygon editor is actually represented with a <path> and its d value is rebuilt as the user edits vertices.

For now, it only supports Move and Line, no Arcs or Curves since these are not yet supported in the CSS Shapes polygon() syntax. With a bit of UI additions, you can adapt it for editing SVG paths.

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

No branches or pull requests

2 participants