@mlightcad/data-model 1.1.2 → 1.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (259) hide show
  1. package/dist/data-model.js +5501 -1021
  2. package/dist/data-model.umd.cjs +2 -2
  3. package/lib/base/AcDbHostApplicationServices.d.ts +72 -6
  4. package/lib/base/AcDbHostApplicationServices.d.ts.map +1 -1
  5. package/lib/base/AcDbHostApplicationServices.js +71 -7
  6. package/lib/base/AcDbHostApplicationServices.js.map +1 -1
  7. package/lib/base/AcDbObject.d.ts +160 -25
  8. package/lib/base/AcDbObject.d.ts.map +1 -1
  9. package/lib/base/AcDbObject.js +149 -25
  10. package/lib/base/AcDbObject.js.map +1 -1
  11. package/lib/converter/AcDbBatchProcessing.d.ts +112 -10
  12. package/lib/converter/AcDbBatchProcessing.d.ts.map +1 -1
  13. package/lib/converter/AcDbBatchProcessing.js +110 -11
  14. package/lib/converter/AcDbBatchProcessing.js.map +1 -1
  15. package/lib/converter/AcDbDxfConverter.d.ts +224 -6
  16. package/lib/converter/AcDbDxfConverter.d.ts.map +1 -1
  17. package/lib/converter/AcDbDxfConverter.js +224 -6
  18. package/lib/converter/AcDbDxfConverter.js.map +1 -1
  19. package/lib/converter/AcDbDxfParseWorker.d.ts +16 -0
  20. package/lib/converter/AcDbDxfParseWorker.d.ts.map +1 -1
  21. package/lib/converter/AcDbDxfParseWorker.js +16 -0
  22. package/lib/converter/AcDbDxfParseWorker.js.map +1 -1
  23. package/lib/converter/AcDbEntitiyConverter.d.ts +118 -3
  24. package/lib/converter/AcDbEntitiyConverter.d.ts.map +1 -1
  25. package/lib/converter/AcDbEntitiyConverter.js +118 -3
  26. package/lib/converter/AcDbEntitiyConverter.js.map +1 -1
  27. package/lib/converter/AcDbObjectConverter.d.ts +52 -0
  28. package/lib/converter/AcDbObjectConverter.d.ts.map +1 -1
  29. package/lib/converter/AcDbObjectConverter.js +52 -0
  30. package/lib/converter/AcDbObjectConverter.js.map +1 -1
  31. package/lib/database/AcDbBlockTable.d.ts +35 -3
  32. package/lib/database/AcDbBlockTable.d.ts.map +1 -1
  33. package/lib/database/AcDbBlockTable.js +35 -3
  34. package/lib/database/AcDbBlockTable.js.map +1 -1
  35. package/lib/database/AcDbBlockTableRecord.d.ts +98 -15
  36. package/lib/database/AcDbBlockTableRecord.d.ts.map +1 -1
  37. package/lib/database/AcDbBlockTableRecord.js +96 -15
  38. package/lib/database/AcDbBlockTableRecord.js.map +1 -1
  39. package/lib/database/AcDbDatabase.d.ts +312 -36
  40. package/lib/database/AcDbDatabase.d.ts.map +1 -1
  41. package/lib/database/AcDbDatabase.js +237 -46
  42. package/lib/database/AcDbDatabase.js.map +1 -1
  43. package/lib/database/AcDbDatabaseConverter.d.ts +79 -14
  44. package/lib/database/AcDbDatabaseConverter.d.ts.map +1 -1
  45. package/lib/database/AcDbDatabaseConverter.js +46 -13
  46. package/lib/database/AcDbDatabaseConverter.js.map +1 -1
  47. package/lib/database/AcDbDatabaseConverterManager.d.ts +97 -15
  48. package/lib/database/AcDbDatabaseConverterManager.d.ts.map +1 -1
  49. package/lib/database/AcDbDatabaseConverterManager.js +90 -15
  50. package/lib/database/AcDbDatabaseConverterManager.js.map +1 -1
  51. package/lib/database/AcDbDimStyleTable.d.ts +22 -2
  52. package/lib/database/AcDbDimStyleTable.d.ts.map +1 -1
  53. package/lib/database/AcDbDimStyleTable.js +22 -2
  54. package/lib/database/AcDbDimStyleTable.js.map +1 -1
  55. package/lib/database/AcDbDimStyleTableRecord.d.ts +115 -0
  56. package/lib/database/AcDbDimStyleTableRecord.d.ts.map +1 -1
  57. package/lib/database/AcDbDimStyleTableRecord.js +44 -0
  58. package/lib/database/AcDbDimStyleTableRecord.js.map +1 -1
  59. package/lib/database/AcDbLayerTable.d.ts +39 -2
  60. package/lib/database/AcDbLayerTable.d.ts.map +1 -1
  61. package/lib/database/AcDbLayerTable.js +39 -2
  62. package/lib/database/AcDbLayerTable.js.map +1 -1
  63. package/lib/database/AcDbLayerTableRecord.d.ts +198 -18
  64. package/lib/database/AcDbLayerTableRecord.d.ts.map +1 -1
  65. package/lib/database/AcDbLayerTableRecord.js +182 -19
  66. package/lib/database/AcDbLayerTableRecord.js.map +1 -1
  67. package/lib/database/AcDbLinetypeTable.d.ts +21 -2
  68. package/lib/database/AcDbLinetypeTable.d.ts.map +1 -1
  69. package/lib/database/AcDbLinetypeTable.js +21 -2
  70. package/lib/database/AcDbLinetypeTable.js.map +1 -1
  71. package/lib/database/AcDbLinetypeTableRecord.d.ts +46 -14
  72. package/lib/database/AcDbLinetypeTableRecord.d.ts.map +1 -1
  73. package/lib/database/AcDbLinetypeTableRecord.js +46 -14
  74. package/lib/database/AcDbLinetypeTableRecord.js.map +1 -1
  75. package/lib/database/AcDbSymbolTable.d.ts +134 -29
  76. package/lib/database/AcDbSymbolTable.d.ts.map +1 -1
  77. package/lib/database/AcDbSymbolTable.js +133 -37
  78. package/lib/database/AcDbSymbolTable.js.map +1 -1
  79. package/lib/database/AcDbSymbolTableRecord.d.ts +47 -2
  80. package/lib/database/AcDbSymbolTableRecord.d.ts.map +1 -1
  81. package/lib/database/AcDbSymbolTableRecord.js +40 -2
  82. package/lib/database/AcDbSymbolTableRecord.js.map +1 -1
  83. package/lib/database/AcDbTextStyleTable.d.ts +36 -2
  84. package/lib/database/AcDbTextStyleTable.d.ts.map +1 -1
  85. package/lib/database/AcDbTextStyleTable.js +36 -2
  86. package/lib/database/AcDbTextStyleTable.js.map +1 -1
  87. package/lib/database/AcDbTextStyleTableRecord.d.ts +129 -17
  88. package/lib/database/AcDbTextStyleTableRecord.d.ts.map +1 -1
  89. package/lib/database/AcDbTextStyleTableRecord.js +127 -17
  90. package/lib/database/AcDbTextStyleTableRecord.js.map +1 -1
  91. package/lib/database/AcDbViewportTable.d.ts +22 -2
  92. package/lib/database/AcDbViewportTable.d.ts.map +1 -1
  93. package/lib/database/AcDbViewportTable.js +22 -2
  94. package/lib/database/AcDbViewportTable.js.map +1 -1
  95. package/lib/database/AcDbViewportTableRecord.d.ts +74 -9
  96. package/lib/database/AcDbViewportTableRecord.d.ts.map +1 -1
  97. package/lib/database/AcDbViewportTableRecord.js +65 -9
  98. package/lib/database/AcDbViewportTableRecord.js.map +1 -1
  99. package/lib/entity/AcDbArc.d.ts +202 -17
  100. package/lib/entity/AcDbArc.d.ts.map +1 -1
  101. package/lib/entity/AcDbArc.js +201 -17
  102. package/lib/entity/AcDbArc.js.map +1 -1
  103. package/lib/entity/AcDbBlockReference.d.ts +147 -13
  104. package/lib/entity/AcDbBlockReference.d.ts.map +1 -1
  105. package/lib/entity/AcDbBlockReference.js +142 -13
  106. package/lib/entity/AcDbBlockReference.js.map +1 -1
  107. package/lib/entity/AcDbCircle.d.ts +145 -12
  108. package/lib/entity/AcDbCircle.d.ts.map +1 -1
  109. package/lib/entity/AcDbCircle.js +144 -12
  110. package/lib/entity/AcDbCircle.js.map +1 -1
  111. package/lib/entity/AcDbCurve.d.ts +33 -2
  112. package/lib/entity/AcDbCurve.d.ts.map +1 -1
  113. package/lib/entity/AcDbCurve.js +17 -0
  114. package/lib/entity/AcDbCurve.js.map +1 -1
  115. package/lib/entity/AcDbEllipse.d.ts +168 -16
  116. package/lib/entity/AcDbEllipse.d.ts.map +1 -1
  117. package/lib/entity/AcDbEllipse.js +167 -16
  118. package/lib/entity/AcDbEllipse.js.map +1 -1
  119. package/lib/entity/AcDbEntity.d.ts +299 -35
  120. package/lib/entity/AcDbEntity.d.ts.map +1 -1
  121. package/lib/entity/AcDbEntity.js +275 -27
  122. package/lib/entity/AcDbEntity.js.map +1 -1
  123. package/lib/entity/AcDbHatch.d.ts +60 -4
  124. package/lib/entity/AcDbHatch.d.ts.map +1 -1
  125. package/lib/entity/AcDbHatch.js +52 -4
  126. package/lib/entity/AcDbHatch.js.map +1 -1
  127. package/lib/entity/AcDbLeader.d.ts +157 -10
  128. package/lib/entity/AcDbLeader.d.ts.map +1 -1
  129. package/lib/entity/AcDbLeader.js +149 -10
  130. package/lib/entity/AcDbLeader.js.map +1 -1
  131. package/lib/entity/AcDbLine.d.ts +154 -13
  132. package/lib/entity/AcDbLine.d.ts.map +1 -1
  133. package/lib/entity/AcDbLine.js +153 -13
  134. package/lib/entity/AcDbLine.js.map +1 -1
  135. package/lib/entity/AcDbMText.d.ts +127 -11
  136. package/lib/entity/AcDbMText.d.ts.map +1 -1
  137. package/lib/entity/AcDbMText.js +112 -11
  138. package/lib/entity/AcDbMText.js.map +1 -1
  139. package/lib/entity/AcDbPoint.d.ts +86 -7
  140. package/lib/entity/AcDbPoint.d.ts.map +1 -1
  141. package/lib/entity/AcDbPoint.js +85 -7
  142. package/lib/entity/AcDbPoint.js.map +1 -1
  143. package/lib/entity/AcDbPolyline.d.ts +172 -25
  144. package/lib/entity/AcDbPolyline.d.ts.map +1 -1
  145. package/lib/entity/AcDbPolyline.js +170 -25
  146. package/lib/entity/AcDbPolyline.js.map +1 -1
  147. package/lib/entity/AcDbRasterImage.d.ts +75 -31
  148. package/lib/entity/AcDbRasterImage.d.ts.map +1 -1
  149. package/lib/entity/AcDbRasterImage.js +60 -31
  150. package/lib/entity/AcDbRasterImage.js.map +1 -1
  151. package/lib/entity/AcDbRay.d.ts +115 -9
  152. package/lib/entity/AcDbRay.d.ts.map +1 -1
  153. package/lib/entity/AcDbRay.js +113 -9
  154. package/lib/entity/AcDbRay.js.map +1 -1
  155. package/lib/entity/AcDbSpline.d.ts +106 -14
  156. package/lib/entity/AcDbSpline.d.ts.map +1 -1
  157. package/lib/entity/AcDbSpline.js +67 -4
  158. package/lib/entity/AcDbSpline.js.map +1 -1
  159. package/lib/entity/AcDbTable.d.ts +161 -44
  160. package/lib/entity/AcDbTable.d.ts.map +1 -1
  161. package/lib/entity/AcDbTable.js +135 -44
  162. package/lib/entity/AcDbTable.js.map +1 -1
  163. package/lib/entity/AcDbText.d.ts +298 -25
  164. package/lib/entity/AcDbText.d.ts.map +1 -1
  165. package/lib/entity/AcDbText.js +288 -25
  166. package/lib/entity/AcDbText.js.map +1 -1
  167. package/lib/entity/AcDbTrace.d.ts +150 -23
  168. package/lib/entity/AcDbTrace.d.ts.map +1 -1
  169. package/lib/entity/AcDbTrace.js +147 -23
  170. package/lib/entity/AcDbTrace.js.map +1 -1
  171. package/lib/entity/AcDbViewport.d.ts +122 -9
  172. package/lib/entity/AcDbViewport.d.ts.map +1 -1
  173. package/lib/entity/AcDbViewport.js +122 -9
  174. package/lib/entity/AcDbViewport.js.map +1 -1
  175. package/lib/entity/AcDbWipeout.d.ts +29 -1
  176. package/lib/entity/AcDbWipeout.d.ts.map +1 -1
  177. package/lib/entity/AcDbWipeout.js +29 -1
  178. package/lib/entity/AcDbWipeout.js.map +1 -1
  179. package/lib/entity/AcDbXline.d.ts +116 -9
  180. package/lib/entity/AcDbXline.d.ts.map +1 -1
  181. package/lib/entity/AcDbXline.js +114 -9
  182. package/lib/entity/AcDbXline.js.map +1 -1
  183. package/lib/entity/dimension/AcDb3PointAngularDimension.d.ts +56 -12
  184. package/lib/entity/dimension/AcDb3PointAngularDimension.d.ts.map +1 -1
  185. package/lib/entity/dimension/AcDb3PointAngularDimension.js +56 -12
  186. package/lib/entity/dimension/AcDb3PointAngularDimension.js.map +1 -1
  187. package/lib/entity/dimension/AcDbAlignedDimension.d.ts +158 -17
  188. package/lib/entity/dimension/AcDbAlignedDimension.d.ts.map +1 -1
  189. package/lib/entity/dimension/AcDbAlignedDimension.js +153 -17
  190. package/lib/entity/dimension/AcDbAlignedDimension.js.map +1 -1
  191. package/lib/entity/dimension/AcDbArcDimension.d.ts +58 -12
  192. package/lib/entity/dimension/AcDbArcDimension.d.ts.map +1 -1
  193. package/lib/entity/dimension/AcDbArcDimension.js +58 -12
  194. package/lib/entity/dimension/AcDbArcDimension.js.map +1 -1
  195. package/lib/entity/dimension/AcDbDiametricDimension.d.ts +99 -25
  196. package/lib/entity/dimension/AcDbDiametricDimension.d.ts.map +1 -1
  197. package/lib/entity/dimension/AcDbDiametricDimension.js +99 -25
  198. package/lib/entity/dimension/AcDbDiametricDimension.js.map +1 -1
  199. package/lib/entity/dimension/AcDbDimension.d.ts +108 -14
  200. package/lib/entity/dimension/AcDbDimension.d.ts.map +1 -1
  201. package/lib/entity/dimension/AcDbDimension.js +99 -14
  202. package/lib/entity/dimension/AcDbDimension.js.map +1 -1
  203. package/lib/entity/dimension/AcDbOrdinateDimension.d.ts +48 -16
  204. package/lib/entity/dimension/AcDbOrdinateDimension.d.ts.map +1 -1
  205. package/lib/entity/dimension/AcDbOrdinateDimension.js +48 -16
  206. package/lib/entity/dimension/AcDbOrdinateDimension.js.map +1 -1
  207. package/lib/entity/dimension/AcDbRadialDimension.d.ts +167 -24
  208. package/lib/entity/dimension/AcDbRadialDimension.d.ts.map +1 -1
  209. package/lib/entity/dimension/AcDbRadialDimension.js +162 -24
  210. package/lib/entity/dimension/AcDbRadialDimension.js.map +1 -1
  211. package/lib/misc/AcDbAngleUnits.d.ts +12 -0
  212. package/lib/misc/AcDbAngleUnits.d.ts.map +1 -1
  213. package/lib/misc/AcDbAngleUnits.js +12 -0
  214. package/lib/misc/AcDbAngleUnits.js.map +1 -1
  215. package/lib/misc/AcDbConstants.d.ts +20 -0
  216. package/lib/misc/AcDbConstants.d.ts.map +1 -1
  217. package/lib/misc/AcDbConstants.js +20 -0
  218. package/lib/misc/AcDbConstants.js.map +1 -1
  219. package/lib/misc/AcDbDimArrowType.d.ts +24 -21
  220. package/lib/misc/AcDbDimArrowType.d.ts.map +1 -1
  221. package/lib/misc/AcDbDimArrowType.js +24 -21
  222. package/lib/misc/AcDbDimArrowType.js.map +1 -1
  223. package/lib/misc/AcDbObjectIterator.d.ts +42 -3
  224. package/lib/misc/AcDbObjectIterator.d.ts.map +1 -1
  225. package/lib/misc/AcDbObjectIterator.js +42 -3
  226. package/lib/misc/AcDbObjectIterator.js.map +1 -1
  227. package/lib/misc/AcDbOsnapMode.d.ts +18 -10
  228. package/lib/misc/AcDbOsnapMode.d.ts.map +1 -1
  229. package/lib/misc/AcDbOsnapMode.js +18 -10
  230. package/lib/misc/AcDbOsnapMode.js.map +1 -1
  231. package/lib/misc/AcDbRenderingCache.d.ts +107 -29
  232. package/lib/misc/AcDbRenderingCache.d.ts.map +1 -1
  233. package/lib/misc/AcDbRenderingCache.js +105 -29
  234. package/lib/misc/AcDbRenderingCache.js.map +1 -1
  235. package/lib/misc/AcDbUnitsValue.d.ts +58 -8
  236. package/lib/misc/AcDbUnitsValue.d.ts.map +1 -1
  237. package/lib/misc/AcDbUnitsValue.js +58 -8
  238. package/lib/misc/AcDbUnitsValue.js.map +1 -1
  239. package/lib/object/AcDbDictionary.d.ts +128 -30
  240. package/lib/object/AcDbDictionary.d.ts.map +1 -1
  241. package/lib/object/AcDbDictionary.js +126 -30
  242. package/lib/object/AcDbDictionary.js.map +1 -1
  243. package/lib/object/AcDbRasterImageDef.d.ts +38 -9
  244. package/lib/object/AcDbRasterImageDef.d.ts.map +1 -1
  245. package/lib/object/AcDbRasterImageDef.js +37 -9
  246. package/lib/object/AcDbRasterImageDef.js.map +1 -1
  247. package/lib/object/layout/AcDbLayout.d.ts +152 -13
  248. package/lib/object/layout/AcDbLayout.d.ts.map +1 -1
  249. package/lib/object/layout/AcDbLayout.js +146 -13
  250. package/lib/object/layout/AcDbLayout.js.map +1 -1
  251. package/lib/object/layout/AcDbLayoutDictionary.d.ts +35 -7
  252. package/lib/object/layout/AcDbLayoutDictionary.d.ts.map +1 -1
  253. package/lib/object/layout/AcDbLayoutDictionary.js +35 -7
  254. package/lib/object/layout/AcDbLayoutDictionary.js.map +1 -1
  255. package/lib/object/layout/AcDbLayoutManager.d.ts +103 -31
  256. package/lib/object/layout/AcDbLayoutManager.d.ts.map +1 -1
  257. package/lib/object/layout/AcDbLayoutManager.js +98 -31
  258. package/lib/object/layout/AcDbLayoutManager.js.map +1 -1
  259. package/package.json +4 -4
