File tree Expand file tree Collapse file tree 5 files changed +126
-359
lines changed Expand file tree Collapse file tree 5 files changed +126
-359
lines changed Original file line number Diff line number Diff line change 1010 "@types/graham_scan" : " ^1.0.28" ,
1111 "@types/opentype.js" : " ^0.7.0" ,
1212 "@types/pdfkit" : " ^0.7.36" ,
13+ "dxf-parser-typings" : " ^1.3.0" ,
1314 "rimraf" : " ^2.6.2"
1415 },
1516 "scripts" : {
Original file line number Diff line number Diff line change 9696 "devDependencies" : {
9797 "@jscad/csg" : " ^0.3.7" ,
9898 "@jscad/stl-serializer" : " ^0.1.0" ,
99- "@types/graham_scan" : " ^1.0.28"
99+ "@types/graham_scan" : " ^1.0.28" ,
100+ "dxf-parser-typings" : " ^1.3.0"
100101 },
101102 "dependencies" : {
102103 "@danmarshall/jscad-typings" : " ^1.0.0" ,
Original file line number Diff line number Diff line change 1- /// <reference path="../types/dxf-parser.d.ts" />
1+ // Minimal DxfParser type declarations for DXF export functionality
2+ // Full types provided by dxf-parser-typings package when available
3+ declare namespace DxfParser {
4+ interface Vertex { x : number ; y : number ; z ?: number ; bulge ?: number ; }
5+ interface Entity { type ?: string ; layer ?: string ; [ key : string ] : any ; }
6+ interface EntityLINE extends Entity { type : 'LINE' ; vertices ?: Vertex [ ] ; }
7+ interface EntityCIRCLE extends Entity { type : 'CIRCLE' ; center ?: Vertex ; radius ?: number ; }
8+ interface EntityARC extends Entity { type : 'ARC' ; center ?: Vertex ; radius ?: number ; startAngle ?: number ; endAngle ?: number ; }
9+ interface EntityVERTEX extends Entity { x : number ; y : number ; z ?: number ; bulge ?: number ; }
10+ interface EntityPOLYLINE extends Entity { type : 'POLYLINE' ; vertices ?: EntityVERTEX [ ] ; }
11+ interface EntityTEXT extends Entity { type : 'TEXT' ; startPoint ?: Vertex ; text ?: string ; textHeight ?: number ; }
12+ interface Layer { name ?: string ; colorIndex ?: number ; color ?: number ; }
13+ interface LineType { name ?: string ; description ?: string ; pattern ?: number [ ] ; patternLength ?: number ; }
14+ interface Table { handle ?: string ; }
15+ interface TableLTYPE extends Table { lineTypes ?: { [ name : string ] : LineType } ; }
16+ interface TableLAYER extends Table { layers ?: { [ name : string ] : Layer } ; }
17+ type TableNames = 'layer' | 'lineType' | 'viewPort' ;
18+ interface DXFDocument { entities ?: Entity [ ] ; header ?: any ; tables ?: { [ name : string ] : Table } ; }
19+ }
220
321namespace MakerJs . exporter {
422
You can’t perform that action at this time.
0 commit comments