@mlightcad/data-model 1.3.0 → 1.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +4 -4
- package/dist/data-model.cjs +0 -5
- package/dist/data-model.js +0 -25305
- package/dist/dxf-parser-worker.js +0 -1669
- package/lib/base/AcDbHostApplicationServices.d.ts +0 -96
- package/lib/base/AcDbHostApplicationServices.d.ts.map +0 -1
- package/lib/base/AcDbHostApplicationServices.js +0 -118
- package/lib/base/AcDbHostApplicationServices.js.map +0 -1
- package/lib/base/AcDbObject.d.ts +0 -205
- package/lib/base/AcDbObject.d.ts.map +0 -1
- package/lib/base/AcDbObject.js +0 -236
- package/lib/base/AcDbObject.js.map +0 -1
- package/lib/base/index.d.ts +0 -3
- package/lib/base/index.d.ts.map +0 -1
- package/lib/base/index.js +0 -3
- package/lib/base/index.js.map +0 -1
- package/lib/converter/AcDbBatchProcessing.d.ts +0 -146
- package/lib/converter/AcDbBatchProcessing.d.ts.map +0 -1
- package/lib/converter/AcDbBatchProcessing.js +0 -272
- package/lib/converter/AcDbBatchProcessing.js.map +0 -1
- package/lib/converter/AcDbDxfConverter.d.ts +0 -272
- package/lib/converter/AcDbDxfConverter.d.ts.map +0 -1
- package/lib/converter/AcDbDxfConverter.js +0 -872
- package/lib/converter/AcDbDxfConverter.js.map +0 -1
- package/lib/converter/AcDbDxfParser.d.ts +0 -23
- package/lib/converter/AcDbDxfParser.d.ts.map +0 -1
- package/lib/converter/AcDbDxfParser.js +0 -83
- package/lib/converter/AcDbDxfParser.js.map +0 -1
- package/lib/converter/AcDbEntitiyConverter.d.ts +0 -159
- package/lib/converter/AcDbEntitiyConverter.d.ts.map +0 -1
- package/lib/converter/AcDbEntitiyConverter.js +0 -659
- package/lib/converter/AcDbEntitiyConverter.js.map +0 -1
- package/lib/converter/AcDbObjectConverter.d.ts +0 -61
- package/lib/converter/AcDbObjectConverter.d.ts.map +0 -1
- package/lib/converter/AcDbObjectConverter.js +0 -91
- package/lib/converter/AcDbObjectConverter.js.map +0 -1
- package/lib/converter/index.d.ts +0 -4
- package/lib/converter/index.d.ts.map +0 -1
- package/lib/converter/index.js +0 -4
- package/lib/converter/index.js.map +0 -1
- package/lib/converter/worker/AcDbBaseWorker.d.ts +0 -36
- package/lib/converter/worker/AcDbBaseWorker.d.ts.map +0 -1
- package/lib/converter/worker/AcDbBaseWorker.js +0 -93
- package/lib/converter/worker/AcDbBaseWorker.js.map +0 -1
- package/lib/converter/worker/AcDbDxfParserWorker.d.ts +0 -11
- package/lib/converter/worker/AcDbDxfParserWorker.d.ts.map +0 -1
- package/lib/converter/worker/AcDbDxfParserWorker.js +0 -75
- package/lib/converter/worker/AcDbDxfParserWorker.js.map +0 -1
- package/lib/converter/worker/AcDbWorkerManager.d.ts +0 -107
- package/lib/converter/worker/AcDbWorkerManager.d.ts.map +0 -1
- package/lib/converter/worker/AcDbWorkerManager.js +0 -360
- package/lib/converter/worker/AcDbWorkerManager.js.map +0 -1
- package/lib/converter/worker/index.d.ts +0 -3
- package/lib/converter/worker/index.d.ts.map +0 -1
- package/lib/converter/worker/index.js +0 -3
- package/lib/converter/worker/index.js.map +0 -1
- package/lib/database/AcDbBlockTable.d.ts +0 -56
- package/lib/database/AcDbBlockTable.d.ts.map +0 -1
- package/lib/database/AcDbBlockTable.js +0 -98
- package/lib/database/AcDbBlockTable.js.map +0 -1
- package/lib/database/AcDbBlockTableRecord.d.ts +0 -185
- package/lib/database/AcDbBlockTableRecord.d.ts.map +0 -1
- package/lib/database/AcDbBlockTableRecord.js +0 -261
- package/lib/database/AcDbBlockTableRecord.js.map +0 -1
- package/lib/database/AcDbDatabase.d.ts +0 -575
- package/lib/database/AcDbDatabase.d.ts.map +0 -1
- package/lib/database/AcDbDatabase.js +0 -833
- package/lib/database/AcDbDatabase.js.map +0 -1
- package/lib/database/AcDbDatabaseConverter.d.ts +0 -292
- package/lib/database/AcDbDatabaseConverter.d.ts.map +0 -1
- package/lib/database/AcDbDatabaseConverter.js +0 -447
- package/lib/database/AcDbDatabaseConverter.js.map +0 -1
- package/lib/database/AcDbDatabaseConverterManager.d.ts +0 -141
- package/lib/database/AcDbDatabaseConverterManager.d.ts.map +0 -1
- package/lib/database/AcDbDatabaseConverterManager.js +0 -173
- package/lib/database/AcDbDatabaseConverterManager.js.map +0 -1
- package/lib/database/AcDbDimStyleTable.d.ts +0 -31
- package/lib/database/AcDbDimStyleTable.d.ts.map +0 -1
- package/lib/database/AcDbDimStyleTable.js +0 -49
- package/lib/database/AcDbDimStyleTable.js.map +0 -1
- package/lib/database/AcDbDimStyleTableRecord.d.ts +0 -797
- package/lib/database/AcDbDimStyleTableRecord.d.ts.map +0 -1
- package/lib/database/AcDbDimStyleTableRecord.js +0 -1294
- package/lib/database/AcDbDimStyleTableRecord.js.map +0 -1
- package/lib/database/AcDbDwgVersion.d.ts +0 -32
- package/lib/database/AcDbDwgVersion.d.ts.map +0 -1
- package/lib/database/AcDbDwgVersion.js +0 -76
- package/lib/database/AcDbDwgVersion.js.map +0 -1
- package/lib/database/AcDbLayerTable.d.ts +0 -51
- package/lib/database/AcDbLayerTable.d.ts.map +0 -1
- package/lib/database/AcDbLayerTable.js +0 -92
- package/lib/database/AcDbLayerTable.js.map +0 -1
- package/lib/database/AcDbLayerTableRecord.d.ts +0 -278
- package/lib/database/AcDbLayerTableRecord.d.ts.map +0 -1
- package/lib/database/AcDbLayerTableRecord.js +0 -397
- package/lib/database/AcDbLayerTableRecord.js.map +0 -1
- package/lib/database/AcDbLinetypeTable.d.ts +0 -30
- package/lib/database/AcDbLinetypeTable.d.ts.map +0 -1
- package/lib/database/AcDbLinetypeTable.js +0 -48
- package/lib/database/AcDbLinetypeTable.js.map +0 -1
- package/lib/database/AcDbLinetypeTableRecord.d.ts +0 -79
- package/lib/database/AcDbLinetypeTableRecord.d.ts.map +0 -1
- package/lib/database/AcDbLinetypeTableRecord.js +0 -129
- package/lib/database/AcDbLinetypeTableRecord.js.map +0 -1
- package/lib/database/AcDbSymbolTable.d.ts +0 -199
- package/lib/database/AcDbSymbolTable.d.ts.map +0 -1
- package/lib/database/AcDbSymbolTable.js +0 -264
- package/lib/database/AcDbSymbolTable.js.map +0 -1
- package/lib/database/AcDbSymbolTableRecord.d.ts +0 -61
- package/lib/database/AcDbSymbolTableRecord.d.ts.map +0 -1
- package/lib/database/AcDbSymbolTableRecord.js +0 -82
- package/lib/database/AcDbSymbolTableRecord.js.map +0 -1
- package/lib/database/AcDbTextStyleTable.d.ts +0 -48
- package/lib/database/AcDbTextStyleTable.d.ts.map +0 -1
- package/lib/database/AcDbTextStyleTable.js +0 -112
- package/lib/database/AcDbTextStyleTable.js.map +0 -1
- package/lib/database/AcDbTextStyleTableRecord.d.ts +0 -179
- package/lib/database/AcDbTextStyleTableRecord.d.ts.map +0 -1
- package/lib/database/AcDbTextStyleTableRecord.js +0 -276
- package/lib/database/AcDbTextStyleTableRecord.js.map +0 -1
- package/lib/database/AcDbViewportTable.d.ts +0 -31
- package/lib/database/AcDbViewportTable.d.ts.map +0 -1
- package/lib/database/AcDbViewportTable.js +0 -49
- package/lib/database/AcDbViewportTable.js.map +0 -1
- package/lib/database/AcDbViewportTableRecord.d.ts +0 -154
- package/lib/database/AcDbViewportTableRecord.d.ts.map +0 -1
- package/lib/database/AcDbViewportTableRecord.js +0 -318
- package/lib/database/AcDbViewportTableRecord.js.map +0 -1
- package/lib/database/index.d.ts +0 -19
- package/lib/database/index.d.ts.map +0 -1
- package/lib/database/index.js +0 -19
- package/lib/database/index.js.map +0 -1
- package/lib/entity/AcDbArc.d.ts +0 -254
- package/lib/entity/AcDbArc.d.ts.map +0 -1
- package/lib/entity/AcDbArc.js +0 -340
- package/lib/entity/AcDbArc.js.map +0 -1
- package/lib/entity/AcDbBlockReference.d.ts +0 -190
- package/lib/entity/AcDbBlockReference.d.ts.map +0 -1
- package/lib/entity/AcDbBlockReference.js +0 -302
- package/lib/entity/AcDbBlockReference.js.map +0 -1
- package/lib/entity/AcDbCircle.d.ts +0 -186
- package/lib/entity/AcDbCircle.d.ts.map +0 -1
- package/lib/entity/AcDbCircle.js +0 -249
- package/lib/entity/AcDbCircle.js.map +0 -1
- package/lib/entity/AcDbCurve.d.ts +0 -42
- package/lib/entity/AcDbCurve.d.ts.map +0 -1
- package/lib/entity/AcDbCurve.js +0 -44
- package/lib/entity/AcDbCurve.js.map +0 -1
- package/lib/entity/AcDbEllipse.d.ts +0 -207
- package/lib/entity/AcDbEllipse.d.ts.map +0 -1
- package/lib/entity/AcDbEllipse.js +0 -272
- package/lib/entity/AcDbEllipse.js.map +0 -1
- package/lib/entity/AcDbEntity.d.ts +0 -385
- package/lib/entity/AcDbEntity.d.ts.map +0 -1
- package/lib/entity/AcDbEntity.js +0 -561
- package/lib/entity/AcDbEntity.js.map +0 -1
- package/lib/entity/AcDbFace.d.ts +0 -151
- package/lib/entity/AcDbFace.d.ts.map +0 -1
- package/lib/entity/AcDbFace.js +0 -224
- package/lib/entity/AcDbFace.js.map +0 -1
- package/lib/entity/AcDbHatch.d.ts +0 -174
- package/lib/entity/AcDbHatch.d.ts.map +0 -1
- package/lib/entity/AcDbHatch.js +0 -250
- package/lib/entity/AcDbHatch.js.map +0 -1
- package/lib/entity/AcDbLeader.d.ts +0 -243
- package/lib/entity/AcDbLeader.d.ts.map +0 -1
- package/lib/entity/AcDbLeader.js +0 -358
- package/lib/entity/AcDbLeader.js.map +0 -1
- package/lib/entity/AcDbLine.d.ts +0 -198
- package/lib/entity/AcDbLine.d.ts.map +0 -1
- package/lib/entity/AcDbLine.js +0 -300
- package/lib/entity/AcDbLine.js.map +0 -1
- package/lib/entity/AcDbMText.d.ts +0 -248
- package/lib/entity/AcDbMText.d.ts.map +0 -1
- package/lib/entity/AcDbMText.js +0 -414
- package/lib/entity/AcDbMText.js.map +0 -1
- package/lib/entity/AcDbPoint.d.ts +0 -113
- package/lib/entity/AcDbPoint.d.ts.map +0 -1
- package/lib/entity/AcDbPoint.js +0 -155
- package/lib/entity/AcDbPoint.js.map +0 -1
- package/lib/entity/AcDbPolyline.d.ts +0 -221
- package/lib/entity/AcDbPolyline.d.ts.map +0 -1
- package/lib/entity/AcDbPolyline.js +0 -301
- package/lib/entity/AcDbPolyline.js.map +0 -1
- package/lib/entity/AcDbRasterImage.d.ts +0 -216
- package/lib/entity/AcDbRasterImage.d.ts.map +0 -1
- package/lib/entity/AcDbRasterImage.js +0 -451
- package/lib/entity/AcDbRasterImage.js.map +0 -1
- package/lib/entity/AcDbRay.d.ts +0 -150
- package/lib/entity/AcDbRay.d.ts.map +0 -1
- package/lib/entity/AcDbRay.js +0 -208
- package/lib/entity/AcDbRay.js.map +0 -1
- package/lib/entity/AcDbSpline.d.ts +0 -135
- package/lib/entity/AcDbSpline.d.ts.map +0 -1
- package/lib/entity/AcDbSpline.js +0 -142
- package/lib/entity/AcDbSpline.js.map +0 -1
- package/lib/entity/AcDbTable.d.ts +0 -260
- package/lib/entity/AcDbTable.d.ts.map +0 -1
- package/lib/entity/AcDbTable.js +0 -452
- package/lib/entity/AcDbTable.js.map +0 -1
- package/lib/entity/AcDbText.d.ts +0 -388
- package/lib/entity/AcDbText.d.ts.map +0 -1
- package/lib/entity/AcDbText.js +0 -523
- package/lib/entity/AcDbText.js.map +0 -1
- package/lib/entity/AcDbTrace.d.ts +0 -193
- package/lib/entity/AcDbTrace.d.ts.map +0 -1
- package/lib/entity/AcDbTrace.js +0 -271
- package/lib/entity/AcDbTrace.js.map +0 -1
- package/lib/entity/AcDbViewport.d.ts +0 -173
- package/lib/entity/AcDbViewport.d.ts.map +0 -1
- package/lib/entity/AcDbViewport.js +0 -295
- package/lib/entity/AcDbViewport.js.map +0 -1
- package/lib/entity/AcDbWipeout.d.ts +0 -39
- package/lib/entity/AcDbWipeout.d.ts.map +0 -1
- package/lib/entity/AcDbWipeout.js +0 -70
- package/lib/entity/AcDbWipeout.js.map +0 -1
- package/lib/entity/AcDbXline.d.ts +0 -151
- package/lib/entity/AcDbXline.d.ts.map +0 -1
- package/lib/entity/AcDbXline.js +0 -209
- package/lib/entity/AcDbXline.js.map +0 -1
- package/lib/entity/dimension/AcDb3PointAngularDimension.d.ts +0 -92
- package/lib/entity/dimension/AcDb3PointAngularDimension.d.ts.map +0 -1
- package/lib/entity/dimension/AcDb3PointAngularDimension.js +0 -157
- package/lib/entity/dimension/AcDb3PointAngularDimension.js.map +0 -1
- package/lib/entity/dimension/AcDbAlignedDimension.d.ts +0 -220
- package/lib/entity/dimension/AcDbAlignedDimension.d.ts.map +0 -1
- package/lib/entity/dimension/AcDbAlignedDimension.js +0 -341
- package/lib/entity/dimension/AcDbAlignedDimension.js.map +0 -1
- package/lib/entity/dimension/AcDbArcDimension.d.ts +0 -94
- package/lib/entity/dimension/AcDbArcDimension.d.ts.map +0 -1
- package/lib/entity/dimension/AcDbArcDimension.js +0 -159
- package/lib/entity/dimension/AcDbArcDimension.js.map +0 -1
- package/lib/entity/dimension/AcDbDiametricDimension.d.ts +0 -145
- package/lib/entity/dimension/AcDbDiametricDimension.d.ts.map +0 -1
- package/lib/entity/dimension/AcDbDiametricDimension.js +0 -275
- package/lib/entity/dimension/AcDbDiametricDimension.js.map +0 -1
- package/lib/entity/dimension/AcDbDimension.d.ts +0 -257
- package/lib/entity/dimension/AcDbDimension.d.ts.map +0 -1
- package/lib/entity/dimension/AcDbDimension.js +0 -466
- package/lib/entity/dimension/AcDbDimension.js.map +0 -1
- package/lib/entity/dimension/AcDbOrdinateDimension.d.ts +0 -78
- package/lib/entity/dimension/AcDbOrdinateDimension.d.ts.map +0 -1
- package/lib/entity/dimension/AcDbOrdinateDimension.js +0 -133
- package/lib/entity/dimension/AcDbOrdinateDimension.js.map +0 -1
- package/lib/entity/dimension/AcDbRadialDimension.d.ts +0 -214
- package/lib/entity/dimension/AcDbRadialDimension.d.ts.map +0 -1
- package/lib/entity/dimension/AcDbRadialDimension.js +0 -288
- package/lib/entity/dimension/AcDbRadialDimension.js.map +0 -1
- package/lib/entity/dimension/index.d.ts +0 -8
- package/lib/entity/dimension/index.d.ts.map +0 -1
- package/lib/entity/dimension/index.js +0 -8
- package/lib/entity/dimension/index.js.map +0 -1
- package/lib/entity/index.d.ts +0 -24
- package/lib/entity/index.d.ts.map +0 -1
- package/lib/entity/index.js +0 -24
- package/lib/entity/index.js.map +0 -1
- package/lib/index.d.ts +0 -10
- package/lib/index.d.ts.map +0 -1
- package/lib/index.js +0 -10
- package/lib/index.js.map +0 -1
- package/lib/misc/AcDbAngleUnits.d.ts +0 -20
- package/lib/misc/AcDbAngleUnits.d.ts.map +0 -1
- package/lib/misc/AcDbAngleUnits.js +0 -21
- package/lib/misc/AcDbAngleUnits.js.map +0 -1
- package/lib/misc/AcDbCodePage.d.ts +0 -50
- package/lib/misc/AcDbCodePage.d.ts.map +0 -1
- package/lib/misc/AcDbCodePage.js +0 -100
- package/lib/misc/AcDbCodePage.js.map +0 -1
- package/lib/misc/AcDbConstants.d.ts +0 -24
- package/lib/misc/AcDbConstants.d.ts.map +0 -1
- package/lib/misc/AcDbConstants.js +0 -24
- package/lib/misc/AcDbConstants.js.map +0 -1
- package/lib/misc/AcDbDimArrowType.d.ts +0 -89
- package/lib/misc/AcDbDimArrowType.d.ts.map +0 -1
- package/lib/misc/AcDbDimArrowType.js +0 -90
- package/lib/misc/AcDbDimArrowType.js.map +0 -1
- package/lib/misc/AcDbObjectIterator.d.ts +0 -55
- package/lib/misc/AcDbObjectIterator.d.ts.map +0 -1
- package/lib/misc/AcDbObjectIterator.js +0 -67
- package/lib/misc/AcDbObjectIterator.js.map +0 -1
- package/lib/misc/AcDbOsnapMode.d.ts +0 -51
- package/lib/misc/AcDbOsnapMode.d.ts.map +0 -1
- package/lib/misc/AcDbOsnapMode.js +0 -52
- package/lib/misc/AcDbOsnapMode.js.map +0 -1
- package/lib/misc/AcDbRenderingCache.d.ts +0 -141
- package/lib/misc/AcDbRenderingCache.d.ts.map +0 -1
- package/lib/misc/AcDbRenderingCache.js +0 -239
- package/lib/misc/AcDbRenderingCache.js.map +0 -1
- package/lib/misc/AcDbUnitsValue.d.ts +0 -101
- package/lib/misc/AcDbUnitsValue.d.ts.map +0 -1
- package/lib/misc/AcDbUnitsValue.js +0 -121
- package/lib/misc/AcDbUnitsValue.js.map +0 -1
- package/lib/misc/index.d.ts +0 -9
- package/lib/misc/index.d.ts.map +0 -1
- package/lib/misc/index.js +0 -9
- package/lib/misc/index.js.map +0 -1
- package/lib/object/AcDbDictionary.d.ts +0 -178
- package/lib/object/AcDbDictionary.d.ts.map +0 -1
- package/lib/object/AcDbDictionary.js +0 -264
- package/lib/object/AcDbDictionary.js.map +0 -1
- package/lib/object/AcDbRasterImageDef.d.ts +0 -54
- package/lib/object/AcDbRasterImageDef.d.ts.map +0 -1
- package/lib/object/AcDbRasterImageDef.js +0 -82
- package/lib/object/AcDbRasterImageDef.js.map +0 -1
- package/lib/object/index.d.ts +0 -4
- package/lib/object/index.d.ts.map +0 -1
- package/lib/object/index.js +0 -4
- package/lib/object/index.js.map +0 -1
- package/lib/object/layout/AcDbLayout.d.ts +0 -190
- package/lib/object/layout/AcDbLayout.d.ts.map +0 -1
- package/lib/object/layout/AcDbLayout.js +0 -253
- package/lib/object/layout/AcDbLayout.js.map +0 -1
- package/lib/object/layout/AcDbLayoutDictionary.d.ts +0 -47
- package/lib/object/layout/AcDbLayoutDictionary.d.ts.map +0 -1
- package/lib/object/layout/AcDbLayoutDictionary.js +0 -122
- package/lib/object/layout/AcDbLayoutDictionary.js.map +0 -1
- package/lib/object/layout/AcDbLayoutManager.d.ts +0 -188
- package/lib/object/layout/AcDbLayoutManager.d.ts.map +0 -1
- package/lib/object/layout/AcDbLayoutManager.js +0 -245
- package/lib/object/layout/AcDbLayoutManager.js.map +0 -1
- package/lib/object/layout/index.d.ts +0 -4
- package/lib/object/layout/index.d.ts.map +0 -1
- package/lib/object/layout/index.js +0 -4
- package/lib/object/layout/index.js.map +0 -1
|
@@ -1,133 +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 { AcGeBox3d, AcGePoint3d } from '@mlightcad/geometry-engine';
|
|
17
|
-
import { AcDbDimension } from './AcDbDimension';
|
|
18
|
-
/**
|
|
19
|
-
* Represents an ordinate dimension entity in AutoCAD.
|
|
20
|
-
*
|
|
21
|
-
* Ordinate dimensions measure the "horizontal" (X axis) or "vertical" (Y axis) distance
|
|
22
|
-
* from a specified origin point to some other specified point. They are commonly used
|
|
23
|
-
* in mechanical drawings, architectural plans, and other technical documentation where
|
|
24
|
-
* precise coordinate measurements are required.
|
|
25
|
-
*
|
|
26
|
-
* The dimension displays a leader line from the defining point to the leader end point,
|
|
27
|
-
* with the annotation text located appropriately near the end of the leader. Ordinate
|
|
28
|
-
* dimensions are particularly useful for dimensioning parts with multiple features that
|
|
29
|
-
* need to be positioned relative to a common reference point.
|
|
30
|
-
*/
|
|
31
|
-
var AcDbOrdinateDimension = /** @class */ (function (_super) {
|
|
32
|
-
__extends(AcDbOrdinateDimension, _super);
|
|
33
|
-
/**
|
|
34
|
-
* Creates a new ordinate dimension.
|
|
35
|
-
*
|
|
36
|
-
* @param definingPoint - The point where the ordinate leader should start. This is
|
|
37
|
-
* the point being measured relative to the dimension's origin
|
|
38
|
-
* @param leaderEndPoint - The point where the ordinate leader should end. This point
|
|
39
|
-
* is used for the dimension leader's endpoint and in text
|
|
40
|
-
* position calculations
|
|
41
|
-
* @param dimText - Optional custom dimension text to display instead of the calculated
|
|
42
|
-
* coordinate value. If null, the calculated coordinate will be displayed
|
|
43
|
-
* @param dimStyle - Optional name of the dimension style table record to use for
|
|
44
|
-
* formatting. If null, the current default style will be used
|
|
45
|
-
*/
|
|
46
|
-
function AcDbOrdinateDimension(definingPoint, leaderEndPoint, dimText, dimStyle) {
|
|
47
|
-
if (dimText === void 0) { dimText = null; }
|
|
48
|
-
if (dimStyle === void 0) { dimStyle = null; }
|
|
49
|
-
var _this = _super.call(this) || this;
|
|
50
|
-
_this._definingPoint = new AcGePoint3d().copy(definingPoint);
|
|
51
|
-
_this._leaderEndPoint = new AcGePoint3d().copy(leaderEndPoint);
|
|
52
|
-
_this.dimensionText = dimText;
|
|
53
|
-
// TODO: Set it to the current default dimStyle within the AutoCAD editor if dimStyle is null
|
|
54
|
-
_this.dimensionStyleName = dimStyle;
|
|
55
|
-
return _this;
|
|
56
|
-
}
|
|
57
|
-
Object.defineProperty(AcDbOrdinateDimension.prototype, "definingPoint", {
|
|
58
|
-
/**
|
|
59
|
-
* Gets or sets the ordinate point to be measured.
|
|
60
|
-
*
|
|
61
|
-
* This is the point (in WCS coordinates) that defines the location being measured.
|
|
62
|
-
* The dimension measures the X or Y distance between this point and the dimension's
|
|
63
|
-
* origin point, depending on the orientation of the ordinate dimension.
|
|
64
|
-
*
|
|
65
|
-
* @returns The defining point of the ordinate dimension
|
|
66
|
-
*/
|
|
67
|
-
get: function () {
|
|
68
|
-
return this._definingPoint;
|
|
69
|
-
},
|
|
70
|
-
set: function (value) {
|
|
71
|
-
this._definingPoint.copy(value);
|
|
72
|
-
},
|
|
73
|
-
enumerable: false,
|
|
74
|
-
configurable: true
|
|
75
|
-
});
|
|
76
|
-
Object.defineProperty(AcDbOrdinateDimension.prototype, "leaderEndPoint", {
|
|
77
|
-
/**
|
|
78
|
-
* Gets or sets the leader end point.
|
|
79
|
-
*
|
|
80
|
-
* This point is used as the dimension leader's endpoint and is used in the text
|
|
81
|
-
* position calculations. It determines where the leader line ends and where the
|
|
82
|
-
* dimension text is positioned relative to the leader.
|
|
83
|
-
*
|
|
84
|
-
* @returns The leader end point of the ordinate dimension
|
|
85
|
-
*/
|
|
86
|
-
get: function () {
|
|
87
|
-
return this._leaderEndPoint;
|
|
88
|
-
},
|
|
89
|
-
set: function (value) {
|
|
90
|
-
this._leaderEndPoint.copy(value);
|
|
91
|
-
},
|
|
92
|
-
enumerable: false,
|
|
93
|
-
configurable: true
|
|
94
|
-
});
|
|
95
|
-
Object.defineProperty(AcDbOrdinateDimension.prototype, "geometricExtents", {
|
|
96
|
-
/**
|
|
97
|
-
* Gets the geometric extents (bounding box) of this dimension entity.
|
|
98
|
-
*
|
|
99
|
-
* The geometric extents define the minimum bounding box that completely contains
|
|
100
|
-
* the dimension entity, including all its components like the leader line and text.
|
|
101
|
-
*
|
|
102
|
-
* @returns A 3D bounding box containing the dimension entity
|
|
103
|
-
* @inheritdoc
|
|
104
|
-
*/
|
|
105
|
-
get: function () {
|
|
106
|
-
// TODO: Finish it
|
|
107
|
-
return new AcGeBox3d();
|
|
108
|
-
},
|
|
109
|
-
enumerable: false,
|
|
110
|
-
configurable: true
|
|
111
|
-
});
|
|
112
|
-
Object.defineProperty(AcDbOrdinateDimension.prototype, "arrowLineCount", {
|
|
113
|
-
/**
|
|
114
|
-
* Gets the number of arrow lines for this dimension.
|
|
115
|
-
*
|
|
116
|
-
* Ordinate dimensions typically don't use arrows since they are coordinate-based
|
|
117
|
-
* measurements rather than distance measurements between two points.
|
|
118
|
-
*
|
|
119
|
-
* @returns The number of arrow lines (always 0 for ordinate dimensions)
|
|
120
|
-
* @inheritdoc
|
|
121
|
-
*/
|
|
122
|
-
get: function () {
|
|
123
|
-
return 0;
|
|
124
|
-
},
|
|
125
|
-
enumerable: false,
|
|
126
|
-
configurable: true
|
|
127
|
-
});
|
|
128
|
-
/** The entity type name */
|
|
129
|
-
AcDbOrdinateDimension.typeName = 'OrdinateDimension';
|
|
130
|
-
return AcDbOrdinateDimension;
|
|
131
|
-
}(AcDbDimension));
|
|
132
|
-
export { AcDbOrdinateDimension };
|
|
133
|
-
//# sourceMappingURL=AcDbOrdinateDimension.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AcDbOrdinateDimension.js","sourceRoot":"","sources":["../../../src/entity/dimension/AcDbOrdinateDimension.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EACL,SAAS,EACT,WAAW,EAEZ,MAAM,4BAA4B,CAAA;AAEnC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAE/C;;;;;;;;;;;;GAYG;AACH;IAA2C,yCAAa;IAOtD;;;;;;;;;;;;OAYG;IACH,+BACE,aAA8B,EAC9B,cAA+B,EAC/B,OAA6B,EAC7B,QAA8B;QAD9B,wBAAA,EAAA,cAA6B;QAC7B,yBAAA,EAAA,eAA8B;QAE9B,YAAA,MAAK,WAAE,SAAA;QACP,KAAI,CAAC,cAAc,GAAG,IAAI,WAAW,EAAE,CAAC,IAAI,CAAC,aAAa,CAAC,CAAA;QAC3D,KAAI,CAAC,eAAe,GAAG,IAAI,WAAW,EAAE,CAAC,IAAI,CAAC,cAAc,CAAC,CAAA;QAE7D,KAAI,CAAC,aAAa,GAAG,OAAO,CAAA;QAC5B,6FAA6F;QAC7F,KAAI,CAAC,kBAAkB,GAAG,QAAQ,CAAA;;IACpC,CAAC;IAWD,sBAAI,gDAAa;QATjB;;;;;;;;WAQG;aACH;YACE,OAAO,IAAI,CAAC,cAAc,CAAA;QAC5B,CAAC;aACD,UAAkB,KAAkB;YAClC,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;QACjC,CAAC;;;OAHA;IAcD,sBAAI,iDAAc;QATlB;;;;;;;;WAQG;aACH;YACE,OAAO,IAAI,CAAC,eAAe,CAAA;QAC7B,CAAC;aACD,UAAmB,KAAkB;YACnC,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;QAClC,CAAC;;;OAHA;IAcD,sBAAI,mDAAgB;QATpB;;;;;;;;WAQG;aACH;YACE,kBAAkB;YAClB,OAAO,IAAI,SAAS,EAAE,CAAA;QACxB,CAAC;;;OAAA;IAWD,sBAAc,iDAAc;QAT5B;;;;;;;;WAQG;aACH;YACE,OAAO,CAAC,CAAA;QACV,CAAC;;;OAAA;IA3FD,2BAA2B;IACX,8BAAQ,GAAW,mBAAmB,CAAA;IA2FxD,4BAAC;CAAA,AA7FD,CAA2C,aAAa,GA6FvD;SA7FY,qBAAqB"}
|
|
@@ -1,214 +0,0 @@
|
|
|
1
|
-
import { AcGeBox3d, AcGePoint3d, AcGePoint3dLike } from '@mlightcad/geometry-engine';
|
|
2
|
-
import { AcGiLineArrowStyle } from '@mlightcad/graphic-interface';
|
|
3
|
-
import { AcDbLine } from '../AcDbLine';
|
|
4
|
-
import { AcDbDimension } from './AcDbDimension';
|
|
5
|
-
/**
|
|
6
|
-
* Represents a radial dimension entity in AutoCAD.
|
|
7
|
-
*
|
|
8
|
-
* A radial dimension measures the radius of a curve (typically a circle or arc).
|
|
9
|
-
* This dimension type requires a center point and a point on the curve being dimensioned
|
|
10
|
-
* in order to draw the dimension line from the center point through the point on the curve.
|
|
11
|
-
*
|
|
12
|
-
* The dimension utilizes a "leader length" value to determine how far the dimension line
|
|
13
|
-
* extends out past the curve before doing a horizontal dogleg (if necessary) to the annotation text.
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* ```typescript
|
|
17
|
-
* // Create a radial dimension
|
|
18
|
-
* const radialDim = new AcDbRadialDimension(
|
|
19
|
-
* new AcGePoint3d(0, 0, 0), // Center point
|
|
20
|
-
* new AcGePoint3d(5, 0, 0), // Point on curve
|
|
21
|
-
* 2.0, // Leader length
|
|
22
|
-
* "5.0", // Dimension text
|
|
23
|
-
* "Standard" // Dimension style
|
|
24
|
-
* );
|
|
25
|
-
*
|
|
26
|
-
* // Access dimension properties
|
|
27
|
-
* console.log(`Center: ${radialDim.center}`);
|
|
28
|
-
* console.log(`Chord point: ${radialDim.chordPoint}`);
|
|
29
|
-
* console.log(`Leader length: ${radialDim.leaderLength}`);
|
|
30
|
-
* ```
|
|
31
|
-
*/
|
|
32
|
-
export declare class AcDbRadialDimension extends AcDbDimension {
|
|
33
|
-
/** The entity type name */
|
|
34
|
-
static typeName: string;
|
|
35
|
-
/** The center point of the curve being dimensioned */
|
|
36
|
-
private _center;
|
|
37
|
-
/** The point where the dimension line intersects the curve being dimensioned */
|
|
38
|
-
private _chordPoint;
|
|
39
|
-
/** The extension arc start angle in radians */
|
|
40
|
-
private _extArcStartAngle;
|
|
41
|
-
/** The extension arc end angle in radians */
|
|
42
|
-
private _extArcEndAngle;
|
|
43
|
-
/** The leader length distance */
|
|
44
|
-
private _leaderLength;
|
|
45
|
-
/**
|
|
46
|
-
* Creates a new radial dimension entity.
|
|
47
|
-
*
|
|
48
|
-
* This constructor initializes a radial dimension using the specified center point,
|
|
49
|
-
* chord point, and leader length. The dimension line behavior depends on whether
|
|
50
|
-
* the text is inside or outside the curve being dimensioned.
|
|
51
|
-
*
|
|
52
|
-
* - If the text is inside the curve, the dimension line is drawn from the center
|
|
53
|
-
* to the chordPoint, with a break for the annotation text.
|
|
54
|
-
* - If the text is outside the curve, the dimension line is drawn from the center,
|
|
55
|
-
* through the chordPoint and out the leaderLength distance past the chordPoint
|
|
56
|
-
* where it does a short horizontal dogleg (if appropriate) to the annotation text.
|
|
57
|
-
*
|
|
58
|
-
* @param center - Center point (in WCS coordinates) of curve being dimensioned
|
|
59
|
-
* @param chordPoint - Point (in WCS coordinates) on the curve being dimensioned
|
|
60
|
-
* @param leaderLength - Leader length distance
|
|
61
|
-
* @param dimText - Text string to use as the dimension annotation (optional)
|
|
62
|
-
* @param dimStyle - String name of dimension style table record to use (optional)
|
|
63
|
-
*
|
|
64
|
-
* @example
|
|
65
|
-
* ```typescript
|
|
66
|
-
* // Create a radial dimension with default text and style
|
|
67
|
-
* const radialDim = new AcDbRadialDimension(
|
|
68
|
-
* new AcGePoint3d(0, 0, 0),
|
|
69
|
-
* new AcGePoint3d(5, 0, 0),
|
|
70
|
-
* 2.0
|
|
71
|
-
* );
|
|
72
|
-
*
|
|
73
|
-
* // Create a radial dimension with custom text and style
|
|
74
|
-
* const radialDim2 = new AcDbRadialDimension(
|
|
75
|
-
* new AcGePoint3d(10, 10, 0),
|
|
76
|
-
* new AcGePoint3d(15, 10, 0),
|
|
77
|
-
* 3.0,
|
|
78
|
-
* "5.0",
|
|
79
|
-
* "Architectural"
|
|
80
|
-
* );
|
|
81
|
-
* ```
|
|
82
|
-
*/
|
|
83
|
-
constructor(center: AcGePoint3dLike, chordPoint: AcGePoint3dLike, leaderLength: number, dimText?: string | null, dimStyle?: string | null);
|
|
84
|
-
/**
|
|
85
|
-
* Gets the center point of the curve being dimensioned.
|
|
86
|
-
*
|
|
87
|
-
* This point is the primary definition point for this dimension type.
|
|
88
|
-
*
|
|
89
|
-
* @returns The center point in WCS coordinates
|
|
90
|
-
*
|
|
91
|
-
* @example
|
|
92
|
-
* ```typescript
|
|
93
|
-
* const center = radialDim.center;
|
|
94
|
-
* console.log(`Center point: ${center.x}, ${center.y}, ${center.z}`);
|
|
95
|
-
* ```
|
|
96
|
-
*/
|
|
97
|
-
get center(): AcGePoint3d;
|
|
98
|
-
/**
|
|
99
|
-
* Sets the center point of the curve being dimensioned.
|
|
100
|
-
*
|
|
101
|
-
* @param value - The new center point
|
|
102
|
-
*
|
|
103
|
-
* @example
|
|
104
|
-
* ```typescript
|
|
105
|
-
* radialDim.center = new AcGePoint3d(0, 0, 0);
|
|
106
|
-
* ```
|
|
107
|
-
*/
|
|
108
|
-
set center(value: AcGePoint3d);
|
|
109
|
-
/**
|
|
110
|
-
* Gets the point where the dimension line intersects the curve being dimensioned.
|
|
111
|
-
*
|
|
112
|
-
* @returns The chord point in WCS coordinates
|
|
113
|
-
*
|
|
114
|
-
* @example
|
|
115
|
-
* ```typescript
|
|
116
|
-
* const chordPoint = radialDim.chordPoint;
|
|
117
|
-
* console.log(`Chord point: ${chordPoint.x}, ${chordPoint.y}, ${chordPoint.z}`);
|
|
118
|
-
* ```
|
|
119
|
-
*/
|
|
120
|
-
get chordPoint(): AcGePoint3d;
|
|
121
|
-
/**
|
|
122
|
-
* Sets the point where the dimension line intersects the curve being dimensioned.
|
|
123
|
-
*
|
|
124
|
-
* @param value - The new chord point
|
|
125
|
-
*
|
|
126
|
-
* @example
|
|
127
|
-
* ```typescript
|
|
128
|
-
* radialDim.chordPoint = new AcGePoint3d(5, 0, 0);
|
|
129
|
-
* ```
|
|
130
|
-
*/
|
|
131
|
-
set chordPoint(value: AcGePoint3d);
|
|
132
|
-
/**
|
|
133
|
-
* Gets the extension arc start angle.
|
|
134
|
-
*
|
|
135
|
-
* @returns The extension arc start angle in radians
|
|
136
|
-
*
|
|
137
|
-
* @example
|
|
138
|
-
* ```typescript
|
|
139
|
-
* const startAngle = radialDim.extArcStartAngle;
|
|
140
|
-
* console.log(`Extension arc start angle: ${startAngle} radians`);
|
|
141
|
-
* ```
|
|
142
|
-
*/
|
|
143
|
-
get extArcStartAngle(): number;
|
|
144
|
-
/**
|
|
145
|
-
* Sets the extension arc start angle.
|
|
146
|
-
*
|
|
147
|
-
* @param value - The new extension arc start angle in radians
|
|
148
|
-
*
|
|
149
|
-
* @example
|
|
150
|
-
* ```typescript
|
|
151
|
-
* radialDim.extArcStartAngle = 0;
|
|
152
|
-
* ```
|
|
153
|
-
*/
|
|
154
|
-
set extArcStartAngle(value: number);
|
|
155
|
-
/**
|
|
156
|
-
* Gets the extension arc end angle.
|
|
157
|
-
*
|
|
158
|
-
* @returns The extension arc end angle in radians
|
|
159
|
-
*
|
|
160
|
-
* @example
|
|
161
|
-
* ```typescript
|
|
162
|
-
* const endAngle = radialDim.extArcEndAngle;
|
|
163
|
-
* console.log(`Extension arc end angle: ${endAngle} radians`);
|
|
164
|
-
* ```
|
|
165
|
-
*/
|
|
166
|
-
get extArcEndAngle(): number;
|
|
167
|
-
/**
|
|
168
|
-
* Sets the extension arc end angle.
|
|
169
|
-
*
|
|
170
|
-
* @param value - The new extension arc end angle in radians
|
|
171
|
-
*
|
|
172
|
-
* @example
|
|
173
|
-
* ```typescript
|
|
174
|
-
* radialDim.extArcEndAngle = Math.PI / 2;
|
|
175
|
-
* ```
|
|
176
|
-
*/
|
|
177
|
-
set extArcEndAngle(value: number);
|
|
178
|
-
/**
|
|
179
|
-
* Gets the leader length.
|
|
180
|
-
*
|
|
181
|
-
* The leader length is the distance from the chordPoint dimension definition point
|
|
182
|
-
* out to where the dimension does a horizontal dogleg to the annotation text
|
|
183
|
-
* (or stops if no dogleg is needed).
|
|
184
|
-
*
|
|
185
|
-
* @returns The leader length value
|
|
186
|
-
*
|
|
187
|
-
* @example
|
|
188
|
-
* ```typescript
|
|
189
|
-
* const leaderLength = radialDim.leaderLength;
|
|
190
|
-
* console.log(`Leader length: ${leaderLength}`);
|
|
191
|
-
* ```
|
|
192
|
-
*/
|
|
193
|
-
get leaderLength(): number;
|
|
194
|
-
/**
|
|
195
|
-
* Sets the leader length.
|
|
196
|
-
*
|
|
197
|
-
* @param value - The new leader length value
|
|
198
|
-
*
|
|
199
|
-
* @example
|
|
200
|
-
* ```typescript
|
|
201
|
-
* radialDim.leaderLength = 3.0;
|
|
202
|
-
* ```
|
|
203
|
-
*/
|
|
204
|
-
set leaderLenght(value: number);
|
|
205
|
-
/**
|
|
206
|
-
* @inheritdoc
|
|
207
|
-
*/
|
|
208
|
-
get geometricExtents(): AcGeBox3d;
|
|
209
|
-
/**
|
|
210
|
-
* @inheritdoc
|
|
211
|
-
*/
|
|
212
|
-
protected getLineArrowStyle(_line: AcDbLine): AcGiLineArrowStyle | undefined;
|
|
213
|
-
}
|
|
214
|
-
//# sourceMappingURL=AcDbRadialDimension.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AcDbRadialDimension.d.ts","sourceRoot":"","sources":["../../../src/entity/dimension/AcDbRadialDimension.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,WAAW,EACX,eAAe,EAChB,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AAEjE,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAE/C;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,qBAAa,mBAAoB,SAAQ,aAAa;IACpD,2BAA2B;IAC3B,OAAgB,QAAQ,EAAE,MAAM,CAAoB;IAEpD,sDAAsD;IACtD,OAAO,CAAC,OAAO,CAAa;IAC5B,gFAAgF;IAChF,OAAO,CAAC,WAAW,CAAa;IAChC,+CAA+C;IAC/C,OAAO,CAAC,iBAAiB,CAAQ;IACjC,6CAA6C;IAC7C,OAAO,CAAC,eAAe,CAAQ;IAC/B,iCAAiC;IACjC,OAAO,CAAC,aAAa,CAAQ;IAE7B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAqCG;gBAED,MAAM,EAAE,eAAe,EACvB,UAAU,EAAE,eAAe,EAC3B,YAAY,EAAE,MAAM,EACpB,OAAO,GAAE,MAAM,GAAG,IAAW,EAC7B,QAAQ,GAAE,MAAM,GAAG,IAAW;IAchC;;;;;;;;;;;;OAYG;IACH,IAAI,MAAM,IAcQ,WAAW,CAZ5B;IAED;;;;;;;;;OASG;IACH,IAAI,MAAM,CAAC,KAAK,EAAE,WAAW,EAE5B;IAED;;;;;;;;;;OAUG;IACH,IAAI,UAAU,IAcQ,WAAW,CAZhC;IAED;;;;;;;;;OASG;IACH,IAAI,UAAU,CAAC,KAAK,EAAE,WAAW,EAEhC;IAED;;;;;;;;;;OAUG;IACH,IAAI,gBAAgB,IAcQ,MAAM,CAZjC;IAED;;;;;;;;;OASG;IACH,IAAI,gBAAgB,CAAC,KAAK,EAAE,MAAM,EAEjC;IAED;;;;;;;;;;OAUG;IACH,IAAI,cAAc,IAcQ,MAAM,CAZ/B;IAED;;;;;;;;;OASG;IACH,IAAI,cAAc,CAAC,KAAK,EAAE,MAAM,EAE/B;IAED;;;;;;;;;;;;;;OAcG;IACH,IAAI,YAAY,WAEf;IAED;;;;;;;;;OASG;IACH,IAAI,YAAY,CAAC,KAAK,EAAE,MAAM,EAE7B;IAED;;OAEG;IACH,IAAI,gBAAgB,cAGnB;IAED;;OAEG;IACH,SAAS,CAAC,iBAAiB,CAAC,KAAK,EAAE,QAAQ,GAAG,kBAAkB,GAAG,SAAS;CAK7E"}
|
|
@@ -1,288 +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 { AcGeBox3d, AcGePoint3d } from '@mlightcad/geometry-engine';
|
|
17
|
-
import { AcDbDimension } from './AcDbDimension';
|
|
18
|
-
/**
|
|
19
|
-
* Represents a radial dimension entity in AutoCAD.
|
|
20
|
-
*
|
|
21
|
-
* A radial dimension measures the radius of a curve (typically a circle or arc).
|
|
22
|
-
* This dimension type requires a center point and a point on the curve being dimensioned
|
|
23
|
-
* in order to draw the dimension line from the center point through the point on the curve.
|
|
24
|
-
*
|
|
25
|
-
* The dimension utilizes a "leader length" value to determine how far the dimension line
|
|
26
|
-
* extends out past the curve before doing a horizontal dogleg (if necessary) to the annotation text.
|
|
27
|
-
*
|
|
28
|
-
* @example
|
|
29
|
-
* ```typescript
|
|
30
|
-
* // Create a radial dimension
|
|
31
|
-
* const radialDim = new AcDbRadialDimension(
|
|
32
|
-
* new AcGePoint3d(0, 0, 0), // Center point
|
|
33
|
-
* new AcGePoint3d(5, 0, 0), // Point on curve
|
|
34
|
-
* 2.0, // Leader length
|
|
35
|
-
* "5.0", // Dimension text
|
|
36
|
-
* "Standard" // Dimension style
|
|
37
|
-
* );
|
|
38
|
-
*
|
|
39
|
-
* // Access dimension properties
|
|
40
|
-
* console.log(`Center: ${radialDim.center}`);
|
|
41
|
-
* console.log(`Chord point: ${radialDim.chordPoint}`);
|
|
42
|
-
* console.log(`Leader length: ${radialDim.leaderLength}`);
|
|
43
|
-
* ```
|
|
44
|
-
*/
|
|
45
|
-
var AcDbRadialDimension = /** @class */ (function (_super) {
|
|
46
|
-
__extends(AcDbRadialDimension, _super);
|
|
47
|
-
/**
|
|
48
|
-
* Creates a new radial dimension entity.
|
|
49
|
-
*
|
|
50
|
-
* This constructor initializes a radial dimension using the specified center point,
|
|
51
|
-
* chord point, and leader length. The dimension line behavior depends on whether
|
|
52
|
-
* the text is inside or outside the curve being dimensioned.
|
|
53
|
-
*
|
|
54
|
-
* - If the text is inside the curve, the dimension line is drawn from the center
|
|
55
|
-
* to the chordPoint, with a break for the annotation text.
|
|
56
|
-
* - If the text is outside the curve, the dimension line is drawn from the center,
|
|
57
|
-
* through the chordPoint and out the leaderLength distance past the chordPoint
|
|
58
|
-
* where it does a short horizontal dogleg (if appropriate) to the annotation text.
|
|
59
|
-
*
|
|
60
|
-
* @param center - Center point (in WCS coordinates) of curve being dimensioned
|
|
61
|
-
* @param chordPoint - Point (in WCS coordinates) on the curve being dimensioned
|
|
62
|
-
* @param leaderLength - Leader length distance
|
|
63
|
-
* @param dimText - Text string to use as the dimension annotation (optional)
|
|
64
|
-
* @param dimStyle - String name of dimension style table record to use (optional)
|
|
65
|
-
*
|
|
66
|
-
* @example
|
|
67
|
-
* ```typescript
|
|
68
|
-
* // Create a radial dimension with default text and style
|
|
69
|
-
* const radialDim = new AcDbRadialDimension(
|
|
70
|
-
* new AcGePoint3d(0, 0, 0),
|
|
71
|
-
* new AcGePoint3d(5, 0, 0),
|
|
72
|
-
* 2.0
|
|
73
|
-
* );
|
|
74
|
-
*
|
|
75
|
-
* // Create a radial dimension with custom text and style
|
|
76
|
-
* const radialDim2 = new AcDbRadialDimension(
|
|
77
|
-
* new AcGePoint3d(10, 10, 0),
|
|
78
|
-
* new AcGePoint3d(15, 10, 0),
|
|
79
|
-
* 3.0,
|
|
80
|
-
* "5.0",
|
|
81
|
-
* "Architectural"
|
|
82
|
-
* );
|
|
83
|
-
* ```
|
|
84
|
-
*/
|
|
85
|
-
function AcDbRadialDimension(center, chordPoint, leaderLength, dimText, dimStyle) {
|
|
86
|
-
if (dimText === void 0) { dimText = null; }
|
|
87
|
-
if (dimStyle === void 0) { dimStyle = null; }
|
|
88
|
-
var _this = _super.call(this) || this;
|
|
89
|
-
_this._center = new AcGePoint3d().copy(center);
|
|
90
|
-
_this._chordPoint = new AcGePoint3d().copy(chordPoint);
|
|
91
|
-
_this._leaderLength = leaderLength;
|
|
92
|
-
_this._extArcStartAngle = 0;
|
|
93
|
-
_this._extArcEndAngle = 0;
|
|
94
|
-
_this.dimensionText = dimText;
|
|
95
|
-
// TODO: Set it to the current default dimStyle within the AutoCAD editor if dimStyle is null
|
|
96
|
-
_this.dimensionStyleName = dimStyle;
|
|
97
|
-
return _this;
|
|
98
|
-
}
|
|
99
|
-
Object.defineProperty(AcDbRadialDimension.prototype, "center", {
|
|
100
|
-
/**
|
|
101
|
-
* Gets the center point of the curve being dimensioned.
|
|
102
|
-
*
|
|
103
|
-
* This point is the primary definition point for this dimension type.
|
|
104
|
-
*
|
|
105
|
-
* @returns The center point in WCS coordinates
|
|
106
|
-
*
|
|
107
|
-
* @example
|
|
108
|
-
* ```typescript
|
|
109
|
-
* const center = radialDim.center;
|
|
110
|
-
* console.log(`Center point: ${center.x}, ${center.y}, ${center.z}`);
|
|
111
|
-
* ```
|
|
112
|
-
*/
|
|
113
|
-
get: function () {
|
|
114
|
-
return this._center;
|
|
115
|
-
},
|
|
116
|
-
/**
|
|
117
|
-
* Sets the center point of the curve being dimensioned.
|
|
118
|
-
*
|
|
119
|
-
* @param value - The new center point
|
|
120
|
-
*
|
|
121
|
-
* @example
|
|
122
|
-
* ```typescript
|
|
123
|
-
* radialDim.center = new AcGePoint3d(0, 0, 0);
|
|
124
|
-
* ```
|
|
125
|
-
*/
|
|
126
|
-
set: function (value) {
|
|
127
|
-
this._center.copy(value);
|
|
128
|
-
},
|
|
129
|
-
enumerable: false,
|
|
130
|
-
configurable: true
|
|
131
|
-
});
|
|
132
|
-
Object.defineProperty(AcDbRadialDimension.prototype, "chordPoint", {
|
|
133
|
-
/**
|
|
134
|
-
* Gets the point where the dimension line intersects the curve being dimensioned.
|
|
135
|
-
*
|
|
136
|
-
* @returns The chord point in WCS coordinates
|
|
137
|
-
*
|
|
138
|
-
* @example
|
|
139
|
-
* ```typescript
|
|
140
|
-
* const chordPoint = radialDim.chordPoint;
|
|
141
|
-
* console.log(`Chord point: ${chordPoint.x}, ${chordPoint.y}, ${chordPoint.z}`);
|
|
142
|
-
* ```
|
|
143
|
-
*/
|
|
144
|
-
get: function () {
|
|
145
|
-
return this._chordPoint;
|
|
146
|
-
},
|
|
147
|
-
/**
|
|
148
|
-
* Sets the point where the dimension line intersects the curve being dimensioned.
|
|
149
|
-
*
|
|
150
|
-
* @param value - The new chord point
|
|
151
|
-
*
|
|
152
|
-
* @example
|
|
153
|
-
* ```typescript
|
|
154
|
-
* radialDim.chordPoint = new AcGePoint3d(5, 0, 0);
|
|
155
|
-
* ```
|
|
156
|
-
*/
|
|
157
|
-
set: function (value) {
|
|
158
|
-
this._chordPoint.copy(value);
|
|
159
|
-
},
|
|
160
|
-
enumerable: false,
|
|
161
|
-
configurable: true
|
|
162
|
-
});
|
|
163
|
-
Object.defineProperty(AcDbRadialDimension.prototype, "extArcStartAngle", {
|
|
164
|
-
/**
|
|
165
|
-
* Gets the extension arc start angle.
|
|
166
|
-
*
|
|
167
|
-
* @returns The extension arc start angle in radians
|
|
168
|
-
*
|
|
169
|
-
* @example
|
|
170
|
-
* ```typescript
|
|
171
|
-
* const startAngle = radialDim.extArcStartAngle;
|
|
172
|
-
* console.log(`Extension arc start angle: ${startAngle} radians`);
|
|
173
|
-
* ```
|
|
174
|
-
*/
|
|
175
|
-
get: function () {
|
|
176
|
-
return this._extArcStartAngle;
|
|
177
|
-
},
|
|
178
|
-
/**
|
|
179
|
-
* Sets the extension arc start angle.
|
|
180
|
-
*
|
|
181
|
-
* @param value - The new extension arc start angle in radians
|
|
182
|
-
*
|
|
183
|
-
* @example
|
|
184
|
-
* ```typescript
|
|
185
|
-
* radialDim.extArcStartAngle = 0;
|
|
186
|
-
* ```
|
|
187
|
-
*/
|
|
188
|
-
set: function (value) {
|
|
189
|
-
this._extArcStartAngle = value;
|
|
190
|
-
},
|
|
191
|
-
enumerable: false,
|
|
192
|
-
configurable: true
|
|
193
|
-
});
|
|
194
|
-
Object.defineProperty(AcDbRadialDimension.prototype, "extArcEndAngle", {
|
|
195
|
-
/**
|
|
196
|
-
* Gets the extension arc end angle.
|
|
197
|
-
*
|
|
198
|
-
* @returns The extension arc end angle in radians
|
|
199
|
-
*
|
|
200
|
-
* @example
|
|
201
|
-
* ```typescript
|
|
202
|
-
* const endAngle = radialDim.extArcEndAngle;
|
|
203
|
-
* console.log(`Extension arc end angle: ${endAngle} radians`);
|
|
204
|
-
* ```
|
|
205
|
-
*/
|
|
206
|
-
get: function () {
|
|
207
|
-
return this._extArcEndAngle;
|
|
208
|
-
},
|
|
209
|
-
/**
|
|
210
|
-
* Sets the extension arc end angle.
|
|
211
|
-
*
|
|
212
|
-
* @param value - The new extension arc end angle in radians
|
|
213
|
-
*
|
|
214
|
-
* @example
|
|
215
|
-
* ```typescript
|
|
216
|
-
* radialDim.extArcEndAngle = Math.PI / 2;
|
|
217
|
-
* ```
|
|
218
|
-
*/
|
|
219
|
-
set: function (value) {
|
|
220
|
-
this._extArcEndAngle = value;
|
|
221
|
-
},
|
|
222
|
-
enumerable: false,
|
|
223
|
-
configurable: true
|
|
224
|
-
});
|
|
225
|
-
Object.defineProperty(AcDbRadialDimension.prototype, "leaderLength", {
|
|
226
|
-
/**
|
|
227
|
-
* Gets the leader length.
|
|
228
|
-
*
|
|
229
|
-
* The leader length is the distance from the chordPoint dimension definition point
|
|
230
|
-
* out to where the dimension does a horizontal dogleg to the annotation text
|
|
231
|
-
* (or stops if no dogleg is needed).
|
|
232
|
-
*
|
|
233
|
-
* @returns The leader length value
|
|
234
|
-
*
|
|
235
|
-
* @example
|
|
236
|
-
* ```typescript
|
|
237
|
-
* const leaderLength = radialDim.leaderLength;
|
|
238
|
-
* console.log(`Leader length: ${leaderLength}`);
|
|
239
|
-
* ```
|
|
240
|
-
*/
|
|
241
|
-
get: function () {
|
|
242
|
-
return this._leaderLength;
|
|
243
|
-
},
|
|
244
|
-
enumerable: false,
|
|
245
|
-
configurable: true
|
|
246
|
-
});
|
|
247
|
-
Object.defineProperty(AcDbRadialDimension.prototype, "leaderLenght", {
|
|
248
|
-
/**
|
|
249
|
-
* Sets the leader length.
|
|
250
|
-
*
|
|
251
|
-
* @param value - The new leader length value
|
|
252
|
-
*
|
|
253
|
-
* @example
|
|
254
|
-
* ```typescript
|
|
255
|
-
* radialDim.leaderLength = 3.0;
|
|
256
|
-
* ```
|
|
257
|
-
*/
|
|
258
|
-
set: function (value) {
|
|
259
|
-
this._leaderLength = value;
|
|
260
|
-
},
|
|
261
|
-
enumerable: false,
|
|
262
|
-
configurable: true
|
|
263
|
-
});
|
|
264
|
-
Object.defineProperty(AcDbRadialDimension.prototype, "geometricExtents", {
|
|
265
|
-
/**
|
|
266
|
-
* @inheritdoc
|
|
267
|
-
*/
|
|
268
|
-
get: function () {
|
|
269
|
-
// TODO: Finish it
|
|
270
|
-
return new AcGeBox3d();
|
|
271
|
-
},
|
|
272
|
-
enumerable: false,
|
|
273
|
-
configurable: true
|
|
274
|
-
});
|
|
275
|
-
/**
|
|
276
|
-
* @inheritdoc
|
|
277
|
-
*/
|
|
278
|
-
AcDbRadialDimension.prototype.getLineArrowStyle = function (_line) {
|
|
279
|
-
return {
|
|
280
|
-
secondArrow: this.secondArrowStyle
|
|
281
|
-
};
|
|
282
|
-
};
|
|
283
|
-
/** The entity type name */
|
|
284
|
-
AcDbRadialDimension.typeName = 'RadialDimension';
|
|
285
|
-
return AcDbRadialDimension;
|
|
286
|
-
}(AcDbDimension));
|
|
287
|
-
export { AcDbRadialDimension };
|
|
288
|
-
//# sourceMappingURL=AcDbRadialDimension.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AcDbRadialDimension.js","sourceRoot":"","sources":["../../../src/entity/dimension/AcDbRadialDimension.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EACL,SAAS,EACT,WAAW,EAEZ,MAAM,4BAA4B,CAAA;AAInC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAE/C;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH;IAAyC,uCAAa;IAepD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAqCG;IACH,6BACE,MAAuB,EACvB,UAA2B,EAC3B,YAAoB,EACpB,OAA6B,EAC7B,QAA8B;QAD9B,wBAAA,EAAA,cAA6B;QAC7B,yBAAA,EAAA,eAA8B;QAE9B,YAAA,MAAK,WAAE,SAAA;QACP,KAAI,CAAC,OAAO,GAAG,IAAI,WAAW,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QAC7C,KAAI,CAAC,WAAW,GAAG,IAAI,WAAW,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,CAAA;QACrD,KAAI,CAAC,aAAa,GAAG,YAAY,CAAA;QACjC,KAAI,CAAC,iBAAiB,GAAG,CAAC,CAAA;QAC1B,KAAI,CAAC,eAAe,GAAG,CAAC,CAAA;QAExB,KAAI,CAAC,aAAa,GAAG,OAAO,CAAA;QAC5B,6FAA6F;QAC7F,KAAI,CAAC,kBAAkB,GAAG,QAAQ,CAAA;;IACpC,CAAC;IAeD,sBAAI,uCAAM;QAbV;;;;;;;;;;;;WAYG;aACH;YACE,OAAO,IAAI,CAAC,OAAO,CAAA;QACrB,CAAC;QAED;;;;;;;;;WASG;aACH,UAAW,KAAkB;YAC3B,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;QAC1B,CAAC;;;OAdA;IA2BD,sBAAI,2CAAU;QAXd;;;;;;;;;;WAUG;aACH;YACE,OAAO,IAAI,CAAC,WAAW,CAAA;QACzB,CAAC;QAED;;;;;;;;;WASG;aACH,UAAe,KAAkB;YAC/B,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;QAC9B,CAAC;;;OAdA;IA2BD,sBAAI,iDAAgB;QAXpB;;;;;;;;;;WAUG;aACH;YACE,OAAO,IAAI,CAAC,iBAAiB,CAAA;QAC/B,CAAC;QAED;;;;;;;;;WASG;aACH,UAAqB,KAAa;YAChC,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAA;QAChC,CAAC;;;OAdA;IA2BD,sBAAI,+CAAc;QAXlB;;;;;;;;;;WAUG;aACH;YACE,OAAO,IAAI,CAAC,eAAe,CAAA;QAC7B,CAAC;QAED;;;;;;;;;WASG;aACH,UAAmB,KAAa;YAC9B,IAAI,CAAC,eAAe,GAAG,KAAK,CAAA;QAC9B,CAAC;;;OAdA;IA+BD,sBAAI,6CAAY;QAfhB;;;;;;;;;;;;;;WAcG;aACH;YACE,OAAO,IAAI,CAAC,aAAa,CAAA;QAC3B,CAAC;;;OAAA;IAYD,sBAAI,6CAAY;QAVhB;;;;;;;;;WASG;aACH,UAAiB,KAAa;YAC5B,IAAI,CAAC,aAAa,GAAG,KAAK,CAAA;QAC5B,CAAC;;;OAAA;IAKD,sBAAI,iDAAgB;QAHpB;;WAEG;aACH;YACE,kBAAkB;YAClB,OAAO,IAAI,SAAS,EAAE,CAAA;QACxB,CAAC;;;OAAA;IAED;;OAEG;IACO,+CAAiB,GAA3B,UAA4B,KAAe;QACzC,OAAO;YACL,WAAW,EAAE,IAAI,CAAC,gBAAgB;SACnC,CAAA;IACH,CAAC;IA7OD,2BAA2B;IACX,4BAAQ,GAAW,iBAAiB,CAAA;IA6OtD,0BAAC;CAAA,AA/OD,CAAyC,aAAa,GA+OrD;SA/OY,mBAAmB"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export * from './AcDb3PointAngularDimension';
|
|
2
|
-
export * from './AcDbAlignedDimension';
|
|
3
|
-
export * from './AcDbArcDimension';
|
|
4
|
-
export * from './AcDbDiametricDimension';
|
|
5
|
-
export * from './AcDbDimension';
|
|
6
|
-
export * from './AcDbOrdinateDimension';
|
|
7
|
-
export * from './AcDbRadialDimension';
|
|
8
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/entity/dimension/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAA;AAC5C,cAAc,wBAAwB,CAAA;AACtC,cAAc,oBAAoB,CAAA;AAClC,cAAc,0BAA0B,CAAA;AACxC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,yBAAyB,CAAA;AACvC,cAAc,uBAAuB,CAAA"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export * from './AcDb3PointAngularDimension';
|
|
2
|
-
export * from './AcDbAlignedDimension';
|
|
3
|
-
export * from './AcDbArcDimension';
|
|
4
|
-
export * from './AcDbDiametricDimension';
|
|
5
|
-
export * from './AcDbDimension';
|
|
6
|
-
export * from './AcDbOrdinateDimension';
|
|
7
|
-
export * from './AcDbRadialDimension';
|
|
8
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entity/dimension/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAA;AAC5C,cAAc,wBAAwB,CAAA;AACtC,cAAc,oBAAoB,CAAA;AAClC,cAAc,0BAA0B,CAAA;AACxC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,yBAAyB,CAAA;AACvC,cAAc,uBAAuB,CAAA"}
|