@mlightcad/data-model 1.3.3 → 1.3.5

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 (344) hide show
  1. package/dist/data-model.cjs +5 -0
  2. package/dist/data-model.js +25995 -0
  3. package/dist/dxf-parser-worker.js +1715 -0
  4. package/lib/base/AcDbHostApplicationServices.d.ts +96 -0
  5. package/lib/base/AcDbHostApplicationServices.d.ts.map +1 -0
  6. package/lib/base/AcDbHostApplicationServices.js +118 -0
  7. package/lib/base/AcDbHostApplicationServices.js.map +1 -0
  8. package/lib/base/AcDbObject.d.ts +205 -0
  9. package/lib/base/AcDbObject.d.ts.map +1 -0
  10. package/lib/base/AcDbObject.js +236 -0
  11. package/lib/base/AcDbObject.js.map +1 -0
  12. package/lib/base/index.d.ts +3 -0
  13. package/lib/base/index.d.ts.map +1 -0
  14. package/lib/base/index.js +3 -0
  15. package/lib/base/index.js.map +1 -0
  16. package/lib/converter/AcDbBatchProcessing.d.ts +146 -0
  17. package/lib/converter/AcDbBatchProcessing.d.ts.map +1 -0
  18. package/lib/converter/AcDbBatchProcessing.js +272 -0
  19. package/lib/converter/AcDbBatchProcessing.js.map +1 -0
  20. package/lib/converter/AcDbDxfConverter.d.ts +272 -0
  21. package/lib/converter/AcDbDxfConverter.d.ts.map +1 -0
  22. package/lib/converter/AcDbDxfConverter.js +883 -0
  23. package/lib/converter/AcDbDxfConverter.js.map +1 -0
  24. package/lib/converter/AcDbDxfParser.d.ts +23 -0
  25. package/lib/converter/AcDbDxfParser.d.ts.map +1 -0
  26. package/lib/converter/AcDbDxfParser.js +85 -0
  27. package/lib/converter/AcDbDxfParser.js.map +1 -0
  28. package/lib/converter/AcDbEntitiyConverter.d.ts +160 -0
  29. package/lib/converter/AcDbEntitiyConverter.d.ts.map +1 -0
  30. package/lib/converter/AcDbEntitiyConverter.js +708 -0
  31. package/lib/converter/AcDbEntitiyConverter.js.map +1 -0
  32. package/lib/converter/AcDbObjectConverter.d.ts +61 -0
  33. package/lib/converter/AcDbObjectConverter.d.ts.map +1 -0
  34. package/lib/converter/AcDbObjectConverter.js +91 -0
  35. package/lib/converter/AcDbObjectConverter.js.map +1 -0
  36. package/lib/converter/AcDbRegenerator.d.ts +101 -0
  37. package/lib/converter/AcDbRegenerator.d.ts.map +1 -0
  38. package/lib/converter/AcDbRegenerator.js +334 -0
  39. package/lib/converter/AcDbRegenerator.js.map +1 -0
  40. package/lib/converter/index.d.ts +5 -0
  41. package/lib/converter/index.d.ts.map +1 -0
  42. package/lib/converter/index.js +5 -0
  43. package/lib/converter/index.js.map +1 -0
  44. package/lib/converter/worker/AcDbBaseWorker.d.ts +36 -0
  45. package/lib/converter/worker/AcDbBaseWorker.d.ts.map +1 -0
  46. package/lib/converter/worker/AcDbBaseWorker.js +93 -0
  47. package/lib/converter/worker/AcDbBaseWorker.js.map +1 -0
  48. package/lib/converter/worker/AcDbDxfParserWorker.d.ts +11 -0
  49. package/lib/converter/worker/AcDbDxfParserWorker.d.ts.map +1 -0
  50. package/lib/converter/worker/AcDbDxfParserWorker.js +75 -0
  51. package/lib/converter/worker/AcDbDxfParserWorker.js.map +1 -0
  52. package/lib/converter/worker/AcDbWorkerManager.d.ts +107 -0
  53. package/lib/converter/worker/AcDbWorkerManager.d.ts.map +1 -0
  54. package/lib/converter/worker/AcDbWorkerManager.js +360 -0
  55. package/lib/converter/worker/AcDbWorkerManager.js.map +1 -0
  56. package/lib/converter/worker/index.d.ts +3 -0
  57. package/lib/converter/worker/index.d.ts.map +1 -0
  58. package/lib/converter/worker/index.js +3 -0
  59. package/lib/converter/worker/index.js.map +1 -0
  60. package/lib/database/AcDbBlockTable.d.ts +56 -0
  61. package/lib/database/AcDbBlockTable.d.ts.map +1 -0
  62. package/lib/database/AcDbBlockTable.js +98 -0
  63. package/lib/database/AcDbBlockTable.js.map +1 -0
  64. package/lib/database/AcDbBlockTableRecord.d.ts +185 -0
  65. package/lib/database/AcDbBlockTableRecord.d.ts.map +1 -0
  66. package/lib/database/AcDbBlockTableRecord.js +261 -0
  67. package/lib/database/AcDbBlockTableRecord.js.map +1 -0
  68. package/lib/database/AcDbDatabase.d.ts +563 -0
  69. package/lib/database/AcDbDatabase.d.ts.map +1 -0
  70. package/lib/database/AcDbDatabase.js +842 -0
  71. package/lib/database/AcDbDatabase.js.map +1 -0
  72. package/lib/database/AcDbDatabaseConverter.d.ts +292 -0
  73. package/lib/database/AcDbDatabaseConverter.d.ts.map +1 -0
  74. package/lib/database/AcDbDatabaseConverter.js +448 -0
  75. package/lib/database/AcDbDatabaseConverter.js.map +1 -0
  76. package/lib/database/AcDbDatabaseConverterManager.d.ts +141 -0
  77. package/lib/database/AcDbDatabaseConverterManager.d.ts.map +1 -0
  78. package/lib/database/AcDbDatabaseConverterManager.js +173 -0
  79. package/lib/database/AcDbDatabaseConverterManager.js.map +1 -0
  80. package/lib/database/AcDbDimStyleTable.d.ts +31 -0
  81. package/lib/database/AcDbDimStyleTable.d.ts.map +1 -0
  82. package/lib/database/AcDbDimStyleTable.js +49 -0
  83. package/lib/database/AcDbDimStyleTable.js.map +1 -0
  84. package/lib/database/AcDbDimStyleTableRecord.d.ts +797 -0
  85. package/lib/database/AcDbDimStyleTableRecord.d.ts.map +1 -0
  86. package/lib/database/AcDbDimStyleTableRecord.js +1294 -0
  87. package/lib/database/AcDbDimStyleTableRecord.js.map +1 -0
  88. package/lib/database/AcDbDwgVersion.d.ts +32 -0
  89. package/lib/database/AcDbDwgVersion.d.ts.map +1 -0
  90. package/lib/database/AcDbDwgVersion.js +126 -0
  91. package/lib/database/AcDbDwgVersion.js.map +1 -0
  92. package/lib/database/AcDbLayerTable.d.ts +51 -0
  93. package/lib/database/AcDbLayerTable.d.ts.map +1 -0
  94. package/lib/database/AcDbLayerTable.js +92 -0
  95. package/lib/database/AcDbLayerTable.js.map +1 -0
  96. package/lib/database/AcDbLayerTableRecord.d.ts +278 -0
  97. package/lib/database/AcDbLayerTableRecord.d.ts.map +1 -0
  98. package/lib/database/AcDbLayerTableRecord.js +397 -0
  99. package/lib/database/AcDbLayerTableRecord.js.map +1 -0
  100. package/lib/database/AcDbLinetypeTable.d.ts +30 -0
  101. package/lib/database/AcDbLinetypeTable.d.ts.map +1 -0
  102. package/lib/database/AcDbLinetypeTable.js +48 -0
  103. package/lib/database/AcDbLinetypeTable.js.map +1 -0
  104. package/lib/database/AcDbLinetypeTableRecord.d.ts +79 -0
  105. package/lib/database/AcDbLinetypeTableRecord.d.ts.map +1 -0
  106. package/lib/database/AcDbLinetypeTableRecord.js +129 -0
  107. package/lib/database/AcDbLinetypeTableRecord.js.map +1 -0
  108. package/lib/database/AcDbSymbolTable.d.ts +199 -0
  109. package/lib/database/AcDbSymbolTable.d.ts.map +1 -0
  110. package/lib/database/AcDbSymbolTable.js +264 -0
  111. package/lib/database/AcDbSymbolTable.js.map +1 -0
  112. package/lib/database/AcDbSymbolTableRecord.d.ts +61 -0
  113. package/lib/database/AcDbSymbolTableRecord.d.ts.map +1 -0
  114. package/lib/database/AcDbSymbolTableRecord.js +82 -0
  115. package/lib/database/AcDbSymbolTableRecord.js.map +1 -0
  116. package/lib/database/AcDbTextStyleTable.d.ts +48 -0
  117. package/lib/database/AcDbTextStyleTable.d.ts.map +1 -0
  118. package/lib/database/AcDbTextStyleTable.js +112 -0
  119. package/lib/database/AcDbTextStyleTable.js.map +1 -0
  120. package/lib/database/AcDbTextStyleTableRecord.d.ts +179 -0
  121. package/lib/database/AcDbTextStyleTableRecord.d.ts.map +1 -0
  122. package/lib/database/AcDbTextStyleTableRecord.js +276 -0
  123. package/lib/database/AcDbTextStyleTableRecord.js.map +1 -0
  124. package/lib/database/AcDbViewportTable.d.ts +31 -0
  125. package/lib/database/AcDbViewportTable.d.ts.map +1 -0
  126. package/lib/database/AcDbViewportTable.js +49 -0
  127. package/lib/database/AcDbViewportTable.js.map +1 -0
  128. package/lib/database/AcDbViewportTableRecord.d.ts +154 -0
  129. package/lib/database/AcDbViewportTableRecord.d.ts.map +1 -0
  130. package/lib/database/AcDbViewportTableRecord.js +318 -0
  131. package/lib/database/AcDbViewportTableRecord.js.map +1 -0
  132. package/lib/database/index.d.ts +19 -0
  133. package/lib/database/index.d.ts.map +1 -0
  134. package/lib/database/index.js +19 -0
  135. package/lib/database/index.js.map +1 -0
  136. package/lib/entity/AcDb2dPolyline.d.ts +146 -0
  137. package/lib/entity/AcDb2dPolyline.d.ts.map +1 -0
  138. package/lib/entity/AcDb2dPolyline.js +220 -0
  139. package/lib/entity/AcDb2dPolyline.js.map +1 -0
  140. package/lib/entity/AcDb2dVertex.d.ts +143 -0
  141. package/lib/entity/AcDb2dVertex.d.ts.map +1 -0
  142. package/lib/entity/AcDb2dVertex.js +210 -0
  143. package/lib/entity/AcDb2dVertex.js.map +1 -0
  144. package/lib/entity/AcDb3dPolyline.d.ts +102 -0
  145. package/lib/entity/AcDb3dPolyline.d.ts.map +1 -0
  146. package/lib/entity/AcDb3dPolyline.js +158 -0
  147. package/lib/entity/AcDb3dPolyline.js.map +1 -0
  148. package/lib/entity/AcDb3dVertex.d.ts +83 -0
  149. package/lib/entity/AcDb3dVertex.d.ts.map +1 -0
  150. package/lib/entity/AcDb3dVertex.js +133 -0
  151. package/lib/entity/AcDb3dVertex.js.map +1 -0
  152. package/lib/entity/AcDbArc.d.ts +254 -0
  153. package/lib/entity/AcDbArc.d.ts.map +1 -0
  154. package/lib/entity/AcDbArc.js +340 -0
  155. package/lib/entity/AcDbArc.js.map +1 -0
  156. package/lib/entity/AcDbBlockReference.d.ts +190 -0
  157. package/lib/entity/AcDbBlockReference.d.ts.map +1 -0
  158. package/lib/entity/AcDbBlockReference.js +302 -0
  159. package/lib/entity/AcDbBlockReference.js.map +1 -0
  160. package/lib/entity/AcDbCircle.d.ts +186 -0
  161. package/lib/entity/AcDbCircle.d.ts.map +1 -0
  162. package/lib/entity/AcDbCircle.js +249 -0
  163. package/lib/entity/AcDbCircle.js.map +1 -0
  164. package/lib/entity/AcDbCurve.d.ts +42 -0
  165. package/lib/entity/AcDbCurve.d.ts.map +1 -0
  166. package/lib/entity/AcDbCurve.js +44 -0
  167. package/lib/entity/AcDbCurve.js.map +1 -0
  168. package/lib/entity/AcDbEllipse.d.ts +207 -0
  169. package/lib/entity/AcDbEllipse.d.ts.map +1 -0
  170. package/lib/entity/AcDbEllipse.js +272 -0
  171. package/lib/entity/AcDbEllipse.js.map +1 -0
  172. package/lib/entity/AcDbEntity.d.ts +385 -0
  173. package/lib/entity/AcDbEntity.d.ts.map +1 -0
  174. package/lib/entity/AcDbEntity.js +561 -0
  175. package/lib/entity/AcDbEntity.js.map +1 -0
  176. package/lib/entity/AcDbFace.d.ts +151 -0
  177. package/lib/entity/AcDbFace.d.ts.map +1 -0
  178. package/lib/entity/AcDbFace.js +224 -0
  179. package/lib/entity/AcDbFace.js.map +1 -0
  180. package/lib/entity/AcDbHatch.d.ts +174 -0
  181. package/lib/entity/AcDbHatch.d.ts.map +1 -0
  182. package/lib/entity/AcDbHatch.js +250 -0
  183. package/lib/entity/AcDbHatch.js.map +1 -0
  184. package/lib/entity/AcDbLeader.d.ts +243 -0
  185. package/lib/entity/AcDbLeader.d.ts.map +1 -0
  186. package/lib/entity/AcDbLeader.js +358 -0
  187. package/lib/entity/AcDbLeader.js.map +1 -0
  188. package/lib/entity/AcDbLine.d.ts +198 -0
  189. package/lib/entity/AcDbLine.d.ts.map +1 -0
  190. package/lib/entity/AcDbLine.js +300 -0
  191. package/lib/entity/AcDbLine.js.map +1 -0
  192. package/lib/entity/AcDbMText.d.ts +248 -0
  193. package/lib/entity/AcDbMText.d.ts.map +1 -0
  194. package/lib/entity/AcDbMText.js +414 -0
  195. package/lib/entity/AcDbMText.js.map +1 -0
  196. package/lib/entity/AcDbPoint.d.ts +113 -0
  197. package/lib/entity/AcDbPoint.d.ts.map +1 -0
  198. package/lib/entity/AcDbPoint.js +155 -0
  199. package/lib/entity/AcDbPoint.js.map +1 -0
  200. package/lib/entity/AcDbPolyline.d.ts +221 -0
  201. package/lib/entity/AcDbPolyline.d.ts.map +1 -0
  202. package/lib/entity/AcDbPolyline.js +301 -0
  203. package/lib/entity/AcDbPolyline.js.map +1 -0
  204. package/lib/entity/AcDbRasterImage.d.ts +216 -0
  205. package/lib/entity/AcDbRasterImage.d.ts.map +1 -0
  206. package/lib/entity/AcDbRasterImage.js +451 -0
  207. package/lib/entity/AcDbRasterImage.js.map +1 -0
  208. package/lib/entity/AcDbRay.d.ts +150 -0
  209. package/lib/entity/AcDbRay.d.ts.map +1 -0
  210. package/lib/entity/AcDbRay.js +208 -0
  211. package/lib/entity/AcDbRay.js.map +1 -0
  212. package/lib/entity/AcDbSpline.d.ts +135 -0
  213. package/lib/entity/AcDbSpline.d.ts.map +1 -0
  214. package/lib/entity/AcDbSpline.js +142 -0
  215. package/lib/entity/AcDbSpline.js.map +1 -0
  216. package/lib/entity/AcDbTable.d.ts +260 -0
  217. package/lib/entity/AcDbTable.d.ts.map +1 -0
  218. package/lib/entity/AcDbTable.js +452 -0
  219. package/lib/entity/AcDbTable.js.map +1 -0
  220. package/lib/entity/AcDbText.d.ts +388 -0
  221. package/lib/entity/AcDbText.d.ts.map +1 -0
  222. package/lib/entity/AcDbText.js +523 -0
  223. package/lib/entity/AcDbText.js.map +1 -0
  224. package/lib/entity/AcDbTrace.d.ts +193 -0
  225. package/lib/entity/AcDbTrace.d.ts.map +1 -0
  226. package/lib/entity/AcDbTrace.js +271 -0
  227. package/lib/entity/AcDbTrace.js.map +1 -0
  228. package/lib/entity/AcDbViewport.d.ts +173 -0
  229. package/lib/entity/AcDbViewport.d.ts.map +1 -0
  230. package/lib/entity/AcDbViewport.js +295 -0
  231. package/lib/entity/AcDbViewport.js.map +1 -0
  232. package/lib/entity/AcDbWipeout.d.ts +39 -0
  233. package/lib/entity/AcDbWipeout.d.ts.map +1 -0
  234. package/lib/entity/AcDbWipeout.js +70 -0
  235. package/lib/entity/AcDbWipeout.js.map +1 -0
  236. package/lib/entity/AcDbXline.d.ts +151 -0
  237. package/lib/entity/AcDbXline.d.ts.map +1 -0
  238. package/lib/entity/AcDbXline.js +209 -0
  239. package/lib/entity/AcDbXline.js.map +1 -0
  240. package/lib/entity/dimension/AcDb3PointAngularDimension.d.ts +92 -0
  241. package/lib/entity/dimension/AcDb3PointAngularDimension.d.ts.map +1 -0
  242. package/lib/entity/dimension/AcDb3PointAngularDimension.js +157 -0
  243. package/lib/entity/dimension/AcDb3PointAngularDimension.js.map +1 -0
  244. package/lib/entity/dimension/AcDbAlignedDimension.d.ts +220 -0
  245. package/lib/entity/dimension/AcDbAlignedDimension.d.ts.map +1 -0
  246. package/lib/entity/dimension/AcDbAlignedDimension.js +341 -0
  247. package/lib/entity/dimension/AcDbAlignedDimension.js.map +1 -0
  248. package/lib/entity/dimension/AcDbArcDimension.d.ts +94 -0
  249. package/lib/entity/dimension/AcDbArcDimension.d.ts.map +1 -0
  250. package/lib/entity/dimension/AcDbArcDimension.js +159 -0
  251. package/lib/entity/dimension/AcDbArcDimension.js.map +1 -0
  252. package/lib/entity/dimension/AcDbDiametricDimension.d.ts +145 -0
  253. package/lib/entity/dimension/AcDbDiametricDimension.d.ts.map +1 -0
  254. package/lib/entity/dimension/AcDbDiametricDimension.js +275 -0
  255. package/lib/entity/dimension/AcDbDiametricDimension.js.map +1 -0
  256. package/lib/entity/dimension/AcDbDimension.d.ts +257 -0
  257. package/lib/entity/dimension/AcDbDimension.d.ts.map +1 -0
  258. package/lib/entity/dimension/AcDbDimension.js +466 -0
  259. package/lib/entity/dimension/AcDbDimension.js.map +1 -0
  260. package/lib/entity/dimension/AcDbOrdinateDimension.d.ts +78 -0
  261. package/lib/entity/dimension/AcDbOrdinateDimension.d.ts.map +1 -0
  262. package/lib/entity/dimension/AcDbOrdinateDimension.js +133 -0
  263. package/lib/entity/dimension/AcDbOrdinateDimension.js.map +1 -0
  264. package/lib/entity/dimension/AcDbRadialDimension.d.ts +214 -0
  265. package/lib/entity/dimension/AcDbRadialDimension.d.ts.map +1 -0
  266. package/lib/entity/dimension/AcDbRadialDimension.js +288 -0
  267. package/lib/entity/dimension/AcDbRadialDimension.js.map +1 -0
  268. package/lib/entity/dimension/index.d.ts +8 -0
  269. package/lib/entity/dimension/index.d.ts.map +1 -0
  270. package/lib/entity/dimension/index.js +8 -0
  271. package/lib/entity/dimension/index.js.map +1 -0
  272. package/lib/entity/index.d.ts +28 -0
  273. package/lib/entity/index.d.ts.map +1 -0
  274. package/lib/entity/index.js +28 -0
  275. package/lib/entity/index.js.map +1 -0
  276. package/lib/index.d.ts +10 -0
  277. package/lib/index.d.ts.map +1 -0
  278. package/lib/index.js +10 -0
  279. package/lib/index.js.map +1 -0
  280. package/lib/misc/AcDbAngleUnits.d.ts +20 -0
  281. package/lib/misc/AcDbAngleUnits.d.ts.map +1 -0
  282. package/lib/misc/AcDbAngleUnits.js +21 -0
  283. package/lib/misc/AcDbAngleUnits.js.map +1 -0
  284. package/lib/misc/AcDbCodePage.d.ts +50 -0
  285. package/lib/misc/AcDbCodePage.d.ts.map +1 -0
  286. package/lib/misc/AcDbCodePage.js +100 -0
  287. package/lib/misc/AcDbCodePage.js.map +1 -0
  288. package/lib/misc/AcDbConstants.d.ts +24 -0
  289. package/lib/misc/AcDbConstants.d.ts.map +1 -0
  290. package/lib/misc/AcDbConstants.js +24 -0
  291. package/lib/misc/AcDbConstants.js.map +1 -0
  292. package/lib/misc/AcDbDimArrowType.d.ts +89 -0
  293. package/lib/misc/AcDbDimArrowType.d.ts.map +1 -0
  294. package/lib/misc/AcDbDimArrowType.js +90 -0
  295. package/lib/misc/AcDbDimArrowType.js.map +1 -0
  296. package/lib/misc/AcDbObjectIterator.d.ts +64 -0
  297. package/lib/misc/AcDbObjectIterator.d.ts.map +1 -0
  298. package/lib/misc/AcDbObjectIterator.js +84 -0
  299. package/lib/misc/AcDbObjectIterator.js.map +1 -0
  300. package/lib/misc/AcDbOsnapMode.d.ts +51 -0
  301. package/lib/misc/AcDbOsnapMode.d.ts.map +1 -0
  302. package/lib/misc/AcDbOsnapMode.js +52 -0
  303. package/lib/misc/AcDbOsnapMode.js.map +1 -0
  304. package/lib/misc/AcDbRenderingCache.d.ts +141 -0
  305. package/lib/misc/AcDbRenderingCache.d.ts.map +1 -0
  306. package/lib/misc/AcDbRenderingCache.js +239 -0
  307. package/lib/misc/AcDbRenderingCache.js.map +1 -0
  308. package/lib/misc/AcDbUnitsValue.d.ts +101 -0
  309. package/lib/misc/AcDbUnitsValue.d.ts.map +1 -0
  310. package/lib/misc/AcDbUnitsValue.js +121 -0
  311. package/lib/misc/AcDbUnitsValue.js.map +1 -0
  312. package/lib/misc/index.d.ts +9 -0
  313. package/lib/misc/index.d.ts.map +1 -0
  314. package/lib/misc/index.js +9 -0
  315. package/lib/misc/index.js.map +1 -0
  316. package/lib/object/AcDbDictionary.d.ts +178 -0
  317. package/lib/object/AcDbDictionary.d.ts.map +1 -0
  318. package/lib/object/AcDbDictionary.js +264 -0
  319. package/lib/object/AcDbDictionary.js.map +1 -0
  320. package/lib/object/AcDbRasterImageDef.d.ts +54 -0
  321. package/lib/object/AcDbRasterImageDef.d.ts.map +1 -0
  322. package/lib/object/AcDbRasterImageDef.js +82 -0
  323. package/lib/object/AcDbRasterImageDef.js.map +1 -0
  324. package/lib/object/index.d.ts +4 -0
  325. package/lib/object/index.d.ts.map +1 -0
  326. package/lib/object/index.js +4 -0
  327. package/lib/object/index.js.map +1 -0
  328. package/lib/object/layout/AcDbLayout.d.ts +190 -0
  329. package/lib/object/layout/AcDbLayout.d.ts.map +1 -0
  330. package/lib/object/layout/AcDbLayout.js +253 -0
  331. package/lib/object/layout/AcDbLayout.js.map +1 -0
  332. package/lib/object/layout/AcDbLayoutDictionary.d.ts +47 -0
  333. package/lib/object/layout/AcDbLayoutDictionary.d.ts.map +1 -0
  334. package/lib/object/layout/AcDbLayoutDictionary.js +122 -0
  335. package/lib/object/layout/AcDbLayoutDictionary.js.map +1 -0
  336. package/lib/object/layout/AcDbLayoutManager.d.ts +188 -0
  337. package/lib/object/layout/AcDbLayoutManager.d.ts.map +1 -0
  338. package/lib/object/layout/AcDbLayoutManager.js +245 -0
  339. package/lib/object/layout/AcDbLayoutManager.js.map +1 -0
  340. package/lib/object/layout/index.d.ts +4 -0
  341. package/lib/object/layout/index.d.ts.map +1 -0
  342. package/lib/object/layout/index.js +4 -0
  343. package/lib/object/layout/index.js.map +1 -0
  344. package/package.json +4 -4
