@mlightcad/data-model 1.3.1 → 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 (328) hide show
  1. package/package.json +4 -4
  2. package/dist/data-model.cjs +0 -5
  3. package/dist/data-model.js +0 -25475
  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 -867
  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 -85
  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/AcDbRegenerator.d.ts +0 -101
  38. package/lib/converter/AcDbRegenerator.d.ts.map +0 -1
  39. package/lib/converter/AcDbRegenerator.js +0 -334
  40. package/lib/converter/AcDbRegenerator.js.map +0 -1
  41. package/lib/converter/index.d.ts +0 -5
  42. package/lib/converter/index.d.ts.map +0 -1
  43. package/lib/converter/index.js +0 -5
  44. package/lib/converter/index.js.map +0 -1
  45. package/lib/converter/worker/AcDbBaseWorker.d.ts +0 -36
  46. package/lib/converter/worker/AcDbBaseWorker.d.ts.map +0 -1
  47. package/lib/converter/worker/AcDbBaseWorker.js +0 -93
  48. package/lib/converter/worker/AcDbBaseWorker.js.map +0 -1
  49. package/lib/converter/worker/AcDbDxfParserWorker.d.ts +0 -11
  50. package/lib/converter/worker/AcDbDxfParserWorker.d.ts.map +0 -1
  51. package/lib/converter/worker/AcDbDxfParserWorker.js +0 -75
  52. package/lib/converter/worker/AcDbDxfParserWorker.js.map +0 -1
  53. package/lib/converter/worker/AcDbWorkerManager.d.ts +0 -107
  54. package/lib/converter/worker/AcDbWorkerManager.d.ts.map +0 -1
  55. package/lib/converter/worker/AcDbWorkerManager.js +0 -360
  56. package/lib/converter/worker/AcDbWorkerManager.js.map +0 -1
  57. package/lib/converter/worker/index.d.ts +0 -3
  58. package/lib/converter/worker/index.d.ts.map +0 -1
  59. package/lib/converter/worker/index.js +0 -3
  60. package/lib/converter/worker/index.js.map +0 -1
  61. package/lib/database/AcDbBlockTable.d.ts +0 -56
  62. package/lib/database/AcDbBlockTable.d.ts.map +0 -1
  63. package/lib/database/AcDbBlockTable.js +0 -98
  64. package/lib/database/AcDbBlockTable.js.map +0 -1
  65. package/lib/database/AcDbBlockTableRecord.d.ts +0 -185
  66. package/lib/database/AcDbBlockTableRecord.d.ts.map +0 -1
  67. package/lib/database/AcDbBlockTableRecord.js +0 -261
  68. package/lib/database/AcDbBlockTableRecord.js.map +0 -1
  69. package/lib/database/AcDbDatabase.d.ts +0 -563
  70. package/lib/database/AcDbDatabase.d.ts.map +0 -1
  71. package/lib/database/AcDbDatabase.js +0 -842
  72. package/lib/database/AcDbDatabase.js.map +0 -1
  73. package/lib/database/AcDbDatabaseConverter.d.ts +0 -292
  74. package/lib/database/AcDbDatabaseConverter.d.ts.map +0 -1
  75. package/lib/database/AcDbDatabaseConverter.js +0 -446
  76. package/lib/database/AcDbDatabaseConverter.js.map +0 -1
  77. package/lib/database/AcDbDatabaseConverterManager.d.ts +0 -141
  78. package/lib/database/AcDbDatabaseConverterManager.d.ts.map +0 -1
  79. package/lib/database/AcDbDatabaseConverterManager.js +0 -173
  80. package/lib/database/AcDbDatabaseConverterManager.js.map +0 -1
  81. package/lib/database/AcDbDimStyleTable.d.ts +0 -31
  82. package/lib/database/AcDbDimStyleTable.d.ts.map +0 -1
  83. package/lib/database/AcDbDimStyleTable.js +0 -49
  84. package/lib/database/AcDbDimStyleTable.js.map +0 -1
  85. package/lib/database/AcDbDimStyleTableRecord.d.ts +0 -797
  86. package/lib/database/AcDbDimStyleTableRecord.d.ts.map +0 -1
  87. package/lib/database/AcDbDimStyleTableRecord.js +0 -1294
  88. package/lib/database/AcDbDimStyleTableRecord.js.map +0 -1
  89. package/lib/database/AcDbDwgVersion.d.ts +0 -32
  90. package/lib/database/AcDbDwgVersion.d.ts.map +0 -1
  91. package/lib/database/AcDbDwgVersion.js +0 -76
  92. package/lib/database/AcDbDwgVersion.js.map +0 -1
  93. package/lib/database/AcDbLayerTable.d.ts +0 -51
  94. package/lib/database/AcDbLayerTable.d.ts.map +0 -1
  95. package/lib/database/AcDbLayerTable.js +0 -92
  96. package/lib/database/AcDbLayerTable.js.map +0 -1
  97. package/lib/database/AcDbLayerTableRecord.d.ts +0 -278
  98. package/lib/database/AcDbLayerTableRecord.d.ts.map +0 -1
  99. package/lib/database/AcDbLayerTableRecord.js +0 -397
  100. package/lib/database/AcDbLayerTableRecord.js.map +0 -1
  101. package/lib/database/AcDbLinetypeTable.d.ts +0 -30
  102. package/lib/database/AcDbLinetypeTable.d.ts.map +0 -1
  103. package/lib/database/AcDbLinetypeTable.js +0 -48
  104. package/lib/database/AcDbLinetypeTable.js.map +0 -1
  105. package/lib/database/AcDbLinetypeTableRecord.d.ts +0 -79
  106. package/lib/database/AcDbLinetypeTableRecord.d.ts.map +0 -1
  107. package/lib/database/AcDbLinetypeTableRecord.js +0 -129
  108. package/lib/database/AcDbLinetypeTableRecord.js.map +0 -1
  109. package/lib/database/AcDbSymbolTable.d.ts +0 -199
  110. package/lib/database/AcDbSymbolTable.d.ts.map +0 -1
  111. package/lib/database/AcDbSymbolTable.js +0 -264
  112. package/lib/database/AcDbSymbolTable.js.map +0 -1
  113. package/lib/database/AcDbSymbolTableRecord.d.ts +0 -61
  114. package/lib/database/AcDbSymbolTableRecord.d.ts.map +0 -1
  115. package/lib/database/AcDbSymbolTableRecord.js +0 -82
  116. package/lib/database/AcDbSymbolTableRecord.js.map +0 -1
  117. package/lib/database/AcDbTextStyleTable.d.ts +0 -48
  118. package/lib/database/AcDbTextStyleTable.d.ts.map +0 -1
  119. package/lib/database/AcDbTextStyleTable.js +0 -112
  120. package/lib/database/AcDbTextStyleTable.js.map +0 -1
  121. package/lib/database/AcDbTextStyleTableRecord.d.ts +0 -179
  122. package/lib/database/AcDbTextStyleTableRecord.d.ts.map +0 -1
  123. package/lib/database/AcDbTextStyleTableRecord.js +0 -276
  124. package/lib/database/AcDbTextStyleTableRecord.js.map +0 -1
  125. package/lib/database/AcDbViewportTable.d.ts +0 -31
  126. package/lib/database/AcDbViewportTable.d.ts.map +0 -1
  127. package/lib/database/AcDbViewportTable.js +0 -49
  128. package/lib/database/AcDbViewportTable.js.map +0 -1
  129. package/lib/database/AcDbViewportTableRecord.d.ts +0 -154
  130. package/lib/database/AcDbViewportTableRecord.d.ts.map +0 -1
  131. package/lib/database/AcDbViewportTableRecord.js +0 -318
  132. package/lib/database/AcDbViewportTableRecord.js.map +0 -1
  133. package/lib/database/index.d.ts +0 -19
  134. package/lib/database/index.d.ts.map +0 -1
  135. package/lib/database/index.js +0 -19
  136. package/lib/database/index.js.map +0 -1
  137. package/lib/entity/AcDbArc.d.ts +0 -254
  138. package/lib/entity/AcDbArc.d.ts.map +0 -1
  139. package/lib/entity/AcDbArc.js +0 -340
  140. package/lib/entity/AcDbArc.js.map +0 -1
  141. package/lib/entity/AcDbBlockReference.d.ts +0 -190
  142. package/lib/entity/AcDbBlockReference.d.ts.map +0 -1
  143. package/lib/entity/AcDbBlockReference.js +0 -302
  144. package/lib/entity/AcDbBlockReference.js.map +0 -1
  145. package/lib/entity/AcDbCircle.d.ts +0 -186
  146. package/lib/entity/AcDbCircle.d.ts.map +0 -1
  147. package/lib/entity/AcDbCircle.js +0 -249
  148. package/lib/entity/AcDbCircle.js.map +0 -1
  149. package/lib/entity/AcDbCurve.d.ts +0 -42
  150. package/lib/entity/AcDbCurve.d.ts.map +0 -1
  151. package/lib/entity/AcDbCurve.js +0 -44
  152. package/lib/entity/AcDbCurve.js.map +0 -1
  153. package/lib/entity/AcDbEllipse.d.ts +0 -207
  154. package/lib/entity/AcDbEllipse.d.ts.map +0 -1
  155. package/lib/entity/AcDbEllipse.js +0 -272
  156. package/lib/entity/AcDbEllipse.js.map +0 -1
  157. package/lib/entity/AcDbEntity.d.ts +0 -385
  158. package/lib/entity/AcDbEntity.d.ts.map +0 -1
  159. package/lib/entity/AcDbEntity.js +0 -561
  160. package/lib/entity/AcDbEntity.js.map +0 -1
  161. package/lib/entity/AcDbFace.d.ts +0 -151
  162. package/lib/entity/AcDbFace.d.ts.map +0 -1
  163. package/lib/entity/AcDbFace.js +0 -224
  164. package/lib/entity/AcDbFace.js.map +0 -1
  165. package/lib/entity/AcDbHatch.d.ts +0 -174
  166. package/lib/entity/AcDbHatch.d.ts.map +0 -1
  167. package/lib/entity/AcDbHatch.js +0 -250
  168. package/lib/entity/AcDbHatch.js.map +0 -1
  169. package/lib/entity/AcDbLeader.d.ts +0 -243
  170. package/lib/entity/AcDbLeader.d.ts.map +0 -1
  171. package/lib/entity/AcDbLeader.js +0 -358
  172. package/lib/entity/AcDbLeader.js.map +0 -1
  173. package/lib/entity/AcDbLine.d.ts +0 -198
  174. package/lib/entity/AcDbLine.d.ts.map +0 -1
  175. package/lib/entity/AcDbLine.js +0 -300
  176. package/lib/entity/AcDbLine.js.map +0 -1
  177. package/lib/entity/AcDbMText.d.ts +0 -248
  178. package/lib/entity/AcDbMText.d.ts.map +0 -1
  179. package/lib/entity/AcDbMText.js +0 -414
  180. package/lib/entity/AcDbMText.js.map +0 -1
  181. package/lib/entity/AcDbPoint.d.ts +0 -113
  182. package/lib/entity/AcDbPoint.d.ts.map +0 -1
  183. package/lib/entity/AcDbPoint.js +0 -155
  184. package/lib/entity/AcDbPoint.js.map +0 -1
  185. package/lib/entity/AcDbPolyline.d.ts +0 -221
  186. package/lib/entity/AcDbPolyline.d.ts.map +0 -1
  187. package/lib/entity/AcDbPolyline.js +0 -301
  188. package/lib/entity/AcDbPolyline.js.map +0 -1
  189. package/lib/entity/AcDbRasterImage.d.ts +0 -216
  190. package/lib/entity/AcDbRasterImage.d.ts.map +0 -1
  191. package/lib/entity/AcDbRasterImage.js +0 -451
  192. package/lib/entity/AcDbRasterImage.js.map +0 -1
  193. package/lib/entity/AcDbRay.d.ts +0 -150
  194. package/lib/entity/AcDbRay.d.ts.map +0 -1
  195. package/lib/entity/AcDbRay.js +0 -208
  196. package/lib/entity/AcDbRay.js.map +0 -1
  197. package/lib/entity/AcDbSpline.d.ts +0 -135
  198. package/lib/entity/AcDbSpline.d.ts.map +0 -1
  199. package/lib/entity/AcDbSpline.js +0 -142
  200. package/lib/entity/AcDbSpline.js.map +0 -1
  201. package/lib/entity/AcDbTable.d.ts +0 -260
  202. package/lib/entity/AcDbTable.d.ts.map +0 -1
  203. package/lib/entity/AcDbTable.js +0 -452
  204. package/lib/entity/AcDbTable.js.map +0 -1
  205. package/lib/entity/AcDbText.d.ts +0 -388
  206. package/lib/entity/AcDbText.d.ts.map +0 -1
  207. package/lib/entity/AcDbText.js +0 -523
  208. package/lib/entity/AcDbText.js.map +0 -1
  209. package/lib/entity/AcDbTrace.d.ts +0 -193
  210. package/lib/entity/AcDbTrace.d.ts.map +0 -1
  211. package/lib/entity/AcDbTrace.js +0 -271
  212. package/lib/entity/AcDbTrace.js.map +0 -1
  213. package/lib/entity/AcDbViewport.d.ts +0 -173
  214. package/lib/entity/AcDbViewport.d.ts.map +0 -1
  215. package/lib/entity/AcDbViewport.js +0 -295
  216. package/lib/entity/AcDbViewport.js.map +0 -1
  217. package/lib/entity/AcDbWipeout.d.ts +0 -39
  218. package/lib/entity/AcDbWipeout.d.ts.map +0 -1
  219. package/lib/entity/AcDbWipeout.js +0 -70
  220. package/lib/entity/AcDbWipeout.js.map +0 -1
  221. package/lib/entity/AcDbXline.d.ts +0 -151
  222. package/lib/entity/AcDbXline.d.ts.map +0 -1
  223. package/lib/entity/AcDbXline.js +0 -209
  224. package/lib/entity/AcDbXline.js.map +0 -1
  225. package/lib/entity/dimension/AcDb3PointAngularDimension.d.ts +0 -92
  226. package/lib/entity/dimension/AcDb3PointAngularDimension.d.ts.map +0 -1
  227. package/lib/entity/dimension/AcDb3PointAngularDimension.js +0 -157
  228. package/lib/entity/dimension/AcDb3PointAngularDimension.js.map +0 -1
  229. package/lib/entity/dimension/AcDbAlignedDimension.d.ts +0 -220
  230. package/lib/entity/dimension/AcDbAlignedDimension.d.ts.map +0 -1
  231. package/lib/entity/dimension/AcDbAlignedDimension.js +0 -341
  232. package/lib/entity/dimension/AcDbAlignedDimension.js.map +0 -1
  233. package/lib/entity/dimension/AcDbArcDimension.d.ts +0 -94
  234. package/lib/entity/dimension/AcDbArcDimension.d.ts.map +0 -1
  235. package/lib/entity/dimension/AcDbArcDimension.js +0 -159
  236. package/lib/entity/dimension/AcDbArcDimension.js.map +0 -1
  237. package/lib/entity/dimension/AcDbDiametricDimension.d.ts +0 -145
  238. package/lib/entity/dimension/AcDbDiametricDimension.d.ts.map +0 -1
  239. package/lib/entity/dimension/AcDbDiametricDimension.js +0 -275
  240. package/lib/entity/dimension/AcDbDiametricDimension.js.map +0 -1
  241. package/lib/entity/dimension/AcDbDimension.d.ts +0 -257
  242. package/lib/entity/dimension/AcDbDimension.d.ts.map +0 -1
  243. package/lib/entity/dimension/AcDbDimension.js +0 -466
  244. package/lib/entity/dimension/AcDbDimension.js.map +0 -1
  245. package/lib/entity/dimension/AcDbOrdinateDimension.d.ts +0 -78
  246. package/lib/entity/dimension/AcDbOrdinateDimension.d.ts.map +0 -1
  247. package/lib/entity/dimension/AcDbOrdinateDimension.js +0 -133
  248. package/lib/entity/dimension/AcDbOrdinateDimension.js.map +0 -1
  249. package/lib/entity/dimension/AcDbRadialDimension.d.ts +0 -214
  250. package/lib/entity/dimension/AcDbRadialDimension.d.ts.map +0 -1
  251. package/lib/entity/dimension/AcDbRadialDimension.js +0 -288
  252. package/lib/entity/dimension/AcDbRadialDimension.js.map +0 -1
  253. package/lib/entity/dimension/index.d.ts +0 -8
  254. package/lib/entity/dimension/index.d.ts.map +0 -1
  255. package/lib/entity/dimension/index.js +0 -8
  256. package/lib/entity/dimension/index.js.map +0 -1
  257. package/lib/entity/index.d.ts +0 -24
  258. package/lib/entity/index.d.ts.map +0 -1
  259. package/lib/entity/index.js +0 -24
  260. package/lib/entity/index.js.map +0 -1
  261. package/lib/index.d.ts +0 -10
  262. package/lib/index.d.ts.map +0 -1
  263. package/lib/index.js +0 -10
  264. package/lib/index.js.map +0 -1
  265. package/lib/misc/AcDbAngleUnits.d.ts +0 -20
  266. package/lib/misc/AcDbAngleUnits.d.ts.map +0 -1
  267. package/lib/misc/AcDbAngleUnits.js +0 -21
  268. package/lib/misc/AcDbAngleUnits.js.map +0 -1
  269. package/lib/misc/AcDbCodePage.d.ts +0 -50
  270. package/lib/misc/AcDbCodePage.d.ts.map +0 -1
  271. package/lib/misc/AcDbCodePage.js +0 -100
  272. package/lib/misc/AcDbCodePage.js.map +0 -1
  273. package/lib/misc/AcDbConstants.d.ts +0 -24
  274. package/lib/misc/AcDbConstants.d.ts.map +0 -1
  275. package/lib/misc/AcDbConstants.js +0 -24
  276. package/lib/misc/AcDbConstants.js.map +0 -1
  277. package/lib/misc/AcDbDimArrowType.d.ts +0 -89
  278. package/lib/misc/AcDbDimArrowType.d.ts.map +0 -1
  279. package/lib/misc/AcDbDimArrowType.js +0 -90
  280. package/lib/misc/AcDbDimArrowType.js.map +0 -1
  281. package/lib/misc/AcDbObjectIterator.d.ts +0 -64
  282. package/lib/misc/AcDbObjectIterator.d.ts.map +0 -1
  283. package/lib/misc/AcDbObjectIterator.js +0 -84
  284. package/lib/misc/AcDbObjectIterator.js.map +0 -1
  285. package/lib/misc/AcDbOsnapMode.d.ts +0 -51
  286. package/lib/misc/AcDbOsnapMode.d.ts.map +0 -1
  287. package/lib/misc/AcDbOsnapMode.js +0 -52
  288. package/lib/misc/AcDbOsnapMode.js.map +0 -1
  289. package/lib/misc/AcDbRenderingCache.d.ts +0 -141
  290. package/lib/misc/AcDbRenderingCache.d.ts.map +0 -1
  291. package/lib/misc/AcDbRenderingCache.js +0 -239
  292. package/lib/misc/AcDbRenderingCache.js.map +0 -1
  293. package/lib/misc/AcDbUnitsValue.d.ts +0 -101
  294. package/lib/misc/AcDbUnitsValue.d.ts.map +0 -1
  295. package/lib/misc/AcDbUnitsValue.js +0 -121
  296. package/lib/misc/AcDbUnitsValue.js.map +0 -1
  297. package/lib/misc/index.d.ts +0 -9
  298. package/lib/misc/index.d.ts.map +0 -1
  299. package/lib/misc/index.js +0 -9
  300. package/lib/misc/index.js.map +0 -1
  301. package/lib/object/AcDbDictionary.d.ts +0 -178
  302. package/lib/object/AcDbDictionary.d.ts.map +0 -1
  303. package/lib/object/AcDbDictionary.js +0 -264
  304. package/lib/object/AcDbDictionary.js.map +0 -1
  305. package/lib/object/AcDbRasterImageDef.d.ts +0 -54
  306. package/lib/object/AcDbRasterImageDef.d.ts.map +0 -1
  307. package/lib/object/AcDbRasterImageDef.js +0 -82
  308. package/lib/object/AcDbRasterImageDef.js.map +0 -1
  309. package/lib/object/index.d.ts +0 -4
  310. package/lib/object/index.d.ts.map +0 -1
  311. package/lib/object/index.js +0 -4
  312. package/lib/object/index.js.map +0 -1
  313. package/lib/object/layout/AcDbLayout.d.ts +0 -190
  314. package/lib/object/layout/AcDbLayout.d.ts.map +0 -1
  315. package/lib/object/layout/AcDbLayout.js +0 -253
  316. package/lib/object/layout/AcDbLayout.js.map +0 -1
  317. package/lib/object/layout/AcDbLayoutDictionary.d.ts +0 -47
  318. package/lib/object/layout/AcDbLayoutDictionary.d.ts.map +0 -1
  319. package/lib/object/layout/AcDbLayoutDictionary.js +0 -122
  320. package/lib/object/layout/AcDbLayoutDictionary.js.map +0 -1
  321. package/lib/object/layout/AcDbLayoutManager.d.ts +0 -188
  322. package/lib/object/layout/AcDbLayoutManager.d.ts.map +0 -1
  323. package/lib/object/layout/AcDbLayoutManager.js +0 -245
  324. package/lib/object/layout/AcDbLayoutManager.js.map +0 -1
  325. package/lib/object/layout/index.d.ts +0 -4
  326. package/lib/object/layout/index.d.ts.map +0 -1
  327. package/lib/object/layout/index.js +0 -4
  328. package/lib/object/layout/index.js.map +0 -1
