@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,318 +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 { AcGePoint2d, AcGePoint3d } from '@mlightcad/geometry-engine';
17
- import { AcGiDefaultLightingType, AcGiOrthographicType, AcGiRenderMode } from '@mlightcad/graphic-interface';
18
- import { AcDbSymbolTableRecord } from './AcDbSymbolTableRecord';
19
- /**
20
- * Default view configuration for viewport table records.
21
- */
22
- var DEFAULT_VIEW = {
23
- center: new AcGePoint2d(),
24
- viewDirectionFromTarget: new AcGePoint3d(0, 0, 1),
25
- viewTarget: new AcGePoint3d(0, 0, 0),
26
- lensLength: 500,
27
- frontClippingPlane: 0,
28
- backClippingPlane: 0,
29
- viewHeight: 1000,
30
- viewTwistAngle: 0,
31
- frozenLayers: [],
32
- styleSheet: '',
33
- renderMode: AcGiRenderMode.OPTIMIZED_2D,
34
- viewMode: 0,
35
- ucsIconSetting: 0,
36
- ucsOrigin: new AcGePoint3d(0, 0, 0),
37
- ucsXAxis: new AcGePoint3d(1, 0, 0),
38
- ucsYAxis: new AcGePoint3d(0, 1, 0),
39
- orthographicType: AcGiOrthographicType.TOP,
40
- shadePlotSetting: 0,
41
- shadePlotObjectId: undefined,
42
- visualStyleObjectId: undefined,
43
- isDefaultLightingOn: false,
44
- defaultLightingType: AcGiDefaultLightingType.ONE_DISTANT_LIGHT,
45
- brightness: 0,
46
- contrast: 0,
47
- ambientColor: undefined
48
- };
49
- /**
50
- * Represents a viewport table record in AutoCAD.
51
- *
52
- * This class represents viewport arrangements in AutoCAD, which define how
53
- * the drawing is displayed in different areas of the screen or paper space.
54
- * Viewports can have their own zoom levels, pan positions, grid settings,
55
- * and other display properties.
56
- *
57
- * @example
58
- * ```typescript
59
- * const viewportRecord = new AcDbViewportTableRecord();
60
- * viewportRecord.name = '*Active';
61
- * viewportRecord.circleSides = 100;
62
- * viewportRecord.lowerLeftCorner = new AcGePoint2d(0, 0);
63
- * viewportRecord.upperRightCorner = new AcGePoint2d(1, 1);
64
- * ```
65
- */
66
- var AcDbViewportTableRecord = /** @class */ (function (_super) {
67
- __extends(AcDbViewportTableRecord, _super);
68
- /**
69
- * Creates a new AcDbViewportTableRecord instance.
70
- *
71
- * @example
72
- * ```typescript
73
- * const viewportRecord = new AcDbViewportTableRecord();
74
- * ```
75
- */
76
- function AcDbViewportTableRecord() {
77
- var _this = _super.call(this) || this;
78
- _this._circleSides = 100;
79
- _this._center = new AcGePoint2d();
80
- _this._lowerLeftCorner = new AcGePoint2d(0, 0);
81
- _this._upperRightCorner = new AcGePoint2d(1, 1);
82
- _this._snapBase = new AcGePoint2d(0, 0);
83
- _this._snapAngle = 0;
84
- _this._snapSpacing = new AcGePoint2d(0, 0);
85
- _this._standardFlag = 0;
86
- _this._gridSpacing = new AcGePoint2d();
87
- // TODO: Not sure what's the correct default value
88
- _this._gridMajor = 10;
89
- _this._gsView = DEFAULT_VIEW;
90
- return _this;
91
- }
92
- Object.defineProperty(AcDbViewportTableRecord.prototype, "circleSides", {
93
- /**
94
- * Gets or sets the circle zoom percent.
95
- *
96
- * This controls the number of sides to the tessellation used when displaying
97
- * curves. The value can be between 1 and 20000, with higher settings using
98
- * more sides in the curve tessellation.
99
- *
100
- * @returns The number of sides used for circle tessellation
101
- *
102
- * @example
103
- * ```typescript
104
- * const sides = viewportRecord.circleSides;
105
- * viewportRecord.circleSides = 200; // Higher quality circles
106
- * ```
107
- */
108
- get: function () {
109
- return this._circleSides;
110
- },
111
- set: function (value) {
112
- this._circleSides = value;
113
- },
114
- enumerable: false,
115
- configurable: true
116
- });
117
- Object.defineProperty(AcDbViewportTableRecord.prototype, "center", {
118
- /**
119
- * Gets the center point of the viewport.
120
- *
121
- * @returns The center point of the viewport
122
- *
123
- * @example
124
- * ```typescript
125
- * const center = viewportRecord.center;
126
- * ```
127
- */
128
- get: function () {
129
- return this._center;
130
- },
131
- enumerable: false,
132
- configurable: true
133
- });
134
- Object.defineProperty(AcDbViewportTableRecord.prototype, "lowerLeftCorner", {
135
- /**
136
- * Gets or sets the lower left corner of the viewport window.
137
- *
138
- * The X and Y values of this point are expressed as a value between (0.0, 0.0)
139
- * for the lower left corner of the AutoCAD graphics area and (1.0, 1.0) for
140
- * the upper right corner of the AutoCAD graphics area. For example, a lower
141
- * left corner value of (0.5, 0.0) indicates that the viewport's lower left
142
- * corner is along the bottom of the AutoCAD graphics area, midway between
143
- * the left and right edges of the graphics area.
144
- *
145
- * @returns The lower left corner point
146
- *
147
- * @example
148
- * ```typescript
149
- * const corner = viewportRecord.lowerLeftCorner;
150
- * viewportRecord.lowerLeftCorner = new AcGePoint2d(0.25, 0.25);
151
- * ```
152
- */
153
- get: function () {
154
- return this._lowerLeftCorner;
155
- },
156
- set: function (value) {
157
- this._lowerLeftCorner.copy(value);
158
- },
159
- enumerable: false,
160
- configurable: true
161
- });
162
- Object.defineProperty(AcDbViewportTableRecord.prototype, "upperRightCorner", {
163
- /**
164
- * The upper right corner of the viewport window. The X and Y values of this point are expressed as
165
- * a value between (0.0, 0.0) for the lower left corner of the AutoCAD graphics area and (1.0, 1.0)
166
- * for upper right corner of the AutoCAD graphics area. For example, an upper right corner value of
167
- * (0.5, 1.0) indicates that the viewport's upper right corner is along the top of the AutoCAD
168
- * graphics area, midway between the left and right edges of the graphics area.
169
- */
170
- get: function () {
171
- return this._upperRightCorner;
172
- },
173
- set: function (value) {
174
- this._upperRightCorner.copy(value);
175
- },
176
- enumerable: false,
177
- configurable: true
178
- });
179
- Object.defineProperty(AcDbViewportTableRecord.prototype, "snapBase", {
180
- /**
181
- * The snap basepoint (in UCS coordinates) for the viewport table record.
182
- */
183
- get: function () {
184
- return this._snapBase;
185
- },
186
- set: function (value) {
187
- this._snapBase.copy(value);
188
- },
189
- enumerable: false,
190
- configurable: true
191
- });
192
- Object.defineProperty(AcDbViewportTableRecord.prototype, "snapAngle", {
193
- /**
194
- * The snap angle setting (in radians) for the viewport table record. The snap angle is measured
195
- * within the UCS XY plane, with zero being the UCS X axis and positive angles going counterclockwise
196
- * when looking down the UCS Z axis towards the UCS origin.
197
- */
198
- get: function () {
199
- return this._snapAngle;
200
- },
201
- set: function (value) {
202
- this._snapAngle = value;
203
- },
204
- enumerable: false,
205
- configurable: true
206
- });
207
- Object.defineProperty(AcDbViewportTableRecord.prototype, "snapIncrements", {
208
- /**
209
- * An AcGePoint2d in which the X value represents the X spacing of the snap grid and the Y value
210
- * represents the Y spacing of the snap grid. Both values are in drawing units.
211
- */
212
- get: function () {
213
- return this._snapSpacing;
214
- },
215
- set: function (value) {
216
- this._snapSpacing.copy(value);
217
- },
218
- enumerable: false,
219
- configurable: true
220
- });
221
- Object.defineProperty(AcDbViewportTableRecord.prototype, "gridMajor", {
222
- /**
223
- * The number of minor grid lines between each major grid line in the viewport.
224
- */
225
- get: function () {
226
- return this._gridMajor;
227
- },
228
- set: function (value) {
229
- this._gridMajor = value;
230
- },
231
- enumerable: false,
232
- configurable: true
233
- });
234
- Object.defineProperty(AcDbViewportTableRecord.prototype, "gridIncrements", {
235
- /**
236
- * An AcGePoint2d in which the X value represents the X spacing (in drawing units) of the grid and
237
- * the Y value represents the Y spacing of the grid.
238
- */
239
- get: function () {
240
- return this._gridSpacing;
241
- },
242
- set: function (value) {
243
- this._gridSpacing.copy(value);
244
- },
245
- enumerable: false,
246
- configurable: true
247
- });
248
- Object.defineProperty(AcDbViewportTableRecord.prototype, "standardFlag", {
249
- /*
250
- * Viewport status bit-coded flags:
251
- * - 1 (0x1) = Enables perspective mode
252
- * - 2 (0x2) = Enables front clipping
253
- * - 4 (0x4) = Enables back clipping
254
- * - 8 (0x8) = Enables UCS follow
255
- * - 16 (0x10) = Enables front clip not at eye
256
- * - 32 (0x20) = Enables UCS icon visibility
257
- * - 64 (0x40) = Enables UCS icon at origin
258
- * - 128 (0x80) = Enables fast zoom
259
- * - 256 (0x100) = Enables snap mode
260
- * - 512 (0x200) = Enables grid mode
261
- * - 1024 (0x400) = Enables isometric snap style
262
- * - 2048 (0x800) = Enables hide plot mode
263
- * - 4096 (0x1000) = kIsoPairTop. If set and kIsoPairRight is not set, then isopair top is enabled. If both kIsoPairTop and kIsoPairRight are set, then isopair left is enabled
264
- * - 8192 (0x2000) = kIsoPairRight. If set and kIsoPairTop is not set, then isopair right is enabled
265
- * - 16384 (0x4000) = Enables viewport zoom locking
266
- * - 32768 (0x8000) = Currently always enabled
267
- * - 65536 (0x10000) = Enables non-rectangular clipping
268
- * - 131072 (0x20000) = Turns the viewport off
269
- * - 262144 (0x40000) = Enables the display of the grid beyond the drawing limits
270
- * - 524288 (0x80000) = Enable adaptive grid display
271
- * - 1048576 (0x100000) = Enables subdivision of the grid below the set grid spacing when the grid display is adaptive
272
- * - 2097152 (0x200000) = Enables grid follows workplane switching
273
- *
274
- * @internal
275
- */
276
- get: function () {
277
- return this._standardFlag;
278
- },
279
- set: function (value) {
280
- this._standardFlag = value;
281
- },
282
- enumerable: false,
283
- configurable: true
284
- });
285
- Object.defineProperty(AcDbViewportTableRecord.prototype, "snapEnabled", {
286
- get: function () {
287
- return !!(this._standardFlag & 0x100);
288
- },
289
- enumerable: false,
290
- configurable: true
291
- });
292
- Object.defineProperty(AcDbViewportTableRecord.prototype, "backgroundObjectId", {
293
- /**
294
- * The object dD of the new background for the view.
295
- */
296
- get: function () {
297
- return this._backgroundObjectId;
298
- },
299
- set: function (value) {
300
- this._backgroundObjectId = value;
301
- },
302
- enumerable: false,
303
- configurable: true
304
- });
305
- Object.defineProperty(AcDbViewportTableRecord.prototype, "gsView", {
306
- /**
307
- * The AcGiView associated with this viewport table record
308
- */
309
- get: function () {
310
- return this._gsView;
311
- },
312
- enumerable: false,
313
- configurable: true
314
- });
315
- return AcDbViewportTableRecord;
316
- }(AcDbSymbolTableRecord));
317
- export { AcDbViewportTableRecord };
318
- //# sourceMappingURL=AcDbViewportTableRecord.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AcDbViewportTableRecord.js","sourceRoot":"","sources":["../../src/database/AcDbViewportTableRecord.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AACrE,OAAO,EACL,uBAAuB,EACvB,oBAAoB,EACpB,cAAc,EAEf,MAAM,8BAA8B,CAAA;AAErC,OA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AC;;;OAAA;IAKD,sBAAI,uDAAkB;QAHtB;;WAEG;aACH;YACE,OAAO,IAAI,CAAC,mBAAmB,CAAA;QACjC,CAAC;aACD,UAAuB,KAAyB;YAC9C,IAAI,CAAC,mBAAmB,GAAG,KAAK,CAAA;QAClC,CAAC;;;OAHA;IAQD,sBAAI,2CAAM;QAHV;;WAEG;aACH;YACE,OAAO,IAAI,CAAC,OAAO,CAAA;QACrB,CAAC;;;OAAA;IACH,8BAAC;AAAD,CAAC,AAzOD,CAA6C,qBAAqB,GAyOjE"}
@@ -1,19 +0,0 @@
1
- export * from './AcDbDatabase';
2
- export * from './AcDbBlockTable';
3
- export * from './AcDbBlockTableRecord';
4
- export * from './AcDbDatabaseConverter';
5
- export * from './AcDbDatabaseConverterManager';
6
- export * from './AcDbDimStyleTable';
7
- export * from './AcDbDimStyleTableRecord';
8
- export * from './AcDbDwgVersion';
9
- export * from './AcDbLayerTable';
10
- export * from './AcDbLayerTableRecord';
11
- export * from './AcDbLinetypeTable';
12
- export * from './AcDbLinetypeTableRecord';
13
- export * from './AcDbSymbolTable';
14
- export * from './AcDbSymbolTableRecord';
15
- export * from './AcDbTextStyleTable';
16
- export * from './AcDbTextStyleTableRecord';
17
- export * from './AcDbViewportTable';
18
- export * from './AcDbViewportTableRecord';
19
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/database/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA;AAC9B,cAAc,kBAAkB,CAAA;AAChC,cAAc,wBAAwB,CAAA;AACtC,cAAc,yBAAyB,CAAA;AACvC,cAAc,gCAAgC,CAAA;AAC9C,cAAc,qBAAqB,CAAA;AACnC,cAAc,2BAA2B,CAAA;AACzC,cAAc,kBAAkB,CAAA;AAChC,cAAc,kBAAkB,CAAA;AAChC,cAAc,wBAAwB,CAAA;AACtC,cAAc,qBAAqB,CAAA;AACnC,cAAc,2BAA2B,CAAA;AACzC,cAAc,mBAAmB,CAAA;AACjC,cAAc,yBAAyB,CAAA;AACvC,cAAc,sBAAsB,CAAA;AACpC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,qBAAqB,CAAA;AACnC,cAAc,2BAA2B,CAAA"}
@@ -1,19 +0,0 @@
1
- export * from './AcDbDatabase';
2
- export * from './AcDbBlockTable';
3
- export * from './AcDbBlockTableRecord';
4
- export * from './AcDbDatabaseConverter';
5
- export * from './AcDbDatabaseConverterManager';
6
- export * from './AcDbDimStyleTable';
7
- export * from './AcDbDimStyleTableRecord';
8
- export * from './AcDbDwgVersion';
9
- export * from './AcDbLayerTable';
10
- export * from './AcDbLayerTableRecord';
11
- export * from './AcDbLinetypeTable';
12
- export * from './AcDbLinetypeTableRecord';
13
- export * from './AcDbSymbolTable';
14
- export * from './AcDbSymbolTableRecord';
15
- export * from './AcDbTextStyleTable';
16
- export * from './AcDbTextStyleTableRecord';
17
- export * from './AcDbViewportTable';
18
- export * from './AcDbViewportTableRecord';
19
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/database/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA;AAC9B,cAAc,kBAAkB,CAAA;AAChC,cAAc,wBAAwB,CAAA;AACtC,cAAc,yBAAyB,CAAA;AACvC,cAAc,gCAAgC,CAAA;AAC9C,cAAc,qBAAqB,CAAA;AACnC,cAAc,2BAA2B,CAAA;AACzC,cAAc,kBAAkB,CAAA;AAChC,cAAc,kBAAkB,CAAA;AAChC,cAAc,wBAAwB,CAAA;AACtC,cAAc,qBAAqB,CAAA;AACnC,cAAc,2BAA2B,CAAA;AACzC,cAAc,mBAAmB,CAAA;AACjC,cAAc,yBAAyB,CAAA;AACvC,cAAc,sBAAsB,CAAA;AACpC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,qBAAqB,CAAA;AACnC,cAAc,2BAA2B,CAAA"}
@@ -1,254 +0,0 @@
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
@@ -1 +0,0 @@
1
- {"version":3,"file":"AcDbArc.d.ts","sourceRoot":"","sources":["../../src/entity/AcDbArc.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,YAAY,EACZ,WAAW,EACX,eAAe,EAEhB,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAE3D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAEvC;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,qBAAa,OAAQ,SAAQ,SAAS;IACpC,2BAA2B;IAC3B,OAAgB,QAAQ,EAAE,MAAM,CAAQ;IAExC,mDAAmD;IACnD,OAAO,CAAC,IAAI,CAAe;IAE3B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8BG;gBAED,MAAM,EAAE,eAAe,EACvB,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM;IAalB;;;;;;;;;;OAUG;IACH,IAAI,MAAM,IAAI,WAAW,CAExB;IAED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