@@ -1,51 +1,101 @@
1
1
  /**
2
- * Linear unit
2
+ * Enumeration of linear units used in AutoCAD drawings.
3
+ *
4
+ * This enum defines the various units that can be used to represent
5
+ * linear measurements in AutoCAD drawings, including metric, imperial,
6
+ * and survey units.
3
7
  */
4
8
  export declare enum AcDbUnitsValue {
9
+ /** Undefined or unitless */
5
10
  Undefined = 0,
11
+ /** Inches */
6
12
  Inches = 1,
13
+ /** Feet */
7
14
  Feet = 2,
15
+ /** Miles */
8
16
  Miles = 3,
17
+ /** Millimeters */
9
18
  Millimeters = 4,
19
+ /** Centimeters */
10
20
  Centimeters = 5,
21
+ /** Meters */
11
22
  Meters = 6,
23
+ /** Kilometers */
12
24
  Kilometers = 7,
25
+ /** Microinches */
13
26
  Microinches = 8,
27
+ /** Mils (thousandths of an inch) */
14
28
  Mils = 9,
29
+ /** Yards */
15
30
  Yards = 10,
31
+ /** Angstroms */
16
32
  Angstroms = 11,
33
+ /** Nanometers */
17
34
  Nanometers = 12,
35
+ /** Microns (micrometers) */
18
36
  Microns = 13,
37
+ /** Decimeters */
19
38
  Decimeters = 14,
39
+ /** Dekameters */
20
40
  Dekameters = 15,
41
+ /** Hectometers */
21
42
  Hectometers = 16,
43
+ /** Gigameters */
22
44
  Gigameters = 17,
45
+ /** Astronomical units */
23
46
  Astronomical = 18,
47
+ /** Light years */
24
48
  LightYears = 19,
49
+ /** Parsecs */
25
50
  Parsecs = 20,
26
51
  /**
27
- * Note: US Survey Feet is a historical survey unit that's about 2 parts per million larger than
52
+ * US Survey Feet - a historical survey unit that's about 2 parts per million larger than
28
53
  * the International Feet unit. This difference is significant only at scales used for mapping in
29
54
  * the U.S. The US Survey Feet setting is supported only for inserting or attaching drawings
30
55
  * starting with AutoCAD 2017-based products. Drawings opened in prior versions will treat the US
31
56
  * Survey Feet setting as Unitless.
32
57
  */
33
58
  USSurveyFeet = 21,
59
+ /** US Survey Inches */
34
60
  USSurveyInch = 22,
61
+ /** US Survey Yards */
35
62
  USSurveyYard = 23,
63
+ /** US Survey Miles */
36
64
  USSurveyMile = 24,
65
+ /** Maximum value for units */
37
66
  Max = 24
38
67
  }
