@mlightcad/data-model 1.3.3 → 1.3.5
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.
- package/dist/data-model.cjs +5 -0
- package/dist/data-model.js +25995 -0
- package/dist/dxf-parser-worker.js +1715 -0
- package/lib/base/AcDbHostApplicationServices.d.ts +96 -0
- package/lib/base/AcDbHostApplicationServices.d.ts.map +1 -0
- package/lib/base/AcDbHostApplicationServices.js +118 -0
- package/lib/base/AcDbHostApplicationServices.js.map +1 -0
- package/lib/base/AcDbObject.d.ts +205 -0
- package/lib/base/AcDbObject.d.ts.map +1 -0
- package/lib/base/AcDbObject.js +236 -0
- package/lib/base/AcDbObject.js.map +1 -0
- package/lib/base/index.d.ts +3 -0
- package/lib/base/index.d.ts.map +1 -0
- package/lib/base/index.js +3 -0
- package/lib/base/index.js.map +1 -0
- package/lib/converter/AcDbBatchProcessing.d.ts +146 -0
- package/lib/converter/AcDbBatchProcessing.d.ts.map +1 -0
- package/lib/converter/AcDbBatchProcessing.js +272 -0
- package/lib/converter/AcDbBatchProcessing.js.map +1 -0
- package/lib/converter/AcDbDxfConverter.d.ts +272 -0
- package/lib/converter/AcDbDxfConverter.d.ts.map +1 -0
- package/lib/converter/AcDbDxfConverter.js +883 -0
- package/lib/converter/AcDbDxfConverter.js.map +1 -0
- package/lib/converter/AcDbDxfParser.d.ts +23 -0
- package/lib/converter/AcDbDxfParser.d.ts.map +1 -0
- package/lib/converter/AcDbDxfParser.js +85 -0
- package/lib/converter/AcDbDxfParser.js.map +1 -0
- package/lib/converter/AcDbEntitiyConverter.d.ts +160 -0
- package/lib/converter/AcDbEntitiyConverter.d.ts.map +1 -0
- package/lib/converter/AcDbEntitiyConverter.js +708 -0
- package/lib/converter/AcDbEntitiyConverter.js.map +1 -0
- package/lib/converter/AcDbObjectConverter.d.ts +61 -0
- package/lib/converter/AcDbObjectConverter.d.ts.map +1 -0
- package/lib/converter/AcDbObjectConverter.js +91 -0
- package/lib/converter/AcDbObjectConverter.js.map +1 -0
- package/lib/converter/AcDbRegenerator.d.ts +101 -0
- package/lib/converter/AcDbRegenerator.d.ts.map +1 -0
- package/lib/converter/AcDbRegenerator.js +334 -0
- package/lib/converter/AcDbRegenerator.js.map +1 -0
- package/lib/converter/index.d.ts +5 -0
- package/lib/converter/index.d.ts.map +1 -0
- package/lib/converter/index.js +5 -0
- package/lib/converter/index.js.map +1 -0
- package/lib/converter/worker/AcDbBaseWorker.d.ts +36 -0
- package/lib/converter/worker/AcDbBaseWorker.d.ts.map +1 -0
- package/lib/converter/worker/AcDbBaseWorker.js +93 -0
- package/lib/converter/worker/AcDbBaseWorker.js.map +1 -0
- package/lib/converter/worker/AcDbDxfParserWorker.d.ts +11 -0
- package/lib/converter/worker/AcDbDxfParserWorker.d.ts.map +1 -0
- package/lib/converter/worker/AcDbDxfParserWorker.js +75 -0
- package/lib/converter/worker/AcDbDxfParserWorker.js.map +1 -0
- package/lib/converter/worker/AcDbWorkerManager.d.ts +107 -0
- package/lib/converter/worker/AcDbWorkerManager.d.ts.map +1 -0
- package/lib/converter/worker/AcDbWorkerManager.js +360 -0
- package/lib/converter/worker/AcDbWorkerManager.js.map +1 -0
- package/lib/converter/worker/index.d.ts +3 -0
- package/lib/converter/worker/index.d.ts.map +1 -0
- package/lib/converter/worker/index.js +3 -0
- package/lib/converter/worker/index.js.map +1 -0
- package/lib/database/AcDbBlockTable.d.ts +56 -0
- package/lib/database/AcDbBlockTable.d.ts.map +1 -0
- package/lib/database/AcDbBlockTable.js +98 -0
- package/lib/database/AcDbBlockTable.js.map +1 -0
- package/lib/database/AcDbBlockTableRecord.d.ts +185 -0
- package/lib/database/AcDbBlockTableRecord.d.ts.map +1 -0
- package/lib/database/AcDbBlockTableRecord.js +261 -0
- package/lib/database/AcDbBlockTableRecord.js.map +1 -0
- package/lib/database/AcDbDatabase.d.ts +563 -0
- package/lib/database/AcDbDatabase.d.ts.map +1 -0
- package/lib/database/AcDbDatabase.js +842 -0
- package/lib/database/AcDbDatabase.js.map +1 -0
- package/lib/database/AcDbDatabaseConverter.d.ts +292 -0
- package/lib/database/AcDbDatabaseConverter.d.ts.map +1 -0
- package/lib/database/AcDbDatabaseConverter.js +448 -0
- package/lib/database/AcDbDatabaseConverter.js.map +1 -0
- package/lib/database/AcDbDatabaseConverterManager.d.ts +141 -0
- package/lib/database/AcDbDatabaseConverterManager.d.ts.map +1 -0
- package/lib/database/AcDbDatabaseConverterManager.js +173 -0
- package/lib/database/AcDbDatabaseConverterManager.js.map +1 -0
- package/lib/database/AcDbDimStyleTable.d.ts +31 -0
- package/lib/database/AcDbDimStyleTable.d.ts.map +1 -0
- package/lib/database/AcDbDimStyleTable.js +49 -0
- package/lib/database/AcDbDimStyleTable.js.map +1 -0
- package/lib/database/AcDbDimStyleTableRecord.d.ts +797 -0
- package/lib/database/AcDbDimStyleTableRecord.d.ts.map +1 -0
- package/lib/database/AcDbDimStyleTableRecord.js +1294 -0
- package/lib/database/AcDbDimStyleTableRecord.js.map +1 -0
- package/lib/database/AcDbDwgVersion.d.ts +32 -0
- package/lib/database/AcDbDwgVersion.d.ts.map +1 -0
- package/lib/database/AcDbDwgVersion.js +126 -0
- package/lib/database/AcDbDwgVersion.js.map +1 -0
- package/lib/database/AcDbLayerTable.d.ts +51 -0
- package/lib/database/AcDbLayerTable.d.ts.map +1 -0
- package/lib/database/AcDbLayerTable.js +92 -0
- package/lib/database/AcDbLayerTable.js.map +1 -0
- package/lib/database/AcDbLayerTableRecord.d.ts +278 -0
- package/lib/database/AcDbLayerTableRecord.d.ts.map +1 -0
- package/lib/database/AcDbLayerTableRecord.js +397 -0
- package/lib/database/AcDbLayerTableRecord.js.map +1 -0
- package/lib/database/AcDbLinetypeTable.d.ts +30 -0
- package/lib/database/AcDbLinetypeTable.d.ts.map +1 -0
- package/lib/database/AcDbLinetypeTable.js +48 -0
- package/lib/database/AcDbLinetypeTable.js.map +1 -0
- package/lib/database/AcDbLinetypeTableRecord.d.ts +79 -0
- package/lib/database/AcDbLinetypeTableRecord.d.ts.map +1 -0
- package/lib/database/AcDbLinetypeTableRecord.js +129 -0
- package/lib/database/AcDbLinetypeTableRecord.js.map +1 -0
- package/lib/database/AcDbSymbolTable.d.ts +199 -0
- package/lib/database/AcDbSymbolTable.d.ts.map +1 -0
- package/lib/database/AcDbSymbolTable.js +264 -0
- package/lib/database/AcDbSymbolTable.js.map +1 -0
- package/lib/database/AcDbSymbolTableRecord.d.ts +61 -0
- package/lib/database/AcDbSymbolTableRecord.d.ts.map +1 -0
- package/lib/database/AcDbSymbolTableRecord.js +82 -0
- package/lib/database/AcDbSymbolTableRecord.js.map +1 -0
- package/lib/database/AcDbTextStyleTable.d.ts +48 -0
- package/lib/database/AcDbTextStyleTable.d.ts.map +1 -0
- package/lib/database/AcDbTextStyleTable.js +112 -0
- package/lib/database/AcDbTextStyleTable.js.map +1 -0
- package/lib/database/AcDbTextStyleTableRecord.d.ts +179 -0
- package/lib/database/AcDbTextStyleTableRecord.d.ts.map +1 -0
- package/lib/database/AcDbTextStyleTableRecord.js +276 -0
- package/lib/database/AcDbTextStyleTableRecord.js.map +1 -0
- package/lib/database/AcDbViewportTable.d.ts +31 -0
- package/lib/database/AcDbViewportTable.d.ts.map +1 -0
- package/lib/database/AcDbViewportTable.js +49 -0
- package/lib/database/AcDbViewportTable.js.map +1 -0
- package/lib/database/AcDbViewportTableRecord.d.ts +154 -0
- package/lib/database/AcDbViewportTableRecord.d.ts.map +1 -0
- package/lib/database/AcDbViewportTableRecord.js +318 -0
- package/lib/database/AcDbViewportTableRecord.js.map +1 -0
- package/lib/database/index.d.ts +19 -0
- package/lib/database/index.d.ts.map +1 -0
- package/lib/database/index.js +19 -0
- package/lib/database/index.js.map +1 -0
- package/lib/entity/AcDb2dPolyline.d.ts +146 -0
- package/lib/entity/AcDb2dPolyline.d.ts.map +1 -0
- package/lib/entity/AcDb2dPolyline.js +220 -0
- package/lib/entity/AcDb2dPolyline.js.map +1 -0
- package/lib/entity/AcDb2dVertex.d.ts +143 -0
- package/lib/entity/AcDb2dVertex.d.ts.map +1 -0
- package/lib/entity/AcDb2dVertex.js +210 -0
- package/lib/entity/AcDb2dVertex.js.map +1 -0
- package/lib/entity/AcDb3dPolyline.d.ts +102 -0
- package/lib/entity/AcDb3dPolyline.d.ts.map +1 -0
- package/lib/entity/AcDb3dPolyline.js +158 -0
- package/lib/entity/AcDb3dPolyline.js.map +1 -0
- package/lib/entity/AcDb3dVertex.d.ts +83 -0
- package/lib/entity/AcDb3dVertex.d.ts.map +1 -0
- package/lib/entity/AcDb3dVertex.js +133 -0
- package/lib/entity/AcDb3dVertex.js.map +1 -0
- package/lib/entity/AcDbArc.d.ts +254 -0
- package/lib/entity/AcDbArc.d.ts.map +1 -0
- package/lib/entity/AcDbArc.js +340 -0
- package/lib/entity/AcDbArc.js.map +1 -0
- package/lib/entity/AcDbBlockReference.d.ts +190 -0
- package/lib/entity/AcDbBlockReference.d.ts.map +1 -0
- package/lib/entity/AcDbBlockReference.js +302 -0
- package/lib/entity/AcDbBlockReference.js.map +1 -0
- package/lib/entity/AcDbCircle.d.ts +186 -0
- package/lib/entity/AcDbCircle.d.ts.map +1 -0
- package/lib/entity/AcDbCircle.js +249 -0
- package/lib/entity/AcDbCircle.js.map +1 -0
- package/lib/entity/AcDbCurve.d.ts +42 -0
- package/lib/entity/AcDbCurve.d.ts.map +1 -0
- package/lib/entity/AcDbCurve.js +44 -0
- package/lib/entity/AcDbCurve.js.map +1 -0
- package/lib/entity/AcDbEllipse.d.ts +207 -0
- package/lib/entity/AcDbEllipse.d.ts.map +1 -0
- package/lib/entity/AcDbEllipse.js +272 -0
- package/lib/entity/AcDbEllipse.js.map +1 -0
- package/lib/entity/AcDbEntity.d.ts +385 -0
- package/lib/entity/AcDbEntity.d.ts.map +1 -0
- package/lib/entity/AcDbEntity.js +561 -0
- package/lib/entity/AcDbEntity.js.map +1 -0
- package/lib/entity/AcDbFace.d.ts +151 -0
- package/lib/entity/AcDbFace.d.ts.map +1 -0
- package/lib/entity/AcDbFace.js +224 -0
- package/lib/entity/AcDbFace.js.map +1 -0
- package/lib/entity/AcDbHatch.d.ts +174 -0
- package/lib/entity/AcDbHatch.d.ts.map +1 -0
- package/lib/entity/AcDbHatch.js +250 -0
- package/lib/entity/AcDbHatch.js.map +1 -0
- package/lib/entity/AcDbLeader.d.ts +243 -0
- package/lib/entity/AcDbLeader.d.ts.map +1 -0
- package/lib/entity/AcDbLeader.js +358 -0
- package/lib/entity/AcDbLeader.js.map +1 -0
- package/lib/entity/AcDbLine.d.ts +198 -0
- package/lib/entity/AcDbLine.d.ts.map +1 -0
- package/lib/entity/AcDbLine.js +300 -0
- package/lib/entity/AcDbLine.js.map +1 -0
- package/lib/entity/AcDbMText.d.ts +248 -0
- package/lib/entity/AcDbMText.d.ts.map +1 -0
- package/lib/entity/AcDbMText.js +414 -0
- package/lib/entity/AcDbMText.js.map +1 -0
- package/lib/entity/AcDbPoint.d.ts +113 -0
- package/lib/entity/AcDbPoint.d.ts.map +1 -0
- package/lib/entity/AcDbPoint.js +155 -0
- package/lib/entity/AcDbPoint.js.map +1 -0
- package/lib/entity/AcDbPolyline.d.ts +221 -0
- package/lib/entity/AcDbPolyline.d.ts.map +1 -0
- package/lib/entity/AcDbPolyline.js +301 -0
- package/lib/entity/AcDbPolyline.js.map +1 -0
- package/lib/entity/AcDbRasterImage.d.ts +216 -0
- package/lib/entity/AcDbRasterImage.d.ts.map +1 -0
- package/lib/entity/AcDbRasterImage.js +451 -0
- package/lib/entity/AcDbRasterImage.js.map +1 -0
- package/lib/entity/AcDbRay.d.ts +150 -0
- package/lib/entity/AcDbRay.d.ts.map +1 -0
- package/lib/entity/AcDbRay.js +208 -0
- package/lib/entity/AcDbRay.js.map +1 -0
- package/lib/entity/AcDbSpline.d.ts +135 -0
- package/lib/entity/AcDbSpline.d.ts.map +1 -0
- package/lib/entity/AcDbSpline.js +142 -0
- package/lib/entity/AcDbSpline.js.map +1 -0
- package/lib/entity/AcDbTable.d.ts +260 -0
- package/lib/entity/AcDbTable.d.ts.map +1 -0
- package/lib/entity/AcDbTable.js +452 -0
- package/lib/entity/AcDbTable.js.map +1 -0
- package/lib/entity/AcDbText.d.ts +388 -0
- package/lib/entity/AcDbText.d.ts.map +1 -0
- package/lib/entity/AcDbText.js +523 -0
- package/lib/entity/AcDbText.js.map +1 -0
- package/lib/entity/AcDbTrace.d.ts +193 -0
- package/lib/entity/AcDbTrace.d.ts.map +1 -0
- package/lib/entity/AcDbTrace.js +271 -0
- package/lib/entity/AcDbTrace.js.map +1 -0
- package/lib/entity/AcDbViewport.d.ts +173 -0
- package/lib/entity/AcDbViewport.d.ts.map +1 -0
- package/lib/entity/AcDbViewport.js +295 -0
- package/lib/entity/AcDbViewport.js.map +1 -0
- package/lib/entity/AcDbWipeout.d.ts +39 -0
- package/lib/entity/AcDbWipeout.d.ts.map +1 -0
- package/lib/entity/AcDbWipeout.js +70 -0
- package/lib/entity/AcDbWipeout.js.map +1 -0
- package/lib/entity/AcDbXline.d.ts +151 -0
- package/lib/entity/AcDbXline.d.ts.map +1 -0
- package/lib/entity/AcDbXline.js +209 -0
- package/lib/entity/AcDbXline.js.map +1 -0
- package/lib/entity/dimension/AcDb3PointAngularDimension.d.ts +92 -0
- package/lib/entity/dimension/AcDb3PointAngularDimension.d.ts.map +1 -0
- package/lib/entity/dimension/AcDb3PointAngularDimension.js +157 -0
- package/lib/entity/dimension/AcDb3PointAngularDimension.js.map +1 -0
- package/lib/entity/dimension/AcDbAlignedDimension.d.ts +220 -0
- package/lib/entity/dimension/AcDbAlignedDimension.d.ts.map +1 -0
- package/lib/entity/dimension/AcDbAlignedDimension.js +341 -0
- package/lib/entity/dimension/AcDbAlignedDimension.js.map +1 -0
- package/lib/entity/dimension/AcDbArcDimension.d.ts +94 -0
- package/lib/entity/dimension/AcDbArcDimension.d.ts.map +1 -0
- package/lib/entity/dimension/AcDbArcDimension.js +159 -0
- package/lib/entity/dimension/AcDbArcDimension.js.map +1 -0
- package/lib/entity/dimension/AcDbDiametricDimension.d.ts +145 -0
- package/lib/entity/dimension/AcDbDiametricDimension.d.ts.map +1 -0
- package/lib/entity/dimension/AcDbDiametricDimension.js +275 -0
- package/lib/entity/dimension/AcDbDiametricDimension.js.map +1 -0
- package/lib/entity/dimension/AcDbDimension.d.ts +257 -0
- package/lib/entity/dimension/AcDbDimension.d.ts.map +1 -0
- package/lib/entity/dimension/AcDbDimension.js +466 -0
- package/lib/entity/dimension/AcDbDimension.js.map +1 -0
- package/lib/entity/dimension/AcDbOrdinateDimension.d.ts +78 -0
- package/lib/entity/dimension/AcDbOrdinateDimension.d.ts.map +1 -0
- package/lib/entity/dimension/AcDbOrdinateDimension.js +133 -0
- package/lib/entity/dimension/AcDbOrdinateDimension.js.map +1 -0
- package/lib/entity/dimension/AcDbRadialDimension.d.ts +214 -0
- package/lib/entity/dimension/AcDbRadialDimension.d.ts.map +1 -0
- package/lib/entity/dimension/AcDbRadialDimension.js +288 -0
- package/lib/entity/dimension/AcDbRadialDimension.js.map +1 -0
- package/lib/entity/dimension/index.d.ts +8 -0
- package/lib/entity/dimension/index.d.ts.map +1 -0
- package/lib/entity/dimension/index.js +8 -0
- package/lib/entity/dimension/index.js.map +1 -0
- package/lib/entity/index.d.ts +28 -0
- package/lib/entity/index.d.ts.map +1 -0
- package/lib/entity/index.js +28 -0
- package/lib/entity/index.js.map +1 -0
- package/lib/index.d.ts +10 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +10 -0
- package/lib/index.js.map +1 -0
- package/lib/misc/AcDbAngleUnits.d.ts +20 -0
- package/lib/misc/AcDbAngleUnits.d.ts.map +1 -0
- package/lib/misc/AcDbAngleUnits.js +21 -0
- package/lib/misc/AcDbAngleUnits.js.map +1 -0
- package/lib/misc/AcDbCodePage.d.ts +50 -0
- package/lib/misc/AcDbCodePage.d.ts.map +1 -0
- package/lib/misc/AcDbCodePage.js +100 -0
- package/lib/misc/AcDbCodePage.js.map +1 -0
- package/lib/misc/AcDbConstants.d.ts +24 -0
- package/lib/misc/AcDbConstants.d.ts.map +1 -0
- package/lib/misc/AcDbConstants.js +24 -0
- package/lib/misc/AcDbConstants.js.map +1 -0
- package/lib/misc/AcDbDimArrowType.d.ts +89 -0
- package/lib/misc/AcDbDimArrowType.d.ts.map +1 -0
- package/lib/misc/AcDbDimArrowType.js +90 -0
- package/lib/misc/AcDbDimArrowType.js.map +1 -0
- package/lib/misc/AcDbObjectIterator.d.ts +64 -0
- package/lib/misc/AcDbObjectIterator.d.ts.map +1 -0
- package/lib/misc/AcDbObjectIterator.js +84 -0
- package/lib/misc/AcDbObjectIterator.js.map +1 -0
- package/lib/misc/AcDbOsnapMode.d.ts +51 -0
- package/lib/misc/AcDbOsnapMode.d.ts.map +1 -0
- package/lib/misc/AcDbOsnapMode.js +52 -0
- package/lib/misc/AcDbOsnapMode.js.map +1 -0
- package/lib/misc/AcDbRenderingCache.d.ts +141 -0
- package/lib/misc/AcDbRenderingCache.d.ts.map +1 -0
- package/lib/misc/AcDbRenderingCache.js +239 -0
- package/lib/misc/AcDbRenderingCache.js.map +1 -0
- package/lib/misc/AcDbUnitsValue.d.ts +101 -0
- package/lib/misc/AcDbUnitsValue.d.ts.map +1 -0
- package/lib/misc/AcDbUnitsValue.js +121 -0
- package/lib/misc/AcDbUnitsValue.js.map +1 -0
- package/lib/misc/index.d.ts +9 -0
- package/lib/misc/index.d.ts.map +1 -0
- package/lib/misc/index.js +9 -0
- package/lib/misc/index.js.map +1 -0
- package/lib/object/AcDbDictionary.d.ts +178 -0
- package/lib/object/AcDbDictionary.d.ts.map +1 -0
- package/lib/object/AcDbDictionary.js +264 -0
- package/lib/object/AcDbDictionary.js.map +1 -0
- package/lib/object/AcDbRasterImageDef.d.ts +54 -0
- package/lib/object/AcDbRasterImageDef.d.ts.map +1 -0
- package/lib/object/AcDbRasterImageDef.js +82 -0
- package/lib/object/AcDbRasterImageDef.js.map +1 -0
- package/lib/object/index.d.ts +4 -0
- package/lib/object/index.d.ts.map +1 -0
- package/lib/object/index.js +4 -0
- package/lib/object/index.js.map +1 -0
- package/lib/object/layout/AcDbLayout.d.ts +190 -0
- package/lib/object/layout/AcDbLayout.d.ts.map +1 -0
- package/lib/object/layout/AcDbLayout.js +253 -0
- package/lib/object/layout/AcDbLayout.js.map +1 -0
- package/lib/object/layout/AcDbLayoutDictionary.d.ts +47 -0
- package/lib/object/layout/AcDbLayoutDictionary.d.ts.map +1 -0
- package/lib/object/layout/AcDbLayoutDictionary.js +122 -0
- package/lib/object/layout/AcDbLayoutDictionary.js.map +1 -0
- package/lib/object/layout/AcDbLayoutManager.d.ts +188 -0
- package/lib/object/layout/AcDbLayoutManager.d.ts.map +1 -0
- package/lib/object/layout/AcDbLayoutManager.js +245 -0
- package/lib/object/layout/AcDbLayoutManager.js.map +1 -0
- package/lib/object/layout/index.d.ts +4 -0
- package/lib/object/layout/index.d.ts.map +1 -0
- package/lib/object/layout/index.js +4 -0
- package/lib/object/layout/index.js.map +1 -0
- package/package.json +4 -4
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/**
|
|
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.
|
|
7
|
+
*/
|
|
8
|
+
export declare enum AcDbUnitsValue {
|
|
9
|
+
/** Undefined or unitless */
|
|
10
|
+
Undefined = 0,
|
|
11
|
+
/** Inches */
|
|
12
|
+
Inches = 1,
|
|
13
|
+
/** Feet */
|
|
14
|
+
Feet = 2,
|
|
15
|
+
/** Miles */
|
|
16
|
+
Miles = 3,
|
|
17
|
+
/** Millimeters */
|
|
18
|
+
Millimeters = 4,
|
|
19
|
+
/** Centimeters */
|
|
20
|
+
Centimeters = 5,
|
|
21
|
+
/** Meters */
|
|
22
|
+
Meters = 6,
|
|
23
|
+
/** Kilometers */
|
|
24
|
+
Kilometers = 7,
|
|
25
|
+
/** Microinches */
|
|
26
|
+
Microinches = 8,
|
|
27
|
+
/** Mils (thousandths of an inch) */
|
|
28
|
+
Mils = 9,
|
|
29
|
+
/** Yards */
|
|
30
|
+
Yards = 10,
|
|
31
|
+
/** Angstroms */
|
|
32
|
+
Angstroms = 11,
|
|
33
|
+
/** Nanometers */
|
|
34
|
+
Nanometers = 12,
|
|
35
|
+
/** Microns (micrometers) */
|
|
36
|
+
Microns = 13,
|
|
37
|
+
/** Decimeters */
|
|
38
|
+
Decimeters = 14,
|
|
39
|
+
/** Dekameters */
|
|
40
|
+
Dekameters = 15,
|
|
41
|
+
/** Hectometers */
|
|
42
|
+
Hectometers = 16,
|
|
43
|
+
/** Gigameters */
|
|
44
|
+
Gigameters = 17,
|
|
45
|
+
/** Astronomical units */
|
|
46
|
+
Astronomical = 18,
|
|
47
|
+
/** Light years */
|
|
48
|
+
LightYears = 19,
|
|
49
|
+
/** Parsecs */
|
|
50
|
+
Parsecs = 20,
|
|
51
|
+
/**
|
|
52
|
+
* US Survey Feet - a historical survey unit that's about 2 parts per million larger than
|
|
53
|
+
* the International Feet unit. This difference is significant only at scales used for mapping in
|
|
54
|
+
* the U.S. The US Survey Feet setting is supported only for inserting or attaching drawings
|
|
55
|
+
* starting with AutoCAD 2017-based products. Drawings opened in prior versions will treat the US
|
|
56
|
+
* Survey Feet setting as Unitless.
|
|
57
|
+
*/
|
|
58
|
+
USSurveyFeet = 21,
|
|
59
|
+
/** US Survey Inches */
|
|
60
|
+
USSurveyInch = 22,
|
|
61
|
+
/** US Survey Yards */
|
|
62
|
+
USSurveyYard = 23,
|
|
63
|
+
/** US Survey Miles */
|
|
64
|
+
USSurveyMile = 24,
|
|
65
|
+
/** Maximum value for units */
|
|
66
|
+
Max = 24
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
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
|
+
* ```
|
|
83
|
+
*/
|
|
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;
|
|
85
|
+
/**
|
|
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
|
+
* ```
|
|
99
|
+
*/
|
|
100
|
+
export declare function isImperialUnits(units: AcDbUnitsValue): units is AcDbUnitsValue.Inches | AcDbUnitsValue.Feet | AcDbUnitsValue.Miles | AcDbUnitsValue.Microinches | AcDbUnitsValue.Mils | AcDbUnitsValue.Yards | AcDbUnitsValue.USSurveyFeet;
|
|
101
|
+
//# sourceMappingURL=AcDbUnitsValue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
/**
|
|
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.
|
|
7
|
+
*/
|
|
8
|
+
export var AcDbUnitsValue;
|
|
9
|
+
(function (AcDbUnitsValue) {
|
|
10
|
+
/** Undefined or unitless */
|
|
11
|
+
AcDbUnitsValue[AcDbUnitsValue["Undefined"] = 0] = "Undefined";
|
|
12
|
+
/** Inches */
|
|
13
|
+
AcDbUnitsValue[AcDbUnitsValue["Inches"] = 1] = "Inches";
|
|
14
|
+
/** Feet */
|
|
15
|
+
AcDbUnitsValue[AcDbUnitsValue["Feet"] = 2] = "Feet";
|
|
16
|
+
/** Miles */
|
|
17
|
+
AcDbUnitsValue[AcDbUnitsValue["Miles"] = 3] = "Miles";
|
|
18
|
+
/** Millimeters */
|
|
19
|
+
AcDbUnitsValue[AcDbUnitsValue["Millimeters"] = 4] = "Millimeters";
|
|
20
|
+
/** Centimeters */
|
|
21
|
+
AcDbUnitsValue[AcDbUnitsValue["Centimeters"] = 5] = "Centimeters";
|
|
22
|
+
/** Meters */
|
|
23
|
+
AcDbUnitsValue[AcDbUnitsValue["Meters"] = 6] = "Meters";
|
|
24
|
+
/** Kilometers */
|
|
25
|
+
AcDbUnitsValue[AcDbUnitsValue["Kilometers"] = 7] = "Kilometers";
|
|
26
|
+
/** Microinches */
|
|
27
|
+
AcDbUnitsValue[AcDbUnitsValue["Microinches"] = 8] = "Microinches";
|
|
28
|
+
/** Mils (thousandths of an inch) */
|
|
29
|
+
AcDbUnitsValue[AcDbUnitsValue["Mils"] = 9] = "Mils";
|
|
30
|
+
/** Yards */
|
|
31
|
+
AcDbUnitsValue[AcDbUnitsValue["Yards"] = 10] = "Yards";
|
|
32
|
+
/** Angstroms */
|
|
33
|
+
AcDbUnitsValue[AcDbUnitsValue["Angstroms"] = 11] = "Angstroms";
|
|
34
|
+
/** Nanometers */
|
|
35
|
+
AcDbUnitsValue[AcDbUnitsValue["Nanometers"] = 12] = "Nanometers";
|
|
36
|
+
/** Microns (micrometers) */
|
|
37
|
+
AcDbUnitsValue[AcDbUnitsValue["Microns"] = 13] = "Microns";
|
|
38
|
+
/** Decimeters */
|
|
39
|
+
AcDbUnitsValue[AcDbUnitsValue["Decimeters"] = 14] = "Decimeters";
|
|
40
|
+
/** Dekameters */
|
|
41
|
+
AcDbUnitsValue[AcDbUnitsValue["Dekameters"] = 15] = "Dekameters";
|
|
42
|
+
/** Hectometers */
|
|
43
|
+
AcDbUnitsValue[AcDbUnitsValue["Hectometers"] = 16] = "Hectometers";
|
|
44
|
+
/** Gigameters */
|
|
45
|
+
AcDbUnitsValue[AcDbUnitsValue["Gigameters"] = 17] = "Gigameters";
|
|
46
|
+
/** Astronomical units */
|
|
47
|
+
AcDbUnitsValue[AcDbUnitsValue["Astronomical"] = 18] = "Astronomical";
|
|
48
|
+
/** Light years */
|
|
49
|
+
AcDbUnitsValue[AcDbUnitsValue["LightYears"] = 19] = "LightYears";
|
|
50
|
+
/** Parsecs */
|
|
51
|
+
AcDbUnitsValue[AcDbUnitsValue["Parsecs"] = 20] = "Parsecs";
|
|
52
|
+
/**
|
|
53
|
+
* US Survey Feet - a historical survey unit that's about 2 parts per million larger than
|
|
54
|
+
* the International Feet unit. This difference is significant only at scales used for mapping in
|
|
55
|
+
* the U.S. The US Survey Feet setting is supported only for inserting or attaching drawings
|
|
56
|
+
* starting with AutoCAD 2017-based products. Drawings opened in prior versions will treat the US
|
|
57
|
+
* Survey Feet setting as Unitless.
|
|
58
|
+
*/
|
|
59
|
+
AcDbUnitsValue[AcDbUnitsValue["USSurveyFeet"] = 21] = "USSurveyFeet";
|
|
60
|
+
/** US Survey Inches */
|
|
61
|
+
AcDbUnitsValue[AcDbUnitsValue["USSurveyInch"] = 22] = "USSurveyInch";
|
|
62
|
+
/** US Survey Yards */
|
|
63
|
+
AcDbUnitsValue[AcDbUnitsValue["USSurveyYard"] = 23] = "USSurveyYard";
|
|
64
|
+
/** US Survey Miles */
|
|
65
|
+
AcDbUnitsValue[AcDbUnitsValue["USSurveyMile"] = 24] = "USSurveyMile";
|
|
66
|
+
/** Maximum value for units */
|
|
67
|
+
AcDbUnitsValue[AcDbUnitsValue["Max"] = 24] = "Max";
|
|
68
|
+
})(AcDbUnitsValue || (AcDbUnitsValue = {}));
|
|
69
|
+
/**
|
|
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
|
+
* ```
|
|
84
|
+
*/
|
|
85
|
+
export function isMetricUnits(units) {
|
|
86
|
+
return (units == AcDbUnitsValue.Millimeters ||
|
|
87
|
+
units == AcDbUnitsValue.Centimeters ||
|
|
88
|
+
units == AcDbUnitsValue.Meters ||
|
|
89
|
+
units == AcDbUnitsValue.Kilometers ||
|
|
90
|
+
units == AcDbUnitsValue.Nanometers ||
|
|
91
|
+
units == AcDbUnitsValue.Microns ||
|
|
92
|
+
units == AcDbUnitsValue.Decimeters ||
|
|
93
|
+
units == AcDbUnitsValue.Dekameters ||
|
|
94
|
+
units == AcDbUnitsValue.Hectometers ||
|
|
95
|
+
units == AcDbUnitsValue.Gigameters);
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
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
|
+
* ```
|
|
111
|
+
*/
|
|
112
|
+
export function isImperialUnits(units) {
|
|
113
|
+
return (units == AcDbUnitsValue.Inches ||
|
|
114
|
+
units == AcDbUnitsValue.Feet ||
|
|
115
|
+
units == AcDbUnitsValue.Miles ||
|
|
116
|
+
units == AcDbUnitsValue.Microinches ||
|
|
117
|
+
units == AcDbUnitsValue.Mils ||
|
|
118
|
+
units == AcDbUnitsValue.Yards ||
|
|
119
|
+
units == AcDbUnitsValue.USSurveyFeet);
|
|
120
|
+
}
|
|
121
|
+
//# sourceMappingURL=AcDbUnitsValue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './AcDbAngleUnits';
|
|
2
|
+
export * from './AcDbRenderingCache';
|
|
3
|
+
export * from './AcDbCodePage';
|
|
4
|
+
export * from './AcDbConstants';
|
|
5
|
+
export * from './AcDbOsnapMode';
|
|
6
|
+
export * from './AcDbUnitsValue';
|
|
7
|
+
export * from './AcDbDimArrowType';
|
|
8
|
+
export * from './AcDbObjectIterator';
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/misc/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA;AAChC,cAAc,sBAAsB,CAAA;AACpC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,kBAAkB,CAAA;AAChC,cAAc,oBAAoB,CAAA;AAClC,cAAc,sBAAsB,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './AcDbAngleUnits';
|
|
2
|
+
export * from './AcDbRenderingCache';
|
|
3
|
+
export * from './AcDbCodePage';
|
|
4
|
+
export * from './AcDbConstants';
|
|
5
|
+
export * from './AcDbOsnapMode';
|
|
6
|
+
export * from './AcDbUnitsValue';
|
|
7
|
+
export * from './AcDbDimArrowType';
|
|
8
|
+
export * from './AcDbObjectIterator';
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/misc/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA;AAChC,cAAc,sBAAsB,CAAA;AACpC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,kBAAkB,CAAA;AAChC,cAAc,oBAAoB,CAAA;AAClC,cAAc,sBAAsB,CAAA"}
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import { AcDbObject, AcDbObjectId } from '../base';
|
|
2
|
+
import { AcDbDatabase } from '../database';
|
|
3
|
+
import { AcDbObjectIterator } from '../misc';
|
|
4
|
+
/**
|
|
5
|
+
* A database-resident object dictionary that maintains a map between text strings and database objects.
|
|
6
|
+
*
|
|
7
|
+
* An instance of this class represents a single object, such as Drawing Symbol Table, to which objects
|
|
8
|
+
* derived from AcDbObject may be added, accessed, and removed. Entries in an AcDbDictionary must be unique.
|
|
9
|
+
* Entries consist of a unique AcDbObject and string, which comprises the entry's key name. The key may be
|
|
10
|
+
* either a text string, or an asterisk ('*') as the first character in the string to signify an anonymous
|
|
11
|
+
* entry. An anonymous entry's key will be constructed internally by appending an 'A' plus a unique integer
|
|
12
|
+
* value to the asterisk; for example, '*A13'. When an object is placed in a dictionary, the dictionary is
|
|
13
|
+
* established as the object's owner, the lookup key string is associated with the object's object ID, and
|
|
14
|
+
* the dictionary itself is attached to the object as a persistent reactor so that the dictionary is notified
|
|
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
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
export declare class AcDbDictionary<TObjectType extends AcDbObject = AcDbObject> extends AcDbObject {
|
|
28
|
+
/** Map of records indexed by name */
|
|
29
|
+
protected _recordsByName: Map<string, TObjectType>;
|
|
30
|
+
/** Map of records indexed by object ID */
|
|
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
|
+
*/
|
|
42
|
+
constructor(db: AcDbDatabase);
|
|
43
|
+
/**
|
|
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
|
+
* ```
|
|
53
|
+
*/
|
|
54
|
+
get numEntries(): number;
|
|
55
|
+
/**
|
|
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
|
+
* ```
|
|
69
|
+
*/
|
|
70
|
+
setAt(key: string, value: TObjectType): void;
|
|
71
|
+
/**
|
|
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
|
+
* ```
|
|
84
|
+
*/
|
|
85
|
+
remove(name: string): boolean;
|
|
86
|
+
/**
|
|
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
|
+
* ```
|
|
96
|
+
*/
|
|
97
|
+
removeId(id: string): boolean;
|
|
98
|
+
/**
|
|
99
|
+
* Removes all records from the dictionary.
|
|
100
|
+
*
|
|
101
|
+
* @example
|
|
102
|
+
* ```typescript
|
|
103
|
+
* dictionary.removeAll();
|
|
104
|
+
* ```
|
|
105
|
+
*/
|
|
106
|
+
removeAll(): void;
|
|
107
|
+
/**
|
|
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
|
+
* ```
|
|
119
|
+
*/
|
|
120
|
+
has(name: string): boolean;
|
|
121
|
+
/**
|
|
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
|
+
* ```
|
|
133
|
+
*/
|
|
134
|
+
hasId(id: string): boolean;
|
|
135
|
+
/**
|
|
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
|
+
* ```
|
|
148
|
+
*/
|
|
149
|
+
getAt(name: string): TObjectType | undefined;
|
|
150
|
+
/**
|
|
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
|
+
* ```
|
|
160
|
+
*/
|
|
161
|
+
getIdAt(id: AcDbObjectId): TObjectType | undefined;
|
|
162
|
+
/**
|
|
163
|
+
* Creates a new iterator for traversing the dictionary entries.
|
|
164
|
+
*
|
|
165
|
+
* @returns A new AcDbObjectIterator for this dictionary
|
|
166
|
+
*
|
|
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
|
+
* ```
|
|
175
|
+
*/
|
|
176
|
+
newIterator(): AcDbObjectIterator<TObjectType>;
|
|
177
|
+
}
|
|
178
|
+
//# sourceMappingURL=AcDbDictionary.d.ts.map
|
|
@@ -0,0 +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;;;;;;;;;;;;;;;;;;;;;;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;IAWrC;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,IAAI,EAAE,MAAM;IAenB;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM;IAmBnB;;;;;;;OAOG;IACH,SAAS;IAYT;;;;;;;;;;;;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"}
|