@mlightcad/data-model 1.8.4 → 1.9.1

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 (217) hide show
  1. package/README.md +41 -20
  2. package/dist/data-model.cjs +7 -7
  3. package/lib/base/AcDbDxfFiler.d.ts +1 -1
  4. package/lib/base/AcDbDxfFiler.d.ts.map +1 -1
  5. package/lib/base/AcDbObject.d.ts +1 -0
  6. package/lib/base/AcDbObject.d.ts.map +1 -1
  7. package/lib/base/AcDbObject.js +6 -0
  8. package/lib/base/AcDbObject.js.map +1 -1
  9. package/lib/converter/AcDbRegenerator.d.ts +1 -1
  10. package/lib/converter/AcDbRegenerator.d.ts.map +1 -1
  11. package/lib/converter/AcDbRegenerator.js.map +1 -1
  12. package/lib/converter/index.d.ts +0 -1
  13. package/lib/converter/index.d.ts.map +1 -1
  14. package/lib/converter/index.js +0 -1
  15. package/lib/converter/index.js.map +1 -1
  16. package/lib/database/AcDbBlockTable.d.ts +1 -1
  17. package/lib/database/AcDbBlockTable.d.ts.map +1 -1
  18. package/lib/database/AcDbBlockTableRecord.d.ts +1 -1
  19. package/lib/database/AcDbBlockTableRecord.d.ts.map +1 -1
  20. package/lib/database/AcDbDatabase.d.ts +2 -2
  21. package/lib/database/AcDbDatabase.d.ts.map +1 -1
  22. package/lib/database/AcDbDatabase.js +7 -2
  23. package/lib/database/AcDbDatabase.js.map +1 -1
  24. package/lib/database/AcDbDatabaseConverter.d.ts +9 -9
  25. package/lib/database/AcDbDatabaseConverter.d.ts.map +1 -1
  26. package/lib/database/AcDbDatabaseConverter.js +14 -2
  27. package/lib/database/AcDbDatabaseConverter.js.map +1 -1
  28. package/lib/database/AcDbDatabaseConverterManager.d.ts +0 -2
  29. package/lib/database/AcDbDatabaseConverterManager.d.ts.map +1 -1
  30. package/lib/database/AcDbDatabaseConverterManager.js +0 -4
  31. package/lib/database/AcDbDatabaseConverterManager.js.map +1 -1
  32. package/lib/database/AcDbDimStyleTableRecord.d.ts +1 -1
  33. package/lib/database/AcDbDimStyleTableRecord.d.ts.map +1 -1
  34. package/lib/database/AcDbDimStyleTableRecord.js +1 -1
  35. package/lib/database/AcDbDimStyleTableRecord.js.map +1 -1
  36. package/lib/database/AcDbLayerTableRecord.d.ts +1 -1
  37. package/lib/database/AcDbLayerTableRecord.d.ts.map +1 -1
  38. package/lib/database/AcDbLinetypeTableRecord.d.ts +1 -1
  39. package/lib/database/AcDbLinetypeTableRecord.d.ts.map +1 -1
  40. package/lib/database/AcDbRegAppTableRecord.d.ts +1 -1
  41. package/lib/database/AcDbRegAppTableRecord.d.ts.map +1 -1
  42. package/lib/database/AcDbSymbolTableRecord.d.ts +1 -1
  43. package/lib/database/AcDbSymbolTableRecord.d.ts.map +1 -1
  44. package/lib/database/AcDbSysVarManager.js +4 -1
  45. package/lib/database/AcDbSysVarManager.js.map +1 -1
  46. package/lib/database/AcDbTextStyleTable.js +1 -1
  47. package/lib/database/AcDbTextStyleTable.js.map +1 -1
  48. package/lib/database/AcDbTextStyleTableRecord.d.ts +1 -1
  49. package/lib/database/AcDbTextStyleTableRecord.d.ts.map +1 -1
  50. package/lib/database/AcDbViewTableRecord.d.ts +1 -1
  51. package/lib/database/AcDbViewTableRecord.d.ts.map +1 -1
  52. package/lib/database/AcDbViewportTableRecord.d.ts +1 -1
  53. package/lib/database/AcDbViewportTableRecord.d.ts.map +1 -1
  54. package/lib/entity/AcDb2dPolyline.d.ts +4 -2
  55. package/lib/entity/AcDb2dPolyline.d.ts.map +1 -1
  56. package/lib/entity/AcDb2dPolyline.js +9 -1
  57. package/lib/entity/AcDb2dPolyline.js.map +1 -1
  58. package/lib/entity/AcDb2dVertex.d.ts +2 -2
  59. package/lib/entity/AcDb2dVertex.d.ts.map +1 -1
  60. package/lib/entity/AcDb2dVertex.js +1 -1
  61. package/lib/entity/AcDb2dVertex.js.map +1 -1
  62. package/lib/entity/AcDb3dPolyline.d.ts +4 -2
  63. package/lib/entity/AcDb3dPolyline.d.ts.map +1 -1
  64. package/lib/entity/AcDb3dPolyline.js +9 -1
  65. package/lib/entity/AcDb3dPolyline.js.map +1 -1
  66. package/lib/entity/AcDb3dVertex.d.ts +2 -2
  67. package/lib/entity/AcDb3dVertex.d.ts.map +1 -1
  68. package/lib/entity/AcDb3dVertex.js +1 -1
  69. package/lib/entity/AcDb3dVertex.js.map +1 -1
  70. package/lib/entity/AcDbArc.d.ts +4 -2
  71. package/lib/entity/AcDbArc.d.ts.map +1 -1
  72. package/lib/entity/AcDbArc.js +10 -2
  73. package/lib/entity/AcDbArc.js.map +1 -1
  74. package/lib/entity/AcDbAttribute.d.ts +1 -1
  75. package/lib/entity/AcDbAttribute.d.ts.map +1 -1
  76. package/lib/entity/AcDbAttributeDefinition.d.ts +1 -1
  77. package/lib/entity/AcDbAttributeDefinition.d.ts.map +1 -1
  78. package/lib/entity/AcDbBlockReference.d.ts +4 -2
  79. package/lib/entity/AcDbBlockReference.d.ts.map +1 -1
  80. package/lib/entity/AcDbBlockReference.js +3 -1
  81. package/lib/entity/AcDbBlockReference.js.map +1 -1
  82. package/lib/entity/AcDbCircle.d.ts +4 -2
  83. package/lib/entity/AcDbCircle.d.ts.map +1 -1
  84. package/lib/entity/AcDbCircle.js +10 -2
  85. package/lib/entity/AcDbCircle.js.map +1 -1
  86. package/lib/entity/AcDbCurve.d.ts +5 -0
  87. package/lib/entity/AcDbCurve.d.ts.map +1 -1
  88. package/lib/entity/AcDbCurve.js.map +1 -1
  89. package/lib/entity/AcDbEllipse.d.ts +4 -2
  90. package/lib/entity/AcDbEllipse.d.ts.map +1 -1
  91. package/lib/entity/AcDbEllipse.js +10 -2
  92. package/lib/entity/AcDbEllipse.js.map +1 -1
  93. package/lib/entity/AcDbEntity.d.ts +2 -2
  94. package/lib/entity/AcDbEntity.d.ts.map +1 -1
  95. package/lib/entity/AcDbEntity.js +1 -1
  96. package/lib/entity/AcDbEntity.js.map +1 -1
  97. package/lib/entity/AcDbFace.d.ts +6 -2
  98. package/lib/entity/AcDbFace.d.ts.map +1 -1
  99. package/lib/entity/AcDbFace.js +22 -1
  100. package/lib/entity/AcDbFace.js.map +1 -1
  101. package/lib/entity/AcDbHatch.d.ts +6 -2
  102. package/lib/entity/AcDbHatch.d.ts.map +1 -1
  103. package/lib/entity/AcDbHatch.js +12 -2
  104. package/lib/entity/AcDbHatch.js.map +1 -1
  105. package/lib/entity/AcDbLeader.d.ts +4 -2
  106. package/lib/entity/AcDbLeader.d.ts.map +1 -1
  107. package/lib/entity/AcDbLeader.js +9 -1
  108. package/lib/entity/AcDbLeader.js.map +1 -1
  109. package/lib/entity/AcDbLine.d.ts +3 -1
  110. package/lib/entity/AcDbLine.d.ts.map +1 -1
  111. package/lib/entity/AcDbLine.js +8 -0
  112. package/lib/entity/AcDbLine.js.map +1 -1
  113. package/lib/entity/AcDbMLeader.d.ts +2 -2
  114. package/lib/entity/AcDbMLeader.d.ts.map +1 -1
  115. package/lib/entity/AcDbMLeader.js +4 -2
  116. package/lib/entity/AcDbMLeader.js.map +1 -1
  117. package/lib/entity/AcDbMLine.d.ts +2 -2
  118. package/lib/entity/AcDbMLine.d.ts.map +1 -1
  119. package/lib/entity/AcDbMLine.js +2 -2
  120. package/lib/entity/AcDbMLine.js.map +1 -1
  121. package/lib/entity/AcDbMText.d.ts +2 -2
  122. package/lib/entity/AcDbMText.d.ts.map +1 -1
  123. package/lib/entity/AcDbMText.js +1 -1
  124. package/lib/entity/AcDbMText.js.map +1 -1
  125. package/lib/entity/AcDbOsnapHelpers.d.ts +1 -1
  126. package/lib/entity/AcDbOsnapHelpers.d.ts.map +1 -1
  127. package/lib/entity/AcDbOsnapHelpers.js +1 -1
  128. package/lib/entity/AcDbOsnapHelpers.js.map +1 -1
  129. package/lib/entity/AcDbPoint.d.ts +2 -2
  130. package/lib/entity/AcDbPoint.d.ts.map +1 -1
  131. package/lib/entity/AcDbPoint.js +1 -1
  132. package/lib/entity/AcDbPoint.js.map +1 -1
  133. package/lib/entity/AcDbPolyFaceMesh.d.ts +4 -2
  134. package/lib/entity/AcDbPolyFaceMesh.d.ts.map +1 -1
  135. package/lib/entity/AcDbPolyFaceMesh.js +9 -1
  136. package/lib/entity/AcDbPolyFaceMesh.js.map +1 -1
  137. package/lib/entity/AcDbPolygonMesh.d.ts +4 -2
  138. package/lib/entity/AcDbPolygonMesh.d.ts.map +1 -1
  139. package/lib/entity/AcDbPolygonMesh.js +9 -1
  140. package/lib/entity/AcDbPolygonMesh.js.map +1 -1
  141. package/lib/entity/AcDbPolyline.d.ts +4 -2
  142. package/lib/entity/AcDbPolyline.d.ts.map +1 -1
  143. package/lib/entity/AcDbPolyline.js +9 -1
  144. package/lib/entity/AcDbPolyline.js.map +1 -1
  145. package/lib/entity/AcDbRasterImage.d.ts +3 -2
  146. package/lib/entity/AcDbRasterImage.d.ts.map +1 -1
  147. package/lib/entity/AcDbRasterImage.js +1 -1
  148. package/lib/entity/AcDbRasterImage.js.map +1 -1
  149. package/lib/entity/AcDbRay.d.ts +4 -2
  150. package/lib/entity/AcDbRay.d.ts.map +1 -1
  151. package/lib/entity/AcDbRay.js +9 -1
  152. package/lib/entity/AcDbRay.js.map +1 -1
  153. package/lib/entity/AcDbShape.d.ts +2 -2
  154. package/lib/entity/AcDbShape.d.ts.map +1 -1
  155. package/lib/entity/AcDbShape.js +1 -1
  156. package/lib/entity/AcDbShape.js.map +1 -1
  157. package/lib/entity/AcDbSpline.d.ts +4 -2
  158. package/lib/entity/AcDbSpline.d.ts.map +1 -1
  159. package/lib/entity/AcDbSpline.js +9 -1
  160. package/lib/entity/AcDbSpline.js.map +1 -1
  161. package/lib/entity/AcDbTable.d.ts +1 -1
  162. package/lib/entity/AcDbTable.d.ts.map +1 -1
  163. package/lib/entity/AcDbText.d.ts +2 -2
  164. package/lib/entity/AcDbText.d.ts.map +1 -1
  165. package/lib/entity/AcDbText.js +1 -1
  166. package/lib/entity/AcDbText.js.map +1 -1
  167. package/lib/entity/AcDbTrace.d.ts +4 -2
  168. package/lib/entity/AcDbTrace.d.ts.map +1 -1
  169. package/lib/entity/AcDbTrace.js +9 -0
  170. package/lib/entity/AcDbTrace.js.map +1 -1
  171. package/lib/entity/AcDbViewport.d.ts +1 -1
  172. package/lib/entity/AcDbViewport.d.ts.map +1 -1
  173. package/lib/entity/AcDbWipeout.d.ts +1 -1
  174. package/lib/entity/AcDbWipeout.d.ts.map +1 -1
  175. package/lib/entity/AcDbXline.d.ts +4 -2
  176. package/lib/entity/AcDbXline.d.ts.map +1 -1
  177. package/lib/entity/AcDbXline.js +9 -1
  178. package/lib/entity/AcDbXline.js.map +1 -1
  179. package/lib/index.d.ts +1 -1
  180. package/lib/index.d.ts.map +1 -1
  181. package/lib/index.js +1 -1
  182. package/lib/index.js.map +1 -1
  183. package/lib/misc/AcDbDataGenerator.d.ts +1 -1
  184. package/lib/misc/AcDbDataGenerator.d.ts.map +1 -1
  185. package/lib/misc/AcDbDataGenerator.js +7 -3
  186. package/lib/misc/AcDbDataGenerator.js.map +1 -1
  187. package/lib/misc/AcDbRenderingCache.d.ts +1 -1
  188. package/lib/misc/AcDbRenderingCache.d.ts.map +1 -1
  189. package/lib/misc/AcDbRenderingCache.js +1 -1
  190. package/lib/misc/AcDbRenderingCache.js.map +1 -1
  191. package/lib/object/AcDbMLeaderStyle.js +1 -1
  192. package/lib/object/AcDbMLeaderStyle.js.map +1 -1
  193. package/lib/object/layout/AcDbLayoutManager.d.ts.map +1 -1
  194. package/lib/object/layout/AcDbLayoutManager.js +2 -2
  195. package/lib/object/layout/AcDbLayoutManager.js.map +1 -1
  196. package/package.json +6 -9
  197. package/dist/dxf-parser-worker.js +0 -1794
  198. package/lib/converter/AcDbDxfConverter.d.ts +0 -277
  199. package/lib/converter/AcDbDxfConverter.d.ts.map +0 -1
  200. package/lib/converter/AcDbDxfConverter.js +0 -1076
  201. package/lib/converter/AcDbDxfConverter.js.map +0 -1
  202. package/lib/converter/AcDbDxfParser.d.ts +0 -23
  203. package/lib/converter/AcDbDxfParser.d.ts.map +0 -1
  204. package/lib/converter/AcDbDxfParser.js +0 -85
  205. package/lib/converter/AcDbDxfParser.js.map +0 -1
  206. package/lib/converter/AcDbEntitiyConverter.d.ts +0 -156
  207. package/lib/converter/AcDbEntitiyConverter.d.ts.map +0 -1
  208. package/lib/converter/AcDbEntitiyConverter.js +0 -1426
  209. package/lib/converter/AcDbEntitiyConverter.js.map +0 -1
  210. package/lib/converter/AcDbObjectConverter.d.ts +0 -68
  211. package/lib/converter/AcDbObjectConverter.d.ts.map +0 -1
  212. package/lib/converter/AcDbObjectConverter.js +0 -376
  213. package/lib/converter/AcDbObjectConverter.js.map +0 -1
  214. package/lib/converter/worker/AcDbDxfParserWorker.d.ts +0 -11
  215. package/lib/converter/worker/AcDbDxfParserWorker.d.ts.map +0 -1
  216. package/lib/converter/worker/AcDbDxfParserWorker.js +0 -75
  217. package/lib/converter/worker/AcDbDxfParserWorker.js.map +0 -1
