@mlightcad/data-model 1.3.3 → 1.3.4

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/dist/data-model.cjs +5 -0
  2. package/dist/data-model.js +25523 -0
  3. package/dist/dxf-parser-worker.js +1715 -0
  4. package/lib/base/AcDbHostApplicationServices.d.ts +96 -0
  5. package/lib/base/AcDbHostApplicationServices.d.ts.map +1 -0
  6. package/lib/base/AcDbHostApplicationServices.js +118 -0
  7. package/lib/base/AcDbHostApplicationServices.js.map +1 -0
  8. package/lib/base/AcDbObject.d.ts +205 -0
  9. package/lib/base/AcDbObject.d.ts.map +1 -0
  10. package/lib/base/AcDbObject.js +236 -0
  11. package/lib/base/AcDbObject.js.map +1 -0
  12. package/lib/base/index.d.ts +3 -0
  13. package/lib/base/index.d.ts.map +1 -0
  14. package/lib/base/index.js +3 -0
  15. package/lib/base/index.js.map +1 -0
  16. package/lib/converter/AcDbBatchProcessing.d.ts +146 -0
  17. package/lib/converter/AcDbBatchProcessing.d.ts.map +1 -0
  18. package/lib/converter/AcDbBatchProcessing.js +272 -0
  19. package/lib/converter/AcDbBatchProcessing.js.map +1 -0
  20. package/lib/converter/AcDbDxfConverter.d.ts +272 -0
  21. package/lib/converter/AcDbDxfConverter.d.ts.map +1 -0
  22. package/lib/converter/AcDbDxfConverter.js +874 -0
  23. package/lib/converter/AcDbDxfConverter.js.map +1 -0
  24. package/lib/converter/AcDbDxfParser.d.ts +23 -0
  25. package/lib/converter/AcDbDxfParser.d.ts.map +1 -0
  26. package/lib/converter/AcDbDxfParser.js +85 -0
  27. package/lib/converter/AcDbDxfParser.js.map +1 -0
  28. package/lib/converter/AcDbEntitiyConverter.d.ts +159 -0
  29. package/lib/converter/AcDbEntitiyConverter.d.ts.map +1 -0
  30. package/lib/converter/AcDbEntitiyConverter.js +659 -0
  31. package/lib/converter/AcDbEntitiyConverter.js.map +1 -0
  32. package/lib/converter/AcDbObjectConverter.d.ts +61 -0
  33. package/lib/converter/AcDbObjectConverter.d.ts.map +1 -0
  34. package/lib/converter/AcDbObjectConverter.js +91 -0
  35. package/lib/converter/AcDbObjectConverter.js.map +1 -0
  36. package/lib/converter/AcDbRegenerator.d.ts +101 -0
  37. package/lib/converter/AcDbRegenerator.d.ts.map +1 -0
  38. package/lib/converter/AcDbRegenerator.js +334 -0
  39. package/lib/converter/AcDbRegenerator.js.map +1 -0
  40. package/lib/converter/index.d.ts +5 -0
  41. package/lib/converter/index.d.ts.map +1 -0
  42. package/lib/converter/index.js +5 -0
  43. package/lib/converter/index.js.map +1 -0
  44. package/lib/converter/worker/AcDbBaseWorker.d.ts +36 -0
  45. package/lib/converter/worker/AcDbBaseWorker.d.ts.map +1 -0
  46. package/lib/converter/worker/AcDbBaseWorker.js +93 -0
  47. package/lib/converter/worker/AcDbBaseWorker.js.map +1 -0
  48. package/lib/converter/worker/AcDbDxfParserWorker.d.ts +11 -0
  49. package/lib/converter/worker/AcDbDxfParserWorker.d.ts.map +1 -0
  50. package/lib/converter/worker/AcDbDxfParserWorker.js +75 -0
  51. package/lib/converter/worker/AcDbDxfParserWorker.js.map +1 -0
  52. package/lib/converter/worker/AcDbWorkerManager.d.ts +107 -0
  53. package/lib/converter/worker/AcDbWorkerManager.d.ts.map +1 -0
  54. package/lib/converter/worker/AcDbWorkerManager.js +360 -0
  55. package/lib/converter/worker/AcDbWorkerManager.js.map +1 -0
  56. package/lib/converter/worker/index.d.ts +3 -0
  57. package/lib/converter/worker/index.d.ts.map +1 -0
  58. package/lib/converter/worker/index.js +3 -0
  59. package/lib/converter/worker/index.js.map +1 -0
  60. package/lib/database/AcDbBlockTable.d.ts +56 -0
  61. package/lib/database/AcDbBlockTable.d.ts.map +1 -0
  62. package/lib/database/AcDbBlockTable.js +98 -0
  63. package/lib/database/AcDbBlockTable.js.map +1 -0
  64. package/lib/database/AcDbBlockTableRecord.d.ts +185 -0
  65. package/lib/database/AcDbBlockTableRecord.d.ts.map +1 -0
  66. package/lib/database/AcDbBlockTableRecord.js +261 -0
  67. package/lib/database/AcDbBlockTableRecord.js.map +1 -0
  68. package/lib/database/AcDbDatabase.d.ts +563 -0
  69. package/lib/database/AcDbDatabase.d.ts.map +1 -0
  70. package/lib/database/AcDbDatabase.js +842 -0
  71. package/lib/database/AcDbDatabase.js.map +1 -0
  72. package/lib/database/AcDbDatabaseConverter.d.ts +292 -0
  73. package/lib/database/AcDbDatabaseConverter.d.ts.map +1 -0
  74. package/lib/database/AcDbDatabaseConverter.js +448 -0
  75. package/lib/database/AcDbDatabaseConverter.js.map +1 -0
  76. package/lib/database/AcDbDatabaseConverterManager.d.ts +141 -0
  77. package/lib/database/AcDbDatabaseConverterManager.d.ts.map +1 -0
  78. package/lib/database/AcDbDatabaseConverterManager.js +173 -0
  79. package/lib/database/AcDbDatabaseConverterManager.js.map +1 -0
  80. package/lib/database/AcDbDimStyleTable.d.ts +31 -0
  81. package/lib/database/AcDbDimStyleTable.d.ts.map +1 -0
  82. package/lib/database/AcDbDimStyleTable.js +49 -0
  83. package/lib/database/AcDbDimStyleTable.js.map +1 -0
  84. package/lib/database/AcDbDimStyleTableRecord.d.ts +797 -0
  85. package/lib/database/AcDbDimStyleTableRecord.d.ts.map +1 -0
  86. package/lib/database/AcDbDimStyleTableRecord.js +1294 -0
  87. package/lib/database/AcDbDimStyleTableRecord.js.map +1 -0
  88. package/lib/database/AcDbDwgVersion.d.ts +32 -0
  89. package/lib/database/AcDbDwgVersion.d.ts.map +1 -0
  90. package/lib/database/AcDbDwgVersion.js +126 -0
  91. package/lib/database/AcDbDwgVersion.js.map +1 -0
  92. package/lib/database/AcDbLayerTable.d.ts +51 -0
  93. package/lib/database/AcDbLayerTable.d.ts.map +1 -0
  94. package/lib/database/AcDbLayerTable.js +92 -0
  95. package/lib/database/AcDbLayerTable.js.map +1 -0
  96. package/lib/database/AcDbLayerTableRecord.d.ts +278 -0
  97. package/lib/database/AcDbLayerTableRecord.d.ts.map +1 -0
  98. package/lib/database/AcDbLayerTableRecord.js +397 -0
  99. package/lib/database/AcDbLayerTableRecord.js.map +1 -0
  100. package/lib/database/AcDbLinetypeTable.d.ts +30 -0
  101. package/lib/database/AcDbLinetypeTable.d.ts.map +1 -0
  102. package/lib/database/AcDbLinetypeTable.js +48 -0
  103. package/lib/database/AcDbLinetypeTable.js.map +1 -0
  104. package/lib/database/AcDbLinetypeTableRecord.d.ts +79 -0
  105. package/lib/database/AcDbLinetypeTableRecord.d.ts.map +1 -0
  106. package/lib/database/AcDbLinetypeTableRecord.js +129 -0
  107. package/lib/database/AcDbLinetypeTableRecord.js.map +1 -0
  108. package/lib/database/AcDbSymbolTable.d.ts +199 -0
  109. package/lib/database/AcDbSymbolTable.d.ts.map +1 -0
  110. package/lib/database/AcDbSymbolTable.js +264 -0
  111. package/lib/database/AcDbSymbolTable.js.map +1 -0
  112. package/lib/database/AcDbSymbolTableRecord.d.ts +61 -0
  113. package/lib/database/AcDbSymbolTableRecord.d.ts.map +1 -0
  114. package/lib/database/AcDbSymbolTableRecord.js +82 -0
  115. package/lib/database/AcDbSymbolTableRecord.js.map +1 -0
  116. package/lib/database/AcDbTextStyleTable.d.ts +48 -0
  117. package/lib/database/AcDbTextStyleTable.d.ts.map +1 -0
  118. package/lib/database/AcDbTextStyleTable.js +112 -0
  119. package/lib/database/AcDbTextStyleTable.js.map +1 -0
  120. package/lib/database/AcDbTextStyleTableRecord.d.ts +179 -0
  121. package/lib/database/AcDbTextStyleTableRecord.d.ts.map +1 -0
  122. package/lib/database/AcDbTextStyleTableRecord.js +276 -0
  123. package/lib/database/AcDbTextStyleTableRecord.js.map +1 -0
  124. package/lib/database/AcDbViewportTable.d.ts +31 -0
  125. package/lib/database/AcDbViewportTable.d.ts.map +1 -0
  126. package/lib/database/AcDbViewportTable.js +49 -0
  127. package/lib/database/AcDbViewportTable.js.map +1 -0
  128. package/lib/database/AcDbViewportTableRecord.d.ts +154 -0
  129. package/lib/database/AcDbViewportTableRecord.d.ts.map +1 -0
  130. package/lib/database/AcDbViewportTableRecord.js +318 -0
  131. package/lib/database/AcDbViewportTableRecord.js.map +1 -0
  132. package/lib/database/index.d.ts +19 -0
  133. package/lib/database/index.d.ts.map +1 -0
  134. package/lib/database/index.js +19 -0
  135. package/lib/database/index.js.map +1 -0
  136. package/lib/entity/AcDbArc.d.ts +254 -0
  137. package/lib/entity/AcDbArc.d.ts.map +1 -0
  138. package/lib/entity/AcDbArc.js +340 -0
  139. package/lib/entity/AcDbArc.js.map +1 -0
  140. package/lib/entity/AcDbBlockReference.d.ts +190 -0
  141. package/lib/entity/AcDbBlockReference.d.ts.map +1 -0
  142. package/lib/entity/AcDbBlockReference.js +302 -0
  143. package/lib/entity/AcDbBlockReference.js.map +1 -0
  144. package/lib/entity/AcDbCircle.d.ts +186 -0
  145. package/lib/entity/AcDbCircle.d.ts.map +1 -0
  146. package/lib/entity/AcDbCircle.js +249 -0
  147. package/lib/entity/AcDbCircle.js.map +1 -0
  148. package/lib/entity/AcDbCurve.d.ts +42 -0
  149. package/lib/entity/AcDbCurve.d.ts.map +1 -0
  150. package/lib/entity/AcDbCurve.js +44 -0
  151. package/lib/entity/AcDbCurve.js.map +1 -0
  152. package/lib/entity/AcDbEllipse.d.ts +207 -0
  153. package/lib/entity/AcDbEllipse.d.ts.map +1 -0
  154. package/lib/entity/AcDbEllipse.js +272 -0
  155. package/lib/entity/AcDbEllipse.js.map +1 -0
  156. package/lib/entity/AcDbEntity.d.ts +385 -0
  157. package/lib/entity/AcDbEntity.d.ts.map +1 -0
  158. package/lib/entity/AcDbEntity.js +561 -0
  159. package/lib/entity/AcDbEntity.js.map +1 -0
  160. package/lib/entity/AcDbFace.d.ts +151 -0
  161. package/lib/entity/AcDbFace.d.ts.map +1 -0
  162. package/lib/entity/AcDbFace.js +224 -0
  163. package/lib/entity/AcDbFace.js.map +1 -0
  164. package/lib/entity/AcDbHatch.d.ts +174 -0
  165. package/lib/entity/AcDbHatch.d.ts.map +1 -0
  166. package/lib/entity/AcDbHatch.js +250 -0
  167. package/lib/entity/AcDbHatch.js.map +1 -0
  168. package/lib/entity/AcDbLeader.d.ts +243 -0
  169. package/lib/entity/AcDbLeader.d.ts.map +1 -0
  170. package/lib/entity/AcDbLeader.js +358 -0
  171. package/lib/entity/AcDbLeader.js.map +1 -0
  172. package/lib/entity/AcDbLine.d.ts +198 -0
  173. package/lib/entity/AcDbLine.d.ts.map +1 -0
  174. package/lib/entity/AcDbLine.js +300 -0
  175. package/lib/entity/AcDbLine.js.map +1 -0
  176. package/lib/entity/AcDbMText.d.ts +248 -0
  177. package/lib/entity/AcDbMText.d.ts.map +1 -0
  178. package/lib/entity/AcDbMText.js +414 -0
  179. package/lib/entity/AcDbMText.js.map +1 -0
  180. package/lib/entity/AcDbPoint.d.ts +113 -0
  181. package/lib/entity/AcDbPoint.d.ts.map +1 -0
  182. package/lib/entity/AcDbPoint.js +155 -0
  183. package/lib/entity/AcDbPoint.js.map +1 -0
  184. package/lib/entity/AcDbPolyline.d.ts +221 -0
  185. package/lib/entity/AcDbPolyline.d.ts.map +1 -0
  186. package/lib/entity/AcDbPolyline.js +301 -0
  187. package/lib/entity/AcDbPolyline.js.map +1 -0
  188. package/lib/entity/AcDbRasterImage.d.ts +216 -0
  189. package/lib/entity/AcDbRasterImage.d.ts.map +1 -0
  190. package/lib/entity/AcDbRasterImage.js +451 -0
  191. package/lib/entity/AcDbRasterImage.js.map +1 -0
  192. package/lib/entity/AcDbRay.d.ts +150 -0
  193. package/lib/entity/AcDbRay.d.ts.map +1 -0
  194. package/lib/entity/AcDbRay.js +208 -0
  195. package/lib/entity/AcDbRay.js.map +1 -0
  196. package/lib/entity/AcDbSpline.d.ts +135 -0
  197. package/lib/entity/AcDbSpline.d.ts.map +1 -0
  198. package/lib/entity/AcDbSpline.js +142 -0
  199. package/lib/entity/AcDbSpline.js.map +1 -0
  200. package/lib/entity/AcDbTable.d.ts +260 -0
  201. package/lib/entity/AcDbTable.d.ts.map +1 -0
  202. package/lib/entity/AcDbTable.js +452 -0
  203. package/lib/entity/AcDbTable.js.map +1 -0
  204. package/lib/entity/AcDbText.d.ts +388 -0
  205. package/lib/entity/AcDbText.d.ts.map +1 -0
  206. package/lib/entity/AcDbText.js +523 -0
  207. package/lib/entity/AcDbText.js.map +1 -0
  208. package/lib/entity/AcDbTrace.d.ts +193 -0
  209. package/lib/entity/AcDbTrace.d.ts.map +1 -0
  210. package/lib/entity/AcDbTrace.js +271 -0
  211. package/lib/entity/AcDbTrace.js.map +1 -0
  212. package/lib/entity/AcDbViewport.d.ts +173 -0
  213. package/lib/entity/AcDbViewport.d.ts.map +1 -0
  214. package/lib/entity/AcDbViewport.js +295 -0
  215. package/lib/entity/AcDbViewport.js.map +1 -0
  216. package/lib/entity/AcDbWipeout.d.ts +39 -0
  217. package/lib/entity/AcDbWipeout.d.ts.map +1 -0
  218. package/lib/entity/AcDbWipeout.js +70 -0
  219. package/lib/entity/AcDbWipeout.js.map +1 -0
  220. package/lib/entity/AcDbXline.d.ts +151 -0
  221. package/lib/entity/AcDbXline.d.ts.map +1 -0
  222. package/lib/entity/AcDbXline.js +209 -0
  223. package/lib/entity/AcDbXline.js.map +1 -0
  224. package/lib/entity/dimension/AcDb3PointAngularDimension.d.ts +92 -0
  225. package/lib/entity/dimension/AcDb3PointAngularDimension.d.ts.map +1 -0
  226. package/lib/entity/dimension/AcDb3PointAngularDimension.js +157 -0
  227. package/lib/entity/dimension/AcDb3PointAngularDimension.js.map +1 -0
  228. package/lib/entity/dimension/AcDbAlignedDimension.d.ts +220 -0
  229. package/lib/entity/dimension/AcDbAlignedDimension.d.ts.map +1 -0
  230. package/lib/entity/dimension/AcDbAlignedDimension.js +341 -0
  231. package/lib/entity/dimension/AcDbAlignedDimension.js.map +1 -0
  232. package/lib/entity/dimension/AcDbArcDimension.d.ts +94 -0
  233. package/lib/entity/dimension/AcDbArcDimension.d.ts.map +1 -0
  234. package/lib/entity/dimension/AcDbArcDimension.js +159 -0
  235. package/lib/entity/dimension/AcDbArcDimension.js.map +1 -0
  236. package/lib/entity/dimension/AcDbDiametricDimension.d.ts +145 -0
  237. package/lib/entity/dimension/AcDbDiametricDimension.d.ts.map +1 -0
  238. package/lib/entity/dimension/AcDbDiametricDimension.js +275 -0
  239. package/lib/entity/dimension/AcDbDiametricDimension.js.map +1 -0
  240. package/lib/entity/dimension/AcDbDimension.d.ts +257 -0
  241. package/lib/entity/dimension/AcDbDimension.d.ts.map +1 -0
  242. package/lib/entity/dimension/AcDbDimension.js +466 -0
  243. package/lib/entity/dimension/AcDbDimension.js.map +1 -0
  244. package/lib/entity/dimension/AcDbOrdinateDimension.d.ts +78 -0
  245. package/lib/entity/dimension/AcDbOrdinateDimension.d.ts.map +1 -0
  246. package/lib/entity/dimension/AcDbOrdinateDimension.js +133 -0
  247. package/lib/entity/dimension/AcDbOrdinateDimension.js.map +1 -0
  248. package/lib/entity/dimension/AcDbRadialDimension.d.ts +214 -0
  249. package/lib/entity/dimension/AcDbRadialDimension.d.ts.map +1 -0
  250. package/lib/entity/dimension/AcDbRadialDimension.js +288 -0
  251. package/lib/entity/dimension/AcDbRadialDimension.js.map +1 -0
  252. package/lib/entity/dimension/index.d.ts +8 -0
  253. package/lib/entity/dimension/index.d.ts.map +1 -0
  254. package/lib/entity/dimension/index.js +8 -0
  255. package/lib/entity/dimension/index.js.map +1 -0
  256. package/lib/entity/index.d.ts +24 -0
  257. package/lib/entity/index.d.ts.map +1 -0
  258. package/lib/entity/index.js +24 -0
  259. package/lib/entity/index.js.map +1 -0
  260. package/lib/index.d.ts +10 -0
  261. package/lib/index.d.ts.map +1 -0
  262. package/lib/index.js +10 -0
  263. package/lib/index.js.map +1 -0
  264. package/lib/misc/AcDbAngleUnits.d.ts +20 -0
  265. package/lib/misc/AcDbAngleUnits.d.ts.map +1 -0
  266. package/lib/misc/AcDbAngleUnits.js +21 -0
  267. package/lib/misc/AcDbAngleUnits.js.map +1 -0
  268. package/lib/misc/AcDbCodePage.d.ts +50 -0
  269. package/lib/misc/AcDbCodePage.d.ts.map +1 -0
  270. package/lib/misc/AcDbCodePage.js +100 -0
  271. package/lib/misc/AcDbCodePage.js.map +1 -0
  272. package/lib/misc/AcDbConstants.d.ts +24 -0
  273. package/lib/misc/AcDbConstants.d.ts.map +1 -0
  274. package/lib/misc/AcDbConstants.js +24 -0
  275. package/lib/misc/AcDbConstants.js.map +1 -0
  276. package/lib/misc/AcDbDimArrowType.d.ts +89 -0
  277. package/lib/misc/AcDbDimArrowType.d.ts.map +1 -0
  278. package/lib/misc/AcDbDimArrowType.js +90 -0
  279. package/lib/misc/AcDbDimArrowType.js.map +1 -0
  280. package/lib/misc/AcDbObjectIterator.d.ts +64 -0
  281. package/lib/misc/AcDbObjectIterator.d.ts.map +1 -0
  282. package/lib/misc/AcDbObjectIterator.js +84 -0
  283. package/lib/misc/AcDbObjectIterator.js.map +1 -0
  284. package/lib/misc/AcDbOsnapMode.d.ts +51 -0
  285. package/lib/misc/AcDbOsnapMode.d.ts.map +1 -0
  286. package/lib/misc/AcDbOsnapMode.js +52 -0
  287. package/lib/misc/AcDbOsnapMode.js.map +1 -0
  288. package/lib/misc/AcDbRenderingCache.d.ts +141 -0
  289. package/lib/misc/AcDbRenderingCache.d.ts.map +1 -0
  290. package/lib/misc/AcDbRenderingCache.js +239 -0
  291. package/lib/misc/AcDbRenderingCache.js.map +1 -0
  292. package/lib/misc/AcDbUnitsValue.d.ts +101 -0
  293. package/lib/misc/AcDbUnitsValue.d.ts.map +1 -0
  294. package/lib/misc/AcDbUnitsValue.js +121 -0
  295. package/lib/misc/AcDbUnitsValue.js.map +1 -0
  296. package/lib/misc/index.d.ts +9 -0
  297. package/lib/misc/index.d.ts.map +1 -0
  298. package/lib/misc/index.js +9 -0
  299. package/lib/misc/index.js.map +1 -0
  300. package/lib/object/AcDbDictionary.d.ts +178 -0
  301. package/lib/object/AcDbDictionary.d.ts.map +1 -0
  302. package/lib/object/AcDbDictionary.js +264 -0
  303. package/lib/object/AcDbDictionary.js.map +1 -0
  304. package/lib/object/AcDbRasterImageDef.d.ts +54 -0
  305. package/lib/object/AcDbRasterImageDef.d.ts.map +1 -0
  306. package/lib/object/AcDbRasterImageDef.js +82 -0
  307. package/lib/object/AcDbRasterImageDef.js.map +1 -0
  308. package/lib/object/index.d.ts +4 -0
  309. package/lib/object/index.d.ts.map +1 -0
  310. package/lib/object/index.js +4 -0
  311. package/lib/object/index.js.map +1 -0
  312. package/lib/object/layout/AcDbLayout.d.ts +190 -0
  313. package/lib/object/layout/AcDbLayout.d.ts.map +1 -0
  314. package/lib/object/layout/AcDbLayout.js +253 -0
  315. package/lib/object/layout/AcDbLayout.js.map +1 -0
  316. package/lib/object/layout/AcDbLayoutDictionary.d.ts +47 -0
  317. package/lib/object/layout/AcDbLayoutDictionary.d.ts.map +1 -0
  318. package/lib/object/layout/AcDbLayoutDictionary.js +122 -0
  319. package/lib/object/layout/AcDbLayoutDictionary.js.map +1 -0
  320. package/lib/object/layout/AcDbLayoutManager.d.ts +188 -0
  321. package/lib/object/layout/AcDbLayoutManager.d.ts.map +1 -0
  322. package/lib/object/layout/AcDbLayoutManager.js +245 -0
  323. package/lib/object/layout/AcDbLayoutManager.js.map +1 -0
  324. package/lib/object/layout/index.d.ts +4 -0
  325. package/lib/object/layout/index.d.ts.map +1 -0
  326. package/lib/object/layout/index.js +4 -0
  327. package/lib/object/layout/index.js.map +1 -0
  328. package/package.json +4 -4
