@mlightcad/data-model 1.3.1 → 1.3.3

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 (328) hide show
  1. package/package.json +4 -4
  2. package/dist/data-model.cjs +0 -5
  3. package/dist/data-model.js +0 -25475
  4. package/dist/dxf-parser-worker.js +0 -1669
  5. package/lib/base/AcDbHostApplicationServices.d.ts +0 -96
  6. package/lib/base/AcDbHostApplicationServices.d.ts.map +0 -1
  7. package/lib/base/AcDbHostApplicationServices.js +0 -118
  8. package/lib/base/AcDbHostApplicationServices.js.map +0 -1
  9. package/lib/base/AcDbObject.d.ts +0 -205
  10. package/lib/base/AcDbObject.d.ts.map +0 -1
  11. package/lib/base/AcDbObject.js +0 -236
  12. package/lib/base/AcDbObject.js.map +0 -1
  13. package/lib/base/index.d.ts +0 -3
  14. package/lib/base/index.d.ts.map +0 -1
  15. package/lib/base/index.js +0 -3
  16. package/lib/base/index.js.map +0 -1
  17. package/lib/converter/AcDbBatchProcessing.d.ts +0 -146
  18. package/lib/converter/AcDbBatchProcessing.d.ts.map +0 -1
  19. package/lib/converter/AcDbBatchProcessing.js +0 -272
  20. package/lib/converter/AcDbBatchProcessing.js.map +0 -1
  21. package/lib/converter/AcDbDxfConverter.d.ts +0 -272
  22. package/lib/converter/AcDbDxfConverter.d.ts.map +0 -1
  23. package/lib/converter/AcDbDxfConverter.js +0 -867
  24. package/lib/converter/AcDbDxfConverter.js.map +0 -1
  25. package/lib/converter/AcDbDxfParser.d.ts +0 -23
  26. package/lib/converter/AcDbDxfParser.d.ts.map +0 -1
  27. package/lib/converter/AcDbDxfParser.js +0 -85
  28. package/lib/converter/AcDbDxfParser.js.map +0 -1
  29. package/lib/converter/AcDbEntitiyConverter.d.ts +0 -159
  30. package/lib/converter/AcDbEntitiyConverter.d.ts.map +0 -1
  31. package/lib/converter/AcDbEntitiyConverter.js +0 -659
  32. package/lib/converter/AcDbEntitiyConverter.js.map +0 -1
  33. package/lib/converter/AcDbObjectConverter.d.ts +0 -61
  34. package/lib/converter/AcDbObjectConverter.d.ts.map +0 -1
  35. package/lib/converter/AcDbObjectConverter.js +0 -91
  36. package/lib/converter/AcDbObjectConverter.js.map +0 -1
  37. package/lib/converter/AcDbRegenerator.d.ts +0 -101
  38. package/lib/converter/AcDbRegenerator.d.ts.map +0 -1
  39. package/lib/converter/AcDbRegenerator.js +0 -334
  40. package/lib/converter/AcDbRegenerator.js.map +0 -1
  41. package/lib/converter/index.d.ts +0 -5
  42. package/lib/converter/index.d.ts.map +0 -1
  43. package/lib/converter/index.js +0 -5
  44. package/lib/converter/index.js.map +0 -1
  45. package/lib/converter/worker/AcDbBaseWorker.d.ts +0 -36
  46. package/lib/converter/worker/AcDbBaseWorker.d.ts.map +0 -1
  47. package/lib/converter/worker/AcDbBaseWorker.js +0 -93
  48. package/lib/converter/worker/AcDbBaseWorker.js.map +0 -1
  49. package/lib/converter/worker/AcDbDxfParserWorker.d.ts +0 -11
  50. package/lib/converter/worker/AcDbDxfParserWorker.d.ts.map +0 -1
  51. package/lib/converter/worker/AcDbDxfParserWorker.js +0 -75
  52. package/lib/converter/worker/AcDbDxfParserWorker.js.map +0 -1
  53. package/lib/converter/worker/AcDbWorkerManager.d.ts +0 -107
  54. package/lib/converter/worker/AcDbWorkerManager.d.ts.map +0 -1
  55. package/lib/converter/worker/AcDbWorkerManager.js +0 -360
  56. package/lib/converter/worker/AcDbWorkerManager.js.map +0 -1
  57. package/lib/converter/worker/index.d.ts +0 -3
  58. package/lib/converter/worker/index.d.ts.map +0 -1
  59. package/lib/converter/worker/index.js +0 -3
  60. package/lib/converter/worker/index.js.map +0 -1
  61. package/lib/database/AcDbBlockTable.d.ts +0 -56
  62. package/lib/database/AcDbBlockTable.d.ts.map +0 -1
  63. package/lib/database/AcDbBlockTable.js +0 -98
  64. package/lib/database/AcDbBlockTable.js.map +0 -1
  65. package/lib/database/AcDbBlockTableRecord.d.ts +0 -185
  66. package/lib/database/AcDbBlockTableRecord.d.ts.map +0 -1
  67. package/lib/database/AcDbBlockTableRecord.js +0 -261
  68. package/lib/database/AcDbBlockTableRecord.js.map +0 -1
  69. package/lib/database/AcDbDatabase.d.ts +0 -563
  70. package/lib/database/AcDbDatabase.d.ts.map +0 -1
  71. package/lib/database/AcDbDatabase.js +0 -842
  72. package/lib/database/AcDbDatabase.js.map +0 -1
  73. package/lib/database/AcDbDatabaseConverter.d.ts +0 -292
  74. package/lib/database/AcDbDatabaseConverter.d.ts.map +0 -1
  75. package/lib/database/AcDbDatabaseConverter.js +0 -446
  76. package/lib/database/AcDbDatabaseConverter.js.map +0 -1
  77. package/lib/database/AcDbDatabaseConverterManager.d.ts +0 -141
  78. package/lib/database/AcDbDatabaseConverterManager.d.ts.map +0 -1
  79. package/lib/database/AcDbDatabaseConverterManager.js +0 -173
  80. package/lib/database/AcDbDatabaseConverterManager.js.map +0 -1
  81. package/lib/database/AcDbDimStyleTable.d.ts +0 -31
  82. package/lib/database/AcDbDimStyleTable.d.ts.map +0 -1
  83. package/lib/database/AcDbDimStyleTable.js +0 -49
  84. package/lib/database/AcDbDimStyleTable.js.map +0 -1
  85. package/lib/database/AcDbDimStyleTableRecord.d.ts +0 -797
  86. package/lib/database/AcDbDimStyleTableRecord.d.ts.map +0 -1
  87. package/lib/database/AcDbDimStyleTableRecord.js +0 -1294
  88. package/lib/database/AcDbDimStyleTableRecord.js.map +0 -1
  89. package/lib/database/AcDbDwgVersion.d.ts +0 -32
  90. package/lib/database/AcDbDwgVersion.d.ts.map +0 -1
  91. package/lib/database/AcDbDwgVersion.js +0 -76
  92. package/lib/database/AcDbDwgVersion.js.map +0 -1
  93. package/lib/database/AcDbLayerTable.d.ts +0 -51
  94. package/lib/database/AcDbLayerTable.d.ts.map +0 -1
  95. package/lib/database/AcDbLayerTable.js +0 -92
  96. package/lib/database/AcDbLayerTable.js.map +0 -1
  97. package/lib/database/AcDbLayerTableRecord.d.ts +0 -278
  98. package/lib/database/AcDbLayerTableRecord.d.ts.map +0 -1
  99. package/lib/database/AcDbLayerTableRecord.js +0 -397
  100. package/lib/database/AcDbLayerTableRecord.js.map +0 -1
  101. package/lib/database/AcDbLinetypeTable.d.ts +0 -30
  102. package/lib/database/AcDbLinetypeTable.d.ts.map +0 -1
  103. package/lib/database/AcDbLinetypeTable.js +0 -48
  104. package/lib/database/AcDbLinetypeTable.js.map +0 -1
  105. package/lib/database/AcDbLinetypeTableRecord.d.ts +0 -79
  106. package/lib/database/AcDbLinetypeTableRecord.d.ts.map +0 -1
  107. package/lib/database/AcDbLinetypeTableRecord.js +0 -129
  108. package/lib/database/AcDbLinetypeTableRecord.js.map +0 -1
  109. package/lib/database/AcDbSymbolTable.d.ts +0 -199
  110. package/lib/database/AcDbSymbolTable.d.ts.map +0 -1
  111. package/lib/database/AcDbSymbolTable.js +0 -264
  112. package/lib/database/AcDbSymbolTable.js.map +0 -1
  113. package/lib/database/AcDbSymbolTableRecord.d.ts +0 -61
  114. package/lib/database/AcDbSymbolTableRecord.d.ts.map +0 -1
  115. package/lib/database/AcDbSymbolTableRecord.js +0 -82
  116. package/lib/database/AcDbSymbolTableRecord.js.map +0 -1
  117. package/lib/database/AcDbTextStyleTable.d.ts +0 -48
  118. package/lib/database/AcDbTextStyleTable.d.ts.map +0 -1
  119. package/lib/database/AcDbTextStyleTable.js +0 -112
  120. package/lib/database/AcDbTextStyleTable.js.map +0 -1
  121. package/lib/database/AcDbTextStyleTableRecord.d.ts +0 -179
  122. package/lib/database/AcDbTextStyleTableRecord.d.ts.map +0 -1
  123. package/lib/database/AcDbTextStyleTableRecord.js +0 -276
  124. package/lib/database/AcDbTextStyleTableRecord.js.map +0 -1
  125. package/lib/database/AcDbViewportTable.d.ts +0 -31
  126. package/lib/database/AcDbViewportTable.d.ts.map +0 -1
  127. package/lib/database/AcDbViewportTable.js +0 -49
  128. package/lib/database/AcDbViewportTable.js.map +0 -1
  129. package/lib/database/AcDbViewportTableRecord.d.ts +0 -154
  130. package/lib/database/AcDbViewportTableRecord.d.ts.map +0 -1
  131. package/lib/database/AcDbViewportTableRecord.js +0 -318
  132. package/lib/database/AcDbViewportTableRecord.js.map +0 -1
  133. package/lib/database/index.d.ts +0 -19
  134. package/lib/database/index.d.ts.map +0 -1
  135. package/lib/database/index.js +0 -19
  136. package/lib/database/index.js.map +0 -1
  137. package/lib/entity/AcDbArc.d.ts +0 -254
  138. package/lib/entity/AcDbArc.d.ts.map +0 -1
  139. package/lib/entity/AcDbArc.js +0 -340
  140. package/lib/entity/AcDbArc.js.map +0 -1
  141. package/lib/entity/AcDbBlockReference.d.ts +0 -190
  142. package/lib/entity/AcDbBlockReference.d.ts.map +0 -1
  143. package/lib/entity/AcDbBlockReference.js +0 -302
  144. package/lib/entity/AcDbBlockReference.js.map +0 -1
  145. package/lib/entity/AcDbCircle.d.ts +0 -186
  146. package/lib/entity/AcDbCircle.d.ts.map +0 -1
  147. package/lib/entity/AcDbCircle.js +0 -249
  148. package/lib/entity/AcDbCircle.js.map +0 -1
  149. package/lib/entity/AcDbCurve.d.ts +0 -42
  150. package/lib/entity/AcDbCurve.d.ts.map +0 -1
  151. package/lib/entity/AcDbCurve.js +0 -44
  152. package/lib/entity/AcDbCurve.js.map +0 -1
  153. package/lib/entity/AcDbEllipse.d.ts +0 -207
  154. package/lib/entity/AcDbEllipse.d.ts.map +0 -1
  155. package/lib/entity/AcDbEllipse.js +0 -272
  156. package/lib/entity/AcDbEllipse.js.map +0 -1
  157. package/lib/entity/AcDbEntity.d.ts +0 -385
  158. package/lib/entity/AcDbEntity.d.ts.map +0 -1
  159. package/lib/entity/AcDbEntity.js +0 -561
  160. package/lib/entity/AcDbEntity.js.map +0 -1
  161. package/lib/entity/AcDbFace.d.ts +0 -151
  162. package/lib/entity/AcDbFace.d.ts.map +0 -1
  163. package/lib/entity/AcDbFace.js +0 -224
  164. package/lib/entity/AcDbFace.js.map +0 -1
  165. package/lib/entity/AcDbHatch.d.ts +0 -174
  166. package/lib/entity/AcDbHatch.d.ts.map +0 -1
  167. package/lib/entity/AcDbHatch.js +0 -250
  168. package/lib/entity/AcDbHatch.js.map +0 -1
  169. package/lib/entity/AcDbLeader.d.ts +0 -243
  170. package/lib/entity/AcDbLeader.d.ts.map +0 -1
  171. package/lib/entity/AcDbLeader.js +0 -358
  172. package/lib/entity/AcDbLeader.js.map +0 -1
  173. package/lib/entity/AcDbLine.d.ts +0 -198
  174. package/lib/entity/AcDbLine.d.ts.map +0 -1
  175. package/lib/entity/AcDbLine.js +0 -300
  176. package/lib/entity/AcDbLine.js.map +0 -1
  177. package/lib/entity/AcDbMText.d.ts +0 -248
  178. package/lib/entity/AcDbMText.d.ts.map +0 -1
  179. package/lib/entity/AcDbMText.js +0 -414
  180. package/lib/entity/AcDbMText.js.map +0 -1
  181. package/lib/entity/AcDbPoint.d.ts +0 -113
  182. package/lib/entity/AcDbPoint.d.ts.map +0 -1
  183. package/lib/entity/AcDbPoint.js +0 -155
  184. package/lib/entity/AcDbPoint.js.map +0 -1
  185. package/lib/entity/AcDbPolyline.d.ts +0 -221
  186. package/lib/entity/AcDbPolyline.d.ts.map +0 -1
  187. package/lib/entity/AcDbPolyline.js +0 -301
  188. package/lib/entity/AcDbPolyline.js.map +0 -1
  189. package/lib/entity/AcDbRasterImage.d.ts +0 -216
  190. package/lib/entity/AcDbRasterImage.d.ts.map +0 -1
  191. package/lib/entity/AcDbRasterImage.js +0 -451
  192. package/lib/entity/AcDbRasterImage.js.map +0 -1
  193. package/lib/entity/AcDbRay.d.ts +0 -150
  194. package/lib/entity/AcDbRay.d.ts.map +0 -1
  195. package/lib/entity/AcDbRay.js +0 -208
  196. package/lib/entity/AcDbRay.js.map +0 -1
  197. package/lib/entity/AcDbSpline.d.ts +0 -135
  198. package/lib/entity/AcDbSpline.d.ts.map +0 -1
  199. package/lib/entity/AcDbSpline.js +0 -142
  200. package/lib/entity/AcDbSpline.js.map +0 -1
  201. package/lib/entity/AcDbTable.d.ts +0 -260
  202. package/lib/entity/AcDbTable.d.ts.map +0 -1
  203. package/lib/entity/AcDbTable.js +0 -452
  204. package/lib/entity/AcDbTable.js.map +0 -1
  205. package/lib/entity/AcDbText.d.ts +0 -388
  206. package/lib/entity/AcDbText.d.ts.map +0 -1
  207. package/lib/entity/AcDbText.js +0 -523
  208. package/lib/entity/AcDbText.js.map +0 -1
  209. package/lib/entity/AcDbTrace.d.ts +0 -193
  210. package/lib/entity/AcDbTrace.d.ts.map +0 -1
  211. package/lib/entity/AcDbTrace.js +0 -271
  212. package/lib/entity/AcDbTrace.js.map +0 -1
  213. package/lib/entity/AcDbViewport.d.ts +0 -173
  214. package/lib/entity/AcDbViewport.d.ts.map +0 -1
  215. package/lib/entity/AcDbViewport.js +0 -295
  216. package/lib/entity/AcDbViewport.js.map +0 -1
  217. package/lib/entity/AcDbWipeout.d.ts +0 -39
  218. package/lib/entity/AcDbWipeout.d.ts.map +0 -1
  219. package/lib/entity/AcDbWipeout.js +0 -70
  220. package/lib/entity/AcDbWipeout.js.map +0 -1
  221. package/lib/entity/AcDbXline.d.ts +0 -151
  222. package/lib/entity/AcDbXline.d.ts.map +0 -1
  223. package/lib/entity/AcDbXline.js +0 -209
  224. package/lib/entity/AcDbXline.js.map +0 -1
  225. package/lib/entity/dimension/AcDb3PointAngularDimension.d.ts +0 -92
  226. package/lib/entity/dimension/AcDb3PointAngularDimension.d.ts.map +0 -1
  227. package/lib/entity/dimension/AcDb3PointAngularDimension.js +0 -157
  228. package/lib/entity/dimension/AcDb3PointAngularDimension.js.map +0 -1
  229. package/lib/entity/dimension/AcDbAlignedDimension.d.ts +0 -220
  230. package/lib/entity/dimension/AcDbAlignedDimension.d.ts.map +0 -1
  231. package/lib/entity/dimension/AcDbAlignedDimension.js +0 -341
  232. package/lib/entity/dimension/AcDbAlignedDimension.js.map +0 -1
  233. package/lib/entity/dimension/AcDbArcDimension.d.ts +0 -94
  234. package/lib/entity/dimension/AcDbArcDimension.d.ts.map +0 -1
  235. package/lib/entity/dimension/AcDbArcDimension.js +0 -159
  236. package/lib/entity/dimension/AcDbArcDimension.js.map +0 -1
  237. package/lib/entity/dimension/AcDbDiametricDimension.d.ts +0 -145
  238. package/lib/entity/dimension/AcDbDiametricDimension.d.ts.map +0 -1
  239. package/lib/entity/dimension/AcDbDiametricDimension.js +0 -275
  240. package/lib/entity/dimension/AcDbDiametricDimension.js.map +0 -1
  241. package/lib/entity/dimension/AcDbDimension.d.ts +0 -257
  242. package/lib/entity/dimension/AcDbDimension.d.ts.map +0 -1
  243. package/lib/entity/dimension/AcDbDimension.js +0 -466
  244. package/lib/entity/dimension/AcDbDimension.js.map +0 -1
  245. package/lib/entity/dimension/AcDbOrdinateDimension.d.ts +0 -78
  246. package/lib/entity/dimension/AcDbOrdinateDimension.d.ts.map +0 -1
  247. package/lib/entity/dimension/AcDbOrdinateDimension.js +0 -133
  248. package/lib/entity/dimension/AcDbOrdinateDimension.js.map +0 -1
  249. package/lib/entity/dimension/AcDbRadialDimension.d.ts +0 -214
  250. package/lib/entity/dimension/AcDbRadialDimension.d.ts.map +0 -1
  251. package/lib/entity/dimension/AcDbRadialDimension.js +0 -288
  252. package/lib/entity/dimension/AcDbRadialDimension.js.map +0 -1
  253. package/lib/entity/dimension/index.d.ts +0 -8
  254. package/lib/entity/dimension/index.d.ts.map +0 -1
  255. package/lib/entity/dimension/index.js +0 -8
  256. package/lib/entity/dimension/index.js.map +0 -1
  257. package/lib/entity/index.d.ts +0 -24
  258. package/lib/entity/index.d.ts.map +0 -1
  259. package/lib/entity/index.js +0 -24
  260. package/lib/entity/index.js.map +0 -1
  261. package/lib/index.d.ts +0 -10
  262. package/lib/index.d.ts.map +0 -1
  263. package/lib/index.js +0 -10
  264. package/lib/index.js.map +0 -1
  265. package/lib/misc/AcDbAngleUnits.d.ts +0 -20
  266. package/lib/misc/AcDbAngleUnits.d.ts.map +0 -1
  267. package/lib/misc/AcDbAngleUnits.js +0 -21
  268. package/lib/misc/AcDbAngleUnits.js.map +0 -1
  269. package/lib/misc/AcDbCodePage.d.ts +0 -50
  270. package/lib/misc/AcDbCodePage.d.ts.map +0 -1
  271. package/lib/misc/AcDbCodePage.js +0 -100
  272. package/lib/misc/AcDbCodePage.js.map +0 -1
  273. package/lib/misc/AcDbConstants.d.ts +0 -24
  274. package/lib/misc/AcDbConstants.d.ts.map +0 -1
  275. package/lib/misc/AcDbConstants.js +0 -24
  276. package/lib/misc/AcDbConstants.js.map +0 -1
  277. package/lib/misc/AcDbDimArrowType.d.ts +0 -89
  278. package/lib/misc/AcDbDimArrowType.d.ts.map +0 -1
  279. package/lib/misc/AcDbDimArrowType.js +0 -90
  280. package/lib/misc/AcDbDimArrowType.js.map +0 -1
  281. package/lib/misc/AcDbObjectIterator.d.ts +0 -64
  282. package/lib/misc/AcDbObjectIterator.d.ts.map +0 -1
  283. package/lib/misc/AcDbObjectIterator.js +0 -84
  284. package/lib/misc/AcDbObjectIterator.js.map +0 -1
  285. package/lib/misc/AcDbOsnapMode.d.ts +0 -51
  286. package/lib/misc/AcDbOsnapMode.d.ts.map +0 -1
  287. package/lib/misc/AcDbOsnapMode.js +0 -52
  288. package/lib/misc/AcDbOsnapMode.js.map +0 -1
  289. package/lib/misc/AcDbRenderingCache.d.ts +0 -141
  290. package/lib/misc/AcDbRenderingCache.d.ts.map +0 -1
  291. package/lib/misc/AcDbRenderingCache.js +0 -239
  292. package/lib/misc/AcDbRenderingCache.js.map +0 -1
  293. package/lib/misc/AcDbUnitsValue.d.ts +0 -101
  294. package/lib/misc/AcDbUnitsValue.d.ts.map +0 -1
  295. package/lib/misc/AcDbUnitsValue.js +0 -121
  296. package/lib/misc/AcDbUnitsValue.js.map +0 -1
  297. package/lib/misc/index.d.ts +0 -9
  298. package/lib/misc/index.d.ts.map +0 -1
  299. package/lib/misc/index.js +0 -9
  300. package/lib/misc/index.js.map +0 -1
  301. package/lib/object/AcDbDictionary.d.ts +0 -178
  302. package/lib/object/AcDbDictionary.d.ts.map +0 -1
  303. package/lib/object/AcDbDictionary.js +0 -264
  304. package/lib/object/AcDbDictionary.js.map +0 -1
  305. package/lib/object/AcDbRasterImageDef.d.ts +0 -54
  306. package/lib/object/AcDbRasterImageDef.d.ts.map +0 -1
  307. package/lib/object/AcDbRasterImageDef.js +0 -82
  308. package/lib/object/AcDbRasterImageDef.js.map +0 -1
  309. package/lib/object/index.d.ts +0 -4
  310. package/lib/object/index.d.ts.map +0 -1
  311. package/lib/object/index.js +0 -4
  312. package/lib/object/index.js.map +0 -1
  313. package/lib/object/layout/AcDbLayout.d.ts +0 -190
  314. package/lib/object/layout/AcDbLayout.d.ts.map +0 -1
  315. package/lib/object/layout/AcDbLayout.js +0 -253
  316. package/lib/object/layout/AcDbLayout.js.map +0 -1
  317. package/lib/object/layout/AcDbLayoutDictionary.d.ts +0 -47
  318. package/lib/object/layout/AcDbLayoutDictionary.d.ts.map +0 -1
  319. package/lib/object/layout/AcDbLayoutDictionary.js +0 -122
  320. package/lib/object/layout/AcDbLayoutDictionary.js.map +0 -1
  321. package/lib/object/layout/AcDbLayoutManager.d.ts +0 -188
  322. package/lib/object/layout/AcDbLayoutManager.d.ts.map +0 -1
  323. package/lib/object/layout/AcDbLayoutManager.js +0 -245
  324. package/lib/object/layout/AcDbLayoutManager.js.map +0 -1
  325. package/lib/object/layout/index.d.ts +0 -4
  326. package/lib/object/layout/index.d.ts.map +0 -1
  327. package/lib/object/layout/index.js +0 -4
  328. package/lib/object/layout/index.js.map +0 -1
