tosqa

Open full view…

Plotter

peteruithoven
Sun, 20 Jul 2014 22:58:08 GMT

Hi folks, I've been working on the plotter. It currently only handles straight path's, but I think I've been able to build it in a way that's extendable. No websockets yet. https://github.com/tosqa/Plotter

peteruithoven
Tue, 29 Jul 2014 16:53:47 GMT

In collaboration with the [maintainer](http://github.com/wout/) of the [svg.js](http://github.com/wout/svg.js) library I've been able to make it very easy to import and parse svg files. We worked on making importing and converting all shapes to polygons as simple as: --- var svg = SVG(containerElement) svg.svg(importedSVGContent); svg.toPath(true).toPoly("2px",true); --- This imports the contents of a svg file into a svg, converts all shapes (eclipse, rects etc) into path's and then converts all paths into polygons. The import functionality supports Illustrator and Inkscape files. `toPoly` also subdivides curves into straight lines by a determined sample rate (in this case 2px). By improving the existing [svg.js](http://github.com/wout/svg.js) library and plugins I hope to make it easier for others to build other Tosqa front-ends.