@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
package/lib/entity/AcDbArc.js
DELETED
|
@@ -1,340 +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 { AcGeCircArc3d, AcGeVector3d } from '@mlightcad/geometry-engine';
|
|
17
|
-
import { AcDbCurve } from './AcDbCurve';
|
|
18
|
-
/**
|
|
19
|
-
* Represents an arc entity in AutoCAD.
|
|
20
|
-
*
|
|
21
|
-
* An arc is a 2D geometric object defined by its center point, radius, start angle,
|
|
22
|
-
* and end angle. Arcs are portions of circles that can be used to create curved
|
|
23
|
-
* line segments in drawings. The arc is always drawn in the plane defined by its normal vector.
|
|
24
|
-
*
|
|
25
|
-
* @example
|
|
26
|
-
* ```typescript
|
|
27
|
-
* // Create a 90-degree arc from 0 to π/2 radians
|
|
28
|
-
* const arc = new AcDbArc(
|
|
29
|
-
* new AcGePoint3d(0, 0, 0),
|
|
30
|
-
* 10,
|
|
31
|
-
* 0,
|
|
32
|
-
* Math.PI / 2
|
|
33
|
-
* );
|
|
34
|
-
*
|
|
35
|
-
* // Access arc properties
|
|
36
|
-
* console.log(`Center: ${arc.center}`);
|
|
37
|
-
* console.log(`Radius: ${arc.radius}`);
|
|
38
|
-
* console.log(`Start angle: ${arc.startAngle}`);
|
|
39
|
-
* console.log(`End angle: ${arc.endAngle}`);
|
|
40
|
-
* ```
|
|
41
|
-
*/
|
|
42
|
-
var AcDbArc = /** @class */ (function (_super) {
|
|
43
|
-
__extends(AcDbArc, _super);
|
|
44
|
-
/**
|
|
45
|
-
* Creates a new arc entity.
|
|
46
|
-
*
|
|
47
|
-
* This constructor creates an arc using the specified center point, radius,
|
|
48
|
-
* start angle, and end angle. The center point must be in World Coordinate
|
|
49
|
-
* System (WCS) coordinates. Angles are specified in radians.
|
|
50
|
-
*
|
|
51
|
-
* @param center - The center point of the arc in WCS coordinates
|
|
52
|
-
* @param radius - The radius of the arc (must be positive)
|
|
53
|
-
* @param startAngle - The starting angle in radians (0 to 2π)
|
|
54
|
-
* @param endAngle - The ending angle in radians (0 to 2π)
|
|
55
|
-
*
|
|
56
|
-
* @example
|
|
57
|
-
* ```typescript
|
|
58
|
-
* // Create a quarter circle arc (0 to 90 degrees)
|
|
59
|
-
* const quarterArc = new AcDbArc(
|
|
60
|
-
* new AcGePoint3d(0, 0, 0),
|
|
61
|
-
* 15,
|
|
62
|
-
* 0,
|
|
63
|
-
* Math.PI / 2
|
|
64
|
-
* );
|
|
65
|
-
*
|
|
66
|
-
* // Create a semicircle arc (0 to 180 degrees)
|
|
67
|
-
* const semicircle = new AcDbArc(
|
|
68
|
-
* new AcGePoint3d(10, 20, 0),
|
|
69
|
-
* 25,
|
|
70
|
-
* 0,
|
|
71
|
-
* Math.PI
|
|
72
|
-
* );
|
|
73
|
-
* ```
|
|
74
|
-
*/
|
|
75
|
-
function AcDbArc(center, radius, startAngle, endAngle) {
|
|
76
|
-
var _this = _super.call(this) || this;
|
|
77
|
-
_this._geo = new AcGeCircArc3d(center, radius, startAngle, endAngle, AcGeVector3d.Z_AXIS, AcGeVector3d.X_AXIS);
|
|
78
|
-
return _this;
|
|
79
|
-
}
|
|
80
|
-
Object.defineProperty(AcDbArc.prototype, "center", {
|
|
81
|
-
/**
|
|
82
|
-
* Gets the center point of this arc.
|
|
83
|
-
*
|
|
84
|
-
* @returns The center point as a 3D point
|
|
85
|
-
*
|
|
86
|
-
* @example
|
|
87
|
-
* ```typescript
|
|
88
|
-
* const centerPoint = arc.center;
|
|
89
|
-
* console.log(`Arc center: ${centerPoint.x}, ${centerPoint.y}, ${centerPoint.z}`);
|
|
90
|
-
* ```
|
|
91
|
-
*/
|
|
92
|
-
get: function () {
|
|
93
|
-
return this._geo.center;
|
|
94
|
-
},
|
|
95
|
-
/**
|
|
96
|
-
* Sets the center point of this arc.
|
|
97
|
-
*
|
|
98
|
-
* @param value - The new center point
|
|
99
|
-
*
|
|
100
|
-
* @example
|
|
101
|
-
* ```typescript
|
|
102
|
-
* arc.center = new AcGePoint3d(5, 5, 0);
|
|
103
|
-
* ```
|
|
104
|
-
*/
|
|
105
|
-
set: function (value) {
|
|
106
|
-
this._geo.center = value;
|
|
107
|
-
},
|
|
108
|
-
enumerable: false,
|
|
109
|
-
configurable: true
|
|
110
|
-
});
|
|
111
|
-
Object.defineProperty(AcDbArc.prototype, "radius", {
|
|
112
|
-
/**
|
|
113
|
-
* Gets the radius of this arc.
|
|
114
|
-
*
|
|
115
|
-
* @returns The radius value
|
|
116
|
-
*
|
|
117
|
-
* @example
|
|
118
|
-
* ```typescript
|
|
119
|
-
* const radius = arc.radius;
|
|
120
|
-
* console.log(`Arc radius: ${radius}`);
|
|
121
|
-
* ```
|
|
122
|
-
*/
|
|
123
|
-
get: function () {
|
|
124
|
-
return this._geo.radius;
|
|
125
|
-
},
|
|
126
|
-
/**
|
|
127
|
-
* Sets the radius of this arc.
|
|
128
|
-
*
|
|
129
|
-
* @param value - The new radius value (must be positive)
|
|
130
|
-
*
|
|
131
|
-
* @example
|
|
132
|
-
* ```typescript
|
|
133
|
-
* arc.radius = 25;
|
|
134
|
-
* ```
|
|
135
|
-
*/
|
|
136
|
-
set: function (value) {
|
|
137
|
-
this._geo.radius = value;
|
|
138
|
-
},
|
|
139
|
-
enumerable: false,
|
|
140
|
-
configurable: true
|
|
141
|
-
});
|
|
142
|
-
Object.defineProperty(AcDbArc.prototype, "startAngle", {
|
|
143
|
-
/**
|
|
144
|
-
* Gets the start angle of this arc.
|
|
145
|
-
*
|
|
146
|
-
* @returns The start angle in radians
|
|
147
|
-
*
|
|
148
|
-
* @example
|
|
149
|
-
* ```typescript
|
|
150
|
-
* const startAngle = arc.startAngle;
|
|
151
|
-
* console.log(`Arc start angle: ${startAngle} radians (${startAngle * 180 / Math.PI} degrees)`);
|
|
152
|
-
* ```
|
|
153
|
-
*/
|
|
154
|
-
get: function () {
|
|
155
|
-
return this._geo.startAngle;
|
|
156
|
-
},
|
|
157
|
-
/**
|
|
158
|
-
* Sets the start angle of this arc.
|
|
159
|
-
*
|
|
160
|
-
* @param value - The new start angle in radians (0 to 2π)
|
|
161
|
-
*
|
|
162
|
-
* @example
|
|
163
|
-
* ```typescript
|
|
164
|
-
* arc.startAngle = Math.PI / 4; // 45 degrees
|
|
165
|
-
* ```
|
|
166
|
-
*/
|
|
167
|
-
set: function (value) {
|
|
168
|
-
this._geo.startAngle = value;
|
|
169
|
-
},
|
|
170
|
-
enumerable: false,
|
|
171
|
-
configurable: true
|
|
172
|
-
});
|
|
173
|
-
Object.defineProperty(AcDbArc.prototype, "endAngle", {
|
|
174
|
-
/**
|
|
175
|
-
* Gets the end angle of this arc.
|
|
176
|
-
*
|
|
177
|
-
* @returns The end angle in radians
|
|
178
|
-
*
|
|
179
|
-
* @example
|
|
180
|
-
* ```typescript
|
|
181
|
-
* const endAngle = arc.endAngle;
|
|
182
|
-
* console.log(`Arc end angle: ${endAngle} radians (${endAngle * 180 / Math.PI} degrees)`);
|
|
183
|
-
* ```
|
|
184
|
-
*/
|
|
185
|
-
get: function () {
|
|
186
|
-
return this._geo.endAngle;
|
|
187
|
-
},
|
|
188
|
-
/**
|
|
189
|
-
* Sets the end angle of this arc.
|
|
190
|
-
*
|
|
191
|
-
* @param value - The new end angle in radians (0 to 2π)
|
|
192
|
-
*
|
|
193
|
-
* @example
|
|
194
|
-
* ```typescript
|
|
195
|
-
* arc.endAngle = Math.PI; // 180 degrees
|
|
196
|
-
* ```
|
|
197
|
-
*/
|
|
198
|
-
set: function (value) {
|
|
199
|
-
this._geo.endAngle = value;
|
|
200
|
-
},
|
|
201
|
-
enumerable: false,
|
|
202
|
-
configurable: true
|
|
203
|
-
});
|
|
204
|
-
Object.defineProperty(AcDbArc.prototype, "startPoint", {
|
|
205
|
-
/**
|
|
206
|
-
* Gets the start point of this arc.
|
|
207
|
-
*
|
|
208
|
-
* The start point is calculated based on the center, radius, and start angle.
|
|
209
|
-
*
|
|
210
|
-
* @returns The start point as a 3D point
|
|
211
|
-
*
|
|
212
|
-
* @example
|
|
213
|
-
* ```typescript
|
|
214
|
-
* const startPoint = arc.startPoint;
|
|
215
|
-
* console.log(`Arc start point: ${startPoint.x}, ${startPoint.y}, ${startPoint.z}`);
|
|
216
|
-
* ```
|
|
217
|
-
*/
|
|
218
|
-
get: function () {
|
|
219
|
-
return this._geo.startPoint;
|
|
220
|
-
},
|
|
221
|
-
enumerable: false,
|
|
222
|
-
configurable: true
|
|
223
|
-
});
|
|
224
|
-
Object.defineProperty(AcDbArc.prototype, "endPoint", {
|
|
225
|
-
/**
|
|
226
|
-
* Gets the end point of this arc.
|
|
227
|
-
*
|
|
228
|
-
* The end point is calculated based on the center, radius, and end angle.
|
|
229
|
-
*
|
|
230
|
-
* @returns The end point as a 3D point
|
|
231
|
-
*
|
|
232
|
-
* @example
|
|
233
|
-
* ```typescript
|
|
234
|
-
* const endPoint = arc.endPoint;
|
|
235
|
-
* console.log(`Arc end point: ${endPoint.x}, ${endPoint.y}, ${endPoint.z}`);
|
|
236
|
-
* ```
|
|
237
|
-
*/
|
|
238
|
-
get: function () {
|
|
239
|
-
return this._geo.endPoint;
|
|
240
|
-
},
|
|
241
|
-
enumerable: false,
|
|
242
|
-
configurable: true
|
|
243
|
-
});
|
|
244
|
-
Object.defineProperty(AcDbArc.prototype, "geometricExtents", {
|
|
245
|
-
/**
|
|
246
|
-
* Gets the geometric extents (bounding box) of this arc.
|
|
247
|
-
*
|
|
248
|
-
* @returns The bounding box that encompasses the entire arc
|
|
249
|
-
*
|
|
250
|
-
* @example
|
|
251
|
-
* ```typescript
|
|
252
|
-
* const extents = arc.geometricExtents;
|
|
253
|
-
* console.log(`Arc bounds: ${extents.minPoint} to ${extents.maxPoint}`);
|
|
254
|
-
* ```
|
|
255
|
-
*/
|
|
256
|
-
get: function () {
|
|
257
|
-
return this._geo.box;
|
|
258
|
-
},
|
|
259
|
-
enumerable: false,
|
|
260
|
-
configurable: true
|
|
261
|
-
});
|
|
262
|
-
Object.defineProperty(AcDbArc.prototype, "closed", {
|
|
263
|
-
/**
|
|
264
|
-
* Gets whether this arc is closed.
|
|
265
|
-
*
|
|
266
|
-
* An arc is considered closed if the start and end angles are the same
|
|
267
|
-
* (forming a complete circle).
|
|
268
|
-
*
|
|
269
|
-
* @returns True if the arc is closed (forms a complete circle), false otherwise
|
|
270
|
-
*/
|
|
271
|
-
get: function () {
|
|
272
|
-
return this._geo.closed;
|
|
273
|
-
},
|
|
274
|
-
enumerable: false,
|
|
275
|
-
configurable: true
|
|
276
|
-
});
|
|
277
|
-
/**
|
|
278
|
-
* Gets the grip points for this arc.
|
|
279
|
-
*
|
|
280
|
-
* Grip points are control points that can be used to modify the arc.
|
|
281
|
-
* For an arc, the grip points are the center point, start point, and end point.
|
|
282
|
-
*
|
|
283
|
-
* @returns Array of grip points (center, start point, end point)
|
|
284
|
-
*
|
|
285
|
-
* @example
|
|
286
|
-
* ```typescript
|
|
287
|
-
* const gripPoints = arc.subGetGripPoints();
|
|
288
|
-
* // gripPoints contains: [center, startPoint, endPoint]
|
|
289
|
-
* ```
|
|
290
|
-
*/
|
|
291
|
-
AcDbArc.prototype.subGetGripPoints = function () {
|
|
292
|
-
var gripPoints = new Array();
|
|
293
|
-
gripPoints.push(this.center);
|
|
294
|
-
gripPoints.push(this.startPoint);
|
|
295
|
-
gripPoints.push(this.endPoint);
|
|
296
|
-
return gripPoints;
|
|
297
|
-
};
|
|
298
|
-
/**
|
|
299
|
-
* Transforms this arc by the specified matrix.
|
|
300
|
-
*
|
|
301
|
-
* This method applies a geometric transformation to the arc, updating
|
|
302
|
-
* the center point, radius, and angles according to the transformation matrix.
|
|
303
|
-
*
|
|
304
|
-
* @param matrix - The transformation matrix to apply
|
|
305
|
-
* @returns This arc after transformation
|
|
306
|
-
*
|
|
307
|
-
* @example
|
|
308
|
-
* ```typescript
|
|
309
|
-
* const translationMatrix = AcGeMatrix3d.translation(10, 0, 0);
|
|
310
|
-
* arc.transformBy(translationMatrix);
|
|
311
|
-
* // Arc is now translated 10 units in the X direction
|
|
312
|
-
* ```
|
|
313
|
-
*/
|
|
314
|
-
AcDbArc.prototype.transformBy = function (matrix) {
|
|
315
|
-
this._geo.transform(matrix);
|
|
316
|
-
return this;
|
|
317
|
-
};
|
|
318
|
-
/**
|
|
319
|
-
* Draws this arc using the specified renderer.
|
|
320
|
-
*
|
|
321
|
-
* This method renders the arc as a circular arc using the arc's
|
|
322
|
-
* current style properties.
|
|
323
|
-
*
|
|
324
|
-
* @param renderer - The renderer to use for drawing
|
|
325
|
-
* @returns The rendered arc entity, or undefined if drawing failed
|
|
326
|
-
*
|
|
327
|
-
* @example
|
|
328
|
-
* ```typescript
|
|
329
|
-
* const renderedArc = arc.draw(renderer);
|
|
330
|
-
* ```
|
|
331
|
-
*/
|
|
332
|
-
AcDbArc.prototype.draw = function (renderer) {
|
|
333
|
-
return renderer.circularArc(this._geo, this.lineStyle);
|
|
334
|
-
};
|
|
335
|
-
/** The entity type name */
|
|
336
|
-
AcDbArc.typeName = 'Arc';
|
|
337
|
-
return AcDbArc;
|
|
338
|
-
}(AcDbCurve));
|
|
339
|
-
export { AcDbArc };
|
|
340
|
-
//# sourceMappingURL=Ac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sBAAI,GAAJ,UAAK,QAAsB;QACzB,OAAO,QAAQ,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,CAAA;IACxD,CAAC;IAlSD,2BAA2B;IACX,gBAAQ,GAAW,KAAK,CAAA;IAkS1C,cAAC;CAAA,AApSD,CAA6B,SAAS,GAoSrC;SApSY,OAAO"}
|
|
@@ -1,190 +0,0 @@
|
|
|
1
|
-
import { AcGeBox3d, AcGePoint3d, AcGeVector3d } from '@mlightcad/geometry-engine';
|
|
2
|
-
import { AcGiEntity, AcGiRenderer } from '@mlightcad/graphic-interface';
|
|
3
|
-
import { AcDbEntity } from './AcDbEntity';
|
|
4
|
-
/**
|
|
5
|
-
* Represents a block reference entity in AutoCAD.
|
|
6
|
-
*
|
|
7
|
-
* A block reference is used to place, size, and display an instance of the collection
|
|
8
|
-
* of entities within the block table record that it references. Block references allow
|
|
9
|
-
* you to reuse complex geometry by referencing a block definition multiple times with
|
|
10
|
-
* different positions, rotations, and scales.
|
|
11
|
-
*
|
|
12
|
-
* @example
|
|
13
|
-
* ```typescript
|
|
14
|
-
* // Create a block reference
|
|
15
|
-
* const blockRef = new AcDbBlockReference("MyBlock");
|
|
16
|
-
* blockRef.position = new AcGePoint3d(10, 20, 0);
|
|
17
|
-
* blockRef.rotation = Math.PI / 4; // 45 degrees
|
|
18
|
-
* blockRef.scaleFactors = new AcGePoint3d(2, 2, 1); // 2x scale
|
|
19
|
-
*
|
|
20
|
-
* // Access block reference properties
|
|
21
|
-
* console.log(`Block name: ${blockRef.blockTableRecord?.name}`);
|
|
22
|
-
* console.log(`Position: ${blockRef.position}`);
|
|
23
|
-
* console.log(`Rotation: ${blockRef.rotation}`);
|
|
24
|
-
* ```
|
|
25
|
-
*/
|
|
26
|
-
export declare class AcDbBlockReference extends AcDbEntity {
|
|
27
|
-
/** The entity type name */
|
|
28
|
-
static typeName: string;
|
|
29
|
-
/** The WCS position point (insertion point) of the block reference */
|
|
30
|
-
private _position;
|
|
31
|
-
/** The rotation value in radians */
|
|
32
|
-
private _rotation;
|
|
33
|
-
/** The X, Y, and Z scale factors for the block reference */
|
|
34
|
-
private _scaleFactors;
|
|
35
|
-
/** The normal vector of the plane containing the block reference */
|
|
36
|
-
private _normal;
|
|
37
|
-
/** The name of the referenced block */
|
|
38
|
-
private _blockName;
|
|
39
|
-
/**
|
|
40
|
-
* Creates a new block reference entity.
|
|
41
|
-
*
|
|
42
|
-
* This constructor initializes a block reference with the specified block name.
|
|
43
|
-
* The position is set to the origin, rotation to 0, normal to Z-axis, and scale factors to 1.
|
|
44
|
-
*
|
|
45
|
-
* @param blockName - The name of the block table record to reference
|
|
46
|
-
*
|
|
47
|
-
* @example
|
|
48
|
-
* ```typescript
|
|
49
|
-
* const blockRef = new AcDbBlockReference("MyBlock");
|
|
50
|
-
* blockRef.position = new AcGePoint3d(5, 10, 0);
|
|
51
|
-
* blockRef.rotation = Math.PI / 6; // 30 degrees
|
|
52
|
-
* ```
|
|
53
|
-
*/
|
|
54
|
-
constructor(blockName: string);
|
|
55
|
-
/**
|
|
56
|
-
* Gets the WCS position point (insertion point) of the block reference.
|
|
57
|
-
*
|
|
58
|
-
* @returns The position point in WCS coordinates
|
|
59
|
-
*
|
|
60
|
-
* @example
|
|
61
|
-
* ```typescript
|
|
62
|
-
* const position = blockRef.position;
|
|
63
|
-
* console.log(`Block position: ${position.x}, ${position.y}, ${position.z}`);
|
|
64
|
-
* ```
|
|
65
|
-
*/
|
|
66
|
-
get position(): AcGePoint3d;
|
|
67
|
-
/**
|
|
68
|
-
* Sets the WCS position point (insertion point) of the block reference.
|
|
69
|
-
*
|
|
70
|
-
* @param value - The new position point
|
|
71
|
-
*
|
|
72
|
-
* @example
|
|
73
|
-
* ```typescript
|
|
74
|
-
* blockRef.position = new AcGePoint3d(15, 25, 0);
|
|
75
|
-
* ```
|
|
76
|
-
*/
|
|
77
|
-
set position(value: AcGePoint3d);
|
|
78
|
-
/**
|
|
79
|
-
* Gets the rotation value of the block reference.
|
|
80
|
-
*
|
|
81
|
-
* The rotation value is relative to the X axis of a coordinate system that is parallel
|
|
82
|
-
* to the OCS of the block reference, but has its origin at the position point of the
|
|
83
|
-
* block reference. The rotation axis is the Z axis of this coordinate system with
|
|
84
|
-
* positive rotations going counterclockwise when looking down the Z axis towards the origin.
|
|
85
|
-
*
|
|
86
|
-
* @returns The rotation value in radians
|
|
87
|
-
*
|
|
88
|
-
* @example
|
|
89
|
-
* ```typescript
|
|
90
|
-
* const rotation = blockRef.rotation;
|
|
91
|
-
* console.log(`Rotation: ${rotation} radians (${rotation * 180 / Math.PI} degrees)`);
|
|
92
|
-
* ```
|
|
93
|
-
*/
|
|
94
|
-
get rotation(): number;
|
|
95
|
-
/**
|
|
96
|
-
* Sets the rotation value of the block reference.
|
|
97
|
-
*
|
|
98
|
-
* @param value - The new rotation value in radians
|
|
99
|
-
*
|
|
100
|
-
* @example
|
|
101
|
-
* ```typescript
|
|
102
|
-
* blockRef.rotation = Math.PI / 4; // 45 degrees
|
|
103
|
-
* ```
|
|
104
|
-
*/
|
|
105
|
-
set rotation(value: number);
|
|
106
|
-
/**
|
|
107
|
-
* Gets the X, Y, and Z scale factors for the block reference.
|
|
108
|
-
*
|
|
109
|
-
* @returns The scale factors as a 3D point
|
|
110
|
-
*
|
|
111
|
-
* @example
|
|
112
|
-
* ```typescript
|
|
113
|
-
* const scaleFactors = blockRef.scaleFactors;
|
|
114
|
-
* console.log(`Scale factors: ${scaleFactors.x}, ${scaleFactors.y}, ${scaleFactors.z}`);
|
|
115
|
-
* ```
|
|
116
|
-
*/
|
|
117
|
-
get scaleFactors(): AcGePoint3d;
|
|
118
|
-
/**
|
|
119
|
-
* Sets the X, Y, and Z scale factors for the block reference.
|
|
120
|
-
*
|
|
121
|
-
* @param value - The new scale factors
|
|
122
|
-
*
|
|
123
|
-
* @example
|
|
124
|
-
* ```typescript
|
|
125
|
-
* blockRef.scaleFactors = new AcGePoint3d(2, 1.5, 1); // 2x X scale, 1.5x Y scale
|
|
126
|
-
* ```
|
|
127
|
-
*/
|
|
128
|
-
set scaleFactors(value: AcGePoint3d);
|
|
129
|
-
/**
|
|
130
|
-
* Gets the normal vector of the plane containing the block reference.
|
|
131
|
-
*
|
|
132
|
-
* @returns The normal vector
|
|
133
|
-
*
|
|
134
|
-
* @example
|
|
135
|
-
* ```typescript
|
|
136
|
-
* const normal = blockRef.normal;
|
|
137
|
-
* console.log(`Normal: ${normal.x}, ${normal.y}, ${normal.z}`);
|
|
138
|
-
* ```
|
|
139
|
-
*/
|
|
140
|
-
get normal(): AcGeVector3d;
|
|
141
|
-
/**
|
|
142
|
-
* Sets the normal vector of the plane containing the block reference.
|
|
143
|
-
*
|
|
144
|
-
* @param value - The new normal vector
|
|
145
|
-
*
|
|
146
|
-
* @example
|
|
147
|
-
* ```typescript
|
|
148
|
-
* blockRef.normal = new AcGeVector3d(0, 0, 1);
|
|
149
|
-
* ```
|
|
150
|
-
*/
|
|
151
|
-
set normal(value: AcGeVector3d);
|
|
152
|
-
/**
|
|
153
|
-
* Gets the block table record referenced by this block reference.
|
|
154
|
-
*
|
|
155
|
-
* The referenced block table record contains the entities that the block reference will display.
|
|
156
|
-
*
|
|
157
|
-
* @returns The block table record, or undefined if not found
|
|
158
|
-
*
|
|
159
|
-
* @example
|
|
160
|
-
* ```typescript
|
|
161
|
-
* const blockRecord = blockRef.blockTableRecord;
|
|
162
|
-
* if (blockRecord) {
|
|
163
|
-
* console.log(`Block name: ${blockRecord.name}`);
|
|
164
|
-
* }
|
|
165
|
-
* ```
|
|
166
|
-
*/
|
|
167
|
-
get blockTableRecord(): import("..").AcDbBlockTableRecord | undefined;
|
|
168
|
-
/**
|
|
169
|
-
* Gets the geometric extents (bounding box) of this block reference.
|
|
170
|
-
*
|
|
171
|
-
* This method calculates the bounding box by transforming the geometric extents
|
|
172
|
-
* of all entities in the referenced block according to the block reference's
|
|
173
|
-
* position, rotation, and scale factors.
|
|
174
|
-
*
|
|
175
|
-
* @returns The bounding box that encompasses the entire block reference
|
|
176
|
-
*
|
|
177
|
-
* @example
|
|
178
|
-
* ```typescript
|
|
179
|
-
* const extents = blockRef.geometricExtents;
|
|
180
|
-
* console.log(`Block bounds: ${extents.minPoint} to ${extents.maxPoint}`);
|
|
181
|
-
* ```
|
|
182
|
-
*/
|
|
183
|
-
get geometricExtents(): AcGeBox3d;
|
|
184
|
-
/**
|
|
185
|
-
* @inheritdoc
|
|
186
|
-
*/
|
|
187
|
-
draw(renderer: AcGiRenderer): AcGiEntity | undefined;
|
|
188
|
-
private computeTransformMatrix;
|
|
189
|
-
}
|
|
190
|
-
//# sourceMappingURL=AcDbBlockReference.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AcDbBlockReference.d.ts","sourceRoot":"","sources":["../../src/entity/AcDbBlockReference.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EAGT,WAAW,EAEX,YAAY,EACb,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAGvE,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAEzC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,qBAAa,kBAAmB,SAAQ,UAAU;IAChD,2BAA2B;IAC3B,OAAgB,QAAQ,EAAE,MAAM,CAAmB;IAEnD,sEAAsE;IACtE,OAAO,CAAC,SAAS,CAAa;IAC9B,oCAAoC;IACpC,OAAO,CAAC,SAAS,CAAQ;IACzB,4DAA4D;IAC5D,OAAO,CAAC,aAAa,CAAa;IAClC,oEAAoE;IACpE,OAAO,CAAC,OAAO,CAAc;IAC7B,uCAAuC;IACvC,OAAO,CAAC,UAAU,CAAQ;IAE1B;;;;;;;;;;;;;;OAcG;gBACS,SAAS,EAAE,MAAM;IAS7B;;;;;;;;;;OAUG;IACH,IAAI,QAAQ,IAcQ,WAAW,CAZ9B;IAED;;;;;;;;;OASG;IACH,IAAI,Q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