@@ -1,466 +0,0 @@
1
- var __extends = (this && this.__extends) || (function () {
2
- var extendStatics = function (d, b) {
3
- extendStatics = Object.setPrototypeOf ||
4
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
- return extendStatics(d, b);
7
- };
8
- return function (d, b) {
9
- if (typeof b !== "function" && b !== null)
10
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
11
- extendStatics(d, b);
12
- function __() { this.constructor = d; }
13
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14
- };
15
- })();
16
- import { AcGePoint3d } from '@mlightcad/geometry-engine';
17
- import { AcGiArrowType } from '@mlightcad/graphic-interface';
18
- import { AcDbDimStyleTableRecord } from '../../database';
19
- import { AcDbRenderingCache } from '../../misc';
20
- import { AcDbEntity } from '../AcDbEntity';
21
- /**
22
- * Defines the line spacing style for dimension text.
23
- */
24
- export var AcDbLineSpacingStyle;
25
- (function (AcDbLineSpacingStyle) {
26
- /** At least the specified spacing */
27
- AcDbLineSpacingStyle[AcDbLineSpacingStyle["AtLeast"] = 1] = "AtLeast";
28
- /** Exactly the specified spacing */
29
- AcDbLineSpacingStyle[AcDbLineSpacingStyle["Exactly"] = 2] = "Exactly";
30
- })(AcDbLineSpacingStyle || (AcDbLineSpacingStyle = {}));
31
- /**
32
- * Abstract base class for all dimension entity types in AutoCAD.
33
- *
34
- * This class provides the fundamental functionality for all dimension entities,
35
- * including dimension text, style management, arrow handling, and measurement
36
- * calculations. The appearance of dimensions is controlled by dimension variable
37
- * settings and dimension styles.
38
- *
39
- * @example
40
- * ```typescript
41
- * class MyDimension extends AcDbDimension {
42
- * // Implementation for specific dimension type
43
- * draw(renderer: AcGiRenderer) {
44
- * // Custom drawing logic
45
- * }
46
- * }
47
- * ```
48
- */
49
- var AcDbDimension = /** @class */ (function (_super) {
50
- __extends(AcDbDimension, _super);
51
- /**
52
- * Creates a new dimension entity.
53
- *
54
- * This constructor initializes a dimension with default values.
55
- * Subclasses should override this constructor to set up dimension-specific properties.
56
- *
57
- * @example
58
- * ```typescript
59
- * const dimension = new MyDimension();
60
- * dimension.dimensionText = "10.0";
61
- * dimension.textPosition = new AcGePoint3d(5, 5, 0);
62
- * ```
63
- */
64
- function AcDbDimension() {
65
- var _this = _super.call(this) || this;
66
- _this._dimBlockId = null;
67
- _this._dimensionStyleName = null;
68
- _this._dimensionText = null;
69
- _this._textLineSpacingFactor = 1.0;
70
- _this._textLineSpacingStyle = AcDbLineSpacingStyle.AtLeast;
71
- _this._textPosition = new AcGePoint3d();
72
- _this._textRotation = 0;
73
- return _this;
74
- }
75
- Object.defineProperty(AcDbDimension.prototype, "dimBlockId", {
76
- /**
77
- * Gets the block table record ID containing the entities that this dimension displays.
78
- *
79
- * @returns The block table record ID, or null if not set
80
- *
81
- * @example
82
- * ```typescript
83
- * const blockId = dimension.dimBlockId;
84
- * console.log(`Dimension block ID: ${blockId}`);
85
- * ```
86
- */
87
- get: function () {
88
- return this._dimBlockId;
89
- },
90
- /**
91
- * Sets the block table record ID for this dimension.
92
- *
93
- * @param value - The block table record ID, or null to clear
94
- *
95
- * @example
96
- * ```typescript
97
- * dimension.dimBlockId = "MyDimensionBlock";
98
- * ```
99
- */
100
- set: function (value) {
101
- this._dimBlockId = value;
102
- },
103
- enumerable: false,
104
- configurable: true
105
- });
106
- Object.defineProperty(AcDbDimension.prototype, "dimensionStyleName", {
107
- /**
108
- * Gets the dimension style name used by this dimension.
109
- *
110
- * @returns The dimension style name, or null if not set
111
- *
112
- * @example
113
- * ```typescript
114
- * const styleName = dimension.dimensionStyleName;
115
- * console.log(`Dimension style: ${styleName}`);
116
- * ```
117
- */
118
- get: function () {
119
- return this._dimensionStyleName;
120
- },
121
- /**
122
- * Sets the dimension style name for this dimension.
123
- *
124
- * @param value - The dimension style name, or null to use default
125
- *
126
- * @example
127
- * ```typescript
128
- * dimension.dimensionStyleName = "Standard";
129
- * ```
130
- */
131
- set: function (value) {
132
- this._dimensionStyleName = value;
133
- },
134
- enumerable: false,
135
- configurable: true
136
- });
137
- Object.defineProperty(AcDbDimension.prototype, "dimensionStyle", {
138
- /**
139
- * Gets the dimension style used by this dimension.
140
- *
141
- * This method returns the dimension style record associated with this dimension.
142
- * If no style is specified, it returns the default dimension style.
143
- *
144
- * @returns The dimension style record
145
- *
146
- * @example
147
- * ```typescript
148
- * const style = dimension.dimensionStyle;
149
- * console.log(`Style name: ${style.name}`);
150
- * ```
151
- */
152
- get: function () {
153
- if (this._dimStyle == null) {
154
- var dimStyle = undefined;
155
- if (this.dimensionStyleName) {
156
- dimStyle = this.database.tables.dimStyleTable.getAt(this.dimensionStyleName);
157
- }
158
- if (dimStyle == null)
159
- dimStyle = new AcDbDimStyleTableRecord();
160
- this._dimStyle = dimStyle;
161
- }
162
- return this._dimStyle;
163
- },
164
- enumerable: false,
165
- configurable: true
166
- });
167
- Object.defineProperty(AcDbDimension.prototype, "dimensionText", {
168
- /**
169
- * Gets the user-supplied dimension annotation text string.
170
- *
171
- * This string can contain multiline text formatting characters. The text can be:
172
- * - Empty string ('') for default text only
173
- * - Text with angle brackets for mixed default and user text (e.g., 'This is the default text <>')
174
- * - Period ('.') for no text
175
- * - User-defined text only
176
- *
177
- * @returns The dimension text string
178
- *
179
- * @example
180
- * ```typescript
181
- * const text = dimension.dimensionText;
182
- * console.log(`Dimension text: ${text}`);
183
- * ```
184
- */
185
- get: function () {
186
- return this._dimensionText;
187
- },
188
- set: function (value) {
189
- this._dimensionText = value;
190
- },
191
- enumerable: false,
192
- configurable: true
193
- });
194
- Object.defineProperty(AcDbDimension.prototype, "measurement", {
195
- /**
196
- * The current measurement value for this dimension
197
- */
198
- get: function () {
199
- return this._measurement;
200
- },
201
- set: function (value) {
202
- this._measurement = value;
203
- },
204
- enumerable: false,
205
- configurable: true
206
- });
207
- Object.defineProperty(AcDbDimension.prototype, "textLineSpacingFactor", {
208
- /**
209
- * The line spacing factor (a value between 0.25 and 4.00).
210
- */
211
- get: function () {
212
- return this._textLineSpacingFactor;
213
- },
214
- set: function (value) {
215
- this._textLineSpacingFactor = value;
216
- },
217
- enumerable: false,
218
- configurable: true
219
- });
220
- Object.defineProperty(AcDbDimension.prototype, "textLineSpacingStyle", {
221
- /**
222
- * The line spacing style for the dimension.
223
- */
224
- get: function () {
225
- return this._textLineSpacingStyle;
226
- },
227
- set: function (value) {
228
- this._textLineSpacingStyle = value;
229
- },
230
- enumerable: false,
231
- configurable: true
232
- });
233
- Object.defineProperty(AcDbDimension.prototype, "textPosition", {
234
- /**
235
- * The dimension's text position point. This is the middle center point of the text (which is itself an
236
- * MText object with middle-center justification).
237
- */
238
- get: function () {
239
- return this._textPosition;
240
- },
241
- set: function (value) {
242
- this._textPosition.copy(value);
243
- },
244
- enumerable: false,
245
- configurable: true
246
- });
247
- Object.defineProperty(AcDbDimension.prototype, "textRotation", {
248
- /**
249
- * The rotation angle (in radians) of the dimension's annotation text. This is the angle from the
250
- * dimension's horizontal axis to the horizontal axis used by the text. The angle is in the dimension's
251
- * OCS X-Y plane with positive angles going counterclockwise when looking down the OCS Z axis towards
252
- * the OCS origin. The value obtained from: (2 * pi) + the dimension's text rotation angle--the
253
- * dimension's horizontal rotation angle
254
- */
255
- get: function () {
256
- return this._textRotation;
257
- },
258
- set: function (value) {
259
- this._textRotation = value;
260
- },
261
- enumerable: false,
262
- configurable: true
263
- });
264
- /**
265
- * @inheritdoc
266
- */
267
- AcDbDimension.prototype.draw = function (renderer) {
268
- if (this.dimBlockId) {
269
- var blockTableRecord = this.database.tables.blockTable.getAt(this.dimBlockId);
270
- if (blockTableRecord) {
271
- var group_1 = AcDbRenderingCache.instance.draw(renderer, blockTableRecord, this.rgbColor, false);
272
- this.attachEntityInfo(group_1);
273
- return group_1;
274
- }
275
- }
276
- var group = renderer.group([]);
277
- this.attachEntityInfo(group);
278
- return group;
279
- };
280
- AcDbDimension.prototype.drawFirstArrow = function (renderer) {
281
- var blockTableRecord = this.database.tables.blockTable.getAt(this.firstArrowType);
282
- if (blockTableRecord) {
283
- return AcDbRenderingCache.instance.draw(renderer, blockTableRecord, this.rgbColor, false);
284
- }
285
- return undefined;
286
- };
287
- AcDbDimension.prototype.drawSecondArrow = function (renderer) {
288
- var blockTableRecord = this.database.tables.blockTable.getAt(this.secondArrowType);
289
- if (blockTableRecord) {
290
- return AcDbRenderingCache.instance.draw(renderer, blockTableRecord, this.rgbColor, false);
291
- }
292
- return undefined;
293
- };
294
- Object.defineProperty(AcDbDimension.prototype, "arrowScaleFactor", {
295
- get: function () {
296
- var dimStyle = this.dimensionStyle;
297
- // TODO:
298
- // 1. DIMASZ has no effect when DIMTSZ is other than zero.
299
- // 2. Calculate scale factor based on unit
300
- return dimStyle.dimasz;
301
- },
302
- enumerable: false,
303
- configurable: true
304
- });
305
- Object.defineProperty(AcDbDimension.prototype, "firstArrowStyle", {
306
- /**
307
- * Arrow style of the first arrow
308
- */
309
- get: function () {
310
- return {
311
- type: this.firstArrowType,
312
- scale: this.arrowScaleFactor,
313
- appended: this.isAppendArrow,
314
- visible: this.dimensionStyle.dimse1 == 0
315
- };
316
- },
317
- enumerable: false,
318
- configurable: true
319
- });
320
- Object.defineProperty(AcDbDimension.prototype, "secondArrowStyle", {
321
- /**
322
- * Arrow style of the second arrow
323
- */
324
- get: function () {
325
- return {
326
- type: this.secondArrowType,
327
- scale: this.arrowScaleFactor,
328
- appended: this.isAppendArrow,
329
- visible: this.dimensionStyle.dimse2 == 0
330
- };
331
- },
332
- enumerable: false,
333
- configurable: true
334
- });
335
- Object.defineProperty(AcDbDimension.prototype, "isAppendArrow", {
336
- /**
337
- * The flag to determinate how to attach arrow to endpoint of the line.
338
- * - true: append arrow to endpoint of the line
339
- * - false: overlap arrow with endpoint of the line
340
- */
341
- get: function () {
342
- return true;
343
- },
344
- enumerable: false,
345
- configurable: true
346
- });
347
- Object.defineProperty(AcDbDimension.prototype, "firstArrowTypeBtrId", {
348
- /**
349
- * The BTR id associated with the first arrow type
350
- */
351
- get: function () {
352
- var dimStyle = this.dimensionStyle;
353
- return dimStyle.dimsah == 0 ? dimStyle.dimblk : dimStyle.dimblk1;
354
- },
355
- enumerable: false,
356
- configurable: true
357
- });
358
- Object.defineProperty(AcDbDimension.prototype, "firstArrowType", {
359
- /**
360
- * The first arrow type
361
- */
362
- get: function () {
363
- var btrId = this.firstArrowTypeBtrId;
364
- return this.getArrowName(btrId);
365
- },
366
- enumerable: false,
367
- configurable: true
368
- });
369
- Object.defineProperty(AcDbDimension.prototype, "secondArrowTypeBtrId", {
370
- /**
371
- * The BTR id associated with the second arrow type
372
- */
373
- get: function () {
374
- var dimStyle = this.dimensionStyle;
375
- return dimStyle.dimsah == 0 ? dimStyle.dimblk : dimStyle.dimblk2;
376
- },
377
- enumerable: false,
378
- configurable: true
379
- });
380
- Object.defineProperty(AcDbDimension.prototype, "secondArrowType", {
381
- /**
382
- * The second arrow type
383
- */
384
- get: function () {
385
- var btrId = this.secondArrowTypeBtrId;
386
- return this.getArrowName(btrId);
387
- },
388
- enumerable: false,
389
- configurable: true
390
- });
391
- Object.defineProperty(AcDbDimension.prototype, "arrowLineCount", {
392
- /**
393
- * The maximum number of arrow lines of this dimension
394
- */
395
- get: function () {
396
- return 1;
397
- },
398
- enumerable: false,
399
- configurable: true
400
- });
401
- /**
402
- * Get line arrow style of the specified line according to its type (extension line or dimension
403
- * line). Return undefined if no line arrow style applied.
404
- * @param line Input line to get its line style
405
- * @returns Return the line style of the specified line. Return undefined if no line arrow style applied.
406
- */
407
- // @ts-expect-error not use '_' prefix so that typedoc can the correct parameter to generate doc
408
- AcDbDimension.prototype.getLineArrowStyle = function (line) {
409
- return undefined;
410
- };
411
- /**
412
- * Find the point `p3` on a line along the line direction at a distance `length` from `p2`.
413
- *
414
- * @param p1 - The start point of the line.
415
- * @param p2 - The end point of the line.
416
- * @param length - The distance from `p2` to `p3`.
417
- * @returns Return the point `p3`.
418
- */
419
- AcDbDimension.prototype.findPointOnLine1 = function (p1, p2, length) {
420
- // Calculate the direction vector from p1 to p2
421
- var direction = new AcGePoint3d().subVectors(p2, p1).normalize();
422
- // Calculate p3 by moving in the direction from p2 by the specified length
423
- var p3 = new AcGePoint3d(p2).addScaledVector(direction, length);
424
- return p3;
425
- };
426
- /**
427
- * Find the point `p2` on a line starting from `p1` at a specified angle
428
- * and at a distance `length` from `p1`.
429
- *
430
- * @param p1 - The start point of the line.
431
- * @param angle - The angle of the line in radians relative to the x-axis.
432
- * @param length - The distance from `p1` to `p2`.
433
- * @returns Return the point `p2`.
434
- */
435
- AcDbDimension.prototype.findPointOnLine2 = function (p1, angle, length) {
436
- // Calculate the new point p2
437
- var x = p1.x + length * Math.cos(angle);
438
- var y = p1.y + length * Math.sin(angle);
439
- return { x: x, y: y };
440
- };
441
- /**
442
- * Adjust start point and end point of extension line according current dimension style
443
- * @param extensionLine Input extension line to adjust its start point and end point
444
- */
445
- AcDbDimension.prototype.adjustExtensionLine = function (extensionLine) {
446
- var dimStyle = this.dimensionStyle;
447
- extensionLine.extend(dimStyle.dimexe);
448
- extensionLine.extend(-dimStyle.dimexo, true);
449
- };
450
- /**
451
- * Get dimension style name by dimension block id
452
- * @param id Input dimension block id
453
- * @returns Return dimension style name by dimension block id
454
- */
455
- AcDbDimension.prototype.getArrowName = function (id) {
456
- var blockTableRecord = this.database.tables.blockTable.getIdAt(id);
457
- return (blockTableRecord
458
- ? blockTableRecord.name.toUpperCase()
459
- : AcGiArrowType.Closed);
460
- };
461
- /** The entity type name */
462
- AcDbDimension.typeName = 'Dimension';
463
- return AcDbDimension;
464
- }(AcDbEntity));
465
- export { AcDbDimension };
466
- //# sourceMappingURL=AcDbDimension.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AcDbDimension.js","sourceRoot":"","sources":["../../../src/entity/dimension/AcDbDimension.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EAGL,WAAW,EACZ,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAEL,aAAa,EAGd,MAAM,8BAA8B,CAAA;AAGrC,OAAO,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAA;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAG1C;;GAEG;AACH,MAAM,CAAN,IAAY,oBAKX;AALD,WAAY,oBAAoB;IAC9B,qCAAqC;IACrC,qEAAW,CAAA;IACX,oCAAoC;IACpC,qEAAW,CAAA;AACb,CAAC,EALW,oBAAoB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,GAAG,CAAC,KAAK,CAAC,CAAA;QACzC,OAAO,EAAE,CAAC,GAAA,EAAE,CAAC,GAAA,EAAE,CAAA;IACjB,CAAC;IAED;;;OAGG;IACO,2CAAmB,GAA7B,UAA8B,aAAyB;QACrD,IAAM,QAAQ,GAAG,IAAI,CAAC,cAAc,CAAA;QACpC,aAAa,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAA;QACrC,aAAa,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,MAAM,EAAE,IAAI,CAAC,CAAA;IAC9C,CAAC;IAED;;;;OAIG;IACK,oCAAY,GAApB,UAAqB,EAAgB;QACnC,IAAM,gBAAgB,GAAG,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,CAAC,CAAA;QACpE,OAAO,CACL,gBAAgB;YACd,CAAC,CAAC,gBAAgB,CAAC,IAAI,CAAC,WAAW,EAAE;YACrC,CAAC,CAAC,aAAa,CAAC,MAAM,CACR,CAAA;IACpB,CAAC;IApaD,2BAA2B;IACX,sBAAQ,GAAW,WAAW,CAAA;IAoahD,oBAAC;CAAA,AAtaD,CAA4C,UAAU,GAsarD;SAtaqB,aAAa"}
@@ -1,78 +0,0 @@
1
- import { AcGeBox3d, AcGePoint3d, AcGePoint3dLike } from '@mlightcad/geometry-engine';
2
- import { AcDbDimension } from './AcDbDimension';
3
- /**
4
- * Represents an ordinate dimension entity in AutoCAD.
5
- *
6
- * Ordinate dimensions measure the "horizontal" (X axis) or "vertical" (Y axis) distance
7
- * from a specified origin point to some other specified point. They are commonly used
8
- * in mechanical drawings, architectural plans, and other technical documentation where
9
- * precise coordinate measurements are required.
10
- *
11
- * The dimension displays a leader line from the defining point to the leader end point,
12
- * with the annotation text located appropriately near the end of the leader. Ordinate
13
- * dimensions are particularly useful for dimensioning parts with multiple features that
14
- * need to be positioned relative to a common reference point.
15
- */
16
- export declare class AcDbOrdinateDimension extends AcDbDimension {
17
- /** The entity type name */
18
- static typeName: string;
19
- private _definingPoint;
20
- private _leaderEndPoint;
21
- /**
22
- * Creates a new ordinate dimension.
23
- *
24
- * @param definingPoint - The point where the ordinate leader should start. This is
25
- * the point being measured relative to the dimension's origin
26
- * @param leaderEndPoint - The point where the ordinate leader should end. This point
27
- * is used for the dimension leader's endpoint and in text
28
- * position calculations
29
- * @param dimText - Optional custom dimension text to display instead of the calculated
30
- * coordinate value. If null, the calculated coordinate will be displayed
31
- * @param dimStyle - Optional name of the dimension style table record to use for
32
- * formatting. If null, the current default style will be used
33
- */
34
- constructor(definingPoint: AcGePoint3dLike, leaderEndPoint: AcGePoint3dLike, dimText?: string | null, dimStyle?: string | null);
35
- /**
36
- * Gets or sets the ordinate point to be measured.
37
- *
38
- * This is the point (in WCS coordinates) that defines the location being measured.
39
- * The dimension measures the X or Y distance between this point and the dimension's
40
- * origin point, depending on the orientation of the ordinate dimension.
41
- *
42
- * @returns The defining point of the ordinate dimension
43
- */
44
- get definingPoint(): AcGePoint3d;
45
- set definingPoint(value: AcGePoint3d);
46
- /**
47
- * Gets or sets the leader end point.
48
- *
49
- * This point is used as the dimension leader's endpoint and is used in the text
50
- * position calculations. It determines where the leader line ends and where the
51
- * dimension text is positioned relative to the leader.
52
- *
53
- * @returns The leader end point of the ordinate dimension
54
- */
55
- get leaderEndPoint(): AcGePoint3d;
56
- set leaderEndPoint(value: AcGePoint3d);
57
- /**
58
- * Gets the geometric extents (bounding box) of this dimension entity.
59
- *
60
- * The geometric extents define the minimum bounding box that completely contains
61
- * the dimension entity, including all its components like the leader line and text.
62
- *
63
- * @returns A 3D bounding box containing the dimension entity
64
- * @inheritdoc
65
- */
66
- get geometricExtents(): AcGeBox3d;
67
- /**
68
- * Gets the number of arrow lines for this dimension.
69
- *
70
- * Ordinate dimensions typically don't use arrows since they are coordinate-based
71
- * measurements rather than distance measurements between two points.
72
- *
73
- * @returns The number of arrow lines (always 0 for ordinate dimensions)
74
- * @inheritdoc
75
- */
76
- protected get arrowLineCount(): number;
77
- }
78
- //# sourceMappingURL=AcDbOrdinateDimension.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AcDbOrdinateDimension.d.ts","sourceRoot":"","sources":["../../../src/entity/dimension/AcDbOrdinateDimension.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,WAAW,EACX,eAAe,EAChB,MAAM,4BAA4B,CAAA;AAEnC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAE/C;;;;;;;;;;;;GAYG;AACH,qBAAa,qBAAsB,SAAQ,aAAa;IACtD,2BAA2B;IAC3B,OAAgB,QAAQ,EAAE,MAAM,CAAsB;IAEtD,OAAO,CAAC,cAAc,CAAa;IACnC,OAAO,CAAC,eAAe,CAAa;IAEpC;;;;;;;;;;;;OAYG;gBAED,aAAa,EAAE,eAAe,EAC9B,cAAc,EAAE,eAAe,EAC/B,OAAO,GAAE,MAAM,GAAG,IAAW,EAC7B,QAAQ,GAAE,MAAM,GAAG,IAAW;IAWhC;;;;;;;;OAQG;IACH,IAAI,aAAa,IAGQ,WAAW,CADnC;IACD,IAAI,aAAa,CAAC,KAAK,EAAE,WAAW,EAEnC;IAED;;;;;;;;OAQG;IACH,IAAI,cAAc,IAGQ,WAAW,CADpC;IACD,IAAI,cAAc,CAAC,KAAK,EAAE,WAAW,EAEpC;IAED;;;;;;;;OAQG;IACH,IAAI,gBAAgB,cAGnB;IAED;;;;;;;;OAQG;IACH,SAAS,KAAK,cAAc,WAE3B;CACF"}