lw.svg-curves
SVG curves for LaserWeb/CNCWeb.
Installation
Using NPM
npm install lw.svg-curves
Using GIT
git clone https://github.com/lautr3k/lw.svg-curves.git
cd svg-curves
npm install
Or download the last build from https://raw.githubusercontent.com/lautr3k/lw.svg-curves/master/dist/lw.svg-curves.js
Settings (all are optional)
let settings = linear : true // Linear trace mode step : 001 // Step resolution if linear mode = false resolution : 500 // Number of segments we use to approximate arc length segmentLength: 01 // Segment length
Usages
let tracer = settings // Set settings for this instancelet coords = tracer // Or mix settings in constructorlet tracer = p1 p2 p3 p4 linear: false let coords1 = tracerlet coords2 = tracer // new curves.QuadricBezier({ p1, p2, p3 })