@@ -1,277 +0,0 @@
1
- import { ParsedDxf } from '@mlightcad/dxf-json';
2
- import { AcDbDatabase, AcDbDatabaseConverterConfig } from '../database';
3
- import { AcDbConversionProgressCallback, AcDbDatabaseConverter } from '../database/AcDbDatabaseConverter';
4
- /**
5
- * Default database converter for DXF files.
6
- *
7
- * This class extends AcDbDatabaseConverter to provide specialized functionality
8
- * for converting DXF (Drawing Exchange Format) files into AcDbDatabase objects.
9
- * It handles parsing DXF data, processing entities, blocks, tables, and other
10
- * DXF-specific structures.
11
- *
12
- * @example
13
- * ```typescript
14
- * const converter = new AcDbDxfConverter();
15
- * const database = await converter.convert(dxfData);
16
- * ```
17
- */
18
- export declare class AcDbDxfConverter extends AcDbDatabaseConverter<ParsedDxf> {
19
- constructor(config?: AcDbDatabaseConverterConfig);
20
- /**
21
- * Parses DXF data into a ParsedDxf object.
22
- *
23
- * @param data - The DXF data
24
- * @returns Parsed DXF object containing all the parsed data
25
- *
26
- */
27
- protected parse(data: ArrayBuffer, timeout?: number): Promise<{
28
- model: ParsedDxf | undefined;
29
- data: {
30
- unknownEntityCount: number;
31
- };
32
- }>;
33
- /**
34
- * Gets all fonts used by entities in model space and paper space.
35
- *
36
- * This method analyzes the DXF data to extract all font names used by
37
- * text entities, MText entities, and insert entities throughout the drawing.
38
- *
39
- * @param dxf - Input parsed DXF model
40
- * @returns Array of font names used in the drawing
41
- *
42
- * @example
43
- * ```typescript
44
- * const fonts = converter.getFonts(parsedDxf);
45
- * console.log('Used fonts:', fonts);
46
- * ```
47
- */
48
- protected getFonts(dxf: ParsedDxf): string[];
49
- /**
50
- * Iterates through entities in a block to get fonts used by text, MText, and insert entities.
51
- *
52
- * This is a helper method that recursively processes entities to extract font information
53
- * from text-based entities and block references.
54
- *
55
- * @param entities - Array of DXF entities to process
56
- * @param blockMap - Map of block definitions
57
- * @param styleMap - Map of text styles to font names
58
- * @param fonts - Set to collect font names
59
- *
60
- * @example
61
- * ```typescript
62
- * const fonts = new Set<string>();
63
- * converter.getFontsInBlock(entities, blocks, styleMap, fonts);
64
- * ```
65
- */
66
- private getFontsInBlock;
67
- /**
68
- * Processes entities in batches to maintain UI responsiveness.
69
- *
70
- * This method breaks up the entity processing work into smaller chunks that are
71
- * executed asynchronously. This is often referred to as "batch processing" or
72
- * "cooperative multitasking," where the time-consuming task is broken into
73
- * smaller pieces and executed in small intervals to allow the UI to remain responsive.
74
- *
75
- * @param dxf - Parsed DXF data
76
- * @param db - Target database to add entities to
77
- * @param minimumChunkSize - Minimum number of entities to process in each chunk
78
- * @param startPercentage - Object containing the starting percentage for progress tracking
79
- * @param progress - Optional callback for progress updates
80
- *
81
- * @example
82
- * ```typescript
83
- * await converter.processEntities(dxf, database, 100, { value: 0 }, progressCallback);
84
- * ```
85
- */
86
- protected processEntities(dxf: ParsedDxf, db: AcDbDatabase, minimumChunkSize: number, startPercentage: {
87
- value: number;
88
- }, progress?: AcDbConversionProgressCallback): Promise<void>;
89
- /**
90
- * Processes entities within a specific block.
91
- *
92
- * This method handles the conversion and addition of entities to a specific
93
- * block table record.
94
- *
95
- * @param entities - Array of DXF entities to process
96
- * @param blockTableRecord - The block table record to use
97
- * @param checkOwner - The flag whether to check the owner of entity is the passed
98
- * blockTableRecord. If yes, convert it and append it to the block table record.
99
- * Otherwise, ignore the entity.
100
- *
101
- * @example
102
- * ```typescript
103
- * await converter.processEntitiesInBlock(entities, blockRecord);
104
- * ```
105
- */
106
- private processEntitiesInBlock;
107
- /**
108
- * Processes blocks defined in the DXF file.
109
- *
110
- * This method iterates through all blocks in the DXF data and creates
111
- * corresponding AcDbBlockTableRecord objects in the database.
112
- *
113
- * @param model - Parsed DXF model containing block definitions
114
- * @param db - Target database to add blocks to
115
- *
116
- * @example
117
- * ```typescript
118
- * converter.processBlocks(parsedDxf, database);
119
- * ```
120
- */
121
- protected processBlocks(model: ParsedDxf, db: AcDbDatabase): void;
122
- /**
123
- * Processes header variables from the DXF file.
124
- *
125
- * This method extracts and sets various header variables such as color settings,
126
- * angle base, angle direction, units, and point display settings.
127
- *
128
- * @param model - Parsed DXF model containing header information
129
- * @param db - Target database to set header variables on
130
- *
131
- * @example
132
- * ```typescript
133
- * converter.processHeader(parsedDxf, database);
134
- * ```
135
- */
136
- protected processHeader(model: ParsedDxf, db: AcDbDatabase): void;
137
- /**
138
- * Processes block table records from the DXF file.
139
- *
140
- * This method creates AcDbBlockTableRecord objects for each block record
141
- * defined in the DXF tables section.
142
- *
143
- * @param dxf - Parsed DXF data
144
- * @param db - Target database to add block table records to
145
- *
146
- * @example
147
- * ```typescript
148
- * converter.processBlockTables(parsedDxf, database);
149
- * ```
150
- */
151
- protected processBlockTables(dxf: ParsedDxf, db: AcDbDatabase): void;
152
- /**
153
- * Processes objects defined in the DXF file.
154
- *
155
- * This method handles the conversion of DXF objects such as layouts and
156
- * image definitions into their corresponding AcDb objects.
157
- *
158
- * @param model - Parsed DXF model containing object definitions
159
- * @param db - Target database to add objects to
160
- *
161
- * @example
162
- * ```typescript
163
- * converter.processObjects(parsedDxf, database);
164
- * ```
165
- */
166
- protected processObjects(model: ParsedDxf, db: AcDbDatabase): void;
167
- /**
168
- * Processes viewport table records from the DXF file.
169
- *
170
- * This method creates AcDbViewportTableRecord objects for each viewport
171
- * defined in the DXF tables section, including their properties like
172
- * center, corners, snap settings, and grid settings.
173
- *
174
- * @param model - Parsed DXF model containing viewport definitions
175
- * @param db - Target database to add viewport table records to
176
- *
177
- * @example
178
- * ```typescript
179
- * converter.processViewports(parsedDxf, database);
180
- * ```
181
- */
182
- protected processViewports(model: ParsedDxf, db: AcDbDatabase): void;
183
- /**
184
- * Processes layer table records from the DXF file.
185
- *
186
- * This method creates AcDbLayerTableRecord objects for each layer
187
- * defined in the DXF tables section, including their properties like
188
- * color, linetype, lineweight, and visibility settings.
189
- *
190
- * @param model - Parsed DXF model containing layer definitions
191
- * @param db - Target database to add layer table records to
192
- *
193
- * @example
194
- * ```typescript
195
- * converter.processLayers(parsedDxf, database);
196
- * ```
197
- */
198
- protected processLayers(model: ParsedDxf, db: AcDbDatabase): void;
199
- /**
200
- * Processes linetype table records from the DXF file.
201
- *
202
- * This method creates AcDbLinetypeTableRecord objects for each linetype
203
- * defined in the DXF tables section.
204
- *
205
- * @param model - Parsed DXF model containing linetype definitions
206
- * @param db - Target database to add linetype table records to
207
- *
208
- * @example
209
- * ```typescript
210
- * converter.processLineTypes(parsedDxf, database);
211
- * ```
212
- */
213
- protected processLineTypes(model: ParsedDxf, db: AcDbDatabase): void;
214
- /**
215
- * Processes text style table records from the DXF file.
216
- *
217
- * This method creates AcDbTextStyleTableRecord objects for each text style
218
- * defined in the DXF tables section.
219
- *
220
- * @param model - Parsed DXF model containing text style definitions
221
- * @param db - Target database to add text style table records to
222
- *
223
- * @example
224
- * ```typescript
225
- * converter.processTextStyles(parsedDxf, database);
226
- * ```
227
- */
228
- protected processTextStyles(model: ParsedDxf, db: AcDbDatabase): void;
229
- /**
230
- * Processes dimension style table records from the DXF file.
231
- *
232
- * This method creates AcDbDimStyleTableRecord objects for each dimension style
233
- * defined in the DXF tables section, including all dimension-related properties
234
- * like text positioning, arrow settings, and tolerance settings.
235
- *
236
- * @param model - Parsed DXF model containing dimension style definitions
237
- * @param db - Target database to add dimension style table records to
238
- *
239
- * @example
240
- * ```typescript
241
- * converter.processDimStyles(parsedDxf, database);
242
- * ```
243
- */
244
- protected processDimStyles(model: ParsedDxf, db: AcDbDatabase): void;
245
- private processCommonTableAttrs;
246
- /**
247
- * Processes common table entry attributes from DXF data.
248
- *
249
- * This helper method sets the common attributes (name, objectId, ownerId)
250
- * that are shared across all table entries.
251
- *
252
- * @param entry - DXF table entry containing the source data
253
- * @param dbEntry - AcDbSymbolTableRecord to populate with the data
254
- *
255
- * @example
256
- * ```typescript
257
- * converter.processCommonTableEntryAttrs(dxfEntry, dbRecord);
258
- * ```
259
- */
260
- private processCommonTableEntryAttrs;
261
- /**
262
- * Groups entities by their `type` property and flattens the result into a single array.
263
- *
264
- * The order of `type` groups follows the order in which they first appear in the input array.
265
- * Items within each group preserve their original order.
266
- *
267
- * This runs in O(n) time, which is generally faster than sorting when you
268
- * don't care about alphabetical order of types.
269
- *
270
- * @param entities - The array of entities to group and flatten.
271
- *
272
- * @returns A new array of entities grouped by their `type` property.
273
- */
274
- private groupAndFlattenByType;
275
- private normalizeHeaderStringValue;
276
- }
277
- //# sourceMappingURL=AcDbDxfConverter.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AcDbDxfConverter.d.ts","sourceRoot":"","sources":["../../src/converter/AcDbDxfConverter.ts"],"names":[],"mappings":"AACA,OAAO,EAgBL,SAAS,EAIV,MAAM,qBAAqB,CAAA;AAQ5B,OAAO,EAGL,YAAY,EACZ,2BAA2B,EAgB5B,MAAM,aAAa,CAAA;AACpB,OAAO,EACL,8BAA8B,EAC9B,qBAAqB,EACtB,MAAM,mCAAmC,CAAA;AAmB1C;;;;;;;;;;;;;GAaG;AACH,qBAAa,gBAAiB,SAAQ,qBAAqB,CAAC,SAAS,CAAC;gBACxD,MAAM,GAAE,2BAAgC;IAOpD;;;;;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