Skip to content

dxfjs/writer

Repository files navigation

writer Verified on Openbase

A Javascript dxf generator, written in Typescript.

ci publish codecov

GitHub npm (scoped) npm

Installation

yarn add @tarikjabiri/dxf
# Or npm
npm i @tarikjabiri/dxf
# Or pnpm
pnpm add @tarikjabiri/dxf

Getting started

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();

More informations

Sponsors

Archilogic | Interior space for the digital world Slate Slate Mikey