@linkiez/dxf-renew 7.2.0 → 7.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (234) hide show
  1. package/.yarn/install-state.gz +0 -0
  2. package/CHANGELOG.md +23 -0
  3. package/build.mjs +28 -0
  4. package/lib/Helper.d.ts +19 -0
  5. package/lib/Helper.d.ts.map +1 -0
  6. package/lib/applyTransforms.d.ts +12 -0
  7. package/lib/applyTransforms.d.ts.map +1 -0
  8. package/lib/cli.cjs +1 -2
  9. package/lib/cli.cjs.map +1 -1
  10. package/lib/cli.d.ts +3 -0
  11. package/lib/cli.d.ts.map +1 -0
  12. package/lib/config.d.ts +4 -0
  13. package/lib/config.d.ts.map +1 -0
  14. package/lib/constants.d.ts +3 -0
  15. package/lib/constants.d.ts.map +1 -0
  16. package/lib/denormalise.d.ts +3 -0
  17. package/lib/denormalise.d.ts.map +1 -0
  18. package/lib/dimensionToSVG.d.ts +18 -0
  19. package/lib/dimensionToSVG.d.ts.map +1 -0
  20. package/lib/entityToPolyline.d.ts +48 -0
  21. package/lib/entityToPolyline.d.ts.map +1 -0
  22. package/lib/getRGBForEntity.d.ts +5 -0
  23. package/lib/getRGBForEntity.d.ts.map +1 -0
  24. package/lib/groupEntitiesByLayer.d.ts +3 -0
  25. package/lib/groupEntitiesByLayer.d.ts.map +1 -0
  26. package/lib/handlers/blocks.d.ts +3 -0
  27. package/lib/handlers/blocks.d.ts.map +1 -0
  28. package/lib/handlers/entities.d.ts +4 -0
  29. package/lib/handlers/entities.d.ts.map +1 -0
  30. package/lib/handlers/entity/arc.d.ts +20 -0
  31. package/lib/handlers/entity/arc.d.ts.map +1 -0
  32. package/lib/handlers/entity/attdef.d.ts +11 -0
  33. package/lib/handlers/entity/attdef.d.ts.map +1 -0
  34. package/lib/handlers/entity/attrib.d.ts +9 -0
  35. package/lib/handlers/entity/attrib.d.ts.map +1 -0
  36. package/lib/handlers/entity/circle.d.ts +17 -0
  37. package/lib/handlers/entity/circle.d.ts.map +1 -0
  38. package/lib/handlers/entity/common.d.ts +3 -0
  39. package/lib/handlers/entity/common.d.ts.map +1 -0
  40. package/lib/handlers/entity/dgnUnderlay.d.ts +33 -0
  41. package/lib/handlers/entity/dgnUnderlay.d.ts.map +1 -0
  42. package/lib/handlers/entity/dimension.d.ts +35 -0
  43. package/lib/handlers/entity/dimension.d.ts.map +1 -0
  44. package/lib/handlers/entity/dwfUnderlay.d.ts +33 -0
  45. package/lib/handlers/entity/dwfUnderlay.d.ts.map +1 -0
  46. package/lib/handlers/entity/ellipse.d.ts +10 -0
  47. package/lib/handlers/entity/ellipse.d.ts.map +1 -0
  48. package/lib/handlers/entity/hatch.d.ts +9 -0
  49. package/lib/handlers/entity/hatch.d.ts.map +1 -0
  50. package/lib/handlers/entity/image.d.ts +26 -0
  51. package/lib/handlers/entity/image.d.ts.map +1 -0
  52. package/lib/handlers/entity/insert.d.ts +10 -0
  53. package/lib/handlers/entity/insert.d.ts.map +1 -0
  54. package/lib/handlers/entity/leader.d.ts +48 -0
  55. package/lib/handlers/entity/leader.d.ts.map +1 -0
  56. package/lib/handlers/entity/line.d.ts +16 -0
  57. package/lib/handlers/entity/line.d.ts.map +1 -0
  58. package/lib/handlers/entity/lwpolyline.d.ts +10 -0
  59. package/lib/handlers/entity/lwpolyline.d.ts.map +1 -0
  60. package/lib/handlers/entity/mleader.d.ts +15 -0
  61. package/lib/handlers/entity/mleader.d.ts.map +1 -0
  62. package/lib/handlers/entity/mline.d.ts +17 -0
  63. package/lib/handlers/entity/mline.d.ts.map +1 -0
  64. package/lib/handlers/entity/mtext.d.ts +62 -0
  65. package/lib/handlers/entity/mtext.d.ts.map +1 -0
  66. package/lib/handlers/entity/ole2Frame.d.ts +9 -0
  67. package/lib/handlers/entity/ole2Frame.d.ts.map +1 -0
  68. package/lib/handlers/entity/oleframe.d.ts +9 -0
  69. package/lib/handlers/entity/oleframe.d.ts.map +1 -0
  70. package/lib/handlers/entity/pdfUnderlay.d.ts +33 -0
  71. package/lib/handlers/entity/pdfUnderlay.d.ts.map +1 -0
  72. package/lib/handlers/entity/point.d.ts +17 -0
  73. package/lib/handlers/entity/point.d.ts.map +1 -0
  74. package/lib/handlers/entity/polyline.d.ts +21 -0
  75. package/lib/handlers/entity/polyline.d.ts.map +1 -0
  76. package/lib/handlers/entity/ray.d.ts +15 -0
  77. package/lib/handlers/entity/ray.d.ts.map +1 -0
  78. package/lib/handlers/entity/region.d.ts +14 -0
  79. package/lib/handlers/entity/region.d.ts.map +1 -0
  80. package/lib/handlers/entity/shape.d.ts +22 -0
  81. package/lib/handlers/entity/shape.d.ts.map +1 -0
  82. package/lib/handlers/entity/solid.d.ts +15 -0
  83. package/lib/handlers/entity/solid.d.ts.map +1 -0
  84. package/lib/handlers/entity/spline.d.ts +30 -0
  85. package/lib/handlers/entity/spline.d.ts.map +1 -0
  86. package/lib/handlers/entity/table.d.ts +16 -0
  87. package/lib/handlers/entity/table.d.ts.map +1 -0
  88. package/lib/handlers/entity/text.d.ts +31 -0
  89. package/lib/handlers/entity/text.d.ts.map +1 -0
  90. package/lib/handlers/entity/threeDFace.d.ts +14 -0
  91. package/lib/handlers/entity/threeDFace.d.ts.map +1 -0
  92. package/lib/handlers/entity/tolerance.d.ts +25 -0
  93. package/lib/handlers/entity/tolerance.d.ts.map +1 -0
  94. package/lib/handlers/entity/trace.d.ts +15 -0
  95. package/lib/handlers/entity/trace.d.ts.map +1 -0
  96. package/lib/handlers/entity/vertex.d.ts +10 -0
  97. package/lib/handlers/entity/vertex.d.ts.map +1 -0
  98. package/lib/handlers/entity/viewport.d.ts +9 -0
  99. package/lib/handlers/entity/viewport.d.ts.map +1 -0
  100. package/lib/handlers/entity/wipeout.d.ts +28 -0
  101. package/lib/handlers/entity/wipeout.d.ts.map +1 -0
  102. package/lib/handlers/entity/xline.d.ts +15 -0
  103. package/lib/handlers/entity/xline.d.ts.map +1 -0
  104. package/lib/handlers/header.d.ts +3 -0
  105. package/lib/handlers/header.d.ts.map +1 -0
  106. package/lib/handlers/objects.d.ts +3 -0
  107. package/lib/handlers/objects.d.ts.map +1 -0
  108. package/lib/handlers/tables.d.ts +13 -0
  109. package/lib/handlers/tables.d.ts.map +1 -0
  110. package/lib/index.d.ts +10 -0
  111. package/lib/index.d.ts.map +1 -0
  112. package/lib/parseString.d.ts +3 -0
  113. package/lib/parseString.d.ts.map +1 -0
  114. package/lib/toJson.d.ts +3 -0
  115. package/lib/toJson.d.ts.map +1 -0
  116. package/lib/toPolylines.d.ts +4 -0
  117. package/lib/toPolylines.d.ts.map +1 -0
  118. package/lib/toSVG.d.ts +7 -0
  119. package/lib/toSVG.d.ts.map +1 -0
  120. package/lib/types/arc-entity.d.ts +8 -0
  121. package/lib/types/arc-entity.d.ts.map +1 -0
  122. package/lib/types/base-entity.d.ts +22 -0
  123. package/lib/types/base-entity.d.ts.map +1 -0
  124. package/lib/types/circle-entity.d.ts +6 -0
  125. package/lib/types/circle-entity.d.ts.map +1 -0
  126. package/lib/types/common.d.ts +30 -0
  127. package/lib/types/common.d.ts.map +1 -0
  128. package/lib/types/dimension-entity.d.ts +31 -0
  129. package/lib/types/dimension-entity.d.ts.map +1 -0
  130. package/lib/types/dxf.d.ts +55 -0
  131. package/lib/types/dxf.d.ts.map +1 -0
  132. package/lib/types/ellipse-entity.d.ts +11 -0
  133. package/lib/types/ellipse-entity.d.ts.map +1 -0
  134. package/lib/types/entity.d.ts +30 -0
  135. package/lib/types/entity.d.ts.map +1 -0
  136. package/lib/types/handler-internal.d.ts +44 -0
  137. package/lib/types/handler-internal.d.ts.map +1 -0
  138. package/lib/types/handler.d.ts +8 -0
  139. package/lib/types/handler.d.ts.map +1 -0
  140. package/lib/types/hatch-entity.d.ts +116 -0
  141. package/lib/types/hatch-entity.d.ts.map +1 -0
  142. package/lib/types/helper.d.ts +11 -0
  143. package/lib/types/helper.d.ts.map +1 -0
  144. package/lib/types/image-entity.d.ts +25 -0
  145. package/lib/types/image-entity.d.ts.map +1 -0
  146. package/lib/types/index.d.ts +43 -0
  147. package/lib/types/index.d.ts.map +1 -0
  148. package/lib/types/insert-entity.d.ts +16 -0
  149. package/lib/types/insert-entity.d.ts.map +1 -0
  150. package/lib/types/layer-groups.d.ts +6 -0
  151. package/lib/types/layer-groups.d.ts.map +1 -0
  152. package/lib/types/leader-entity.d.ts +28 -0
  153. package/lib/types/leader-entity.d.ts.map +1 -0
  154. package/lib/types/line-entity.d.ts +8 -0
  155. package/lib/types/line-entity.d.ts.map +1 -0
  156. package/lib/types/mleader-entity.d.ts +7 -0
  157. package/lib/types/mleader-entity.d.ts.map +1 -0
  158. package/lib/types/mline-entity.d.ts +10 -0
  159. package/lib/types/mline-entity.d.ts.map +1 -0
  160. package/lib/types/mtext-entity.d.ts +33 -0
  161. package/lib/types/mtext-entity.d.ts.map +1 -0
  162. package/lib/types/ole2frame-entity.d.ts +33 -0
  163. package/lib/types/ole2frame-entity.d.ts.map +1 -0
  164. package/lib/types/oleframe-entity.d.ts +33 -0
  165. package/lib/types/oleframe-entity.d.ts.map +1 -0
  166. package/lib/types/options.d.ts +57 -0
  167. package/lib/types/options.d.ts.map +1 -0
  168. package/lib/types/point-entity.d.ts +5 -0
  169. package/lib/types/point-entity.d.ts.map +1 -0
  170. package/lib/types/polyline-entity.d.ts +17 -0
  171. package/lib/types/polyline-entity.d.ts.map +1 -0
  172. package/lib/types/polylines.d.ts +18 -0
  173. package/lib/types/polylines.d.ts.map +1 -0
  174. package/lib/types/ray-entity.d.ts +10 -0
  175. package/lib/types/ray-entity.d.ts.map +1 -0
  176. package/lib/types/region-entity.d.ts +10 -0
  177. package/lib/types/region-entity.d.ts.map +1 -0
  178. package/lib/types/shape-entity.d.ts +17 -0
  179. package/lib/types/shape-entity.d.ts.map +1 -0
  180. package/lib/types/solid-entity.d.ts +7 -0
  181. package/lib/types/solid-entity.d.ts.map +1 -0
  182. package/lib/types/spline-entity.d.ts +10 -0
  183. package/lib/types/spline-entity.d.ts.map +1 -0
  184. package/lib/types/svg.d.ts +27 -0
  185. package/lib/types/svg.d.ts.map +1 -0
  186. package/lib/types/table-entity.d.ts +12 -0
  187. package/lib/types/table-entity.d.ts.map +1 -0
  188. package/lib/types/tables.d.ts +549 -0
  189. package/lib/types/tables.d.ts.map +1 -0
  190. package/lib/types/text-entity.d.ts +21 -0
  191. package/lib/types/text-entity.d.ts.map +1 -0
  192. package/lib/types/tolerance-entity.d.ts +14 -0
  193. package/lib/types/tolerance-entity.d.ts.map +1 -0
  194. package/lib/types/trace-entity.d.ts +10 -0
  195. package/lib/types/trace-entity.d.ts.map +1 -0
  196. package/lib/types/underlay-entity.d.ts +26 -0
  197. package/lib/types/underlay-entity.d.ts.map +1 -0
  198. package/lib/types/util-types.d.ts +22 -0
  199. package/lib/types/util-types.d.ts.map +1 -0
  200. package/lib/types/viewport-entity.d.ts +79 -0
  201. package/lib/types/viewport-entity.d.ts.map +1 -0
  202. package/lib/types/wipeout-entity.d.ts +18 -0
  203. package/lib/types/wipeout-entity.d.ts.map +1 -0
  204. package/lib/types/xline-entity.d.ts +10 -0
  205. package/lib/types/xline-entity.d.ts.map +1 -0
  206. package/lib/types.d.ts +2 -0
  207. package/lib/types.d.ts.map +1 -0
  208. package/lib/util/bSpline.d.ts +8 -0
  209. package/lib/util/bSpline.d.ts.map +1 -0
  210. package/lib/util/colors.d.ts +5 -0
  211. package/lib/util/colors.d.ts.map +1 -0
  212. package/lib/util/createArcForLWPolyline.d.ts +9 -0
  213. package/lib/util/createArcForLWPolyline.d.ts.map +1 -0
  214. package/lib/util/dxfColorToRGB.d.ts +22 -0
  215. package/lib/util/dxfColorToRGB.d.ts.map +1 -0
  216. package/lib/util/escapeXmlText.d.ts +2 -0
  217. package/lib/util/escapeXmlText.d.ts.map +1 -0
  218. package/lib/util/insertKnot.d.ts +9 -0
  219. package/lib/util/insertKnot.d.ts.map +1 -0
  220. package/lib/util/logger.d.ts +10 -0
  221. package/lib/util/logger.d.ts.map +1 -0
  222. package/lib/util/rgbToColorAttribute.d.ts +7 -0
  223. package/lib/util/rgbToColorAttribute.d.ts.map +1 -0
  224. package/lib/util/rotate.d.ts +9 -0
  225. package/lib/util/rotate.d.ts.map +1 -0
  226. package/lib/util/round10.d.ts +2 -0
  227. package/lib/util/round10.d.ts.map +1 -0
  228. package/lib/util/toPiecewiseBezier.d.ts +18 -0
  229. package/lib/util/toPiecewiseBezier.d.ts.map +1 -0
  230. package/lib/util/transformBoundingBoxAndElement.d.ts +9 -0
  231. package/lib/util/transformBoundingBoxAndElement.d.ts.map +1 -0
  232. package/package.json +3 -3
  233. package/types/index.d.ts +3 -0
  234. package/types/shims/vecks.d.ts +15 -0