39
68
  /**
40
- * Return true if the specified units value is metric units.
41
- * @param units Input units to check
42
- * @returns Return true if the specified units value is metric units.
69
+ * Checks if the specified units value represents metric units.
70
+ *
71
+ * This function returns true if the units are part of the metric system,
72
+ * including millimeters, centimeters, meters, kilometers, and their
73
+ * decimal multiples and submultiples.
74
+ *
75
+ * @param units - The units value to check
76
+ * @returns True if the units are metric, false otherwise
77
+ *
78
+ * @example
79
+ * ```typescript
80
+ * const isMetric = isMetricUnits(AcDbUnitsValue.Millimeters); // true
81
+ * const isMetric2 = isMetricUnits(AcDbUnitsValue.Inches); // false
82
+ * ```
43
83
  */
44
84
  export declare function isMetricUnits(units: AcDbUnitsValue): units is AcDbUnitsValue.Millimeters | AcDbUnitsValue.Centimeters | AcDbUnitsValue.Meters | AcDbUnitsValue.Kilometers | AcDbUnitsValue.Nanometers | AcDbUnitsValue.Microns | AcDbUnitsValue.Decimeters | AcDbUnitsValue.Dekameters | AcDbUnitsValue.Hectometers | AcDbUnitsValue.Gigameters;
