@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,84 +0,0 @@
1
- /**
2
- * Iterator used for iterating over database objects.
3
- *
4
- * This class provides an iterator interface for traversing collections
5
- * of database objects. It implements both IterableIterator and provides
6
- * additional methods for checking if more items are available.
7
- *
8
- * @template ResultType - The type of objects being iterated over
9
- */
10
- var AcDbObjectIterator = /** @class */ (function () {
11
- /**
12
- * Creates a new AcDbObjectIterator instance.
13
- *
14
- * @param records - Array of objects to iterate over
15
- *
16
- * @example
17
- * ```typescript
18
- * const entities = [entity1, entity2, entity3];
19
- * const iterator = new AcDbObjectIterator(entities);
20
- * ```
21
- */
22
- function AcDbObjectIterator(records) {
23
- /** Current index in the iteration */
24
- this.i = 0;
25
- this._records = records;
26
- this._keys = Array.from(records.keys());
27
- }
28
- Object.defineProperty(AcDbObjectIterator.prototype, "count", {
29
- /**
30
- * The number of items
31
- */
32
- get: function () {
33
- return this._records.size;
34
- },
35
- enumerable: false,
36
- configurable: true
37
- });
38
- /**
39
- * Converts values in the current iterator to one array
40
- * @returns An array of values in the current iterator
41
- */
42
- AcDbObjectIterator.prototype.toArray = function () {
43
- return Array.from(this._records.values());
44
- };
45
- /**
46
- * Returns the iterator itself, allowing it to be used in for...of loops.
47
- *
48
- * @returns This iterator instance
49
- *
50
- * @example
51
- * ```typescript
52
- * for (const entity of iterator) {
53
- * console.log('Entity:', entity);
54
- * }
55
- * ```
56
- */
57
- AcDbObjectIterator.prototype[Symbol.iterator] = function () {
58
- return this;
59
- };
60
- /**
61
- * Increments the iterator to the next entry.
62
- *
63
- * @returns Iterator result containing the next value or null if done
64
- *
65
- * @example
66
- * ```typescript
67
- * const result = iterator.next();
68
- * if (!result.done) {
69
- * console.log('Next item:', result.value);
70
- * }
71
- * ```
72
- */
73
- AcDbObjectIterator.prototype.next = function () {
74
- while (this.i < this._keys.length) {
75
- var value = this._records.get(this._keys[this.i]);
76
- this.i += 1;
77
- return { value: value, done: false };
78
- }
79
- return { value: null, done: true };
80
- };
81
- return AcDbObjectIterator;
82
- }());
83
- export { AcDbObjectIterator };
84
- //# sourceMappingURL=AcDbObjectIterator.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AcDbObjectIterator.js","sourceRoot":"","sources":["../../src/misc/AcDbObjectIterator.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH;IAQE;;;;;;;;;;OAUG;IACH,4BAAY,OAAgC;QAhB5C,qCAAqC;QAC7B,MAAC,GAAG,CAAC,CAAA;QAgBX,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAA;QACvB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,CAAA;IACzC,CAAC;IAKD,sBAAI,qCAAK;QAHT;;WAEG;aACH;YACE,OAAO,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAA;QAC3B,CAAC;;;OAAA;IAED;;;OAGG;IACH,oCAAO,GAAP;QACE,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAA;IAC3C,CAAC;IAED;;;;;;;;;;;OAWG;IACH,6BAAC,MAAM,CAAC,QAAQ,CAAC,GAAjB;QACE,OAAO,IAAI,CAAA;IACb,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,iCAAI,GAAJ;QACE,OAAO,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;YAClC,IAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAe,CAAA;YACjE,IAAI,CAAC,CAAC,IAAI,CAAC,CAAA;YACX,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,CAAA;QACtC,CAAC;QACD,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,CAAA;IACpC,CAAC;IACH,yBAAC;AAAD,CAAC,AA5ED,IA4EC"}
@@ -1,51 +0,0 @@
1
- /**
2
- * Enumeration of object snap modes used in AutoCAD.
3
- *
4
- * Object snap modes define the types of geometric points that can be
5
- * snapped to when drawing or editing entities. These modes help ensure
6
- * precise positioning and alignment of objects.
7
- */
8
- export declare enum AcDbOsnapMode {
9
- /**
10
- * End point - snaps to the endpoint of a line, arc, or other entity
11
- */
12
- EndPoint = 1,
13
- /**
14
- * Middle point - snaps to the midpoint of a line or arc
15
- */
16
- MidPoint = 2,
17
- /**
18
- * Center - snaps to the center point of a circle, arc, or ellipse
19
- */
20
- Center = 3,
21
- /**
22
- * Node - snaps to a point entity
23
- */
24
- Node = 4,
25
- /**
26
- * Quadrant - snaps to the quadrant points of a circle or ellipse
27
- * (0°, 90°, 180°, 270°)
28
- */
29
- Quadrant = 5,
30
- /**
31
- * Insertion - snaps to the insertion point of text, blocks, or other objects
32
- */
33
- Insertion = 7,
34
- /**
35
- * Perpendicular - snaps to a point perpendicular to a line or arc
36
- */
37
- Perpendicular = 8,
38
- /**
39
- * Tangent - snaps to a point tangent to a circle or arc
40
- */
41
- Tangent = 9,
42
- /**
43
- * Nearest - snaps to the nearest point on an entity
44
- */
45
- Nearest = 10,
46
- /**
47
- * Center of the object - snaps to the centroid or center of mass of an object
48
- */
49
- Centroid = 11
50
- }
51
- //# sourceMappingURL=AcDbOsnapMode.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AcDbOsnapMode.d.ts","sourceRoot":"","sources":["../../src/misc/AcDbOsnapMode.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,oBAAY,aAAa;IACvB;;OAEG;IACH,QAAQ,IAAI;IACZ;;OAEG;IACH,QAAQ,IAAI;IACZ;;OAEG;IACH,MAAM,IAAI;IACV;;OAEG;IACH,IAAI,IAAI;IACR;;;OAGG;IACH,QAAQ,IAAI;IACZ;;OAEG;IACH,SAAS,IAAI;IACb;;OAEG;IACH,aAAa,IAAI;IACjB;;OAEG;IACH,OAAO,IAAI;IACX;;OAEG;IACH,OAAO,KAAK;IACZ;;OAEG;IACH,QAAQ,KAAK;CACd"}
@@ -1,52 +0,0 @@
1
- /**
2
- * Enumeration of object snap modes used in AutoCAD.
3
- *
4
- * Object snap modes define the types of geometric points that can be
5
- * snapped to when drawing or editing entities. These modes help ensure
6
- * precise positioning and alignment of objects.
7
- */
8
- export var AcDbOsnapMode;
9
- (function (AcDbOsnapMode) {
10
- /**
11
- * End point - snaps to the endpoint of a line, arc, or other entity
12
- */
13
- AcDbOsnapMode[AcDbOsnapMode["EndPoint"] = 1] = "EndPoint";
14
- /**
15
- * Middle point - snaps to the midpoint of a line or arc
16
- */
17
- AcDbOsnapMode[AcDbOsnapMode["MidPoint"] = 2] = "MidPoint";
18
- /**
19
- * Center - snaps to the center point of a circle, arc, or ellipse
20
- */
21
- AcDbOsnapMode[AcDbOsnapMode["Center"] = 3] = "Center";
22
- /**
23
- * Node - snaps to a point entity
24
- */
25
- AcDbOsnapMode[AcDbOsnapMode["Node"] = 4] = "Node";
26
- /**
27
- * Quadrant - snaps to the quadrant points of a circle or ellipse
28
- * (0°, 90°, 180°, 270°)
29
- */
30
- AcDbOsnapMode[AcDbOsnapMode["Quadrant"] = 5] = "Quadrant";
31
- /**
32
- * Insertion - snaps to the insertion point of text, blocks, or other objects
33
- */
34
- AcDbOsnapMode[AcDbOsnapMode["Insertion"] = 7] = "Insertion";
35
- /**
36
- * Perpendicular - snaps to a point perpendicular to a line or arc
37
- */
38
- AcDbOsnapMode[AcDbOsnapMode["Perpendicular"] = 8] = "Perpendicular";
39
- /**
40
- * Tangent - snaps to a point tangent to a circle or arc
41
- */
42
- AcDbOsnapMode[AcDbOsnapMode["Tangent"] = 9] = "Tangent";
43
- /**
44
- * Nearest - snaps to the nearest point on an entity
45
- */
46
- AcDbOsnapMode[AcDbOsnapMode["Nearest"] = 10] = "Nearest";
47
- /**
48
- * Center of the object - snaps to the centroid or center of mass of an object
49
- */
50
- AcDbOsnapMode[AcDbOsnapMode["Centroid"] = 11] = "Centroid";
51
- })(AcDbOsnapMode || (AcDbOsnapMode = {}));
52
- //# sourceMappingURL=AcDbOsnapMode.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AcDbOsnapMode.js","sourceRoot":"","sources":["../../src/misc/AcDbOsnapMode.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,CAAN,IAAY,aA0CX;AA1CD,WAAY,aAAa;IACvB;;OAEG;IACH,yDAAY,CAAA;IACZ;;OAEG;IACH,yDAAY,CAAA;IACZ;;OAEG;IACH,qDAAU,CAAA;IACV;;OAEG;IACH,iDAAQ,CAAA;IACR;;;OAGG;IACH,yDAAY,CAAA;IACZ;;OAEG;IACH,2DAAa,CAAA;IACb;;OAEG;IACH,mEAAiB,CAAA;IACjB;;OAEG;IACH,uDAAW,CAAA;IACX;;OAEG;IACH,wDAAY,CAAA;IACZ;;OAEG;IACH,0DAAa,CAAA;AACf,CAAC,EA1CW,aAAa,KAAb,aAAa,QA0CxB"}
@@ -1,141 +0,0 @@
1
- import { AcGeMatrix3d, AcGeVector3d } from '@mlightcad/geometry-engine';
2
- import { AcGiEntity, AcGiRenderer } from '@mlightcad/graphic-interface';
3
- import { AcDbBlockTableRecord } from '../database';
4
- /**
5
- * Internal class used to cache rendered results to avoid duplicated rendering.
6
- *
7
- * This class can be used to improve performance when rendering block references.
8
- * Because different colors will result in different materials, the block name and
9
- * color are used together to create the cache key.
10
- *
11
- * @internal
12
- *
13
- * @example
14
- * ```typescript
15
- * const cache = AcDbRenderingCache.instance;
16
- * const key = cache.createKey('MyBlock', 0xFF0000);
17
- * const renderedEntity = cache.draw(renderer, blockRecord, 0xFF0000);
18
- * ```
19
- */
20
- export declare class AcDbRenderingCache {
21
- /** Map of cached rendering results indexed by key */
22
- private _blocks;
23
- /** Singleton instance of the cache */
24
- private static _instance?;
25
- /**
26
- * Gets the singleton instance of the rendering cache.
27
- *
28
- * @returns The singleton instance of AcDbRenderingCache
29
- *
30
- * @example
31
- * ```typescript
32
- * const cache = AcDbRenderingCache.instance;
33
- * ```
34
- */
35
- static get instance(): AcDbRenderingCache;
36
- /**
37
- * Creates a new AcDbRenderingCache instance.
38
- *
39
- * @example
40
- * ```typescript
41
- * const cache = new AcDbRenderingCache();
42
- * ```
43
- */
44
- constructor();
45
- /**
46
- * Creates a cache key by combining the block name and color.
47
- *
48
- * @param name - The block name
49
- * @param color - The color value
50
- * @returns A unique key for the cache entry
51
- *
52
- * @example
53
- * ```typescript
54
- * const key = cache.createKey('MyBlock', 0xFF0000);
55
- * // Returns: "MyBlock_16711680"
56
- * ```
57
- */
58
- createKey(name: string, color: number): string;
59
- /**
60
- * Stores rendering results of a block in the cache.
61
- *
62
- * @param key - The key for the rendering results
63
- * @param group - The rendering results to store
64
- * @returns The stored rendering results (deep cloned)
65
- *
66
- * @example
67
- * ```typescript
68
- * const renderedEntity = cache.set(key, entity);
69
- * ```
70
- */
71
- set(key: string, group: AcGiEntity): AcGiEntity;
72
- /**
73
- * Gets rendering results with the specified key.
74
- *
75
- * @param name - The key of the rendering results
76
- * @returns The rendering results with the specified key, or undefined if not found
77
- *
78
- * @example
79
- * ```typescript
80
- * const cachedEntity = cache.get('MyBlock_16711680');
81
- * if (cachedEntity) {
82
- * // Use cached entity
83
- * }
84
- * ```
85
- */
86
- get(name: string): AcGiEntity | undefined;
87
- /**
88
- * Checks if rendering results with the specified key exist in the cache.
89
- *
90
- * @param name - The key to check
91
- * @returns True if the key exists in the cache, false otherwise
92
- *
93
- * @example
94
- * ```typescript
95
- * if (cache.has('MyBlock_16711680')) {
96
- * console.log('Cached result found');
97
- * }
98
- * ```
99
- */
100
- has(name: string): boolean;
101
- /**
102
- * Clears all cached rendering results.
103
- *
104
- * @example
105
- * ```typescript
106
- * cache.clear();
107
- * console.log('Cache cleared');
108
- * ```
109
- */
110
- clear(): void;
111
- /**
112
- * Draws a block table record and optionally caches the result.
113
- *
114
- * This method renders the block table record using the specified renderer
115
- * and color, and optionally stores the result in the cache for future use.
116
- *
117
- * @param renderer - The renderer to use for drawing
118
- * @param blockTableRecord - The block table record to draw
119
- * @param color - The color to use for rendering
120
- * @param cache - Whether to cache the rendering result (default: true)
121
- * @param transform - Optional transformation matrix to apply
122
- * @param normal - Optional normal vector
123
- * @returns The rendered entity
124
- *
125
- * @example
126
- * ```typescript
127
- * const renderedEntity = cache.draw(
128
- * renderer,
129
- * blockRecord,
130
- * 0xFF0000,
131
- * true,
132
- * transform,
133
- * normal
134
- * );
135
- * ```
136
- */
137
- draw(renderer: AcGiRenderer, blockTableRecord: AcDbBlockTableRecord, color: number, cache?: boolean, transform?: AcGeMatrix3d, normal?: AcGeVector3d): AcGiEntity | undefined;
138
- private addEntity;
139
- private attachEntityInfo;
140
- }
141
- //# sourceMappingURL=AcDbRenderingCache.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AcDbRenderingCache.d.ts","sourceRoot":"","sources":["../../src/misc/AcDbRenderingCache.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AACvE,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAGvE,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAElD;;;;;;;;;;;;;;;GAeG;AACH,qBAAa,kBAAkB;IAC7B,qDAAqD;IACrD,OAAO,CAAC,OAAO,CAAyB;IACxC,sCAAsC;IACtC,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,CAAoB;IAE7C;;;;;;;;;OASG;IACH,MAAM,KAAK,QAAQ,uBAKlB;IAED;;;;;;;OAOG;;IAKH;;;;;;;;;;;;OAYG;IACH,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;IAIrC;;;;;;;;;;;OAWG;IACH,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU;IAMlC;;;;;;;;;;;;;OAaG;IACH,GAAG,CAAC,IAAI,EAAE,MAAM;IAQhB;;;;;;;;;;;;OAYG;IACH,GAAG,CAAC,IAAI,EAAE,MAAM;IAIhB;;;;;;;;OAQG;IACH,KAAK;IAIL;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACH,IAAI,CACF,QAAQ,EAAE,YAAY,EACtB,gBAAgB,EAAE,oBAAoB,EACtC,KAAK,EAAE,MAAM,EACb,KAAK,GAAE,OAAc,EACrB,SAAS,CAAC,EAAE,YAAY,EACxB,MAAM,CAAC,EAAE,YAAY;IAwCvB,OAAO,CAAC,SAAS;IAYjB,OAAO,CAAC,gBAAgB;CAMzB"}
@@ -1,239 +0,0 @@
1
- var __values = (this && this.__values) || function(o) {
2
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
3
- if (m) return m.call(o);
4
- if (o && typeof o.length === "number") return {
5
- next: function () {
6
- if (o && i >= o.length) o = void 0;
7
- return { value: o && o[i++], done: !o };
8
- }
9
- };
10
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
11
- };
12
- import { AcCmColor } from '@mlightcad/common';
13
- /**
14
- * Internal class used to cache rendered results to avoid duplicated rendering.
15
- *
16
- * This class can be used to improve performance when rendering block references.
17
- * Because different colors will result in different materials, the block name and
18
- * color are used together to create the cache key.
19
- *
20
- * @internal
21
- *
22
- * @example
23
- * ```typescript
24
- * const cache = AcDbRenderingCache.instance;
25
- * const key = cache.createKey('MyBlock', 0xFF0000);
26
- * const renderedEntity = cache.draw(renderer, blockRecord, 0xFF0000);
27
- * ```
28
- */
29
- var AcDbRenderingCache = /** @class */ (function () {
30
- /**
31
- * Creates a new AcDbRenderingCache instance.
32
- *
33
- * @example
34
- * ```typescript
35
- * const cache = new AcDbRenderingCache();
36
- * ```
37
- */
38
- function AcDbRenderingCache() {
39
- this._blocks = new Map();
40
- }
41
- Object.defineProperty(AcDbRenderingCache, "instance", {
42
- /**
43
- * Gets the singleton instance of the rendering cache.
44
- *
45
- * @returns The singleton instance of AcDbRenderingCache
46
- *
47
- * @example
48
- * ```typescript
49
- * const cache = AcDbRenderingCache.instance;
50
- * ```
51
- */
52
- get: function () {
53
- if (!this._instance) {
54
- this._instance = new AcDbRenderingCache();
55
- }
56
- return this._instance;
57
- },
58
- enumerable: false,
59
- configurable: true
60
- });
61
- /**
62
- * Creates a cache key by combining the block name and color.
63
- *
64
- * @param name - The block name
65
- * @param color - The color value
66
- * @returns A unique key for the cache entry
67
- *
68
- * @example
69
- * ```typescript
70
- * const key = cache.createKey('MyBlock', 0xFF0000);
71
- * // Returns: "MyBlock_16711680"
72
- * ```
73
- */
74
- AcDbRenderingCache.prototype.createKey = function (name, color) {
75
- return "".concat(name, "_").concat(color);
76
- };
77
- /**
78
- * Stores rendering results of a block in the cache.
79
- *
80
- * @param key - The key for the rendering results
81
- * @param group - The rendering results to store
82
- * @returns The stored rendering results (deep cloned)
83
- *
84
- * @example
85
- * ```typescript
86
- * const renderedEntity = cache.set(key, entity);
87
- * ```
88
- */
89
- AcDbRenderingCache.prototype.set = function (key, group) {
90
- group = group.fastDeepClone();
91
- this._blocks.set(key, group);
92
- return group;
93
- };
94
- /**
95
- * Gets rendering results with the specified key.
96
- *
97
- * @param name - The key of the rendering results
98
- * @returns The rendering results with the specified key, or undefined if not found
99
- *
100
- * @example
101
- * ```typescript
102
- * const cachedEntity = cache.get('MyBlock_16711680');
103
- * if (cachedEntity) {
104
- * // Use cached entity
105
- * }
106
- * ```
107
- */
108
- AcDbRenderingCache.prototype.get = function (name) {
109
- var block = this._blocks.get(name);
110
- if (block) {
111
- block = block.fastDeepClone();
112
- }
113
- return block;
114
- };
115
- /**
116
- * Checks if rendering results with the specified key exist in the cache.
117
- *
118
- * @param name - The key to check
119
- * @returns True if the key exists in the cache, false otherwise
120
- *
121
- * @example
122
- * ```typescript
123
- * if (cache.has('MyBlock_16711680')) {
124
- * console.log('Cached result found');
125
- * }
126
- * ```
127
- */
128
- AcDbRenderingCache.prototype.has = function (name) {
129
- return this._blocks.has(name);
130
- };
131
- /**
132
- * Clears all cached rendering results.
133
- *
134
- * @example
135
- * ```typescript
136
- * cache.clear();
137
- * console.log('Cache cleared');
138
- * ```
139
- */
140
- AcDbRenderingCache.prototype.clear = function () {
141
- this._blocks.clear();
142
- };
143
- /**
144
- * Draws a block table record and optionally caches the result.
145
- *
146
- * This method renders the block table record using the specified renderer
147
- * and color, and optionally stores the result in the cache for future use.
148
- *
149
- * @param renderer - The renderer to use for drawing
150
- * @param blockTableRecord - The block table record to draw
151
- * @param color - The color to use for rendering
152
- * @param cache - Whether to cache the rendering result (default: true)
153
- * @param transform - Optional transformation matrix to apply
154
- * @param normal - Optional normal vector
155
- * @returns The rendered entity
156
- *
157
- * @example
158
- * ```typescript
159
- * const renderedEntity = cache.draw(
160
- * renderer,
161
- * blockRecord,
162
- * 0xFF0000,
163
- * true,
164
- * transform,
165
- * normal
166
- * );
167
- * ```
168
- */
169
- AcDbRenderingCache.prototype.draw = function (renderer, blockTableRecord, color, cache, transform, normal) {
170
- var e_1, _a;
171
- if (cache === void 0) { cache = true; }
172
- var results = [];
173
- if (blockTableRecord != null) {
174
- var key = this.createKey(blockTableRecord.name, color);
175
- var block = void 0;
176
- if (this.has(key)) {
177
- block = this.get(key);
178
- }
179
- else {
180
- var entities = blockTableRecord.newIterator();
181
- try {
182
- for (var entities_1 = __values(entities), entities_1_1 = entities_1.next(); !entities_1_1.done; entities_1_1 = entities_1.next()) {
183
- var entity = entities_1_1.value;
184
- // If the color of this entity is 'byBlock', then store the original color of this entity color
185
- // and set the color of this entity to block's color. After renderering this entity, restore
186
- // its original color
187
- if (entity.color.isByBlock && color) {
188
- _tmpColor.copy(entity.color);
189
- entity.color.color = color;
190
- this.addEntity(entity, results, renderer);
191
- entity.color.copy(_tmpColor);
192
- }
193
- else {
194
- this.addEntity(entity, results, renderer);
195
- }
196
- }
197
- }
198
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
199
- finally {
200
- try {
201
- if (entities_1_1 && !entities_1_1.done && (_a = entities_1.return)) _a.call(entities_1);
202
- }
203
- finally { if (e_1) throw e_1.error; }
204
- }
205
- block = renderer.group(results);
206
- if (block && cache)
207
- this.set(key, block);
208
- }
209
- if (block && transform) {
210
- block.applyMatrix(transform);
211
- if (normal && (normal.x != 0 || normal.y != 0 || normal.z != 1)) {
212
- transform.setFromExtrusionDirection(normal);
213
- block.applyMatrix(transform);
214
- }
215
- }
216
- return block;
217
- }
218
- else {
219
- return renderer.group(results);
220
- }
221
- };
222
- AcDbRenderingCache.prototype.addEntity = function (entity, results, renderer) {
223
- var object = entity.draw(renderer);
224
- if (object) {
225
- this.attachEntityInfo(object, entity);
226
- results.push(object);
227
- }
228
- };
229
- AcDbRenderingCache.prototype.attachEntityInfo = function (target, source) {
230
- target.objectId = source.objectId;
231
- target.ownerId = source.ownerId;
232
- target.layerName = source.layer;
233
- target.visible = source.visibility;
234
- };
235
- return AcDbRenderingCache;
236
- }());
237
- export { AcDbRenderingCache };
238
- var _tmpColor = /*@__PURE__*/ new AcCmColor();
239
- //# sourceMappingURL=AcDbRenderingCache.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AcDbRenderingCache.js","sourceRoot":"","sources":["../../src/misc/AcDbRenderingCache.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAO7C;;;;;;;;;;;;;;;GAeG;AACH;IAuBE;;;;;;;OAOG;IACH;QACE,IAAI,CAAC,OAAO,GAAG,IAAI,GAAG,EAAE,CAAA;IAC1B,CAAC;IAjBD,sBAAW,8BAAQ;QAVnB;;;;;;;;;WASG;aACH;YACE,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC;gBACpB,IAAI,CAAC,SAAS,GAAG,IAAI,kBAAkB,EAAE,CAAA;YAC3C,CAAC;YACD,OAAO,IAAI,CAAC,SAAS,CAAA;QACvB,CAAC;;;OAAA;IAcD;;;;;;;;;;;;OAYG;IACH,sCAAS,GAAT,UAAU,IAAY,EAAE,KAAa;QACnC,OAAO,UAAG,IAAI,cAAI,KAAK,CAAE,CAAA;IAC3B,CAAC;IAED;;;;;;;;;;;OAWG;IACH,gCAAG,GAAH,UAAI,GAAW,EAAE,KAAiB;QAChC,KAAK,GAAG,KAAK,CAAC,aAAa,EAAE,CAAA;QAC7B,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,CAAA;QAC5B,OAAO,KAAK,CAAA;IACd,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,gCAAG,GAAH,UAAI,IAAY;Q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