polygon vs path
Bug #171366 reported by
Rtc1
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Confirmed
|
Wishlist
|
jazzynico |
Bug Description
I have some files with <polygon> tags in them. They
display fine, but would be fine if they could be edited
without converting them to a path first. Also some
function to convert back to <polygon> or create
polygons in the first place would be great.
pencil should create polygon, tool below should create
path?
Changed in inkscape: | |
importance: | Undecided → Wishlist |
Changed in inkscape: | |
status: | New → Confirmed |
tags: | added: shape-editing |
To post a comment you must log in.
I have written some JavaScript which will examine a <path> element, determine if it is a valid polygon and convert it to a <polygon> element if possible. I wrote it so I can use InkScape to create and edit polygonal shapes, but I want my run-time code to operate on <polygon> elements.
It runs as a command line tool, using the Rhino JavaScript interpreter. It uses env.js to provide a browser-like DOM model and then operates on the SVG Dom.
I plan on making it available as part of an Open Source toolkit for processing SVG at build time. It could possibly be converted to an InkScape Scripting Extension. Let me know if there is any interest.