@@ -1,151 +0,0 @@
1
- import { AcGeBox3d, AcGePoint3d, AcGePointLike } from '@mlightcad/geometry-engine';
2
- import { AcGiRenderer } from '@mlightcad/graphic-interface';
3
- import { AcDbEntity } from './AcDbEntity';
4
- /**
5
- * Represents a three-dimensional surface patch — specifically, a flat polygon that
6
- * can have three or four vertices (triangular or quadrilateral). It’s one of the
7
- * simplest types of 3D geometry in AutoCAD — used mainly for visual representation
8
- * of 3D models, not for solid modeling.
9
- */
10
- export declare class AcDbFace extends AcDbEntity {
11
- /** The entity type name */
12
- static typeName: string;
13
- /** The three or four vertices of the face */
14
- private _vertices;
15
- /** The invisibility of the edges of the face */
16
- private _edgeInvisibilities;
17
- /**
18
- * Creates a new face entity.
19
- *
20
- * This constructor initializes a face with default values.
21
- * All vertices are set to the origin.
22
- */
23
- constructor();
24
- /**
25
- * Gets the point at the specified index in this face.
26
- *
27
- * The index can be 0, 1, 2, or 3, representing the four vertices of the face.
28
- * If the index is out of range, it returns the first or last vertex accordingly.
29
- *
30
- * @param index - The index (0-3) of the vertex to get
31
- * @returns The point at the specified index in WCS coordinates
32
- *
33
- * @example
34
- * ```typescript
35
- * const point0 = face.getVertexAt(0);
36
- * const point1 = face.getVertexAt(1);
37
- * console.log(`Vertex 0: ${point0.x}, ${point0.y}, ${point0.z}`);
38
- * ```
39
- */
40
- getVertexAt(index: number): AcGePoint3d;
41
- /**
42
- * Sets the point at the specified index in this face.
43
- *
44
- * The index must be 0, 1, 2, or 3, representing the four vertices of the face.
45
- * If the index is out of range, it sets the first or last vertex accordingly.
46
- *
47
- * @param index - The index (0-3) of the vertex to set
48
- * @param point - The new point in WCS coordinates
49
- *
50
- * @example
51
- * ```typescript
52
- * face.setVertexAt(0, new AcGePoint3d(0, 0, 0));
53
- * face.setVertexAt(1, new AcGePoint3d(10, 0, 0));
54
- * face.setVertexAt(2, new AcGePoint3d(10, 5, 0));
55
- * face.setVertexAt(3, new AcGePoint3d(0, 5, 0));
56
- * ```
57
- */
58
- setVertexAt(index: number, point: AcGePointLike): AcGePoint3d | undefined;
59
- /**
60
- * Sets the invisibilities of the edges of the face.
61
- *
62
- * The invisibilities are represented as a bitmask, where each bit corresponds to an edge.
63
- * If the bit is set, the edge is invisible, otherwise it is visible.
64
- *
65
- * @param invisibilities - The bitmask representing the invisibilities of the edges
66
- *
67
- * @example
68
- * ```typescript
69
- * face.setEdgeInvisibilities(0b1111); // All edges are visible
70
- * face.setEdgeInvisibilities(0b0000); // All edges are invisible
71
- * face.setEdgeInvisibilities(0b1010); // Edge 0 and 2 are visible, edge 1 and 3 are invisible
72
- * ```
73
- */
74
- setEdgeInvisibilities(invisibilities: number): void;
75
- /**
76
- * Checks if the edge at the specified index is visible.
77
- *
78
- * The index must be 0, 1, 2, or 3, representing the four edges of the face.
79
- * If the index is out of range, it throws an error.
80
- *
81
- * @param index - The index (0-3) of the edge to check
82
- * @returns True if the edge is visible, false otherwise
83
- *
84
- * @example
85
- * ```typescript
86
- * const isVisible = face.isEdgeVisibleAt(0);
87
- * console.log(`Edge 0 is visible: ${isVisible}`);
88
- * ```
89
- */
90
- isEdgeVisibleAt(index: number): boolean;
91
- /**
92
- * Makes the edge at the specified index invisible.
93
- *
94
- * The index must be 0, 1, 2, or 3, representing the four edges of the face.
95
- * If the index is out of range, it throws an error.
96
- *
97
- * @param index - The index (0-3) of the edge to make invisible
98
- *
99
- * @example
100
- * ```typescript
101
- * face.makeEdgeInvisibleAt(0);
102
- * face.makeEdgeInvisibleAt(1);
103
- * face.makeEdgeInvisibleAt(2);
104
- * face.makeEdgeInvisibleAt(3);
105
- * ```
106
- */
107
- makeEdgeInvisibleAt(index: number): void;
108
- /**
109
- * Gets the geometric extents (bounding box) of this face.
110
- *
111
- * @returns The bounding box that encompasses the entire face
112
- *
113
- * @example
114
- * ```typescript
115
- * const extents = face.geometricExtents;
116
- * console.log(`Trace bounds: ${extents.minPoint} to ${extents.maxPoint}`);
117
- * ```
118
- */
119
- get geometricExtents(): AcGeBox3d;
120
- /**
121
- * Gets the grip points for this face.
122
- *
123
- * Grip points are control points that can be used to modify the face.
124
- * For a face, the grip points are all four vertices.
125
- *
126
- * @returns Array of grip points (all four vertices)
127
- *
128
- * @example
129
- * ```typescript
130
- * const gripPoints = face.subGetGripPoints();
131
- * // gripPoints contains all four vertices of the face
132
- * ```
133
- */
134
- subGetGripPoints(): AcGePoint3d[];
135
- /**
136
- * Draws this face using the specified renderer.
137
- *
138
- * This method renders the face as a filled area using the face's
139
- * current style properties.
140
- *
141
- * @param renderer - The renderer to use for drawing
142
- * @returns The rendered face entity, or undefined if drawing failed
143
- *
144
- * @example
145
- * ```typescript
146
- * const renderedFace = face.draw(renderer);
147
- * ```
148
- */
149
- draw(renderer: AcGiRenderer): import("@mlightcad/graphic-interface").AcGiEntity;
150
- }
151
- //# sourceMappingURL=AcDbFace.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AcDbFace.d.ts","sourceRoot":"","sources":["../../src/entity/AcDbFace.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,WAAW,EACX,aAAa,EACd,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAE3D,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAEzC;;;;;GAKG;AACH,qBAAa,QAAS,SAAQ,UAAU;IACtC,2BAA2B;IAC3B,OAAgB,QAAQ,EAAE,MAAM,CAAS;IAEzC,6CAA6C;IAC7C,OAAO,CAAC,SAAS,CAAe;IAChC,gDAAgD;IAChD,OAAO,CAAC,mBAAmB,CAAQ;IAEnC;;;;;OAKG;;IAOH;;;;;;;;;;;;;;;OAeG;IACH,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,WAAW;IAQvC;;;;;;;;;;;;;;;;OAgBG;IACH,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,aAAa;IAW/C;;;;;;;;;;;;;;OAcG;IACH,qBAAqB,CAAC,cAAc,EAAE,MAAM;IAI5C;;;;;;;;;;;;;;OAcG;IACH,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO;IAOvC;;;;;;;;;;;;;;;OAeG;IACH,mBAAmB,CAAC,KAAK,EAAE,MAAM;IAOjC;;;;;;;;;;OAUG;IACH,IAAI,gBAAgB,IAAI,SAAS,CAEhC;IAED;;;;;;;;;;;;;OAaG;IACH,gBAAgB;IAQhB;;;;;;;;;;;;;OAaG;IACH,IAAI,CAAC,QAAQ,EAAE,YAAY;CAgB5B"}
@@ -1,224 +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 } from '@mlightcad/geometry-engine';
17
- import { AcDbEntity } from './AcDbEntity';
18
- /**
19
- * Represents a three-dimensional surface patch — specifically, a flat polygon that
20
- * can have three or four vertices (triangular or quadrilateral). It’s one of the
21
- * simplest types of 3D geometry in AutoCAD — used mainly for visual representation
22
- * of 3D models, not for solid modeling.
23
- */
24
- var AcDbFace = /** @class */ (function (_super) {
25
- __extends(AcDbFace, _super);
26
- /**
27
- * Creates a new face entity.
28
- *
29
- * This constructor initializes a face with default values.
30
- * All vertices are set to the origin.
31
- */
32
- function AcDbFace() {
33
- var _this = _super.call(this) || this;
34
- _this._vertices = [new AcGePoint3d(), new AcGePoint3d(), new AcGePoint3d()];
35
- _this._edgeInvisibilities = 0;
36
- return _this;
37
- }
38
- /**
39
- * Gets the point at the specified index in this face.
40
- *
41
- * The index can be 0, 1, 2, or 3, representing the four vertices of the face.
42
- * If the index is out of range, it returns the first or last vertex accordingly.
43
- *
44
- * @param index - The index (0-3) of the vertex to get
45
- * @returns The point at the specified index in WCS coordinates
46
- *
47
- * @example
48
- * ```typescript
49
- * const point0 = face.getVertexAt(0);
50
- * const point1 = face.getVertexAt(1);
51
- * console.log(`Vertex 0: ${point0.x}, ${point0.y}, ${point0.z}`);
52
- * ```
53
- */
54
- AcDbFace.prototype.getVertexAt = function (index) {
55
- if (index < 0)
56
- return this._vertices[0];
57
- if (index > this._vertices.length) {
58
- return this._vertices[this._vertices.length - 1];
59
- }
60
- return this._vertices[index];
61
- };
62
- /**
63
- * Sets the point at the specified index in this face.
64
- *
65
- * The index must be 0, 1, 2, or 3, representing the four vertices of the face.
66
- * If the index is out of range, it sets the first or last vertex accordingly.
67
- *
68
- * @param index - The index (0-3) of the vertex to set
69
- * @param point - The new point in WCS coordinates
70
- *
71
- * @example
72
- * ```typescript
73
- * face.setVertexAt(0, new AcGePoint3d(0, 0, 0));
74
- * face.setVertexAt(1, new AcGePoint3d(10, 0, 0));
75
- * face.setVertexAt(2, new AcGePoint3d(10, 5, 0));
76
- * face.setVertexAt(3, new AcGePoint3d(0, 5, 0));
77
- * ```
78
- */
79
- AcDbFace.prototype.setVertexAt = function (index, point) {
80
- if (index < 0)
81
- this._vertices[0].copy(point);
82
- if (index >= 3) {
83
- if (this._vertices.length === 3) {
84
- this._vertices.push(new AcGePoint3d());
85
- }
86
- return this._vertices[3].copy(point);
87
- }
88
- this._vertices[index].copy(point);
89
- };
90
- /**
91
- * Sets the invisibilities of the edges of the face.
92
- *
93
- * The invisibilities are represented as a bitmask, where each bit corresponds to an edge.
94
- * If the bit is set, the edge is invisible, otherwise it is visible.
95
- *
96
- * @param invisibilities - The bitmask representing the invisibilities of the edges
97
- *
98
- * @example
99
- * ```typescript
100
- * face.setEdgeInvisibilities(0b1111); // All edges are visible
101
- * face.setEdgeInvisibilities(0b0000); // All edges are invisible
102
- * face.setEdgeInvisibilities(0b1010); // Edge 0 and 2 are visible, edge 1 and 3 are invisible
103
- * ```
104
- */
105
- AcDbFace.prototype.setEdgeInvisibilities = function (invisibilities) {
106
- this._edgeInvisibilities = invisibilities;
107
- };
108
- /**
109
- * Checks if the edge at the specified index is visible.
110
- *
111
- * The index must be 0, 1, 2, or 3, representing the four edges of the face.
112
- * If the index is out of range, it throws an error.
113
- *
114
- * @param index - The index (0-3) of the edge to check
115
- * @returns True if the edge is visible, false otherwise
116
- *
117
- * @example
118
- * ```typescript
119
- * const isVisible = face.isEdgeVisibleAt(0);
120
- * console.log(`Edge 0 is visible: ${isVisible}`);
121
- * ```
122
- */
123
- AcDbFace.prototype.isEdgeVisibleAt = function (index) {
124
- if (index < 0 || index > 3) {
125
- throw new Error('Index out of range');
126
- }
127
- return (this._edgeInvisibilities & (1 << index)) === 0;
128
- };
129
- /**
130
- * Makes the edge at the specified index invisible.
131
- *
132
- * The index must be 0, 1, 2, or 3, representing the four edges of the face.
133
- * If the index is out of range, it throws an error.
134
- *
135
- * @param index - The index (0-3) of the edge to make invisible
136
- *
137
- * @example
138
- * ```typescript
139
- * face.makeEdgeInvisibleAt(0);
140
- * face.makeEdgeInvisibleAt(1);
141
- * face.makeEdgeInvisibleAt(2);
142
- * face.makeEdgeInvisibleAt(3);
143
- * ```
144
- */
145
- AcDbFace.prototype.makeEdgeInvisibleAt = function (index) {
146
- if (index < 0 || index > 3) {
147
- throw new Error('Index out of range');
148
- }
149
- this._edgeInvisibilities = this._edgeInvisibilities | (1 << index);
150
- };
151
- Object.defineProperty(AcDbFace.prototype, "geometricExtents", {
152
- /**
153
- * Gets the geometric extents (bounding box) of this face.
154
- *
155
- * @returns The bounding box that encompasses the entire face
156
- *
157
- * @example
158
- * ```typescript
159
- * const extents = face.geometricExtents;
160
- * console.log(`Trace bounds: ${extents.minPoint} to ${extents.maxPoint}`);
161
- * ```
162
- */
163
- get: function () {
164
- return new AcGeBox3d().setFromPoints(this._vertices);
165
- },
166
- enumerable: false,
167
- configurable: true
168
- });
169
- /**
170
- * Gets the grip points for this face.
171
- *
172
- * Grip points are control points that can be used to modify the face.
173
- * For a face, the grip points are all four vertices.
174
- *
175
- * @returns Array of grip points (all four vertices)
176
- *
177
- * @example
178
- * ```typescript
179
- * const gripPoints = face.subGetGripPoints();
180
- * // gripPoints contains all four vertices of the face
181
- * ```
182
- */
183
- AcDbFace.prototype.subGetGripPoints = function () {
184
- var gripPoints = new Array();
185
- for (var index = 0; index < this._vertices.length; ++index) {
186
- gripPoints.push(this.getVertexAt(index));
187
- }
188
- return gripPoints;
189
- };
190
- /**
191
- * Draws this face using the specified renderer.
192
- *
193
- * This method renders the face as a filled area using the face's
194
- * current style properties.
195
- *
196
- * @param renderer - The renderer to use for drawing
197
- * @returns The rendered face entity, or undefined if drawing failed
198
- *
199
- * @example
200
- * ```typescript
201
- * const renderedFace = face.draw(renderer);
202
- * ```
203
- */
204
- AcDbFace.prototype.draw = function (renderer) {
205
- var num = this._vertices.length;
206
- var buffer = new Float32Array(num * 3);
207
- var indices = new Uint16Array(num * 2);
208
- for (var i = 0; i < num; i++) {
209
- buffer[i * 3] = this._vertices[i].x;
210
- buffer[i * 3 + 1] = this._vertices[i].y;
211
- buffer[i * 3 + 2] = this._vertices[i].z;
212
- if (this.isEdgeVisibleAt(i)) {
213
- indices[i * 2] = i;
214
- indices[i * 2 + 1] = (i + 1) % 4;
215
- }
216
- }
217
- return renderer.lineSegments(buffer, 3, indices, this.lineStyle);
218
- };
219
- /** The entity type name */
220
- AcDbFace.typeName = 'Face';
221
- return AcDbFace;
222
- }(AcDbEntity));
223
- export { AcDbFace };
224
- //# sourceMappingURL=AcDbFace.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AcDbFace.js","sourceRoot":"","sources":["../../src/entity/AcDbFace.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EACL,SAAS,EACT,WAAW,EAEZ,MAAM,4BAA4B,CAAA;AAGnC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAEzC;;;;;GAKG;AACH;IAA8B,4BAAU;IAStC;;;;;OAKG;IACH;QACE,YAAA,MAAK,WAAE,SAAA;QACP,KAAI,CAAC,SAAS,GAAG,CAAC,IAAI,WAAW,EAAE,EAAE,IAAI,WAAW,EAAE,EAAE,IAAI,WAAW,EAAE,CAAC,CAAA;QAC1E,KAAI,CAAC,mBAAmB,GAAG,CAAC,CAAA;;IAC9B,CAAC;IAED;;;;;;;;;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EAAE,CAAC;YAC7B,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;YACnC,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;YACvC,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;YAEvC,IAAI,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC;gBAC5B,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAA;gBAClB,OAAO,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAA;YAClC,CAAC;QACH,CAAC;QACD,OAAO,QAAQ,CAAC,YAAY,CAAC,MAAM,EAAE,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC,CAAA;IAClE,CAAC;IA1MD,2BAA2B;IACX,iBAAQ,GAAW,MAAM,CAAA;IA0M3C,eAAC;CAAA,AA5MD,CAA8B,UAAU,GA4MvC;SA5MY,QAAQ"}
@@ -1,174 +0,0 @@
1
- import { AcGeBox3d, AcGeLoop2dType } from '@mlightcad/geometry-engine';
2
- import { AcGiHatchPatternLine, AcGiRenderer } from '@mlightcad/graphic-interface';
3
- import { AcDbEntity } from './AcDbEntity';
4
- /**
5
- * Defines the type of hatch pattern.
6
- */
7
- export declare enum AcDbHatchPatternType {
8
- /**
9
- * A user-defined pattern provides a direct method to define a simple hatch pattern using a specified
10
- * hatch entity linetype. The definition data for user-defined hatch pattern include angle, space and
11
- * double. "Angle" specifies an angle for the hatch pattern relative to the X axis of the hatch plane
12
- * in OCS. "Space" defines the vertical distance between two consecutive pattern lines. "Double"
13
- * specifies that a second set of lines is to be drawn at 90 degrees to the original lines. When
14
- * specifying a user-defined hatch pattern, you don't need to set the pattern name. AutoCAD designates
15
- * a default pattern name "U" for all user-defined patterns.
16
- */
17
- UserDefined = 0,
18
- /**
19
- * A predefined pattern type allows you to select a hatch pattern from the AutoCAD standard hatch
20
- * pattern file acad.pat in the "support" directory. The file contains many predefined hatch patterns,
21
- * including ANGLE, ANSI31, BRICK, CLAY, etc. When you use a predefined pattern, you can also specify
22
- * a scale and angle in order to modify the hatch's appearance. Solid fill is a new predefined pattern
23
- * type that enables the application to fill in the hatch area with a specified color. The reserved
24
- * name for this new pattern is "SOLID." SOLID does not appear in the file acad.pat because it has no
25
- * definition data. To specify a solid, use the keyword "SOLID".
26
- */
27
- Predefined = 1,
28
- /**
29
- * A custom-defined pattern type stores the pattern in its own PAT file, in which the name of the
30
- * hatch pattern must match the name of the file. For instance, you must store the TEST hatch pattern
31
- * in a file named test.pat, and the file must be located in the ACAD search path. When you use a
32
- * custom-defined pattern, you can also specify a scale and angle in order to modify the hatch's
33
- * appearance.
34
- */
35
- Custom = 2
36
- }
37
- /**
38
- * Defines the hatch style for determining which areas to hatch.
39
- */
40
- export declare enum AcDbHatchStyle {
41
- /**
42
- * Normal hatch style will hatch inward from the outer loop. If it encounters an internal intersection,
43
- * it turns off hatching until it encounters another intersection. Thus, areas separated from the
44
- * outside of the hatched area by an odd number of intersections are hatched, while areas separated by
45
- * an even number of intersections are not.
46
- */
47
- Normal = 0,
48
- /**
49
- * Outer hatch style will hatch inward from the outer loop. It turns off hatching if it encounters an
50
- * intersection and does not turn it back on. Because this process starts from both ends of each hatch
51
- * line, only the outmost level of the structure is hatched, and the internal structure is left blank.
52
- */
53
- Outer = 1,
54
- /**
55
- * Ignore hatch style will hatch inward from the outer loop and ignores all internal loops.
56
- */
57
- Ignore = 2
58
- }
59
- /**
60
- * Represents a hatch entity in AutoCAD.
61
- *
62
- * A hatch is a 2D geometric object that fills an area with a pattern of lines, dots, or other shapes.
63
- * Hatches are commonly used to represent materials, textures, or to distinguish different areas in drawings.
64
- *
65
- * @example
66
- * ```typescript
67
- * // Create a hatch entity
68
- * const hatch = new AcDbHatch();
69
- * hatch.patternName = "ANSI31";
70
- * hatch.patternType = AcDbHatchPatternType.Predefined;
71
- * hatch.patternScale = 1.0;
72
- * hatch.patternAngle = 0;
73
- * hatch.hatchStyle = AcDbHatchStyle.Normal;
74
- *
75
- * // Add a loop to define the hatch boundary
76
- * const loop = new AcGeLoop2d();
77
- * loop.add(new AcGePoint2d(0, 0));
78
- * loop.add(new AcGePoint2d(10, 0));
79
- * loop.add(new AcGePoint2d(10, 5));
80
- * loop.add(new AcGePoint2d(0, 5));
81
- * hatch.add(loop);
82
- *
83
- * // Access hatch properties
84
- * console.log(`Pattern name: ${hatch.patternName}`);
85
- * console.log(`Pattern scale: ${hatch.patternScale}`);
86
- * ```
87
- */
88
- export declare class AcDbHatch extends AcDbEntity {
89
- /** The entity type name */
90
- static typeName: string;
91
- /** The underlying geometric area object */
92
- private _geo;
93
- /** The elevation (Z-coordinate) of the hatch plane */
94
- private _elevation;
95
- /** The definition lines for the hatch pattern */
96
- private _definitionLines;
97
- /** The name of the hatch pattern */
98
- private _patternName;
99
- /** The type of hatch pattern */
100
- private _patternType;
101
- /** The angle of the hatch pattern in radians */
102
- private _patternAngle;
103
- /** The scale factor for the hatch pattern */
104
- private _patternScale;
105
- /** The hatch style for determining which areas to hatch */
106
- private _hatchStyle;
107
- /**
108
- * Creates a new hatch entity.
109
- *
110
- * This constructor initializes a hatch with default values.
111
- * The elevation is 0, pattern type is Predefined, pattern scale is 1,
112
- * pattern angle is 0, and hatch style is Normal.
113
- *
114
- * @example
115
- * ```typescript
116
- * const hatch = new AcDbHatch();
117
- * hatch.patternName = "ANSI31";
118
- * hatch.patternScale = 2.0;
119
- * ```
120
- */
121
- constructor();
122
- /**
123
- * Gets the definition lines for the hatch pattern.
124
- *
125
- * @returns Array of hatch pattern lines
126
- *
127
- * @example
128
- * ```typescript
129
- * const definitionLines = hatch.definitionLines;
130
- * console.log(`Number of definition lines: ${definitionLines.length}`);
131
- * ```
132
- */
133
- get definitionLines(): AcGiHatchPatternLine[];
134
- /**
135
- * The pattern name of this hatch.
136
- */
137
- get patternName(): string;
138
- set patternName(value: string);
139
- /**
140
- * The pattern name of this hatch.
141
- */
142
- get patternType(): AcDbHatchPatternType;
143
- set patternType(value: AcDbHatchPatternType);
144
- /**
145
- * The pattern angle (in radians) of this hatch.
146
- */
147
- get patternAngle(): number;
148
- set patternAngle(value: number);
149
- /**
150
- * The pattern scale of the hatch entity. It is a non-zero positive number.
151
- */
152
- get patternScale(): number;
153
- set patternScale(value: number);
154
- /**
155
- * The pattern style of the hatch entity.
156
- */
157
- get hatchStyle(): AcDbHatchStyle;
158
- set hatchStyle(value: AcDbHatchStyle);
159
- /**
160
- * Append one loop to loops of this area. If it is the first loop added, it is the outter loop.
161
- * Otherwise, it is an inner loop.
162
- * @param loop Input the loop to append
163
- */
164
- add(loop: AcGeLoop2dType): void;
165
- /**
166
- * @inheritdoc
167
- */
168
- get geometricExtents(): AcGeBox3d;
169
- /**
170
- * @inheritdoc
171
- */
172
- draw(renderer: AcGiRenderer): import("@mlightcad/graphic-interface").AcGiEntity;
173
- }
174
- //# sourceMappingURL=AcDbHatch.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AcDbHatch.d.ts","sourceRoot":"","sources":["../../src/entity/AcDbHatch.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,SAAS,EACT,cAAc,EACf,MAAM,4BAA4B,CAAA;AACnC,OAAO,EACL,oBAAoB,EACpB,YAAY,EACb,MAAM,8BAA8B,CAAA;AAErC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAEzC;;GAEG;AACH,oBAAY,oBAAoB;IAC9B;;;;;;;;OAQG;IACH,WAAW,IAAI;IACf;;;;;;;;OAQG;IACH,UAAU,IAAI;IACd;;;;;;OAMG;IACH,MAAM,IAAI;CACX;AAED;;GA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