@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,150 +0,0 @@
1
- import { AcGeBox3d, AcGePoint3d } from '@mlightcad/geometry-engine';
2
- import { AcGiRenderer } from '@mlightcad/graphic-interface';
3
- import { AcDbCurve } from './AcDbCurve';
4
- /**
5
- * Represents a ray entity in AutoCAD.
6
- *
7
- * A ray is a 3D geometric object that extends infinitely in one direction from a base point.
8
- * Rays are commonly used for construction lines, reference lines, and temporary geometry.
9
- * Unlike lines, rays have no end point and extend to infinity.
10
- *
11
- * @example
12
- * ```typescript
13
- * // Create a ray from origin in the positive X direction
14
- * const ray = new AcDbRay();
15
- * ray.basePoint = new AcGePoint3d(0, 0, 0);
16
- * ray.unitDir = new AcGeVector3d(1, 0, 0);
17
- *
18
- * // Access ray properties
19
- * console.log(`Base point: ${ray.basePoint}`);
20
- * console.log(`Unit direction: ${ray.unitDir}`);
21
- * ```
22
- */
23
- export declare class AcDbRay extends AcDbCurve {
24
- /** The entity type name */
25
- static typeName: string;
26
- /** The base point of the ray */
27
- private _basePoint;
28
- /** The unit direction vector of the ray */
29
- private _unitDir;
30
- /**
31
- * Creates a new ray entity.
32
- *
33
- * This constructor initializes a ray with default values.
34
- * The base point is at the origin and the unit direction is undefined.
35
- *
36
- * @example
37
- * ```typescript
38
- * const ray = new AcDbRay();
39
- * ray.basePoint = new AcGePoint3d(5, 10, 0);
40
- * ray.unitDir = new AcGeVector3d(0, 1, 0); // Positive Y direction
41
- * ```
42
- */
43
- constructor();
44
- /**
45
- * Gets the base point of this ray.
46
- *
47
- * The base point is the starting point from which the ray extends infinitely.
48
- *
49
- * @returns The base point as a 3D point
50
- *
51
- * @example
52
- * ```typescript
53
- * const basePoint = ray.basePoint;
54
- * console.log(`Ray base point: ${basePoint.x}, ${basePoint.y}, ${basePoint.z}`);
55
- * ```
56
- */
57
- get basePoint(): AcGePoint3d;
58
- /**
59
- * Sets the base point of this ray.
60
- *
61
- * @param value - The new base point
62
- *
63
- * @example
64
- * ```typescript
65
- * ray.basePoint = new AcGePoint3d(10, 20, 0);
66
- * ```
67
- */
68
- set basePoint(value: AcGePoint3d);
69
- /**
70
- * Gets the unit direction vector of this ray.
71
- *
72
- * The unit direction vector defines the direction in which the ray extends
73
- * infinitely from the base point.
74
- *
75
- * @returns The unit direction vector
76
- *
77
- * @example
78
- * ```typescript
79
- * const unitDir = ray.unitDir;
80
- * console.log(`Ray direction: ${unitDir.x}, ${unitDir.y}, ${unitDir.z}`);
81
- * ```
82
- */
83
- get unitDir(): AcGePoint3d;
84
- /**
85
- * Sets the unit direction vector of this ray.
86
- *
87
- * @param value - The new unit direction vector
88
- *
89
- * @example
90
- * ```typescript
91
- * ray.unitDir = new AcGeVector3d(0, 0, 1); // Positive Z direction
92
- * ```
93
- */
94
- set unitDir(value: AcGePoint3d);
95
- /**
96
- * Gets whether this ray is closed.
97
- *
98
- * Rays are always open entities, so this always returns false.
99
- *
100
- * @returns Always false for rays
101
- */
102
- get closed(): boolean;
103
- /**
104
- * Gets the geometric extents (bounding box) of this ray.
105
- *
106
- * Since rays extend infinitely, this method returns a bounding box that
107
- * encompasses a finite portion of the ray for practical purposes.
108
- *
109
- * @returns The bounding box that encompasses a portion of the ray
110
- *
111
- * @example
112
- * ```typescript
113
- * const extents = ray.geometricExtents;
114
- * console.log(`Ray bounds: ${extents.minPoint} to ${extents.maxPoint}`);
115
- * ```
116
- */
117
- get geometricExtents(): AcGeBox3d;
118
- /**
119
- * Gets the grip points for this ray.
120
- *
121
- * Grip points are control points that can be used to modify the ray.
122
- * For a ray, the grip point is the base point.
123
- *
124
- * @returns Array of grip points (base point)
125
- *
126
- * @example
127
- * ```typescript
128
- * const gripPoints = ray.subGetGripPoints();
129
- * // gripPoints contains: [basePoint]
130
- * ```
131
- */
132
- subGetGripPoints(): AcGePoint3d[];
133
- /**
134
- * Draws this ray using the specified renderer.
135
- *
136
- * This method renders the ray as a line segment extending from the base point
137
- * in the direction of the unit vector. For practical purposes, the ray is
138
- * drawn with a finite length.
139
- *
140
- * @param renderer - The renderer to use for drawing
141
- * @returns The rendered ray entity, or undefined if drawing failed
142
- *
143
- * @example
144
- * ```typescript
145
- * const renderedRay = ray.draw(renderer);
146
- * ```
147
- */
148
- draw(renderer: AcGiRenderer): import("@mlightcad/graphic-interface").AcGiEntity;
149
- }
150
- //# sourceMappingURL=AcDbRay.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AcDbRay.d.ts","sourceRoot":"","sources":["../../src/entity/AcDbRay.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,WAAW,EAEZ,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAE3D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAEvC;;;;;;;;;;;;;;;;;;GAkBG;AACH,qBAAa,OAAQ,SAAQ,SAAS;IACpC,2BAA2B;IAC3B,OAAgB,QAAQ,EAAE,MAAM,CAAQ;IAExC,gCAAgC;IAChC,OAAO,CAAC,UAAU,CAAa;IAC/B,2CAA2C;IAC3C,OAAO,CAAC,QAAQ,CAAc;IAE9B;;;;;;;;;;;;OAYG;;IAOH;;;;;;;;;;;;OAYG;IACH,IAAI,SAAS,IAcQ,WAAW,CAZ/B;IAED;;;;;;;;;OASG;IACH,IAAI,SAAS,CAAC,KAAK,EAAE,WAAW,EAE/B;IAED;;;;;;;;;;;;;OAaG;IACH,IAAI,OAAO,IAcQ,WAAW,CAZ7B;IAED;;;;;;;;;OASG;IACH,IAAI,OAAO,CAAC,KAAK,EAAE,WAAW,EAE7B;IAED;;;;;;OAMG;IACH,IAAI,MAAM,IAAI,OAAO,CAEpB;IAED;;;;;;;;;;;;;OAaG;IACH,IAAI,gBAAgB,IAAI,SAAS,CAShC;IAED;;;;;;;;;;;;;OAaG;IACH,gBAAgB;IAMhB;;;;;;;;;;;;;;OAcG;IACH,IAAI,CAAC,QAAQ,EAAE,YAAY;CAQ5B"}
@@ -1,208 +0,0 @@
1
- var __extends = (this && this.__extends) || (function () {
2
- var extendStatics = function (d, b) {
3
- extendStatics = Object.setPrototypeOf ||
4
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
- return extendStatics(d, b);
7
- };
8
- return function (d, b) {
9
- if (typeof b !== "function" && b !== null)
10
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
11
- extendStatics(d, b);
12
- function __() { this.constructor = d; }
13
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14
- };
15
- })();
16
- import { AcGeBox3d, AcGePoint3d, AcGeVector3d } from '@mlightcad/geometry-engine';
17
- import { AcDbCurve } from './AcDbCurve';
18
- /**
19
- * Represents a ray entity in AutoCAD.
20
- *
21
- * A ray is a 3D geometric object that extends infinitely in one direction from a base point.
22
- * Rays are commonly used for construction lines, reference lines, and temporary geometry.
23
- * Unlike lines, rays have no end point and extend to infinity.
24
- *
25
- * @example
26
- * ```typescript
27
- * // Create a ray from origin in the positive X direction
28
- * const ray = new AcDbRay();
29
- * ray.basePoint = new AcGePoint3d(0, 0, 0);
30
- * ray.unitDir = new AcGeVector3d(1, 0, 0);
31
- *
32
- * // Access ray properties
33
- * console.log(`Base point: ${ray.basePoint}`);
34
- * console.log(`Unit direction: ${ray.unitDir}`);
35
- * ```
36
- */
37
- var AcDbRay = /** @class */ (function (_super) {
38
- __extends(AcDbRay, _super);
39
- /**
40
- * Creates a new ray entity.
41
- *
42
- * This constructor initializes a ray with default values.
43
- * The base point is at the origin and the unit direction is undefined.
44
- *
45
- * @example
46
- * ```typescript
47
- * const ray = new AcDbRay();
48
- * ray.basePoint = new AcGePoint3d(5, 10, 0);
49
- * ray.unitDir = new AcGeVector3d(0, 1, 0); // Positive Y direction
50
- * ```
51
- */
52
- function AcDbRay() {
53
- var _this = _super.call(this) || this;
54
- _this._basePoint = new AcGePoint3d();
55
- _this._unitDir = new AcGeVector3d();
56
- return _this;
57
- }
58
- Object.defineProperty(AcDbRay.prototype, "basePoint", {
59
- /**
60
- * Gets the base point of this ray.
61
- *
62
- * The base point is the starting point from which the ray extends infinitely.
63
- *
64
- * @returns The base point as a 3D point
65
- *
66
- * @example
67
- * ```typescript
68
- * const basePoint = ray.basePoint;
69
- * console.log(`Ray base point: ${basePoint.x}, ${basePoint.y}, ${basePoint.z}`);
70
- * ```
71
- */
72
- get: function () {
73
- return this._basePoint;
74
- },
75
- /**
76
- * Sets the base point of this ray.
77
- *
78
- * @param value - The new base point
79
- *
80
- * @example
81
- * ```typescript
82
- * ray.basePoint = new AcGePoint3d(10, 20, 0);
83
- * ```
84
- */
85
- set: function (value) {
86
- this._basePoint.copy(value);
87
- },
88
- enumerable: false,
89
- configurable: true
90
- });
91
- Object.defineProperty(AcDbRay.prototype, "unitDir", {
92
- /**
93
- * Gets the unit direction vector of this ray.
94
- *
95
- * The unit direction vector defines the direction in which the ray extends
96
- * infinitely from the base point.
97
- *
98
- * @returns The unit direction vector
99
- *
100
- * @example
101
- * ```typescript
102
- * const unitDir = ray.unitDir;
103
- * console.log(`Ray direction: ${unitDir.x}, ${unitDir.y}, ${unitDir.z}`);
104
- * ```
105
- */
106
- get: function () {
107
- return this._unitDir;
108
- },
109
- /**
110
- * Sets the unit direction vector of this ray.
111
- *
112
- * @param value - The new unit direction vector
113
- *
114
- * @example
115
- * ```typescript
116
- * ray.unitDir = new AcGeVector3d(0, 0, 1); // Positive Z direction
117
- * ```
118
- */
119
- set: function (value) {
120
- this._unitDir.copy(value);
121
- },
122
- enumerable: false,
123
- configurable: true
124
- });
125
- Object.defineProperty(AcDbRay.prototype, "closed", {
126
- /**
127
- * Gets whether this ray is closed.
128
- *
129
- * Rays are always open entities, so this always returns false.
130
- *
131
- * @returns Always false for rays
132
- */
133
- get: function () {
134
- return false;
135
- },
136
- enumerable: false,
137
- configurable: true
138
- });
139
- Object.defineProperty(AcDbRay.prototype, "geometricExtents", {
140
- /**
141
- * Gets the geometric extents (bounding box) of this ray.
142
- *
143
- * Since rays extend infinitely, this method returns a bounding box that
144
- * encompasses a finite portion of the ray for practical purposes.
145
- *
146
- * @returns The bounding box that encompasses a portion of the ray
147
- *
148
- * @example
149
- * ```typescript
150
- * const extents = ray.geometricExtents;
151
- * console.log(`Ray bounds: ${extents.minPoint} to ${extents.maxPoint}`);
152
- * ```
153
- */
154
- get: function () {
155
- var extents = new AcGeBox3d();
156
- extents.expandByPoint(this._unitDir.clone().multiplyScalar(10).add(this._basePoint));
157
- extents.expandByPoint(this._unitDir.clone().multiplyScalar(-10).add(this._basePoint));
158
- return extents;
159
- },
160
- enumerable: false,
161
- configurable: true
162
- });
163
- /**
164
- * Gets the grip points for this ray.
165
- *
166
- * Grip points are control points that can be used to modify the ray.
167
- * For a ray, the grip point is the base point.
168
- *
169
- * @returns Array of grip points (base point)
170
- *
171
- * @example
172
- * ```typescript
173
- * const gripPoints = ray.subGetGripPoints();
174
- * // gripPoints contains: [basePoint]
175
- * ```
176
- */
177
- AcDbRay.prototype.subGetGripPoints = function () {
178
- var gripPoints = new Array();
179
- gripPoints.push(this.basePoint);
180
- return gripPoints;
181
- };
182
- /**
183
- * Draws this ray using the specified renderer.
184
- *
185
- * This method renders the ray as a line segment extending from the base point
186
- * in the direction of the unit vector. For practical purposes, the ray is
187
- * drawn with a finite length.
188
- *
189
- * @param renderer - The renderer to use for drawing
190
- * @returns The rendered ray entity, or undefined if drawing failed
191
- *
192
- * @example
193
- * ```typescript
194
- * const renderedRay = ray.draw(renderer);
195
- * ```
196
- */
197
- AcDbRay.prototype.draw = function (renderer) {
198
- var points = [];
199
- points.push(this.basePoint);
200
- points.push(this._unitDir.clone().multiplyScalar(1000000).add(this._basePoint));
201
- return renderer.lines(points, this.lineStyle);
202
- };
203
- /** The entity type name */
204
- AcDbRay.typeName = 'Ray';
205
- return AcDbRay;
206
- }(AcDbCurve));
207
- export { AcDbRay };
208
- //# sourceMappingURL=AcDbRay.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AcDbRay.js","sourceRoot":"","sources":["../../src/entity/AcDbRay.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EACL,SAAS,EACT,WAAW,EACX,YAAY,EACb,MAAM,4BAA4B,CAAA;AAGnC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAEvC;;;;;;;;;;;;;;;;;;GAkBG;AACH;IAA6B,2BAAS;IASpC;;;;;;;;;;;;OAYG;IACH;QACE,YAAA,MAAK,WAAE,SAAA;QACP,KAAI,CAAC,UAAU,GAAG,IAAI,WAAW,EAAE,CAAA;QACnC,KAAI,CAAC,QAAQ,GAAG,IAAI,YAAY,EAAE,CAAA;;IACpC,CAAC;IAeD,sBAAI,8BAAS;QAbb;;;;;;;;;;;;WAYG;aACH;YACE,OAAO,IAAI,CAAC,UAAU,CAAA;QACxB,CAAC;QAED;;;;;;;;;WASG;aACH,UAAc,KAAkB;YAC9B,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;QAC7B,CAAC;;;OAdA;IA8BD,sBAAI,4BAAO;QAdX;;;;;;;;;;;;;WAaG;aACH;YACE,OAAO,IAAI,CAAC,QAAQ,CAAA;QACtB,CAAC;QAED;;;;;;;;;WASG;aACH,UAAY,KAAkB;YAC5B,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;QAC3B,CAAC;;;OAdA;IAuBD,sBAAI,2BAAM;QAPV;;;;;;WAMG;aACH;YACE,OAAO,KAAK,CAAA;QACd,CAAC;;;OAAA;IAgBD,sBAAI,qCAAgB;QAdpB;;;;;;;;;;;;;WAaG;aACH;YACE,IAAM,OAAO,GAAG,IAAI,SAAS,EAAE,CAAA;YAC/B,OAAO,CAAC,aAAa,CACnB,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC,CAC9D,CAAA;YACD,OAAO,CAAC,aAAa,CACnB,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,CAAC,cAAc,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC,CAC/D,CAAA;YACD,OAAO,OAAO,CAAA;QAChB,CAAC;;;OAAA;IAED;;;;;;;;;;;;;OAaG;IACH,kCAAgB,GAAhB;QACE,IAAM,UAAU,GAAG,IAAI,KAAK,EAAe,CAAA;QAC3C,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,CAAA;QAC/B,OAAO,UAAU,CAAA;IACnB,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,sBAAI,GAAJ,UAAK,QAAsB;QACzB,IAAM,MAAM,GAAkB,EAAE,CAAA;QAChC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,CAAA;QAC3B,MAAM,CAAC,IAAI,CACT,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC,CACnE,CAAA;QACD,OAAO,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,IAAI,CAAC,SAAS,CAAC,CAAA;IAC/C,CAAC;IAxKD,2BAA2B;IACX,gBAAQ,GAAW,KAAK,CAAA;IAwK1C,cAAC;CAAA,AA1KD,CAA6B,SAAS,GA0KrC;SA1KY,OAAO"}
@@ -1,135 +0,0 @@
1
- import { AcGeKnotParameterizationType, AcGePoint3dLike } from '@mlightcad/geometry-engine';
2
- import { AcGiRenderer } from '@mlightcad/graphic-interface';
3
- import { AcDbCurve } from './AcDbCurve';
4
- /**
5
- * Represents a spline entity in AutoCAD.
6
- *
7
- * A spline is a 3D geometric object defined by control points or fit points.
8
- * Splines are smooth curves that can be used to create complex curved shapes
9
- * in drawings. They can be either open or closed curves.
10
- *
11
- * @example
12
- * ```typescript
13
- * // Create a spline from control points
14
- * const controlPoints = [
15
- * new AcGePoint3d(0, 0, 0),
16
- * new AcGePoint3d(5, 5, 0),
17
- * new AcGePoint3d(10, 0, 0)
18
- * ];
19
- * const knots = [0, 0, 0, 1, 1, 1];
20
- * const spline = new AcDbSpline(controlPoints, knots);
21
- *
22
- * // Create a spline from fit points
23
- * const fitPoints = [
24
- * new AcGePoint3d(0, 0, 0),
25
- * new AcGePoint3d(5, 5, 0),
26
- * new AcGePoint3d(10, 0, 0)
27
- * ];
28
- * const spline2 = new AcDbSpline(fitPoints, AcGeKnotParameterizationType.Uniform);
29
- * ```
30
- */
31
- export declare class AcDbSpline extends AcDbCurve {
32
- /** The entity type name */
33
- static typeName: string;
34
- /** The underlying geometric spline object */
35
- private _geo;
36
- /**
37
- * Creates a new spline entity from control points.
38
- *
39
- * This constructor creates a spline using the specified control points, knots,
40
- * and optional weights. The control points must be in World Coordinate System (WCS) coordinates.
41
- *
42
- * @param controlPoints - Array of control points in WCS coordinates
43
- * @param knots - Array of knot values that define the spline's parameterization
44
- * @param weights - Optional array of weights for each control point (default: 1 for all)
45
- * @param degree - Optional degree of the spline (default: 3)
46
- * @param closed - Whether the spline should be closed (default: false)
47
- *
48
- * @example
49
- * ```typescript
50
- * const controlPoints = [
51
- * new AcGePoint3d(0, 0, 0),
52
- * new AcGePoint3d(5, 5, 0),
53
- * new AcGePoint3d(10, 0, 0)
54
- * ];
55
- * const knots = [0, 0, 0, 1, 1, 1];
56
- * const spline = new AcDbSpline(controlPoints, knots);
57
- * ```
58
- */
59
- constructor(controlPoints: AcGePoint3dLike[], knots: number[], weights?: number[], degree?: number, closed?: boolean);
60
- /**
61
- * Creates a new spline entity from fit points.
62
- *
63
- * This constructor creates a spline that passes through the specified fit points.
64
- * The fit points must be in World Coordinate System (WCS) coordinates.
65
- *
66
- * @param fitPoints - Array of fit points in WCS coordinates
67
- * @param knotParam - Knot parameterization type that defines how knots are generated
68
- * @param degree - Optional degree of the spline (default: 3)
69
- * @param closed - Whether the spline should be closed (default: false)
70
- *
71
- * @example
72
- * ```typescript
73
- * const fitPoints = [
74
- * new AcGePoint3d(0, 0, 0),
75
- * new AcGePoint3d(5, 5, 0),
76
- * new AcGePoint3d(10, 0, 0)
77
- * ];
78
- * const spline = new AcDbSpline(fitPoints, AcGeKnotParameterizationType.Uniform);
79
- * ```
80
- */
81
- constructor(fitPoints: AcGePoint3dLike[], knotParam: AcGeKnotParameterizationType, degree?: number, closed?: boolean);
82
- /**
83
- * Gets the geometric extents (bounding box) of this spline.
84
- *
85
- * @returns The bounding box that encompasses the entire spline
86
- *
87
- * @example
88
- * ```typescript
89
- * const extents = spline.geometricExtents;
90
- * console.log(`Spline bounds: ${extents.minPoint} to ${extents.maxPoint}`);
91
- * ```
92
- */
93
- get geometricExtents(): import("@mlightcad/geometry-engine").AcGeBox3d;
94
- /**
95
- * Gets whether this spline is closed.
96
- *
97
- * A closed spline forms a complete loop where the end point connects to the start point.
98
- *
99
- * @returns True if the spline is closed, false otherwise
100
- *
101
- * @example
102
- * ```typescript
103
- * const isClosed = spline.closed;
104
- * console.log(`Spline is closed: ${isClosed}`);
105
- * ```
106
- */
107
- get closed(): boolean;
108
- /**
109
- * Sets whether this spline is closed.
110
- *
111
- * @param value - True to close the spline, false to open it
112
- *
113
- * @example
114
- * ```typescript
115
- * spline.closed = true; // Close the spline
116
- * ```
117
- */
118
- set closed(value: boolean);
119
- /**
120
- * Draws this spline using the specified renderer.
121
- *
122
- * This method renders the spline as a series of connected line segments
123
- * using the spline's current style properties.
124
- *
125
- * @param renderer - The renderer to use for drawing
126
- * @returns The rendered spline entity, or undefined if drawing failed
127
- *
128
- * @example
129
- * ```typescript
130
- * const renderedSpline = spline.draw(renderer);
131
- * ```
132
- */
133
- draw(renderer: AcGiRenderer): import("@mlightcad/graphic-interface").AcGiEntity;
134
- }
135
- //# sourceMappingURL=AcDbSpline.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AcDbSpline.d.ts","sourceRoot":"","sources":["../../src/entity/AcDbSpline.ts"],"names":[],"mappings":"AACA,OAAO,EACL,4BAA4B,EAC5B,eAAe,EAEhB,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAE3D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAEvC;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,qBAAa,UAAW,SAAQ,SAAS;IACvC,2BAA2B;IAC3B,OAAgB,QAAQ,EAAE,MAAM,CAAW;IAE3C,6CAA6C;IAC7C,OAAO,CAAC,IAAI,CAAc;IAE1B;;;;;;;;;;;;;;;;;;;;;;OAsBG;gBAED,aAAa,EAAE,eAAe,EAAE,EAChC,KAAK,EAAE,MAAM,EAAE,EACf,OAAO,CAAC,EAAE,MAAM,EAAE,EAClB,MAAM,CAAC,EAAE,MAAM,EACf,MAAM,CAAC,EAAE,OAAO;IAElB;;;;;;;;;;;;;;;;;;;;OAoBG;gBAED,SAAS,EAAE,eAAe,EAAE,EAC5B,SAAS,EAAE,4BAA4B,EACvC,MAAM,CAAC,EAAE,MAAM,EACf,MAAM,CAAC,EAAE,OAAO;IAoClB;;;;;;;;;;OAUG;IACH,IAAI,gBAAgB,mDAEnB;IAED;;;;;;;;;;;;OAYG;IACH,IAAI,MAAM,IAAI,OAAO,CAEpB;IAED;;;;;;;;;OASG;IACH,IAAI,MAAM,CAAC,KAAK,EAAE,OAAO,EAExB;IAED;;;;;;;;;;;;;OAaG;IACH,IAAI,CAAC,QAAQ,EAAE,YAAY;CAI5B"}
@@ -1,142 +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 { AcCmErrors } from '@mlightcad/common';
17
- import { AcGeSpline3d } from '@mlightcad/geometry-engine';
18
- import { AcDbCurve } from './AcDbCurve';
19
- /**
20
- * Represents a spline entity in AutoCAD.
21
- *
22
- * A spline is a 3D geometric object defined by control points or fit points.
23
- * Splines are smooth curves that can be used to create complex curved shapes
24
- * in drawings. They can be either open or closed curves.
25
- *
26
- * @example
27
- * ```typescript
28
- * // Create a spline from control points
29
- * const controlPoints = [
30
- * new AcGePoint3d(0, 0, 0),
31
- * new AcGePoint3d(5, 5, 0),
32
- * new AcGePoint3d(10, 0, 0)
33
- * ];
34
- * const knots = [0, 0, 0, 1, 1, 1];
35
- * const spline = new AcDbSpline(controlPoints, knots);
36
- *
37
- * // Create a spline from fit points
38
- * const fitPoints = [
39
- * new AcGePoint3d(0, 0, 0),
40
- * new AcGePoint3d(5, 5, 0),
41
- * new AcGePoint3d(10, 0, 0)
42
- * ];
43
- * const spline2 = new AcDbSpline(fitPoints, AcGeKnotParameterizationType.Uniform);
44
- * ```
45
- */
46
- var AcDbSpline = /** @class */ (function (_super) {
47
- __extends(AcDbSpline, _super);
48
- function AcDbSpline(a, b, c, d, e) {
49
- var _this = _super.call(this) || this;
50
- var argsLength = +(a !== undefined) +
51
- +(b !== undefined) +
52
- +(c !== undefined) +
53
- +(d !== undefined) +
54
- +(e !== undefined);
55
- if (argsLength < 2 || argsLength > 5) {
56
- throw AcCmErrors.ILLEGAL_PARAMETERS;
57
- }
58
- // Determine if this is the fitPoints constructor (second arg is not an array)
59
- var isFitPointsConstructor = !Array.isArray(b);
60
- if (isFitPointsConstructor) {
61
- _this._geo = new AcGeSpline3d(a, b, c, d);
62
- }
63
- else {
64
- _this._geo = new AcGeSpline3d(a, b, c, d, e);
65
- }
66
- return _this;
67
- }
68
- Object.defineProperty(AcDbSpline.prototype, "geometricExtents", {
69
- /**
70
- * Gets the geometric extents (bounding box) of this spline.
71
- *
72
- * @returns The bounding box that encompasses the entire spline
73
- *
74
- * @example
75
- * ```typescript
76
- * const extents = spline.geometricExtents;
77
- * console.log(`Spline bounds: ${extents.minPoint} to ${extents.maxPoint}`);
78
- * ```
79
- */
80
- get: function () {
81
- return this._geo.box;
82
- },
83
- enumerable: false,
84
- configurable: true
85
- });
86
- Object.defineProperty(AcDbSpline.prototype, "closed", {
87
- /**
88
- * Gets whether this spline is closed.
89
- *
90
- * A closed spline forms a complete loop where the end point connects to the start point.
91
- *
92
- * @returns True if the spline is closed, false otherwise
93
- *
94
- * @example
95
- * ```typescript
96
- * const isClosed = spline.closed;
97
- * console.log(`Spline is closed: ${isClosed}`);
98
- * ```
99
- */
100
- get: function () {
101
- return this._geo.closed;
102
- },
103
- /**
104
- * Sets whether this spline is closed.
105
- *
106
- * @param value - True to close the spline, false to open it
107
- *
108
- * @example
109
- * ```typescript
110
- * spline.closed = true; // Close the spline
111
- * ```
112
- */
113
- set: function (value) {
114
- this._geo.closed = value;
115
- },
116
- enumerable: false,
117
- configurable: true
118
- });
119
- /**
120
- * Draws this spline using the specified renderer.
121
- *
122
- * This method renders the spline as a series of connected line segments
123
- * using the spline's current style properties.
124
- *
125
- * @param renderer - The renderer to use for drawing
126
- * @returns The rendered spline entity, or undefined if drawing failed
127
- *
128
- * @example
129
- * ```typescript
130
- * const renderedSpline = spline.draw(renderer);
131
- * ```
132
- */
133
- AcDbSpline.prototype.draw = function (renderer) {
134
- var points = this._geo.getPoints(100);
135
- return renderer.lines(points, this.lineStyle);
136
- };
137
- /** The entity type name */
138
- AcDbSpline.typeName = 'Spline';
139
- return AcDbSpline;
140
- }(AcDbCurve));
141
- export { AcDbSpline };
142
- //# sourceMappingURL=AcDbSpline.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AcDbSpline.js","sourceRoot":"","sources":["../../src/entity/AcDbSpline.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAC9C,OAAO,EAGL,YAAY,EACb,MAAM,4BAA4B,CAAA;AAGnC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAEvC;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH;IAAgC,8BAAS;IAgEvC,oBAAY,CAAW,EAAE,CAAW,EAAE,CAAW,EAAE,CAAW,EAAE,CAAW;QACzE,YAAA,MAAK,WAAE,SAAA;QACP,IAAM,UAAU,GACd,CAAC,CAAC,CAAC,KAAK,SAAS,CAAC;YAClB,CAAC,CAAC,CAAC,KAAK,SAAS,CAAC;YAClB,CAAC,CAAC,CAAC,KAAK,SAAS,CAAC;YAClB,CAAC,CAAC,CAAC,KAAK,SAAS,CAAC;YAClB,CAAC,CAAC,CAAC,KAAK,SAAS,CAAC,CAAA;QAEpB,IAAI,UAAU,GAAG,CAAC,IAAI,UAAU,GAAG,CAAC,EAAE,CAAC;YACrC,MAAM,UAAU,CAAC,kBAAkB,CAAA;QACrC,CAAC;QAED,8EAA8E;QAC9E,IAAM,sBAAsB,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAA;QAEhD,IAAI,sBAAsB,EAAE,CAAC;YAC3B,KAAI,CAAC,IAAI,GAAG,IAAI,YAAY,CAC1B,CAAsB,EACtB,CAAiC,EACjC,CAAuB,EACvB,CAAwB,CACzB,CAAA;QACH,CAAC;aAAM,CAAC;YACN,KAAI,CAAC,IAAI,GAAG,IAAI,YAAY,CAC1B,CAAsB,EACtB,CAAa,EACb,CAAyB,EACzB,CAAuB,EACvB,CAAwB,CACzB,CAAA;QACH,CAAC;;IACH,CAAC;IAaD,sBAAI,wCAAgB;QAXpB;;;;;;;;;;WAUG;aACH;YACE,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAA;QACtB,CAAC;;;OAAA;IAeD,sBAAI,8BAAM;QAbV;;;;;;;;;;;;WAYG;aACH;YACE,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,CAAA;QACzB,CAAC;QAED;;;;;;;;;WASG;aACH,UAAW,KAAc;YACvB,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,KAAK,CAAA;QAC1B,CAAC;;;OAdA;IAgBD;;;;;;;;;;;;;OAaG;IACH,yBAAI,GAAJ,UAAK,QAAsB;QACzB,IAAM,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAA;QACvC,OAAO,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,IAAI,CAAC,SAAS,CAAC,CAAA;IAC/C,CAAC;IAhKD,2BAA2B;IACX,mBAAQ,GAAW,QAAQ,CAAA;IAgK7C,iBAAC;CAAA,AAlKD,CAAgC,SAAS,GAkKxC;SAlKY,UAAU"}