45
85
  /**
46
- * Return true if the specified units value is imperial units.
47
- * @param units Input units to check
48
- * @returns Return true if the specified units value is imperial units.
86
+ * Checks if the specified units value represents imperial units.
87
+ *
88
+ * This function returns true if the units are part of the imperial system,
89
+ * including inches, feet, miles, yards, and US survey units.
90
+ *
91
+ * @param units - The units value to check
92
+ * @returns True if the units are imperial, false otherwise
93
+ *
94
+ * @example
95
+ * ```typescript
96
+ * const isImperial = isImperialUnits(AcDbUnitsValue.Inches); // true
97
+ * const isImperial2 = isImperialUnits(AcDbUnitsValue.Millimeters); // false
98
+ * ```
49
99
  */
50
100
  export declare function isImperialUnits(units: AcDbUnitsValue): units is AcDbUnitsValue.Inches | AcDbUnitsValue.Feet | AcDbUnitsValue.Miles | AcDbUnitsValue.Microinches | AcDbUnitsValue.Mils | AcDbUnitsValue.Yards | AcDbUnitsValue.USSurveyFeet;
51
101
  //# sourceMappingURL=AcDbUnitsValue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AcDbUnitsValue.d.ts","sourceRoot":"","sources":["../../src/misc/AcDbUnitsValue.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,cAAc;IACxB,SAAS,IAAI;IACb,MAAM,IAAI;IACV,IAAI,IAAI;IACR,KAAK,IAAI;IACT,WAAW,IAAI;IACf,WAAW,IAAI;IACf,MAAM,IAAI;IACV,UAAU,IAAI;IACd,WAAW,IAAI;IACf,IAAI,IAAI;IACR,KAAK,KAAK;IACV,SAAS,KAAK;IACd,UAAU,KAAK;IACf,OAAO,KAAK;IACZ,UAAU,KAAK;IACf,UAAU,KAAK;IACf,WAAW,KAAK;IAChB,UAAU,KAAK;IACf,YAAY,KAAK;IACjB,UAAU,KAAK;IACf,OAAO,KAAK;IACZ;;;;;;OAMG;IACH,YAAY,KAAK;IACjB,YAAY,KAAK;IACjB,YAAY,KAAK;IACjB,YAAY,KAAK;IACjB,GAAG,KAAe;CACnB;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,cAAc,8RAalD;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,cAAc,uLAUpD"}
