@mlightcad/data-model 1.3.0 → 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 (324) hide show
  1. package/package.json +4 -4
  2. package/dist/data-model.cjs +0 -5
  3. package/dist/data-model.js +0 -25305
  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 -872
  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 -83
  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/index.d.ts +0 -4
  38. package/lib/converter/index.d.ts.map +0 -1
  39. package/lib/converter/index.js +0 -4
  40. package/lib/converter/index.js.map +0 -1
  41. package/lib/converter/worker/AcDbBaseWorker.d.ts +0 -36
  42. package/lib/converter/worker/AcDbBaseWorker.d.ts.map +0 -1
  43. package/lib/converter/worker/AcDbBaseWorker.js +0 -93
  44. package/lib/converter/worker/AcDbBaseWorker.js.map +0 -1
  45. package/lib/converter/worker/AcDbDxfParserWorker.d.ts +0 -11
  46. package/lib/converter/worker/AcDbDxfParserWorker.d.ts.map +0 -1
  47. package/lib/converter/worker/AcDbDxfParserWorker.js +0 -75
  48. package/lib/converter/worker/AcDbDxfParserWorker.js.map +0 -1
  49. package/lib/converter/worker/AcDbWorkerManager.d.ts +0 -107
  50. package/lib/converter/worker/AcDbWorkerManager.d.ts.map +0 -1
  51. package/lib/converter/worker/AcDbWorkerManager.js +0 -360
  52. package/lib/converter/worker/AcDbWorkerManager.js.map +0 -1
  53. package/lib/converter/worker/index.d.ts +0 -3
  54. package/lib/converter/worker/index.d.ts.map +0 -1
  55. package/lib/converter/worker/index.js +0 -3
  56. package/lib/converter/worker/index.js.map +0 -1
  57. package/lib/database/AcDbBlockTable.d.ts +0 -56
  58. package/lib/database/AcDbBlockTable.d.ts.map +0 -1
  59. package/lib/database/AcDbBlockTable.js +0 -98
  60. package/lib/database/AcDbBlockTable.js.map +0 -1
  61. package/lib/database/AcDbBlockTableRecord.d.ts +0 -185
  62. package/lib/database/AcDbBlockTableRecord.d.ts.map +0 -1
  63. package/lib/database/AcDbBlockTableRecord.js +0 -261
  64. package/lib/database/AcDbBlockTableRecord.js.map +0 -1
  65. package/lib/database/AcDbDatabase.d.ts +0 -575
  66. package/lib/database/AcDbDatabase.d.ts.map +0 -1
  67. package/lib/database/AcDbDatabase.js +0 -833
  68. package/lib/database/AcDbDatabase.js.map +0 -1
  69. package/lib/database/AcDbDatabaseConverter.d.ts +0 -292
  70. package/lib/database/AcDbDatabaseConverter.d.ts.map +0 -1
  71. package/lib/database/AcDbDatabaseConverter.js +0 -447
  72. package/lib/database/AcDbDatabaseConverter.js.map +0 -1
  73. package/lib/database/AcDbDatabaseConverterManager.d.ts +0 -141
  74. package/lib/database/AcDbDatabaseConverterManager.d.ts.map +0 -1
  75. package/lib/database/AcDbDatabaseConverterManager.js +0 -173
  76. package/lib/database/AcDbDatabaseConverterManager.js.map +0 -1
  77. package/lib/database/AcDbDimStyleTable.d.ts +0 -31
  78. package/lib/database/AcDbDimStyleTable.d.ts.map +0 -1
  79. package/lib/database/AcDbDimStyleTable.js +0 -49
  80. package/lib/database/AcDbDimStyleTable.js.map +0 -1
  81. package/lib/database/AcDbDimStyleTableRecord.d.ts +0 -797
  82. package/lib/database/AcDbDimStyleTableRecord.d.ts.map +0 -1
  83. package/lib/database/AcDbDimStyleTableRecord.js +0 -1294
  84. package/lib/database/AcDbDimStyleTableRecord.js.map +0 -1
  85. package/lib/database/AcDbDwgVersion.d.ts +0 -32
  86. package/lib/database/AcDbDwgVersion.d.ts.map +0 -1
  87. package/lib/database/AcDbDwgVersion.js +0 -76
  88. package/lib/database/AcDbDwgVersion.js.map +0 -1
  89. package/lib/database/AcDbLayerTable.d.ts +0 -51
  90. package/lib/database/AcDbLayerTable.d.ts.map +0 -1
  91. package/lib/database/AcDbLayerTable.js +0 -92
  92. package/lib/database/AcDbLayerTable.js.map +0 -1
  93. package/lib/database/AcDbLayerTableRecord.d.ts +0 -278
  94. package/lib/database/AcDbLayerTableRecord.d.ts.map +0 -1
  95. package/lib/database/AcDbLayerTableRecord.js +0 -397
  96. package/lib/database/AcDbLayerTableRecord.js.map +0 -1
  97. package/lib/database/AcDbLinetypeTable.d.ts +0 -30
  98. package/lib/database/AcDbLinetypeTable.d.ts.map +0 -1
  99. package/lib/database/AcDbLinetypeTable.js +0 -48
  100. package/lib/database/AcDbLinetypeTable.js.map +0 -1
  101. package/lib/database/AcDbLinetypeTableRecord.d.ts +0 -79
  102. package/lib/database/AcDbLinetypeTableRecord.d.ts.map +0 -1
  103. package/lib/database/AcDbLinetypeTableRecord.js +0 -129
  104. package/lib/database/AcDbLinetypeTableRecord.js.map +0 -1
  105. package/lib/database/AcDbSymbolTable.d.ts +0 -199
  106. package/lib/database/AcDbSymbolTable.d.ts.map +0 -1
  107. package/lib/database/AcDbSymbolTable.js +0 -264
  108. package/lib/database/AcDbSymbolTable.js.map +0 -1
  109. package/lib/database/AcDbSymbolTableRecord.d.ts +0 -61
  110. package/lib/database/AcDbSymbolTableRecord.d.ts.map +0 -1
  111. package/lib/database/AcDbSymbolTableRecord.js +0 -82
  112. package/lib/database/AcDbSymbolTableRecord.js.map +0 -1
  113. package/lib/database/AcDbTextStyleTable.d.ts +0 -48
  114. package/lib/database/AcDbTextStyleTable.d.ts.map +0 -1
  115. package/lib/database/AcDbTextStyleTable.js +0 -112
  116. package/lib/database/AcDbTextStyleTable.js.map +0 -1
  117. package/lib/database/AcDbTextStyleTableRecord.d.ts +0 -179
  118. package/lib/database/AcDbTextStyleTableRecord.d.ts.map +0 -1
  119. package/lib/database/AcDbTextStyleTableRecord.js +0 -276
  120. package/lib/database/AcDbTextStyleTableRecord.js.map +0 -1
  121. package/lib/database/AcDbViewportTable.d.ts +0 -31
  122. package/lib/database/AcDbViewportTable.d.ts.map +0 -1
  123. package/lib/database/AcDbViewportTable.js +0 -49
  124. package/lib/database/AcDbViewportTable.js.map +0 -1
  125. package/lib/database/AcDbViewportTableRecord.d.ts +0 -154
  126. package/lib/database/AcDbViewportTableRecord.d.ts.map +0 -1
  127. package/lib/database/AcDbViewportTableRecord.js +0 -318
  128. package/lib/database/AcDbViewportTableRecord.js.map +0 -1
  129. package/lib/database/index.d.ts +0 -19
  130. package/lib/database/index.d.ts.map +0 -1
  131. package/lib/database/index.js +0 -19
  132. package/lib/database/index.js.map +0 -1
  133. package/lib/entity/AcDbArc.d.ts +0 -254
  134. package/lib/entity/AcDbArc.d.ts.map +0 -1
  135. package/lib/entity/AcDbArc.js +0 -340
  136. package/lib/entity/AcDbArc.js.map +0 -1
  137. package/lib/entity/AcDbBlockReference.d.ts +0 -190
  138. package/lib/entity/AcDbBlockReference.d.ts.map +0 -1
  139. package/lib/entity/AcDbBlockReference.js +0 -302
  140. package/lib/entity/AcDbBlockReference.js.map +0 -1
  141. package/lib/entity/AcDbCircle.d.ts +0 -186
  142. package/lib/entity/AcDbCircle.d.ts.map +0 -1
  143. package/lib/entity/AcDbCircle.js +0 -249
  144. package/lib/entity/AcDbCircle.js.map +0 -1
  145. package/lib/entity/AcDbCurve.d.ts +0 -42
  146. package/lib/entity/AcDbCurve.d.ts.map +0 -1
  147. package/lib/entity/AcDbCurve.js +0 -44
  148. package/lib/entity/AcDbCurve.js.map +0 -1
  149. package/lib/entity/AcDbEllipse.d.ts +0 -207
  150. package/lib/entity/AcDbEllipse.d.ts.map +0 -1
  151. package/lib/entity/AcDbEllipse.js +0 -272
  152. package/lib/entity/AcDbEllipse.js.map +0 -1
  153. package/lib/entity/AcDbEntity.d.ts +0 -385
  154. package/lib/entity/AcDbEntity.d.ts.map +0 -1
  155. package/lib/entity/AcDbEntity.js +0 -561
  156. package/lib/entity/AcDbEntity.js.map +0 -1
  157. package/lib/entity/AcDbFace.d.ts +0 -151
  158. package/lib/entity/AcDbFace.d.ts.map +0 -1
  159. package/lib/entity/AcDbFace.js +0 -224
  160. package/lib/entity/AcDbFace.js.map +0 -1
  161. package/lib/entity/AcDbHatch.d.ts +0 -174
  162. package/lib/entity/AcDbHatch.d.ts.map +0 -1
  163. package/lib/entity/AcDbHatch.js +0 -250
  164. package/lib/entity/AcDbHatch.js.map +0 -1
  165. package/lib/entity/AcDbLeader.d.ts +0 -243
  166. package/lib/entity/AcDbLeader.d.ts.map +0 -1
  167. package/lib/entity/AcDbLeader.js +0 -358
  168. package/lib/entity/AcDbLeader.js.map +0 -1
  169. package/lib/entity/AcDbLine.d.ts +0 -198
  170. package/lib/entity/AcDbLine.d.ts.map +0 -1
  171. package/lib/entity/AcDbLine.js +0 -300
  172. package/lib/entity/AcDbLine.js.map +0 -1
  173. package/lib/entity/AcDbMText.d.ts +0 -248
  174. package/lib/entity/AcDbMText.d.ts.map +0 -1
  175. package/lib/entity/AcDbMText.js +0 -414
  176. package/lib/entity/AcDbMText.js.map +0 -1
  177. package/lib/entity/AcDbPoint.d.ts +0 -113
  178. package/lib/entity/AcDbPoint.d.ts.map +0 -1
  179. package/lib/entity/AcDbPoint.js +0 -155
  180. package/lib/entity/AcDbPoint.js.map +0 -1
  181. package/lib/entity/AcDbPolyline.d.ts +0 -221
  182. package/lib/entity/AcDbPolyline.d.ts.map +0 -1
  183. package/lib/entity/AcDbPolyline.js +0 -301
  184. package/lib/entity/AcDbPolyline.js.map +0 -1
  185. package/lib/entity/AcDbRasterImage.d.ts +0 -216
  186. package/lib/entity/AcDbRasterImage.d.ts.map +0 -1
  187. package/lib/entity/AcDbRasterImage.js +0 -451
  188. package/lib/entity/AcDbRasterImage.js.map +0 -1
  189. package/lib/entity/AcDbRay.d.ts +0 -150
  190. package/lib/entity/AcDbRay.d.ts.map +0 -1
  191. package/lib/entity/AcDbRay.js +0 -208
  192. package/lib/entity/AcDbRay.js.map +0 -1
  193. package/lib/entity/AcDbSpline.d.ts +0 -135
  194. package/lib/entity/AcDbSpline.d.ts.map +0 -1
  195. package/lib/entity/AcDbSpline.js +0 -142
  196. package/lib/entity/AcDbSpline.js.map +0 -1
  197. package/lib/entity/AcDbTable.d.ts +0 -260
  198. package/lib/entity/AcDbTable.d.ts.map +0 -1
  199. package/lib/entity/AcDbTable.js +0 -452
  200. package/lib/entity/AcDbTable.js.map +0 -1
  201. package/lib/entity/AcDbText.d.ts +0 -388
  202. package/lib/entity/AcDbText.d.ts.map +0 -1
  203. package/lib/entity/AcDbText.js +0 -523
  204. package/lib/entity/AcDbText.js.map +0 -1
  205. package/lib/entity/AcDbTrace.d.ts +0 -193
  206. package/lib/entity/AcDbTrace.d.ts.map +0 -1
  207. package/lib/entity/AcDbTrace.js +0 -271
  208. package/lib/entity/AcDbTrace.js.map +0 -1
  209. package/lib/entity/AcDbViewport.d.ts +0 -173
  210. package/lib/entity/AcDbViewport.d.ts.map +0 -1
  211. package/lib/entity/AcDbViewport.js +0 -295
  212. package/lib/entity/AcDbViewport.js.map +0 -1
  213. package/lib/entity/AcDbWipeout.d.ts +0 -39
  214. package/lib/entity/AcDbWipeout.d.ts.map +0 -1
  215. package/lib/entity/AcDbWipeout.js +0 -70
  216. package/lib/entity/AcDbWipeout.js.map +0 -1
  217. package/lib/entity/AcDbXline.d.ts +0 -151
  218. package/lib/entity/AcDbXline.d.ts.map +0 -1
  219. package/lib/entity/AcDbXline.js +0 -209
  220. package/lib/entity/AcDbXline.js.map +0 -1
  221. package/lib/entity/dimension/AcDb3PointAngularDimension.d.ts +0 -92
  222. package/lib/entity/dimension/AcDb3PointAngularDimension.d.ts.map +0 -1
  223. package/lib/entity/dimension/AcDb3PointAngularDimension.js +0 -157
  224. package/lib/entity/dimension/AcDb3PointAngularDimension.js.map +0 -1
  225. package/lib/entity/dimension/AcDbAlignedDimension.d.ts +0 -220
  226. package/lib/entity/dimension/AcDbAlignedDimension.d.ts.map +0 -1
  227. package/lib/entity/dimension/AcDbAlignedDimension.js +0 -341
  228. package/lib/entity/dimension/AcDbAlignedDimension.js.map +0 -1
  229. package/lib/entity/dimension/AcDbArcDimension.d.ts +0 -94
  230. package/lib/entity/dimension/AcDbArcDimension.d.ts.map +0 -1
  231. package/lib/entity/dimension/AcDbArcDimension.js +0 -159
  232. package/lib/entity/dimension/AcDbArcDimension.js.map +0 -1
  233. package/lib/entity/dimension/AcDbDiametricDimension.d.ts +0 -145
  234. package/lib/entity/dimension/AcDbDiametricDimension.d.ts.map +0 -1
  235. package/lib/entity/dimension/AcDbDiametricDimension.js +0 -275
  236. package/lib/entity/dimension/AcDbDiametricDimension.js.map +0 -1
  237. package/lib/entity/dimension/AcDbDimension.d.ts +0 -257
  238. package/lib/entity/dimension/AcDbDimension.d.ts.map +0 -1
  239. package/lib/entity/dimension/AcDbDimension.js +0 -466
  240. package/lib/entity/dimension/AcDbDimension.js.map +0 -1
  241. package/lib/entity/dimension/AcDbOrdinateDimension.d.ts +0 -78
  242. package/lib/entity/dimension/AcDbOrdinateDimension.d.ts.map +0 -1
  243. package/lib/entity/dimension/AcDbOrdinateDimension.js +0 -133
  244. package/lib/entity/dimension/AcDbOrdinateDimension.js.map +0 -1
  245. package/lib/entity/dimension/AcDbRadialDimension.d.ts +0 -214
  246. package/lib/entity/dimension/AcDbRadialDimension.d.ts.map +0 -1
  247. package/lib/entity/dimension/AcDbRadialDimension.js +0 -288
  248. package/lib/entity/dimension/AcDbRadialDimension.js.map +0 -1
  249. package/lib/entity/dimension/index.d.ts +0 -8
  250. package/lib/entity/dimension/index.d.ts.map +0 -1
  251. package/lib/entity/dimension/index.js +0 -8
  252. package/lib/entity/dimension/index.js.map +0 -1
  253. package/lib/entity/index.d.ts +0 -24
  254. package/lib/entity/index.d.ts.map +0 -1
  255. package/lib/entity/index.js +0 -24
  256. package/lib/entity/index.js.map +0 -1
  257. package/lib/index.d.ts +0 -10
  258. package/lib/index.d.ts.map +0 -1
  259. package/lib/index.js +0 -10
  260. package/lib/index.js.map +0 -1
  261. package/lib/misc/AcDbAngleUnits.d.ts +0 -20
  262. package/lib/misc/AcDbAngleUnits.d.ts.map +0 -1
  263. package/lib/misc/AcDbAngleUnits.js +0 -21
  264. package/lib/misc/AcDbAngleUnits.js.map +0 -1
  265. package/lib/misc/AcDbCodePage.d.ts +0 -50
  266. package/lib/misc/AcDbCodePage.d.ts.map +0 -1
  267. package/lib/misc/AcDbCodePage.js +0 -100
  268. package/lib/misc/AcDbCodePage.js.map +0 -1
  269. package/lib/misc/AcDbConstants.d.ts +0 -24
  270. package/lib/misc/AcDbConstants.d.ts.map +0 -1
  271. package/lib/misc/AcDbConstants.js +0 -24
  272. package/lib/misc/AcDbConstants.js.map +0 -1
  273. package/lib/misc/AcDbDimArrowType.d.ts +0 -89
  274. package/lib/misc/AcDbDimArrowType.d.ts.map +0 -1
  275. package/lib/misc/AcDbDimArrowType.js +0 -90
  276. package/lib/misc/AcDbDimArrowType.js.map +0 -1
  277. package/lib/misc/AcDbObjectIterator.d.ts +0 -55
  278. package/lib/misc/AcDbObjectIterator.d.ts.map +0 -1
  279. package/lib/misc/AcDbObjectIterator.js +0 -67
  280. package/lib/misc/AcDbObjectIterator.js.map +0 -1
  281. package/lib/misc/AcDbOsnapMode.d.ts +0 -51
  282. package/lib/misc/AcDbOsnapMode.d.ts.map +0 -1
  283. package/lib/misc/AcDbOsnapMode.js +0 -52
  284. package/lib/misc/AcDbOsnapMode.js.map +0 -1
  285. package/lib/misc/AcDbRenderingCache.d.ts +0 -141
  286. package/lib/misc/AcDbRenderingCache.d.ts.map +0 -1
  287. package/lib/misc/AcDbRenderingCache.js +0 -239
  288. package/lib/misc/AcDbRenderingCache.js.map +0 -1
  289. package/lib/misc/AcDbUnitsValue.d.ts +0 -101
  290. package/lib/misc/AcDbUnitsValue.d.ts.map +0 -1
  291. package/lib/misc/AcDbUnitsValue.js +0 -121
  292. package/lib/misc/AcDbUnitsValue.js.map +0 -1
  293. package/lib/misc/index.d.ts +0 -9
  294. package/lib/misc/index.d.ts.map +0 -1
  295. package/lib/misc/index.js +0 -9
  296. package/lib/misc/index.js.map +0 -1
  297. package/lib/object/AcDbDictionary.d.ts +0 -178
  298. package/lib/object/AcDbDictionary.d.ts.map +0 -1
  299. package/lib/object/AcDbDictionary.js +0 -264
  300. package/lib/object/AcDbDictionary.js.map +0 -1
  301. package/lib/object/AcDbRasterImageDef.d.ts +0 -54
  302. package/lib/object/AcDbRasterImageDef.d.ts.map +0 -1
  303. package/lib/object/AcDbRasterImageDef.js +0 -82
  304. package/lib/object/AcDbRasterImageDef.js.map +0 -1
  305. package/lib/object/index.d.ts +0 -4
  306. package/lib/object/index.d.ts.map +0 -1
  307. package/lib/object/index.js +0 -4
  308. package/lib/object/index.js.map +0 -1
  309. package/lib/object/layout/AcDbLayout.d.ts +0 -190
  310. package/lib/object/layout/AcDbLayout.d.ts.map +0 -1
  311. package/lib/object/layout/AcDbLayout.js +0 -253
  312. package/lib/object/layout/AcDbLayout.js.map +0 -1
  313. package/lib/object/layout/AcDbLayoutDictionary.d.ts +0 -47
  314. package/lib/object/layout/AcDbLayoutDictionary.d.ts.map +0 -1
  315. package/lib/object/layout/AcDbLayoutDictionary.js +0 -122
  316. package/lib/object/layout/AcDbLayoutDictionary.js.map +0 -1
  317. package/lib/object/layout/AcDbLayoutManager.d.ts +0 -188
  318. package/lib/object/layout/AcDbLayoutManager.d.ts.map +0 -1
  319. package/lib/object/layout/AcDbLayoutManager.js +0 -245
  320. package/lib/object/layout/AcDbLayoutManager.js.map +0 -1
  321. package/lib/object/layout/index.d.ts +0 -4
  322. package/lib/object/layout/index.d.ts.map +0 -1
  323. package/lib/object/layout/index.js +0 -4
  324. package/lib/object/layout/index.js.map +0 -1
