Skip to content

A JavaScript dxf generator written in TypeScript.

License

Notifications You must be signed in to change notification settings

Toyoharu-Nishikawa/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

About

A JavaScript dxf generator written in TypeScript.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%