@mlightcad/data-model 1.0.0

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 (301) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +116 -0
  3. package/dist/data-model.js +19887 -0
  4. package/dist/data-model.umd.cjs +5 -0
  5. package/lib/base/AcDbHostApplicationServices.d.ts +30 -0
  6. package/lib/base/AcDbHostApplicationServices.d.ts.map +1 -0
  7. package/lib/base/AcDbHostApplicationServices.js +54 -0
  8. package/lib/base/AcDbHostApplicationServices.js.map +1 -0
  9. package/lib/base/AcDbObject.d.ts +70 -0
  10. package/lib/base/AcDbObject.d.ts.map +1 -0
  11. package/lib/base/AcDbObject.js +113 -0
  12. package/lib/base/AcDbObject.js.map +1 -0
  13. package/lib/base/index.d.ts +3 -0
  14. package/lib/base/index.d.ts.map +1 -0
  15. package/lib/base/index.js +3 -0
  16. package/lib/base/index.js.map +1 -0
  17. package/lib/converter/AcDbBatchProcessing.d.ts +43 -0
  18. package/lib/converter/AcDbBatchProcessing.d.ts.map +1 -0
  19. package/lib/converter/AcDbBatchProcessing.js +165 -0
  20. package/lib/converter/AcDbBatchProcessing.js.map +1 -0
  21. package/lib/converter/AcDbDxfConverter.d.ts +39 -0
  22. package/lib/converter/AcDbDxfConverter.d.ts.map +1 -0
  23. package/lib/converter/AcDbDxfConverter.js +567 -0
  24. package/lib/converter/AcDbDxfConverter.js.map +1 -0
  25. package/lib/converter/AcDbDxfParseWorker.d.ts +2 -0
  26. package/lib/converter/AcDbDxfParseWorker.d.ts.map +1 -0
  27. package/lib/converter/AcDbDxfParseWorker.js +6 -0
  28. package/lib/converter/AcDbDxfParseWorker.js.map +1 -0
  29. package/lib/converter/AcDbEntitiyConverter.d.ts +36 -0
  30. package/lib/converter/AcDbEntitiyConverter.d.ts.map +1 -0
  31. package/lib/converter/AcDbEntitiyConverter.js +491 -0
  32. package/lib/converter/AcDbEntitiyConverter.js.map +1 -0
  33. package/lib/converter/AcDbObjectConverter.d.ts +9 -0
  34. package/lib/converter/AcDbObjectConverter.d.ts.map +1 -0
  35. package/lib/converter/AcDbObjectConverter.js +30 -0
  36. package/lib/converter/AcDbObjectConverter.js.map +1 -0
  37. package/lib/converter/index.d.ts +3 -0
  38. package/lib/converter/index.d.ts.map +1 -0
  39. package/lib/converter/index.js +3 -0
  40. package/lib/converter/index.js.map +1 -0
  41. package/lib/database/AcDbBlockTable.d.ts +15 -0
  42. package/lib/database/AcDbBlockTable.d.ts.map +1 -0
  43. package/lib/database/AcDbBlockTable.js +46 -0
  44. package/lib/database/AcDbBlockTable.js.map +1 -0
  45. package/lib/database/AcDbBlockTableRecord.d.ts +49 -0
  46. package/lib/database/AcDbBlockTableRecord.d.ts.map +1 -0
  47. package/lib/database/AcDbBlockTableRecord.js +108 -0
  48. package/lib/database/AcDbBlockTableRecord.js.map +1 -0
  49. package/lib/database/AcDbDatabase.d.ts +211 -0
  50. package/lib/database/AcDbDatabase.d.ts.map +1 -0
  51. package/lib/database/AcDbDatabase.js +395 -0
  52. package/lib/database/AcDbDatabase.js.map +1 -0
  53. package/lib/database/AcDbDatabaseConverter.d.ts +120 -0
  54. package/lib/database/AcDbDatabaseConverter.d.ts.map +1 -0
  55. package/lib/database/AcDbDatabaseConverter.js +376 -0
  56. package/lib/database/AcDbDatabaseConverter.js.map +1 -0
  57. package/lib/database/AcDbDatabaseConverterManager.d.ts +59 -0
  58. package/lib/database/AcDbDatabaseConverterManager.d.ts.map +1 -0
  59. package/lib/database/AcDbDatabaseConverterManager.js +98 -0
  60. package/lib/database/AcDbDatabaseConverterManager.js.map +1 -0
  61. package/lib/database/AcDbDatabaseConverterRegister.d.ts +54 -0
  62. package/lib/database/AcDbDatabaseConverterRegister.d.ts.map +1 -0
  63. package/lib/database/AcDbDatabaseConverterRegister.js +84 -0
  64. package/lib/database/AcDbDatabaseConverterRegister.js.map +1 -0
  65. package/lib/database/AcDbDimStyleTable.d.ts +11 -0
  66. package/lib/database/AcDbDimStyleTable.d.ts.map +1 -0
  67. package/lib/database/AcDbDimStyleTable.js +29 -0
  68. package/lib/database/AcDbDimStyleTable.js.map +1 -0
  69. package/lib/database/AcDbDimStyleTableRecord.d.ts +682 -0
  70. package/lib/database/AcDbDimStyleTableRecord.d.ts.map +1 -0
  71. package/lib/database/AcDbDimStyleTableRecord.js +1250 -0
  72. package/lib/database/AcDbDimStyleTableRecord.js.map +1 -0
  73. package/lib/database/AcDbLayerTable.d.ts +14 -0
  74. package/lib/database/AcDbLayerTable.d.ts.map +1 -0
  75. package/lib/database/AcDbLayerTable.js +55 -0
  76. package/lib/database/AcDbLayerTable.js.map +1 -0
  77. package/lib/database/AcDbLayerTableRecord.d.ts +98 -0
  78. package/lib/database/AcDbLayerTableRecord.d.ts.map +1 -0
  79. package/lib/database/AcDbLayerTableRecord.js +235 -0
  80. package/lib/database/AcDbLayerTableRecord.js.map +1 -0
  81. package/lib/database/AcDbLinetypeTable.d.ts +11 -0
  82. package/lib/database/AcDbLinetypeTable.d.ts.map +1 -0
  83. package/lib/database/AcDbLinetypeTable.js +29 -0
  84. package/lib/database/AcDbLinetypeTable.js.map +1 -0
  85. package/lib/database/AcDbLinetypeTableRecord.d.ts +47 -0
  86. package/lib/database/AcDbLinetypeTableRecord.d.ts.map +1 -0
  87. package/lib/database/AcDbLinetypeTableRecord.js +97 -0
  88. package/lib/database/AcDbLinetypeTableRecord.js.map +1 -0
  89. package/lib/database/AcDbSymbolTable.d.ts +74 -0
  90. package/lib/database/AcDbSymbolTable.d.ts.map +1 -0
  91. package/lib/database/AcDbSymbolTable.js +136 -0
  92. package/lib/database/AcDbSymbolTable.js.map +1 -0
  93. package/lib/database/AcDbSymbolTableRecord.d.ts +16 -0
  94. package/lib/database/AcDbSymbolTableRecord.d.ts.map +1 -0
  95. package/lib/database/AcDbSymbolTableRecord.js +44 -0
  96. package/lib/database/AcDbSymbolTableRecord.js.map +1 -0
  97. package/lib/database/AcDbTextStyleTable.d.ts +14 -0
  98. package/lib/database/AcDbTextStyleTable.d.ts.map +1 -0
  99. package/lib/database/AcDbTextStyleTable.js +78 -0
  100. package/lib/database/AcDbTextStyleTable.js.map +1 -0
  101. package/lib/database/AcDbTextStyleTableRecord.d.ts +67 -0
  102. package/lib/database/AcDbTextStyleTableRecord.d.ts.map +1 -0
  103. package/lib/database/AcDbTextStyleTableRecord.js +166 -0
  104. package/lib/database/AcDbTextStyleTableRecord.js.map +1 -0
  105. package/lib/database/AcDbViewportTable.d.ts +11 -0
  106. package/lib/database/AcDbViewportTable.d.ts.map +1 -0
  107. package/lib/database/AcDbViewportTable.js +29 -0
  108. package/lib/database/AcDbViewportTable.js.map +1 -0
  109. package/lib/database/AcDbViewportTableRecord.d.ts +89 -0
  110. package/lib/database/AcDbViewportTableRecord.d.ts.map +1 -0
  111. package/lib/database/AcDbViewportTableRecord.js +262 -0
  112. package/lib/database/AcDbViewportTableRecord.js.map +1 -0
  113. package/lib/database/index.d.ts +18 -0
  114. package/lib/database/index.d.ts.map +1 -0
  115. package/lib/database/index.js +18 -0
  116. package/lib/database/index.js.map +1 -0
  117. package/lib/entity/AcDbArc.d.ts +67 -0
  118. package/lib/entity/AcDbArc.d.ts.map +1 -0
  119. package/lib/entity/AcDbArc.js +154 -0
  120. package/lib/entity/AcDbArc.js.map +1 -0
  121. package/lib/entity/AcDbBlockReference.d.ts +54 -0
  122. package/lib/entity/AcDbBlockReference.d.ts.map +1 -0
  123. package/lib/entity/AcDbBlockReference.js +168 -0
  124. package/lib/entity/AcDbBlockReference.js.map +1 -0
  125. package/lib/entity/AcDbCircle.d.ts +51 -0
  126. package/lib/entity/AcDbCircle.d.ts.map +1 -0
  127. package/lib/entity/AcDbCircle.js +115 -0
  128. package/lib/entity/AcDbCircle.js.map +1 -0
  129. package/lib/entity/AcDbCurve.d.ts +9 -0
  130. package/lib/entity/AcDbCurve.d.ts.map +1 -0
  131. package/lib/entity/AcDbCurve.js +25 -0
  132. package/lib/entity/AcDbCurve.js.map +1 -0
  133. package/lib/entity/AcDbEllipse.d.ts +53 -0
  134. package/lib/entity/AcDbEllipse.d.ts.map +1 -0
  135. package/lib/entity/AcDbEllipse.js +119 -0
  136. package/lib/entity/AcDbEllipse.js.map +1 -0
  137. package/lib/entity/AcDbEntity.d.ts +103 -0
  138. package/lib/entity/AcDbEntity.d.ts.map +1 -0
  139. package/lib/entity/AcDbEntity.js +292 -0
  140. package/lib/entity/AcDbEntity.js.map +1 -0
  141. package/lib/entity/AcDbHatch.d.ts +116 -0
  142. package/lib/entity/AcDbHatch.d.ts.map +1 -0
  143. package/lib/entity/AcDbHatch.js +200 -0
  144. package/lib/entity/AcDbHatch.js.map +1 -0
  145. package/lib/entity/AcDbLeader.d.ts +94 -0
  146. package/lib/entity/AcDbLeader.d.ts.map +1 -0
  147. package/lib/entity/AcDbLeader.js +217 -0
  148. package/lib/entity/AcDbLeader.js.map +1 -0
  149. package/lib/entity/AcDbLine.d.ts +55 -0
  150. package/lib/entity/AcDbLine.d.ts.map +1 -0
  151. package/lib/entity/AcDbLine.js +158 -0
  152. package/lib/entity/AcDbLine.js.map +1 -0
  153. package/lib/entity/AcDbMText.d.ts +119 -0
  154. package/lib/entity/AcDbMText.d.ts.map +1 -0
  155. package/lib/entity/AcDbMText.js +300 -0
  156. package/lib/entity/AcDbMText.js.map +1 -0
  157. package/lib/entity/AcDbPoint.d.ts +32 -0
  158. package/lib/entity/AcDbPoint.d.ts.map +1 -0
  159. package/lib/entity/AcDbPoint.js +75 -0
  160. package/lib/entity/AcDbPoint.js.map +1 -0
  161. package/lib/entity/AcDbPolyline.d.ts +72 -0
  162. package/lib/entity/AcDbPolyline.d.ts.map +1 -0
  163. package/lib/entity/AcDbPolyline.js +154 -0
  164. package/lib/entity/AcDbPolyline.js.map +1 -0
  165. package/lib/entity/AcDbRasterImage.d.ts +163 -0
  166. package/lib/entity/AcDbRasterImage.d.ts.map +1 -0
  167. package/lib/entity/AcDbRasterImage.js +406 -0
  168. package/lib/entity/AcDbRasterImage.js.map +1 -0
  169. package/lib/entity/AcDbRay.d.ts +42 -0
  170. package/lib/entity/AcDbRay.d.ts.map +1 -0
  171. package/lib/entity/AcDbRay.js +102 -0
  172. package/lib/entity/AcDbRay.js.map +1 -0
  173. package/lib/entity/AcDbSpline.d.ts +37 -0
  174. package/lib/entity/AcDbSpline.d.ts.map +1 -0
  175. package/lib/entity/AcDbSpline.js +71 -0
  176. package/lib/entity/AcDbSpline.js.map +1 -0
  177. package/lib/entity/AcDbTable.d.ts +141 -0
  178. package/lib/entity/AcDbTable.d.ts.map +1 -0
  179. package/lib/entity/AcDbTable.js +358 -0
  180. package/lib/entity/AcDbTable.js.map +1 -0
  181. package/lib/entity/AcDbText.d.ts +110 -0
  182. package/lib/entity/AcDbText.d.ts.map +1 -0
  183. package/lib/entity/AcDbText.js +255 -0
  184. package/lib/entity/AcDbText.js.map +1 -0
  185. package/lib/entity/AcDbTrace.d.ts +64 -0
  186. package/lib/entity/AcDbTrace.d.ts.map +1 -0
  187. package/lib/entity/AcDbTrace.js +145 -0
  188. package/lib/entity/AcDbTrace.js.map +1 -0
  189. package/lib/entity/AcDbViewport.d.ts +58 -0
  190. package/lib/entity/AcDbViewport.d.ts.map +1 -0
  191. package/lib/entity/AcDbViewport.js +179 -0
  192. package/lib/entity/AcDbViewport.js.map +1 -0
  193. package/lib/entity/AcDbWipeout.d.ts +9 -0
  194. package/lib/entity/AcDbWipeout.d.ts.map +1 -0
  195. package/lib/entity/AcDbWipeout.js +40 -0
  196. package/lib/entity/AcDbWipeout.js.map +1 -0
  197. package/lib/entity/AcDbXline.d.ts +42 -0
  198. package/lib/entity/AcDbXline.d.ts.map +1 -0
  199. package/lib/entity/AcDbXline.js +102 -0
  200. package/lib/entity/AcDbXline.js.map +1 -0
  201. package/lib/entity/dimension/AcDb3PointAngularDimension.d.ts +46 -0
  202. package/lib/entity/dimension/AcDb3PointAngularDimension.d.ts.map +1 -0
  203. package/lib/entity/dimension/AcDb3PointAngularDimension.js +111 -0
  204. package/lib/entity/dimension/AcDb3PointAngularDimension.js.map +1 -0
  205. package/lib/entity/dimension/AcDbAlignedDimension.d.ts +77 -0
  206. package/lib/entity/dimension/AcDbAlignedDimension.d.ts.map +1 -0
  207. package/lib/entity/dimension/AcDbAlignedDimension.js +203 -0
  208. package/lib/entity/dimension/AcDbAlignedDimension.js.map +1 -0
  209. package/lib/entity/dimension/AcDbArcDimension.d.ts +46 -0
  210. package/lib/entity/dimension/AcDbArcDimension.d.ts.map +1 -0
  211. package/lib/entity/dimension/AcDbArcDimension.js +111 -0
  212. package/lib/entity/dimension/AcDbArcDimension.js.map +1 -0
  213. package/lib/entity/dimension/AcDbDiametricDimension.d.ts +69 -0
  214. package/lib/entity/dimension/AcDbDiametricDimension.d.ts.map +1 -0
  215. package/lib/entity/dimension/AcDbDiametricDimension.js +199 -0
  216. package/lib/entity/dimension/AcDbDiametricDimension.js.map +1 -0
  217. package/lib/entity/dimension/AcDbDimension.d.ts +161 -0
  218. package/lib/entity/dimension/AcDbDimension.d.ts.map +1 -0
  219. package/lib/entity/dimension/AcDbDimension.js +375 -0
  220. package/lib/entity/dimension/AcDbDimension.js.map +1 -0
  221. package/lib/entity/dimension/AcDbOrdinateDimension.d.ts +44 -0
  222. package/lib/entity/dimension/AcDbOrdinateDimension.d.ts.map +1 -0
  223. package/lib/entity/dimension/AcDbOrdinateDimension.js +99 -0
  224. package/lib/entity/dimension/AcDbOrdinateDimension.js.map +1 -0
  225. package/lib/entity/dimension/AcDbRadialDimension.d.ts +69 -0
  226. package/lib/entity/dimension/AcDbRadialDimension.d.ts.map +1 -0
  227. package/lib/entity/dimension/AcDbRadialDimension.js +148 -0
  228. package/lib/entity/dimension/AcDbRadialDimension.js.map +1 -0
  229. package/lib/entity/dimension/index.d.ts +8 -0
  230. package/lib/entity/dimension/index.d.ts.map +1 -0
  231. package/lib/entity/dimension/index.js +8 -0
  232. package/lib/entity/dimension/index.js.map +1 -0
  233. package/lib/entity/index.d.ts +23 -0
  234. package/lib/entity/index.d.ts.map +1 -0
  235. package/lib/entity/index.js +23 -0
  236. package/lib/entity/index.js.map +1 -0
  237. package/lib/index.d.ts +10 -0
  238. package/lib/index.d.ts.map +1 -0
  239. package/lib/index.js +10 -0
  240. package/lib/index.js.map +1 -0
  241. package/lib/misc/AcDbAngleUnits.d.ts +8 -0
  242. package/lib/misc/AcDbAngleUnits.d.ts.map +1 -0
  243. package/lib/misc/AcDbAngleUnits.js +9 -0
  244. package/lib/misc/AcDbAngleUnits.js.map +1 -0
  245. package/lib/misc/AcDbConstants.d.ts +4 -0
  246. package/lib/misc/AcDbConstants.d.ts.map +1 -0
  247. package/lib/misc/AcDbConstants.js +4 -0
  248. package/lib/misc/AcDbConstants.js.map +1 -0
  249. package/lib/misc/AcDbDimArrowType.d.ts +86 -0
  250. package/lib/misc/AcDbDimArrowType.d.ts.map +1 -0
  251. package/lib/misc/AcDbDimArrowType.js +87 -0
  252. package/lib/misc/AcDbDimArrowType.js.map +1 -0
  253. package/lib/misc/AcDbObjectIterator.d.ts +16 -0
  254. package/lib/misc/AcDbObjectIterator.d.ts.map +1 -0
  255. package/lib/misc/AcDbObjectIterator.js +28 -0
  256. package/lib/misc/AcDbObjectIterator.js.map +1 -0
  257. package/lib/misc/AcDbOsnapMode.d.ts +43 -0
  258. package/lib/misc/AcDbOsnapMode.d.ts.map +1 -0
  259. package/lib/misc/AcDbOsnapMode.js +44 -0
  260. package/lib/misc/AcDbOsnapMode.js.map +1 -0
  261. package/lib/misc/AcDbRenderingCache.d.ts +61 -0
  262. package/lib/misc/AcDbRenderingCache.d.ts.map +1 -0
  263. package/lib/misc/AcDbRenderingCache.js +154 -0
  264. package/lib/misc/AcDbRenderingCache.js.map +1 -0
  265. package/lib/misc/AcDbUnitsValue.d.ts +51 -0
  266. package/lib/misc/AcDbUnitsValue.d.ts.map +1 -0
  267. package/lib/misc/AcDbUnitsValue.js +71 -0
  268. package/lib/misc/AcDbUnitsValue.js.map +1 -0
  269. package/lib/misc/index.d.ts +8 -0
  270. package/lib/misc/index.d.ts.map +1 -0
  271. package/lib/misc/index.js +8 -0
  272. package/lib/misc/index.js.map +1 -0
  273. package/lib/object/AcDbDictionary.d.ts +80 -0
  274. package/lib/object/AcDbDictionary.d.ts.map +1 -0
  275. package/lib/object/AcDbDictionary.js +144 -0
  276. package/lib/object/AcDbDictionary.js.map +1 -0
  277. package/lib/object/AcDbRasterImageDef.d.ts +25 -0
  278. package/lib/object/AcDbRasterImageDef.d.ts.map +1 -0
  279. package/lib/object/AcDbRasterImageDef.js +54 -0
  280. package/lib/object/AcDbRasterImageDef.js.map +1 -0
  281. package/lib/object/index.d.ts +4 -0
  282. package/lib/object/index.d.ts.map +1 -0
  283. package/lib/object/index.js +4 -0
  284. package/lib/object/index.js.map +1 -0
  285. package/lib/object/layout/AcDbLayout.d.ts +51 -0
  286. package/lib/object/layout/AcDbLayout.d.ts.map +1 -0
  287. package/lib/object/layout/AcDbLayout.js +120 -0
  288. package/lib/object/layout/AcDbLayout.js.map +1 -0
  289. package/lib/object/layout/AcDbLayoutDictionary.d.ts +19 -0
  290. package/lib/object/layout/AcDbLayoutDictionary.d.ts.map +1 -0
  291. package/lib/object/layout/AcDbLayoutDictionary.js +94 -0
  292. package/lib/object/layout/AcDbLayoutDictionary.js.map +1 -0
  293. package/lib/object/layout/AcDbLayoutManager.d.ts +101 -0
  294. package/lib/object/layout/AcDbLayoutManager.d.ts.map +1 -0
  295. package/lib/object/layout/AcDbLayoutManager.js +154 -0
  296. package/lib/object/layout/AcDbLayoutManager.js.map +1 -0
  297. package/lib/object/layout/index.d.ts +4 -0
  298. package/lib/object/layout/index.d.ts.map +1 -0
  299. package/lib/object/layout/index.js +4 -0
  300. package/lib/object/layout/index.js.map +1 -0
  301. package/package.json +46 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcDbLinetypeTableRecord.js","sourceRoot":"","sources":["../../src/database/AcDbLinetypeTableRecord.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAEA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAE/D;;;;;;;;;;GAUG;AACH;IAA6C,2CAAqB;IAGhE;;OAEG;IACH,iCAAY,QAA2B;QACrC,YAAA,MAAK,WAAE,SAAA;QACP,KAAI,CAAC,IAAI,GAAG,QAAQ,CAAC,IAAI,CAAA;QACzB,KAAI,CAAC,SAAS,GAAG,QAAQ,CAAA;;IAC3B,CAAC;IAKD,sBAAI,8CAAS;QAHb;;WAEG;aACH;YACE,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAA;QACnE,CAAC;;;OAAA;IAQD,sBAAI,kDAAa;QANjB;;;;;WAKG;aACH;YACE,OAAO,IAAI,CAAC,SAAS,CAAC,kBAAkB,CAAA;QAC1C,CAAC;;;OAAA;IAKD,sBAAI,6CAAQ;QAHZ;;WAEG;aACH;YACE,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAA;QACnC,CAAC;;;OAAA;IAKD,sBAAI,6CAAQ;QAHZ;;WAEG;aACH;YACE,OAAO,IAAI,CAAC,SAAS,CAAA;QACvB,CAAC;;;OAAA;IAED;;;;;OAKG;IACH,8CAAY,GAAZ,UAAa,KAAa;QACxB,IAAI,KAAK,GAAG,CAAC,IAAI,KAAK,IAAI,IAAI,CAAC,SAAS,EAAE,CAAC;YACzC,MAAM,IAAI,KAAK,CACb,+FAA+F,CAChG,CAAA;QACH,CAAC;QACD,OAAO,IAAI,CAAC,SAAS,CAAC,OAAQ,CAAC,KAAK,CAAC,CAAC,aAAa,CAAA;IACrD,CAAC;IACH,8BAAC;AAAD,CAAC,AAzDD,CAA6C,qBAAqB,GAyDjE"}
