@mlightcad/data-model 1.3.0 → 1.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +4 -4
- package/dist/data-model.cjs +0 -5
- package/dist/data-model.js +0 -25305
- package/dist/dxf-parser-worker.js +0 -1669
- package/lib/base/AcDbHostApplicationServices.d.ts +0 -96
- package/lib/base/AcDbHostApplicationServices.d.ts.map +0 -1
- package/lib/base/AcDbHostApplicationServices.js +0 -118
- package/lib/base/AcDbHostApplicationServices.js.map +0 -1
- package/lib/base/AcDbObject.d.ts +0 -205
- package/lib/base/AcDbObject.d.ts.map +0 -1
- package/lib/base/AcDbObject.js +0 -236
- package/lib/base/AcDbObject.js.map +0 -1
- package/lib/base/index.d.ts +0 -3
- package/lib/base/index.d.ts.map +0 -1
- package/lib/base/index.js +0 -3
- package/lib/base/index.js.map +0 -1
- package/lib/converter/AcDbBatchProcessing.d.ts +0 -146
- package/lib/converter/AcDbBatchProcessing.d.ts.map +0 -1
- package/lib/converter/AcDbBatchProcessing.js +0 -272
- package/lib/converter/AcDbBatchProcessing.js.map +0 -1
- package/lib/converter/AcDbDxfConverter.d.ts +0 -272
- package/lib/converter/AcDbDxfConverter.d.ts.map +0 -1
- package/lib/converter/AcDbDxfConverter.js +0 -872
- package/lib/converter/AcDbDxfConverter.js.map +0 -1
- package/lib/converter/AcDbDxfParser.d.ts +0 -23
- package/lib/converter/AcDbDxfParser.d.ts.map +0 -1
- package/lib/converter/AcDbDxfParser.js +0 -83
- package/lib/converter/AcDbDxfParser.js.map +0 -1
- package/lib/converter/AcDbEntitiyConverter.d.ts +0 -159
- package/lib/converter/AcDbEntitiyConverter.d.ts.map +0 -1
- package/lib/converter/AcDbEntitiyConverter.js +0 -659
- package/lib/converter/AcDbEntitiyConverter.js.map +0 -1
- package/lib/converter/AcDbObjectConverter.d.ts +0 -61
- package/lib/converter/AcDbObjectConverter.d.ts.map +0 -1
- package/lib/converter/AcDbObjectConverter.js +0 -91
- package/lib/converter/AcDbObjectConverter.js.map +0 -1
- package/lib/converter/index.d.ts +0 -4
- package/lib/converter/index.d.ts.map +0 -1
- package/lib/converter/index.js +0 -4
- package/lib/converter/index.js.map +0 -1
- package/lib/converter/worker/AcDbBaseWorker.d.ts +0 -36
- package/lib/converter/worker/AcDbBaseWorker.d.ts.map +0 -1
- package/lib/converter/worker/AcDbBaseWorker.js +0 -93
- package/lib/converter/worker/AcDbBaseWorker.js.map +0 -1
- package/lib/converter/worker/AcDbDxfParserWorker.d.ts +0 -11
- package/lib/converter/worker/AcDbDxfParserWorker.d.ts.map +0 -1
- package/lib/converter/worker/AcDbDxfParserWorker.js +0 -75
- package/lib/converter/worker/AcDbDxfParserWorker.js.map +0 -1
- package/lib/converter/worker/AcDbWorkerManager.d.ts +0 -107
- package/lib/converter/worker/AcDbWorkerManager.d.ts.map +0 -1
- package/lib/converter/worker/AcDbWorkerManager.js +0 -360
- package/lib/converter/worker/AcDbWorkerManager.js.map +0 -1
- package/lib/converter/worker/index.d.ts +0 -3
- package/lib/converter/worker/index.d.ts.map +0 -1
- package/lib/converter/worker/index.js +0 -3
- package/lib/converter/worker/index.js.map +0 -1
- package/lib/database/AcDbBlockTable.d.ts +0 -56
- package/lib/database/AcDbBlockTable.d.ts.map +0 -1
- package/lib/database/AcDbBlockTable.js +0 -98
- package/lib/database/AcDbBlockTable.js.map +0 -1
- package/lib/database/AcDbBlockTableRecord.d.ts +0 -185
- package/lib/database/AcDbBlockTableRecord.d.ts.map +0 -1
- package/lib/database/AcDbBlockTableRecord.js +0 -261
- package/lib/database/AcDbBlockTableRecord.js.map +0 -1
- package/lib/database/AcDbDatabase.d.ts +0 -575
- package/lib/database/AcDbDatabase.d.ts.map +0 -1
- package/lib/database/AcDbDatabase.js +0 -833
- package/lib/database/AcDbDatabase.js.map +0 -1
- package/lib/database/AcDbDatabaseConverter.d.ts +0 -292
- package/lib/database/AcDbDatabaseConverter.d.ts.map +0 -1
- package/lib/database/AcDbDatabaseConverter.js +0 -447
- package/lib/database/AcDbDatabaseConverter.js.map +0 -1
- package/lib/database/AcDbDatabaseConverterManager.d.ts +0 -141
- package/lib/database/AcDbDatabaseConverterManager.d.ts.map +0 -1
- package/lib/database/AcDbDatabaseConverterManager.js +0 -173
- package/lib/database/AcDbDatabaseConverterManager.js.map +0 -1
- package/lib/database/AcDbDimStyleTable.d.ts +0 -31
- package/lib/database/AcDbDimStyleTable.d.ts.map +0 -1
- package/lib/database/AcDbDimStyleTable.js +0 -49
- package/lib/database/AcDbDimStyleTable.js.map +0 -1
- package/lib/database/AcDbDimStyleTableRecord.d.ts +0 -797
- package/lib/database/AcDbDimStyleTableRecord.d.ts.map +0 -1
- package/lib/database/AcDbDimStyleTableRecord.js +0 -1294
- package/lib/database/AcDbDimStyleTableRecord.js.map +0 -1
- package/lib/database/AcDbDwgVersion.d.ts +0 -32
- package/lib/database/AcDbDwgVersion.d.ts.map +0 -1
- package/lib/database/AcDbDwgVersion.js +0 -76
- package/lib/database/AcDbDwgVersion.js.map +0 -1
- package/lib/database/AcDbLayerTable.d.ts +0 -51
- package/lib/database/AcDbLayerTable.d.ts.map +0 -1
- package/lib/database/AcDbLayerTable.js +0 -92
- package/lib/database/AcDbLayerTable.js.map +0 -1
- package/lib/database/AcDbLayerTableRecord.d.ts +0 -278
- package/lib/database/AcDbLayerTableRecord.d.ts.map +0 -1
- package/lib/database/AcDbLayerTableRecord.js +0 -397
- package/lib/database/AcDbLayerTableRecord.js.map +0 -1
- package/lib/database/AcDbLinetypeTable.d.ts +0 -30
- package/lib/database/AcDbLinetypeTable.d.ts.map +0 -1
- package/lib/database/AcDbLinetypeTable.js +0 -48
- package/lib/database/AcDbLinetypeTable.js.map +0 -1
- package/lib/database/AcDbLinetypeTableRecord.d.ts +0 -79
- package/lib/database/AcDbLinetypeTableRecord.d.ts.map +0 -1
- package/lib/database/AcDbLinetypeTableRecord.js +0 -129
- package/lib/database/AcDbLinetypeTableRecord.js.map +0 -1
- package/lib/database/AcDbSymbolTable.d.ts +0 -199
- package/lib/database/AcDbSymbolTable.d.ts.map +0 -1
- package/lib/database/AcDbSymbolTable.js +0 -264
- package/lib/database/AcDbSymbolTable.js.map +0 -1
- package/lib/database/AcDbSymbolTableRecord.d.ts +0 -61
- package/lib/database/AcDbSymbolTableRecord.d.ts.map +0 -1
- package/lib/database/AcDbSymbolTableRecord.js +0 -82
- package/lib/database/AcDbSymbolTableRecord.js.map +0 -1
- package/lib/database/AcDbTextStyleTable.d.ts +0 -48
- package/lib/database/AcDbTextStyleTable.d.ts.map +0 -1
- package/lib/database/AcDbTextStyleTable.js +0 -112
- package/lib/database/AcDbTextStyleTable.js.map +0 -1
- package/lib/database/AcDbTextStyleTableRecord.d.ts +0 -179
- package/lib/database/AcDbTextStyleTableRecord.d.ts.map +0 -1
- package/lib/database/AcDbTextStyleTableRecord.js +0 -276
- package/lib/database/AcDbTextStyleTableRecord.js.map +0 -1
- package/lib/database/AcDbViewportTable.d.ts +0 -31
- package/lib/database/AcDbViewportTable.d.ts.map +0 -1
- package/lib/database/AcDbViewportTable.js +0 -49
- package/lib/database/AcDbViewportTable.js.map +0 -1
- package/lib/database/AcDbViewportTableRecord.d.ts +0 -154
- package/lib/database/AcDbViewportTableRecord.d.ts.map +0 -1
- package/lib/database/AcDbViewportTableRecord.js +0 -318
- package/lib/database/AcDbViewportTableRecord.js.map +0 -1
- package/lib/database/index.d.ts +0 -19
- package/lib/database/index.d.ts.map +0 -1
- package/lib/database/index.js +0 -19
- package/lib/database/index.js.map +0 -1
- package/lib/entity/AcDbArc.d.ts +0 -254
- package/lib/entity/AcDbArc.d.ts.map +0 -1
- package/lib/entity/AcDbArc.js +0 -340
- package/lib/entity/AcDbArc.js.map +0 -1
- package/lib/entity/AcDbBlockReference.d.ts +0 -190
- package/lib/entity/AcDbBlockReference.d.ts.map +0 -1
- package/lib/entity/AcDbBlockReference.js +0 -302
- package/lib/entity/AcDbBlockReference.js.map +0 -1
- package/lib/entity/AcDbCircle.d.ts +0 -186
- package/lib/entity/AcDbCircle.d.ts.map +0 -1
- package/lib/entity/AcDbCircle.js +0 -249
- package/lib/entity/AcDbCircle.js.map +0 -1
- package/lib/entity/AcDbCurve.d.ts +0 -42
- package/lib/entity/AcDbCurve.d.ts.map +0 -1
- package/lib/entity/AcDbCurve.js +0 -44
- package/lib/entity/AcDbCurve.js.map +0 -1
- package/lib/entity/AcDbEllipse.d.ts +0 -207
- package/lib/entity/AcDbEllipse.d.ts.map +0 -1
- package/lib/entity/AcDbEllipse.js +0 -272
- package/lib/entity/AcDbEllipse.js.map +0 -1
- package/lib/entity/AcDbEntity.d.ts +0 -385
- package/lib/entity/AcDbEntity.d.ts.map +0 -1
- package/lib/entity/AcDbEntity.js +0 -561
- package/lib/entity/AcDbEntity.js.map +0 -1
- package/lib/entity/AcDbFace.d.ts +0 -151
- package/lib/entity/AcDbFace.d.ts.map +0 -1
- package/lib/entity/AcDbFace.js +0 -224
- package/lib/entity/AcDbFace.js.map +0 -1
- package/lib/entity/AcDbHatch.d.ts +0 -174
- package/lib/entity/AcDbHatch.d.ts.map +0 -1
- package/lib/entity/AcDbHatch.js +0 -250
- package/lib/entity/AcDbHatch.js.map +0 -1
- package/lib/entity/AcDbLeader.d.ts +0 -243
- package/lib/entity/AcDbLeader.d.ts.map +0 -1
- package/lib/entity/AcDbLeader.js +0 -358
- package/lib/entity/AcDbLeader.js.map +0 -1
- package/lib/entity/AcDbLine.d.ts +0 -198
- package/lib/entity/AcDbLine.d.ts.map +0 -1
- package/lib/entity/AcDbLine.js +0 -300
- package/lib/entity/AcDbLine.js.map +0 -1
- package/lib/entity/AcDbMText.d.ts +0 -248
- package/lib/entity/AcDbMText.d.ts.map +0 -1
- package/lib/entity/AcDbMText.js +0 -414
- package/lib/entity/AcDbMText.js.map +0 -1
- package/lib/entity/AcDbPoint.d.ts +0 -113
- package/lib/entity/AcDbPoint.d.ts.map +0 -1
- package/lib/entity/AcDbPoint.js +0 -155
- package/lib/entity/AcDbPoint.js.map +0 -1
- package/lib/entity/AcDbPolyline.d.ts +0 -221
- package/lib/entity/AcDbPolyline.d.ts.map +0 -1
- package/lib/entity/AcDbPolyline.js +0 -301
- package/lib/entity/AcDbPolyline.js.map +0 -1
- package/lib/entity/AcDbRasterImage.d.ts +0 -216
- package/lib/entity/AcDbRasterImage.d.ts.map +0 -1
- package/lib/entity/AcDbRasterImage.js +0 -451
- package/lib/entity/AcDbRasterImage.js.map +0 -1
- package/lib/entity/AcDbRay.d.ts +0 -150
- package/lib/entity/AcDbRay.d.ts.map +0 -1
- package/lib/entity/AcDbRay.js +0 -208
- package/lib/entity/AcDbRay.js.map +0 -1
- package/lib/entity/AcDbSpline.d.ts +0 -135
- package/lib/entity/AcDbSpline.d.ts.map +0 -1
- package/lib/entity/AcDbSpline.js +0 -142
- package/lib/entity/AcDbSpline.js.map +0 -1
- package/lib/entity/AcDbTable.d.ts +0 -260
- package/lib/entity/AcDbTable.d.ts.map +0 -1
- package/lib/entity/AcDbTable.js +0 -452
- package/lib/entity/AcDbTable.js.map +0 -1
- package/lib/entity/AcDbText.d.ts +0 -388
- package/lib/entity/AcDbText.d.ts.map +0 -1
- package/lib/entity/AcDbText.js +0 -523
- package/lib/entity/AcDbText.js.map +0 -1
- package/lib/entity/AcDbTrace.d.ts +0 -193
- package/lib/entity/AcDbTrace.d.ts.map +0 -1
- package/lib/entity/AcDbTrace.js +0 -271
- package/lib/entity/AcDbTrace.js.map +0 -1
- package/lib/entity/AcDbViewport.d.ts +0 -173
- package/lib/entity/AcDbViewport.d.ts.map +0 -1
- package/lib/entity/AcDbViewport.js +0 -295
- package/lib/entity/AcDbViewport.js.map +0 -1
- package/lib/entity/AcDbWipeout.d.ts +0 -39
- package/lib/entity/AcDbWipeout.d.ts.map +0 -1
- package/lib/entity/AcDbWipeout.js +0 -70
- package/lib/entity/AcDbWipeout.js.map +0 -1
- package/lib/entity/AcDbXline.d.ts +0 -151
- package/lib/entity/AcDbXline.d.ts.map +0 -1
- package/lib/entity/AcDbXline.js +0 -209
- package/lib/entity/AcDbXline.js.map +0 -1
- package/lib/entity/dimension/AcDb3PointAngularDimension.d.ts +0 -92
- package/lib/entity/dimension/AcDb3PointAngularDimension.d.ts.map +0 -1
- package/lib/entity/dimension/AcDb3PointAngularDimension.js +0 -157
- package/lib/entity/dimension/AcDb3PointAngularDimension.js.map +0 -1
- package/lib/entity/dimension/AcDbAlignedDimension.d.ts +0 -220
- package/lib/entity/dimension/AcDbAlignedDimension.d.ts.map +0 -1
- package/lib/entity/dimension/AcDbAlignedDimension.js +0 -341
- package/lib/entity/dimension/AcDbAlignedDimension.js.map +0 -1
- package/lib/entity/dimension/AcDbArcDimension.d.ts +0 -94
- package/lib/entity/dimension/AcDbArcDimension.d.ts.map +0 -1
- package/lib/entity/dimension/AcDbArcDimension.js +0 -159
- package/lib/entity/dimension/AcDbArcDimension.js.map +0 -1
- package/lib/entity/dimension/AcDbDiametricDimension.d.ts +0 -145
- package/lib/entity/dimension/AcDbDiametricDimension.d.ts.map +0 -1
- package/lib/entity/dimension/AcDbDiametricDimension.js +0 -275
- package/lib/entity/dimension/AcDbDiametricDimension.js.map +0 -1
- package/lib/entity/dimension/AcDbDimension.d.ts +0 -257
- package/lib/entity/dimension/AcDbDimension.d.ts.map +0 -1
- package/lib/entity/dimension/AcDbDimension.js +0 -466
- package/lib/entity/dimension/AcDbDimension.js.map +0 -1
- package/lib/entity/dimension/AcDbOrdinateDimension.d.ts +0 -78
- package/lib/entity/dimension/AcDbOrdinateDimension.d.ts.map +0 -1
- package/lib/entity/dimension/AcDbOrdinateDimension.js +0 -133
- package/lib/entity/dimension/AcDbOrdinateDimension.js.map +0 -1
- package/lib/entity/dimension/AcDbRadialDimension.d.ts +0 -214
- package/lib/entity/dimension/AcDbRadialDimension.d.ts.map +0 -1
- package/lib/entity/dimension/AcDbRadialDimension.js +0 -288
- package/lib/entity/dimension/AcDbRadialDimension.js.map +0 -1
- package/lib/entity/dimension/index.d.ts +0 -8
- package/lib/entity/dimension/index.d.ts.map +0 -1
- package/lib/entity/dimension/index.js +0 -8
- package/lib/entity/dimension/index.js.map +0 -1
- package/lib/entity/index.d.ts +0 -24
- package/lib/entity/index.d.ts.map +0 -1
- package/lib/entity/index.js +0 -24
- package/lib/entity/index.js.map +0 -1
- package/lib/index.d.ts +0 -10
- package/lib/index.d.ts.map +0 -1
- package/lib/index.js +0 -10
- package/lib/index.js.map +0 -1
- package/lib/misc/AcDbAngleUnits.d.ts +0 -20
- package/lib/misc/AcDbAngleUnits.d.ts.map +0 -1
- package/lib/misc/AcDbAngleUnits.js +0 -21
- package/lib/misc/AcDbAngleUnits.js.map +0 -1
- package/lib/misc/AcDbCodePage.d.ts +0 -50
- package/lib/misc/AcDbCodePage.d.ts.map +0 -1
- package/lib/misc/AcDbCodePage.js +0 -100
- package/lib/misc/AcDbCodePage.js.map +0 -1
- package/lib/misc/AcDbConstants.d.ts +0 -24
- package/lib/misc/AcDbConstants.d.ts.map +0 -1
- package/lib/misc/AcDbConstants.js +0 -24
- package/lib/misc/AcDbConstants.js.map +0 -1
- package/lib/misc/AcDbDimArrowType.d.ts +0 -89
- package/lib/misc/AcDbDimArrowType.d.ts.map +0 -1
- package/lib/misc/AcDbDimArrowType.js +0 -90
- package/lib/misc/AcDbDimArrowType.js.map +0 -1
- package/lib/misc/AcDbObjectIterator.d.ts +0 -55
- package/lib/misc/AcDbObjectIterator.d.ts.map +0 -1
- package/lib/misc/AcDbObjectIterator.js +0 -67
- package/lib/misc/AcDbObjectIterator.js.map +0 -1
- package/lib/misc/AcDbOsnapMode.d.ts +0 -51
- package/lib/misc/AcDbOsnapMode.d.ts.map +0 -1
- package/lib/misc/AcDbOsnapMode.js +0 -52
- package/lib/misc/AcDbOsnapMode.js.map +0 -1
- package/lib/misc/AcDbRenderingCache.d.ts +0 -141
- package/lib/misc/AcDbRenderingCache.d.ts.map +0 -1
- package/lib/misc/AcDbRenderingCache.js +0 -239
- package/lib/misc/AcDbRenderingCache.js.map +0 -1
- package/lib/misc/AcDbUnitsValue.d.ts +0 -101
- package/lib/misc/AcDbUnitsValue.d.ts.map +0 -1
- package/lib/misc/AcDbUnitsValue.js +0 -121
- package/lib/misc/AcDbUnitsValue.js.map +0 -1
- package/lib/misc/index.d.ts +0 -9
- package/lib/misc/index.d.ts.map +0 -1
- package/lib/misc/index.js +0 -9
- package/lib/misc/index.js.map +0 -1
- package/lib/object/AcDbDictionary.d.ts +0 -178
- package/lib/object/AcDbDictionary.d.ts.map +0 -1
- package/lib/object/AcDbDictionary.js +0 -264
- package/lib/object/AcDbDictionary.js.map +0 -1
- package/lib/object/AcDbRasterImageDef.d.ts +0 -54
- package/lib/object/AcDbRasterImageDef.d.ts.map +0 -1
- package/lib/object/AcDbRasterImageDef.js +0 -82
- package/lib/object/AcDbRasterImageDef.js.map +0 -1
- package/lib/object/index.d.ts +0 -4
- package/lib/object/index.d.ts.map +0 -1
- package/lib/object/index.js +0 -4
- package/lib/object/index.js.map +0 -1
- package/lib/object/layout/AcDbLayout.d.ts +0 -190
- package/lib/object/layout/AcDbLayout.d.ts.map +0 -1
- package/lib/object/layout/AcDbLayout.js +0 -253
- package/lib/object/layout/AcDbLayout.js.map +0 -1
- package/lib/object/layout/AcDbLayoutDictionary.d.ts +0 -47
- package/lib/object/layout/AcDbLayoutDictionary.d.ts.map +0 -1
- package/lib/object/layout/AcDbLayoutDictionary.js +0 -122
- package/lib/object/layout/AcDbLayoutDictionary.js.map +0 -1
- package/lib/object/layout/AcDbLayoutManager.d.ts +0 -188
- package/lib/object/layout/AcDbLayoutManager.d.ts.map +0 -1
- package/lib/object/layout/AcDbLayoutManager.js +0 -245
- package/lib/object/layout/AcDbLayoutManager.js.map +0 -1
- package/lib/object/layout/index.d.ts +0 -4
- package/lib/object/layout/index.d.ts.map +0 -1
- package/lib/object/layout/index.js +0 -4
- package/lib/object/layout/index.js.map +0 -1
|
@@ -1,121 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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;IACj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C,CAAA;AACH,CAAC"}
|
package/lib/misc/index.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
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
|
package/lib/misc/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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"}
|
package/lib/misc/index.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
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
|
package/lib/misc/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,178 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,264 +0,0 @@
|
|
|
1
|
-
var __extends = (this && this.__extends) || (function () {
|
|
2
|
-
var extendStatics = function (d, b) {
|
|
3
|
-
extendStatics = Object.setPrototypeOf ||
|
|
4
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
|
-
return extendStatics(d, b);
|
|
7
|
-
};
|
|
8
|
-
return function (d, b) {
|
|
9
|
-
if (typeof b !== "function" && b !== null)
|
|
10
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
11
|
-
extendStatics(d, b);
|
|
12
|
-
function __() { this.constructor = d; }
|
|
13
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14
|
-
};
|
|
15
|
-
})();
|
|
16
|
-
import { AcDbObject } from '../base';
|
|
17
|
-
import { AcDbObjectIterator } from '../misc';
|
|
18
|
-
/**
|
|
19
|
-
* A database-resident object dictionary that maintains a map between text strings and database objects.
|
|
20
|
-
*
|
|
21
|
-
* An instance of this class represents a single object, such as Drawing Symbol Table, to which objects
|
|
22
|
-
* derived from AcDbObject may be added, accessed, and removed. Entries in an AcDbDictionary must be unique.
|
|
23
|
-
* Entries consist of a unique AcDbObject and string, which comprises the entry's key name. The key may be
|
|
24
|
-
* either a text string, or an asterisk ('*') as the first character in the string to signify an anonymous
|
|
25
|
-
* entry. An anonymous entry's key will be constructed internally by appending an 'A' plus a unique integer
|
|
26
|
-
* value to the asterisk; for example, '*A13'. When an object is placed in a dictionary, the dictionary is
|
|
27
|
-
* established as the object's owner, the lookup key string is associated with the object's object ID, and
|
|
28
|
-
* the dictionary itself is attached to the object as a persistent reactor so that the dictionary is notified
|
|
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
|
-
* ```
|
|
40
|
-
*/
|
|
41
|
-
var AcDbDictionary = /** @class */ (function (_super) {
|
|
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
|
-
*/
|
|
53
|
-
function AcDbDictionary(db) {
|
|
54
|
-
var _this = _super.call(this) || this;
|
|
55
|
-
_this.database = db;
|
|
56
|
-
_this._recordsByName = new Map();
|
|
57
|
-
_this._recordsById = new Map();
|
|
58
|
-
return _this;
|
|
59
|
-
}
|
|
60
|
-
Object.defineProperty(AcDbDictionary.prototype, "numEntries", {
|
|
61
|
-
/**
|
|
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
|
-
* ```
|
|
71
|
-
*/
|
|
72
|
-
get: function () {
|
|
73
|
-
return this._recordsByName.size;
|
|
74
|
-
},
|
|
75
|
-
enumerable: false,
|
|
76
|
-
configurable: true
|
|
77
|
-
});
|
|
78
|
-
/**
|
|
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
|
-
* ```
|
|
92
|
-
*/
|
|
93
|
-
AcDbDictionary.prototype.setAt = function (key, value) {
|
|
94
|
-
value.database = this.database;
|
|
95
|
-
this._recordsByName.set(key, value);
|
|
96
|
-
this._recordsById.set(value.objectId, value);
|
|
97
|
-
this.database.events.dictObjetSet.dispatch({
|
|
98
|
-
database: this.database,
|
|
99
|
-
object: value,
|
|
100
|
-
key: key
|
|
101
|
-
});
|
|
102
|
-
};
|
|
103
|
-
/**
|
|
104
|
-
* Removes the entry specified by name from the dictionary.
|
|
105
|
-
*
|
|
106
|
-
* @param name - String representing the entry's key (or name)
|
|
107
|
-
* @returns True if the entry was found and removed, false otherwise
|
|
108
|
-
*
|
|
109
|
-
* @example
|
|
110
|
-
* ```typescript
|
|
111
|
-
* const removed = dictionary.remove('MyLayout');
|
|
112
|
-
* if (removed) {
|
|
113
|
-
* console.log('Layout removed successfully');
|
|
114
|
-
* }
|
|
115
|
-
* ```
|
|
116
|
-
*/
|
|
117
|
-
AcDbDictionary.prototype.remove = function (name) {
|
|
118
|
-
var object = this.getAt(name);
|
|
119
|
-
if (object) {
|
|
120
|
-
this._recordsByName.delete(name.toUpperCase());
|
|
121
|
-
this._recordsById.delete(this.objectId);
|
|
122
|
-
this.database.events.dictObjectErased.dispatch({
|
|
123
|
-
database: this.database,
|
|
124
|
-
object: object,
|
|
125
|
-
key: name
|
|
126
|
-
});
|
|
127
|
-
return true;
|
|
128
|
-
}
|
|
129
|
-
return false;
|
|
130
|
-
};
|
|
131
|
-
/**
|
|
132
|
-
* Removes the entry specified by object ID from the dictionary.
|
|
133
|
-
*
|
|
134
|
-
* @param id - ID of the object to delete
|
|
135
|
-
* @returns True if the entry was found and removed, false otherwise
|
|
136
|
-
*
|
|
137
|
-
* @example
|
|
138
|
-
* ```typescript
|
|
139
|
-
* const removed = dictionary.removeId('some-object-id');
|
|
140
|
-
* ```
|
|
141
|
-
*/
|
|
142
|
-
AcDbDictionary.prototype.removeId = function (id) {
|
|
143
|
-
var _this = this;
|
|
144
|
-
var object = this.getIdAt(id);
|
|
145
|
-
if (object) {
|
|
146
|
-
this._recordsById.delete(this.objectId);
|
|
147
|
-
this._recordsByName.forEach(function (value, key) {
|
|
148
|
-
if (value === object) {
|
|
149
|
-
_this._recordsByName.delete(key);
|
|
150
|
-
_this.database.events.dictObjectErased.dispatch({
|
|
151
|
-
database: _this.database,
|
|
152
|
-
object: object,
|
|
153
|
-
key: key
|
|
154
|
-
});
|
|
155
|
-
}
|
|
156
|
-
});
|
|
157
|
-
return true;
|
|
158
|
-
}
|
|
159
|
-
return false;
|
|
160
|
-
};
|
|
161
|
-
/**
|
|
162
|
-
* Removes all records from the dictionary.
|
|
163
|
-
*
|
|
164
|
-
* @example
|
|
165
|
-
* ```typescript
|
|
166
|
-
* dictionary.removeAll();
|
|
167
|
-
* ```
|
|
168
|
-
*/
|
|
169
|
-
AcDbDictionary.prototype.removeAll = function () {
|
|
170
|
-
var _this = this;
|
|
171
|
-
this._recordsByName.forEach(function (value, key) {
|
|
172
|
-
_this.database.events.dictObjectErased.dispatch({
|
|
173
|
-
database: _this.database,
|
|
174
|
-
object: value,
|
|
175
|
-
key: key
|
|
176
|
-
});
|
|
177
|
-
});
|
|
178
|
-
this._recordsByName.clear();
|
|
179
|
-
this._recordsById.clear();
|
|
180
|
-
};
|
|
181
|
-
/**
|
|
182
|
-
* Checks if the dictionary contains an object with the specified name.
|
|
183
|
-
*
|
|
184
|
-
* @param name - Name to search for
|
|
185
|
-
* @returns True if the dictionary contains an object with the specified name, false otherwise
|
|
186
|
-
*
|
|
187
|
-
* @example
|
|
188
|
-
* ```typescript
|
|
189
|
-
* if (dictionary.has('MyLayout')) {
|
|
190
|
-
* console.log('Layout exists');
|
|
191
|
-
* }
|
|
192
|
-
* ```
|
|
193
|
-
*/
|
|
194
|
-
AcDbDictionary.prototype.has = function (name) {
|
|
195
|
-
return this._recordsByName.has(name.toUpperCase());
|
|
196
|
-
};
|
|
197
|
-
/**
|
|
198
|
-
* Checks if the dictionary contains an object with the specified ID.
|
|
199
|
-
*
|
|
200
|
-
* @param id - ID to search for
|
|
201
|
-
* @returns True if the dictionary contains an object with the specified ID, false otherwise
|
|
202
|
-
*
|
|
203
|
-
* @example
|
|
204
|
-
* ```typescript
|
|
205
|
-
* if (dictionary.hasId('some-object-id')) {
|
|
206
|
-
* console.log('Object exists');
|
|
207
|
-
* }
|
|
208
|
-
* ```
|
|
209
|
-
*/
|
|
210
|
-
AcDbDictionary.prototype.hasId = function (id) {
|
|
211
|
-
return this._recordsById.has(id);
|
|
212
|
-
};
|
|
213
|
-
/**
|
|
214
|
-
* Gets the object with the specified name from the dictionary.
|
|
215
|
-
*
|
|
216
|
-
* @param name - Name of the object to retrieve
|
|
217
|
-
* @returns The object with the specified name, or undefined if not found
|
|
218
|
-
*
|
|
219
|
-
* @example
|
|
220
|
-
* ```typescript
|
|
221
|
-
* const layout = dictionary.getAt('MyLayout');
|
|
222
|
-
* if (layout) {
|
|
223
|
-
* console.log('Layout found:', layout);
|
|
224
|
-
* }
|
|
225
|
-
* ```
|
|
226
|
-
*/
|
|
227
|
-
AcDbDictionary.prototype.getAt = function (name) {
|
|
228
|
-
return this._recordsByName.get(name);
|
|
229
|
-
};
|
|
230
|
-
/**
|
|
231
|
-
* Gets the object with the specified ID from the dictionary.
|
|
232
|
-
*
|
|
233
|
-
* @param id - ID of the object to retrieve
|
|
234
|
-
* @returns The object with the specified ID, or undefined if not found
|
|
235
|
-
*
|
|
236
|
-
* @example
|
|
237
|
-
* ```typescript
|
|
238
|
-
* const object = dictionary.getIdAt('some-object-id');
|
|
239
|
-
* ```
|
|
240
|
-
*/
|
|
241
|
-
AcDbDictionary.prototype.getIdAt = function (id) {
|
|
242
|
-
return this._recordsById.get(id);
|
|
243
|
-
};
|
|
244
|
-
/**
|
|
245
|
-
* Creates a new iterator for traversing the dictionary entries.
|
|
246
|
-
*
|
|
247
|
-
* @returns A new AcDbObjectIterator for this dictionary
|
|
248
|
-
*
|
|
249
|
-
* @example
|
|
250
|
-
* ```typescript
|
|
251
|
-
* const iterator = dictionary.newIterator();
|
|
252
|
-
* while (iterator.hasNext()) {
|
|
253
|
-
* const object = iterator.next();
|
|
254
|
-
* console.log('Object:', object);
|
|
255
|
-
* }
|
|
256
|
-
* ```
|
|
257
|
-
*/
|
|
258
|
-
AcDbDictionary.prototype.newIterator = function () {
|
|
259
|
-
return new AcDbObjectIterator(this._recordsByName);
|
|
260
|
-
};
|
|
261
|
-
return AcDbDictionary;
|
|
262
|
-
}(AcDbObject));
|
|
263
|
-
export { AcDbDictionary };
|
|
264
|
-
//# sourceMappingURL=AcDbDictionary.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AcDbDictionary.js","sourceRoot":"","sources":["../../src/object/AcDbDictionary.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAgB,MAAM,SAAS,CAAA;AAElD,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAE5C;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH;IAEU,kCAAU;IAMlB;;;;;;;;;OASG;IACH,wBAAY,EAAgB;QAC1B,YAAA,MAAK,WAAE,SAAA;QACP,KAAI,CAAC,QAAQ,GAAG,EAAE,CAAA;QAClB,KAAI,CAAC,cAAc,GAAG,IAAI,GAAG,EAAuB,CAAA;QACpD,KAAI,CAAC,YAAY,GAAG,IAAI,GAAG,EAAuB,CAAA;;IACpD,CAAC;IAaD,sBAAI,sCAAU;QAXd;;;;;;;;;;WAUG;aACH;YACE,OAAO,IAAI,CAAC,cAAc,CAAC,IAAI,CAAA;QACjC,CAAC;;;OAAA;IAED;;;;;;;;;;;;;;OAcG;IACH,8BAAK,GAAL,UAAM,GAAW,EAAE,KAAkB;QACnC,KAAK,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAA;QAC9B,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,CAAA;QACnC,IAAI,CAAC,YAAY,CAAC,GAAG,C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;;;;OAaG;IACH,oCAAW,GAAX;QACE,OAAO,IAAI,kBAAkB,CAAC,IAAI,CAAC,cAAc,CAAC,CAAA;IACpD,CAAC;IACH,qBAAC;AAAD,CAAC,AArOD,CAEU,UAAU,GAmOnB"}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { AcDbObject } from '../base';
|
|
2
|
-
/**
|
|
3
|
-
* The AcDbRasterImageDef object (or "image definition object") works with the AcDbRasterImage entity
|
|
4
|
-
* (or "image entity") to implement raster images inside AutoCAD.
|
|
5
|
-
*
|
|
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
|
-
* ```
|
|
17
|
-
*/
|
|
18
|
-
export declare class AcDbRasterImageDef extends AcDbObject {
|
|
19
|
-
/** The path name of the externally referenced image file */
|
|
20
|
-
private _sourceFileName;
|
|
21
|
-
/**
|
|
22
|
-
* Creates a new AcDbRasterImageDef instance.
|
|
23
|
-
*
|
|
24
|
-
* @example
|
|
25
|
-
* ```typescript
|
|
26
|
-
* const imageDef = new AcDbRasterImageDef();
|
|
27
|
-
* ```
|
|
28
|
-
*/
|
|
29
|
-
constructor();
|
|
30
|
-
/**
|
|
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
|
-
* ```
|
|
40
|
-
*/
|
|
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
|
-
*/
|
|
52
|
-
set sourceFileName(value: string);
|
|
53
|
-
}
|
|
54
|
-
//# sourceMappingURL=AcDbRasterImageDef.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|