Parser
A dxf parser it parse dxf content to a readable javascript object.
Install / Use
/learn @dxfjs/ParserREADME
parser
A dxf parser it parse dxf content to a readable javascript object.
Installation
pnpm add @dxfjs/parser
Get started
const { Parser } = require('@dxfjs/parser')
const content = '...' // The dxf content
const parser = new Parser()
parser
.parse(content)
.then((obj) => {
console.log(obj)
// ...
})
.catch((error) => console.error(error))
Progress
-
[x] Parse
HEADERsection. -
[x] Parse
CLASSESsection. -
[x] Parse
TABLESsection. -
[x] Parse
BLOCKSsection. -
[x] Parse
<details><summary>Supported entities</summary>ENTITIESsection.- [x] 3DFACE
- [x] 3DSOLID
- [x] ARC
- [x] CIRCLE
- [x] ELLIPSE
- [ ] HATCH
- [x] INSERT
- [x] LINE
- [x] LWPOLYLINE
- [x] POINT
- [x] POLYLINE
- [x] SOLID
- [x] SPLINE
- [x] TEXT
-
[ ] Parse
OBJECTSsection.
