JavaScript DXF writer
Simple DXF writer.
Installing
npm install balazs-dxf-writer
Node.js example
const Drawing = ;const fs = ; let d = ; d;d; // draw text in the default layer named "0"d;d;d; //or fluentd ; fs;
Example preview in the LibreCAD:
Browser examples
Supported entities:
- arc
- circle
- line
- point
- polyline
- polyline 3D
- text
- 3DFace
- point 3D
Supported colors:
- red
- green
- cyan
- blue
- magenta
- white
Supported units:
- Unitless
- Inches
- Feet
- Miles
- Millimeters
- Centimeters
- Meters
- Kilometers
- Microinches
- Mils
- Yards
- Angstroms
- Nanometers
- Microns
- Decimeters
- Decameters
- Hectometers
- Gigameters
- Astronomical units
- Light years
- Parsecs
Line types
3 line type out of the box (CONTINUOUS, DASHED, DOTTED) with the ability to add a custom line type.
let d = ;d;