@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 @@
1
+ {"version":3,"file":"AcDb3dPolyline.d.ts","sourceRoot":"","sources":["../../src/entity/AcDb3dPolyline.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,WAAW,EACX,eAAe,EAGhB,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAE3D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAEvC;;GAEG;AACH,oBAAY,cAAc;IACxB;;OAEG;IACH,UAAU,IAAA;IACV;;OAEG;IACH,cAAc,IAAA;IACd;;OAEG;IACH,eAAe,IAAA;CAChB;AAED;;GAEG;AACH,qBAAa,cAAe,SAAQ,SAAS;IAC3C,2BAA2B;IAC3B,OAAgB,QAAQ,EAAE,MAAM,CAAe;IAE/C,+CAA+C;IAC/C,OAAO,CAAC,SAAS,CAAgB;IACjC,+CAA+C;IAC/C,OAAO,CAAC,IAAI,CAAsC;IAElD;;OAEG;gBAED,IAAI,EAAE,cAAc,EACpB,QAAQ,EAAE,eAAe,EAAE,EAC3B,MAAM,UAAQ;IAOhB;;;;OAIG;IACH,IAAI,QAAQ,IAAI,cAAc,CAE7B;IAED;;;;OAIG;IACH,IAAI,QAAQ,CAAC,KAAK,EAAE,cAAc,EAEjC;IAED;;;;;;;;;;;;;OAaG;IACH,IAAI,MAAM,IAAI,OAAO,CAEpB;IAED;;;;;;;;;OASG;IACH,IAAI,MAAM,CAAC,KAAK,EAAE,OAAO,EAExB;IAED;;;;;;;;;;OAUG;IACH,IAAI,gBAAgB,IAAI,SAAS,CAOhC;IAED;;;;;;;OAOG;IACH,gBAAgB;IAMhB;;;;;OAKG;IACH,IAAI,CAAC,QAAQ,EAAE,YAAY;CAS5B"}
@@ -0,0 +1,158 @@
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, AcGePolyline2d, } from '@mlightcad/geometry-engine';
17
+ import { AcDbCurve } from './AcDbCurve';
18
+ /**
19
+ * Represents the spline-fit type for this 3D polyline.
20
+ */
21
+ export var AcDbPoly3dType;
22
+ (function (AcDbPoly3dType) {
23
+ /**
24
+ * A standard polyline with no spline fitting.
25
+ */
26
+ AcDbPoly3dType[AcDbPoly3dType["SimplePoly"] = 0] = "SimplePoly";
27
+ /**
28
+ * A spline-fit polyline that has a Quadratic B-spline path.
29
+ */
30
+ AcDbPoly3dType[AcDbPoly3dType["QuadSplinePoly"] = 1] = "QuadSplinePoly";
31
+ /**
32
+ * A spline-fit polyline that has a Cubic B-spline path.
33
+ */
34
+ AcDbPoly3dType[AcDbPoly3dType["CubicSplinePoly"] = 2] = "CubicSplinePoly";
35
+ })(AcDbPoly3dType || (AcDbPoly3dType = {}));
36
+ /**
37
+ * Represents a 3d polyline entity in AutoCAD.
38
+ */
39
+ var AcDb3dPolyline = /** @class */ (function (_super) {
40
+ __extends(AcDb3dPolyline, _super);
41
+ /**
42
+ * Creates a new empty 2d polyline entity.
43
+ */
44
+ function AcDb3dPolyline(type, vertices, closed) {
45
+ if (closed === void 0) { closed = false; }
46
+ var _this = _super.call(this) || this;
47
+ _this._polyType = type;
48
+ _this._geo = new AcGePolyline2d(vertices, closed);
49
+ return _this;
50
+ }
51
+ Object.defineProperty(AcDb3dPolyline.prototype, "polyType", {
52
+ /**
53
+ * Gets the spline-fit type for this 3D polyline.
54
+ *
55
+ * @returns The spline-fit type for this 3D polyline.
56
+ */
57
+ get: function () {
58
+ return this._polyType;
59
+ },
60
+ /**
61
+ * Sets the spline-fit type for this 3D polyline.
62
+ *
63
+ * @param value - The spline-fit type for this 3D polyline.
64
+ */
65
+ set: function (value) {
66
+ this._polyType = value;
67
+ },
68
+ enumerable: false,
69
+ configurable: true
70
+ });
71
+ Object.defineProperty(AcDb3dPolyline.prototype, "closed", {
72
+ /**
73
+ * Gets whether this polyline is closed.
74
+ *
75
+ * A closed polyline has a segment drawn from the last vertex to the first vertex,
76
+ * forming a complete loop.
77
+ *
78
+ * @returns True if the polyline is closed, false otherwise
79
+ *
80
+ * @example
81
+ * ```typescript
82
+ * const isClosed = polyline.closed;
83
+ * console.log(`Polyline is closed: ${isClosed}`);
84
+ * ```
85
+ */
86
+ get: function () {
87
+ return this._geo.closed;
88
+ },
89
+ /**
90
+ * Sets whether this polyline is closed.
91
+ *
92
+ * @param value - True to close the polyline, false to open it
93
+ *
94
+ * @example
95
+ * ```typescript
96
+ * polyline.closed = true; // Close the polyline
97
+ * ```
98
+ */
99
+ set: function (value) {
100
+ this._geo.closed = value;
101
+ },
102
+ enumerable: false,
103
+ configurable: true
104
+ });
105
+ Object.defineProperty(AcDb3dPolyline.prototype, "geometricExtents", {
106
+ /**
107
+ * Gets the geometric extents (bounding box) of this polyline.
108
+ *
109
+ * @returns The bounding box that encompasses the entire polyline
110
+ *
111
+ * @example
112
+ * ```typescript
113
+ * const extents = polyline.geometricExtents;
114
+ * console.log(`Polyline bounds: ${extents.minPoint} to ${extents.maxPoint}`);
115
+ * ```
116
+ */
117
+ get: function () {
118
+ var box = this._geo.box;
119
+ // TODO: Set the correct z value for 3d box
120
+ return new AcGeBox3d({ x: box.min.x, y: box.min.y, z: 0 }, { x: box.max.x, y: box.max.y, z: 0 });
121
+ },
122
+ enumerable: false,
123
+ configurable: true
124
+ });
125
+ /**
126
+ * Gets the grip points for this polyline.
127
+ *
128
+ * Grip points are control points that can be used to modify the polyline.
129
+ * For a polyline, the grip points are all the vertices.
130
+ *
131
+ * @returns Array of grip points (all vertices)
132
+ */
133
+ AcDb3dPolyline.prototype.subGetGripPoints = function () {
134
+ var gripPoints = new Array();
135
+ // TODO: Finish logic to get grip points
136
+ return gripPoints;
137
+ };
138
+ /**
139
+ * Draws this polyline using the specified renderer.
140
+ *
141
+ * @param renderer - The renderer to use for drawing
142
+ * @returns The rendered polyline entity, or undefined if drawing failed
143
+ */
144
+ AcDb3dPolyline.prototype.draw = function (renderer) {
145
+ var points = [];
146
+ var tmp = this._geo.getPoints(100);
147
+ // TODO: Set the correct z value
148
+ tmp.forEach(function (point) {
149
+ return points.push(new AcGePoint3d().set(point.x, point.y, 0));
150
+ });
151
+ return renderer.lines(points, this.lineStyle);
152
+ };
153
+ /** The entity type name */
154
+ AcDb3dPolyline.typeName = '3dPolyline';
155
+ return AcDb3dPolyline;
156
+ }(AcDbCurve));
157
+ export { AcDb3dPolyline };
158
+ //# sourceMappingURL=AcDb3dPolyline.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcDb3dPolyline.js","sourceRoot":"","sources":["../../src/entity/AcDb3dPolyline.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EACL,SAAS,EACT,WAAW,EAEX,cAAc,GAEf,MAAM,4BAA4B,CAAA;AAGnC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAEvC;;GAEG;AACH,MAAM,CAAN,IAAY,cAaX;AAbD,WAAY,cAAc;IACxB;;OAEG;IACH,+DAAU,CAAA;IACV;;OAEG;IACH,uEAAc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H,yCAAgB,GAAhB;QACE,IAAM,UAAU,GAAG,IAAI,KAAK,EAAe,CAAA;QAC3C,wCAAwC;QACxC,OAAO,UAAU,CAAA;IACnB,CAAC;IAED;;;;;OAKG;IACH,6BAAI,GAAJ,UAAK,QAAsB;QACzB,IAAM,MAAM,GAAkB,EAAE,CAAA;QAChC,IAAM,GAAG,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAA;QACpC,gCAAgC;QAChC,GAAG,CAAC,OAAO,CAAC,UAAA,KAAK;YACf,OAAA,MAAM,CAAC,IAAI,CAAC,IAAI,WAAW,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QAAvD,CAAuD,CACxD,CAAA;QACD,OAAO,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,IAAI,CAAC,SAAS,CAAC,CAAA;IAC/C,CAAC;IAvHD,2BAA2B;IACX,uBAAQ,GAAW,YAAY,CAAA;IAuHjD,qBAAC;CAAA,AAzHD,CAAoC,SAAS,GAyH5C;SAzHY,cAAc"}
@@ -0,0 +1,83 @@
1
+ import { AcGeBox3d, AcGeMatrix3d, AcGePoint3d, AcGePoint3dLike } from '@mlightcad/geometry-engine';
2
+ import { AcGiRenderer } from '@mlightcad/graphic-interface';
3
+ import { AcDbEntity } from './AcDbEntity';
4
+ export declare enum AcDb3dVertexType {
5
+ /**
6
+ * A standard vertex within the polyface mesh.
7
+ */
8
+ SimpleVertex = 0,
9
+ /**
10
+ * A control point for a spline or curve-fit mesh.
11
+ */
12
+ ControlVertex = 1,
13
+ /**
14
+ * A vertex that was automatically generated as the result of a spline or curve-fit operation.
15
+ * This type of vertex can go away or change automatically during subsequent editing operations
16
+ * on the mesh.
17
+ */
18
+ FitVertex = 2
19
+ }
20
+ /**
21
+ * Represents the vertices within 3D polylines in AutoCAD.
22
+ */
23
+ export declare class AcDb3dVertex extends AcDbEntity {
24
+ /** The entity type name */
25
+ static typeName: string;
26
+ /** The WCS point value of this vertex */
27
+ private _position;
28
+ /** The vertex type */
29
+ private _vertexType;
30
+ /**
31
+ * Creates a new 3d vertex entity.
32
+ */
33
+ constructor();
34
+ /**
35
+ * Gets the WCS point value of this vertex.
36
+ *
37
+ * @returns The WCS point value of this vertex.
38
+ */
39
+ get position(): AcGePoint3d;
40
+ /**
41
+ * Sets WCS point value of this vertex.
42
+ *
43
+ * @param value - The WCS point value of this vertex.
44
+ */
45
+ set position(value: AcGePoint3dLike);
46
+ /**
47
+ * Gets the type of this vertex.
48
+ * @returns The type of this vertex
49
+ */
50
+ get vertexType(): AcDb3dVertexType;
51
+ /**
52
+ * Sets the type of this vertex.
53
+ * @param value - The type of this vertex
54
+ */
55
+ set vertexType(value: AcDb3dVertexType);
56
+ /**
57
+ * Gets the geometric extents (bounding box) of this vertex.
58
+ *
59
+ * @returns The bounding box that encompasses the entire vertex
60
+ */
61
+ get geometricExtents(): AcGeBox3d;
62
+ /**
63
+ * Gets the grip points for this vertex.
64
+ *
65
+ * @returns Array of grip points (center, start point, end point)
66
+ */
67
+ subGetGripPoints(): AcGePoint3d[];
68
+ /**
69
+ * Transforms this vertex by the specified matrix.
70
+ *
71
+ * @param matrix - The transformation matrix to apply
72
+ * @returns This vertex after transformation
73
+ */
74
+ transformBy(matrix: AcGeMatrix3d): this;
75
+ /**
76
+ * Draws nothing because it will be drawn by its parent 3d polyline.
77
+ *
78
+ * @param renderer - The renderer to use for drawing
79
+ * @returns undefined
80
+ */
81
+ draw(_renderer: AcGiRenderer): undefined;
82
+ }
83
+ //# sourceMappingURL=AcDb3dVertex.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcDb3dVertex.d.ts","sourceRoot":"","sources":["../../src/entity/AcDb3dVertex.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,YAAY,EACZ,WAAW,EACX,eAAe,EAChB,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAE3D,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAGzC,oBAAY,gBAAgB;IAC1B;;OAEG;IACH,YAAY,IAAA;IACZ;;OAEG;IACH,aAAa,IAAA;IACb;;;;OAIG;IACH,SAAS,IAAA;CACV;AAED;;GAEG;AACH,qBAAa,YAAa,SAAQ,UAAU;IAC1C,2BAA2B;IAC3B,OAAgB,QAAQ,EAAE,MAAM,CAAa;IAE7C,yCAAyC;IACzC,OAAO,CAAC,SAAS,CAAa;IAC9B,sBAAsB;IACtB,OAAO,CAAC,WAAW,CAAkB;IAErC;;OAEG;;IAOH;;;;OAIG;IACH,IAAI,QAAQ,IAAI,WAAW,CAE1B;IAED;;;;OAIG;IACH,IAAI,QAAQ,CAAC,KAAK,EAAE,eAAe,EAElC;IAED;;;OAGG;IACH,IAAI,UAAU,IAAI,gBAAgB,CAEjC;IAED;;;OAGG;IACH,IAAI,UAAU,CAAC,KAAK,EAAE,gBAAgB,EAErC;IAED;;;;OAIG;IACH,IAAI,gBAAgB,cAEnB;IAED;;;;OAIG;IACH,gBAAgB;IAMhB;;;;;OAKG;IACH,WAAW,CAAC,MAAM,EAAE,YAAY;IAKhC;;;;;OAKG;IACH,IAAI,CAAC,SAAS,EAAE,YAAY,GAAG,SAAS;CAGzC"}
@@ -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 { AcDbEntity } from './AcDbEntity';
18
+ export var AcDb3dVertexType;
19
+ (function (AcDb3dVertexType) {
20
+ /**
21
+ * A standard vertex within the polyface mesh.
22
+ */
23
+ AcDb3dVertexType[AcDb3dVertexType["SimpleVertex"] = 0] = "SimpleVertex";
24
+ /**
25
+ * A control point for a spline or curve-fit mesh.
26
+ */
27
+ AcDb3dVertexType[AcDb3dVertexType["ControlVertex"] = 1] = "ControlVertex";
28
+ /**
29
+ * A vertex that was automatically generated as the result of a spline or curve-fit operation.
30
+ * This type of vertex can go away or change automatically during subsequent editing operations
31
+ * on the mesh.
32
+ */
33
+ AcDb3dVertexType[AcDb3dVertexType["FitVertex"] = 2] = "FitVertex";
34
+ })(AcDb3dVertexType || (AcDb3dVertexType = {}));
35
+ /**
36
+ * Represents the vertices within 3D polylines in AutoCAD.
37
+ */
38
+ var AcDb3dVertex = /** @class */ (function (_super) {
39
+ __extends(AcDb3dVertex, _super);
40
+ /**
41
+ * Creates a new 3d vertex entity.
42
+ */
43
+ function AcDb3dVertex() {
44
+ var _this = _super.call(this) || this;
45
+ _this._position = new AcGePoint3d();
46
+ _this._vertexType = AcDb3dVertexType.SimpleVertex;
47
+ return _this;
48
+ }
49
+ Object.defineProperty(AcDb3dVertex.prototype, "position", {
50
+ /**
51
+ * Gets the WCS point value of this vertex.
52
+ *
53
+ * @returns The WCS point value of this vertex.
54
+ */
55
+ get: function () {
56
+ return this._position;
57
+ },
58
+ /**
59
+ * Sets WCS point value of this vertex.
60
+ *
61
+ * @param value - The WCS point value of this vertex.
62
+ */
63
+ set: function (value) {
64
+ this._position.copy(value);
65
+ },
66
+ enumerable: false,
67
+ configurable: true
68
+ });
69
+ Object.defineProperty(AcDb3dVertex.prototype, "vertexType", {
70
+ /**
71
+ * Gets the type of this vertex.
72
+ * @returns The type of this vertex
73
+ */
74
+ get: function () {
75
+ return this._vertexType;
76
+ },
77
+ /**
78
+ * Sets the type of this vertex.
79
+ * @param value - The type of this vertex
80
+ */
81
+ set: function (value) {
82
+ this._vertexType = value;
83
+ },
84
+ enumerable: false,
85
+ configurable: true
86
+ });
87
+ Object.defineProperty(AcDb3dVertex.prototype, "geometricExtents", {
88
+ /**
89
+ * Gets the geometric extents (bounding box) of this vertex.
90
+ *
91
+ * @returns The bounding box that encompasses the entire vertex
92
+ */
93
+ get: function () {
94
+ return new AcGeBox3d().expandByPoint(this._position);
95
+ },
96
+ enumerable: false,
97
+ configurable: true
98
+ });
99
+ /**
100
+ * Gets the grip points for this vertex.
101
+ *
102
+ * @returns Array of grip points (center, start point, end point)
103
+ */
104
+ AcDb3dVertex.prototype.subGetGripPoints = function () {
105
+ var gripPoints = new Array();
106
+ gripPoints.push(this._position);
107
+ return gripPoints;
108
+ };
109
+ /**
110
+ * Transforms this vertex by the specified matrix.
111
+ *
112
+ * @param matrix - The transformation matrix to apply
113
+ * @returns This vertex after transformation
114
+ */
115
+ AcDb3dVertex.prototype.transformBy = function (matrix) {
116
+ this._position.applyMatrix4(matrix);
117
+ return this;
118
+ };
119
+ /**
120
+ * Draws nothing because it will be drawn by its parent 3d polyline.
121
+ *
122
+ * @param renderer - The renderer to use for drawing
123
+ * @returns undefined
124
+ */
125
+ AcDb3dVertex.prototype.draw = function (_renderer) {
126
+ return undefined;
127
+ };
128
+ /** The entity type name */
129
+ AcDb3dVertex.typeName = '3dVertex';
130
+ return AcDb3dVertex;
131
+ }(AcDbEntity));
132
+ export { AcDb3dVertex };
133
+ //# sourceMappingURL=AcDb3dVertex.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcDb3dVertex.js","sourceRoot":"","sources":["../../src/entity/AcDb3dVertex.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EACL,SAAS,EAET,WAAW,GAEZ,MAAM,4BAA4B,CAAA;AAGnC,OAAO,EAAE,UAAU,EAAE,MAAM,c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,IAAI,CAAA;IACb,CAAC;IAED;;;;;OAKG;IACH,2BAAI,GAAJ,UAAK,SAAuB;QAC1B,OAAO,SAAS,CAAA;IAClB,CAAC;IA1FD,2BAA2B;IACX,qBAAQ,GAAW,UAAU,CAAA;IA0F/C,mBAAC;CAAA,AA5FD,CAAkC,UAAU,GA4F3C;SA5FY,YAAY"}
@@ -0,0 +1,254 @@
1
+ import { AcGeMatrix3d, AcGePoint3d, AcGePoint3dLike } from '@mlightcad/geometry-engine';
2
+ import { AcGiRenderer } from '@mlightcad/graphic-interface';
3
+ import { AcDbCurve } from './AcDbCurve';
4
+ /**
5
+ * Represents an arc entity in AutoCAD.
6
+ *
7
+ * An arc is a 2D geometric object defined by its center point, radius, start angle,
8
+ * and end angle. Arcs are portions of circles that can be used to create curved
9
+ * line segments in drawings. The arc is always drawn in the plane defined by its normal vector.
10
+ *
11
+ * @example
12
+ * ```typescript
13
+ * // Create a 90-degree arc from 0 to π/2 radians
14
+ * const arc = new AcDbArc(
15
+ * new AcGePoint3d(0, 0, 0),
16
+ * 10,
17
+ * 0,
18
+ * Math.PI / 2
19
+ * );
20
+ *
21
+ * // Access arc properties
22
+ * console.log(`Center: ${arc.center}`);
23
+ * console.log(`Radius: ${arc.radius}`);
24
+ * console.log(`Start angle: ${arc.startAngle}`);
25
+ * console.log(`End angle: ${arc.endAngle}`);
26
+ * ```
27
+ */
28
+ export declare class AcDbArc extends AcDbCurve {
29
+ /** The entity type name */
30
+ static typeName: string;
31
+ /** The underlying geometric circular arc object */
32
+ private _geo;
33
+ /**
34
+ * Creates a new arc entity.
35
+ *
36
+ * This constructor creates an arc using the specified center point, radius,
37
+ * start angle, and end angle. The center point must be in World Coordinate
38
+ * System (WCS) coordinates. Angles are specified in radians.
39
+ *
40
+ * @param center - The center point of the arc in WCS coordinates
41
+ * @param radius - The radius of the arc (must be positive)
42
+ * @param startAngle - The starting angle in radians (0 to 2π)
43
+ * @param endAngle - The ending angle in radians (0 to 2π)
44
+ *
45
+ * @example
46
+ * ```typescript
47
+ * // Create a quarter circle arc (0 to 90 degrees)
48
+ * const quarterArc = new AcDbArc(
49
+ * new AcGePoint3d(0, 0, 0),
50
+ * 15,
51
+ * 0,
52
+ * Math.PI / 2
53
+ * );
54
+ *
55
+ * // Create a semicircle arc (0 to 180 degrees)
56
+ * const semicircle = new AcDbArc(
57
+ * new AcGePoint3d(10, 20, 0),
58
+ * 25,
59
+ * 0,
60
+ * Math.PI
61
+ * );
62
+ * ```
63
+ */
64
+ constructor(center: AcGePoint3dLike, radius: number, startAngle: number, endAngle: number);
65
+ /**
66
+ * Gets the center point of this arc.
67
+ *
68
+ * @returns The center point as a 3D point
69
+ *
70
+ * @example
71
+ * ```typescript
72
+ * const centerPoint = arc.center;
73
+ * console.log(`Arc center: ${centerPoint.x}, ${centerPoint.y}, ${centerPoint.z}`);
74
+ * ```
75
+ */
76
+ get center(): AcGePoint3d;
77
+ /**
78
+ * Sets the center point of this arc.
79
+ *
80
+ * @param value - The new center point
81
+ *
82
+ * @example
83
+ * ```typescript
84
+ * arc.center = new AcGePoint3d(5, 5, 0);
85
+ * ```
86
+ */
87
+ set center(value: AcGePoint3dLike);
88
+ /**
89
+ * Gets the radius of this arc.
90
+ *
91
+ * @returns The radius value
92
+ *
93
+ * @example
94
+ * ```typescript
95
+ * const radius = arc.radius;
96
+ * console.log(`Arc radius: ${radius}`);
97
+ * ```
98
+ */
99
+ get radius(): number;
100
+ /**
101
+ * Sets the radius of this arc.
102
+ *
103
+ * @param value - The new radius value (must be positive)
104
+ *
105
+ * @example
106
+ * ```typescript
107
+ * arc.radius = 25;
108
+ * ```
109
+ */
110
+ set radius(value: number);
111
+ /**
112
+ * Gets the start angle of this arc.
113
+ *
114
+ * @returns The start angle in radians
115
+ *
116
+ * @example
117
+ * ```typescript
118
+ * const startAngle = arc.startAngle;
119
+ * console.log(`Arc start angle: ${startAngle} radians (${startAngle * 180 / Math.PI} degrees)`);
120
+ * ```
121
+ */
122
+ get startAngle(): number;
123
+ /**
124
+ * Sets the start angle of this arc.
125
+ *
126
+ * @param value - The new start angle in radians (0 to 2π)
127
+ *
128
+ * @example
129
+ * ```typescript
130
+ * arc.startAngle = Math.PI / 4; // 45 degrees
131
+ * ```
132
+ */
133
+ set startAngle(value: number);
134
+ /**
135
+ * Gets the end angle of this arc.
136
+ *
137
+ * @returns The end angle in radians
138
+ *
139
+ * @example
140
+ * ```typescript
141
+ * const endAngle = arc.endAngle;
142
+ * console.log(`Arc end angle: ${endAngle} radians (${endAngle * 180 / Math.PI} degrees)`);
143
+ * ```
144
+ */
145
+ get endAngle(): number;
146
+ /**
147
+ * Sets the end angle of this arc.
148
+ *
149
+ * @param value - The new end angle in radians (0 to 2π)
150
+ *
151
+ * @example
152
+ * ```typescript
153
+ * arc.endAngle = Math.PI; // 180 degrees
154
+ * ```
155
+ */
156
+ set endAngle(value: number);
157
+ /**
158
+ * Gets the start point of this arc.
159
+ *
160
+ * The start point is calculated based on the center, radius, and start angle.
161
+ *
162
+ * @returns The start point as a 3D point
163
+ *
164
+ * @example
165
+ * ```typescript
166
+ * const startPoint = arc.startPoint;
167
+ * console.log(`Arc start point: ${startPoint.x}, ${startPoint.y}, ${startPoint.z}`);
168
+ * ```
169
+ */
170
+ get startPoint(): AcGePoint3d;
171
+ /**
172
+ * Gets the end point of this arc.
173
+ *
174
+ * The end point is calculated based on the center, radius, and end angle.
175
+ *
176
+ * @returns The end point as a 3D point
177
+ *
178
+ * @example
179
+ * ```typescript
180
+ * const endPoint = arc.endPoint;
181
+ * console.log(`Arc end point: ${endPoint.x}, ${endPoint.y}, ${endPoint.z}`);
182
+ * ```
183
+ */
184
+ get endPoint(): AcGePoint3d;
185
+ /**
186
+ * Gets the geometric extents (bounding box) of this arc.
187
+ *
188
+ * @returns The bounding box that encompasses the entire arc
189
+ *
190
+ * @example
191
+ * ```typescript
192
+ * const extents = arc.geometricExtents;
193
+ * console.log(`Arc bounds: ${extents.minPoint} to ${extents.maxPoint}`);
194
+ * ```
195
+ */
196
+ get geometricExtents(): import("@mlightcad/geometry-engine").AcGeBox3d;
197
+ /**
198
+ * Gets whether this arc is closed.
199
+ *
200
+ * An arc is considered closed if the start and end angles are the same
201
+ * (forming a complete circle).
202
+ *
203
+ * @returns True if the arc is closed (forms a complete circle), false otherwise
204
+ */
205
+ get closed(): boolean;
206
+ /**
207
+ * Gets the grip points for this arc.
208
+ *
209
+ * Grip points are control points that can be used to modify the arc.
210
+ * For an arc, the grip points are the center point, start point, and end point.
211
+ *
212
+ * @returns Array of grip points (center, start point, end point)
213
+ *
214
+ * @example
215
+ * ```typescript
216
+ * const gripPoints = arc.subGetGripPoints();
217
+ * // gripPoints contains: [center, startPoint, endPoint]
218
+ * ```
219
+ */
220
+ subGetGripPoints(): AcGePoint3d[];
221
+ /**
222
+ * Transforms this arc by the specified matrix.
223
+ *
224
+ * This method applies a geometric transformation to the arc, updating
225
+ * the center point, radius, and angles according to the transformation matrix.
226
+ *
227
+ * @param matrix - The transformation matrix to apply
228
+ * @returns This arc after transformation
229
+ *
230
+ * @example
231
+ * ```typescript
232
+ * const translationMatrix = AcGeMatrix3d.translation(10, 0, 0);
233
+ * arc.transformBy(translationMatrix);
234
+ * // Arc is now translated 10 units in the X direction
235
+ * ```
236
+ */
237
+ transformBy(matrix: AcGeMatrix3d): this;
238
+ /**
239
+ * Draws this arc using the specified renderer.
240
+ *
241
+ * This method renders the arc as a circular arc using the arc's
242
+ * current style properties.
243
+ *
244
+ * @param renderer - The renderer to use for drawing
245
+ * @returns The rendered arc entity, or undefined if drawing failed
246
+ *
247
+ * @example
248
+ * ```typescript
249
+ * const renderedArc = arc.draw(renderer);
250
+ * ```
251
+ */
252
+ draw(renderer: AcGiRenderer): import("@mlightcad/graphic-interface").AcGiEntity;
253
+ }
254
+ //# sourceMappingURL=AcDbArc.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcDbArc.d.ts","sourceRoot":"","sources":["../../src/entity/AcDbArc.ts"],"names":[],"mappings":"AAA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