@@ -0,0 +1,358 @@
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, AcGeSpline3d } from '@mlightcad/geometry-engine';
17
+ import { AcDbCurve } from './AcDbCurve';
18
+ /**
19
+ * Defines the annotation type for leader entities.
20
+ */
21
+ export var AcDbLeaderAnnotationType;
22
+ (function (AcDbLeaderAnnotationType) {
23
+ /** Multiline text annotation */
24
+ AcDbLeaderAnnotationType[AcDbLeaderAnnotationType["MText"] = 0] = "MText";
25
+ /** Feature control frame annotation */
26
+ AcDbLeaderAnnotationType[AcDbLeaderAnnotationType["Fcf"] = 1] = "Fcf";
27
+ /** Block reference annotation */
28
+ AcDbLeaderAnnotationType[AcDbLeaderAnnotationType["BlockReference"] = 2] = "BlockReference";
29
+ /** No annotation */
30
+ AcDbLeaderAnnotationType[AcDbLeaderAnnotationType["NoAnnotation"] = 3] = "NoAnnotation";
31
+ })(AcDbLeaderAnnotationType || (AcDbLeaderAnnotationType = {}));
32
+ /**
33
+ * Represents a leader entity in AutoCAD.
34
+ *
35
+ * A leader is a dimension-like entity that consists of a line or spline with an arrowhead
36
+ * pointing to a specific object or location, and an annotation (text, block, or feature
37
+ * control frame) at the other end. Leaders are controlled by dimension variable settings
38
+ * and dimension styles.
39
+ *
40
+ * @example
41
+ * ```typescript
42
+ * // Create a leader entity
43
+ * const leader = new AcDbLeader();
44
+ * leader.appendVertex(new AcGePoint3d(0, 0, 0));
45
+ * leader.appendVertex(new AcGePoint3d(5, 5, 0));
46
+ * leader.appendVertex(new AcGePoint3d(10, 5, 0));
47
+ * leader.hasArrowHead = true;
48
+ * leader.hasHookLine = true;
49
+ * leader.annoType = AcDbLeaderAnnotationType.MText;
50
+ *
51
+ * // Access leader properties
52
+ * console.log(`Number of vertices: ${leader.numVertices}`);
53
+ * console.log(`Has arrow head: ${leader.hasArrowHead}`);
54
+ * console.log(`Has hook line: ${leader.hasHookLine}`);
55
+ * ```
56
+ */
57
+ var AcDbLeader = /** @class */ (function (_super) {
58
+ __extends(AcDbLeader, _super);
59
+ /**
60
+ * Creates a new leader entity.
61
+ *
62
+ * This constructor initializes a leader with default values.
63
+ * The leader is not spline-fit, has no arrowhead, no hook line,
64
+ * and no annotation type.
65
+ *
66
+ * @example
67
+ * ```typescript
68
+ * const leader = new AcDbLeader();
69
+ * leader.appendVertex(new AcGePoint3d(0, 0, 0));
70
+ * leader.appendVertex(new AcGePoint3d(5, 5, 0));
71
+ * ```
72
+ */
73
+ function AcDbLeader() {
74
+ var _this = _super.call(this) || this;
75
+ _this._isSplined = false;
76
+ _this._updated = false;
77
+ _this._hasArrowHead = false;
78
+ _this._vertices = [];
79
+ _this._dimensionStyle = '';
80
+ _this._hasHookLine = false;
81
+ _this._annoType = AcDbLeaderAnnotationType.NoAnnotation;
82
+ return _this;
83
+ }
84
+ Object.defineProperty(AcDbLeader.prototype, "isSplined", {
85
+ /**
86
+ * Gets whether this leader is spline-fit.
87
+ *
88
+ * @returns True if the leader is spline-fit, false otherwise
89
+ *
90
+ * @example
91
+ * ```typescript
92
+ * const isSplined = leader.isSplined;
93
+ * console.log(`Leader is spline-fit: ${isSplined}`);
94
+ * ```
95
+ */
96
+ get: function () {
97
+ return this._isSplined;
98
+ },
99
+ /**
100
+ * Sets whether this leader is spline-fit.
101
+ *
102
+ * @param value - True to make the leader spline-fit, false otherwise
103
+ *
104
+ * @example
105
+ * ```typescript
106
+ * leader.isSplined = true;
107
+ * ```
108
+ */
109
+ set: function (value) {
110
+ this._isSplined = value;
111
+ },
112
+ enumerable: false,
113
+ configurable: true
114
+ });
115
+ Object.defineProperty(AcDbLeader.prototype, "hasArrowHead", {
116
+ /**
117
+ * Gets whether this leader has an arrowhead.
118
+ *
119
+ * @returns True if the leader has an arrowhead, false otherwise
120
+ *
121
+ * @example
122
+ * ```typescript
123
+ * const hasArrowHead = leader.hasArrowHead;
124
+ * console.log(`Leader has arrowhead: ${hasArrowHead}`);
125
+ * ```
126
+ */
127
+ get: function () {
128
+ return this._hasArrowHead;
129
+ },
130
+ /**
131
+ * Sets whether this leader has an arrowhead.
132
+ *
133
+ * @param value - True to enable arrowhead, false to disable
134
+ *
135
+ * @example
136
+ * ```typescript
137
+ * leader.hasArrowHead = true;
138
+ * ```
139
+ */
140
+ set: function (value) {
141
+ this._hasArrowHead = value;
142
+ },
143
+ enumerable: false,
144
+ configurable: true
145
+ });
146
+ Object.defineProperty(AcDbLeader.prototype, "hasHookLine", {
147
+ /**
148
+ * Gets whether this leader has a hook line.
149
+ *
150
+ * The "hookline" is the small horizontal line at the end of the leader line
151
+ * just before the annotation.
152
+ *
153
+ * @returns True if the leader has a hook line, false otherwise
154
+ *
155
+ * @example
156
+ * ```typescript
157
+ * const hasHookLine = leader.hasHookLine;
158
+ * console.log(`Leader has hook line: ${hasHookLine}`);
159
+ * ```
160
+ */
161
+ get: function () {
162
+ return this._hasHookLine;
163
+ },
164
+ /**
165
+ * Sets whether this leader has a hook line.
166
+ *
167
+ * @param value - True to enable hook line, false to disable
168
+ *
169
+ * @example
170
+ * ```typescript
171
+ * leader.hasHookLine = true;
172
+ * ```
173
+ */
174
+ set: function (value) {
175
+ this._hasHookLine = value;
176
+ },
177
+ enumerable: false,
178
+ configurable: true
179
+ });
180
+ Object.defineProperty(AcDbLeader.prototype, "numVertices", {
181
+ /**
182
+ * Gets the number of vertices in the leader's vertex list.
183
+ *
184
+ * @returns The number of vertices
185
+ *
186
+ * @example
187
+ * ```typescript
188
+ * const numVertices = leader.numVertices;
189
+ * console.log(`Number of vertices: ${numVertices}`);
190
+ * ```
191
+ */
192
+ get: function () {
193
+ return this._vertices.length;
194
+ },
195
+ enumerable: false,
196
+ configurable: true
197
+ });
198
+ Object.defineProperty(AcDbLeader.prototype, "dimensionStyle", {
199
+ /**
200
+ * Gets the dimension style applied to this leader.
201
+ *
202
+ * @returns The dimension style name
203
+ *
204
+ * @example
205
+ * ```typescript
206
+ * const dimensionStyle = leader.dimensionStyle;
207
+ * console.log(`Dimension style: ${dimensionStyle}`);
208
+ * ```
209
+ */
210
+ get: function () {
211
+ return this._dimensionStyle;
212
+ },
213
+ /**
214
+ * Sets the dimension style applied to this leader.
215
+ *
216
+ * @param value - The new dimension style name
217
+ *
218
+ * @example
219
+ * ```typescript
220
+ * leader.dimensionStyle = "Standard";
221
+ * ```
222
+ */
223
+ set: function (value) {
224
+ this._dimensionStyle = value;
225
+ },
226
+ enumerable: false,
227
+ configurable: true
228
+ });
229
+ Object.defineProperty(AcDbLeader.prototype, "annoType", {
230
+ /**
231
+ * Gets the leader's annotation type.
232
+ *
233
+ * @returns The annotation type
234
+ *
235
+ * @example
236
+ * ```typescript
237
+ * const annoType = leader.annoType;
238
+ * console.log(`Annotation type: ${annoType}`);
239
+ * ```
240
+ */
241
+ get: function () {
242
+ return this._annoType;
243
+ },
244
+ /**
245
+ * Sets the leader's annotation type.
246
+ *
247
+ * @param value - The new annotation type
248
+ *
249
+ * @example
250
+ * ```typescript
251
+ * leader.annoType = AcDbLeaderAnnotationType.MText;
252
+ * ```
253
+ */
254
+ set: function (value) {
255
+ this._annoType = value;
256
+ },
257
+ enumerable: false,
258
+ configurable: true
259
+ });
260
+ /**
261
+ * Appends vertex to the end of the vertex list for this leader. If vertex is not in the plane of the
262
+ * leader, then it will be projected parallel the leader's normal onto the leader's plane and the
263
+ * projection will be appended to the leader's vertex list. If the new vertex is too close to the one
264
+ * next to it (that is, within 1.e-10 for X, Y, and Z), the new vertex will not be appended.
265
+ * @param point Input point (in WCS coordinates) to add to the vertex list
266
+ */
267
+ AcDbLeader.prototype.appendVertex = function (point) {
268
+ this._vertices.push(new AcGePoint3d().copy(point));
269
+ this._updated = true;
270
+ };
271
+ /**
272
+ * Reset the vertex at index to the point point projected (along the plane normal) onto the plane
273
+ * containing the leader. It doesn't reset the vertex if that would cause one of the segments to
274
+ * become zero length (within 1e-10).
275
+ * @param index Input index number (0 based) of the vertex to change
276
+ * @param point Input new point value (in WCS) to use
277
+ */
278
+ AcDbLeader.prototype.setVertexAt = function (index, point) {
279
+ if (index < 0 || index >= this._vertices.length) {
280
+ // TODO: Project the point onto the plane containing the leader
281
+ this._vertices[index].copy(point);
282
+ this._updated = true;
283
+ }
284
+ throw new Error('The vertex index is out of range!');
285
+ };
286
+ /**
287
+ * Get the point that is the vertex at the location index (0 based) in this leader's vertex array.
288
+ * @param index Input index number (0 based) of the vertex desired
289
+ */
290
+ AcDbLeader.prototype.vertexAt = function (index) {
291
+ if (index < 0 || index >= this._vertices.length) {
292
+ this._vertices[index];
293
+ }
294
+ throw new Error('The vertex index is out of range!');
295
+ };
296
+ Object.defineProperty(AcDbLeader.prototype, "geometricExtents", {
297
+ /**
298
+ * @inheritdoc
299
+ */
300
+ get: function () {
301
+ if (this._isSplined && this.splineGeo) {
302
+ return this.splineGeo.calculateBoundingBox();
303
+ }
304
+ else {
305
+ var box = new AcGeBox3d();
306
+ return box.setFromPoints(this._vertices);
307
+ }
308
+ },
309
+ enumerable: false,
310
+ configurable: true
311
+ });
312
+ Object.defineProperty(AcDbLeader.prototype, "closed", {
313
+ /**
314
+ * @inheritdoc
315
+ */
316
+ get: function () {
317
+ return false;
318
+ },
319
+ set: function (_value) {
320
+ // TODO: Not sure whether the leader really support setting value of property 'closed'
321
+ },
322
+ enumerable: false,
323
+ configurable: true
324
+ });
325
+ /**
326
+ * @inheritdoc
327
+ */
328
+ AcDbLeader.prototype.draw = function (renderer) {
329
+ if (this.isSplined && this.splineGeo) {
330
+ var points = this.splineGeo.getPoints(100);
331
+ return renderer.lines(points, this.lineStyle);
332
+ }
333
+ else {
334
+ return renderer.lines(this._vertices, this.lineStyle);
335
+ }
336
+ };
337
+ Object.defineProperty(AcDbLeader.prototype, "splineGeo", {
338
+ get: function () {
339
+ this.createSplineIfNeeded();
340
+ return this._splineGeo;
341
+ },
342
+ enumerable: false,
343
+ configurable: true
344
+ });
345
+ AcDbLeader.prototype.createSplineIfNeeded = function () {
346
+ if (this.isSplined &&
347
+ this.numVertices >= 2 &&
348
+ (this._splineGeo == null || this._updated)) {
349
+ this._splineGeo = new AcGeSpline3d(this._vertices, 'Uniform');
350
+ this._updated = false;
351
+ }
352
+ };
353
+ /** The entity type name */
354
+ AcDbLeader.typeName = 'Leader';
355
+ return AcDbLeader;
356
+ }(AcDbCurve));
357
+ export { AcDbLeader };
358
+ //# sourceMappingURL=AcDbLeader.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcDbLeader.js","sourceRoot":"","sources":["../../src/entity/AcDbLeader.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EACL,SAAS,EACT,WAAW,EAEX,YAAY,EACb,MAAM,4BAA4B,CAAA;AAGnC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAEvC;;GAEG;AACH,MAAM,CAAN,IAAY,wBASX;AATD,WAAY,wBAAwB;IAClC,gCAAgC;IAChC,yEAAS,CAAA;IACT,uCAAuC;IACvC,qEAAO,CAAA;IACP,iCAAiC;IACjC,2FAAkB,CAAA;IAClB,oBAAoB;IACpB,uFAAgB,CAAA;AAClB,CAAC,EATW,wBAAwB,KAAxB,wBAAwB,QASnC;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH;IAAgC,8BAAS;IAqBvC;;;;;;;;;;;;;OAaG;IACH;QACE,YAAA,MAAK,WAAE,SAAA;QACP,KAAI,CAAC,UAAU,GAAG,KAAK,CAAA;QACvB,KAAI,CAAC,QAAQ,GAAG,KAAK,CAAA;QACrB,KAAI,CAAC,aAAa,GAAG,KAAK,CAAA;QAC1B,KAAI,CAAC,SAAS,GAAG,EAAE,CAAA;QACnB,KAAI,CAAC,eAAe,GAAG,EAAE,CAAA;QACzB,KAAI,CAAC,YAAY,GAAG,KAAK,CAAA;QACzB,KAAI,CAAC,SAAS,GAAG,wBAAwB,CAAC,YAAY,CAAA;;IACxD,CAAC;IAaD,sBAAI,iCAAS;QAXb;;;;;;;;;;WAUG;aACH;YACE,OAAO,IAAI,CAAC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AM,GAAG,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,GAAG,CAAC,CAAA;YAC5C,OAAO,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,IAAI,CAAC,SAAS,CAAC,CAAA;QAC/C,CAAC;aAAM,CAAC;YACN,OAAO,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC,CAAA;QACvD,CAAC;IACH,CAAC;IAED,sBAAY,iCAAS;aAArB;YACE,IAAI,CAAC,oBAAoB,EAAE,CAAA;YAC3B,OAAO,IAAI,CAAC,UAAU,CAAA;QACxB,CAAC;;;OAAA;IAEO,yCAAoB,GAA5B;QACE,IACE,IAAI,CAAC,SAAS;YACd,IAAI,CAAC,WAAW,IAAI,CAAC;YACrB,CAAC,IAAI,CAAC,UAAU,IAAI,IAAI,IAAI,IAAI,CAAC,QAAQ,CAAC,EAC1C,CAAC;YACD,IAAI,CAAC,UAAU,GAAG,IAAI,YAAY,CAAC,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC,CAAA;YAC7D,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAA;QACvB,CAAC;IACH,CAAC;IAvSD,2BAA2B;IACX,mBAAQ,GAAW,QAAQ,CAAA;IAuS7C,iBAAC;CAAA,AAzSD,CAAgC,SAAS,GAySxC;SAzSY,UAAU"}
@@ -0,0 +1,198 @@
1
+ import { AcGeBox3d, AcGeMatrix3d, AcGePoint3d, AcGePoint3dLike } from '@mlightcad/geometry-engine';
2
+ import { AcGiRenderer } from '@mlightcad/graphic-interface';
3
+ import { AcDbOsnapMode } from '../misc/AcDbOsnapMode';
4
+ import { AcDbCurve } from './AcDbCurve';
5
+ /**
6
+ * Represents a line entity in AutoCAD.
7
+ *
8
+ * A line is a 3D geometric object defined by its start point and end point.
9
+ * Lines are fundamental drawing entities that can be used to create straight
10
+ * line segments in 2D or 3D space.
11
+ *
12
+ * @example
13
+ * ```typescript
14
+ * // Create a line from point (0,0,0) to point (10,10,0)
15
+ * const line = new AcDbLine(
16
+ * new AcGePoint3d(0, 0, 0),
17
+ * new AcGePoint3d(10, 10, 0)
18
+ * );
19
+ *
20
+ * // Access line properties
21
+ * console.log(`Start point: ${line.startPoint}`);
22
+ * console.log(`End point: ${line.endPoint}`);
23
+ * console.log(`Mid point: ${line.midPoint}`);
24
+ * ```
25
+ */
26
+ export declare class AcDbLine extends AcDbCurve {
27
+ /** The entity type name */
28
+ static typeName: string;
29
+ /** The underlying geometric line object */
30
+ private _geo;
31
+ /**
32
+ * Creates a new line entity.
33
+ *
34
+ * This constructor initializes the line object with the specified start and end points.
35
+ * Both points must be in World Coordinate System (WCS) coordinates.
36
+ *
37
+ * @param start - The starting point of the line in WCS coordinates
38
+ * @param end - The ending point of the line in WCS coordinates
39
+ *
40
+ * @example
41
+ * ```typescript
42
+ * const line = new AcDbLine(
43
+ * new AcGePoint3d(0, 0, 0),
44
+ * new AcGePoint3d(100, 50, 0)
45
+ * );
46
+ * ```
47
+ */
48
+ constructor(start: AcGePoint3dLike, end: AcGePoint3dLike);
49
+ /**
50
+ * Gets the starting point of this line.
51
+ *
52
+ * @returns The starting point as a 3D point
53
+ *
54
+ * @example
55
+ * ```typescript
56
+ * const startPoint = line.startPoint;
57
+ * console.log(`Line starts at: ${startPoint.x}, ${startPoint.y}, ${startPoint.z}`);
58
+ * ```
59
+ */
60
+ get startPoint(): AcGePoint3d;
61
+ /**
62
+ * Sets the starting point of this line.
63
+ *
64
+ * @param value - The new starting point
65
+ *
66
+ * @example
67
+ * ```typescript
68
+ * line.startPoint = new AcGePoint3d(5, 5, 0);
69
+ * ```
70
+ */
71
+ set startPoint(value: AcGePoint3dLike);
72
+ /**
73
+ * Gets the ending point of this line.
74
+ *
75
+ * @returns The ending point as a 3D point
76
+ *
77
+ * @example
78
+ * ```typescript
79
+ * const endPoint = line.endPoint;
80
+ * console.log(`Line ends at: ${endPoint.x}, ${endPoint.y}, ${endPoint.z}`);
81
+ * ```
82
+ */
83
+ get endPoint(): AcGePoint3d;
84
+ /**
85
+ * Sets the ending point of this line.
86
+ *
87
+ * @param value - The new ending point
88
+ *
89
+ * @example
90
+ * ```typescript
91
+ * line.endPoint = new AcGePoint3d(15, 15, 0);
92
+ * ```
93
+ */
94
+ set endPoint(value: AcGePoint3dLike);
95
+ /**
96
+ * Gets the middle point of this line.
97
+ *
98
+ * The middle point is calculated as the midpoint between the start and end points.
99
+ *
100
+ * @returns The middle point as a 3D point
101
+ *
102
+ * @example
103
+ * ```typescript
104
+ * const midPoint = line.midPoint;
105
+ * console.log(`Line midpoint: ${midPoint.x}, ${midPoint.y}, ${midPoint.z}`);
106
+ * ```
107
+ */
108
+ get midPoint(): AcGePoint3d;
109
+ /**
110
+ * Gets the geometric extents (bounding box) of this line.
111
+ *
112
+ * @returns The bounding box that encompasses the entire line
113
+ *
114
+ * @example
115
+ * ```typescript
116
+ * const extents = line.geometricExtents;
117
+ * console.log(`Line bounds: ${extents.minPoint} to ${extents.maxPoint}`);
118
+ * ```
119
+ */
120
+ get geometricExtents(): AcGeBox3d;
121
+ /**
122
+ * Gets whether this line is closed.
123
+ *
124
+ * Lines are always open entities, so this always returns false.
125
+ *
126
+ * @returns Always false for lines
127
+ */
128
+ get closed(): boolean;
129
+ /**
130
+ * Gets the grip points for this line.
131
+ *
132
+ * Grip points are control points that can be used to modify the line.
133
+ * For a line, the grip points are the midpoint, start point, and end point.
134
+ *
135
+ * @returns Array of grip points (midpoint, start point, end point)
136
+ *
137
+ * @example
138
+ * ```typescript
139
+ * const gripPoints = line.subGetGripPoints();
140
+ * // gripPoints contains: [midPoint, startPoint, endPoint]
141
+ * ```
142
+ */
143
+ subGetGripPoints(): AcGePoint3d[];
144
+ /**
145
+ * Gets the object snap points for this line.
146
+ *
147
+ * Object snap points are precise points that can be used for positioning
148
+ * when drawing or editing. This method provides snap points based on the
149
+ * specified snap mode.
150
+ *
151
+ * @param osnapMode - The object snap mode (Endpoint, Midpoint, Nearest, Perpendicular, Tangent)
152
+ * @param _gsSelectionMark - The selection mark (unused)
153
+ * @param pickPoint - The point where the user picked
154
+ * @param _lastPoint - The last point (unused)
155
+ * @param snapPoints - Array to populate with snap points
156
+ *
157
+ * @example
158
+ * ```typescript
159
+ * const snapPoints: AcGePoint3d[] = [];
160
+ * line.subGetOsnapPoints(AcDbOsnapMode.EndPoint, 0, pickPoint, lastPoint, snapPoints);
161
+ * // snapPoints now contains the start and end points
162
+ * ```
163
+ */
164
+ subGetOsnapPoints(osnapMode: AcDbOsnapMode, _gsSelectionMark: number, pickPoint: AcGePoint3d, _lastPoint: AcGePoint3d, snapPoints: AcGePoint3d[]): void;
165
+ /**
166
+ * Transforms this line by the specified matrix.
167
+ *
168
+ * This method applies a geometric transformation to the line, updating
169
+ * both the start and end points according to the transformation matrix.
170
+ *
171
+ * @param matrix - The transformation matrix to apply
172
+ * @returns This line after transformation
173
+ *
174
+ * @example
175
+ * ```typescript
176
+ * const translationMatrix = AcGeMatrix3d.translation(10, 0, 0);
177
+ * line.transformBy(translationMatrix);
178
+ * // Line is now translated 10 units in the X direction
179
+ * ```
180
+ */
181
+ transformBy(matrix: AcGeMatrix3d): this;
182
+ /**
183
+ * Draws this line using the specified renderer.
184
+ *
185
+ * This method renders the line as a series of connected line segments
186
+ * using the line's current style properties.
187
+ *
188
+ * @param renderer - The renderer to use for drawing
189
+ * @returns The rendered line entity, or undefined if drawing failed
190
+ *
191
+ * @example
192
+ * ```typescript
193
+ * const renderedLine = line.draw(renderer);
194
+ * ```
195
+ */
196
+ draw(renderer: AcGiRenderer): import("@mlightcad/graphic-interface").AcGiEntity;
197
+ }
198
+ //# sourceMappingURL=AcDbLine.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcDbLine.d.ts","sourceRoot":"","sources":["../../src/entity/AcDbLine.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EAET,YAAY,EACZ,WAAW,EACX,eAAe,EAChB,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAE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