@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
package/lib/entity/AcDbCircle.js
DELETED
|
@@ -1,249 +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, TAU } from '@mlightcad/geometry-engine';
|
|
17
|
-
import { AcDbCurve } from './AcDbCurve';
|
|
18
|
-
/**
|
|
19
|
-
* Represents a circle entity in AutoCAD.
|
|
20
|
-
*
|
|
21
|
-
* A circle is a 2D geometric object defined by its center point and radius.
|
|
22
|
-
* Circles are closed curves that can be used to create circular shapes
|
|
23
|
-
* in drawings. The circle is always drawn in the plane defined by its normal vector.
|
|
24
|
-
*
|
|
25
|
-
* @example
|
|
26
|
-
* ```typescript
|
|
27
|
-
* // Create a circle with center at (0,0,0) and radius 5
|
|
28
|
-
* const circle = new AcDbCircle(
|
|
29
|
-
* new AcGePoint3d(0, 0, 0),
|
|
30
|
-
* 5
|
|
31
|
-
* );
|
|
32
|
-
*
|
|
33
|
-
* // Access circle properties
|
|
34
|
-
* console.log(`Center: ${circle.center}`);
|
|
35
|
-
* console.log(`Radius: ${circle.radius}`);
|
|
36
|
-
* console.log(`Normal: ${circle.normal}`);
|
|
37
|
-
* ```
|
|
38
|
-
*/
|
|
39
|
-
var AcDbCircle = /** @class */ (function (_super) {
|
|
40
|
-
__extends(AcDbCircle, _super);
|
|
41
|
-
/**
|
|
42
|
-
* Creates a new circle entity.
|
|
43
|
-
*
|
|
44
|
-
* This constructor creates a circle using the specified center point and radius.
|
|
45
|
-
* The center point must be in World Coordinate System (WCS) coordinates.
|
|
46
|
-
* The circle is created as a full circle (0 to 2π radians).
|
|
47
|
-
*
|
|
48
|
-
* @param center - The center point of the circle in WCS coordinates
|
|
49
|
-
* @param radius - The radius of the circle (must be positive)
|
|
50
|
-
* @param normal - The normal vector defining the plane of the circle (defaults to Z-axis)
|
|
51
|
-
*
|
|
52
|
-
* @example
|
|
53
|
-
* ```typescript
|
|
54
|
-
* // Create a circle in the XY plane
|
|
55
|
-
* const circle = new AcDbCircle(
|
|
56
|
-
* new AcGePoint3d(10, 20, 0),
|
|
57
|
-
* 15
|
|
58
|
-
* );
|
|
59
|
-
*
|
|
60
|
-
* // Create a circle in a different plane
|
|
61
|
-
* const circleInYZ = new AcDbCircle(
|
|
62
|
-
* new AcGePoint3d(0, 0, 0),
|
|
63
|
-
* 10,
|
|
64
|
-
* AcGeVector3d.X_AXIS
|
|
65
|
-
* );
|
|
66
|
-
* ```
|
|
67
|
-
*/
|
|
68
|
-
function AcDbCircle(center, radius, normal) {
|
|
69
|
-
if (normal === void 0) { normal = AcGeVector3d.Z_AXIS; }
|
|
70
|
-
var _this = _super.call(this) || this;
|
|
71
|
-
_this._geo = new AcGeCircArc3d(center, radius, 0, TAU, normal, AcGeVector3d.X_AXIS);
|
|
72
|
-
return _this;
|
|
73
|
-
}
|
|
74
|
-
Object.defineProperty(AcDbCircle.prototype, "center", {
|
|
75
|
-
/**
|
|
76
|
-
* Gets the center point of this circle.
|
|
77
|
-
*
|
|
78
|
-
* @returns The center point as a 3D point
|
|
79
|
-
*
|
|
80
|
-
* @example
|
|
81
|
-
* ```typescript
|
|
82
|
-
* const centerPoint = circle.center;
|
|
83
|
-
* console.log(`Circle center: ${centerPoint.x}, ${centerPoint.y}, ${centerPoint.z}`);
|
|
84
|
-
* ```
|
|
85
|
-
*/
|
|
86
|
-
get: function () {
|
|
87
|
-
return this._geo.center;
|
|
88
|
-
},
|
|
89
|
-
/**
|
|
90
|
-
* Sets the center point of this circle.
|
|
91
|
-
*
|
|
92
|
-
* @param value - The new center point
|
|
93
|
-
*
|
|
94
|
-
* @example
|
|
95
|
-
* ```typescript
|
|
96
|
-
* circle.center = new AcGePoint3d(5, 5, 0);
|
|
97
|
-
* ```
|
|
98
|
-
*/
|
|
99
|
-
set: function (value) {
|
|
100
|
-
this._geo.center = value;
|
|
101
|
-
},
|
|
102
|
-
enumerable: false,
|
|
103
|
-
configurable: true
|
|
104
|
-
});
|
|
105
|
-
Object.defineProperty(AcDbCircle.prototype, "radius", {
|
|
106
|
-
/**
|
|
107
|
-
* Gets the radius of this circle.
|
|
108
|
-
*
|
|
109
|
-
* @returns The radius value
|
|
110
|
-
*
|
|
111
|
-
* @example
|
|
112
|
-
* ```typescript
|
|
113
|
-
* const radius = circle.radius;
|
|
114
|
-
* console.log(`Circle radius: ${radius}`);
|
|
115
|
-
* ```
|
|
116
|
-
*/
|
|
117
|
-
get: function () {
|
|
118
|
-
return this._geo.radius;
|
|
119
|
-
},
|
|
120
|
-
/**
|
|
121
|
-
* Sets the radius of this circle.
|
|
122
|
-
*
|
|
123
|
-
* @param value - The new radius value (must be positive)
|
|
124
|
-
*
|
|
125
|
-
* @example
|
|
126
|
-
* ```typescript
|
|
127
|
-
* circle.radius = 25;
|
|
128
|
-
* ```
|
|
129
|
-
*/
|
|
130
|
-
set: function (value) {
|
|
131
|
-
this._geo.radius = value;
|
|
132
|
-
},
|
|
133
|
-
enumerable: false,
|
|
134
|
-
configurable: true
|
|
135
|
-
});
|
|
136
|
-
Object.defineProperty(AcDbCircle.prototype, "normal", {
|
|
137
|
-
/**
|
|
138
|
-
* Gets the normal vector of this circle.
|
|
139
|
-
*
|
|
140
|
-
* The normal vector defines the plane in which the circle lies.
|
|
141
|
-
*
|
|
142
|
-
* @returns The unit normal vector in WCS coordinates
|
|
143
|
-
*
|
|
144
|
-
* @example
|
|
145
|
-
* ```typescript
|
|
146
|
-
* const normal = circle.normal;
|
|
147
|
-
* console.log(`Circle normal: ${normal.x}, ${normal.y}, ${normal.z}`);
|
|
148
|
-
* ```
|
|
149
|
-
*/
|
|
150
|
-
get: function () {
|
|
151
|
-
return this._geo.normal;
|
|
152
|
-
},
|
|
153
|
-
enumerable: false,
|
|
154
|
-
configurable: true
|
|
155
|
-
});
|
|
156
|
-
Object.defineProperty(AcDbCircle.prototype, "geometricExtents", {
|
|
157
|
-
/**
|
|
158
|
-
* Gets the geometric extents (bounding box) of this circle.
|
|
159
|
-
*
|
|
160
|
-
* @returns The bounding box that encompasses the entire circle
|
|
161
|
-
*
|
|
162
|
-
* @example
|
|
163
|
-
* ```typescript
|
|
164
|
-
* const extents = circle.geometricExtents;
|
|
165
|
-
* console.log(`Circle bounds: ${extents.minPoint} to ${extents.maxPoint}`);
|
|
166
|
-
* ```
|
|
167
|
-
*/
|
|
168
|
-
get: function () {
|
|
169
|
-
return this._geo.box;
|
|
170
|
-
},
|
|
171
|
-
enumerable: false,
|
|
172
|
-
configurable: true
|
|
173
|
-
});
|
|
174
|
-
Object.defineProperty(AcDbCircle.prototype, "closed", {
|
|
175
|
-
/**
|
|
176
|
-
* Gets whether this circle is closed.
|
|
177
|
-
*
|
|
178
|
-
* Circles are always closed entities, so this always returns true.
|
|
179
|
-
*
|
|
180
|
-
* @returns Always true for circles
|
|
181
|
-
*/
|
|
182
|
-
get: function () {
|
|
183
|
-
return this._geo.closed;
|
|
184
|
-
},
|
|
185
|
-
enumerable: false,
|
|
186
|
-
configurable: true
|
|
187
|
-
});
|
|
188
|
-
/**
|
|
189
|
-
* Gets the grip points for this circle.
|
|
190
|
-
*
|
|
191
|
-
* Grip points are control points that can be used to modify the circle.
|
|
192
|
-
* For a circle, the grip point is the center point.
|
|
193
|
-
*
|
|
194
|
-
* @returns Array of grip points (center point)
|
|
195
|
-
*
|
|
196
|
-
* @example
|
|
197
|
-
* ```typescript
|
|
198
|
-
* const gripPoints = circle.subGetGripPoints();
|
|
199
|
-
* // gripPoints contains: [center]
|
|
200
|
-
* ```
|
|
201
|
-
*/
|
|
202
|
-
AcDbCircle.prototype.subGetGripPoints = function () {
|
|
203
|
-
var gripPoints = new Array();
|
|
204
|
-
gripPoints.push(this.center);
|
|
205
|
-
return gripPoints;
|
|
206
|
-
};
|
|
207
|
-
/**
|
|
208
|
-
* Transforms this circle by the specified matrix.
|
|
209
|
-
*
|
|
210
|
-
* This method applies a geometric transformation to the circle, updating
|
|
211
|
-
* the center point, radius, and normal vector according to the transformation matrix.
|
|
212
|
-
*
|
|
213
|
-
* @param matrix - The transformation matrix to apply
|
|
214
|
-
* @returns This circle after transformation
|
|
215
|
-
*
|
|
216
|
-
* @example
|
|
217
|
-
* ```typescript
|
|
218
|
-
* const translationMatrix = AcGeMatrix3d.translation(10, 0, 0);
|
|
219
|
-
* circle.transformBy(translationMatrix);
|
|
220
|
-
* // Circle is now translated 10 units in the X direction
|
|
221
|
-
* ```
|
|
222
|
-
*/
|
|
223
|
-
AcDbCircle.prototype.transformBy = function (matrix) {
|
|
224
|
-
this._geo.transform(matrix);
|
|
225
|
-
return this;
|
|
226
|
-
};
|
|
227
|
-
/**
|
|
228
|
-
* Draws this circle using the specified renderer.
|
|
229
|
-
*
|
|
230
|
-
* This method renders the circle as a circular arc using the circle's
|
|
231
|
-
* current style properties.
|
|
232
|
-
*
|
|
233
|
-
* @param renderer - The renderer to use for drawing
|
|
234
|
-
* @returns The rendered circle entity, or undefined if drawing failed
|
|
235
|
-
*
|
|
236
|
-
* @example
|
|
237
|
-
* ```typescript
|
|
238
|
-
* const renderedCircle = circle.draw(renderer);
|
|
239
|
-
* ```
|
|
240
|
-
*/
|
|
241
|
-
AcDbCircle.prototype.draw = function (renderer) {
|
|
242
|
-
return renderer.circularArc(this._geo, this.lineStyle);
|
|
243
|
-
};
|
|
244
|
-
/** The entity type name */
|
|
245
|
-
AcDbCircle.typeName = 'Circle';
|
|
246
|
-
return AcDbCircle;
|
|
247
|
-
}(AcDbCurve));
|
|
248
|
-
export { AcDbCircle };
|
|
249
|
-
//# sourceMappingURL=AcDbCircle.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AcDbCircle.js","sourceRoot":"","sources":["../../src/entity/AcDbCircle.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EACL,aAAa,EAKb,YAAY,EACZ,GAAG,EACJ,MAAM,4BAA4B,CAAA;AAGnC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAEvC;;;;;;;;;;;;;;;;;;;;GAoBG;AACH;IAAgC,8BAAS;IAOvC;;;;;;;;;;;;;;;;;;;;;;;;;;OA0BG;IACH,oBACE,MAAqB,EACrB,MAAc,EACd,MAA0C;QAA1C,uBAAA,EAAA,SAAuB,YAAY,CAAC,MAAM;QAE1C,YAAA,MAAK,WAAE,SAAA;QACP,KAAI,CAAC,IAAI,GAAG,IAAI,aAAa,CAC3B,MAAM,EACN,MAAM,EACN,CAAC,EACD,GAAG,EACH,MAAM,EACN,YAAY,CAAC,MAAM,CACpB,CAAA;;IACH,CAAC;IAaD,sBAAI,8BAAM;QAXV;;;;;;;;;;WAUG;aACH;YACE,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,CAAA;QACzB,CAAC;QAED;;;;;;;;;WASG;aACH,UAAW,KAAsB;YAC/B,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,KAAK,CAAA;QAC1B,CAAC;;;OAdA;IA2BD,sBAAI,8BAAM;QAXV;;;;;;;;;;WAUG;aACH;YACE,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,CAAA;QACzB,CAAC;QAED;;;;;;;;;WASG;aACH,UAAW,KAAa;YACtB,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,KAAK,CAAA;QAC1B,CAAC;;;OAdA;IA6BD,sBAAI,8BAAM;QAbV;;;;;;;;;;;;WAYG;aACH;YACE,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,CAAA;QACzB,CAAC;;;OAAA;IAaD,sBAAI,wCAAgB;QAXpB;;;;;;;;;;WAUG;aACH;YACE,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAA;QACtB,CAAC;;;OAAA;IASD,sBAAI,8BAAM;QAPV;;;;;;WAMG;aACH;YACE,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,CAAA;QACzB,CAAC;;;OAAA;IAED;;;;;;;;;;;;;OAaG;IACH,qCAAgB,GAAhB;QACE,IAAM,UAAU,GAAG,IAAI,KAAK,EAAe,CAAA;QAC3C,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QAC5B,OAAO,UAAU,CAAA;IACnB,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,gCAAW,GAAX,UAAY,MAAoB;QAC9B,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAA;QAC3B,OAAO,IAAI,CAAA;IACb,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,yBAAI,GAAJ,UAAK,QAAsB;QACzB,OAAO,QAAQ,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,CAAA;IACxD,CAAC;IA/MD,2BAA2B;IACX,mBAAQ,GAAW,QAAQ,CAAA;IA+M7C,iBAAC;CAAA,AAjND,CAAgC,SAAS,GAiNxC;SAjNY,UAAU"}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { AcDbEntity } from './AcDbEntity';
|
|
2
|
-
/**
|
|
3
|
-
* Abstract base class for all curve entities.
|
|
4
|
-
*
|
|
5
|
-
* This class provides the fundamental functionality for all curve entities,
|
|
6
|
-
* including the ability to determine if a curve is closed. A curve is
|
|
7
|
-
* considered closed if its start point is identical to its end point.
|
|
8
|
-
*
|
|
9
|
-
* @example
|
|
10
|
-
* ```typescript
|
|
11
|
-
* class MyCurve extends AcDbCurve {
|
|
12
|
-
* get closed(): boolean {
|
|
13
|
-
* // Implementation to determine if curve is closed
|
|
14
|
-
* return this.startPoint.equals(this.endPoint);
|
|
15
|
-
* }
|
|
16
|
-
* }
|
|
17
|
-
* ```
|
|
18
|
-
*/
|
|
19
|
-
export declare abstract class AcDbCurve extends AcDbEntity {
|
|
20
|
-
/** The entity type name */
|
|
21
|
-
static typeName: string;
|
|
22
|
-
/**
|
|
23
|
-
* Returns true if the curve is closed.
|
|
24
|
-
*
|
|
25
|
-
* A curve is considered closed if its start point is identical to its end point.
|
|
26
|
-
* This property is used by various operations that need to know if a curve
|
|
27
|
-
* forms a complete loop.
|
|
28
|
-
*
|
|
29
|
-
* @returns True if the curve is closed, false otherwise
|
|
30
|
-
*
|
|
31
|
-
* @example
|
|
32
|
-
* ```typescript
|
|
33
|
-
* const curve = new AcDbCircle();
|
|
34
|
-
* console.log('Is circle closed?', curve.closed); // true
|
|
35
|
-
*
|
|
36
|
-
* const line = new AcDbLine();
|
|
37
|
-
* console.log('Is line closed?', line.closed); // false
|
|
38
|
-
* ```
|
|
39
|
-
*/
|
|
40
|
-
abstract get closed(): boolean;
|
|
41
|
-
}
|
|
42
|
-
//# sourceMappingURL=AcDbCurve.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AcDbCurve.d.ts","sourceRoot":"","sources":["../../src/entity/AcDbCurve.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAEzC;;;;;;;;;;;;;;;;GAgBG;AACH,8BAAsB,SAAU,SAAQ,UAAU;IAChD,2BAA2B;IAC3B,OAAgB,QAAQ,EAAE,MAAM,CAAU;IAE1C;;;;;;;;;;;;;;;;;OAiBG;IACH,QAAQ,KAAK,MAAM,IAAI,OAAO,CAAA;CAC/B"}
|
package/lib/entity/AcDbCurve.js
DELETED
|
@@ -1,44 +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 { AcDbEntity } from './AcDbEntity';
|
|
17
|
-
/**
|
|
18
|
-
* Abstract base class for all curve entities.
|
|
19
|
-
*
|
|
20
|
-
* This class provides the fundamental functionality for all curve entities,
|
|
21
|
-
* including the ability to determine if a curve is closed. A curve is
|
|
22
|
-
* considered closed if its start point is identical to its end point.
|
|
23
|
-
*
|
|
24
|
-
* @example
|
|
25
|
-
* ```typescript
|
|
26
|
-
* class MyCurve extends AcDbCurve {
|
|
27
|
-
* get closed(): boolean {
|
|
28
|
-
* // Implementation to determine if curve is closed
|
|
29
|
-
* return this.startPoint.equals(this.endPoint);
|
|
30
|
-
* }
|
|
31
|
-
* }
|
|
32
|
-
* ```
|
|
33
|
-
*/
|
|
34
|
-
var AcDbCurve = /** @class */ (function (_super) {
|
|
35
|
-
__extends(AcDbCurve, _super);
|
|
36
|
-
function AcDbCurve() {
|
|
37
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
38
|
-
}
|
|
39
|
-
/** The entity type name */
|
|
40
|
-
AcDbCurve.typeName = 'Curve';
|
|
41
|
-
return AcDbCurve;
|
|
42
|
-
}(AcDbEntity));
|
|
43
|
-
export { AcDbCurve };
|
|
44
|
-
//# sourceMappingURL=AcDbCurve.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AcDbCurve.js","sourceRoot":"","sources":["../../src/entity/AcDbCurve.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAEzC;;;;;;;;;;;;;;;;GAgBG;AACH;IAAwC,6BAAU;IAAlD;;IAuBA,CAAC;IAtBC,2BAA2B;IACX,kBAAQ,GAAW,OAAO,CAAA;IAqB5C,gBAAC;CAAA,AAvBD,CAAwC,UAAU,GAuBjD;SAvBqB,SAAS"}
|
|
@@ -1,207 +0,0 @@
|
|
|
1
|
-
import { AcGePoint3d, AcGePoint3dLike, AcGePointLike, AcGeVector3dLike } from '@mlightcad/geometry-engine';
|
|
2
|
-
import { AcGiRenderer } from '@mlightcad/graphic-interface';
|
|
3
|
-
import { AcDbCurve } from './AcDbCurve';
|
|
4
|
-
/**
|
|
5
|
-
* Represents an ellipse entity in AutoCAD.
|
|
6
|
-
*
|
|
7
|
-
* An ellipse is a 2D geometric object defined by its center point, major and minor axes,
|
|
8
|
-
* and optional start and end angles. Ellipses are curved shapes that can be used to
|
|
9
|
-
* create elliptical shapes in drawings. The ellipse is always drawn in the plane
|
|
10
|
-
* defined by its normal vector.
|
|
11
|
-
*
|
|
12
|
-
* @example
|
|
13
|
-
* ```typescript
|
|
14
|
-
* // Create a full ellipse
|
|
15
|
-
* const ellipse = new AcDbEllipse(
|
|
16
|
-
* new AcGePoint3d(0, 0, 0),
|
|
17
|
-
* AcGeVector3d.Z_AXIS,
|
|
18
|
-
* AcGeVector3d.X_AXIS,
|
|
19
|
-
* 10, // major axis radius
|
|
20
|
-
* 5, // minor axis radius
|
|
21
|
-
* 0, // start angle
|
|
22
|
-
* 2 * Math.PI // end angle (full ellipse)
|
|
23
|
-
* );
|
|
24
|
-
*
|
|
25
|
-
* // Access ellipse properties
|
|
26
|
-
* console.log(`Center: ${ellipse.center}`);
|
|
27
|
-
* console.log(`Major radius: ${ellipse.majorAxisRadius}`);
|
|
28
|
-
* console.log(`Minor radius: ${ellipse.minorAxisRadius}`);
|
|
29
|
-
* ```
|
|
30
|
-
*/
|
|
31
|
-
export declare class AcDbEllipse extends AcDbCurve {
|
|
32
|
-
/** The entity type name */
|
|
33
|
-
static typeName: string;
|
|
34
|
-
/** The underlying geometric ellipse arc object */
|
|
35
|
-
private _geo;
|
|
36
|
-
/**
|
|
37
|
-
* Creates a new ellipse entity.
|
|
38
|
-
*
|
|
39
|
-
* This constructor creates an ellipse using the specified center point, normal vector,
|
|
40
|
-
* major axis, and radii. The center point must be in World Coordinate System (WCS) coordinates.
|
|
41
|
-
*
|
|
42
|
-
* @param center - The center point of the ellipse in WCS coordinates
|
|
43
|
-
* @param normal - The normal vector defining the plane of the ellipse
|
|
44
|
-
* @param majorAxis - The major axis vector in WCS coordinates
|
|
45
|
-
* @param majorAxisRadius - The radius of the major axis (must be positive)
|
|
46
|
-
* @param minorAxisRadius - The radius of the minor axis (must be positive)
|
|
47
|
-
* @param startAngle - The starting angle in radians (0 to 2π)
|
|
48
|
-
* @param endAngle - The ending angle in radians (0 to 2π)
|
|
49
|
-
*
|
|
50
|
-
* @example
|
|
51
|
-
* ```typescript
|
|
52
|
-
* // Create a full ellipse in the XY plane
|
|
53
|
-
* const fullEllipse = new AcDbEllipse(
|
|
54
|
-
* new AcGePoint3d(0, 0, 0),
|
|
55
|
-
* AcGeVector3d.Z_AXIS,
|
|
56
|
-
* AcGeVector3d.X_AXIS,
|
|
57
|
-
* 20, // major radius
|
|
58
|
-
* 10, // minor radius
|
|
59
|
-
* 0,
|
|
60
|
-
* 2 * Math.PI
|
|
61
|
-
* );
|
|
62
|
-
*
|
|
63
|
-
* // Create a quarter ellipse
|
|
64
|
-
* const quarterEllipse = new AcDbEllipse(
|
|
65
|
-
* new AcGePoint3d(10, 20, 0),
|
|
66
|
-
* AcGeVector3d.Z_AXIS,
|
|
67
|
-
* AcGeVector3d.X_AXIS,
|
|
68
|
-
* 15,
|
|
69
|
-
* 8,
|
|
70
|
-
* 0,
|
|
71
|
-
* Math.PI / 2
|
|
72
|
-
* );
|
|
73
|
-
* ```
|
|
74
|
-
*/
|
|
75
|
-
constructor(center: AcGePointLike, normal: AcGeVector3dLike, majorAxis: AcGeVector3dLike, majorAxisRadius: number, minorAxisRadius: number, startAngle: number, endAngle: number);
|
|
76
|
-
/**
|
|
77
|
-
* Gets the center point of this ellipse.
|
|
78
|
-
*
|
|
79
|
-
* @returns The center point as a 3D point
|
|
80
|
-
*
|
|
81
|
-
* @example
|
|
82
|
-
* ```typescript
|
|
83
|
-
* const centerPoint = ellipse.center;
|
|
84
|
-
* console.log(`Ellipse center: ${centerPoint.x}, ${centerPoint.y}, ${centerPoint.z}`);
|
|
85
|
-
* ```
|
|
86
|
-
*/
|
|
87
|
-
get center(): AcGePoint3d;
|
|
88
|
-
/**
|
|
89
|
-
* Sets the center point of this ellipse.
|
|
90
|
-
*
|
|
91
|
-
* @param value - The new center point
|
|
92
|
-
*
|
|
93
|
-
* @example
|
|
94
|
-
* ```typescript
|
|
95
|
-
* ellipse.center = new AcGePoint3d(5, 5, 0);
|
|
96
|
-
* ```
|
|
97
|
-
*/
|
|
98
|
-
set center(value: AcGePoint3dLike);
|
|
99
|
-
/**
|
|
100
|
-
* Gets the major axis radius of this ellipse.
|
|
101
|
-
*
|
|
102
|
-
* @returns The major axis radius value
|
|
103
|
-
*
|
|
104
|
-
* @example
|
|
105
|
-
* ```typescript
|
|
106
|
-
* const majorRadius = ellipse.majorAxisRadius;
|
|
107
|
-
* console.log(`Major radius: ${majorRadius}`);
|
|
108
|
-
* ```
|
|
109
|
-
*/
|
|
110
|
-
get majorAxisRadius(): number;
|
|
111
|
-
/**
|
|
112
|
-
* Sets the major axis radius of this ellipse.
|
|
113
|
-
*
|
|
114
|
-
* @param value - The new major axis radius value (must be positive)
|
|
115
|
-
*
|
|
116
|
-
* @example
|
|
117
|
-
* ```typescript
|
|
118
|
-
* ellipse.majorAxisRadius = 25;
|
|
119
|
-
* ```
|
|
120
|
-
*/
|
|
121
|
-
set majorAxisRadius(value: number);
|
|
122
|
-
/**
|
|
123
|
-
* Gets the minor axis radius of this ellipse.
|
|
124
|
-
*
|
|
125
|
-
* @returns The minor axis radius value
|
|
126
|
-
*
|
|
127
|
-
* @example
|
|
128
|
-
* ```typescript
|
|
129
|
-
* const minorRadius = ellipse.minorAxisRadius;
|
|
130
|
-
* console.log(`Minor radius: ${minorRadius}`);
|
|
131
|
-
* ```
|
|
132
|
-
*/
|
|
133
|
-
get minorAxisRadius(): number;
|
|
134
|
-
/**
|
|
135
|
-
* Sets the minor axis radius of this ellipse.
|
|
136
|
-
*
|
|
137
|
-
* @param value - The new minor axis radius value (must be positive)
|
|
138
|
-
*
|
|
139
|
-
* @example
|
|
140
|
-
* ```typescript
|
|
141
|
-
* ellipse.minorAxisRadius = 12;
|
|
142
|
-
* ```
|
|
143
|
-
*/
|
|
144
|
-
set minorAxisRadius(value: number);
|
|
145
|
-
/**
|
|
146
|
-
* Gets the normal vector of this ellipse.
|
|
147
|
-
*
|
|
148
|
-
* The normal vector defines the plane in which the ellipse lies.
|
|
149
|
-
*
|
|
150
|
-
* @returns The unit normal vector in WCS coordinates
|
|
151
|
-
*
|
|
152
|
-
* @example
|
|
153
|
-
* ```typescript
|
|
154
|
-
* const normal = ellipse.normal;
|
|
155
|
-
* console.log(`Ellipse normal: ${normal.x}, ${normal.y}, ${normal.z}`);
|
|
156
|
-
* ```
|
|
157
|
-
*/
|
|
158
|
-
get normal(): AcGeVector3dLike;
|
|
159
|
-
/**
|
|
160
|
-
* Sets the normal vector of this ellipse.
|
|
161
|
-
*
|
|
162
|
-
* @param value - The new normal vector
|
|
163
|
-
*
|
|
164
|
-
* @example
|
|
165
|
-
* ```typescript
|
|
166
|
-
* ellipse.normal = AcGeVector3d.Y_AXIS;
|
|
167
|
-
* ```
|
|
168
|
-
*/
|
|
169
|
-
set normal(value: AcGeVector3dLike);
|
|
170
|
-
/**
|
|
171
|
-
* Gets the geometric extents (bounding box) of this ellipse.
|
|
172
|
-
*
|
|
173
|
-
* @returns The bounding box that encompasses the entire ellipse
|
|
174
|
-
*
|
|
175
|
-
* @example
|
|
176
|
-
* ```typescript
|
|
177
|
-
* const extents = ellipse.geometricExtents;
|
|
178
|
-
* console.log(`Ellipse bounds: ${extents.minPoint} to ${extents.maxPoint}`);
|
|
179
|
-
* ```
|
|
180
|
-
*/
|
|
181
|
-
get geometricExtents(): import("@mlightcad/geometry-engine").AcGeBox3d;
|
|
182
|
-
/**
|
|
183
|
-
* Gets whether this ellipse is closed.
|
|
184
|
-
*
|
|
185
|
-
* An ellipse is considered closed if the start and end angles are the same
|
|
186
|
-
* (forming a complete ellipse).
|
|
187
|
-
*
|
|
188
|
-
* @returns True if the ellipse is closed (forms a complete ellipse), false otherwise
|
|
189
|
-
*/
|
|
190
|
-
get closed(): boolean;
|
|
191
|
-
/**
|
|
192
|
-
* Draws this ellipse using the specified renderer.
|
|
193
|
-
*
|
|
194
|
-
* This method renders the ellipse as an elliptical arc using the ellipse's
|
|
195
|
-
* current style properties.
|
|
196
|
-
*
|
|
197
|
-
* @param renderer - The renderer to use for drawing
|
|
198
|
-
* @returns The rendered ellipse entity, or undefined if drawing failed
|
|
199
|
-
*
|
|
200
|
-
* @example
|
|
201
|
-
* ```typescript
|
|
202
|
-
* const renderedEllipse = ellipse.draw(renderer);
|
|
203
|
-
* ```
|
|
204
|
-
*/
|
|
205
|
-
draw(renderer: AcGiRenderer): import("@mlightcad/graphic-interface").AcGiEntity;
|
|
206
|
-
}
|
|
207
|
-
//# sourceMappingURL=AcDbEllipse.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AcDbEllipse.d.ts","sourceRoot":"","sources":["../../src/entity/AcDbEllipse.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,WAAW,EACX,eAAe,EACf,aAAa,EACb,gBAAgB,EACjB,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAE3D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAEvC;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,qBAAa,WAAY,SAAQ,SAAS;IACxC,2BAA2B;IAC3B,OAAgB,QAAQ,EAAE,MAAM,CAAY;IAE5C,kDAAkD;IAClD,OAAO,CAAC,IAAI,CAAkB;IAE9B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAsCG;gBAED,MAAM,EAAE,aAAa,EACrB,MAAM,EAAE,gBAAgB,EACxB,SAAS,EAAE,gBAAgB,EAC3B,eAAe,EAAE,MAAM,EACvB,eAAe,EAAE,MAAM,EACvB,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM;IAclB;;;;;;;;;;OAUG;IACH,IAAI,MAAM,IAAI,WAAW,CAExB;IAED;;;;;;;;;OASG;IACH,IAAI,MAAM,CAAC,KAAK,EAAE,eAAe,EAEhC;IAED;;;;;;;;;;OAUG;IACH,IAAI,eAAe,IAAI,MAAM,CAE5B;IAED;;;;;;;;;OASG;IACH,IAAI,eAAe,CAAC,KAAK,EAAE,MAAM,EAEhC;IAED;;;;;;;;;;OAUG;IACH,IAAI,eAAe,IAAI,MAAM,CAE5B;IAED;;;;;;;;;OASG;IACH,IAAI,eAAe,CAAC,KAAK,EAAE,MAAM,EAEhC;IAED;;;;;;;;;;;;OAYG;IACH,IAAI,MAAM,IAcQ,gBAAgB,CAZjC;IAED;;;;;;;;;OASG;IACH,IAAI,MAAM,CAAC,KAAK,EAAE,gBAAgB,EAEjC;IAED;;;;;;;;;;OAUG;IACH,IAAI,gBAAgB,mDAEnB;IAED;;;;;;;OAOG;IACH,IAAI,MAAM,IAAI,OAAO,CAEpB;IAED;;;;;;;;;;;;;OAaG;IACH,IAAI,CAAC,QAAQ,EAAE,YAAY;CAG5B"}
|