@@ -0,0 +1,74 @@
1
+ import { AcDbObject, AcDbObjectId } from '../base/AcDbObject';
2
+ import { AcDbObjectIterator } from '../misc/AcDbObjectIterator';
3
+ import { AcDbDatabase } from './AcDbDatabase';
4
+ import { AcDbSymbolTableRecord } from './AcDbSymbolTableRecord';
5
+ /**
6
+ * AcDbSymbolTable is the base class for all of the classes used to export AutoCAD's
7
+ * built-in symbol tables.
8
+ */
9
+ export declare class AcDbSymbolTable<RecordType extends AcDbSymbolTableRecord = AcDbSymbolTableRecord> extends AcDbObject {
10
+ protected _recordsByName: Map<string, RecordType>;
11
+ protected _recordsById: Map<string, RecordType>;
12
+ constructor(db: AcDbDatabase);
13
+ /**
14
+ * Add the record to both the database containing the table and the table itself
15
+ * @param record Input record to add to the table
16
+ */
17
+ add(record: RecordType): void;
18
+ /**
19
+ * Remove the record with the specified name
20
+ * @param name Input the name of the record to remove
21
+ * @returns Return true if removing the record correctly. Otherwise, return false.
22
+ */
23
+ remove(name: string): boolean;
24
+ /**
25
+ * Remove the record with the specified id
26
+ * @param id Input object id of the record to remove
27
+ * @returns Return true if removing the record correctly. Otherwise, return false.
28
+ */
29
+ removeId(id: AcDbObjectId): boolean;
30
+ /**
31
+ * Remove all of records in the table.
32
+ */
33
+ removeAll(): void;
34
+ /**
35
+ * Return true if the table contains a record with the sepcified name. Otherwise it returns false.
36
+ *
37
+ * @param name Input name to search for
38
+ */
39
+ has(name: string): boolean;
40
+ /**
41
+ * Return true if the table contains a record with the sepcified id. Otherwise it returns false.
42
+ *
43
+ * @param id Input id to search for
44
+ */
45
+ hasId(id: string): boolean;
46
+ /**
47
+ * Search the table for the record with the specified name. If found, it return the record.
48
+ * Otherwise, return undefined.
49
+ * @param name Input the name to search
50
+ * @returns If found the record with the specified name, return it. Otherwise, return undefined.
51
+ */
52
+ getAt(name: string): RecordType | undefined;
53
+ /**
54
+ * Search the table for the record with the specified id. If found, it return the record.
55
+ * Otherwise, return undefined.
56
+ * @param id Input the id to search
57
+ * @returns If found the record with the specified id, return it. Otherwise, return undefined.
58
+ */
59
+ getIdAt(id: AcDbObjectId): RecordType | undefined;
60
+ /**
61
+ * Search the table for the record with the specified owner id. If found, it return the record.
62
+ * Otherwise, return undefined.
63
+ * @param id Input the owner id to search
64
+ * @returns If found the record with the specified owner id, return it. Otherwise, return undefined.
65
+ */
66
+ getOwnerIdAt(id: AcDbObjectId): RecordType | undefined;
67
+ /**
68
+ * Create an iterator object that can be used to iterate through the contents of the symbol table.
69
+ *
70
+ * @returns Return an iterator object that can be used to iterate through the contents of the symbol table.
71
+ */
72
+ newIterator(): AcDbObjectIterator<RecordType>;
73
+ }
74
+ //# sourceMappingURL=AcDbSymbolTable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcDbSymbolTable.d.ts","sourceRoot":"","sources":["../../src/database/AcDbSymbolTable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAC7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAE/D;;;GAGG;AACH,qBAAa,eAAe,CAC1B,UAAU,SAAS,qBAAqB,GAAG,qBAAqB,CAChE,SAAQ,UAAU;IAClB,SAAS,CAAC,cAAc,EAAE,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC,CAAA;IACjD,SAAS,CAAC,YAAY,EAAE,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC,CAAA;gBAEnC,EAAE,EAAE,YAAY;IAO5B;;;OAGG;IACH,GAAG,CAAC,MAAM,EAAE,UAAU;IAMtB;;;;OAIG;IACH,MAAM,CAAC,IAAI,EAAE,MAAM;IAUnB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,EAAE,YAAY;IAUzB;;OAEG;IACH,SAAS;IAKT;;;;OAIG;IACH,GAAG,CAAC,IAAI,EAAE,MAAM;IAIhB;;;;OAIG;IACH,KAAK,CAAC,EAAE,EAAE,MAAM;IAIhB;;;;;OAKG;IACH,KAAK,CAAC,IAAI,EAAE,MAAM;IAIlB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,EAAE,YAAY;IAIxB;;;;;OAKG;IACH,YAAY,CAAC,EAAE,EAAE,YAAY,GAAG,UAAU,GAAG,SAAS;IAUtD;;;;OAIG;IACH,WAAW,IAAI,kBAAkB,CAAC,UAAU,CAAC;CAG9C"}
@@ -0,0 +1,136 @@
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 { AcDbObject } from '../base/AcDbObject';
17
+ import { AcDbObjectIterator } from '../misc/AcDbObjectIterator';
18
+ /**
19
+ * AcDbSymbolTable is the base class for all of the classes used to export AutoCAD's
20
+ * built-in symbol tables.
21
+ */
22
+ var AcDbSymbolTable = /** @class */ (function (_super) {
23
+ __extends(AcDbSymbolTable, _super);
24
+ function AcDbSymbolTable(db) {
25
+ var _this = _super.call(this) || this;
26
+ _this.database = db;
27
+ _this._recordsByName = new Map();
28
+ _this._recordsById = new Map();
29
+ return _this;
30
+ }
31
+ /**
32
+ * Add the record to both the database containing the table and the table itself
33
+ * @param record Input record to add to the table
34
+ */
35
+ AcDbSymbolTable.prototype.add = function (record) {
36
+ record.database = this.database;
37
+ this._recordsByName.set(record.name, record);
38
+ this._recordsById.set(record.objectId, record);
39
+ };
40
+ /**
41
+ * Remove the record with the specified name
42
+ * @param name Input the name of the record to remove
43
+ * @returns Return true if removing the record correctly. Otherwise, return false.
44
+ */
45
+ AcDbSymbolTable.prototype.remove = function (name) {
46
+ var record = this._recordsByName.get(name);
47
+ if (record) {
48
+ this._recordsById.delete(record.objectId);
49
+ this._recordsByName.delete(name);
50
+ return true;
51
+ }
52
+ return false;
53
+ };
54
+ /**
55
+ * Remove the record with the specified id
56
+ * @param id Input object id of the record to remove
57
+ * @returns Return true if removing the record correctly. Otherwise, return false.
58
+ */
59
+ AcDbSymbolTable.prototype.removeId = function (id) {
60
+ var record = this._recordsById.get(id);
61
+ if (record) {
62
+ this._recordsByName.delete(record.name);
63
+ this._recordsById.delete(id);
64
+ return true;
65
+ }
66
+ return false;
67
+ };
68
+ /**
69
+ * Remove all of records in the table.
70
+ */
71
+ AcDbSymbolTable.prototype.removeAll = function () {
72
+ this._recordsByName.clear();
73
+ this._recordsById.clear();
74
+ };
75
+ /**
76
+ * Return true if the table contains a record with the sepcified name. Otherwise it returns false.
77
+ *
78
+ * @param name Input name to search for
79
+ */
80
+ AcDbSymbolTable.prototype.has = function (name) {
81
+ return this._recordsByName.has(name);
82
+ };
83
+ /**
84
+ * Return true if the table contains a record with the sepcified id. Otherwise it returns false.
85
+ *
86
+ * @param id Input id to search for
87
+ */
88
+ AcDbSymbolTable.prototype.hasId = function (id) {
89
+ return this._recordsById.has(id);
90
+ };
91
+ /**
92
+ * Search the table for the record with the specified name. If found, it return the record.
93
+ * Otherwise, return undefined.
94
+ * @param name Input the name to search
95
+ * @returns If found the record with the specified name, return it. Otherwise, return undefined.
96
+ */
97
+ AcDbSymbolTable.prototype.getAt = function (name) {
98
+ return this._recordsByName.get(name);
99
+ };
100
+ /**
101
+ * Search the table for the record with the specified id. If found, it return the record.
102
+ * Otherwise, return undefined.
103
+ * @param id Input the id to search
104
+ * @returns If found the record with the specified id, return it. Otherwise, return undefined.
105
+ */
106
+ AcDbSymbolTable.prototype.getIdAt = function (id) {
107
+ return this._recordsById.get(id);
108
+ };
109
+ /**
110
+ * Search the table for the record with the specified owner id. If found, it return the record.
111
+ * Otherwise, return undefined.
112
+ * @param id Input the owner id to search
113
+ * @returns If found the record with the specified owner id, return it. Otherwise, return undefined.
114
+ */
115
+ AcDbSymbolTable.prototype.getOwnerIdAt = function (id) {
116
+ var _this = this;
117
+ var result = undefined;
118
+ this._recordsById.forEach(function (value, key) {
119
+ if (value.ownerId == id) {
120
+ result = _this._recordsById.get(key);
121
+ }
122
+ });
123
+ return result;
124
+ };
125
+ /**
126
+ * Create an iterator object that can be used to iterate through the contents of the symbol table.
127
+ *
128
+ * @returns Return an iterator object that can be used to iterate through the contents of the symbol table.
129
+ */
130
+ AcDbSymbolTable.prototype.newIterator = function () {
131
+ return new AcDbObjectIterator(this._recordsByName);
132
+ };
133
+ return AcDbSymbolTable;
134
+ }(AcDbObject));
135
+ export { AcDbSymbolTable };
136
+ //# sourceMappingURL=AcDbSymbolTable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcDbSymbolTable.js","sourceRoot":"","sources":["../../src/database/AcDbSymbolTable.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAgB,MAAM,oBAAoB,CAAA;AAC7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAI/D;;;GAGG;AACH;IAEU,mCAAU;IAIlB,yBAAY,EAAgB;QAC1B,YAAA,MAAK,WAAE,SAAA;QACP,KAAI,CAAC,QAAQ,GAAG,EAAE,CAAA;QAClB,KAAI,CAAC,cAAc,GAAG,IAAI,GAAG,EAAsB,CAAA;QACnD,KAAI,CAAC,YAAY,GAAG,IAAI,GAAG,EAAsB,CAAA;;IACnD,CAAC;IAED;;;OAGG;IACH,6BAAG,GAAH,UAAI,MAAkB;QACpB,MAAM,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAA;QAC/B,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAA;QAC5C,IAAI,CAAC,YAAY,CAAC,GAAG,CAA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,GAAG,CAAC,IAAI,CAAC,CAAA;IACtC,CAAC;IAED;;;;;OAKG;IACH,iCAAO,GAAP,UAAQ,EAAgB;QACtB,OAAO,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,EAAE,CAAC,CAAA;IAClC,CAAC;IAED;;;;;OAKG;IACH,sCAAY,GAAZ,UAAa,EAAgB;QAA7B,iBAQC;QAPC,IAAI,MAAM,GAA2B,SAAS,CAAA;QAC9C,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,UAAC,KAAK,EAAE,GAAG;YACnC,IAAI,KAAK,CAAC,OAAO,IAAI,EAAE,EAAE,CAAC;gBACxB,MAAM,GAAG,KAAI,CAAC,YAAY,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;YACrC,CAAC;QACH,CAAC,CAAC,CAAA;QACF,OAAO,MAAM,CAAA;IACf,CAAC;IAED;;;;OAIG;IACH,qCAAW,GAAX;QACE,OAAO,IAAI,kBAAkB,CAAC,IAAI,CAAC,cAAc,CAAC,CAAA;IACpD,CAAC;IACH,sBAAC;AAAD,CAAC,AA3HD,CAEU,UAAU,GAyHnB"}
@@ -0,0 +1,16 @@
1
+ import { AcDbObject, AcDbObjectAttrs } from '../base/AcDbObject';
2
+ export interface AcDbSymbolTableRecordAttrs extends AcDbObjectAttrs {
3
+ name: string;
4
+ }
5
+ /**
6
+ * This is the base class for each type of record corresponding to the various symbol tables.
7
+ */
8
+ export declare class AcDbSymbolTableRecord<ATTRS extends AcDbSymbolTableRecordAttrs = AcDbSymbolTableRecordAttrs> extends AcDbObject<ATTRS> {
9
+ constructor(attrs?: Partial<ATTRS>, defaultAttrs?: Partial<ATTRS>);
10
+ /**
11
+ * The name of symbol table record used for DXF group code 2.
12
+ */
13
+ get name(): string;
14
+ set name(value: string);
15
+ }
16
+ //# sourceMappingURL=AcDbSymbolTableRecord.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcDbSymbolTableRecord.d.ts","sourceRoot":"","sources":["../../src/database/AcDbSymbolTableRecord.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AAEhE,MAAM,WAAW,0BAA2B,SAAQ,eAAe;IACjE,IAAI,EAAE,MAAM,CAAA;CACb;AAED;;GAEG;AACH,qBAAa,qBAAqB,CAChC,KAAK,SAAS,0BAA0B,GAAG,0BAA0B,CACrE,SAAQ,UAAU,CAAC,KAAK,CAAC;gBACb,KAAK,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,EAAE,YAAY,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC;IAMjE;;OAEG;IACH,IAAI,IAAI,IAAI,MAAM,CAEjB;IACD,IAAI,IAAI,CAAC,KAAK,EAAE,MAAM,EAErB;CACF"}
@@ -0,0 +1,44 @@
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 { defaults } from 'lodash-es';
17
+ import { AcDbObject } from '../base/AcDbObject';
18
+ /**
19
+ * This is the base class for each type of record corresponding to the various symbol tables.
20
+ */
21
+ var AcDbSymbolTableRecord = /** @class */ (function (_super) {
22
+ __extends(AcDbSymbolTableRecord, _super);
23
+ function AcDbSymbolTableRecord(attrs, defaultAttrs) {
24
+ attrs = attrs || {};
25
+ defaults(attrs, { name: '' });
26
+ return _super.call(this, attrs, defaultAttrs) || this;
27
+ }
28
+ Object.defineProperty(AcDbSymbolTableRecord.prototype, "name", {
29
+ /**
30
+ * The name of symbol table record used for DXF group code 2.
31
+ */
32
+ get: function () {
33
+ return this.getAttr('name');
34
+ },
35
+ set: function (value) {
36
+ this.setAttr('name', value);
37
+ },
38
+ enumerable: false,
39
+ configurable: true
40
+ });
41
+ return AcDbSymbolTableRecord;
42
+ }(AcDbObject));
43
+ export { AcDbSymbolTableRecord };
44
+ //# sourceMappingURL=AcDbSymbolTableRecord.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcDbSymbolTableRecord.js","sourceRoot":"","sources":["../../src/database/AcDbSymbolTableRecord.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAA;AAEpC,OAAO,EAAE,UAAU,EAAmB,MAAM,oBAAoB,CAAA;AAMhE;;GAEG;AACH;IAEU,yCAAiB;IACzB,+BAAY,KAAsB,EAAE,YAA6B;QAC/D,KAAK,GAAG,KAAK,IAAI,EAAE,CAAA;QACnB,QAAQ,CAAC,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAA;QAC7B,OAAA,MAAK,YAAC,KAAK,EAAE,YAAY,CAAC,SAAA;IAC5B,CAAC;IAKD,sBAAI,uCAAI;QAHR;;WAEG;aACH;YACE,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAA;QAC7B,CAAC;aACD,UAAS,KAAa;YACpB,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,KAAK,CAAC,CAAA;QAC7B,CAAC;;;OAHA;IAIH,4BAAC;AAAD,CAAC,AAlBD,CAEU,UAAU,GAgBnB"}
@@ -0,0 +1,14 @@
1
+ import { AcDbDatabase } from './AcDbDatabase';
2
+ import { AcDbSymbolTable } from './AcDbSymbolTable';
3
+ import { AcDbTextStyleTableRecord } from './AcDbTextStyleTableRecord';
4
+ /**
5
+ * This class is the symbol table for text style table records which represent text styles.
6
+ */
7
+ export declare class AcDbTextStyleTable extends AcDbSymbolTable<AcDbTextStyleTableRecord> {
8
+ constructor(db: AcDbDatabase);
9
+ /**
10
+ * Get all of fonts used in text style
11
+ */
12
+ get fonts(): string[];
13
+ }
14
+ //# sourceMappingURL=AcDbTextStyleTable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcDbTextStyleTable.d.ts","sourceRoot":"","sources":["../../src/database/AcDbTextStyleTable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAA;AAErE;;GAEG;AACH,qBAAa,kBAAmB,SAAQ,eAAe,CAAC,wBAAwB,CAAC;gBACnE,EAAE,EAAE,YAAY;IAI5B;;OAEG;IACH,IAAI,KAAK,aAoBR;CACF"}
@@ -0,0 +1,78 @@
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
+ import { AcDbSymbolTable } from './AcDbSymbolTable';
28
+ /**
29
+ * This class is the symbol table for text style table records which represent text styles.
30
+ */
31
+ var AcDbTextStyleTable = /** @class */ (function (_super) {
32
+ __extends(AcDbTextStyleTable, _super);
33
+ function AcDbTextStyleTable(db) {
34
+ return _super.call(this, db) || this;
35
+ }
36
+ Object.defineProperty(AcDbTextStyleTable.prototype, "fonts", {
37
+ /**
38
+ * Get all of fonts used in text style
39
+ */
40
+ get: function () {
41
+ var e_1, _a;
42
+ var fonts = new Set();
43
+ var setFontName = function (fontFileName) {
44
+ if (fontFileName) {
45
+ var lastDotIndex = fontFileName.lastIndexOf('.');
46
+ if (lastDotIndex >= 0) {
47
+ var fontName = fontFileName.substring(0, lastDotIndex).toLowerCase();
48
+ fonts.add(fontName);
49
+ }
50
+ else {
51
+ fonts.add(fontFileName.toLowerCase());
52
+ }
53
+ }
54
+ };
55
+ var iterator = this.newIterator();
56
+ try {
57
+ for (var iterator_1 = __values(iterator), iterator_1_1 = iterator_1.next(); !iterator_1_1.done; iterator_1_1 = iterator_1.next()) {
58
+ var item = iterator_1_1.value;
59
+ setFontName(item.fileName);
60
+ setFontName(item.bigFontFileName);
61
+ }
62
+ }
63
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
64
+ finally {
65
+ try {
66
+ if (iterator_1_1 && !iterator_1_1.done && (_a = iterator_1.return)) _a.call(iterator_1);
67
+ }
68
+ finally { if (e_1) throw e_1.error; }
69
+ }
70
+ return Array.from(fonts);
71
+ },
72
+ enumerable: false,
73
+ configurable: true
74
+ });
75
+ return AcDbTextStyleTable;
76
+ }(AcDbSymbolTable));
77
+ export { AcDbTextStyleTable };
78
+ //# sourceMappingURL=AcDbTextStyleTable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcDbTextStyleTable.js","sourceRoot":"","sources":["../../src/database/AcDbTextStyleTable.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;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 * This class represents the records that are found in the text style table (known as the "style"
5
+ * table in DXF). Each of these records represents a specific set of text parameters such as font,
6
+ * default size, relative x scaling, vertical or horizontal, etc.
7
+ */
8
+ export declare class AcDbTextStyleTableRecord extends AcDbSymbolTableRecord {
9
+ private _textStyle;
10
+ private _isVertical;
11
+ constructor(textStyle: AcGiBaseTextStyle);
12
+ /**
13
+ * The obliquing angle. The obliquing angle is the angle from the text's vertical; that is, the
14
+ * top of the text "slants" relative to the bottom--the same as the slope in this italic text.
15
+ * Positive angles slant characters forward at their tops. Negative angles have 2pi added to them
16
+ * to convert them to their positive equivalent.
17
+ */
18
+ get obliquingAngle(): number;
19
+ set obliquingAngle(value: number);
20
+ /**
21
+ * The text height used for the last text created using this text style. This value is updated
22
+ * automatically by AutoCAD after the creation of any text object that references this text style
23
+ * table record. If the textSize value for this text style is 0, then the priorSize value is used
24
+ * by AutoCAD as the default text height for the next text created using this text style.
25
+ *
26
+ * This value is automatically changed by the use of the text command. It will only be automatically
27
+ * changed if the textSize is set to 0 so that users are prompted for a height.
28
+ */
29
+ get priorSize(): number;
30
+ set priorSize(value: number);
31
+ /**
32
+ * The default size of the text drawn with this text style. If the text size is set to 0, then each
33
+ * use of the AutoCAD text commands prompt for a text height to use in creating the text entity. If
34
+ * textSize is non-zero, the text command will not prompt for a text height and will use this value.
35
+ */
36
+ get textSize(): number;
37
+ set textSize(value: number);
38
+ /**
39
+ * The width factor (also referred to as the relative X-scale factor) for the text style table
40
+ * record. The width factor is applied to the text's width to allow the width to be adjusted
41
+ * independently of the height. For example, if the width factor value is 0.8, then the text is
42
+ * drawn with a width that is 80% of its normal "unadjusted" width.
43
+ */
44
+ get xScale(): number;
45
+ set xScale(value: number);
46
+ /**
47
+ * True if text drawn with this text style is drawn vertically. Faslse otherwise.
48
+ */
49
+ get isVertical(): boolean;
50
+ set isVertical(value: boolean);
51
+ /**
52
+ * The name of the font file for this text style
53
+ */
54
+ get fileName(): string;
55
+ set fileName(value: string);
56
+ /**
57
+ * The name of the big font file for this text style
58
+ */
59
+ get bigFontFileName(): string;
60
+ set bigFontFileName(value: string);
61
+ /**
62
+ * Text style information used by renderer.
63
+ */
64
+ get textStyle(): AcGiBaseTextStyle;
65
+ private getFileNameWithoutExtension;
66
+ }
67
+ //# sourceMappingURL=AcDbTextStyleTableRecord.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcDbTextStyleTableRecord.d.ts","sourceRoot":"","sources":["../../src/database/AcDbTextStyleTableRecord.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AAEhE,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAE/D;;;;GAIG;AACH,qBAAa,wBAAyB,SAAQ,qBAAqB;IACjE,OAAO,CAAC,UAAU,CAAmB;IACrC,OAAO,CAAC,WAAW,CAAS;gBAEhB,SAAS,EAAE,iBAAiB;IAYxC;;;;;OAKG;IACH,IAAI,cAAc,IAGQ,MAAM,CAD/B;IACD,IAAI,cAAc,CAAC,KAAK,EAAE,MAAM,EAE/B;IAED;;;;;;;;OAQG;IACH,IAAI,SAAS,IAGQ,MAAM,CAD1B;IACD,IAAI,SAAS,CAAC,KAAK,EAAE,MAAM,EAE1B;IAED;;;;OAIG;IACH,IAAI,QAAQ,IAGQ,MAAM,CADzB;IACD,IAAI,QAAQ,CAAC,KAAK,EAAE,MAAM,EAEzB;IAED;;;;;OAKG;IACH,IAAI,MAAM,IAGQ,MAAM,CADvB;IACD,IAAI,MAAM,CAAC,KAAK,EAAE,MAAM,EAEvB;IAED;;OAEG;IACH,IAAI,UAAU,IAGQ,OAAO,CAD5B;IACD,IAAI,UAAU,CAAC,KAAK,EAAE,OAAO,EAE5B;IAED;;OAEG;IACH,IAAI,QAAQ,IAGQ,MAAM,CADzB;IACD,IAAI,QAAQ,CAAC,KAAK,EAAE,MAAM,EAEzB;IAED;;OAEG;IACH,IAAI,eAAe,IAGQ,MAAM,CADhC;IACD,IAAI,eAAe,CAAC,KAAK,EAAE,MAAM,EAEhC;IAED;;OAEG;IACH,IAAI,SAAS,sBAEZ;IAED,OAAO,CAAC,2BAA2B;CAgBpC"}
@@ -0,0 +1,166 @@
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 { AcDbSymbolTableRecord } from './AcDbSymbolTableRecord';
17
+ /**
18
+ * This class represents the records that are found in the text style table (known as the "style"
19
+ * table in DXF). Each of these records represents a specific set of text parameters such as font,
20
+ * default size, relative x scaling, vertical or horizontal, etc.
21
+ */
22
+ var AcDbTextStyleTableRecord = /** @class */ (function (_super) {
23
+ __extends(AcDbTextStyleTableRecord, _super);
24
+ function AcDbTextStyleTableRecord(textStyle) {
25
+ var _this = _super.call(this) || this;
26
+ _this.name = textStyle.name;
27
+ _this._textStyle = textStyle;
28
+ // Property `font` in text style may be empty string
29
+ // If it contans file extension, just remove file extension.
30
+ _this._textStyle.font = _this.getFileNameWithoutExtension(_this._textStyle.font || _this._textStyle.extendedFont || _this.name);
31
+ _this._isVertical = false;
32
+ return _this;
33
+ }
34
+ Object.defineProperty(AcDbTextStyleTableRecord.prototype, "obliquingAngle", {
35
+ /**
36
+ * The obliquing angle. The obliquing angle is the angle from the text's vertical; that is, the
37
+ * top of the text "slants" relative to the bottom--the same as the slope in this italic text.
38
+ * Positive angles slant characters forward at their tops. Negative angles have 2pi added to them
39
+ * to convert them to their positive equivalent.
40
+ */
41
+ get: function () {
42
+ return this._textStyle.obliqueAngle;
43
+ },
44
+ set: function (value) {
45
+ this._textStyle.obliqueAngle = value;
46
+ },
47
+ enumerable: false,
48
+ configurable: true
49
+ });
50
+ Object.defineProperty(AcDbTextStyleTableRecord.prototype, "priorSize", {
51
+ /**
52
+ * The text height used for the last text created using this text style. This value is updated
53
+ * automatically by AutoCAD after the creation of any text object that references this text style
54
+ * table record. If the textSize value for this text style is 0, then the priorSize value is used
55
+ * by AutoCAD as the default text height for the next text created using this text style.
56
+ *
57
+ * This value is automatically changed by the use of the text command. It will only be automatically
58
+ * changed if the textSize is set to 0 so that users are prompted for a height.
59
+ */
60
+ get: function () {
61
+ return this._textStyle.lastHeight;
62
+ },
63
+ set: function (value) {
64
+ this._textStyle.lastHeight = value;
65
+ },
66
+ enumerable: false,
67
+ configurable: true
68
+ });
69
+ Object.defineProperty(AcDbTextStyleTableRecord.prototype, "textSize", {
70
+ /**
71
+ * The default size of the text drawn with this text style. If the text size is set to 0, then each
72
+ * use of the AutoCAD text commands prompt for a text height to use in creating the text entity. If
73
+ * textSize is non-zero, the text command will not prompt for a text height and will use this value.
74
+ */
75
+ get: function () {
76
+ return this._textStyle.fixedTextHeight;
77
+ },
78
+ set: function (value) {
79
+ this._textStyle.fixedTextHeight = value;
80
+ },
81
+ enumerable: false,
82
+ configurable: true
83
+ });
84
+ Object.defineProperty(AcDbTextStyleTableRecord.prototype, "xScale", {
85
+ /**
86
+ * The width factor (also referred to as the relative X-scale factor) for the text style table
87
+ * record. The width factor is applied to the text's width to allow the width to be adjusted
88
+ * independently of the height. For example, if the width factor value is 0.8, then the text is
89
+ * drawn with a width that is 80% of its normal "unadjusted" width.
90
+ */
91
+ get: function () {
92
+ return this._textStyle.widthFactor;
93
+ },
94
+ set: function (value) {
95
+ this._textStyle.widthFactor = value;
96
+ },
97
+ enumerable: false,
98
+ configurable: true
99
+ });
100
+ Object.defineProperty(AcDbTextStyleTableRecord.prototype, "isVertical", {
101
+ /**
102
+ * True if text drawn with this text style is drawn vertically. Faslse otherwise.
103
+ */
104
+ get: function () {
105
+ return this._isVertical;
106
+ },
107
+ set: function (value) {
108
+ this._isVertical = value;
109
+ },
110
+ enumerable: false,
111
+ configurable: true
112
+ });
113
+ Object.defineProperty(AcDbTextStyleTableRecord.prototype, "fileName", {
114
+ /**
115
+ * The name of the font file for this text style
116
+ */
117
+ get: function () {
118
+ return this._textStyle.font;
119
+ },
120
+ set: function (value) {
121
+ this._textStyle.font = value;
122
+ },
123
+ enumerable: false,
124
+ configurable: true
125
+ });
126
+ Object.defineProperty(AcDbTextStyleTableRecord.prototype, "bigFontFileName", {
127
+ /**
128
+ * The name of the big font file for this text style
129
+ */
130
+ get: function () {
131
+ return this._textStyle.bigFont;
132
+ },
133
+ set: function (value) {
134
+ this._textStyle.bigFont = value;
135
+ },
136
+ enumerable: false,
137
+ configurable: true
138
+ });
139
+ Object.defineProperty(AcDbTextStyleTableRecord.prototype, "textStyle", {
140
+ /**
141
+ * Text style information used by renderer.
142
+ */
143
+ get: function () {
144
+ return this._textStyle;
145
+ },
146
+ enumerable: false,
147
+ configurable: true
148
+ });
149
+ AcDbTextStyleTableRecord.prototype.getFileNameWithoutExtension = function (pathName) {
150
+ var fileName = pathName.split('/').pop();
151
+ if (fileName) {
152
+ // Find the last dot to separate the extension, if any
153
+ var dotIndex = fileName.lastIndexOf('.');
154
+ // If no dot is found, return the file name as is
155
+ if (dotIndex === -1) {
156
+ return fileName;
157
+ }
158
+ // Otherwise, return the part before the last dot (file name without extension)
159
+ return fileName.substring(0, dotIndex);
160
+ }
161
+ return pathName;
162
+ };
163
+ return AcDbTextStyleTableRecord;
164
+ }(AcDbSymbolTableRecord));
165
+ export { AcDbTextStyleTableRecord };
166
+ //# sourceMappingURL=AcDbTextStyleTableRecord.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcDbTextStyleTableRecord.js","sourceRoot":"","sources":["../../src/database/AcDbTextStyleTable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C,qBAAqB,GA2HlE"}
@@ -0,0 +1,11 @@
1
+ import { AcDbDatabase } from './AcDbDatabase';
2
+ import { AcDbSymbolTable } from './AcDbSymbolTable';
3
+ import { AcDbViewportTableRecord } from './AcDbViewportTableRecord';
4
+ /**
5
+ * This class is the symbol table for viewport table records which represents viewport configurations
6
+ * within AutoCAD.
7
+ */
8
+ export declare class AcDbViewportTable extends AcDbSymbolTable<AcDbViewportTableRecord> {
9
+ constructor(db: AcDbDatabase);
10
+ }
11
+ //# sourceMappingURL=AcDbViewportTable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcDbViewportTable.d.ts","sourceRoot":"","sources":["../../src/database/AcDbViewportTable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAA;AAEnE;;;GAGG;AACH,qBAAa,iBAAkB,SAAQ,eAAe,CAAC,uBAAuB,CAAC;gBACjE,EAAE,EAAE,YAAY;CAG7B"}