@@ -0,0 +1,133 @@
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 } from '@mlightcad/geometry-engine';
17
+ import { AcDbDimension } from './AcDbDimension';
18
+ /**
19
+ * Represents an ordinate dimension entity in AutoCAD.
20
+ *
21
+ * Ordinate dimensions measure the "horizontal" (X axis) or "vertical" (Y axis) distance
22
+ * from a specified origin point to some other specified point. They are commonly used
23
+ * in mechanical drawings, architectural plans, and other technical documentation where
24
+ * precise coordinate measurements are required.
25
+ *
26
+ * The dimension displays a leader line from the defining point to the leader end point,
27
+ * with the annotation text located appropriately near the end of the leader. Ordinate
28
+ * dimensions are particularly useful for dimensioning parts with multiple features that
29
+ * need to be positioned relative to a common reference point.
30
+ */
31
+ var AcDbOrdinateDimension = /** @class */ (function (_super) {
32
+ __extends(AcDbOrdinateDimension, _super);
33
+ /**
34
+ * Creates a new ordinate dimension.
35
+ *
36
+ * @param definingPoint - The point where the ordinate leader should start. This is
37
+ * the point being measured relative to the dimension's origin
38
+ * @param leaderEndPoint - The point where the ordinate leader should end. This point
39
+ * is used for the dimension leader's endpoint and in text
40
+ * position calculations
41
+ * @param dimText - Optional custom dimension text to display instead of the calculated
42
+ * coordinate value. If null, the calculated coordinate will be displayed
43
+ * @param dimStyle - Optional name of the dimension style table record to use for
44
+ * formatting. If null, the current default style will be used
45
+ */
46
+ function AcDbOrdinateDimension(definingPoint, leaderEndPoint, dimText, dimStyle) {
47
+ if (dimText === void 0) { dimText = null; }
48
+ if (dimStyle === void 0) { dimStyle = null; }
49
+ var _this = _super.call(this) || this;
50
+ _this._definingPoint = new AcGePoint3d().copy(definingPoint);
51
+ _this._leaderEndPoint = new AcGePoint3d().copy(leaderEndPoint);
52
+ _this.dimensionText = dimText;
53
+ // TODO: Set it to the current default dimStyle within the AutoCAD editor if dimStyle is null
54
+ _this.dimensionStyleName = dimStyle;
55
+ return _this;
56
+ }
57
+ Object.defineProperty(AcDbOrdinateDimension.prototype, "definingPoint", {
58
+ /**
59
+ * Gets or sets the ordinate point to be measured.
60
+ *
61
+ * This is the point (in WCS coordinates) that defines the location being measured.
62
+ * The dimension measures the X or Y distance between this point and the dimension's
63
+ * origin point, depending on the orientation of the ordinate dimension.
64
+ *
65
+ * @returns The defining point of the ordinate dimension
66
+ */
67
+ get: function () {
68
+ return this._definingPoint;
69
+ },
70
+ set: function (value) {
71
+ this._definingPoint.copy(value);
72
+ },
73
+ enumerable: false,
74
+ configurable: true
75
+ });
76
+ Object.defineProperty(AcDbOrdinateDimension.prototype, "leaderEndPoint", {
77
+ /**
78
+ * Gets or sets the leader end point.
79
+ *
80
+ * This point is used as the dimension leader's endpoint and is used in the text
81
+ * position calculations. It determines where the leader line ends and where the
82
+ * dimension text is positioned relative to the leader.
83
+ *
84
+ * @returns The leader end point of the ordinate dimension
85
+ */
86
+ get: function () {
87
+ return this._leaderEndPoint;
88
+ },
89
+ set: function (value) {
90
+ this._leaderEndPoint.copy(value);
91
+ },
92
+ enumerable: false,
93
+ configurable: true
94
+ });
95
+ Object.defineProperty(AcDbOrdinateDimension.prototype, "geometricExtents", {
96
+ /**
97
+ * Gets the geometric extents (bounding box) of this dimension entity.
98
+ *
99
+ * The geometric extents define the minimum bounding box that completely contains
100
+ * the dimension entity, including all its components like the leader line and text.
101
+ *
102
+ * @returns A 3D bounding box containing the dimension entity
103
+ * @inheritdoc
104
+ */
105
+ get: function () {
106
+ // TODO: Finish it
107
+ return new AcGeBox3d();
108
+ },
109
+ enumerable: false,
110
+ configurable: true
111
+ });
112
+ Object.defineProperty(AcDbOrdinateDimension.prototype, "arrowLineCount", {
113
+ /**
114
+ * Gets the number of arrow lines for this dimension.
115
+ *
116
+ * Ordinate dimensions typically don't use arrows since they are coordinate-based
117
+ * measurements rather than distance measurements between two points.
118
+ *
119
+ * @returns The number of arrow lines (always 0 for ordinate dimensions)
120
+ * @inheritdoc
121
+ */
122
+ get: function () {
123
+ return 0;
124
+ },
125
+ enumerable: false,
126
+ configurable: true
127
+ });
128
+ /** The entity type name */
129
+ AcDbOrdinateDimension.typeName = 'OrdinateDimension';
130
+ return AcDbOrdinateDimension;
131
+ }(AcDbDimension));
132
+ export { AcDbOrdinateDimension };
133
+ //# sourceMappingURL=AcDbOrdinateDimension.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcDbOrdinateDimension.js","sourceRoot":"","sources":["../../../src/entity/dimension/AcDbOrdinateDimension.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EACL,SAAS,EACT,WAAW,EAEZ,MAAM,4BAA4B,CAAA;AAEnC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAE/C;;;;;;;;;;;;GAYG;AACH;IAA2C,yCAAa;IAOtD;;;;;;;;;;;;OAYG;IACH,+BACE,aAA8B,EAC9B,cAA+B,EAC/B,OAA6B,EAC7B,QAA8B;QAD9B,wBAAA,EAAA,cAA6B;QAC7B,yBAAA,EAAA,eAA8B;QAE9B,YAAA,MAAK,WAAE,SAAA;QACP,KAAI,CAAC,cAAc,GAAG,IAAI,WAAW,EAAE,CAAC,IAAI,CAAC,aAAa,CAAC,CAAA;QAC3D,KAAI,CAAC,eAAe,GAAG,IAAI,WAAW,EAAE,CAAC,IAAI,CAAC,cAAc,CAAC,CAAA;QAE7D,KAAI,CAAC,aAAa,GAAG,OAAO,CAAA;QAC5B,6FAA6F;QAC7F,KAAI,CAAC,kBAAkB,GAAG,QAAQ,CAAA;;IACpC,CAAC;IAWD,sBAAI,gDAAa;QATjB;;;;;;;;WAQG;aACH;YACE,OAAO,IAAI,CAAC,cAAc,CAAA;QAC5B,CAAC;aACD,UAAkB,KAAkB;YAClC,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;QACjC,CAAC;;;OAHA;IAcD,sBAAI,iDAAc;QATlB;;;;;;;;WAQG;aACH;YACE,OAAO,IAAI,CAAC,eAAe,CAAA;QAC7B,CAAC;aACD,UAAmB,KAAkB;YACnC,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;QAClC,CAAC;;;OAHA;IAcD,sBAAI,mDAAgB;QATpB;;;;;;;;WAQG;aACH;YACE,kBAAkB;YAClB,OAAO,IAAI,SAAS,EAAE,CAAA;QACxB,CAAC;;;OAAA;IAWD,sBAAc,iDAAc;QAT5B;;;;;;;;WAQG;aACH;YACE,OAAO,CAAC,CAAA;QACV,CAAC;;;OAAA;IA3FD,2BAA2B;IACX,8BAAQ,GAAW,mBAAmB,CAAA;IA2FxD,4BAAC;CAAA,AA7FD,CAA2C,aAAa,GA6FvD;SA7FY,qBAAqB"}
@@ -0,0 +1,214 @@
1
+ import { AcGeBox3d, AcGePoint3d, AcGePoint3dLike } from '@mlightcad/geometry-engine';
2
+ import { AcGiLineArrowStyle } from '@mlightcad/graphic-interface';
3
+ import { AcDbLine } from '../AcDbLine';
4
+ import { AcDbDimension } from './AcDbDimension';
5
+ /**
6
+ * Represents a radial dimension entity in AutoCAD.
7
+ *
8
+ * A radial dimension measures the radius of a curve (typically a circle or arc).
9
+ * This dimension type requires a center point and a point on the curve being dimensioned
10
+ * in order to draw the dimension line from the center point through the point on the curve.
11
+ *
12
+ * The dimension utilizes a "leader length" value to determine how far the dimension line
13
+ * extends out past the curve before doing a horizontal dogleg (if necessary) to the annotation text.
14
+ *
15
+ * @example
16
+ * ```typescript
17
+ * // Create a radial dimension
18
+ * const radialDim = new AcDbRadialDimension(
19
+ * new AcGePoint3d(0, 0, 0), // Center point
20
+ * new AcGePoint3d(5, 0, 0), // Point on curve
21
+ * 2.0, // Leader length
22
+ * "5.0", // Dimension text
23
+ * "Standard" // Dimension style
24
+ * );
25
+ *
26
+ * // Access dimension properties
27
+ * console.log(`Center: ${radialDim.center}`);
28
+ * console.log(`Chord point: ${radialDim.chordPoint}`);
29
+ * console.log(`Leader length: ${radialDim.leaderLength}`);
30
+ * ```
31
+ */
32
+ export declare class AcDbRadialDimension extends AcDbDimension {
33
+ /** The entity type name */
34
+ static typeName: string;
35
+ /** The center point of the curve being dimensioned */
36
+ private _center;
37
+ /** The point where the dimension line intersects the curve being dimensioned */
38
+ private _chordPoint;
39
+ /** The extension arc start angle in radians */
40
+ private _extArcStartAngle;
41
+ /** The extension arc end angle in radians */
42
+ private _extArcEndAngle;
43
+ /** The leader length distance */
44
+ private _leaderLength;
45
+ /**
46
+ * Creates a new radial dimension entity.
47
+ *
48
+ * This constructor initializes a radial dimension using the specified center point,
49
+ * chord point, and leader length. The dimension line behavior depends on whether
50
+ * the text is inside or outside the curve being dimensioned.
51
+ *
52
+ * - If the text is inside the curve, the dimension line is drawn from the center
53
+ * to the chordPoint, with a break for the annotation text.
54
+ * - If the text is outside the curve, the dimension line is drawn from the center,
55
+ * through the chordPoint and out the leaderLength distance past the chordPoint
56
+ * where it does a short horizontal dogleg (if appropriate) to the annotation text.
57
+ *
58
+ * @param center - Center point (in WCS coordinates) of curve being dimensioned
59
+ * @param chordPoint - Point (in WCS coordinates) on the curve being dimensioned
60
+ * @param leaderLength - Leader length distance
61
+ * @param dimText - Text string to use as the dimension annotation (optional)
62
+ * @param dimStyle - String name of dimension style table record to use (optional)
63
+ *
64
+ * @example
65
+ * ```typescript
66
+ * // Create a radial dimension with default text and style
67
+ * const radialDim = new AcDbRadialDimension(
68
+ * new AcGePoint3d(0, 0, 0),
69
+ * new AcGePoint3d(5, 0, 0),
70
+ * 2.0
71
+ * );
72
+ *
73
+ * // Create a radial dimension with custom text and style
74
+ * const radialDim2 = new AcDbRadialDimension(
75
+ * new AcGePoint3d(10, 10, 0),
76
+ * new AcGePoint3d(15, 10, 0),
77
+ * 3.0,
78
+ * "5.0",
79
+ * "Architectural"
80
+ * );
81
+ * ```
82
+ */
83
+ constructor(center: AcGePoint3dLike, chordPoint: AcGePoint3dLike, leaderLength: number, dimText?: string | null, dimStyle?: string | null);
84
+ /**
85
+ * Gets the center point of the curve being dimensioned.
86
+ *
87
+ * This point is the primary definition point for this dimension type.
88
+ *
89
+ * @returns The center point in WCS coordinates
90
+ *
91
+ * @example
92
+ * ```typescript
93
+ * const center = radialDim.center;
94
+ * console.log(`Center point: ${center.x}, ${center.y}, ${center.z}`);
95
+ * ```
96
+ */
97
+ get center(): AcGePoint3d;
98
+ /**
99
+ * Sets the center point of the curve being dimensioned.
100
+ *
101
+ * @param value - The new center point
102
+ *
103
+ * @example
104
+ * ```typescript
105
+ * radialDim.center = new AcGePoint3d(0, 0, 0);
106
+ * ```
107
+ */
108
+ set center(value: AcGePoint3d);
109
+ /**
110
+ * Gets the point where the dimension line intersects the curve being dimensioned.
111
+ *
112
+ * @returns The chord point in WCS coordinates
113
+ *
114
+ * @example
115
+ * ```typescript
116
+ * const chordPoint = radialDim.chordPoint;
117
+ * console.log(`Chord point: ${chordPoint.x}, ${chordPoint.y}, ${chordPoint.z}`);
118
+ * ```
119
+ */
120
+ get chordPoint(): AcGePoint3d;
121
+ /**
122
+ * Sets the point where the dimension line intersects the curve being dimensioned.
123
+ *
124
+ * @param value - The new chord point
125
+ *
126
+ * @example
127
+ * ```typescript
128
+ * radialDim.chordPoint = new AcGePoint3d(5, 0, 0);
129
+ * ```
130
+ */
131
+ set chordPoint(value: AcGePoint3d);
132
+ /**
133
+ * Gets the extension arc start angle.
134
+ *
135
+ * @returns The extension arc start angle in radians
136
+ *
137
+ * @example
138
+ * ```typescript
139
+ * const startAngle = radialDim.extArcStartAngle;
140
+ * console.log(`Extension arc start angle: ${startAngle} radians`);
141
+ * ```
142
+ */
143
+ get extArcStartAngle(): number;
144
+ /**
145
+ * Sets the extension arc start angle.
146
+ *
147
+ * @param value - The new extension arc start angle in radians
148
+ *
149
+ * @example
150
+ * ```typescript
151
+ * radialDim.extArcStartAngle = 0;
152
+ * ```
153
+ */
154
+ set extArcStartAngle(value: number);
155
+ /**
156
+ * Gets the extension arc end angle.
157
+ *
158
+ * @returns The extension arc end angle in radians
159
+ *
160
+ * @example
161
+ * ```typescript
162
+ * const endAngle = radialDim.extArcEndAngle;
163
+ * console.log(`Extension arc end angle: ${endAngle} radians`);
164
+ * ```
165
+ */
166
+ get extArcEndAngle(): number;
167
+ /**
168
+ * Sets the extension arc end angle.
169
+ *
170
+ * @param value - The new extension arc end angle in radians
171
+ *
172
+ * @example
173
+ * ```typescript
174
+ * radialDim.extArcEndAngle = Math.PI / 2;
175
+ * ```
176
+ */
177
+ set extArcEndAngle(value: number);
178
+ /**
179
+ * Gets the leader length.
180
+ *
181
+ * The leader length is the distance from the chordPoint dimension definition point
182
+ * out to where the dimension does a horizontal dogleg to the annotation text
183
+ * (or stops if no dogleg is needed).
184
+ *
185
+ * @returns The leader length value
186
+ *
187
+ * @example
188
+ * ```typescript
189
+ * const leaderLength = radialDim.leaderLength;
190
+ * console.log(`Leader length: ${leaderLength}`);
191
+ * ```
192
+ */
193
+ get leaderLength(): number;
194
+ /**
195
+ * Sets the leader length.
196
+ *
197
+ * @param value - The new leader length value
198
+ *
199
+ * @example
200
+ * ```typescript
201
+ * radialDim.leaderLength = 3.0;
202
+ * ```
203
+ */
204
+ set leaderLenght(value: number);
205
+ /**
206
+ * @inheritdoc
207
+ */
208
+ get geometricExtents(): AcGeBox3d;
209
+ /**
210
+ * @inheritdoc
211
+ */
212
+ protected getLineArrowStyle(_line: AcDbLine): AcGiLineArrowStyle | undefined;
213
+ }
214
+ //# sourceMappingURL=AcDbRadialDimension.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcDbRadialDimension.d.ts","sourceRoot":"","sources":["../../../src/entity/dimension/AcDbRadialDimension.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,WAAW,EACX,eAAe,EAChB,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AAEjE,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAE/C;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,qBAAa,mBAAoB,SAAQ,aAAa;IACpD,2BAA2B;IAC3B,OAAgB,QAAQ,EAAE,MAAM,CAAoB;IAEpD,sDAAsD;IACtD,OAAO,CAAC,OAAO,CAAa;IAC5B,gFAAgF;IAChF,OAAO,CAAC,WAAW,CAAa;IAChC,+CAA+C;IAC/C,OAAO,CAAC,iBAAiB,CAAQ;IACjC,6CAA6C;IAC7C,OAAO,CAAC,eAAe,CAAQ;IAC/B,iCAAiC;IACjC,OAAO,CAAC,aAAa,CAAQ;IAE7B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAqCG;gBAED,MAAM,EAAE,eAAe,EACvB,UAAU,EAAE,eAAe,EAC3B,YAAY,EAAE,MAAM,EACpB,OAAO,GAAE,MAAM,GAAG,IAAW,EAC7B,QAAQ,GAAE,MAAM,GAAG,IAAW;IAchC;;;;;;;;;;;;OAYG;IACH,IAAI,MAAM,IAcQ,WAAW,CAZ5B;IAED;;;;;;;;;OASG;IACH,IAAI,MAAM,CAAC,KAAK,EAAE,WAAW,EAE5B;IAED;;;;;;;;;;OAUG;IACH,IAAI,UAAU,IAcQ,WAAW,CAZhC;IAED;;;;;;;;;OASG;IACH,IAAI,UAAU,CAAC,KAAK,EAAE,WAAW,EAEhC;IAED;;;;;;;;;;OAUG;IACH,IAAI,gBAAgB,IAcQ,MAAM,CAZjC;IAED;;;;;;;;;OASG;IACH,IAAI,gBAAgB,CAAC,KAAK,EAAE,MAAM,EAEjC;IAED;;;;;;;;;;OAUG;IACH,IAAI,cAAc,IAcQ,MAAM,CAZ/B;IAED;;;;;;;;;OASG;IACH,IAAI,cAAc,CAAC,KAAK,EAAE,MAAM,EAE/B;IAED;;;;;;;;;;;;;;OAcG;IACH,IAAI,YAAY,WAEf;IAED;;;;;;;;;OASG;IACH,IAAI,YAAY,CAAC,KAAK,EAAE,MAAM,EAE7B;IAED;;OAEG;IACH,IAAI,gBAAgB,cAGnB;IAED;;OAEG;IACH,SAAS,CAAC,iBAAiB,CAAC,KAAK,EAAE,QAAQ,GAAG,kBAAkB,GAAG,SAAS;CAK7E"}
@@ -0,0 +1,288 @@
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 } from '@mlightcad/geometry-engine';
17
+ import { AcDbDimension } from './AcDbDimension';
18
+ /**
19
+ * Represents a radial dimension entity in AutoCAD.
20
+ *
21
+ * A radial dimension measures the radius of a curve (typically a circle or arc).
22
+ * This dimension type requires a center point and a point on the curve being dimensioned
23
+ * in order to draw the dimension line from the center point through the point on the curve.
24
+ *
25
+ * The dimension utilizes a "leader length" value to determine how far the dimension line
26
+ * extends out past the curve before doing a horizontal dogleg (if necessary) to the annotation text.
27
+ *
28
+ * @example
29
+ * ```typescript
30
+ * // Create a radial dimension
31
+ * const radialDim = new AcDbRadialDimension(
32
+ * new AcGePoint3d(0, 0, 0), // Center point
33
+ * new AcGePoint3d(5, 0, 0), // Point on curve
34
+ * 2.0, // Leader length
35
+ * "5.0", // Dimension text
36
+ * "Standard" // Dimension style
37
+ * );
38
+ *
39
+ * // Access dimension properties
40
+ * console.log(`Center: ${radialDim.center}`);
41
+ * console.log(`Chord point: ${radialDim.chordPoint}`);
42
+ * console.log(`Leader length: ${radialDim.leaderLength}`);
43
+ * ```
44
+ */
45
+ var AcDbRadialDimension = /** @class */ (function (_super) {
46
+ __extends(AcDbRadialDimension, _super);
47
+ /**
48
+ * Creates a new radial dimension entity.
49
+ *
50
+ * This constructor initializes a radial dimension using the specified center point,
51
+ * chord point, and leader length. The dimension line behavior depends on whether
52
+ * the text is inside or outside the curve being dimensioned.
53
+ *
54
+ * - If the text is inside the curve, the dimension line is drawn from the center
55
+ * to the chordPoint, with a break for the annotation text.
56
+ * - If the text is outside the curve, the dimension line is drawn from the center,
57
+ * through the chordPoint and out the leaderLength distance past the chordPoint
58
+ * where it does a short horizontal dogleg (if appropriate) to the annotation text.
59
+ *
60
+ * @param center - Center point (in WCS coordinates) of curve being dimensioned
61
+ * @param chordPoint - Point (in WCS coordinates) on the curve being dimensioned
62
+ * @param leaderLength - Leader length distance
63
+ * @param dimText - Text string to use as the dimension annotation (optional)
64
+ * @param dimStyle - String name of dimension style table record to use (optional)
65
+ *
66
+ * @example
67
+ * ```typescript
68
+ * // Create a radial dimension with default text and style
69
+ * const radialDim = new AcDbRadialDimension(
70
+ * new AcGePoint3d(0, 0, 0),
71
+ * new AcGePoint3d(5, 0, 0),
72
+ * 2.0
73
+ * );
74
+ *
75
+ * // Create a radial dimension with custom text and style
76
+ * const radialDim2 = new AcDbRadialDimension(
77
+ * new AcGePoint3d(10, 10, 0),
78
+ * new AcGePoint3d(15, 10, 0),
79
+ * 3.0,
80
+ * "5.0",
81
+ * "Architectural"
82
+ * );
83
+ * ```
84
+ */
85
+ function AcDbRadialDimension(center, chordPoint, leaderLength, dimText, dimStyle) {
86
+ if (dimText === void 0) { dimText = null; }
87
+ if (dimStyle === void 0) { dimStyle = null; }
88
+ var _this = _super.call(this) || this;
89
+ _this._center = new AcGePoint3d().copy(center);
90
+ _this._chordPoint = new AcGePoint3d().copy(chordPoint);
91
+ _this._leaderLength = leaderLength;
92
+ _this._extArcStartAngle = 0;
93
+ _this._extArcEndAngle = 0;
94
+ _this.dimensionText = dimText;
95
+ // TODO: Set it to the current default dimStyle within the AutoCAD editor if dimStyle is null
96
+ _this.dimensionStyleName = dimStyle;
97
+ return _this;
98
+ }
99
+ Object.defineProperty(AcDbRadialDimension.prototype, "center", {
100
+ /**
101
+ * Gets the center point of the curve being dimensioned.
102
+ *
103
+ * This point is the primary definition point for this dimension type.
104
+ *
105
+ * @returns The center point in WCS coordinates
106
+ *
107
+ * @example
108
+ * ```typescript
109
+ * const center = radialDim.center;
110
+ * console.log(`Center point: ${center.x}, ${center.y}, ${center.z}`);
111
+ * ```
112
+ */
113
+ get: function () {
114
+ return this._center;
115
+ },
116
+ /**
117
+ * Sets the center point of the curve being dimensioned.
118
+ *
119
+ * @param value - The new center point
120
+ *
121
+ * @example
122
+ * ```typescript
123
+ * radialDim.center = new AcGePoint3d(0, 0, 0);
124
+ * ```
125
+ */
126
+ set: function (value) {
127
+ this._center.copy(value);
128
+ },
129
+ enumerable: false,
130
+ configurable: true
131
+ });
132
+ Object.defineProperty(AcDbRadialDimension.prototype, "chordPoint", {
133
+ /**
134
+ * Gets the point where the dimension line intersects the curve being dimensioned.
135
+ *
136
+ * @returns The chord point in WCS coordinates
137
+ *
138
+ * @example
139
+ * ```typescript
140
+ * const chordPoint = radialDim.chordPoint;
141
+ * console.log(`Chord point: ${chordPoint.x}, ${chordPoint.y}, ${chordPoint.z}`);
142
+ * ```
143
+ */
144
+ get: function () {
145
+ return this._chordPoint;
146
+ },
147
+ /**
148
+ * Sets the point where the dimension line intersects the curve being dimensioned.
149
+ *
150
+ * @param value - The new chord point
151
+ *
152
+ * @example
153
+ * ```typescript
154
+ * radialDim.chordPoint = new AcGePoint3d(5, 0, 0);
155
+ * ```
156
+ */
157
+ set: function (value) {
158
+ this._chordPoint.copy(value);
159
+ },
160
+ enumerable: false,
161
+ configurable: true
162
+ });
163
+ Object.defineProperty(AcDbRadialDimension.prototype, "extArcStartAngle", {
164
+ /**
165
+ * Gets the extension arc start angle.
166
+ *
167
+ * @returns The extension arc start angle in radians
168
+ *
169
+ * @example
170
+ * ```typescript
171
+ * const startAngle = radialDim.extArcStartAngle;
172
+ * console.log(`Extension arc start angle: ${startAngle} radians`);
173
+ * ```
174
+ */
175
+ get: function () {
176
+ return this._extArcStartAngle;
177
+ },
178
+ /**
179
+ * Sets the extension arc start angle.
180
+ *
181
+ * @param value - The new extension arc start angle in radians
182
+ *
183
+ * @example
184
+ * ```typescript
185
+ * radialDim.extArcStartAngle = 0;
186
+ * ```
187
+ */
188
+ set: function (value) {
189
+ this._extArcStartAngle = value;
190
+ },
191
+ enumerable: false,
192
+ configurable: true
193
+ });
194
+ Object.defineProperty(AcDbRadialDimension.prototype, "extArcEndAngle", {
195
+ /**
196
+ * Gets the extension arc end angle.
197
+ *
198
+ * @returns The extension arc end angle in radians
199
+ *
200
+ * @example
201
+ * ```typescript
202
+ * const endAngle = radialDim.extArcEndAngle;
203
+ * console.log(`Extension arc end angle: ${endAngle} radians`);
204
+ * ```
205
+ */
206
+ get: function () {
207
+ return this._extArcEndAngle;
208
+ },
209
+ /**
210
+ * Sets the extension arc end angle.
211
+ *
212
+ * @param value - The new extension arc end angle in radians
213
+ *
214
+ * @example
215
+ * ```typescript
216
+ * radialDim.extArcEndAngle = Math.PI / 2;
217
+ * ```
218
+ */
219
+ set: function (value) {
220
+ this._extArcEndAngle = value;
221
+ },
222
+ enumerable: false,
223
+ configurable: true
224
+ });
225
+ Object.defineProperty(AcDbRadialDimension.prototype, "leaderLength", {
226
+ /**
227
+ * Gets the leader length.
228
+ *
229
+ * The leader length is the distance from the chordPoint dimension definition point
230
+ * out to where the dimension does a horizontal dogleg to the annotation text
231
+ * (or stops if no dogleg is needed).
232
+ *
233
+ * @returns The leader length value
234
+ *
235
+ * @example
236
+ * ```typescript
237
+ * const leaderLength = radialDim.leaderLength;
238
+ * console.log(`Leader length: ${leaderLength}`);
239
+ * ```
240
+ */
241
+ get: function () {
242
+ return this._leaderLength;
243
+ },
244
+ enumerable: false,
245
+ configurable: true
246
+ });
247
+ Object.defineProperty(AcDbRadialDimension.prototype, "leaderLenght", {
248
+ /**
249
+ * Sets the leader length.
250
+ *
251
+ * @param value - The new leader length value
252
+ *
253
+ * @example
254
+ * ```typescript
255
+ * radialDim.leaderLength = 3.0;
256
+ * ```
257
+ */
258
+ set: function (value) {
259
+ this._leaderLength = value;
260
+ },
261
+ enumerable: false,
262
+ configurable: true
263
+ });
264
+ Object.defineProperty(AcDbRadialDimension.prototype, "geometricExtents", {
265
+ /**
266
+ * @inheritdoc
267
+ */
268
+ get: function () {
269
+ // TODO: Finish it
270
+ return new AcGeBox3d();
271
+ },
272
+ enumerable: false,
273
+ configurable: true
274
+ });
275
+ /**
276
+ * @inheritdoc
277
+ */
278
+ AcDbRadialDimension.prototype.getLineArrowStyle = function (_line) {
279
+ return {
280
+ secondArrow: this.secondArrowStyle
281
+ };
282
+ };
283
+ /** The entity type name */
284
+ AcDbRadialDimension.typeName = 'RadialDimension';
285
+ return AcDbRadialDimension;
286
+ }(AcDbDimension));
287
+ export { AcDbRadialDimension };
288
+ //# sourceMappingURL=AcDbRadialDimension.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcDbRadialDimension.js","sourceRoot":"","sources":["../../../src/entity/dimension/AcDbRadialDimension.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EACL,SAAS,EACT,WAAW,EAEZ,MAAM,4BAA4B,CAAA;AAInC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAE/C;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH;IAAyC,uCAAa;IAepD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAqCG;IACH,6BACE,MAAuB,EACvB,UAA2B,EAC3B,YAAoB,EACpB,OAA6B,EAC7B,QAA8B;QAD9B,wBAAA,EAAA,cAA6B;QAC7B,yBAAA,EAAA,eAA8B;QAE9B,YAAA,MAAK,WAAE,SAAA;QACP,KAAI,CAAC,OAAO,GAAG,IAAI,WAAW,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QAC7C,KAAI,CAAC,WAAW,GAAG,IAAI,WAAW,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,CAAA;QACrD,KAAI,CAAC,aAAa,GAAG,YAAY,CAAA;QACjC,KAAI,CAAC,iBAAiB,GAAG,CAAC,CAAA;QAC1B,KAAI,CAAC,eAAe,GAAG,CAAC,CAAA;QAExB,KAAI,CAAC,aAAa,GAAG,OAAO,CAAA;QAC5B,6FAA6F;QAC7F,KAAI,CAAC,kBAAkB,GAAG,QAAQ,CAAA;;IACpC,CAAC;IAeD,sBAAI,uCAAM;QAbV;;;;;;;;;;;;WAYG;aACH;YACE,OAAO,IAAI,CAAC,OAAO,CAAA;QACrB,CAAC;QAED;;;;;;;;;WASG;aACH,UAAW,KAAkB;YAC3B,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;QAC1B,CAAC;;;OAdA;IA2BD,sBAAI,2CAAU;QAXd;;;;;;;;;;WAUG;aACH;YACE,OAAO,IAAI,CAAC,WAAW,CAAA;QACzB,CAAC;QAED;;;;;;;;;WASG;aACH,UAAe,KAAkB;YAC/B,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;QAC9B,CAAC;;;OAdA;IA2BD,sBAAI,iDAAgB;QAXpB;;;;;;;;;;WAUG;aACH;YACE,OAAO,IAAI,CAAC,iBAAiB,CAAA;QAC/B,CAAC;QAED;;;;;;;;;WASG;aACH,UAAqB,KAAa;YAChC,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAA;QAChC,CAAC;;;OAdA;IA2BD,sBAAI,+CAAc;QAXlB;;;;;;;;;;WAUG;aACH;YACE,OAAO,IAAI,CAAC,eAAe,CAAA;QAC7B,CAAC;QAED;;;;;;;;;WASG;aACH,UAAmB,KAAa;YAC9B,IAAI,CAAC,eAAe,GAAG,KAAK,CAAA;QAC9B,CAAC;;;OAdA;IA+BD,sBAAI,6CAAY;QAfhB;;;;;;;;;;;;;;WAcG;aACH;YACE,OAAO,IAAI,CAAC,aAAa,CAAA;QAC3B,CAAC;;;OAAA;IAYD,sBAAI,6CAAY;QAVhB;;;;;;;;;WASG;aACH,UAAiB,KAAa;YAC5B,IAAI,CAAC,aAAa,GAAG,KAAK,CAAA;QAC5B,CAAC;;;OAAA;IAKD,sBAAI,iDAAgB;QAHpB;;WAEG;aACH;YACE,kBAAkB;YAClB,OAAO,IAAI,SAAS,EAAE,CAAA;QACxB,CAAC;;;OAAA;IAED;;OAEG;IACO,+CAAiB,GAA3B,UAA4B,KAAe;QACzC,OAAO;YACL,WAAW,EAAE,IAAI,CAAC,gBAAgB;SACnC,CAAA;IACH,CAAC;IA7OD,2BAA2B;IACX,4BAAQ,GAAW,iBAAiB,CAAA;IA6OtD,0BAAC;CAAA,AA/OD,CAAyC,aAAa,GA+OrD;SA/OY,mBAAmB"}
@@ -0,0 +1,8 @@
1
+ export * from './AcDb3PointAngularDimension';
2
+ export * from './AcDbAlignedDimension';
3
+ export * from './AcDbArcDimension';
4
+ export * from './AcDbDiametricDimension';
5
+ export * from './AcDbDimension';
6
+ export * from './AcDbOrdinateDimension';
7
+ export * from './AcDbRadialDimension';
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/entity/dimension/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAA;AAC5C,cAAc,wBAAwB,CAAA;AACtC,cAAc,oBAAoB,CAAA;AAClC,cAAc,0BAA0B,CAAA;AACxC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,yBAAyB,CAAA;AACvC,cAAc,uBAAuB,CAAA"}
@@ -0,0 +1,8 @@
1
+ export * from './AcDb3PointAngularDimension';
2
+ export * from './AcDbAlignedDimension';
3
+ export * from './AcDbArcDimension';
4
+ export * from './AcDbDiametricDimension';
5
+ export * from './AcDbDimension';
6
+ export * from './AcDbOrdinateDimension';
7
+ export * from './AcDbRadialDimension';
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entity/dimension/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAA;AAC5C,cAAc,wBAAwB,CAAA;AACtC,cAAc,oBAAoB,CAAA;AAClC,cAAc,0BAA0B,CAAA;AACxC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,yBAAyB,CAAA;AACvC,cAAc,uBAAuB,CAAA"}