Closed xsrf closed 3 years ago
The API used for that is accessible via
api('editorCall', {
cmd: 'pathToPolygons',
args: ['M 4632 3103.5 Q 4642 3113.5 4652 3103.5 Q 4662 3093.5 4652 3123.5 Q 4642 3153.5 4632 3123.5 L 4632 3103.5']
});
âš pathToPolygons
only supports Arcs with same x/y radius!
Going to keep paper.js for now, since it is needed for flattening ellipses (arc with different x/y radius)
Just found out that EasyEDA populates the attribute
pointArr
of a solid region, created by an SVG string, with points that approximate the path. This could also be used for #4 instead of paper.js by creating a temporary solid region... 🤔