polygon, polyline, and line on plain SVG export
Add support for <polygon>, <polyline> and <line> on export to plain SVGs.
Currently there is only partial support for basic shapes on export to plain SVG. Rectangles, circles and ellipses are converted to their corresponding tags (<rect>, <circle> and <ellipse>) when exported to plain SVG. However tags for polygons, polylines and lines (<polygon>, <polyline> and <line>) are not generated. The default behavior is to generate these remaining types of shapes as path elements.
There are use cases where it is desirable to have a shape described using <polygon>, <polyline> or <line>. It need not be the default behavior but an option that could be enabled from the Preferences panel (Preferences-
Criteria for generating these unsupported shapes (based on SVG 1.1 specification) could work as follows :
For <line> tags
- shape must be defined by exactly 2 points representing 'start' and 'end' of a single line segment
For <polygon> tags
- shape must be closed
- shape must be composed of 3 or more straight line segments (No curves)
For <polyline> tags
- shape must be open
- shape must be composed of 2 or more straight line segments (No curves)
-------
SVG Spec for basic shapes - https:/
Related issues:
https:/
https:/
Blueprint information
- Status:
- Not started
- Approver:
- None
- Priority:
- Undefined
- Drafter:
- dimumurray
- Direction:
- Needs approval
- Assignee:
- None
- Definition:
- New
- Series goal:
- None
- Implementation:
- Unknown
- Milestone target:
- None
- Started by
- Completed by