@mlightcad/data-model 1.1.2 → 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/data-model.js +5501 -1021
- package/dist/data-model.umd.cjs +2 -2
- package/lib/base/AcDbHostApplicationServices.d.ts +72 -6
- package/lib/base/AcDbHostApplicationServices.d.ts.map +1 -1
- package/lib/base/AcDbHostApplicationServices.js +71 -7
- package/lib/base/AcDbHostApplicationServices.js.map +1 -1
- package/lib/base/AcDbObject.d.ts +160 -25
- package/lib/base/AcDbObject.d.ts.map +1 -1
- package/lib/base/AcDbObject.js +149 -25
- package/lib/base/AcDbObject.js.map +1 -1
- package/lib/converter/AcDbBatchProcessing.d.ts +112 -10
- package/lib/converter/AcDbBatchProcessing.d.ts.map +1 -1
- package/lib/converter/AcDbBatchProcessing.js +110 -11
- package/lib/converter/AcDbBatchProcessing.js.map +1 -1
- package/lib/converter/AcDbDxfConverter.d.ts +224 -6
- package/lib/converter/AcDbDxfConverter.d.ts.map +1 -1
- package/lib/converter/AcDbDxfConverter.js +224 -6
- package/lib/converter/AcDbDxfConverter.js.map +1 -1
- package/lib/converter/AcDbDxfParseWorker.d.ts +16 -0
- package/lib/converter/AcDbDxfParseWorker.d.ts.map +1 -1
- package/lib/converter/AcDbDxfParseWorker.js +16 -0
- package/lib/converter/AcDbDxfParseWorker.js.map +1 -1
- package/lib/converter/AcDbEntitiyConverter.d.ts +118 -3
- package/lib/converter/AcDbEntitiyConverter.d.ts.map +1 -1
- package/lib/converter/AcDbEntitiyConverter.js +118 -3
- package/lib/converter/AcDbEntitiyConverter.js.map +1 -1
- package/lib/converter/AcDbObjectConverter.d.ts +52 -0
- package/lib/converter/AcDbObjectConverter.d.ts.map +1 -1
- package/lib/converter/AcDbObjectConverter.js +52 -0
- package/lib/converter/AcDbObjectConverter.js.map +1 -1
- package/lib/database/AcDbBlockTable.d.ts +35 -3
- package/lib/database/AcDbBlockTable.d.ts.map +1 -1
- package/lib/database/AcDbBlockTable.js +35 -3
- package/lib/database/AcDbBlockTable.js.map +1 -1
- package/lib/database/AcDbBlockTableRecord.d.ts +98 -15
- package/lib/database/AcDbBlockTableRecord.d.ts.map +1 -1
- package/lib/database/AcDbBlockTableRecord.js +96 -15
- package/lib/database/AcDbBlockTableRecord.js.map +1 -1
- package/lib/database/AcDbDatabase.d.ts +312 -36
- package/lib/database/AcDbDatabase.d.ts.map +1 -1
- package/lib/database/AcDbDatabase.js +237 -46
- package/lib/database/AcDbDatabase.js.map +1 -1
- package/lib/database/AcDbDatabaseConverter.d.ts +79 -14
- package/lib/database/AcDbDatabaseConverter.d.ts.map +1 -1
- package/lib/database/AcDbDatabaseConverter.js +46 -13
- package/lib/database/AcDbDatabaseConverter.js.map +1 -1
- package/lib/database/AcDbDatabaseConverterManager.d.ts +97 -15
- package/lib/database/AcDbDatabaseConverterManager.d.ts.map +1 -1
- package/lib/database/AcDbDatabaseConverterManager.js +90 -15
- package/lib/database/AcDbDatabaseConverterManager.js.map +1 -1
- package/lib/database/AcDbDimStyleTable.d.ts +22 -2
- package/lib/database/AcDbDimStyleTable.d.ts.map +1 -1
- package/lib/database/AcDbDimStyleTable.js +22 -2
- package/lib/database/AcDbDimStyleTable.js.map +1 -1
- package/lib/database/AcDbDimStyleTableRecord.d.ts +115 -0
- package/lib/database/AcDbDimStyleTableRecord.d.ts.map +1 -1
- package/lib/database/AcDbDimStyleTableRecord.js +44 -0
- package/lib/database/AcDbDimStyleTableRecord.js.map +1 -1
- package/lib/database/AcDbLayerTable.d.ts +39 -2
- package/lib/database/AcDbLayerTable.d.ts.map +1 -1
- package/lib/database/AcDbLayerTable.js +39 -2
- package/lib/database/AcDbLayerTable.js.map +1 -1
- package/lib/database/AcDbLayerTableRecord.d.ts +198 -18
- package/lib/database/AcDbLayerTableRecord.d.ts.map +1 -1
- package/lib/database/AcDbLayerTableRecord.js +182 -19
- package/lib/database/AcDbLayerTableRecord.js.map +1 -1
- package/lib/database/AcDbLinetypeTable.d.ts +21 -2
- package/lib/database/AcDbLinetypeTable.d.ts.map +1 -1
- package/lib/database/AcDbLinetypeTable.js +21 -2
- package/lib/database/AcDbLinetypeTable.js.map +1 -1
- package/lib/database/AcDbLinetypeTableRecord.d.ts +46 -14
- package/lib/database/AcDbLinetypeTableRecord.d.ts.map +1 -1
- package/lib/database/AcDbLinetypeTableRecord.js +46 -14
- package/lib/database/AcDbLinetypeTableRecord.js.map +1 -1
- package/lib/database/AcDbSymbolTable.d.ts +134 -29
- package/lib/database/AcDbSymbolTable.d.ts.map +1 -1
- package/lib/database/AcDbSymbolTable.js +133 -37
- package/lib/database/AcDbSymbolTable.js.map +1 -1
- package/lib/database/AcDbSymbolTableRecord.d.ts +47 -2
- package/lib/database/AcDbSymbolTableRecord.d.ts.map +1 -1
- package/lib/database/AcDbSymbolTableRecord.js +40 -2
- package/lib/database/AcDbSymbolTableRecord.js.map +1 -1
- package/lib/database/AcDbTextStyleTable.d.ts +36 -2
- package/lib/database/AcDbTextStyleTable.d.ts.map +1 -1
- package/lib/database/AcDbTextStyleTable.js +36 -2
- package/lib/database/AcDbTextStyleTable.js.map +1 -1
- package/lib/database/AcDbTextStyleTableRecord.d.ts +129 -17
- package/lib/database/AcDbTextStyleTableRecord.d.ts.map +1 -1
- package/lib/database/AcDbTextStyleTableRecord.js +127 -17
- package/lib/database/AcDbTextStyleTableRecord.js.map +1 -1
- package/lib/database/AcDbViewportTable.d.ts +22 -2
- package/lib/database/AcDbViewportTable.d.ts.map +1 -1
- package/lib/database/AcDbViewportTable.js +22 -2
- package/lib/database/AcDbViewportTable.js.map +1 -1
- package/lib/database/AcDbViewportTableRecord.d.ts +74 -9
- package/lib/database/AcDbViewportTableRecord.d.ts.map +1 -1
- package/lib/database/AcDbViewportTableRecord.js +65 -9
- package/lib/database/AcDbViewportTableRecord.js.map +1 -1
- package/lib/entity/AcDbArc.d.ts +202 -17
- package/lib/entity/AcDbArc.d.ts.map +1 -1
- package/lib/entity/AcDbArc.js +201 -17
- package/lib/entity/AcDbArc.js.map +1 -1
- package/lib/entity/AcDbBlockReference.d.ts +147 -13
- package/lib/entity/AcDbBlockReference.d.ts.map +1 -1
- package/lib/entity/AcDbBlockReference.js +142 -13
- package/lib/entity/AcDbBlockReference.js.map +1 -1
- package/lib/entity/AcDbCircle.d.ts +145 -12
- package/lib/entity/AcDbCircle.d.ts.map +1 -1
- package/lib/entity/AcDbCircle.js +144 -12
- package/lib/entity/AcDbCircle.js.map +1 -1
- package/lib/entity/AcDbCurve.d.ts +33 -2
- package/lib/entity/AcDbCurve.d.ts.map +1 -1
- package/lib/entity/AcDbCurve.js +17 -0
- package/lib/entity/AcDbCurve.js.map +1 -1
- package/lib/entity/AcDbEllipse.d.ts +168 -16
- package/lib/entity/AcDbEllipse.d.ts.map +1 -1
- package/lib/entity/AcDbEllipse.js +167 -16
- package/lib/entity/AcDbEllipse.js.map +1 -1
- package/lib/entity/AcDbEntity.d.ts +299 -35
- package/lib/entity/AcDbEntity.d.ts.map +1 -1
- package/lib/entity/AcDbEntity.js +275 -27
- package/lib/entity/AcDbEntity.js.map +1 -1
- package/lib/entity/AcDbHatch.d.ts +60 -4
- package/lib/entity/AcDbHatch.d.ts.map +1 -1
- package/lib/entity/AcDbHatch.js +52 -4
- package/lib/entity/AcDbHatch.js.map +1 -1
- package/lib/entity/AcDbLeader.d.ts +157 -10
- package/lib/entity/AcDbLeader.d.ts.map +1 -1
- package/lib/entity/AcDbLeader.js +149 -10
- package/lib/entity/AcDbLeader.js.map +1 -1
- package/lib/entity/AcDbLine.d.ts +154 -13
- package/lib/entity/AcDbLine.d.ts.map +1 -1
- package/lib/entity/AcDbLine.js +153 -13
- package/lib/entity/AcDbLine.js.map +1 -1
- package/lib/entity/AcDbMText.d.ts +127 -11
- package/lib/entity/AcDbMText.d.ts.map +1 -1
- package/lib/entity/AcDbMText.js +112 -11
- package/lib/entity/AcDbMText.js.map +1 -1
- package/lib/entity/AcDbPoint.d.ts +86 -7
- package/lib/entity/AcDbPoint.d.ts.map +1 -1
- package/lib/entity/AcDbPoint.js +85 -7
- package/lib/entity/AcDbPoint.js.map +1 -1
- package/lib/entity/AcDbPolyline.d.ts +172 -25
- package/lib/entity/AcDbPolyline.d.ts.map +1 -1
- package/lib/entity/AcDbPolyline.js +170 -25
- package/lib/entity/AcDbPolyline.js.map +1 -1
- package/lib/entity/AcDbRasterImage.d.ts +75 -31
- package/lib/entity/AcDbRasterImage.d.ts.map +1 -1
- package/lib/entity/AcDbRasterImage.js +60 -31
- package/lib/entity/AcDbRasterImage.js.map +1 -1
- package/lib/entity/AcDbRay.d.ts +115 -9
- package/lib/entity/AcDbRay.d.ts.map +1 -1
- package/lib/entity/AcDbRay.js +113 -9
- package/lib/entity/AcDbRay.js.map +1 -1
- package/lib/entity/AcDbSpline.d.ts +106 -14
- package/lib/entity/AcDbSpline.d.ts.map +1 -1
- package/lib/entity/AcDbSpline.js +67 -4
- package/lib/entity/AcDbSpline.js.map +1 -1
- package/lib/entity/AcDbTable.d.ts +161 -44
- package/lib/entity/AcDbTable.d.ts.map +1 -1
- package/lib/entity/AcDbTable.js +135 -44
- package/lib/entity/AcDbTable.js.map +1 -1
- package/lib/entity/AcDbText.d.ts +298 -25
- package/lib/entity/AcDbText.d.ts.map +1 -1
- package/lib/entity/AcDbText.js +288 -25
- package/lib/entity/AcDbText.js.map +1 -1
- package/lib/entity/AcDbTrace.d.ts +150 -23
- package/lib/entity/AcDbTrace.d.ts.map +1 -1
- package/lib/entity/AcDbTrace.js +147 -23
- package/lib/entity/AcDbTrace.js.map +1 -1
- package/lib/entity/AcDbViewport.d.ts +122 -9
- package/lib/entity/AcDbViewport.d.ts.map +1 -1
- package/lib/entity/AcDbViewport.js +122 -9
- package/lib/entity/AcDbViewport.js.map +1 -1
- package/lib/entity/AcDbWipeout.d.ts +29 -1
- package/lib/entity/AcDbWipeout.d.ts.map +1 -1
- package/lib/entity/AcDbWipeout.js +29 -1
- package/lib/entity/AcDbWipeout.js.map +1 -1
- package/lib/entity/AcDbXline.d.ts +116 -9
- package/lib/entity/AcDbXline.d.ts.map +1 -1
- package/lib/entity/AcDbXline.js +114 -9
- package/lib/entity/AcDbXline.js.map +1 -1
- package/lib/entity/dimension/AcDb3PointAngularDimension.d.ts +56 -12
- package/lib/entity/dimension/AcDb3PointAngularDimension.d.ts.map +1 -1
- package/lib/entity/dimension/AcDb3PointAngularDimension.js +56 -12
- package/lib/entity/dimension/AcDb3PointAngularDimension.js.map +1 -1
- package/lib/entity/dimension/AcDbAlignedDimension.d.ts +158 -17
- package/lib/entity/dimension/AcDbAlignedDimension.d.ts.map +1 -1
- package/lib/entity/dimension/AcDbAlignedDimension.js +153 -17
- package/lib/entity/dimension/AcDbAlignedDimension.js.map +1 -1
- package/lib/entity/dimension/AcDbArcDimension.d.ts +58 -12
- package/lib/entity/dimension/AcDbArcDimension.d.ts.map +1 -1
- package/lib/entity/dimension/AcDbArcDimension.js +58 -12
- package/lib/entity/dimension/AcDbArcDimension.js.map +1 -1
- package/lib/entity/dimension/AcDbDiametricDimension.d.ts +99 -25
- package/lib/entity/dimension/AcDbDiametricDimension.d.ts.map +1 -1
- package/lib/entity/dimension/AcDbDiametricDimension.js +99 -25
- package/lib/entity/dimension/AcDbDiametricDimension.js.map +1 -1
- package/lib/entity/dimension/AcDbDimension.d.ts +108 -14
- package/lib/entity/dimension/AcDbDimension.d.ts.map +1 -1
- package/lib/entity/dimension/AcDbDimension.js +99 -14
- package/lib/entity/dimension/AcDbDimension.js.map +1 -1
- package/lib/entity/dimension/AcDbOrdinateDimension.d.ts +48 -16
- package/lib/entity/dimension/AcDbOrdinateDimension.d.ts.map +1 -1
- package/lib/entity/dimension/AcDbOrdinateDimension.js +48 -16
- package/lib/entity/dimension/AcDbOrdinateDimension.js.map +1 -1
- package/lib/entity/dimension/AcDbRadialDimension.d.ts +167 -24
- package/lib/entity/dimension/AcDbRadialDimension.d.ts.map +1 -1
- package/lib/entity/dimension/AcDbRadialDimension.js +162 -24
- package/lib/entity/dimension/AcDbRadialDimension.js.map +1 -1
- package/lib/misc/AcDbAngleUnits.d.ts +12 -0
- package/lib/misc/AcDbAngleUnits.d.ts.map +1 -1
- package/lib/misc/AcDbAngleUnits.js +12 -0
- package/lib/misc/AcDbAngleUnits.js.map +1 -1
- package/lib/misc/AcDbConstants.d.ts +20 -0
- package/lib/misc/AcDbConstants.d.ts.map +1 -1
- package/lib/misc/AcDbConstants.js +20 -0
- package/lib/misc/AcDbConstants.js.map +1 -1
- package/lib/misc/AcDbDimArrowType.d.ts +24 -21
- package/lib/misc/AcDbDimArrowType.d.ts.map +1 -1
- package/lib/misc/AcDbDimArrowType.js +24 -21
- package/lib/misc/AcDbDimArrowType.js.map +1 -1
- package/lib/misc/AcDbObjectIterator.d.ts +42 -3
- package/lib/misc/AcDbObjectIterator.d.ts.map +1 -1
- package/lib/misc/AcDbObjectIterator.js +42 -3
- package/lib/misc/AcDbObjectIterator.js.map +1 -1
- package/lib/misc/AcDbOsnapMode.d.ts +18 -10
- package/lib/misc/AcDbOsnapMode.d.ts.map +1 -1
- package/lib/misc/AcDbOsnapMode.js +18 -10
- package/lib/misc/AcDbOsnapMode.js.map +1 -1
- package/lib/misc/AcDbRenderingCache.d.ts +107 -29
- package/lib/misc/AcDbRenderingCache.d.ts.map +1 -1
- package/lib/misc/AcDbRenderingCache.js +105 -29
- package/lib/misc/AcDbRenderingCache.js.map +1 -1
- package/lib/misc/AcDbUnitsValue.d.ts +58 -8
- package/lib/misc/AcDbUnitsValue.d.ts.map +1 -1
- package/lib/misc/AcDbUnitsValue.js +58 -8
- package/lib/misc/AcDbUnitsValue.js.map +1 -1
- package/lib/object/AcDbDictionary.d.ts +128 -30
- package/lib/object/AcDbDictionary.d.ts.map +1 -1
- package/lib/object/AcDbDictionary.js +126 -30
- package/lib/object/AcDbDictionary.js.map +1 -1
- package/lib/object/AcDbRasterImageDef.d.ts +38 -9
- package/lib/object/AcDbRasterImageDef.d.ts.map +1 -1
- package/lib/object/AcDbRasterImageDef.js +37 -9
- package/lib/object/AcDbRasterImageDef.js.map +1 -1
- package/lib/object/layout/AcDbLayout.d.ts +152 -13
- package/lib/object/layout/AcDbLayout.d.ts.map +1 -1
- package/lib/object/layout/AcDbLayout.js +146 -13
- package/lib/object/layout/AcDbLayout.js.map +1 -1
- package/lib/object/layout/AcDbLayoutDictionary.d.ts +35 -7
- package/lib/object/layout/AcDbLayoutDictionary.d.ts.map +1 -1
- package/lib/object/layout/AcDbLayoutDictionary.js +35 -7
- package/lib/object/layout/AcDbLayoutDictionary.js.map +1 -1
- package/lib/object/layout/AcDbLayoutManager.d.ts +103 -31
- package/lib/object/layout/AcDbLayoutManager.d.ts.map +1 -1
- package/lib/object/layout/AcDbLayoutManager.js +98 -31
- package/lib/object/layout/AcDbLayoutManager.js.map +1 -1
- package/package.json +4 -4
|
@@ -1,8 +1,39 @@
|
|
|
1
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
|
+
*/
|
|
2
19
|
export declare abstract class AcDbCurve extends AcDbEntity {
|
|
3
20
|
/**
|
|
4
|
-
*
|
|
5
|
-
*
|
|
21
|
+
* Returns true if the curve is closed.
|
|
22
|
+
*
|
|
23
|
+
* A curve is considered closed if its start point is identical to its end point.
|
|
24
|
+
* This property is used by various operations that need to know if a curve
|
|
25
|
+
* forms a complete loop.
|
|
26
|
+
*
|
|
27
|
+
* @returns True if the curve is closed, false otherwise
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```typescript
|
|
31
|
+
* const curve = new AcDbCircle();
|
|
32
|
+
* console.log('Is circle closed?', curve.closed); // true
|
|
33
|
+
*
|
|
34
|
+
* const line = new AcDbLine();
|
|
35
|
+
* console.log('Is line closed?', line.closed); // false
|
|
36
|
+
* ```
|
|
6
37
|
*/
|
|
7
38
|
abstract get closed(): boolean;
|
|
8
39
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AcDbCurve.d.ts","sourceRoot":"","sources":["../../src/entity/AcDbCurve.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAEzC,8BAAsB,SAAU,SAAQ,UAAU;IAChD
|
|
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;;;;;;;;;;;;;;;;;OAiBG;IACH,QAAQ,KAAK,MAAM,IAAI,OAAO,CAAA;CAC/B"}
|
package/lib/entity/AcDbCurve.js
CHANGED
|
@@ -14,6 +14,23 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
14
14
|
};
|
|
15
15
|
})();
|
|
16
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
|
+
*/
|
|
17
34
|
var AcDbCurve = /** @class */ (function (_super) {
|
|
18
35
|
__extends(AcDbCurve, _super);
|
|
19
36
|
function AcDbCurve() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AcDbCurve.js","sourceRoot":"","sources":["../../src/entity/AcDbCurve.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAEzC;IAAwC,6BAAU;IAAlD;;
|
|
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;;IAoBA,CAAC;IAAD,gBAAC;AAAD,CAAC,AApBD,CAAwC,UAAU,GAoBjD"}
|
|
@@ -2,51 +2,203 @@ import { AcGePoint3d, AcGePoint3dLike, AcGePointLike, AcGeVector3dLike } from '@
|
|
|
2
2
|
import { AcGiRenderer } from '@mlightcad/graphic-interface';
|
|
3
3
|
import { AcDbCurve } from './AcDbCurve';
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
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
|
+
* ```
|
|
6
30
|
*/
|
|
7
31
|
export declare class AcDbEllipse extends AcDbCurve {
|
|
32
|
+
/** The underlying geometric ellipse arc object */
|
|
8
33
|
private _geo;
|
|
9
34
|
/**
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* @param
|
|
16
|
-
* @param
|
|
17
|
-
* @param
|
|
35
|
+
* Creates a new ellipse entity.
|
|
36
|
+
*
|
|
37
|
+
* This constructor creates an ellipse using the specified center point, normal vector,
|
|
38
|
+
* major axis, and radii. The center point must be in World Coordinate System (WCS) coordinates.
|
|
39
|
+
*
|
|
40
|
+
* @param center - The center point of the ellipse in WCS coordinates
|
|
41
|
+
* @param normal - The normal vector defining the plane of the ellipse
|
|
42
|
+
* @param majorAxis - The major axis vector in WCS coordinates
|
|
43
|
+
* @param majorAxisRadius - The radius of the major axis (must be positive)
|
|
44
|
+
* @param minorAxisRadius - The radius of the minor axis (must be positive)
|
|
45
|
+
* @param startAngle - The starting angle in radians (0 to 2π)
|
|
46
|
+
* @param endAngle - The ending angle in radians (0 to 2π)
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* ```typescript
|
|
50
|
+
* // Create a full ellipse in the XY plane
|
|
51
|
+
* const fullEllipse = new AcDbEllipse(
|
|
52
|
+
* new AcGePoint3d(0, 0, 0),
|
|
53
|
+
* AcGeVector3d.Z_AXIS,
|
|
54
|
+
* AcGeVector3d.X_AXIS,
|
|
55
|
+
* 20, // major radius
|
|
56
|
+
* 10, // minor radius
|
|
57
|
+
* 0,
|
|
58
|
+
* 2 * Math.PI
|
|
59
|
+
* );
|
|
60
|
+
*
|
|
61
|
+
* // Create a quarter ellipse
|
|
62
|
+
* const quarterEllipse = new AcDbEllipse(
|
|
63
|
+
* new AcGePoint3d(10, 20, 0),
|
|
64
|
+
* AcGeVector3d.Z_AXIS,
|
|
65
|
+
* AcGeVector3d.X_AXIS,
|
|
66
|
+
* 15,
|
|
67
|
+
* 8,
|
|
68
|
+
* 0,
|
|
69
|
+
* Math.PI / 2
|
|
70
|
+
* );
|
|
71
|
+
* ```
|
|
18
72
|
*/
|
|
19
73
|
constructor(center: AcGePointLike, normal: AcGeVector3dLike, majorAxis: AcGeVector3dLike, majorAxisRadius: number, minorAxisRadius: number, startAngle: number, endAngle: number);
|
|
20
74
|
/**
|
|
21
|
-
*
|
|
75
|
+
* Gets the center point of this ellipse.
|
|
76
|
+
*
|
|
77
|
+
* @returns The center point as a 3D point
|
|
78
|
+
*
|
|
79
|
+
* @example
|
|
80
|
+
* ```typescript
|
|
81
|
+
* const centerPoint = ellipse.center;
|
|
82
|
+
* console.log(`Ellipse center: ${centerPoint.x}, ${centerPoint.y}, ${centerPoint.z}`);
|
|
83
|
+
* ```
|
|
22
84
|
*/
|
|
23
85
|
get center(): AcGePoint3d;
|
|
86
|
+
/**
|
|
87
|
+
* Sets the center point of this ellipse.
|
|
88
|
+
*
|
|
89
|
+
* @param value - The new center point
|
|
90
|
+
*
|
|
91
|
+
* @example
|
|
92
|
+
* ```typescript
|
|
93
|
+
* ellipse.center = new AcGePoint3d(5, 5, 0);
|
|
94
|
+
* ```
|
|
95
|
+
*/
|
|
24
96
|
set center(value: AcGePoint3dLike);
|
|
25
97
|
/**
|
|
26
|
-
*
|
|
98
|
+
* Gets the major axis radius of this ellipse.
|
|
99
|
+
*
|
|
100
|
+
* @returns The major axis radius value
|
|
101
|
+
*
|
|
102
|
+
* @example
|
|
103
|
+
* ```typescript
|
|
104
|
+
* const majorRadius = ellipse.majorAxisRadius;
|
|
105
|
+
* console.log(`Major radius: ${majorRadius}`);
|
|
106
|
+
* ```
|
|
27
107
|
*/
|
|
28
108
|
get majorAxisRadius(): number;
|
|
109
|
+
/**
|
|
110
|
+
* Sets the major axis radius of this ellipse.
|
|
111
|
+
*
|
|
112
|
+
* @param value - The new major axis radius value (must be positive)
|
|
113
|
+
*
|
|
114
|
+
* @example
|
|
115
|
+
* ```typescript
|
|
116
|
+
* ellipse.majorAxisRadius = 25;
|
|
117
|
+
* ```
|
|
118
|
+
*/
|
|
29
119
|
set majorAxisRadius(value: number);
|
|
30
120
|
/**
|
|
31
|
-
*
|
|
121
|
+
* Gets the minor axis radius of this ellipse.
|
|
122
|
+
*
|
|
123
|
+
* @returns The minor axis radius value
|
|
124
|
+
*
|
|
125
|
+
* @example
|
|
126
|
+
* ```typescript
|
|
127
|
+
* const minorRadius = ellipse.minorAxisRadius;
|
|
128
|
+
* console.log(`Minor radius: ${minorRadius}`);
|
|
129
|
+
* ```
|
|
32
130
|
*/
|
|
33
131
|
get minorAxisRadius(): number;
|
|
132
|
+
/**
|
|
133
|
+
* Sets the minor axis radius of this ellipse.
|
|
134
|
+
*
|
|
135
|
+
* @param value - The new minor axis radius value (must be positive)
|
|
136
|
+
*
|
|
137
|
+
* @example
|
|
138
|
+
* ```typescript
|
|
139
|
+
* ellipse.minorAxisRadius = 12;
|
|
140
|
+
* ```
|
|
141
|
+
*/
|
|
34
142
|
set minorAxisRadius(value: number);
|
|
35
143
|
/**
|
|
36
|
-
*
|
|
144
|
+
* Gets the normal vector of this ellipse.
|
|
145
|
+
*
|
|
146
|
+
* The normal vector defines the plane in which the ellipse lies.
|
|
147
|
+
*
|
|
148
|
+
* @returns The unit normal vector in WCS coordinates
|
|
149
|
+
*
|
|
150
|
+
* @example
|
|
151
|
+
* ```typescript
|
|
152
|
+
* const normal = ellipse.normal;
|
|
153
|
+
* console.log(`Ellipse normal: ${normal.x}, ${normal.y}, ${normal.z}`);
|
|
154
|
+
* ```
|
|
37
155
|
*/
|
|
38
156
|
get normal(): AcGeVector3dLike;
|
|
157
|
+
/**
|
|
158
|
+
* Sets the normal vector of this ellipse.
|
|
159
|
+
*
|
|
160
|
+
* @param value - The new normal vector
|
|
161
|
+
*
|
|
162
|
+
* @example
|
|
163
|
+
* ```typescript
|
|
164
|
+
* ellipse.normal = AcGeVector3d.Y_AXIS;
|
|
165
|
+
* ```
|
|
166
|
+
*/
|
|
39
167
|
set normal(value: AcGeVector3dLike);
|
|
40
168
|
/**
|
|
41
|
-
*
|
|
169
|
+
* Gets the geometric extents (bounding box) of this ellipse.
|
|
170
|
+
*
|
|
171
|
+
* @returns The bounding box that encompasses the entire ellipse
|
|
172
|
+
*
|
|
173
|
+
* @example
|
|
174
|
+
* ```typescript
|
|
175
|
+
* const extents = ellipse.geometricExtents;
|
|
176
|
+
* console.log(`Ellipse bounds: ${extents.minPoint} to ${extents.maxPoint}`);
|
|
177
|
+
* ```
|
|
42
178
|
*/
|
|
43
179
|
get geometricExtents(): import("@mlightcad/geometry-engine").AcGeBox3d;
|
|
44
180
|
/**
|
|
45
|
-
*
|
|
181
|
+
* Gets whether this ellipse is closed.
|
|
182
|
+
*
|
|
183
|
+
* An ellipse is considered closed if the start and end angles are the same
|
|
184
|
+
* (forming a complete ellipse).
|
|
185
|
+
*
|
|
186
|
+
* @returns True if the ellipse is closed (forms a complete ellipse), false otherwise
|
|
46
187
|
*/
|
|
47
188
|
get closed(): boolean;
|
|
48
189
|
/**
|
|
49
|
-
*
|
|
190
|
+
* Draws this ellipse using the specified renderer.
|
|
191
|
+
*
|
|
192
|
+
* This method renders the ellipse as an elliptical arc using the ellipse's
|
|
193
|
+
* current style properties.
|
|
194
|
+
*
|
|
195
|
+
* @param renderer - The renderer to use for drawing
|
|
196
|
+
* @returns The rendered ellipse entity, or undefined if drawing failed
|
|
197
|
+
*
|
|
198
|
+
* @example
|
|
199
|
+
* ```typescript
|
|
200
|
+
* const renderedEllipse = ellipse.draw(renderer);
|
|
201
|
+
* ```
|
|
50
202
|
*/
|
|
51
203
|
draw(renderer: AcGiRenderer): import("@mlightcad/graphic-interface").AcGiEntity;
|
|
52
204
|
}
|
|
@@ -1 +1 @@
|
|
|
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
|
|
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,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"}
|
|
@@ -16,19 +16,72 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
16
16
|
import { AcGeEllipseArc3d } from '@mlightcad/geometry-engine';
|
|
17
17
|
import { AcDbCurve } from './AcDbCurve';
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Represents an ellipse entity in AutoCAD.
|
|
20
|
+
*
|
|
21
|
+
* An ellipse is a 2D geometric object defined by its center point, major and minor axes,
|
|
22
|
+
* and optional start and end angles. Ellipses are curved shapes that can be used to
|
|
23
|
+
* create elliptical shapes in drawings. The ellipse is always drawn in the plane
|
|
24
|
+
* defined by its normal vector.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```typescript
|
|
28
|
+
* // Create a full ellipse
|
|
29
|
+
* const ellipse = new AcDbEllipse(
|
|
30
|
+
* new AcGePoint3d(0, 0, 0),
|
|
31
|
+
* AcGeVector3d.Z_AXIS,
|
|
32
|
+
* AcGeVector3d.X_AXIS,
|
|
33
|
+
* 10, // major axis radius
|
|
34
|
+
* 5, // minor axis radius
|
|
35
|
+
* 0, // start angle
|
|
36
|
+
* 2 * Math.PI // end angle (full ellipse)
|
|
37
|
+
* );
|
|
38
|
+
*
|
|
39
|
+
* // Access ellipse properties
|
|
40
|
+
* console.log(`Center: ${ellipse.center}`);
|
|
41
|
+
* console.log(`Major radius: ${ellipse.majorAxisRadius}`);
|
|
42
|
+
* console.log(`Minor radius: ${ellipse.minorAxisRadius}`);
|
|
43
|
+
* ```
|
|
20
44
|
*/
|
|
21
45
|
var AcDbEllipse = /** @class */ (function (_super) {
|
|
22
46
|
__extends(AcDbEllipse, _super);
|
|
23
47
|
/**
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
* @param
|
|
30
|
-
* @param
|
|
31
|
-
* @param
|
|
48
|
+
* Creates a new ellipse entity.
|
|
49
|
+
*
|
|
50
|
+
* This constructor creates an ellipse using the specified center point, normal vector,
|
|
51
|
+
* major axis, and radii. The center point must be in World Coordinate System (WCS) coordinates.
|
|
52
|
+
*
|
|
53
|
+
* @param center - The center point of the ellipse in WCS coordinates
|
|
54
|
+
* @param normal - The normal vector defining the plane of the ellipse
|
|
55
|
+
* @param majorAxis - The major axis vector in WCS coordinates
|
|
56
|
+
* @param majorAxisRadius - The radius of the major axis (must be positive)
|
|
57
|
+
* @param minorAxisRadius - The radius of the minor axis (must be positive)
|
|
58
|
+
* @param startAngle - The starting angle in radians (0 to 2π)
|
|
59
|
+
* @param endAngle - The ending angle in radians (0 to 2π)
|
|
60
|
+
*
|
|
61
|
+
* @example
|
|
62
|
+
* ```typescript
|
|
63
|
+
* // Create a full ellipse in the XY plane
|
|
64
|
+
* const fullEllipse = new AcDbEllipse(
|
|
65
|
+
* new AcGePoint3d(0, 0, 0),
|
|
66
|
+
* AcGeVector3d.Z_AXIS,
|
|
67
|
+
* AcGeVector3d.X_AXIS,
|
|
68
|
+
* 20, // major radius
|
|
69
|
+
* 10, // minor radius
|
|
70
|
+
* 0,
|
|
71
|
+
* 2 * Math.PI
|
|
72
|
+
* );
|
|
73
|
+
*
|
|
74
|
+
* // Create a quarter ellipse
|
|
75
|
+
* const quarterEllipse = new AcDbEllipse(
|
|
76
|
+
* new AcGePoint3d(10, 20, 0),
|
|
77
|
+
* AcGeVector3d.Z_AXIS,
|
|
78
|
+
* AcGeVector3d.X_AXIS,
|
|
79
|
+
* 15,
|
|
80
|
+
* 8,
|
|
81
|
+
* 0,
|
|
82
|
+
* Math.PI / 2
|
|
83
|
+
* );
|
|
84
|
+
* ```
|
|
32
85
|
*/
|
|
33
86
|
function AcDbEllipse(center, normal, majorAxis, majorAxisRadius, minorAxisRadius, startAngle, endAngle) {
|
|
34
87
|
var _this = _super.call(this) || this;
|
|
@@ -37,11 +90,29 @@ var AcDbEllipse = /** @class */ (function (_super) {
|
|
|
37
90
|
}
|
|
38
91
|
Object.defineProperty(AcDbEllipse.prototype, "center", {
|
|
39
92
|
/**
|
|
40
|
-
*
|
|
93
|
+
* Gets the center point of this ellipse.
|
|
94
|
+
*
|
|
95
|
+
* @returns The center point as a 3D point
|
|
96
|
+
*
|
|
97
|
+
* @example
|
|
98
|
+
* ```typescript
|
|
99
|
+
* const centerPoint = ellipse.center;
|
|
100
|
+
* console.log(`Ellipse center: ${centerPoint.x}, ${centerPoint.y}, ${centerPoint.z}`);
|
|
101
|
+
* ```
|
|
41
102
|
*/
|
|
42
103
|
get: function () {
|
|
43
104
|
return this._geo.center;
|
|
44
105
|
},
|
|
106
|
+
/**
|
|
107
|
+
* Sets the center point of this ellipse.
|
|
108
|
+
*
|
|
109
|
+
* @param value - The new center point
|
|
110
|
+
*
|
|
111
|
+
* @example
|
|
112
|
+
* ```typescript
|
|
113
|
+
* ellipse.center = new AcGePoint3d(5, 5, 0);
|
|
114
|
+
* ```
|
|
115
|
+
*/
|
|
45
116
|
set: function (value) {
|
|
46
117
|
this._geo.center = value;
|
|
47
118
|
},
|
|
@@ -50,11 +121,29 @@ var AcDbEllipse = /** @class */ (function (_super) {
|
|
|
50
121
|
});
|
|
51
122
|
Object.defineProperty(AcDbEllipse.prototype, "majorAxisRadius", {
|
|
52
123
|
/**
|
|
53
|
-
*
|
|
124
|
+
* Gets the major axis radius of this ellipse.
|
|
125
|
+
*
|
|
126
|
+
* @returns The major axis radius value
|
|
127
|
+
*
|
|
128
|
+
* @example
|
|
129
|
+
* ```typescript
|
|
130
|
+
* const majorRadius = ellipse.majorAxisRadius;
|
|
131
|
+
* console.log(`Major radius: ${majorRadius}`);
|
|
132
|
+
* ```
|
|
54
133
|
*/
|
|
55
134
|
get: function () {
|
|
56
135
|
return this._geo.majorAxisRadius;
|
|
57
136
|
},
|
|
137
|
+
/**
|
|
138
|
+
* Sets the major axis radius of this ellipse.
|
|
139
|
+
*
|
|
140
|
+
* @param value - The new major axis radius value (must be positive)
|
|
141
|
+
*
|
|
142
|
+
* @example
|
|
143
|
+
* ```typescript
|
|
144
|
+
* ellipse.majorAxisRadius = 25;
|
|
145
|
+
* ```
|
|
146
|
+
*/
|
|
58
147
|
set: function (value) {
|
|
59
148
|
this._geo.majorAxisRadius = value;
|
|
60
149
|
},
|
|
@@ -63,11 +152,29 @@ var AcDbEllipse = /** @class */ (function (_super) {
|
|
|
63
152
|
});
|
|
64
153
|
Object.defineProperty(AcDbEllipse.prototype, "minorAxisRadius", {
|
|
65
154
|
/**
|
|
66
|
-
*
|
|
155
|
+
* Gets the minor axis radius of this ellipse.
|
|
156
|
+
*
|
|
157
|
+
* @returns The minor axis radius value
|
|
158
|
+
*
|
|
159
|
+
* @example
|
|
160
|
+
* ```typescript
|
|
161
|
+
* const minorRadius = ellipse.minorAxisRadius;
|
|
162
|
+
* console.log(`Minor radius: ${minorRadius}`);
|
|
163
|
+
* ```
|
|
67
164
|
*/
|
|
68
165
|
get: function () {
|
|
69
166
|
return this._geo.minorAxisRadius;
|
|
70
167
|
},
|
|
168
|
+
/**
|
|
169
|
+
* Sets the minor axis radius of this ellipse.
|
|
170
|
+
*
|
|
171
|
+
* @param value - The new minor axis radius value (must be positive)
|
|
172
|
+
*
|
|
173
|
+
* @example
|
|
174
|
+
* ```typescript
|
|
175
|
+
* ellipse.minorAxisRadius = 12;
|
|
176
|
+
* ```
|
|
177
|
+
*/
|
|
71
178
|
set: function (value) {
|
|
72
179
|
this._geo.minorAxisRadius = value;
|
|
73
180
|
},
|
|
@@ -76,11 +183,31 @@ var AcDbEllipse = /** @class */ (function (_super) {
|
|
|
76
183
|
});
|
|
77
184
|
Object.defineProperty(AcDbEllipse.prototype, "normal", {
|
|
78
185
|
/**
|
|
79
|
-
*
|
|
186
|
+
* Gets the normal vector of this ellipse.
|
|
187
|
+
*
|
|
188
|
+
* The normal vector defines the plane in which the ellipse lies.
|
|
189
|
+
*
|
|
190
|
+
* @returns The unit normal vector in WCS coordinates
|
|
191
|
+
*
|
|
192
|
+
* @example
|
|
193
|
+
* ```typescript
|
|
194
|
+
* const normal = ellipse.normal;
|
|
195
|
+
* console.log(`Ellipse normal: ${normal.x}, ${normal.y}, ${normal.z}`);
|
|
196
|
+
* ```
|
|
80
197
|
*/
|
|
81
198
|
get: function () {
|
|
82
199
|
return this._geo.normal;
|
|
83
200
|
},
|
|
201
|
+
/**
|
|
202
|
+
* Sets the normal vector of this ellipse.
|
|
203
|
+
*
|
|
204
|
+
* @param value - The new normal vector
|
|
205
|
+
*
|
|
206
|
+
* @example
|
|
207
|
+
* ```typescript
|
|
208
|
+
* ellipse.normal = AcGeVector3d.Y_AXIS;
|
|
209
|
+
* ```
|
|
210
|
+
*/
|
|
84
211
|
set: function (value) {
|
|
85
212
|
this._geo.normal = value;
|
|
86
213
|
},
|
|
@@ -89,7 +216,15 @@ var AcDbEllipse = /** @class */ (function (_super) {
|
|
|
89
216
|
});
|
|
90
217
|
Object.defineProperty(AcDbEllipse.prototype, "geometricExtents", {
|
|
91
218
|
/**
|
|
92
|
-
*
|
|
219
|
+
* Gets the geometric extents (bounding box) of this ellipse.
|
|
220
|
+
*
|
|
221
|
+
* @returns The bounding box that encompasses the entire ellipse
|
|
222
|
+
*
|
|
223
|
+
* @example
|
|
224
|
+
* ```typescript
|
|
225
|
+
* const extents = ellipse.geometricExtents;
|
|
226
|
+
* console.log(`Ellipse bounds: ${extents.minPoint} to ${extents.maxPoint}`);
|
|
227
|
+
* ```
|
|
93
228
|
*/
|
|
94
229
|
get: function () {
|
|
95
230
|
return this._geo.box;
|
|
@@ -99,7 +234,12 @@ var AcDbEllipse = /** @class */ (function (_super) {
|
|
|
99
234
|
});
|
|
100
235
|
Object.defineProperty(AcDbEllipse.prototype, "closed", {
|
|
101
236
|
/**
|
|
102
|
-
*
|
|
237
|
+
* Gets whether this ellipse is closed.
|
|
238
|
+
*
|
|
239
|
+
* An ellipse is considered closed if the start and end angles are the same
|
|
240
|
+
* (forming a complete ellipse).
|
|
241
|
+
*
|
|
242
|
+
* @returns True if the ellipse is closed (forms a complete ellipse), false otherwise
|
|
103
243
|
*/
|
|
104
244
|
get: function () {
|
|
105
245
|
return this._geo.closed;
|
|
@@ -108,7 +248,18 @@ var AcDbEllipse = /** @class */ (function (_super) {
|
|
|
108
248
|
configurable: true
|
|
109
249
|
});
|
|
110
250
|
/**
|
|
111
|
-
*
|
|
251
|
+
* Draws this ellipse using the specified renderer.
|
|
252
|
+
*
|
|
253
|
+
* This method renders the ellipse as an elliptical arc using the ellipse's
|
|
254
|
+
* current style properties.
|
|
255
|
+
*
|
|
256
|
+
* @param renderer - The renderer to use for drawing
|
|
257
|
+
* @returns The rendered ellipse entity, or undefined if drawing failed
|
|
258
|
+
*
|
|
259
|
+
* @example
|
|
260
|
+
* ```typescript
|
|
261
|
+
* const renderedEllipse = ellipse.draw(renderer);
|
|
262
|
+
* ```
|
|
112
263
|
*/
|
|
113
264
|
AcDbEllipse.prototype.draw = function (renderer) {
|
|
114
265
|
return renderer.ellipticalArc(this._geo, this.lineStyle);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AcDbEllipse.js","sourceRoot":"","sources":["../../src/entity/AcDbEllipse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EACL,gBAAgB,EAKjB,MAAM,4BAA4B,CAAA;AAGnC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAEvC
|
|
1
|
+
{"version":3,"file":"AcDbEllipse.js","sourceRoot":"","sources":["../../src/entity/AcDbEllipse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EACL,gBAAgB,EAKjB,MAAM,4BAA4B,CAAA;AAGnC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAEvC;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH;IAAiC,+BAAS;IAIxC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAsCG;IACH,qBACE,MAAqB,EACrB,MAAwB,EACxB,SAA2B,EAC3B,eAAuB,EACvB,eAAuB,EACvB,UAAkB,EAClB,QAAgB;QAEhB,YAAA,MAAK,WAAE,SAAA;QACP,KAAI,CAAC,IAAI,GAAG,IAAI,gBAAgB,CAC9B,MAAM,EACN,MAAM,EACN,SAAS,EACT,eAAe,EACf,eAAe,EACf,UAAU,EACV,QAAQ,CACT,CAAA;;IACH,CAAC;IAaD,sBAAI,+BAAM;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,wCAAe;QAXnB;;;;;;;;;;WAUG;aACH;YACE,OAAO,IAAI,CAAC,IAAI,CAAC,eAAe,CAAA;QAClC,CAAC;QAED;;;;;;;;;WASG;aACH,UAAoB,KAAa;YAC/B,IAAI,CAAC,IAAI,CAAC,eAAe,GAAG,KAAK,CAAA;QACnC,CAAC;;;OAdA;IA2BD,sBAAI,wCAAe;QAXnB;;;;;;;;;;WAUG;aACH;YACE,OAAO,IAAI,CAAC,IAAI,CAAC,eAAe,CAAA;QAClC,CAAC;QAED;;;;;;;;;WASG;aACH,UAAoB,KAAa;YAC/B,IAAI,CAAC,IAAI,CAAC,eAAe,GAAG,KAAK,CAAA;QACnC,CAAC;;;OAdA;IA6BD,sBAAI,+BAAM;QAbV;;;;;;;;;;;;WAYG;aACH;YACE,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,CAAA;QACzB,CAAC;QAED;;;;;;;;;WASG;aACH,UAAW,KAAuB;YAChC,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,KAAK,CAAA;QAC1B,CAAC;;;OAdA;IA2BD,sBAAI,yCAAgB;QAXpB;;;;;;;;;;WAUG;aACH;YACE,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAA;QACtB,CAAC;;;OAAA;IAUD,sBAAI,+BAAM;QARV;;;;;;;WAOG;aACH;YACE,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,CAAA;QACzB,CAAC;;;OAAA;IAED;;;;;;;;;;;;;OAaG;IACH,0BAAI,GAAJ,UAAK,QAAsB;QACzB,OAAO,QAAQ,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,CAAA;IAC1D,CAAC;IACH,kBAAC;AAAD,CAAC,AAlOD,CAAiC,SAAS,GAkOzC"}
|