1
+ {"version":3,"file":"AcDbUnitsValue.d.ts","sourceRoot":"","sources":["../../src/misc/AcDbUnitsValue.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,oBAAY,cAAc;IACxB,4BAA4B;IAC5B,SAAS,IAAI;IACb,aAAa;IACb,MAAM,IAAI;IACV,WAAW;IACX,IAAI,IAAI;IACR,YAAY;IACZ,KAAK,IAAI;IACT,kBAAkB;IAClB,WAAW,IAAI;IACf,kBAAkB;IAClB,WAAW,IAAI;IACf,aAAa;IACb,MAAM,IAAI;IACV,iBAAiB;IACjB,UAAU,IAAI;IACd,kBAAkB;IAClB,WAAW,IAAI;IACf,oCAAoC;IACpC,IAAI,IAAI;IACR,YAAY;IACZ,KAAK,KAAK;IACV,gBAAgB;IAChB,SAAS,KAAK;IACd,iBAAiB;IACjB,UAAU,KAAK;IACf,4BAA4B;IAC5B,OAAO,KAAK;IACZ,iBAAiB;IACjB,UAAU,KAAK;IACf,iBAAiB;IACjB,UAAU,KAAK;IACf,kBAAkB;IAClB,WAAW,KAAK;IAChB,iBAAiB;IACjB,UAAU,KAAK;IACf,yBAAyB;IACzB,YAAY,KAAK;IACjB,kBAAkB;IAClB,UAAU,KAAK;IACf,cAAc;IACd,OAAO,KAAK;IACZ;;;;;;OAMG;IACH,YAAY,KAAK;IACjB,uBAAuB;IACvB,YAAY,KAAK;IACjB,sBAAsB;IACtB,YAAY,KAAK;IACjB,sBAAsB;IACtB,YAAY,KAAK;IACjB,8BAA8B;IAC9B,GAAG,KAAe;CACnB;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,cAAc,8RAalD;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,cAAc,uLAUpD"}
@@ -1,46 +1,86 @@
1
1
  /**
2
- * Linear unit
2
+ * Enumeration of linear units used in AutoCAD drawings.
3
+ *
4
+ * This enum defines the various units that can be used to represent
5
+ * linear measurements in AutoCAD drawings, including metric, imperial,
6
+ * and survey units.
3
7
  */
4
8
  export var AcDbUnitsValue;
5
9
  (function (AcDbUnitsValue) {
10
+ /** Undefined or unitless */
6
11
  AcDbUnitsValue[AcDbUnitsValue["Undefined"] = 0] = "Undefined";
12
+ /** Inches */
7
13
  AcDbUnitsValue[AcDbUnitsValue["Inches"] = 1] = "Inches";
14
+ /** Feet */
8
15
  AcDbUnitsValue[AcDbUnitsValue["Feet"] = 2] = "Feet";
16
+ /** Miles */
9
17
  AcDbUnitsValue[AcDbUnitsValue["Miles"] = 3] = "Miles";
18
+ /** Millimeters */
10
19
  AcDbUnitsValue[AcDbUnitsValue["Millimeters"] = 4] = "Millimeters";
20
+ /** Centimeters */
11
21
  AcDbUnitsValue[AcDbUnitsValue["Centimeters"] = 5] = "Centimeters";
22
+ /** Meters */
12
23
  AcDbUnitsValue[AcDbUnitsValue["Meters"] = 6] = "Meters";
24
+ /** Kilometers */
13
25
  AcDbUnitsValue[AcDbUnitsValue["Kilometers"] = 7] = "Kilometers";
26
+ /** Microinches */
14
27
  AcDbUnitsValue[AcDbUnitsValue["Microinches"] = 8] = "Microinches";
28
+ /** Mils (thousandths of an inch) */
15
29
  AcDbUnitsValue[AcDbUnitsValue["Mils"] = 9] = "Mils";
30
+ /** Yards */
16
31
  AcDbUnitsValue[AcDbUnitsValue["Yards"] = 10] = "Yards";
32
+ /** Angstroms */
17
33
  AcDbUnitsValue[AcDbUnitsValue["Angstroms"] = 11] = "Angstroms";
34
+ /** Nanometers */
18
35
  AcDbUnitsValue[AcDbUnitsValue["Nanometers"] = 12] = "Nanometers";
36
+ /** Microns (micrometers) */
19
37
  AcDbUnitsValue[AcDbUnitsValue["Microns"] = 13] = "Microns";
38
+ /** Decimeters */
20
39
  AcDbUnitsValue[AcDbUnitsValue["Decimeters"] = 14] = "Decimeters";
40
+ /** Dekameters */
21
41
  AcDbUnitsValue[AcDbUnitsValue["Dekameters"] = 15] = "Dekameters";
42
+ /** Hectometers */
22
43
  AcDbUnitsValue[AcDbUnitsValue["Hectometers"] = 16] = "Hectometers";
44
+ /** Gigameters */
23
45
  AcDbUnitsValue[AcDbUnitsValue["Gigameters"] = 17] = "Gigameters";
46
+ /** Astronomical units */
24
47
  AcDbUnitsValue[AcDbUnitsValue["Astronomical"] = 18] = "Astronomical";
48
+ /** Light years */
25
49
  AcDbUnitsValue[AcDbUnitsValue["LightYears"] = 19] = "LightYears";
50
+ /** Parsecs */
26
51
  AcDbUnitsValue[AcDbUnitsValue["Parsecs"] = 20] = "Parsecs";
27
52
  /**
28
- * Note: US Survey Feet is a historical survey unit that's about 2 parts per million larger than
53
+ * US Survey Feet - a historical survey unit that's about 2 parts per million larger than
29
54
  * the International Feet unit. This difference is significant only at scales used for mapping in
30
55
  * the U.S. The US Survey Feet setting is supported only for inserting or attaching drawings
31
56
  * starting with AutoCAD 2017-based products. Drawings opened in prior versions will treat the US
32
57
  * Survey Feet setting as Unitless.
33
58
  */
34
59
  AcDbUnitsValue[AcDbUnitsValue["USSurveyFeet"] = 21] = "USSurveyFeet";
60
+ /** US Survey Inches */
35
61
  AcDbUnitsValue[AcDbUnitsValue["USSurveyInch"] = 22] = "USSurveyInch";
62
+ /** US Survey Yards */
36
63
  AcDbUnitsValue[AcDbUnitsValue["USSurveyYard"] = 23] = "USSurveyYard";
64
+ /** US Survey Miles */
37
65
  AcDbUnitsValue[AcDbUnitsValue["USSurveyMile"] = 24] = "USSurveyMile";
66
+ /** Maximum value for units */
38
67
  AcDbUnitsValue[AcDbUnitsValue["Max"] = 24] = "Max";
39
68
  })(AcDbUnitsValue || (AcDbUnitsValue = {}));
40
69
  /**
41
- * Return true if the specified units value is metric units.
42
- * @param units Input units to check
43
- * @returns Return true if the specified units value is metric units.
70
+ * Checks if the specified units value represents metric units.
71
+ *
72
+ * This function returns true if the units are part of the metric system,
73
+ * including millimeters, centimeters, meters, kilometers, and their
74
+ * decimal multiples and submultiples.
75
+ *
76
+ * @param units - The units value to check
77
+ * @returns True if the units are metric, false otherwise
78
+ *
79
+ * @example
80
+ * ```typescript
81
+ * const isMetric = isMetricUnits(AcDbUnitsValue.Millimeters); // true
82
+ * const isMetric2 = isMetricUnits(AcDbUnitsValue.Inches); // false
83
+ * ```
44
84
  */
45
85
  export function isMetricUnits(units) {
46
86
  return (units == AcDbUnitsValue.Millimeters ||
@@ -55,9 +95,19 @@ export function isMetricUnits(units) {
55
95
  units == AcDbUnitsValue.Gigameters);
56
96
  }
57
97
  /**
58
- * Return true if the specified units value is imperial units.
59
- * @param units Input units to check
60
- * @returns Return true if the specified units value is imperial units.
98
+ * Checks if the specified units value represents imperial units.
99
+ *
100
+ * This function returns true if the units are part of the imperial system,
101
+ * including inches, feet, miles, yards, and US survey units.
102
+ *
103
+ * @param units - The units value to check
104
+ * @returns True if the units are imperial, false otherwise
105
+ *
106
+ * @example
107
+ * ```typescript
108
+ * const isImperial = isImperialUnits(AcDbUnitsValue.Inches); // true
109
+ * const isImperial2 = isImperialUnits(AcDbUnitsValue.Millimeters); // false
110
+ * ```
61
111
  */
62
112
  export function isImperialUnits(units) {
63
113
  return (units == AcDbUnitsValue.Inches ||
@@ -1 +1 @@
1
- {"version":3,"file":"AcDbUnitsValue.js","sourceRoot":"","sources":["../../src/misc/AcDbUnitsValue.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,CAAN,IAAY,cAkCX;AAlCD,WAAY,cAAc;IACxB,6DAAa,CAAA;IACb,uDAAU,CAAA;IACV,mDAAQ,CAAA;IACR,qDAAS,CAAA;IACT,iEAAe,CAAA;IACf,iEAAe,CAAA;IACf,uDAAU,CAAA;IACV,+DAAc,CAAA;IACd,iEAAe,CAAA;IACf,mDAAQ,CAAA;IACR,sDAAU,CAAA;IACV,8DAAc,CAAA;IACd,gEAAe,CAAA;IACf,0DAAY,CAAA;IACZ,gEAAe,CAAA;IACf,gEAAe,CAAA;IACf,kEAAgB,CAAA;IAChB,gEAAe,CAAA;IACf,oEAAiB,CAAA;IACjB,gEAAe,CAAA;IACf,0DAAY,CAAA;IACZ;;;;;;OAMG;IACH,oEAAiB,CAAA;IACjB,oEAAiB,CAAA;IACjB,oEAAiB,CAAA;IACjB,oEAAiB,CAAA;IACjB,kDAAkB,CAAA;AACpB,CAAC,EAlCW,cAAc,KAAd,cAAc,QAkCzB;AAED;;;;GAIG;AACH,MAAM,UAAU,aAAa,CAAC,KAAqB;IACjD,OAAO,CACL,KAAK,IAAI,cAAc,CAAC,WAAW;QACnC,KAAK,IAAI,cAAc,CAAC,WAAW;QACnC,KAAK,IAAI,cAAc,CAAC,MAAM;QAC9B,KAAK,IAAI,cAAc,CAAC,UAAU;QAClC,KAAK,IAAI,cAAc,CAAC,UAAU;QAClC,KAAK,IAAI,cAAc,CAAC,OAAO;QAC/B,KAAK,IAAI,cAAc,CAAC,UAAU;QAClC,KAAK,IAAI,cAAc,CAAC,UAAU;QAClC,KAAK,IAAI,cAAc,CAAC,WAAW;QACnC,KAAK,IAAI,cAAc,CAAC,UAAU,CACnC,CAAA;AACH,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,eAAe,CAAC,KAAqB;IACnD,OAAO,CACL,KAAK,IAAI,cAAc,CAAC,MAAM;QAC9B,KAAK,IAAI,cAAc,CAAC,IAAI;QAC5B,KAAK,IAAI,cAAc,CAAC,KAAK;QAC7B,KAAK,IAAI,cAAc,CAAC,WAAW;QACnC,KAAK,IAAI,cAAc,CAAC,IAAI;QAC5B,KAAK,IAAI,cAAc,CAAC,KAAK;QAC7B,KAAK,IAAI,cAAc,CAAC,YAAY,CACrC,CAAA;AACH,CAAC"}
1
+ {"version":3,"file":"AcDbUnitsValue.js","sourceRoot":"","sources":["../../src/misc/AcDbUnitsValue.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,CAAN,IAAY,cA2DX;AA3DD,WAAY,cAAc;IACxB,4BAA4B;IAC5B,6DAAa,CAAA;IACb,aAAa;IACb,uDAAU,CAAA;IACV,WAAW;IACX,mDAAQ,CAAA;IACR,YAAY;IACZ,qDAAS,CAAA;IACT,kBAAkB;IAClB,iEAAe,CAAA;IACf,kBAAkB;IAClB,iEAAe,CAAA;IACf,aAAa;IACb,uDAAU,CAAA;IACV,iBAAiB;IACjB,+DAAc,CAAA;IACd,kBAAkB;IAClB,iEAAe,CAAA;IACf,oCAAoC;IACpC,mDAAQ,CAAA;IACR,YAAY;IACZ,sDAAU,CAAA;IACV,gBAAgB;IAChB,8DAAc,CAAA;IACd,iBAAiB;IACjB,gEAAe,CAAA;IACf,4BAA4B;IAC5B,0DAAY,CAAA;IACZ,iBAAiB;IACjB,gEAAe,CAAA;IACf,iBAAiB;IACjB,gEAAe,CAAA;IACf,kBAAkB;IAClB,kEAAgB,CAAA;IAChB,iBAAiB;IACjB,gEAAe,CAAA;IACf,yBAAyB;IACzB,oEAAiB,CAAA;IACjB,kBAAkB;IAClB,gEAAe,CAAA;IACf,cAAc;IACd,0DAAY,CAAA;IACZ;;;;;;OAMG;IACH,oEAAiB,CAAA;IACjB,uBAAuB;IACvB,oEAAiB,CAAA;IACjB,sBAAsB;IACtB,oEAAiB,CAAA;IACjB,sBAAsB;IACtB,oEAAiB,CAAA;IACjB,8BAA8B;IAC9B,kDAAkB,CAAA;AACpB,CAAC,EA3DW,cAAc,KAAd,cAAc,QA2DzB;AAED;;;;;;;;;;;;;;;GAeG;AACH,MAAM,UAAU,aAAa,CAAC,KAAqB;IACjD,OAAO,CACL,KAAK,IAAI,cAAc,CAAC,WAAW;QACnC,KAAK,IAAI,cAAc,CAAC,WAAW;QACnC,KAAK,IAAI,cAAc,CAAC,MAAM;QAC9B,KAAK,IAAI,cAAc,CAAC,UAAU;QAClC,KAAK,IAAI,cAAc,CAAC,UAAU;QAClC,KAAK,IAAI,cAAc,CAAC,OAAO;QAC/B,KAAK,IAAI,cAAc,CAAC,UAAU;QAClC,KAAK,IAAI,cAAc,CAAC,UAAU;QAClC,KAAK,IAAI,cAAc,CAAC,WAAW;QACnC,KAAK,IAAI,cAAc,CAAC,UAAU,CACnC,CAAA;AACH,CAAC;AAED;;;;;;;;;;;;;;GAcG;AACH,MAAM,UAAU,eAAe,CAAC,KAAqB;IACnD,OAAO,CACL,KAAK,IAAI,cAAc,CAAC,MAAM;QAC9B,KAAK,IAAI,cAAc,CAAC,IAAI;QAC5B,KAAK,IAAI,cAAc,CAAC,KAAK;QAC7B,KAAK,IAAI,cAAc,CAAC,WAAW;QACnC,KAAK,IAAI,cAAc,CAAC,IAAI;QAC5B,KAAK,IAAI,cAAc,CAAC,KAAK;QAC7B,KAAK,IAAI,cAAc,CAAC,YAAY,CACrC,CAAA;AACH,CAAC"}
@@ -2,78 +2,176 @@ import { AcDbObject, AcDbObjectId } from '../base';
2
2
  import { AcDbDatabase } from '../database';
3
3
  import { AcDbObjectIterator } from '../misc';
4
4
  /**
5
- * A database-resident object dictionary, which maintains a map between text strings and database objects.
5
+ * A database-resident object dictionary that maintains a map between text strings and database objects.
6
+ *
6
7
  * An instance of this class represents a single object, such as Drawing Symbol Table, to which objects
7
8
  * derived from AcDbObject may be added, accessed, and removed. Entries in an AcDbDictionary must be unique.
8
9
  * Entries consist of a unique AcDbObject and string, which comprises the entry's key name. The key may be
9
- * either an text string, or an asterisk ('*') as the first character in the string to signify an anonymous
10
+ * either a text string, or an asterisk ('*') as the first character in the string to signify an anonymous
10
11
  * entry. An anonymous entry's key will be constructed internally by appending an 'A' plus a unique integer
11
12
  * value to the asterisk; for example, '*A13'. When an object is placed in a dictionary, the dictionary is
12
13
  * established as the object's owner, the lookup key string is associated with the object's object ID, and
13
14
  * the dictionary itself is attached to the object as a persistent reactor so that the dictionary is notified
14
15
  * when the object is erased.
16
+ *
17
+ * @template TObjectType - The type of objects stored in this dictionary
18
+ *
19
+ * @example
20
+ * ```typescript
21
+ * const dictionary = new AcDbDictionary<AcDbLayout>(database);
22
+ * const layout = new AcDbLayout();
23
+ * dictionary.setAt('MyLayout', layout);
24
+ * const retrievedLayout = dictionary.getAt('MyLayout');
25
+ * ```
15
26
  */
16
27
  export declare class AcDbDictionary<TObjectType extends AcDbObject = AcDbObject> extends AcDbObject {
28
+ /** Map of records indexed by name */
17
29
  protected _recordsByName: Map<string, TObjectType>;
30
+ /** Map of records indexed by object ID */
18
31
  protected _recordsById: Map<string, TObjectType>;
32
+ /**
33
+ * Creates a new AcDbDictionary instance.
34
+ *
35
+ * @param db - The database this dictionary belongs to
36
+ *
37
+ * @example
38
+ * ```typescript
39
+ * const dictionary = new AcDbDictionary(database);
40
+ * ```
41
+ */
19
42
  constructor(db: AcDbDatabase);
20
43
  /**
21
- * The number of entries in the dictionary.
44
+ * Gets the number of entries in the dictionary.
45
+ *
46
+ * @returns The number of entries in the dictionary
47
+ *
48
+ * @example
49
+ * ```typescript
50
+ * const count = dictionary.numEntries;
51
+ * console.log(`Dictionary has ${count} entries`);
52
+ * ```
22
53
  */
23
54
  get numEntries(): number;
24
55
  /**
25
- * Add a new entry specified by 'value' into the dictionary, if 'key' does not already exist in the
26
- * dictionary. If the entry with 'key' already exists, the existing entry is erased.
27
- * @param key Input string representing the object's search key name
28
- * @param value Input the new object to add to the dictionary
56
+ * Adds a new entry to the dictionary.
57
+ *
58
+ * If an entry with the specified key already exists, the existing entry is erased
59
+ * and replaced with the new one.
60
+ *
61
+ * @param key - String representing the object's search key name
62
+ * @param value - The new object to add to the dictionary
63
+ *
64
+ * @example
65
+ * ```typescript
66
+ * const layout = new AcDbLayout();
67
+ * dictionary.setAt('MyLayout', layout);
68
+ * ```
29
69
  */
30
70
  setAt(key: string, value: TObjectType): void;
31
71
  /**
32
- * Remove the entry specified by 'name' from the dictionary.
33
- * @param name Input string representing the entry's key (or name)
34
- * @returns If the entry specified by object id exists in the dictionary and remove it correctly, return
35
- * true. Otherwise, return false.
72
+ * Removes the entry specified by name from the dictionary.
73
+ *
74
+ * @param name - String representing the entry's key (or name)
75
+ * @returns True if the entry was found and removed, false otherwise
76
+ *
77
+ * @example
78
+ * ```typescript
79
+ * const removed = dictionary.remove('MyLayout');
80
+ * if (removed) {
81
+ * console.log('Layout removed successfully');
82
+ * }
83
+ * ```
36
84
  */
37
85
  remove(name: string): boolean;
38
86
  /**
39
- * Remove the entry specified by object id from the dictionary.
40
- * @param id Input id of the object to delete
41
- * @returns If the entry specified by object id exists in the dictionary and remove it correctly, return
42
- * true. Otherwise, return false.
87
+ * Removes the entry specified by object ID from the dictionary.
88
+ *
89
+ * @param id - ID of the object to delete
90
+ * @returns True if the entry was found and removed, false otherwise
91
+ *
92
+ * @example
93
+ * ```typescript
94
+ * const removed = dictionary.removeId('some-object-id');
95
+ * ```
43
96
  */
44
97
  removeId(id: string): boolean;
45
98
  /**
46
- * Remove all of records in the dictionary.
99
+ * Removes all records from the dictionary.
100
+ *
101
+ * @example
102
+ * ```typescript
103
+ * dictionary.removeAll();
104
+ * ```
47
105
  */
48
106
  removeAll(): void;
49
107
  /**
50
- * Return true if the dictionary contains an object with the sepcified name. Otherwise it returns false.
51
- * @param name Input name to search for
108
+ * Checks if the dictionary contains an object with the specified name.
109
+ *
110
+ * @param name - Name to search for
111
+ * @returns True if the dictionary contains an object with the specified name, false otherwise
112
+ *
113
+ * @example
114
+ * ```typescript
115
+ * if (dictionary.has('MyLayout')) {
116
+ * console.log('Layout exists');
117
+ * }
118
+ * ```
52
119
  */
53
120
  has(name: string): boolean;
54
121
  /**
55
- * Return true if the dictionary contains an object with the sepcified id. Otherwise it returns false.
56
- * @param id Input object id to search for
122
+ * Checks if the dictionary contains an object with the specified ID.
123
+ *
124
+ * @param id - ID to search for
125
+ * @returns True if the dictionary contains an object with the specified ID, false otherwise
126
+ *
127
+ * @example
128
+ * ```typescript
129
+ * if (dictionary.hasId('some-object-id')) {
130
+ * console.log('Object exists');
131
+ * }
132
+ * ```
57
133
  */
58
134
  hasId(id: string): boolean;
59
135
  /**
60
- * Search the dictionary for the object with the specified name. If found, it return the record.
61
- * Otherwise, return undefined.
62
- * @param name Input the name to search
63
- * @returns If found the object with the specified name, return it. Otherwise, return undefined.
136
+ * Gets the object with the specified name from the dictionary.
137
+ *
138
+ * @param name - Name of the object to retrieve
139
+ * @returns The object with the specified name, or undefined if not found
140
+ *
141
+ * @example
142
+ * ```typescript
143
+ * const layout = dictionary.getAt('MyLayout');
144
+ * if (layout) {
145
+ * console.log('Layout found:', layout);
146
+ * }
147
+ * ```
64
148
  */
65
149
  getAt(name: string): TObjectType | undefined;
66
150
  /**
67
- * Search the dictionary for the record with the specified id. If found, it returns the record.
68
- * Otherwise, return undefined.
69
- * @param id Input the id to search
70
- * @returns If found the object with the specified id, return it. Otherwise, return undefined.
151
+ * Gets the object with the specified ID from the dictionary.
152
+ *
153
+ * @param id - ID of the object to retrieve
154
+ * @returns The object with the specified ID, or undefined if not found
155
+ *
156
+ * @example
157
+ * ```typescript
158
+ * const object = dictionary.getIdAt('some-object-id');
159
+ * ```
71
160
  */
72
161
  getIdAt(id: AcDbObjectId): TObjectType | undefined;
73
162
  /**
74
- * Create an iterator object that can be used to iterate through the contents of the symbol table.
163
+ * Creates a new iterator for traversing the dictionary entries.
164
+ *
165
+ * @returns A new AcDbObjectIterator for this dictionary
75
166
  *
76
- * @returns Return an iterator object that can be used to iterate through the contents of the symbol table.
167
+ * @example
168
+ * ```typescript
169
+ * const iterator = dictionary.newIterator();
170
+ * while (iterator.hasNext()) {
171
+ * const object = iterator.next();
172
+ * console.log('Object:', object);
173
+ * }
174
+ * ```
77
175
  */
78
176
  newIterator(): AcDbObjectIterator<TObjectType>;
79
177
  }
@@ -1 +1 @@
1
- {"version":3,"file":"AcDbDictionary.d.ts","sourceRoot":"","sources":["../../src/object/AcDbDictionary.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAE5C;;;;;;;;;;;GAWG;AACH,qBAAa,cAAc,CACzB,WAAW,SAAS,UAAU,GAAG,UAAU,CAC3C,SAAQ,UAAU;IAClB,SAAS,CAAC,cAAc,EAAE,GAAG,CAAC,MAAM,EAAE,WAAW,CAAC,CAAA;IAClD,SAAS,CAAC,YAAY,EAAE,GAAG,CAAC,MAAM,EAAE,WAAW,CAAC,CAAA;gBAEpC,EAAE,EAAE,YAAY;IAO5B;;OAEG;IACH,IAAI,UAAU,WAEb;IAED;;;;;OAKG;IACH,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,WAAW;IAMrC;;;;;OAKG;IACH,MAAM,CAAC,IAAI,EAAE,MAAM;IAUnB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM;IAYnB;;OAEG;IACH,SAAS;IAKT;;;OAGG;IACH,GAAG,CAAC,IAAI,EAAE,MAAM;IAIhB;;;OAGG;IACH,KAAK,CAAC,EAAE,EAAE,MAAM;IAIhB;;;;;OAKG;IACH,KAAK,CAAC,IAAI,EAAE,MAAM;IAIlB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,EAAE,YAAY;IAIxB;;;;OAIG;IACH,WAAW,IAAI,kBAAkB,CAAC,WAAW,CAAC;CAG/C"}
1
+ {"version":3,"file":"AcDbDictionary.d.ts","sourceRoot":"","sources":["../../src/object/AcDbDictionary.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAE5C;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,qBAAa,cAAc,CACzB,WAAW,SAAS,UAAU,GAAG,UAAU,CAC3C,SAAQ,UAAU;IAClB,qCAAqC;IACrC,SAAS,CAAC,cAAc,EAAE,GAAG,CAAC,MAAM,EAAE,WAAW,CAAC,CAAA;IAClD,0CAA0C;IAC1C,SAAS,CAAC,YAAY,EAAE,GAAG,CAAC,MAAM,EAAE,WAAW,CAAC,CAAA;IAEhD;;;;;;;;;OASG;gBACS,EAAE,EAAE,YAAY;IAO5B;;;;;;;;;;OAUG;IACH,IAAI,UAAU,WAEb;IAED;;;;;;;;;;;;;;OAcG;IACH,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,WAAW;IAMrC;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,IAAI,EAAE,MAAM;IAUnB;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM;IAYnB;;;;;;;OAOG;IACH,SAAS;IAKT;;;;;;;;;;;;OAYG;IACH,GAAG,CAAC,IAAI,EAAE,MAAM;IAIhB;;;;;;;;;;;;OAYG;IACH,KAAK,CAAC,EAAE,EAAE,MAAM;IAIhB;;;;;;;;;;;;;OAaG;IACH,KAAK,CAAC,IAAI,EAAE,MAAM;IAIlB;;;;;;;;;;OAUG;IACH,OAAO,CAAC,EAAE,EAAE,YAAY;IAIxB;;;;;;;;;;;;;OAaG;IACH,WAAW,IAAI,kBAAkB,CAAC,WAAW,CAAC;CAG/C"}