Skip to content

dxfjs/writer

Folders and files

NameName
Last commit message
Last commit date
Sep 1, 2023
Oct 1, 2023
Sep 17, 2023
Nov 26, 2023
Aug 21, 2024
Nov 11, 2023
May 12, 2023
Nov 23, 2022
May 12, 2023
May 12, 2023
Nov 26, 2023
Aug 14, 2022
Sep 1, 2023
Aug 21, 2024
Sep 29, 2024
Sep 17, 2023
Nov 26, 2023
Aug 18, 2022
Sep 17, 2023

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