@mlightcad/data-model 1.3.1 → 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 -25475
- 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 -867
- 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 -85
- 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/AcDbRegenerator.d.ts +0 -101
- package/lib/converter/AcDbRegenerator.d.ts.map +0 -1
- package/lib/converter/AcDbRegenerator.js +0 -334
- package/lib/converter/AcDbRegenerator.js.map +0 -1
- package/lib/converter/index.d.ts +0 -5
- package/lib/converter/index.d.ts.map +0 -1
- package/lib/converter/index.js +0 -5
- 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 -563
- package/lib/database/AcDbDatabase.d.ts.map +0 -1
- package/lib/database/AcDbDatabase.js +0 -842
- 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 -446
- 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 -64
- package/lib/misc/AcDbObjectIterator.d.ts.map +0 -1
- package/lib/misc/AcDbObjectIterator.js +0 -84
- 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,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":"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"}
|
|
@@ -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"}
|
|
@@ -1,82 +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
|
-
/**
|
|
18
|
-
* The AcDbRasterImageDef object (or "image definition object") works with the AcDbRasterImage entity
|
|
19
|
-
* (or "image entity") to implement raster images inside AutoCAD.
|
|
20
|
-
*
|
|
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
|
-
* ```
|
|
32
|
-
*/
|
|
33
|
-
var AcDbRasterImageDef = /** @class */ (function (_super) {
|
|
34
|
-
__extends(AcDbRasterImageDef, _super);
|
|
35
|
-
/**
|
|
36
|
-
* Creates a new AcDbRasterImageDef instance.
|
|
37
|
-
*
|
|
38
|
-
* @example
|
|
39
|
-
* ```typescript
|
|
40
|
-
* const imageDef = new AcDbRasterImageDef();
|
|
41
|
-
* ```
|
|
42
|
-
*/
|
|
43
|
-
function AcDbRasterImageDef() {
|
|
44
|
-
var _this = _super.call(this) || this;
|
|
45
|
-
_this._sourceFileName = '';
|
|
46
|
-
return _this;
|
|
47
|
-
}
|
|
48
|
-
Object.defineProperty(AcDbRasterImageDef.prototype, "sourceFileName", {
|
|
49
|
-
/**
|
|
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
|
-
* ```
|
|
59
|
-
*/
|
|
60
|
-
get: function () {
|
|
61
|
-
return this._sourceFileName;
|
|
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
|
-
*/
|
|
73
|
-
set: function (value) {
|
|
74
|
-
this._sourceFileName = value;
|
|
75
|
-
},
|
|
76
|
-
enumerable: false,
|
|
77
|
-
configurable: true
|
|
78
|
-
});
|
|
79
|
-
return AcDbRasterImageDef;
|
|
80
|
-
}(AcDbObject));
|
|
81
|
-
export { AcDbRasterImageDef };
|
|
82
|
-
//# sourceMappingURL=AcDbRasterImageDef.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
package/lib/object/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/object/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,kBAAkB,CAAA;AAChC,cAAc,sBAAsB,CAAA"}
|
package/lib/object/index.js
DELETED
package/lib/object/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/object/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,kBAAkB,CAAA;AAChC,cAAc,sBAAsB,CAAA"}
|
|
@@ -1,190 +0,0 @@
|
|
|
1
|
-
import { AcGeBox2d, AcGeBox3d } from '@mlightcad/geometry-engine';
|
|
2
|
-
import { AcDbObject } from '../../base';
|
|
3
|
-
/**
|
|
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
|
-
* ```
|
|
17
|
-
*/
|
|
18
|
-
export declare class AcDbLayout extends AcDbObject {
|
|
19
|
-
/** The user-friendly layout name displayed in the tab control */
|
|
20
|
-
private _layoutName;
|
|
21
|
-
/** The tab order field controlling the display order */
|
|
22
|
-
private _tabOrder;
|
|
23
|
-
/** Flag indicating whether the layout tab is selected */
|
|
24
|
-
private _tabSelected;
|
|
25
|
-
/** The associated block table record ID of this layout */
|
|
26
|
-
private _blockTableRecordId;
|
|
27
|
-
/** Limits for this layout (defined by LIMMAX while this layout is current) */
|
|
28
|
-
private _limits;
|
|
29
|
-
/** The current extents setting of the layout */
|
|
30
|
-
private _extents;
|
|
31
|
-
/**
|
|
32
|
-
* Creates a new AcDbLayout instance.
|
|
33
|
-
*
|
|
34
|
-
* @example
|
|
35
|
-
* ```typescript
|
|
36
|
-
* const layout = new AcDbLayout();
|
|
37
|
-
* ```
|
|
38
|
-
*/
|
|
39
|
-
constructor();
|
|
40
|
-
/**
|
|
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
|
-
* ```
|
|
53
|
-
*/
|
|
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
|
-
*/
|
|
65
|
-
set layoutName(value: string);
|
|
66
|
-
/**
|
|
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
|
-
* ```
|
|
77
|
-
*/
|
|
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
|
-
*/
|
|
89
|
-
set tabOrder(value: number);
|
|
90
|
-
/**
|
|
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
|
-
* ```
|
|
103
|
-
*/
|
|
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
|
-
*/
|
|
115
|
-
set tabSelected(value: boolean);
|
|
116
|
-
/**
|
|
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
|
-
* ```
|
|
125
|
-
*/
|
|
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
|
-
*/
|
|
137
|
-
set blockTableRecordId(value: string);
|
|
138
|
-
/**
|
|
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
|
-
* ```
|
|
150
|
-
*/
|
|
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
|
-
*/
|
|
162
|
-
set limits(value: AcGeBox2d);
|
|
163
|
-
/**
|
|
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
|
-
* ```
|
|
176
|
-
*/
|
|
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
|
-
*/
|
|
188
|
-
set extents(value: AcGeBox3d);
|
|
189
|
-
}
|
|
190
|
-
//# sourceMappingURL=AcDbLayout.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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;;;;;;;;;;;;;;GAcG;AACH,qBAAa,UAAW,SAAQ,UAAU;IACxC,iEAAiE;IACjE,OAAO,CAAC,WAAW,CAAQ;IAC3B,wDAAwD;IACxD,OAAO,CAAC,SAAS,CAAQ;IACzB,yDAAyD;IACzD,OAAO,CAAC,YAAY,CAAS;IAC7B,0DAA0D;IAC1D,OAAO,CAAC,mBAAmB,CAAQ;IACnC,8EAA8E;IAC9E,OAAO,CAAC,OAAO,CAAW;IAC1B,gDAAgD;IAChD,OAAO,CAAC,QAAQ,CAAW;IAE3B;;;;;;;OAOG;;IAWH;;;;;;;;;;;;;OAaG;IACH,IAAI,UAAU,IAcQ,MAAM,CAZ3B;IAED;;;;;;;;;OASG;IACH,IAAI,UAAU,CAAC,KAAK,EAAE,MAAM,EAE3B;IAED;;;;;;;;;;;OAWG;IACH,IAAI,QAAQ,IAcQ,MAAM,CAZzB;IAED;;;;;;;;;OASG;IACH,IAAI,QAAQ,CAAC,KAAK,EAAE,MAAM,EAEzB;IAED;;;;;;;;;;;;;OAaG;IACH,IAAI,WAAW,IAcQ,OAAO,CAZ7B;IAED;;;;;;;;;OASG;IACH,IAAI,WAAW,CAAC,KAAK,EAAE,OAAO,EAE7B;IAED;;;;;;;;;OASG;IACH,IAAI,kBAAkB,IAcQ,MAAM,CAZnC;IAED;;;;;;;;;OASG;IACH,IAAI,kBAAkB,CAAC,KAAK,EAAE,MAAM,EAEnC;IAED;;;;;;;;;;;;OAYG;IACH,IAAI,MAAM,IAcQ,SAAS,CAZ1B;IAED;;;;;;;;;OASG;IACH,IAAI,MAAM,CAAC,KAAK,EAAE,SAAS,EAE1B;IAED;;;;;;;;;;;;;OAaG;IACH,IAAI,OAAO,IAcQ,SAAS,CAZ3B;IAED;;;;;;;;;OASG;IACH,IAAI,OAAO,CAAC,KAAK,EAAE,SAAS,EAE3B;CACF"}
|