@richardmcquiston01/core-vector
v0.5.0
Published
Vector geometry core (paths, boolean ops, nesting, DXF, tracing) for laser/CNC/maker workflows
Downloads
1,346
Maintainers
Readme
@richardmcquiston01/core-vector
Vector geometry core for laser, CNC and other maker-machine workflows: raster tracing (including multicolor), SVG and DXF import/export, boolean operations, path offset and kerf compensation, text-to-paths, and part nesting.
Part of maker-image-tools.
Install
npm i @richardmcquiston01/core-vectorUsage
import { pathsToDxf, svgToPaths, union } from "@richardmcquiston01/core-vector";
const paths = svgToPaths(svgString);
const merged = union(paths[0]!, paths[1]!);
const dxf: string = pathsToDxf(merged);ESM only.
License
MIT
