css-shapes-editor icon indicating copy to clipboard operation
css-shapes-editor copied to clipboard

Support editing `d` path attributes.

Open DavidSouther opened this issue 9 years ago • 1 comments

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

DavidSouther avatar Jun 10 '15 10:06 DavidSouther

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.

oslego avatar Jun 10 '15 15:06 oslego