@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,253 @@
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 { AcGeBox2d, AcGeBox3d } from '@mlightcad/geometry-engine';
17
+ import { AcDbObject } from '../../base';
18
+ /**
19
+ * Represents the stored characteristics of each paperspace layout.
20
+ *
21
+ * Layout objects are stored in an AcDbDictionary object with an ACAD_LAYOUT key,
22
+ * allowing easy iteration and indexing. Each layout represents a paperspace
23
+ * configuration that can be used for printing or plotting.
24
+ *
25
+ * @example
26
+ * ```typescript
27
+ * const layout = new AcDbLayout();
28
+ * layout.layoutName = 'A4 Landscape';
29
+ * layout.tabOrder = 1;
30
+ * layout.limits = new AcGeBox2d();
31
+ * ```
32
+ */
33
+ var AcDbLayout = /** @class */ (function (_super) {
34
+ __extends(AcDbLayout, _super);
35
+ /**
36
+ * Creates a new AcDbLayout instance.
37
+ *
38
+ * @example
39
+ * ```typescript
40
+ * const layout = new AcDbLayout();
41
+ * ```
42
+ */
43
+ function AcDbLayout() {
44
+ var _this = _super.call(this) || this;
45
+ _this._tabOrder = -1;
46
+ _this._tabSelected = false;
47
+ _this._blockTableRecordId = '';
48
+ _this._layoutName = '';
49
+ _this._limits = new AcGeBox2d();
50
+ _this._extents = new AcGeBox3d();
51
+ return _this;
52
+ }
53
+ Object.defineProperty(AcDbLayout.prototype, "layoutName", {
54
+ /**
55
+ * Gets the user-friendly layout name that is displayed in the tab control.
56
+ *
57
+ * Currently there is no restriction on the name except that the length
58
+ * is limited to 256 characters.
59
+ *
60
+ * @returns The layout name
61
+ *
62
+ * @example
63
+ * ```typescript
64
+ * const name = layout.layoutName;
65
+ * console.log('Layout name:', name);
66
+ * ```
67
+ */
68
+ get: function () {
69
+ return this._layoutName;
70
+ },
71
+ /**
72
+ * Sets the user-friendly layout name that is displayed in the tab control.
73
+ *
74
+ * @param value - The new layout name (limited to 256 characters)
75
+ *
76
+ * @example
77
+ * ```typescript
78
+ * layout.layoutName = 'A4 Landscape';
79
+ * ```
80
+ */
81
+ set: function (value) {
82
+ this._layoutName = value.length > 256 ? value.slice(0, 256) : value;
83
+ },
84
+ enumerable: false,
85
+ configurable: true
86
+ });
87
+ Object.defineProperty(AcDbLayout.prototype, "tabOrder", {
88
+ /**
89
+ * Gets the tab order field, which controls the order in which layouts are displayed.
90
+ *
91
+ * The tab order should be unique and sequential for each layout in the database.
92
+ *
93
+ * @returns The tab order value
94
+ *
95
+ * @example
96
+ * ```typescript
97
+ * const order = layout.tabOrder;
98
+ * ```
99
+ */
100
+ get: function () {
101
+ return this._tabOrder;
102
+ },
103
+ /**
104
+ * Sets the tab order field, which controls the order in which layouts are displayed.
105
+ *
106
+ * @param value - The new tab order value
107
+ *
108
+ * @example
109
+ * ```typescript
110
+ * layout.tabOrder = 1;
111
+ * ```
112
+ */
113
+ set: function (value) {
114
+ this._tabOrder = value;
115
+ },
116
+ enumerable: false,
117
+ configurable: true
118
+ });
119
+ Object.defineProperty(AcDbLayout.prototype, "tabSelected", {
120
+ /**
121
+ * Gets whether the layout tab is included in the selection set for operations.
122
+ *
123
+ * This flag indicates whether the layout tab is included in the selection set
124
+ * for operations that affect multiple tabs. The user can perform multiple
125
+ * selection via the user interface using shift-click.
126
+ *
127
+ * @returns True if the tab is selected, false otherwise
128
+ *
129
+ * @example
130
+ * ```typescript
131
+ * const isSelected = layout.tabSelected;
132
+ * ```
133
+ */
134
+ get: function () {
135
+ return this._tabSelected;
136
+ },
137
+ /**
138
+ * Sets whether the layout tab is included in the selection set for operations.
139
+ *
140
+ * @param value - True to select the tab, false to deselect it
141
+ *
142
+ * @example
143
+ * ```typescript
144
+ * layout.tabSelected = true;
145
+ * ```
146
+ */
147
+ set: function (value) {
148
+ this._tabSelected = value;
149
+ },
150
+ enumerable: false,
151
+ configurable: true
152
+ });
153
+ Object.defineProperty(AcDbLayout.prototype, "blockTableRecordId", {
154
+ /**
155
+ * Gets the associated block table record ID of this layout.
156
+ *
157
+ * @returns The block table record ID
158
+ *
159
+ * @example
160
+ * ```typescript
161
+ * const blockId = layout.blockTableRecordId;
162
+ * ```
163
+ */
164
+ get: function () {
165
+ return this._blockTableRecordId;
166
+ },
167
+ /**
168
+ * Sets the associated block table record ID of this layout.
169
+ *
170
+ * @param value - The new block table record ID
171
+ *
172
+ * @example
173
+ * ```typescript
174
+ * layout.blockTableRecordId = 'some-block-id';
175
+ * ```
176
+ */
177
+ set: function (value) {
178
+ this._blockTableRecordId = value;
179
+ },
180
+ enumerable: false,
181
+ configurable: true
182
+ });
183
+ Object.defineProperty(AcDbLayout.prototype, "limits", {
184
+ /**
185
+ * Gets the limits for this layout.
186
+ *
187
+ * Limits are defined by LIMMAX while this layout is current.
188
+ *
189
+ * @returns The layout limits as a 2D bounding box
190
+ *
191
+ * @example
192
+ * ```typescript
193
+ * const limits = layout.limits;
194
+ * console.log('Layout limits:', limits);
195
+ * ```
196
+ */
197
+ get: function () {
198
+ return this._limits;
199
+ },
200
+ /**
201
+ * Sets the limits for this layout.
202
+ *
203
+ * @param value - The new layout limits as a 2D bounding box
204
+ *
205
+ * @example
206
+ * ```typescript
207
+ * layout.limits = new AcGeBox2d();
208
+ * ```
209
+ */
210
+ set: function (value) {
211
+ this._limits.copy(value);
212
+ },
213
+ enumerable: false,
214
+ configurable: true
215
+ });
216
+ Object.defineProperty(AcDbLayout.prototype, "extents", {
217
+ /**
218
+ * Gets the current extents setting of the layout.
219
+ *
220
+ * This value may not be the actual extents of the geometry in the layout,
221
+ * it is just the value last saved in the layout.
222
+ *
223
+ * @returns The layout extents as a 3D bounding box
224
+ *
225
+ * @example
226
+ * ```typescript
227
+ * const extents = layout.extents;
228
+ * console.log('Layout extents:', extents);
229
+ * ```
230
+ */
231
+ get: function () {
232
+ return this._extents;
233
+ },
234
+ /**
235
+ * Sets the current extents setting of the layout.
236
+ *
237
+ * @param value - The new layout extents as a 3D bounding box
238
+ *
239
+ * @example
240
+ * ```typescript
241
+ * layout.extents = new AcGeBox3d();
242
+ * ```
243
+ */
244
+ set: function (value) {
245
+ this._extents.copy(value);
246
+ },
247
+ enumerable: false,
248
+ configurable: true
249
+ });
250
+ return AcDbLayout;
251
+ }(AcDbObject));
252
+ export { AcDbLayout };
253
+ //# sourceMappingURL=AcDbLayout.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcDbLayout.js","sourceRoot":"","sources":["../../../src/object/layout/AcDbLayout.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAA;AAEjE,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AAEvC;;;;;;;;;;;;;;GAcG;AACH;IAAgC,8BAAU;IAcxC;;;;;;;OAOG;IACH;QACE,YAAA,MAAK,WAAE,SAAA;QACP,KAAI,CAAC,SAAS,GAAG,CAAC,CAAC,CAAA;QACnB,KAAI,CAAC,YAAY,GAAG,KAAK,CAAA;QACzB,KAAI,CAAC,mBAAmB,GAAG,EAAE,CAAA;QAC7B,KAAI,CAAC,WAAW,GAAG,EAAE,CAAA;QACrB,KAAI,CAAC,OAAO,GAAG,IAAI,SAAS,EAAE,CAAA;QAC9B,KAAI,CAAC,QAAQ,GAAG,IAAI,SAAS,EAAE,CAAA;;IACjC,CAAC;IAgBD,sBAAI,kCAAU;QAdd;;;;;;;;;;;;;WAaG;aACH;YACE,OAAO,IAAI,CAAC,WAAW,CAAA;QACzB,CAAC;QAED;;;;;;;;;WASG;aACH,UAAe,KAAa;YAC1B,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC,MAAM,GAAG,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAA;QACrE,CAAC;;;OAdA;IA4BD,sBAAI,gCAAQ;QAZZ;;;;;;;;;;;WAWG;aACH;YACE,OAAO,IAAI,CAAC,SAAS,CAAA;QACvB,CAAC;QAED;;;;;;;;;WASG;aACH,UAAa,KAAa;YACxB,IAAI,CAAC,SAAS,GAAG,KAAK,CAAA;QACxB,CAAC;;;OAdA;IA8BD,sBAAI,mCAAW;QAdf;;;;;;;;;;;;;WAaG;aACH;YACE,OAAO,IAAI,CAAC,YAAY,CAAA;QAC1B,CAAC;QAED;;;;;;;;;WASG;aACH,UAAgB,KAAc;YAC5B,IAAI,CAAC,YAAY,GAAG,KAAK,CAAA;QAC3B,CAAC;;;OAdA;IA0BD,sBAAI,0CAAkB;QAVtB;;;;;;;;;WASG;aACH;YACE,OAAO,IAAI,CAAC,mBAAmB,CAAA;QACjC,CAAC;QAED;;;;;;;;;WASG;aACH,UAAuB,KAAa;YAClC,IAAI,CAAC,mBAAmB,GAAG,KAAK,CAAA;QAClC,CAAC;;;OAdA;IA6BD,sBAAI,8BAAM;QAbV;;;;;;;;;;;;WAYG;aACH;YACE,OAAO,IAAI,CAAC,OAAO,CAAA;QACrB,CAAC;QAED;;;;;;;;;WASG;aACH,UAAW,KAAgB;YACzB,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;QAC1B,CAAC;;;OAdA;IA8BD,sBAAI,+BAAO;QAdX;;;;;;;;;;;;;WAaG;aACH;YACE,OAAO,IAAI,CAAC,QAAQ,CAAA;QACtB,CAAC;QAED;;;;;;;;;WASG;aACH,UAAY,KAAgB;YAC1B,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;QAC3B,CAAC;;;OAdA;IAeH,iBAAC;AAAD,CAAC,AAxND,CAAgC,UAAU,GAwNzC"}
@@ -0,0 +1,47 @@
1
+ import { AcDbObjectId } from '../../base';
2
+ import { AcDbDictionary } from '../AcDbDictionary';
3
+ import { AcDbLayout } from './AcDbLayout';
4
+ /**
5
+ * Dictionary for storing and managing AcDbLayout objects.
6
+ *
7
+ * This class extends AcDbDictionary to provide specialized functionality
8
+ * for managing layout objects, including searching by block table record ID
9
+ * and tracking the maximum tab order.
10
+ *
11
+ * @example
12
+ * ```typescript
13
+ * const layoutDict = new AcDbLayoutDictionary(database);
14
+ * const layout = layoutDict.getBtrIdAt('some-block-id');
15
+ * const maxOrder = layoutDict.maxTabOrder;
16
+ * ```
17
+ */
18
+ export declare class AcDbLayoutDictionary extends AcDbDictionary<AcDbLayout> {
19
+ /**
20
+ * Searches the dictionary for a layout associated with the specified block table record ID.
21
+ *
22
+ * @param id - The block table record ID to search for
23
+ * @returns The layout associated with the block table record ID, or undefined if not found
24
+ *
25
+ * @example
26
+ * ```typescript
27
+ * const layout = layoutDict.getBtrIdAt('some-block-id');
28
+ * if (layout) {
29
+ * console.log('Found layout:', layout.layoutName);
30
+ * }
31
+ * ```
32
+ */
33
+ getBtrIdAt(id: AcDbObjectId): AcDbLayout | undefined;
34
+ /**
35
+ * Gets the maximum tab order value of layouts in the layout dictionary.
36
+ *
37
+ * @returns The maximum tab order value, or -1 if no layouts exist
38
+ *
39
+ * @example
40
+ * ```typescript
41
+ * const maxOrder = layoutDict.maxTabOrder;
42
+ * console.log('Maximum tab order:', maxOrder);
43
+ * ```
44
+ */
45
+ get maxTabOrder(): number;
46
+ }
47
+ //# sourceMappingURL=AcDbLayoutDictionary.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcDbLayoutDictionary.d.ts","sourceRoot":"","sources":["../../../src/object/layout/AcDbLayoutDictionary.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAEzC;;;;;;;;;;;;;GAaG;AACH,qBAAa,oBAAqB,SAAQ,cAAc,CAAC,UAAU,CAAC;IAClE;;;;;;;;;;;;;OAaG;IACH,UAAU,CAAC,EAAE,EAAE,YAAY;IAO3B;;;;;;;;;;OAUG;IACH,IAAI,WAAW,WAQd;CACF"}
@@ -0,0 +1,122 @@
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
+ var __values = (this && this.__values) || function(o) {
17
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
18
+ if (m) return m.call(o);
19
+ if (o && typeof o.length === "number") return {
20
+ next: function () {
21
+ if (o && i >= o.length) o = void 0;
22
+ return { value: o && o[i++], done: !o };
23
+ }
24
+ };
25
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
26
+ };
27
+ var __read = (this && this.__read) || function (o, n) {
28
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
29
+ if (!m) return o;
30
+ var i = m.call(o), r, ar = [], e;
31
+ try {
32
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
33
+ }
34
+ catch (error) { e = { error: error }; }
35
+ finally {
36
+ try {
37
+ if (r && !r.done && (m = i["return"])) m.call(i);
38
+ }
39
+ finally { if (e) throw e.error; }
40
+ }
41
+ return ar;
42
+ };
43
+ import { AcDbDictionary } from '../AcDbDictionary';
44
+ /**
45
+ * Dictionary for storing and managing AcDbLayout objects.
46
+ *
47
+ * This class extends AcDbDictionary to provide specialized functionality
48
+ * for managing layout objects, including searching by block table record ID
49
+ * and tracking the maximum tab order.
50
+ *
51
+ * @example
52
+ * ```typescript
53
+ * const layoutDict = new AcDbLayoutDictionary(database);
54
+ * const layout = layoutDict.getBtrIdAt('some-block-id');
55
+ * const maxOrder = layoutDict.maxTabOrder;
56
+ * ```
57
+ */
58
+ var AcDbLayoutDictionary = /** @class */ (function (_super) {
59
+ __extends(AcDbLayoutDictionary, _super);
60
+ function AcDbLayoutDictionary() {
61
+ return _super !== null && _super.apply(this, arguments) || this;
62
+ }
63
+ /**
64
+ * Searches the dictionary for a layout associated with the specified block table record ID.
65
+ *
66
+ * @param id - The block table record ID to search for
67
+ * @returns The layout associated with the block table record ID, or undefined if not found
68
+ *
69
+ * @example
70
+ * ```typescript
71
+ * const layout = layoutDict.getBtrIdAt('some-block-id');
72
+ * if (layout) {
73
+ * console.log('Found layout:', layout.layoutName);
74
+ * }
75
+ * ```
76
+ */
77
+ AcDbLayoutDictionary.prototype.getBtrIdAt = function (id) {
78
+ var e_1, _a;
79
+ try {
80
+ for (var _b = __values(this._recordsByName), _c = _b.next(); !_c.done; _c = _b.next()) {
81
+ var _d = __read(_c.value, 2), _ = _d[0], layout = _d[1];
82
+ if (layout.blockTableRecordId == id)
83
+ return layout;
84
+ }
85
+ }
86
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
87
+ finally {
88
+ try {
89
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
90
+ }
91
+ finally { if (e_1) throw e_1.error; }
92
+ }
93
+ return undefined;
94
+ };
95
+ Object.defineProperty(AcDbLayoutDictionary.prototype, "maxTabOrder", {
96
+ /**
97
+ * Gets the maximum tab order value of layouts in the layout dictionary.
98
+ *
99
+ * @returns The maximum tab order value, or -1 if no layouts exist
100
+ *
101
+ * @example
102
+ * ```typescript
103
+ * const maxOrder = layoutDict.maxTabOrder;
104
+ * console.log('Maximum tab order:', maxOrder);
105
+ * ```
106
+ */
107
+ get: function () {
108
+ var maxValue = -1;
109
+ this._recordsByName.forEach(function (layout) {
110
+ if (layout.tabOrder > maxValue) {
111
+ maxValue = layout.tabOrder;
112
+ }
113
+ });
114
+ return maxValue;
115
+ },
116
+ enumerable: false,
117
+ configurable: true
118
+ });
119
+ return AcDbLayoutDictionary;
120
+ }(AcDbDictionary));
121
+ export { AcDbLayoutDictionary };
122
+ //# sourceMappingURL=AcDbLayoutDictionary.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcDbLayoutDictionary.js","sourceRoot":"","sources":["../../../src/object/layout/AcDbLayoutDictionary.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAGlD;;;;;;;;;;;;;GAaG;AACH;IAA0C,wCAA0B;IAApE;;IA0CA,CAAC;IAzCC;;;;;;;;;;;;;OAaG;IACH,yCAAU,GAAV,UAAW,EAAgB;;;YACzB,KAA0B,IAAA,KAAA,SAAA,IAAI,CAAC,cAAc,CAAA,gBAAA,4BAAE,CAAC;gBAArC,IAAA,KAAA,mBAAW,EAAV,CAAC,QAAA,EAAE,MAAM,QAAA;gBACnB,IAAI,MAAM,CAAC,kBAAkB,IAAI,EAAE;oBAAE,OAAO,MAAM,CAAA;YACpD,CAAC;;;;;;;;;QACD,OAAO,SAAS,CAAA;IAClB,CAAC;IAaD,sBAAI,6CAAW;QAXf;;;;;;;;;;WAUG;aACH;YACE,IAAI,QAAQ,GAAG,CAAC,CAAC,CAAA;YACjB,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,UAAA,MAAM;gBAChC,IAAI,MAAM,CAAC,QAAQ,GAAG,QAAQ,EAAE,CAAC;oBAC/B,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAA;gBAC5B,CAAC;YACH,CAAC,CAAC,CAAA;YACF,OAAO,QAAQ,CAAA;QACjB,CAAC;;;OAAA;IACH,2BAAC;AAAD,CAAC,AA1CD,CAA0C,cAAc,GA0CvD"}
@@ -0,0 +1,188 @@
1
+ import { AcCmEventManager } from '@mlightcad/common';
2
+ import { AcDbObjectId } from '../../base';
3
+ import { AcDbBlockTableRecord, AcDbDatabase } from '../../database';
4
+ import { AcDbLayout } from './AcDbLayout';
5
+ /**
6
+ * Event arguments for layout-related events.
7
+ */
8
+ export interface AcDbLayoutEventArgs {
9
+ /** The layout involved in the event */
10
+ layout: AcDbLayout;
11
+ }
12
+ /**
13
+ * Event arguments for layout-renamed events.
14
+ */
15
+ export interface AcDbLayoutRenamedEventArgs {
16
+ /** The layout involved in the event */
17
+ layout: AcDbLayout;
18
+ /** The old name of the layout */
19
+ oldName: string;
20
+ /** The new name of the layout */
21
+ newName: string;
22
+ }
23
+ /**
24
+ * Manages layout objects in a drawing database.
25
+ *
26
+ * This class provides functionality for managing layouts, including creating,
27
+ * finding, renaming, and switching between layouts. It also provides event
28
+ * notifications when layouts are switched.
29
+ *
30
+ * @example
31
+ * ```typescript
32
+ * const layoutManager = new AcDbLayoutManager();
33
+ * const layoutCount = layoutManager.countLayouts();
34
+ * const activeLayout = layoutManager.findActiveLayout();
35
+ * ```
36
+ */
37
+ export declare class AcDbLayoutManager {
38
+ /**
39
+ * Events that can be triggered by the layout manager.
40
+ *
41
+ * These events allow applications to respond to layout changes.
42
+ */
43
+ readonly events: {
44
+ /** Fired when the layout is created */
45
+ layoutCreated: AcCmEventManager<AcDbLayoutEventArgs>;
46
+ /** Fired when the layout is removed */
47
+ layoutRemoved: AcCmEventManager<AcDbLayoutEventArgs>;
48
+ /** Fired when the layout is renamed */
49
+ layoutRenamed: AcCmEventManager<AcDbLayoutRenamedEventArgs>;
50
+ /** Fired when the layout is switched */
51
+ layoutSwitched: AcCmEventManager<AcDbLayoutEventArgs>;
52
+ };
53
+ /**
54
+ * Gets the number of layouts in the layout dictionary.
55
+ *
56
+ * This includes the Model tab, which is always present.
57
+ *
58
+ * @param db - Drawing database to use (defaults to the current database)
59
+ * @returns The number of layouts in the dictionary
60
+ *
61
+ * @example
62
+ * ```typescript
63
+ * const count = layoutManager.countLayouts();
64
+ * console.log(`Number of layouts: ${count}`);
65
+ * ```
66
+ */
67
+ countLayouts(db?: AcDbDatabase): number;
68
+ /**
69
+ * Finds a layout by name in the database.
70
+ *
71
+ * @param name - Name of the layout to find
72
+ * @param db - Drawing database to use (defaults to the current database)
73
+ * @returns The layout object, or undefined if not found
74
+ *
75
+ * @example
76
+ * ```typescript
77
+ * const layout = layoutManager.findLayoutNamed('A4 Landscape');
78
+ * if (layout) {
79
+ * console.log('Found layout:', layout.layoutName);
80
+ * }
81
+ * ```
82
+ */
83
+ findLayoutNamed(name: string, db?: AcDbDatabase): AcDbLayout | undefined;
84
+ /**
85
+ * Gets the name of the active layout in the database.
86
+ *
87
+ * @returns The name of the active layout, or 'Model' if no layout is active
88
+ *
89
+ * @example
90
+ * ```typescript
91
+ * const activeLayoutName = layoutManager.findActiveLayout();
92
+ * console.log('Active layout:', activeLayoutName);
93
+ * ```
94
+ */
95
+ findActiveLayout(): string;
96
+ /**
97
+ * Makes the layout object associated with the given object ID the current layout.
98
+ *
99
+ * @param id - Object ID for the layout object to make current
100
+ * @param db - Drawing database to use (defaults to the current database)
101
+ * @returns True if setting the current layout was successful, false otherwise
102
+ *
103
+ * @example
104
+ * ```typescript
105
+ * const success = layoutManager.setCurrentLayoutId('some-layout-id');
106
+ * if (success) {
107
+ * console.log('Layout switched successfully');
108
+ * }
109
+ * ```
110
+ */
111
+ setCurrentLayoutId(id: AcDbObjectId, db?: AcDbDatabase): boolean;
112
+ /**
113
+ * Makes the layout object associated with the given block table record ID the current layout.
114
+ *
115
+ * @param id - Block table record ID for the layout object to make current
116
+ * @param db - Drawing database to use (defaults to the current database)
117
+ * @returns True if setting the current layout was successful, false otherwise
118
+ *
119
+ * @example
120
+ * ```typescript
121
+ * const success = layoutManager.setCurrentLayoutBtrId('some-block-id');
122
+ * ```
123
+ */
124
+ setCurrentLayoutBtrId(id: AcDbObjectId, db?: AcDbDatabase): boolean;
125
+ /**
126
+ * Sets the layout named 'name' as the current layout in the database.
127
+ *
128
+ * @param name - Name of the layout to make current
129
+ * @param db - Drawing database to use (defaults to the current database)
130
+ * @returns True if setting the current layout was successful, false otherwise
131
+ *
132
+ * @example
133
+ * ```typescript
134
+ * const success = layoutManager.setCurrentLayout('A4 Landscape');
135
+ * ```
136
+ */
137
+ setCurrentLayout(name: string, db?: AcDbDatabase): boolean;
138
+ /**
139
+ * Renames a layout in the database.
140
+ *
141
+ * @param oldName - Current name of the layout to rename
142
+ * @param newName - New name for the layout
143
+ * @param db - Drawing database to use (defaults to the current database)
144
+ * @returns True if the layout was renamed successfully, false otherwise
145
+ *
146
+ * @example
147
+ * ```typescript
148
+ * const success = layoutManager.renameLayout('Old Name', 'New Name');
149
+ * ```
150
+ */
151
+ renameLayout(oldName: string, newName: string, db?: AcDbDatabase): boolean;
152
+ /**
153
+ * Return true if the layout named 'name' is found in the database 'db' (or the
154
+ * workingDatabase if 'db' isn't provided).
155
+ * @param name Input name of layout to find.
156
+ * @param db Input drawing database to use. Default is the current database.
157
+ * @returns Return true if the layout named name is found in the database 'db'
158
+ * (or the workingDatabase if 'db' isn't provided).
159
+ */
160
+ layoutExists(name: string, db?: AcDbDatabase): boolean;
161
+ /**
162
+ * Delete the layout named 'name' from the database 'db' (or the workingDatabase
163
+ * if 'db' isn't provided).
164
+ * @param name Input name of layout to delete.
165
+ * @param db Input drawing database to use. Default is the current database.
166
+ * @returns
167
+ */
168
+ deleteLayout(name: string, db?: AcDbDatabase): boolean;
169
+ /**
170
+ * Create a new AcDbLayout object given a unique layout name.
171
+ * @param name Input name to give new AcDbLayout object
172
+ * @param db Input drawing database to use. Default is the current database.
173
+ * @returns Return newly created layout and its associated block table record.
174
+ */
175
+ createLayout(name: string, db?: AcDbDatabase): {
176
+ layout: AcDbLayout;
177
+ btr: AcDbBlockTableRecord;
178
+ };
179
+ /**
180
+ * Get active layout in the database 'db' (or the workingDatabase if 'db' isn't provided).
181
+ * @param db Input drawing database to use. Default is the current database.
182
+ * @returns Return active layout if found. Otherwise, return undefined.
183
+ */
184
+ getActiveLayout(db?: AcDbDatabase): AcDbLayout | undefined;
185
+ private getWorkingDatabase;
186
+ private setCurrentLayoutInternal;
187
+ }
188
+ //# sourceMappingURL=AcDbLayoutManager.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcDbLayoutManager.d.ts","sourceRoot":"","sources":["../../../src/object/layout/AcDbLayoutManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AAEpD,OAAO,EAA+B,YAAY,EAAE,MAAM,YAAY,CAAA;AACtE,OAAO,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AACnE,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAEzC;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,uCAAuC;IACvC,MAAM,EAAE,UAAU,CAAA;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC,uCAAuC;IACvC,MAAM,EAAE,UAAU,CAAA;IAClB,iCAAiC;IACjC,OAAO,EAAE,MAAM,CAAA;IACf,iCAAiC;IACjC,OAAO,EAAE,MAAM,CAAA;CAChB;AAED;;;;;;;;;;;;;GAaG;AACH,qBAAa,iBAAiB;IAC5B;;;;OAIG;IACH,SAAgB,MAAM;QACpB,uCAAuC;;QAEvC,uCAAuC;;QAEvC,uCAAuC;;QAEvC,wCAAwC;;MAEzC;IAED;;;;;;;;;;;;;OAaG;IACH,YAAY,CAAC,EAAE,CAAC,EAAE,YAAY;IAI9B;;;;;;;;;;;;;;OAcG;IACH,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,YAAY;IAI/C;;;;;;;;;;OAUG;IACH,gBAAgB;IAKhB;;;;;;;;;;;;;;OAcG;IACH,kBAAkB,CAAC,EAAE,EAAE,YAAY,EAAE,EAAE,CAAC,EAAE,YAAY;IAMtD;;;;;;;;;;;OAWG;IACH,qBAAqB,CAAC,EAAE,EAAE,YAAY,EAAE,EAAE,CAAC,EAAE,YAAY;IAMzD;;;;;;;;;;;OAWG;IACH,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,YAAY;IAMhD;;;;;;;;;;;;OAYG;IACH,YAAY,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,YAAY;IAehE;;;;;;;OAOG;IACH,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,YAAY;IAI5C;;;;;;OAMG;IACH,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,YAAY;IAe5C;;;;;OAKG;IACH,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,YAAY;;;;IAoB5C;;;;OAIG;IACH,eAAe,CAAC,EAAE,CAAC,EAAE,YAAY;IAKjC,OAAO,CAAC,kBAAkB;IAI1B,OAAO,CAAC,wBAAwB;CAajC"}