perliedman / ocad2geojson

JavaScript OCAD file reader and exporter for GeoJSON, SVG and Mapbox Style Spec
https://www.liedman.net/ocad2geojson/
GNU Affero General Public License v3.0
39 stars 4 forks source link

Curves are not supported (yet?) when rendering to SVG/PDF? #4

Closed mpickering closed 4 years ago

mpickering commented 4 years ago

For example:

image vs

image

mpickering commented 4 years ago

Seems to me that the SVG exporter does not distinguish between the different point types at all so the lines also join up all the bezier anchors.

The way to fix this is to mirror what happens in the geojson exporter where the coordinates are traversed and the bezier anchors matched with the other control points. After that, SVG already has native support for drawing quadratic bezier curves.

perliedman commented 4 years ago

Fixed by #6, right?