@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,253 +0,0 @@
1
- var __extends = (this && this.__extends) || (function () {
2
- var extendStatics = function (d, b) {
3
- extendStatics = Object.setPrototypeOf ||
4
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
- return extendStatics(d, b);
7
- };
8
- return function (d, b) {
9
- if (typeof b !== "function" && b !== null)
10
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
11
- extendStatics(d, b);
12
- function __() { this.constructor = d; }
13
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14
- };
15
- })();
16
- import { 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
@@ -1 +0,0 @@
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"}
@@ -1,47 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,122 +0,0 @@
1
- var __extends = (this && this.__extends) || (function () {
2
- var extendStatics = function (d, b) {
3
- extendStatics = Object.setPrototypeOf ||
4
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
- return extendStatics(d, b);
7
- };
8
- return function (d, b) {
9
- if (typeof b !== "function" && b !== null)
10
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
11
- extendStatics(d, b);
12
- function __() { this.constructor = d; }
13
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14
- };
15
- })();
16
- 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
@@ -1 +0,0 @@
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"}
@@ -1,188 +0,0 @@
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
@@ -1 +0,0 @@
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"}