A Javascript dxf generator, written in Typescript.
yarn add @tarikjabiri/dxf
# Or npm
npm i @tarikjabiri/dxf
# Or pnpm
pnpm add @tarikjabiri/dxf
import { Writer, point } from "@tarikjabiri/dxf";
const writer = new Writer();
const modelSpace = writer.document.modelSpace;
// Add entites to the model space
modelSpace.addLine({
start: point(),
end: point(100, 100),
// Other options...
});
// To get the dxf content just call the stringify() method
const content = writer.stringify();
![Slate](https://github.com/weareslate.png?raw=true)
![Slate](https://github.com/Autodrop3d.png?raw=true)
![Mikey](https://github.com/ahdinosaur.png?raw=true)