@mlightcad/data-model 1.1.2 → 1.1.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 (259) hide show
  1. package/dist/data-model.js +5490 -1022
  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 +303 -33
  40. package/lib/database/AcDbDatabase.d.ts.map +1 -1
  41. package/lib/database/AcDbDatabase.js +223 -39
  42. package/lib/database/AcDbDatabase.js.map +1 -1
  43. package/lib/database/AcDbDatabaseConverter.d.ts +77 -12
  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
@@ -16,19 +16,40 @@ var __extends = (this && this.__extends) || (function () {
16
16
  import { AcDbObject } from '../base';
17
17
  import { AcDbObjectIterator } from '../misc';
18
18
  /**
19
- * A database-resident object dictionary, which maintains a map between text strings and database objects.
19
+ * A database-resident object dictionary that maintains a map between text strings and database objects.
20
+ *
20
21
  * An instance of this class represents a single object, such as Drawing Symbol Table, to which objects
21
22
  * derived from AcDbObject may be added, accessed, and removed. Entries in an AcDbDictionary must be unique.
22
23
  * Entries consist of a unique AcDbObject and string, which comprises the entry's key name. The key may be
23
- * either an text string, or an asterisk ('*') as the first character in the string to signify an anonymous
24
+ * either a text string, or an asterisk ('*') as the first character in the string to signify an anonymous
24
25
  * entry. An anonymous entry's key will be constructed internally by appending an 'A' plus a unique integer
25
26
  * value to the asterisk; for example, '*A13'. When an object is placed in a dictionary, the dictionary is
26
27
  * established as the object's owner, the lookup key string is associated with the object's object ID, and
27
28
  * the dictionary itself is attached to the object as a persistent reactor so that the dictionary is notified
28
29
  * when the object is erased.
30
+ *
31
+ * @template TObjectType - The type of objects stored in this dictionary
32
+ *
33
+ * @example
34
+ * ```typescript
35
+ * const dictionary = new AcDbDictionary<AcDbLayout>(database);
36
+ * const layout = new AcDbLayout();
37
+ * dictionary.setAt('MyLayout', layout);
38
+ * const retrievedLayout = dictionary.getAt('MyLayout');
39
+ * ```
29
40
  */
30
41
  var AcDbDictionary = /** @class */ (function (_super) {
31
42
  __extends(AcDbDictionary, _super);
43
+ /**
44
+ * Creates a new AcDbDictionary instance.
45
+ *
46
+ * @param db - The database this dictionary belongs to
47
+ *
48
+ * @example
49
+ * ```typescript
50
+ * const dictionary = new AcDbDictionary(database);
51
+ * ```
52
+ */
32
53
  function AcDbDictionary(db) {
33
54
  var _this = _super.call(this) || this;
34
55
  _this.database = db;
@@ -38,7 +59,15 @@ var AcDbDictionary = /** @class */ (function (_super) {
38
59
  }
39
60
  Object.defineProperty(AcDbDictionary.prototype, "numEntries", {
40
61
  /**
41
- * The number of entries in the dictionary.
62
+ * Gets the number of entries in the dictionary.
63
+ *
64
+ * @returns The number of entries in the dictionary
65
+ *
66
+ * @example
67
+ * ```typescript
68
+ * const count = dictionary.numEntries;
69
+ * console.log(`Dictionary has ${count} entries`);
70
+ * ```
42
71
  */
43
72
  get: function () {
44
73
  return this._recordsByName.size;
@@ -47,10 +76,19 @@ var AcDbDictionary = /** @class */ (function (_super) {
47
76
  configurable: true
48
77
  });
49
78
  /**
50
- * Add a new entry specified by 'value' into the dictionary, if 'key' does not already exist in the
51
- * dictionary. If the entry with 'key' already exists, the existing entry is erased.
52
- * @param key Input string representing the object's search key name
53
- * @param value Input the new object to add to the dictionary
79
+ * Adds a new entry to the dictionary.
80
+ *
81
+ * If an entry with the specified key already exists, the existing entry is erased
82
+ * and replaced with the new one.
83
+ *
84
+ * @param key - String representing the object's search key name
85
+ * @param value - The new object to add to the dictionary
86
+ *
87
+ * @example
88
+ * ```typescript
89
+ * const layout = new AcDbLayout();
90
+ * dictionary.setAt('MyLayout', layout);
91
+ * ```
54
92
  */
55
93
  AcDbDictionary.prototype.setAt = function (key, value) {
56
94
  value.database = this.database;
@@ -58,10 +96,18 @@ var AcDbDictionary = /** @class */ (function (_super) {
58
96
  this._recordsById.set(value.objectId, value);
59
97
  };
60
98
  /**
61
- * Remove the entry specified by 'name' from the dictionary.
62
- * @param name Input string representing the entry's key (or name)
63
- * @returns If the entry specified by object id exists in the dictionary and remove it correctly, return
64
- * true. Otherwise, return false.
99
+ * Removes the entry specified by name from the dictionary.
100
+ *
101
+ * @param name - String representing the entry's key (or name)
102
+ * @returns True if the entry was found and removed, false otherwise
103
+ *
104
+ * @example
105
+ * ```typescript
106
+ * const removed = dictionary.remove('MyLayout');
107
+ * if (removed) {
108
+ * console.log('Layout removed successfully');
109
+ * }
110
+ * ```
65
111
  */
66
112
  AcDbDictionary.prototype.remove = function (name) {
67
113
  var object = this.getAt(name);
@@ -73,10 +119,15 @@ var AcDbDictionary = /** @class */ (function (_super) {
73
119
  return false;
74
120
  };
75
121
  /**
76
- * Remove the entry specified by object id from the dictionary.
77
- * @param id Input id of the object to delete
78
- * @returns If the entry specified by object id exists in the dictionary and remove it correctly, return
79
- * true. Otherwise, return false.
122
+ * Removes the entry specified by object ID from the dictionary.
123
+ *
124
+ * @param id - ID of the object to delete
125
+ * @returns True if the entry was found and removed, false otherwise
126
+ *
127
+ * @example
128
+ * ```typescript
129
+ * const removed = dictionary.removeId('some-object-id');
130
+ * ```
80
131
  */
81
132
  AcDbDictionary.prototype.removeId = function (id) {
82
133
  var _this = this;
@@ -92,48 +143,93 @@ var AcDbDictionary = /** @class */ (function (_super) {
92
143
  return false;
93
144
  };
94
145
  /**
95
- * Remove all of records in the dictionary.
146
+ * Removes all records from the dictionary.
147
+ *
148
+ * @example
149
+ * ```typescript
150
+ * dictionary.removeAll();
151
+ * ```
96
152
  */
97
153
  AcDbDictionary.prototype.removeAll = function () {
98
154
  this._recordsByName.clear();
99
155
  this._recordsById.clear();
100
156
  };
101
157
  /**
102
- * Return true if the dictionary contains an object with the sepcified name. Otherwise it returns false.
103
- * @param name Input name to search for
158
+ * Checks if the dictionary contains an object with the specified name.
159
+ *
160
+ * @param name - Name to search for
161
+ * @returns True if the dictionary contains an object with the specified name, false otherwise
162
+ *
163
+ * @example
164
+ * ```typescript
165
+ * if (dictionary.has('MyLayout')) {
166
+ * console.log('Layout exists');
167
+ * }
168
+ * ```
104
169
  */
105
170
  AcDbDictionary.prototype.has = function (name) {
106
171
  return this._recordsByName.has(name.toUpperCase());
107
172
  };
108
173
  /**
109
- * Return true if the dictionary contains an object with the sepcified id. Otherwise it returns false.
110
- * @param id Input object id to search for
174
+ * Checks if the dictionary contains an object with the specified ID.
175
+ *
176
+ * @param id - ID to search for
177
+ * @returns True if the dictionary contains an object with the specified ID, false otherwise
178
+ *
179
+ * @example
180
+ * ```typescript
181
+ * if (dictionary.hasId('some-object-id')) {
182
+ * console.log('Object exists');
183
+ * }
184
+ * ```
111
185
  */
112
186
  AcDbDictionary.prototype.hasId = function (id) {
113
187
  return this._recordsById.has(id);
114
188
  };
115
189
  /**
116
- * Search the dictionary for the object with the specified name. If found, it return the record.
117
- * Otherwise, return undefined.
118
- * @param name Input the name to search
119
- * @returns If found the object with the specified name, return it. Otherwise, return undefined.
190
+ * Gets the object with the specified name from the dictionary.
191
+ *
192
+ * @param name - Name of the object to retrieve
193
+ * @returns The object with the specified name, or undefined if not found
194
+ *
195
+ * @example
196
+ * ```typescript
197
+ * const layout = dictionary.getAt('MyLayout');
198
+ * if (layout) {
199
+ * console.log('Layout found:', layout);
200
+ * }
201
+ * ```
120
202
  */
121
203
  AcDbDictionary.prototype.getAt = function (name) {
122
204
  return this._recordsByName.get(name);
123
205
  };
124
206
  /**
125
- * Search the dictionary for the record with the specified id. If found, it returns the record.
126
- * Otherwise, return undefined.
127
- * @param id Input the id to search
128
- * @returns If found the object with the specified id, return it. Otherwise, return undefined.
207
+ * Gets the object with the specified ID from the dictionary.
208
+ *
209
+ * @param id - ID of the object to retrieve
210
+ * @returns The object with the specified ID, or undefined if not found
211
+ *
212
+ * @example
213
+ * ```typescript
214
+ * const object = dictionary.getIdAt('some-object-id');
215
+ * ```
129
216
  */
130
217
  AcDbDictionary.prototype.getIdAt = function (id) {
131
218
  return this._recordsById.get(id);
132
219
  };
133
220
  /**
134
- * Create an iterator object that can be used to iterate through the contents of the symbol table.
221
+ * Creates a new iterator for traversing the dictionary entries.
222
+ *
223
+ * @returns A new AcDbObjectIterator for this dictionary
135
224
  *
136
- * @returns Return an iterator object that can be used to iterate through the contents of the symbol table.
225
+ * @example
226
+ * ```typescript
227
+ * const iterator = dictionary.newIterator();
228
+ * while (iterator.hasNext()) {
229
+ * const object = iterator.next();
230
+ * console.log('Object:', object);
231
+ * }
232
+ * ```
137
233
  */
138
234
  AcDbDictionary.prototype.newIterator = function () {
139
235
  return new AcDbObjectIterator(this._recordsByName);
@@ -1 +1 @@
1
- {"version":3,"file":"AcDbDictionary.js","sourceRoot":"","sources":["../../src/object/AcDbDictionary.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAg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c,CAAC,CAAA;IACpD,CAAC;IACH,qBAAC;AAAD,CAAC,AA7MD,CAEU,UAAU,GA2MnB"}
@@ -1,25 +1,54 @@
1
1
  import { AcDbObject } from '../base';
2
2
  /**
3
3
  * The AcDbRasterImageDef object (or "image definition object") works with the AcDbRasterImage entity
4
- * (or "image entity") to implement raster images inside AutoCAD. The relationship between these two
5
- * classes is much like the relationship between an AutoCAD block definition object and a block insert
6
- * entity.
4
+ * (or "image entity") to implement raster images inside AutoCAD.
7
5
  *
8
- * The image definition object plays a behind-the-scenes role like the block definition, maintaining
9
- * links to the source image file and managing low-level image processing operations required to display
10
- * and plot images. Image definition objects are stored in a special AcDbDictionary named
11
- * ISM_RASTER_IMAGE_DICT.
6
+ * The relationship between these two classes is much like the relationship between an AutoCAD block
7
+ * definition object and a block insert entity. The image definition object plays a behind-the-scenes
8
+ * role like the block definition, maintaining links to the source image file and managing low-level
9
+ * image processing operations required to display and plot images. Image definition objects are stored
10
+ * in a special AcDbDictionary named ISM_RASTER_IMAGE_DICT.
11
+ *
12
+ * @example
13
+ * ```typescript
14
+ * const imageDef = new AcDbRasterImageDef();
15
+ * imageDef.sourceFileName = '/path/to/image.jpg';
16
+ * ```
12
17
  */
13
18
  export declare class AcDbRasterImageDef extends AcDbObject {
19
+ /** The path name of the externally referenced image file */
14
20
  private _sourceFileName;
15
21
  /**
16
- * Consturct one instance of this class.
22
+ * Creates a new AcDbRasterImageDef instance.
23
+ *
24
+ * @example
25
+ * ```typescript
26
+ * const imageDef = new AcDbRasterImageDef();
27
+ * ```
17
28
  */
18
29
  constructor();
19
30
  /**
20
- * The path name of the externally referenced image file name.
31
+ * Gets the path name of the externally referenced image file.
32
+ *
33
+ * @returns The source file name/path
34
+ *
35
+ * @example
36
+ * ```typescript
37
+ * const fileName = imageDef.sourceFileName;
38
+ * console.log('Image file:', fileName);
39
+ * ```
21
40
  */
22
41
  get sourceFileName(): string;
42
+ /**
43
+ * Sets the path name of the externally referenced image file.
44
+ *
45
+ * @param value - The new source file name/path
46
+ *
47
+ * @example
48
+ * ```typescript
49
+ * imageDef.sourceFileName = '/path/to/image.jpg';
50
+ * ```
51
+ */
23
52
  set sourceFileName(value: string);
24
53
  }
25
54
  //# sourceMappingURL=AcDbRasterImageDef.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AcDbRasterImageDef.d.ts","sourceRoot":"","sources":["../../src/object/AcDbRasterImageDef.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAEpC;;;;;;;;;;GAUG;AACH,qBAAa,kBAAmB,SAAQ,UAAU;IAChD,OAAO,CAAC,eAAe,CAAQ;IAE/B;;OAEG;;IAMH;;OAEG;IACH,IAAI,cAAc,IAGQ,MAAM,CAD/B;IACD,IAAI,cAAc,CAAC,KAAK,EAAE,MAAM,EAE/B;CACF"}
1
+ {"version":3,"file":"AcDbRasterImageDef.d.ts","sourceRoot":"","sources":["../../src/object/AcDbRasterImageDef.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAEpC;;;;;;;;;;;;;;;GAeG;AACH,qBAAa,kBAAmB,SAAQ,UAAU;IAChD,4DAA4D;IAC5D,OAAO,CAAC,eAAe,CAAQ;IAE/B;;;;;;;OAOG;;IAMH;;;;;;;;;;OAUG;IACH,IAAI,cAAc,IAcQ,MAAM,CAZ/B;IAED;;;;;;;;;OASG;IACH,IAAI,cAAc,CAAC,KAAK,EAAE,MAAM,EAE/B;CACF"}
@@ -16,19 +16,29 @@ var __extends = (this && this.__extends) || (function () {
16
16
  import { AcDbObject } from '../base';
17
17
  /**
18
18
  * The AcDbRasterImageDef object (or "image definition object") works with the AcDbRasterImage entity
19
- * (or "image entity") to implement raster images inside AutoCAD. The relationship between these two
20
- * classes is much like the relationship between an AutoCAD block definition object and a block insert
21
- * entity.
19
+ * (or "image entity") to implement raster images inside AutoCAD.
22
20
  *
23
- * The image definition object plays a behind-the-scenes role like the block definition, maintaining
24
- * links to the source image file and managing low-level image processing operations required to display
25
- * and plot images. Image definition objects are stored in a special AcDbDictionary named
26
- * ISM_RASTER_IMAGE_DICT.
21
+ * The relationship between these two classes is much like the relationship between an AutoCAD block
22
+ * definition object and a block insert entity. The image definition object plays a behind-the-scenes
23
+ * role like the block definition, maintaining links to the source image file and managing low-level
24
+ * image processing operations required to display and plot images. Image definition objects are stored
25
+ * in a special AcDbDictionary named ISM_RASTER_IMAGE_DICT.
26
+ *
27
+ * @example
28
+ * ```typescript
29
+ * const imageDef = new AcDbRasterImageDef();
30
+ * imageDef.sourceFileName = '/path/to/image.jpg';
31
+ * ```
27
32
  */
28
33
  var AcDbRasterImageDef = /** @class */ (function (_super) {
29
34
  __extends(AcDbRasterImageDef, _super);
30
35
  /**
31
- * Consturct one instance of this class.
36
+ * Creates a new AcDbRasterImageDef instance.
37
+ *
38
+ * @example
39
+ * ```typescript
40
+ * const imageDef = new AcDbRasterImageDef();
41
+ * ```
32
42
  */
33
43
  function AcDbRasterImageDef() {
34
44
  var _this = _super.call(this) || this;
@@ -37,11 +47,29 @@ var AcDbRasterImageDef = /** @class */ (function (_super) {
37
47
  }
38
48
  Object.defineProperty(AcDbRasterImageDef.prototype, "sourceFileName", {
39
49
  /**
40
- * The path name of the externally referenced image file name.
50
+ * Gets the path name of the externally referenced image file.
51
+ *
52
+ * @returns The source file name/path
53
+ *
54
+ * @example
55
+ * ```typescript
56
+ * const fileName = imageDef.sourceFileName;
57
+ * console.log('Image file:', fileName);
58
+ * ```
41
59
  */
42
60
  get: function () {
43
61
  return this._sourceFileName;
44
62
  },
63
+ /**
64
+ * Sets the path name of the externally referenced image file.
65
+ *
66
+ * @param value - The new source file name/path
67
+ *
68
+ * @example
69
+ * ```typescript
70
+ * imageDef.sourceFileName = '/path/to/image.jpg';
71
+ * ```
72
+ */
45
73
  set: function (value) {
46
74
  this._sourceFileName = value;
47
75
  },
@@ -1 +1 @@
1
- {"version":3,"file":"AcDbRasterImageDef.js","sourceRoot":"","sources":["../../src/object/AcDbRasterImageDef.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAEpC;;;;;;;;;;GAUG;AACH;IAAwC,sCAAU;IAGhD;;OAEG;IACH;QACE,YAAA,MAAK,WAAE,SAAA;QACP,KAAI,CAAC,eAAe,GAAG,EAAE,CAAA;;IAC3B,CAAC;IAKD,sBAAI,8CAAc;QAHlB;;WAEG;aACH;YACE,OAAO,IAAI,CAAC,eAAe,CAAA;QAC7B,CAAC;aACD,UAAmB,KAAa;YAC9B,IAAI,CAAC,eAAe,GAAG,KAAK,CAAA;QAC9B,CAAC;;;OAHA;IAIH,yBAAC;AAAD,CAAC,AApBD,CAAwC,UAAU,GAoBjD"}
1
+ {"version":3,"file":"AcDbRasterImageDef.js","sourceRoot":"","sources":["../../src/object/AcDbRasterImageDef.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAEpC;;;;;;;;;;;;;;;GAeG;AACH;IAAwC,sCAAU;IAIhD;;;;;;;OAOG;IACH;QACE,YAAA,MAAK,WAAE,SAAA;QACP,KAAI,CAAC,eAAe,GAAG,EAAE,CAAA;;IAC3B,CAAC;IAaD,sBAAI,8CAAc;QAXlB;;;;;;;;;;WAUG;aACH;YACE,OAAO,IAAI,CAAC,eAAe,CAAA;QAC7B,CAAC;QAED;;;;;;;;;WASG;aACH,UAAmB,KAAa;YAC9B,IAAI,CAAC,eAAe,GAAG,KAAK,CAAA;QAC9B,CAAC;;;OAdA;IAeH,yBAAC;AAAD,CAAC,AA7CD,CAAwC,UAAU,GA6CjD"}
@@ -1,51 +1,190 @@
1
1
  import { AcGeBox2d, AcGeBox3d } from '@mlightcad/geometry-engine';
2
2
  import { AcDbObject } from '../../base';
3
3
  /**
4
- * This class represents object stored characteristics of each paperspace layout. Layout objects are
5
- * stored in an AcDbDictionary object with an ACAD_LAYOUT key, allowing easy iteration and indexing.
4
+ * Represents the stored characteristics of each paperspace layout.
5
+ *
6
+ * Layout objects are stored in an AcDbDictionary object with an ACAD_LAYOUT key,
7
+ * allowing easy iteration and indexing. Each layout represents a paperspace
8
+ * configuration that can be used for printing or plotting.
9
+ *
10
+ * @example
11
+ * ```typescript
12
+ * const layout = new AcDbLayout();
13
+ * layout.layoutName = 'A4 Landscape';
14
+ * layout.tabOrder = 1;
15
+ * layout.limits = new AcGeBox2d();
16
+ * ```
6
17
  */
7
18
  export declare class AcDbLayout extends AcDbObject {
19
+ /** The user-friendly layout name displayed in the tab control */
8
20
  private _layoutName;
21
+ /** The tab order field controlling the display order */
9
22
  private _tabOrder;
23
+ /** Flag indicating whether the layout tab is selected */
10
24
  private _tabSelected;
25
+ /** The associated block table record ID of this layout */
11
26
  private _blockTableRecordId;
27
+ /** Limits for this layout (defined by LIMMAX while this layout is current) */
12
28
  private _limits;
29
+ /** The current extents setting of the layout */
13
30
  private _extents;
31
+ /**
32
+ * Creates a new AcDbLayout instance.
33
+ *
34
+ * @example
35
+ * ```typescript
36
+ * const layout = new AcDbLayout();
37
+ * ```
38
+ */
14
39
  constructor();
15
40
  /**
16
- * The user-friendly layout name that is displayed in the tab control. Currently there is no restriction
17
- * on the name except that the length of the name is limited to 256 characters.
41
+ * Gets the user-friendly layout name that is displayed in the tab control.
42
+ *
43
+ * Currently there is no restriction on the name except that the length
44
+ * is limited to 256 characters.
45
+ *
46
+ * @returns The layout name
47
+ *
48
+ * @example
49
+ * ```typescript
50
+ * const name = layout.layoutName;
51
+ * console.log('Layout name:', name);
52
+ * ```
18
53
  */
19
54
  get layoutName(): string;
55
+ /**
56
+ * Sets the user-friendly layout name that is displayed in the tab control.
57
+ *
58
+ * @param value - The new layout name (limited to 256 characters)
59
+ *
60
+ * @example
61
+ * ```typescript
62
+ * layout.layoutName = 'A4 Landscape';
63
+ * ```
64
+ */
20
65
  set layoutName(value: string);
21
66
  /**
22
- * The tab order field, which controls the order in which the layouts are displayed in the tab control
23
- * that is docked to the bottom of the viewport. The tab order should be unique and sequential for each
24
- * layout in the database.
67
+ * Gets the tab order field, which controls the order in which layouts are displayed.
68
+ *
69
+ * The tab order should be unique and sequential for each layout in the database.
70
+ *
71
+ * @returns The tab order value
72
+ *
73
+ * @example
74
+ * ```typescript
75
+ * const order = layout.tabOrder;
76
+ * ```
25
77
  */
26
78
  get tabOrder(): number;
79
+ /**
80
+ * Sets the tab order field, which controls the order in which layouts are displayed.
81
+ *
82
+ * @param value - The new tab order value
83
+ *
84
+ * @example
85
+ * ```typescript
86
+ * layout.tabOrder = 1;
87
+ * ```
88
+ */
27
89
  set tabOrder(value: number);
28
90
  /**
29
- * A flag to indicate whether the layout tab is included in the selection set for operations that affect
30
- * multiple tabs. The user can perform multiple selection via the user interface using shift-click.
91
+ * Gets whether the layout tab is included in the selection set for operations.
92
+ *
93
+ * This flag indicates whether the layout tab is included in the selection set
94
+ * for operations that affect multiple tabs. The user can perform multiple
95
+ * selection via the user interface using shift-click.
96
+ *
97
+ * @returns True if the tab is selected, false otherwise
98
+ *
99
+ * @example
100
+ * ```typescript
101
+ * const isSelected = layout.tabSelected;
102
+ * ```
31
103
  */
32
104
  get tabSelected(): boolean;
105
+ /**
106
+ * Sets whether the layout tab is included in the selection set for operations.
107
+ *
108
+ * @param value - True to select the tab, false to deselect it
109
+ *
110
+ * @example
111
+ * ```typescript
112
+ * layout.tabSelected = true;
113
+ * ```
114
+ */
33
115
  set tabSelected(value: boolean);
34
116
  /**
35
- * The associated block table record id of this layout.
117
+ * Gets the associated block table record ID of this layout.
118
+ *
119
+ * @returns The block table record ID
120
+ *
121
+ * @example
122
+ * ```typescript
123
+ * const blockId = layout.blockTableRecordId;
124
+ * ```
36
125
  */
37
126
  get blockTableRecordId(): string;
127
+ /**
128
+ * Sets the associated block table record ID of this layout.
129
+ *
130
+ * @param value - The new block table record ID
131
+ *
132
+ * @example
133
+ * ```typescript
134
+ * layout.blockTableRecordId = 'some-block-id';
135
+ * ```
136
+ */
38
137
  set blockTableRecordId(value: string);
39
138
  /**
40
- * Limits for this layout (defined by LIMMAX while this layout is current)
139
+ * Gets the limits for this layout.
140
+ *
141
+ * Limits are defined by LIMMAX while this layout is current.
142
+ *
143
+ * @returns The layout limits as a 2D bounding box
144
+ *
145
+ * @example
146
+ * ```typescript
147
+ * const limits = layout.limits;
148
+ * console.log('Layout limits:', limits);
149
+ * ```
41
150
  */
42
151
  get limits(): AcGeBox2d;
152
+ /**
153
+ * Sets the limits for this layout.
154
+ *
155
+ * @param value - The new layout limits as a 2D bounding box
156
+ *
157
+ * @example
158
+ * ```typescript
159
+ * layout.limits = new AcGeBox2d();
160
+ * ```
161
+ */
43
162
  set limits(value: AcGeBox2d);
44
163
  /**
45
- * The current extents setting of the layout. This value may not be the actual extents of
46
- * the geometry in the layout, it is just the value last saved in the layout.
164
+ * Gets the current extents setting of the layout.
165
+ *
166
+ * This value may not be the actual extents of the geometry in the layout,
167
+ * it is just the value last saved in the layout.
168
+ *
169
+ * @returns The layout extents as a 3D bounding box
170
+ *
171
+ * @example
172
+ * ```typescript
173
+ * const extents = layout.extents;
174
+ * console.log('Layout extents:', extents);
175
+ * ```
47
176
  */
48
177
  get extents(): AcGeBox3d;
178
+ /**
179
+ * Sets the current extents setting of the layout.
180
+ *
181
+ * @param value - The new layout extents as a 3D bounding box
182
+ *
183
+ * @example
184
+ * ```typescript
185
+ * layout.extents = new AcGeBox3d();
186
+ * ```
187
+ */
49
188
  set extents(value: AcGeBox3d);
50
189
  }
51
190
  //# sourceMappingURL=AcDbLayout.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AcDbLayout.d.ts","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;;;GAGG;AACH,qBAAa,UA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