@@ -0,0 +1,549 @@
1
+ import type { Point2D, Point3D } from './common';
2
+ import type { DXFTuple } from './dxf';
3
+ /**
4
+ * Partial point for parsing (all coordinates optional)
5
+ */
6
+ export type PartialPoint2D = Partial<Point2D>;
7
+ /**
8
+ * Partial 3D point for parsing (all coordinates optional)
9
+ */
10
+ export type PartialPoint3D = Partial<Point3D>;
11
+ /**
12
+ * DXF Header section result
13
+ */
14
+ export interface ParsedHeader {
15
+ /** Minimum drawing extents */
16
+ extMin?: PartialPoint3D;
17
+ /** Maximum drawing extents */
18
+ extMax?: PartialPoint3D;
19
+ /** Drawing units for measurement (0=English, 1=Metric) */
20
+ measurement?: string | number;
21
+ /** Default drawing units for AutoCAD DesignCenter blocks */
22
+ insUnits?: string | number;
23
+ /** Dimension arrow size */
24
+ dimArrowSize?: string | number | Record<string, unknown>;
25
+ }
26
+ /**
27
+ * Block table entry
28
+ * Internal representation during DXF parsing
29
+ */
30
+ export interface BlockInternal {
31
+ /** Block name */
32
+ name?: string | number;
33
+ /** Base point X coordinate */
34
+ x?: string | number;
35
+ /** Base point Y coordinate */
36
+ y?: string | number;
37
+ /** Base point Z coordinate */
38
+ z?: string | number;
39
+ /** External reference path */
40
+ xref?: string | number;
41
+ /** Paper space flag */
42
+ paperSpace?: string | number;
43
+ /** Layout name reference */
44
+ layout?: string | number;
45
+ /** Entities within this block */
46
+ entities?: any[];
47
+ }
48
+ /**
49
+ * Line type element definition
50
+ * Represents a single element in a complex line type pattern
51
+ */
52
+ export interface LTypeElement {
53
+ /** Length of the element */
54
+ length?: string | number;
55
+ /** Scale factors for the element */
56
+ scales?: Array<string | number>;
57
+ /** Offset positions for the element */
58
+ offset?: Array<{
59
+ x: string | number;
60
+ y: string | number;
61
+ }>;
62
+ /** Shape definition code */
63
+ shape?: string | number;
64
+ /** Shape number reference */
65
+ shapeNumber?: string | number;
66
+ /** Style handle reference */
67
+ styleHandle?: string | number;
68
+ /** Rotation angle */
69
+ rotation?: string | number;
70
+ /** Text content for text elements */
71
+ text?: string | number;
72
+ }
73
+ /**
74
+ * Line Type (LTYPE) table entry
75
+ * Internal representation during DXF parsing
76
+ */
77
+ export interface LTypeInternal {
78
+ type: string;
79
+ /** Pattern elements that define the line type */
80
+ pattern: LTypeElement[];
81
+ /** Line type name */
82
+ name?: string | number;
83
+ /** Line type description */
84
+ description?: string | number;
85
+ /** Standard flag values (bit-coded) */
86
+ flag?: string | number;
87
+ /** Alignment code (ASCII code for 'A' = 65) */
88
+ alignment?: string | number;
89
+ /** Number of elements in the pattern */
90
+ elementCount?: number;
91
+ /** Total pattern length */
92
+ patternLength?: string | number;
93
+ }
94
+ /**
95
+ * Layer table entry
96
+ * Internal representation during DXF parsing
97
+ */
98
+ export interface LayerInternal {
99
+ type: string;
100
+ /** Layer name */
101
+ name?: string | number;
102
+ /** Line type name for this layer */
103
+ lineTypeName?: string | number;
104
+ /** ACI color number */
105
+ colorNumber?: string | number;
106
+ /** Standard flags (bit-coded) */
107
+ flags?: string | number;
108
+ /** Plot flag */
109
+ plot?: boolean;
110
+ /** Line weight enumeration */
111
+ lineWeightEnum?: string | number;
112
+ }
113
+ /**
114
+ * Application ID (APPID) table entry
115
+ * Minimal internal representation during DXF parsing
116
+ */
117
+ export interface AppIdInternal {
118
+ type: string;
119
+ /** Application name */
120
+ name?: string | number;
121
+ /** Standard flags (bit-coded) */
122
+ flags?: string | number;
123
+ }
124
+ /**
125
+ * Block Record (BLOCK_RECORD) table entry
126
+ * Minimal internal representation during DXF parsing
127
+ */
128
+ export interface BlockRecordInternal {
129
+ type: string;
130
+ /** Block record name */
131
+ name?: string | number;
132
+ /** Standard flags (bit-coded) */
133
+ flags?: string | number;
134
+ }
135
+ /**
136
+ * User Coordinate System (UCS) table entry
137
+ * Minimal internal representation during DXF parsing
138
+ */
139
+ export interface UcsInternal {
140
+ type: string;
141
+ /** UCS name */
142
+ name?: string | number;
143
+ /** Standard flags (bit-coded) */
144
+ flags?: string | number;
145
+ }
146
+ /**
147
+ * View (VIEW) table entry
148
+ * Minimal internal representation during DXF parsing
149
+ */
150
+ export interface ViewInternal {
151
+ type: string;
152
+ /** View name */
153
+ name?: string | number;
154
+ /** Standard flags (bit-coded) */
155
+ flags?: string | number;
156
+ }
157
+ /**
158
+ * Text Style (STYLE) table entry
159
+ * Internal representation during DXF parsing
160
+ */
161
+ export interface StyleInternal {
162
+ type: string;
163
+ /** Style name */
164
+ name?: string | number;
165
+ /** Line type name */
166
+ lineTypeName?: string | number;
167
+ /** Fixed text height (0 if variable) */
168
+ fixedTextHeight?: string | number;
169
+ /** Width factor */
170
+ widthFactor?: string | number;
171
+ /** Oblique angle */
172
+ obliqueAngle?: string | number;
173
+ /** Standard flags (bit-coded) */
174
+ flags?: string | number;
175
+ /** Last height used */
176
+ lastHeightUsed?: string | number;
177
+ /** Primary font file name */
178
+ primaryFontFileName?: string | number;
179
+ /** Big font file name */
180
+ bigFontFileName?: string | number;
181
+ }
182
+ /**
183
+ * Viewport (VPORT) table entry
184
+ * Internal representation during DXF parsing
185
+ */
186
+ export interface VPortInternal {
187
+ type: string;
188
+ /** Viewport name */
189
+ name?: string | number;
190
+ /** Handle reference */
191
+ handle?: string | number;
192
+ /** Standard flags (bit-coded) */
193
+ flags?: string | number;
194
+ /** Lower-left corner coordinates */
195
+ lowerLeft: {
196
+ x?: number;
197
+ y?: number;
198
+ };
199
+ /** Upper-right corner coordinates */
200
+ upperRight: {
201
+ x?: number;
202
+ y?: number;
203
+ };
204
+ /** Center point coordinates */
205
+ center: {
206
+ x?: number;
207
+ y?: number;
208
+ };
209
+ /** Snap settings */
210
+ snap?: Record<string, unknown>;
211
+ /** Snap spacing */
212
+ snapSpacing: {
213
+ x?: number;
214
+ y?: number;
215
+ };
216
+ /** Grid spacing */
217
+ gridSpacing: {
218
+ x?: number;
219
+ y?: number;
220
+ };
221
+ /** View direction from target */
222
+ direction: {
223
+ x?: number;
224
+ y?: number;
225
+ z?: number;
226
+ };
227
+ /** View target point */
228
+ target: {
229
+ x?: number;
230
+ y?: number;
231
+ z?: number;
232
+ };
233
+ /** View height */
234
+ height?: number;
235
+ /** Snap rotation angle */
236
+ snapAngle?: number;
237
+ /** View twist angle */
238
+ angle?: number;
239
+ /** UCS origin X coordinate */
240
+ x?: number;
241
+ /** UCS origin Y coordinate */
242
+ y?: number;
243
+ /** UCS origin Z coordinate */
244
+ z?: number;
245
+ /** UCS X-axis X component */
246
+ xAxisX?: number;
247
+ /** UCS X-axis Y component */
248
+ xAxisY?: number;
249
+ /** UCS X-axis Z component */
250
+ xAxisZ?: number;
251
+ /** View elevation */
252
+ elevation?: number;
253
+ }
254
+ /**
255
+ * Layout object entry
256
+ * Internal representation during DXF parsing
257
+ */
258
+ export interface LayoutInternal {
259
+ /** Layout name */
260
+ name?: string | number;
261
+ /** Handle reference */
262
+ handle?: string | number;
263
+ /** Minimum limits X coordinate */
264
+ minLimitX?: number;
265
+ /** Minimum limits Y coordinate */
266
+ minLimitY?: number;
267
+ /** Maximum limits X coordinate */
268
+ maxLimitX?: number;
269
+ /** Maximum limits Y coordinate */
270
+ maxLimitY?: number;
271
+ /** Base point X coordinate */
272
+ x?: number;
273
+ /** Base point Y coordinate */
274
+ y?: number;
275
+ /** Base point Z coordinate */
276
+ z?: number;
277
+ /** Minimum extents X coordinate */
278
+ minX?: number;
279
+ /** Minimum extents Y coordinate */
280
+ minY?: number;
281
+ /** Minimum extents Z coordinate */
282
+ minZ?: number;
283
+ /** Maximum extents X coordinate */
284
+ maxX?: number;
285
+ /** Maximum extents Y coordinate */
286
+ maxY?: number;
287
+ /** Maximum extents Z coordinate */
288
+ maxZ?: number;
289
+ /** Layout flag (PSLTSCALE or LIMCHECK) */
290
+ flag?: 'PSLTSCALE' | 'LIMCHECK';
291
+ /** Tab order */
292
+ tabOrder?: string | number;
293
+ /** Elevation */
294
+ elevation?: number;
295
+ /** UCS origin X coordinate */
296
+ ucsX?: number;
297
+ /** UCS origin Y coordinate */
298
+ ucsY?: number;
299
+ /** UCS origin Z coordinate */
300
+ ucsZ?: number;
301
+ /** UCS X-axis X component */
302
+ ucsXaxisX?: number;
303
+ /** UCS X-axis Y component */
304
+ ucsXaxisY?: number;
305
+ /** UCS X-axis Z component */
306
+ ucsXaxisZ?: number;
307
+ /** UCS Y-axis X component */
308
+ ucsYaxisX?: number;
309
+ /** UCS Y-axis Y component */
310
+ ucsYaxisY?: number;
311
+ /** UCS Y-axis Z component */
312
+ ucsYaxisZ?: number;
313
+ /** UCS orthographic type */
314
+ ucsType?: 'NOT ORTHOGRAPHIC' | 'TOP' | 'BOTTOM' | 'FRONT' | 'BACK' | 'LEFT' | 'RIGHT';
315
+ /** Associated table record handle */
316
+ tableRecord?: string | number;
317
+ /** Last active viewport handle */
318
+ lastActiveViewport?: string | number;
319
+ /** Shade plot mode */
320
+ shadePlot?: string | number;
321
+ }
322
+ /**
323
+ * Dimension Style (DIMSTYLE) table entry
324
+ * Internal representation during DXF parsing
325
+ */
326
+ export interface DimStyleInternal {
327
+ type: string;
328
+ /** Dimension style name */
329
+ name?: string | number;
330
+ /** Standard flags (bit-coded) */
331
+ flags?: string | number;
332
+ /** DIMPOST - General dimensioning suffix */
333
+ dimPost?: string | number;
334
+ /** DIMAPOST - Alternate dimensioning suffix */
335
+ dimAPost?: string | number;
336
+ /** DIMSCALE - Overall dimensioning scale factor */
337
+ dimScale?: number;
338
+ /** DIMASZ - Dimensioning arrow size */
339
+ dimAsz?: number;
340
+ /** DIMEXO - Extension line offset */
341
+ dimExo?: number;
342
+ /** DIMDLI - Dimension line increment */
343
+ dimDli?: number;
344
+ /** DIMEXE - Extension line extension */
345
+ dimExe?: number;
346
+ /** DIMRND - Rounding value for dimension distances */
347
+ dimRnd?: number;
348
+ /** DIMDLE - Dimension line extension */
349
+ dimDle?: number;
350
+ /** DIMTP - Plus tolerance */
351
+ dimTp?: number;
352
+ /** DIMTM - Minus tolerance */
353
+ dimTm?: number;
354
+ /** DIMTXT - Dimensioning text height */
355
+ dimTxt?: number;
356
+ /** DIMCEN - Size of center mark/lines */
357
+ dimCen?: number;
358
+ /** DIMTSZ - Dimensioning tick size */
359
+ dimTsz?: number;
360
+ /** DIMALTF - Alternate unit scale factor */
361
+ dimAltf?: number;
362
+ /** DIMLFAC - Linear measurements scale factor */
363
+ dimLfac?: number;
364
+ /** DIMTVP - Text vertical position */
365
+ dimTvp?: number;
366
+ /** DIMTFAC - Dimension tolerance display scale factor */
367
+ dimTfac?: number;
368
+ /** DIMGAP - Dimension line gap */
369
+ dimGap?: number;
370
+ /** DIMALTRND - Determines rounding of alternate units */
371
+ dimAltRnd?: number;
372
+ /** DIMTOL - Dimension tolerances generated if nonzero */
373
+ dimTol?: number;
374
+ /** DIMLIM - Dimension limits generated if nonzero */
375
+ dimLim?: number;
376
+ /** DIMTIH - Text inside horizontal if nonzero */
377
+ dimTih?: number;
378
+ /** DIMTOH - Text outside horizontal if nonzero */
379
+ dimToh?: number;
380
+ /** DIMSE1 - First extension line suppressed if nonzero */
381
+ dimSe1?: number;
382
+ /** DIMSE2 - Second extension line suppressed if nonzero */
383
+ dimSe2?: number;
384
+ /** DIMTAD - Text above dimension line if nonzero */
385
+ dimTad?: number;
386
+ /** DIMZIN - Controls suppression of zeros for primary unit values */
387
+ dimZin?: number;
388
+ /** DIMAZIN - Controls suppression of zeros for angular dimensions */
389
+ dimAzin?: number;
390
+ /** DIMALT - Alternate unit dimensioning performed if nonzero */
391
+ dimAlt?: number;
392
+ /** DIMALTD - Alternate unit decimal places */
393
+ dimAltd?: number;
394
+ /** DIMTOFL - Force text inside extensions if nonzero */
395
+ dimTofl?: number;
396
+ /** DIMSAH - Use separate arrow blocks if nonzero */
397
+ dimSah?: number;
398
+ /** DIMTIX - Force text inside extensions if nonzero */
399
+ dimTix?: number;
400
+ /** DIMSOXD - Suppress outside-extensions dimension lines if nonzero */
401
+ dimSoxd?: number;
402
+ /** DIMCLRD - Dimension line color */
403
+ dimClrd?: number;
404
+ /** DIMCLRE - Dimension extension line color */
405
+ dimClre?: number;
406
+ /** DIMCLRT - Dimension text color */
407
+ dimClrt?: number;
408
+ /** DIMADEC - Number of precision places for angular dimensions */
409
+ dimAdec?: number;
410
+ /** DIMUNIT - Units format (obsolete, now use DIMLUNIT AND DIMFRAC) */
411
+ dimUnit?: number;
412
+ /** DIMDEC - Number of decimal places for tolerance values */
413
+ dimDec?: number;
414
+ /** DIMTDEC - Number of decimal places for tolerance values */
415
+ dimTdec?: number;
416
+ /** DIMALTU - Units format for alternate units */
417
+ dimAltu?: number;
418
+ /** DIMALTTD - Number of decimal places for alternate tolerance values */
419
+ dimAlttd?: number;
420
+ /** DIMAUNIT - Angle format for angular dimensions */
421
+ dimAunit?: number;
422
+ /** DIMFRAC - Fraction format */
423
+ dimFrac?: number;
424
+ /** DIMLUNIT - Linear unit format */
425
+ dimLunit?: number;
426
+ /** DIMDSEP - Decimal separator character */
427
+ dimDsep?: number;
428
+ /** DIMTMOVE - Dimension text movement rules */
429
+ dimTmove?: number;
430
+ /** DIMJUST - Horizontal dimension text position */
431
+ dimJust?: number;
432
+ /** DIMSD1 - Suppression of first extension line */
433
+ dimSd1?: number;
434
+ /** DIMSD2 - Suppression of second extension line */
435
+ dimSd2?: number;
436
+ /** DIMTOLJ - Vertical justification for tolerance values */
437
+ dimTolj?: number;
438
+ /** DIMTZIN - Controls suppression of zeros for tolerance values */
439
+ dimTzin?: number;
440
+ /** DIMALTZ - Controls suppression of zeros for alternate unit values */
441
+ dimAltz?: number;
442
+ /** DIMALTTZ - Controls suppression of zeros for alternate tolerance values */
443
+ dimAlttz?: number;
444
+ /** DIMFIT - Fit options (obsolete, now use DIMATFIT and DIMTMOVE) */
445
+ dimFit?: number;
446
+ /** DIMUPT - Cursor functionality for user-positioned text */
447
+ dimUpt?: number;
448
+ /** DIMATFIT - Controls dimension text and arrow placement */
449
+ dimAtfit?: number;
450
+ /** DIMTXSTY - Dimension text style (handle reference) */
451
+ dimTxsty?: string | number;
452
+ /** DIMLDRBLK - Leader arrow block (handle reference) */
453
+ dimLdrblk?: string | number;
454
+ /** DIMBLK - Arrow block (handle reference) */
455
+ dimBlk?: string | number;
456
+ /** DIMBLK1 - First arrow block (handle reference) */
457
+ dimBlk1?: string | number;
458
+ /** DIMBLK2 - Second arrow block (handle reference) */
459
+ dimBlk2?: string | number;
460
+ /** DIMLWD - Dimension line lineweight */
461
+ dimLwd?: number;
462
+ /** DIMLWE - Extension line lineweight */
463
+ dimLwe?: number;
464
+ }
465
+ /**
466
+ * DXF Objects section result
467
+ */
468
+ export interface DictionaryObject {
469
+ type: 'DICTIONARY';
470
+ handle?: string | number;
471
+ ownerHandle?: string | number;
472
+ entries: Record<string, string>;
473
+ }
474
+ export interface XRecordObject {
475
+ type: 'XRECORD';
476
+ handle?: string | number;
477
+ ownerHandle?: string | number;
478
+ /** Raw tuples for downstream consumers (excluding the initial 0/XRECORD tuple). */
479
+ tuples: DXFTuple[];
480
+ }
481
+ export interface ImageDefObject {
482
+ type: 'IMAGEDEF';
483
+ handle?: string | number;
484
+ /** Soft-pointer ID/handle to the ACAD_IMAGE_dict dictionary (when present). */
485
+ ownerHandle?: string | number;
486
+ /** File name of the referenced image. */
487
+ fileName?: string;
488
+ /** Image size in pixels (when available). */
489
+ pixelSizeX?: number;
490
+ pixelSizeY?: number;
491
+ /** Raw tuples for downstream consumers (excluding the initial 0/IMAGEDEF tuple). */
492
+ tuples: DXFTuple[];
493
+ }
494
+ export interface ImageDefReactorObject {
495
+ type: 'IMAGEDEF_REACTOR';
496
+ handle?: string | number;
497
+ /** Object ID/handle for the associated IMAGE entity (when present). */
498
+ imageHandle?: string | number;
499
+ /** Raw tuples for downstream consumers (excluding the initial 0/IMAGEDEF_REACTOR tuple). */
500
+ tuples: DXFTuple[];
501
+ }
502
+ export type UnderlayDefinitionObjectType = 'UNDERLAYDEFINITION' | 'PDFDEFINITION' | 'DWFDEFINITION' | 'DGNDEFINITION';
503
+ export interface UnderlayDefinitionObject {
504
+ type: UnderlayDefinitionObjectType;
505
+ handle?: string | number;
506
+ /** Soft-pointer ID/handle to the owning dictionary (when present). */
507
+ ownerHandle?: string | number;
508
+ /** File name or path of the referenced underlay. */
509
+ fileName?: string;
510
+ /** Underlay name within the file (e.g., sheet name). */
511
+ underlayName?: string;
512
+ /** Raw tuples for downstream consumers (excluding the initial 0/<TYPE> tuple). */
513
+ tuples: DXFTuple[];
514
+ }
515
+ export interface DimAssocObject {
516
+ type: 'DIMASSOC';
517
+ handle?: string | number;
518
+ /** Soft-pointer ID/handle to the owning dictionary (when present). */
519
+ ownerHandle?: string | number;
520
+ /** Raw tuples for downstream consumers (excluding the initial 0/DIMASSOC tuple). */
521
+ tuples: DXFTuple[];
522
+ }
523
+ export interface FieldObject {
524
+ type: 'FIELD';
525
+ handle?: string | number;
526
+ /** Soft-pointer ID/handle to the owning dictionary (when present). */
527
+ ownerHandle?: string | number;
528
+ /** Raw tuples for downstream consumers (excluding the initial 0/FIELD tuple). */
529
+ tuples: DXFTuple[];
530
+ }
531
+ export interface ParsedObjects {
532
+ /** Layout objects */
533
+ layouts: LayoutInternal[];
534
+ /** DICTIONARY objects keyed by handle */
535
+ dictionaries?: Record<string, DictionaryObject>;
536
+ /** XRECORD objects keyed by handle */
537
+ xRecords?: Record<string, XRecordObject>;
538
+ /** IMAGEDEF objects keyed by handle */
539
+ imageDefs?: Record<string, ImageDefObject>;
540
+ /** IMAGEDEF_REACTOR objects keyed by handle */
541
+ imageDefReactors?: Record<string, ImageDefReactorObject>;
542
+ /** UNDERLAYDEFINITION objects keyed by handle */
543
+ underlayDefinitions?: Record<string, UnderlayDefinitionObject>;
544
+ /** DIMASSOC objects keyed by handle */
545
+ dimAssocs?: Record<string, DimAssocObject>;
546
+ /** FIELD objects keyed by handle */
547
+ fields?: Record<string, FieldObject>;
548
+ }
549
+ //# sourceMappingURL=tables.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tables.d.ts","sourceRoot":"","sources":["../../src/types/tables.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA;AAChD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAErC;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC,CAAA;AAE7C;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC,CAAA;AAE7C;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,8BAA8B;IAC9B,MAAM,CAAC,EAAE,cAAc,CAAA;IACvB,8BAA8B;IAC9B,MAAM,CAAC,EAAE,cAAc,CAAA;IACvB,0DAA0D;IAC1D,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAC7B,4DAA4D;IAC5D,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAC1B,2BAA2B;IAC3B,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACzD;AAED;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC5B,iBAAiB;IACjB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACtB,8BAA8B;IAC9B,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACnB,8BAA8B;IAC9B,CAAC,CAAC,EAAE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C,EAAE,MAAM,GAAG,MAAM,CAAA;IAE7B,iFAAiF;IACjF,MAAM,EAAE,QAAQ,EAAE,CAAA;CACnB;AAED,MAAM,WAAW,aAAa;IAC5B,qBAAqB;IACrB,OAAO,EAAE,cAAc,EAAE,CAAA;IAEzB,yCAAyC;IACzC,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAA;IAE/C,sCAAsC;IACtC,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAA;IAExC,uCAAuC;IACvC,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAA;IAE1C,+CAA+C;IAC/C,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAAA;IAExD,iDAAiD;IACjD,mBAAmB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,wBAAwB,CAAC,CAAA;IAE9D,uCAAuC;IACvC,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAA;IAE1C,oCAAoC;IACpC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAA;CACrC"}
@@ -0,0 +1,21 @@
1
+ import type { BaseEntity } from './base-entity';
2
+ export interface TextEntity extends BaseEntity {
3
+ type: 'TEXT';
4
+ string: string;
5
+ x?: number;
6
+ y?: number;
7
+ z?: number;
8
+ x2?: number;
9
+ y2?: number;
10
+ z2?: number;
11
+ thickness?: number;
12
+ textHeight?: number;
13
+ relScaleX?: number;
14
+ rotation?: number;
15
+ obliqueAngle?: number;
16
+ styleName?: string;
17
+ mirror?: number;
18
+ hAlign?: number;
19
+ vAlign?: number;
20
+ }
21
+ //# sourceMappingURL=text-entity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text-entity.d.ts","sourceRoot":"","sources":["../../src/types/text-entity.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAE/C,MAAM,WAAW,UAAW,SAAQ,UAAU;IAC5C,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;IACd,CAAC,CAAC,EAAE,MAAM,CAAA;IACV,CAAC,CAAC,EAAE,MAAM,CAAA;IACV,CAAC,CAAC,EAAE,MAAM,CAAA;IACV,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB"}
@@ -0,0 +1,14 @@
1
+ import type { BaseEntity } from './base-entity';
2
+ import type { Point3D } from './common';
3
+ export interface ToleranceEntity extends BaseEntity {
4
+ type: 'TOLERANCE';
5
+ /** Insertion point (WCS). */
6
+ insertionPoint: Point3D;
7
+ /** Raw tolerance string (may include control codes like %%v). */
8
+ text?: string;
9
+ /** Dimension style name (group code 3). */
10
+ dimensionStyleName?: string;
11
+ /** X-axis direction vector (group codes 11/21/31). */
12
+ xAxisDirection?: Point3D;
13
+ }
14
+ //# sourceMappingURL=tolerance-entity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tolerance-entity.d.ts","sourceRoot":"","sources":["../../src/types/tolerance-entity.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC/C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA;AAEvC,MAAM,WAAW,eAAgB,SAAQ,UAAU;IACjD,IAAI,EAAE,WAAW,CAAA;IAEjB,6BAA6B;IAC7B,cAAc,EAAE,OAAO,CAAA;IAEvB,iEAAiE;IACjE,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb,2CAA2C;IAC3C,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAE3B,sDAAsD;IACtD,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB"}
@@ -0,0 +1,10 @@
1
+ import type { BaseEntity } from './base-entity';
2
+ import type { Point3D } from './common';
3
+ export interface TraceEntity extends BaseEntity {
4
+ type: 'TRACE';
5
+ /** Four corner points (10/20/30, 11/21/31, 12/22/32, 13/23/33). */
6
+ corners: Point3D[];
7
+ /** Optional thickness (39). */
8
+ thickness?: number;
9
+ }
10
+ //# sourceMappingURL=trace-entity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"trace-entity.d.ts","sourceRoot":"","sources":["../../src/types/trace-entity.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC/C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA;AAEvC,MAAM,WAAW,WAAY,SAAQ,UAAU;IAC7C,IAAI,EAAE,OAAO,CAAA;IAEb,mEAAmE;IACnE,OAAO,EAAE,OAAO,EAAE,CAAA;IAElB,+BAA+B;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB"}
@@ -0,0 +1,26 @@
1
+ import type { BaseEntity } from './base-entity';
2
+ import type { Point3D } from './common';
3
+ export interface UnderlayReferenceEntityBase extends BaseEntity {
4
+ insertionPoint: Point3D;
5
+ scale: Point3D;
6
+ rotation?: number;
7
+ normal?: Point3D;
8
+ /** Hard reference to UNDERLAYDEFINITION object. */
9
+ underlayDefinitionHandle?: string;
10
+ /** Display properties bitmask. */
11
+ flags?: number;
12
+ /** Contrast in range [0, 100]. */
13
+ contrast?: number;
14
+ /** Fade in range [0, 100]. */
15
+ fade?: number;
16
+ }
17
+ export interface DwfUnderlayEntity extends UnderlayReferenceEntityBase {
18
+ type: 'DWFUNDERLAY';
19
+ }
20
+ export interface DgnUnderlayEntity extends UnderlayReferenceEntityBase {
21
+ type: 'DGNUNDERLAY';
22
+ }
23
+ export interface PdfUnderlayEntity extends UnderlayReferenceEntityBase {
24
+ type: 'PDFUNDERLAY';
25
+ }
26
+ //# sourceMappingURL=underlay-entity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"underlay-entity.d.ts","sourceRoot":"","sources":["../../src/types/underlay-entity.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC/C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA;AAEvC,MAAM,WAAW,2BAA4B,SAAQ,UAAU;IAC7D,cAAc,EAAE,OAAO,CAAA;IACvB,KAAK,EAAE,OAAO,CAAA;IACd,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,MAAM,CAAC,EAAE,OAAO,CAAA;IAEhB,mDAAmD;IACnD,wBAAwB,CAAC,EAAE,MAAM,CAAA;IAEjC,kCAAkC;IAClC,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd,kCAAkC;IAClC,QAAQ,CAAC,EAAE,MAAM,CAAA;IAEjB,8BAA8B;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,iBAAkB,SAAQ,2BAA2B;IACpE,IAAI,EAAE,aAAa,CAAA;CACpB;AAED,MAAM,WAAW,iBAAkB,SAAQ,2BAA2B;IACpE,IAAI,EAAE,aAAa,CAAA;CACpB;AAED,MAAM,WAAW,iBAAkB,SAAQ,2BAA2B;IACpE,IAAI,EAAE,aAAa,CAAA;CACpB"}