Getting Started
Installation
sh
$ npm install @tarikjabiri/dxf
$ npm install @tarikjabiri/dxf
sh
$ pnpm add @tarikjabiri/dxf
$ pnpm add @tarikjabiri/dxf
sh
$ yarn add @tarikjabiri/dxf
$ yarn add @tarikjabiri/dxf
Quick start
ts
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...
});
// Get the dxf content
const content = writer.stringify();
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...
});
// Get the dxf content
const content = writer.stringify();