@@ -1,358 +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 { AcGeBox3d, AcGePoint3d, AcGeSpline3d } from '@mlightcad/geometry-engine';
17
- import { AcDbCurve } from './AcDbCurve';
18
- /**
19
- * Defines the annotation type for leader entities.
20
- */
21
- export var AcDbLeaderAnnotationType;
22
- (function (AcDbLeaderAnnotationType) {
23
- /** Multiline text annotation */
24
- AcDbLeaderAnnotationType[AcDbLeaderAnnotationType["MText"] = 0] = "MText";
25
- /** Feature control frame annotation */
26
- AcDbLeaderAnnotationType[AcDbLeaderAnnotationType["Fcf"] = 1] = "Fcf";
27
- /** Block reference annotation */
28
- AcDbLeaderAnnotationType[AcDbLeaderAnnotationType["BlockReference"] = 2] = "BlockReference";
29
- /** No annotation */
30
- AcDbLeaderAnnotationType[AcDbLeaderAnnotationType["NoAnnotation"] = 3] = "NoAnnotation";
31
- })(AcDbLeaderAnnotationType || (AcDbLeaderAnnotationType = {}));
32
- /**
33
- * Represents a leader entity in AutoCAD.
34
- *
35
- * A leader is a dimension-like entity that consists of a line or spline with an arrowhead
36
- * pointing to a specific object or location, and an annotation (text, block, or feature
37
- * control frame) at the other end. Leaders are controlled by dimension variable settings
38
- * and dimension styles.
39
- *
40
- * @example
41
- * ```typescript
42
- * // Create a leader entity
43
- * const leader = new AcDbLeader();
44
- * leader.appendVertex(new AcGePoint3d(0, 0, 0));
45
- * leader.appendVertex(new AcGePoint3d(5, 5, 0));
46
- * leader.appendVertex(new AcGePoint3d(10, 5, 0));
47
- * leader.hasArrowHead = true;
48
- * leader.hasHookLine = true;
49
- * leader.annoType = AcDbLeaderAnnotationType.MText;
50
- *
51
- * // Access leader properties
52
- * console.log(`Number of vertices: ${leader.numVertices}`);
53
- * console.log(`Has arrow head: ${leader.hasArrowHead}`);
54
- * console.log(`Has hook line: ${leader.hasHookLine}`);
55
- * ```
56
- */
57
- var AcDbLeader = /** @class */ (function (_super) {
58
- __extends(AcDbLeader, _super);
59
- /**
60
- * Creates a new leader entity.
61
- *
62
- * This constructor initializes a leader with default values.
63
- * The leader is not spline-fit, has no arrowhead, no hook line,
64
- * and no annotation type.
65
- *
66
- * @example
67
- * ```typescript
68
- * const leader = new AcDbLeader();
69
- * leader.appendVertex(new AcGePoint3d(0, 0, 0));
70
- * leader.appendVertex(new AcGePoint3d(5, 5, 0));
71
- * ```
72
- */
73
- function AcDbLeader() {
74
- var _this = _super.call(this) || this;
75
- _this._isSplined = false;
76
- _this._updated = false;
77
- _this._hasArrowHead = false;
78
- _this._vertices = [];
79
- _this._dimensionStyle = '';
80
- _this._hasHookLine = false;
81
- _this._annoType = AcDbLeaderAnnotationType.NoAnnotation;
82
- return _this;
83
- }
84
- Object.defineProperty(AcDbLeader.prototype, "isSplined", {
85
- /**
86
- * Gets whether this leader is spline-fit.
87
- *
88
- * @returns True if the leader is spline-fit, false otherwise
89
- *
90
- * @example
91
- * ```typescript
92
- * const isSplined = leader.isSplined;
93
- * console.log(`Leader is spline-fit: ${isSplined}`);
94
- * ```
95
- */
96
- get: function () {
97
- return this._isSplined;
98
- },
99
- /**
100
- * Sets whether this leader is spline-fit.
101
- *
102
- * @param value - True to make the leader spline-fit, false otherwise
103
- *
104
- * @example
105
- * ```typescript
106
- * leader.isSplined = true;
107
- * ```
108
- */
109
- set: function (value) {
110
- this._isSplined = value;
111
- },
112
- enumerable: false,
113
- configurable: true
114
- });
115
- Object.defineProperty(AcDbLeader.prototype, "hasArrowHead", {
116
- /**
117
- * Gets whether this leader has an arrowhead.
118
- *
119
- * @returns True if the leader has an arrowhead, false otherwise
120
- *
121
- * @example
122
- * ```typescript
123
- * const hasArrowHead = leader.hasArrowHead;
124
- * console.log(`Leader has arrowhead: ${hasArrowHead}`);
125
- * ```
126
- */
127
- get: function () {
128
- return this._hasArrowHead;
129
- },
130
- /**
131
- * Sets whether this leader has an arrowhead.
132
- *
133
- * @param value - True to enable arrowhead, false to disable
134
- *
135
- * @example
136
- * ```typescript
137
- * leader.hasArrowHead = true;
138
- * ```
139
- */
140
- set: function (value) {
141
- this._hasArrowHead = value;
142
- },
143
- enumerable: false,
144
- configurable: true
145
- });
146
- Object.defineProperty(AcDbLeader.prototype, "hasHookLine", {
147
- /**
148
- * Gets whether this leader has a hook line.
149
- *
150
- * The "hookline" is the small horizontal line at the end of the leader line
151
- * just before the annotation.
152
- *
153
- * @returns True if the leader has a hook line, false otherwise
154
- *
155
- * @example
156
- * ```typescript
157
- * const hasHookLine = leader.hasHookLine;
158
- * console.log(`Leader has hook line: ${hasHookLine}`);
159
- * ```
160
- */
161
- get: function () {
162
- return this._hasHookLine;
163
- },
164
- /**
165
- * Sets whether this leader has a hook line.
166
- *
167
- * @param value - True to enable hook line, false to disable
168
- *
169
- * @example
170
- * ```typescript
171
- * leader.hasHookLine = true;
172
- * ```
173
- */
174
- set: function (value) {
175
- this._hasHookLine = value;
176
- },
177
- enumerable: false,
178
- configurable: true
179
- });
180
- Object.defineProperty(AcDbLeader.prototype, "numVertices", {
181
- /**
182
- * Gets the number of vertices in the leader's vertex list.
183
- *
184
- * @returns The number of vertices
185
- *
186
- * @example
187
- * ```typescript
188
- * const numVertices = leader.numVertices;
189
- * console.log(`Number of vertices: ${numVertices}`);
190
- * ```
191
- */
192
- get: function () {
193
- return this._vertices.length;
194
- },
195
- enumerable: false,
196
- configurable: true
197
- });
198
- Object.defineProperty(AcDbLeader.prototype, "dimensionStyle", {
199
- /**
200
- * Gets the dimension style applied to this leader.
201
- *
202
- * @returns The dimension style name
203
- *
204
- * @example
205
- * ```typescript
206
- * const dimensionStyle = leader.dimensionStyle;
207
- * console.log(`Dimension style: ${dimensionStyle}`);
208
- * ```
209
- */
210
- get: function () {
211
- return this._dimensionStyle;
212
- },
213
- /**
214
- * Sets the dimension style applied to this leader.
215
- *
216
- * @param value - The new dimension style name
217
- *
218
- * @example
219
- * ```typescript
220
- * leader.dimensionStyle = "Standard";
221
- * ```
222
- */
223
- set: function (value) {
224
- this._dimensionStyle = value;
225
- },
226
- enumerable: false,
227
- configurable: true
228
- });
229
- Object.defineProperty(AcDbLeader.prototype, "annoType", {
230
- /**
231
- * Gets the leader's annotation type.
232
- *
233
- * @returns The annotation type
234
- *
235
- * @example
236
- * ```typescript
237
- * const annoType = leader.annoType;
238
- * console.log(`Annotation type: ${annoType}`);
239
- * ```
240
- */
241
- get: function () {
242
- return this._annoType;
243
- },
244
- /**
245
- * Sets the leader's annotation type.
246
- *
247
- * @param value - The new annotation type
248
- *
249
- * @example
250
- * ```typescript
251
- * leader.annoType = AcDbLeaderAnnotationType.MText;
252
- * ```
253
- */
254
- set: function (value) {
255
- this._annoType = value;
256
- },
257
- enumerable: false,
258
- configurable: true
259
- });
260
- /**
261
- * Appends vertex to the end of the vertex list for this leader. If vertex is not in the plane of the
262
- * leader, then it will be projected parallel the leader's normal onto the leader's plane and the
263
- * projection will be appended to the leader's vertex list. If the new vertex is too close to the one
264
- * next to it (that is, within 1.e-10 for X, Y, and Z), the new vertex will not be appended.
265
- * @param point Input point (in WCS coordinates) to add to the vertex list
266
- */
267
- AcDbLeader.prototype.appendVertex = function (point) {
268
- this._vertices.push(new AcGePoint3d().copy(point));
269
- this._updated = true;
270
- };
271
- /**
272
- * Reset the vertex at index to the point point projected (along the plane normal) onto the plane
273
- * containing the leader. It doesn't reset the vertex if that would cause one of the segments to
274
- * become zero length (within 1e-10).
275
- * @param index Input index number (0 based) of the vertex to change
276
- * @param point Input new point value (in WCS) to use
277
- */
278
- AcDbLeader.prototype.setVertexAt = function (index, point) {
279
- if (index < 0 || index >= this._vertices.length) {
280
- // TODO: Project the point onto the plane containing the leader
281
- this._vertices[index].copy(point);
282
- this._updated = true;
283
- }
284
- throw new Error('The vertex index is out of range!');
285
- };
286
- /**
287
- * Get the point that is the vertex at the location index (0 based) in this leader's vertex array.
288
- * @param index Input index number (0 based) of the vertex desired
289
- */
290
- AcDbLeader.prototype.vertexAt = function (index) {
291
- if (index < 0 || index >= this._vertices.length) {
292
- this._vertices[index];
293
- }
294
- throw new Error('The vertex index is out of range!');
295
- };
296
- Object.defineProperty(AcDbLeader.prototype, "geometricExtents", {
297
- /**
298
- * @inheritdoc
299
- */
300
- get: function () {
301
- if (this._isSplined && this.splineGeo) {
302
- return this.splineGeo.calculateBoundingBox();
303
- }
304
- else {
305
- var box = new AcGeBox3d();
306
- return box.setFromPoints(this._vertices);
307
- }
308
- },
309
- enumerable: false,
310
- configurable: true
311
- });
312
- Object.defineProperty(AcDbLeader.prototype, "closed", {
313
- /**
314
- * @inheritdoc
315
- */
316
- get: function () {
317
- return false;
318
- },
319
- set: function (_value) {
320
- // TODO: Not sure whether the leader really support setting value of property 'closed'
321
- },
322
- enumerable: false,
323
- configurable: true
324
- });
325
- /**
326
- * @inheritdoc
327
- */
328
- AcDbLeader.prototype.draw = function (renderer) {
329
- if (this.isSplined && this.splineGeo) {
330
- var points = this.splineGeo.getPoints(100);
331
- return renderer.lines(points, this.lineStyle);
332
- }
333
- else {
334
- return renderer.lines(this._vertices, this.lineStyle);
335
- }
336
- };
337
- Object.defineProperty(AcDbLeader.prototype, "splineGeo", {
338
- get: function () {
339
- this.createSplineIfNeeded();
340
- return this._splineGeo;
341
- },
342
- enumerable: false,
343
- configurable: true
344
- });
345
- AcDbLeader.prototype.createSplineIfNeeded = function () {
346
- if (this.isSplined &&
347
- this.numVertices >= 2 &&
348
- (this._splineGeo == null || this._updated)) {
349
- this._splineGeo = new AcGeSpline3d(this._vertices, 'Uniform');
350
- this._updated = false;
351
- }
352
- };
353
- /** The entity type name */
354
- AcDbLeader.typeName = 'Leader';
355
- return AcDbLeader;
356
- }(AcDbCurve));
357
- export { AcDbLeader };
358
- //# sourceMappingURL=AcDbLeader.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AcDbLeader.js","sourceRoot":"","sources":["../../src/entity/AcDbLeader.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EACL,SAAS,EACT,WAAW,EAEX,YAAY,EACb,MAAM,4BAA4B,CAAA;AAGnC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAEvC;;GAEG;AACH,MAAM,CAAN,IAAY,wBASX;AATD,WAAY,wBAAwB;IAClC,gCAAgC;IAChC,yEAAS,CAAA;IACT,uCAA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IAAI,CAAC,UAAU,GAAG,IAAI,YAAY,CAAC,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC,CAAA;YAC7D,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAA;QACvB,CAAC;IACH,CAAC;IAvSD,2BAA2B;IACX,mBAAQ,GAAW,QAAQ,CAAA;IAuS7C,iBAAC;CAAA,AAzSD,CAAgC,SAAS,GAySxC;SAzSY,UAAU"}
@@ -1,198 +0,0 @@
1
- import { AcGeBox3d, AcGeMatrix3d, AcGePoint3d, AcGePoint3dLike } from '@mlightcad/geometry-engine';
2
- import { AcGiRenderer } from '@mlightcad/graphic-interface';
3
- import { AcDbOsnapMode } from '../misc/AcDbOsnapMode';
4
- import { AcDbCurve } from './AcDbCurve';
5
- /**
6
- * Represents a line entity in AutoCAD.
7
- *
8
- * A line is a 3D geometric object defined by its start point and end point.
9
- * Lines are fundamental drawing entities that can be used to create straight
10
- * line segments in 2D or 3D space.
11
- *
12
- * @example
13
- * ```typescript
14
- * // Create a line from point (0,0,0) to point (10,10,0)
15
- * const line = new AcDbLine(
16
- * new AcGePoint3d(0, 0, 0),
17
- * new AcGePoint3d(10, 10, 0)
18
- * );
19
- *
20
- * // Access line properties
21
- * console.log(`Start point: ${line.startPoint}`);
22
- * console.log(`End point: ${line.endPoint}`);
23
- * console.log(`Mid point: ${line.midPoint}`);
24
- * ```
25
- */
26
- export declare class AcDbLine extends AcDbCurve {
27
- /** The entity type name */
28
- static typeName: string;
29
- /** The underlying geometric line object */
30
- private _geo;
31
- /**
32
- * Creates a new line entity.
33
- *
34
- * This constructor initializes the line object with the specified start and end points.
35
- * Both points must be in World Coordinate System (WCS) coordinates.
36
- *
37
- * @param start - The starting point of the line in WCS coordinates
38
- * @param end - The ending point of the line in WCS coordinates
39
- *
40
- * @example
41
- * ```typescript
42
- * const line = new AcDbLine(
43
- * new AcGePoint3d(0, 0, 0),
44
- * new AcGePoint3d(100, 50, 0)
45
- * );
46
- * ```
47
- */
48
- constructor(start: AcGePoint3dLike, end: AcGePoint3dLike);
49
- /**
50
- * Gets the starting point of this line.
51
- *
52
- * @returns The starting point as a 3D point
53
- *
54
- * @example
55
- * ```typescript
56
- * const startPoint = line.startPoint;
57
- * console.log(`Line starts at: ${startPoint.x}, ${startPoint.y}, ${startPoint.z}`);
58
- * ```
59
- */
60
- get startPoint(): AcGePoint3d;
61
- /**
62
- * Sets the starting point of this line.
63
- *
64
- * @param value - The new starting point
65
- *
66
- * @example
67
- * ```typescript
68
- * line.startPoint = new AcGePoint3d(5, 5, 0);
69
- * ```
70
- */
71
- set startPoint(value: AcGePoint3dLike);
72
- /**
73
- * Gets the ending point of this line.
74
- *
75
- * @returns The ending point as a 3D point
76
- *
77
- * @example
78
- * ```typescript
79
- * const endPoint = line.endPoint;
80
- * console.log(`Line ends at: ${endPoint.x}, ${endPoint.y}, ${endPoint.z}`);
81
- * ```
82
- */
83
- get endPoint(): AcGePoint3d;
84
- /**
85
- * Sets the ending point of this line.
86
- *
87
- * @param value - The new ending point
88
- *
89
- * @example
90
- * ```typescript
91
- * line.endPoint = new AcGePoint3d(15, 15, 0);
92
- * ```
93
- */
94
- set endPoint(value: AcGePoint3dLike);
95
- /**
96
- * Gets the middle point of this line.
97
- *
98
- * The middle point is calculated as the midpoint between the start and end points.
99
- *
100
- * @returns The middle point as a 3D point
101
- *
102
- * @example
103
- * ```typescript
104
- * const midPoint = line.midPoint;
105
- * console.log(`Line midpoint: ${midPoint.x}, ${midPoint.y}, ${midPoint.z}`);
106
- * ```
107
- */
108
- get midPoint(): AcGePoint3d;
109
- /**
110
- * Gets the geometric extents (bounding box) of this line.
111
- *
112
- * @returns The bounding box that encompasses the entire line
113
- *
114
- * @example
115
- * ```typescript
116
- * const extents = line.geometricExtents;
117
- * console.log(`Line bounds: ${extents.minPoint} to ${extents.maxPoint}`);
118
- * ```
119
- */
120
- get geometricExtents(): AcGeBox3d;
121
- /**
122
- * Gets whether this line is closed.
123
- *
124
- * Lines are always open entities, so this always returns false.
125
- *
126
- * @returns Always false for lines
127
- */
128
- get closed(): boolean;
129
- /**
130
- * Gets the grip points for this line.
131
- *
132
- * Grip points are control points that can be used to modify the line.
133
- * For a line, the grip points are the midpoint, start point, and end point.
134
- *
135
- * @returns Array of grip points (midpoint, start point, end point)
136
- *
137
- * @example
138
- * ```typescript
139
- * const gripPoints = line.subGetGripPoints();
140
- * // gripPoints contains: [midPoint, startPoint, endPoint]
141
- * ```
142
- */
143
- subGetGripPoints(): AcGePoint3d[];
144
- /**
145
- * Gets the object snap points for this line.
146
- *
147
- * Object snap points are precise points that can be used for positioning
148
- * when drawing or editing. This method provides snap points based on the
149
- * specified snap mode.
150
- *
151
- * @param osnapMode - The object snap mode (Endpoint, Midpoint, Nearest, Perpendicular, Tangent)
152
- * @param _gsSelectionMark - The selection mark (unused)
153
- * @param pickPoint - The point where the user picked
154
- * @param _lastPoint - The last point (unused)
155
- * @param snapPoints - Array to populate with snap points
156
- *
157
- * @example
158
- * ```typescript
159
- * const snapPoints: AcGePoint3d[] = [];
160
- * line.subGetOsnapPoints(AcDbOsnapMode.EndPoint, 0, pickPoint, lastPoint, snapPoints);
161
- * // snapPoints now contains the start and end points
162
- * ```
163
- */
164
- subGetOsnapPoints(osnapMode: AcDbOsnapMode, _gsSelectionMark: number, pickPoint: AcGePoint3d, _lastPoint: AcGePoint3d, snapPoints: AcGePoint3d[]): void;
165
- /**
166
- * Transforms this line by the specified matrix.
167
- *
168
- * This method applies a geometric transformation to the line, updating
169
- * both the start and end points according to the transformation matrix.
170
- *
171
- * @param matrix - The transformation matrix to apply
172
- * @returns This line after transformation
173
- *
174
- * @example
175
- * ```typescript
176
- * const translationMatrix = AcGeMatrix3d.translation(10, 0, 0);
177
- * line.transformBy(translationMatrix);
178
- * // Line is now translated 10 units in the X direction
179
- * ```
180
- */
181
- transformBy(matrix: AcGeMatrix3d): this;
182
- /**
183
- * Draws this line using the specified renderer.
184
- *
185
- * This method renders the line as a series of connected line segments
186
- * using the line's current style properties.
187
- *
188
- * @param renderer - The renderer to use for drawing
189
- * @returns The rendered line entity, or undefined if drawing failed
190
- *
191
- * @example
192
- * ```typescript
193
- * const renderedLine = line.draw(renderer);
194
- * ```
195
- */
196
- draw(renderer: AcGiRenderer): import("@mlightcad/graphic-interface").AcGiEntity;
197
- }
198
- //# sourceMappingURL=AcDbLine.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AcDbLine.d.ts","sourceRoot":"","sources":["../../src/entity/AcDbLine.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EAET,YAAY,EACZ,WAAW,EACX,eAAe,EAChB,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAE3D,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAEvC;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,qBAAa,QAAS,SAAQ,SAAS;IACrC,2BAA2B;IAC3B,OAAgB,QAAQ,EAAE,MAAM,CAAS;IAEzC,2CAA2C;IAC3C,OAAO,CAAC,IAAI,CAAY;IAExB;;;;;;;;;;;;;;;;OAgBG;gBACS,KAAK,EAAE,eAAe,EAAE,GAAG,EAAE,eAAe;IAKxD;;;;;;;;;;OAUG;IACH,IAAI,UAAU,IAAI,WAAW,CAE5B;IAED;;;;;;;;;OASG;IACH,IAAI,UAAU,CAAC,KAAK,EAAE,eAAe,EAEpC;IAED;;;;;;;;;;OAUG;IACH,IAAI,QAAQ,IAAI,WAAW,CAE1B;IAED;;;;;;;;;OASG;IACH,IAAI,QAAQ,CAAC,KAAK,EAAE,eAAe,EAElC;IAED;;;;;;;;;;;;OAYG;IACH,IAAI,QAAQ,IAAI,WAAW,CAE1B;IAED;;;;;;;;;;OAUG;IACH,IAAI,gBAAgB,IAAI,SAAS,CAEhC;IAED;;;;;;OAMG;IACH,IAAI,MAAM,IAAI,OAAO,CAEpB;IAED;;;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