@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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AcDbXline.js","sourceRoot":"","sources":["../../src/entity/AcDbXline.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EACL,SAAS,EACT,WAAW,EACX,YAAY,EACb,MAAM,4BAA4B,CAAA;AAGnC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAEvC
|
|
1
|
+
{"version":3,"file":"AcDbXline.js","sourceRoot":"","sources":["../../src/entity/AcDbXline.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EACL,SAAS,EACT,WAAW,EACX,YAAY,EACb,MAAM,4BAA4B,CAAA;AAGnC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAEvC;;;;;;;;;;;;;;;;;;GAkBG;AACH;IAA+B,6BAAS;IAMtC;;;;;;;;;;;;OAYG;IACH;QACE,YAAA,MAAK,WAAE,SAAA;QACP,KAAI,CAAC,UAAU,GAAG,IAAI,WAAW,EAAE,CAAA;QACnC,KAAI,CAAC,QAAQ,GAAG,IAAI,YAAY,EAAE,CAAA;;IACpC,CAAC;IAgBD,s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B,IAAM,MAAM,GAAkB,EAAE,CAAA;QAChC,MAAM,CAAC,IAAI,CACT,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,CAAC,cAAc,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC,CACpE,CAAA;QACD,MAAM,CAAC,IAAI,CACT,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC,CACnE,CAAA;QACD,OAAO,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,IAAI,CAAC,SAAS,CAAC,CAAA;IAC/C,CAAC;IACH,gBAAC;AAAD,CAAC,AA1KD,CAA+B,SAAS,GA0KvC"}
|
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
import { AcGeBox3d, AcGePoint3d, AcGePointLike } from '@mlightcad/geometry-engine';
|
|
2
2
|
import { AcDbDimension } from './AcDbDimension';
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Represents a three-point angular dimension entity in AutoCAD.
|
|
5
|
+
*
|
|
6
|
+
* This dimension type measures the angle between two lines or edges by defining three points:
|
|
7
|
+
* a center point and two points that define the lines or edges being measured. The dimension
|
|
8
|
+
* displays the angle value and typically includes extension lines, dimension lines, and arrows.
|
|
9
|
+
*
|
|
10
|
+
* Three-point angular dimensions are commonly used to measure angles between non-parallel lines,
|
|
11
|
+
* angles of arcs, or any angular measurement that requires three reference points.
|
|
5
12
|
*/
|
|
6
13
|
export declare class AcDb3PointAngularDimension extends AcDbDimension {
|
|
7
14
|
private _arcPoint;
|
|
@@ -9,36 +16,73 @@ export declare class AcDb3PointAngularDimension extends AcDbDimension {
|
|
|
9
16
|
private _xLine1Point;
|
|
10
17
|
private _xLine2Point;
|
|
11
18
|
/**
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* @param
|
|
15
|
-
*
|
|
16
|
-
* @param
|
|
17
|
-
*
|
|
18
|
-
* @param
|
|
19
|
+
* Creates a new three-point angular dimension.
|
|
20
|
+
*
|
|
21
|
+
* @param centerPoint - The center point of the angle being measured. This is typically
|
|
22
|
+
* the vertex where the two lines or edges meet
|
|
23
|
+
* @param xLine1Point - The first extension line end point. This defines one of the
|
|
24
|
+
* lines or edges being measured
|
|
25
|
+
* @param xLine2Point - The second extension line end point. This defines the other
|
|
26
|
+
* line or edge being measured
|
|
27
|
+
* @param arcPoint - A point on the arc that represents the angle being measured.
|
|
28
|
+
* This point helps determine the direction and extent of the angle
|
|
29
|
+
* @param dimText - Optional custom dimension text to display instead of the calculated
|
|
30
|
+
* angle value. If null, the calculated angle will be displayed
|
|
31
|
+
* @param dimStyle - Optional name of the dimension style table record to use for
|
|
32
|
+
* formatting. If null, the current default style will be used
|
|
19
33
|
*/
|
|
20
34
|
constructor(centerPoint: AcGePointLike, xLine1Point: AcGePointLike, xLine2Point: AcGePointLike, arcPoint: AcGePointLike, dimText?: string | null, dimStyle?: string | null);
|
|
21
35
|
/**
|
|
22
|
-
*
|
|
36
|
+
* Gets or sets a point on the arc that represents the angle being measured.
|
|
37
|
+
*
|
|
38
|
+
* This point is used to determine the direction and extent of the angle measurement.
|
|
39
|
+
* It helps define which side of the angle should be measured and how the dimension
|
|
40
|
+
* arc should be drawn.
|
|
41
|
+
*
|
|
42
|
+
* @returns The arc point that defines the angle measurement
|
|
23
43
|
*/
|
|
24
44
|
get arcPoint(): AcGePoint3d;
|
|
25
45
|
set arcPoint(value: AcGePoint3d);
|
|
26
46
|
/**
|
|
27
|
-
*
|
|
47
|
+
* Gets or sets the center point of the angle being measured.
|
|
48
|
+
*
|
|
49
|
+
* The center point is the vertex where the two lines or edges meet. This point
|
|
50
|
+
* serves as the reference for measuring the angle between the two extension lines.
|
|
51
|
+
*
|
|
52
|
+
* @returns The center point of the angle
|
|
28
53
|
*/
|
|
29
54
|
get centerPoint(): AcGePoint3d;
|
|
30
55
|
set centerPoint(value: AcGePoint3d);
|
|
31
56
|
/**
|
|
32
|
-
*
|
|
57
|
+
* Gets or sets the first extension line end point.
|
|
58
|
+
*
|
|
59
|
+
* This point defines one of the lines or edges being measured. The extension line
|
|
60
|
+
* extends from this point to the center point, helping to clearly identify the
|
|
61
|
+
* first reference line for the angle measurement.
|
|
62
|
+
*
|
|
63
|
+
* @returns The first extension line end point
|
|
33
64
|
*/
|
|
34
65
|
get xLine1Point(): AcGePoint3d;
|
|
35
66
|
set xLine1Point(value: AcGePoint3d);
|
|
36
67
|
/**
|
|
37
|
-
*
|
|
68
|
+
* Gets or sets the second extension line end point.
|
|
69
|
+
*
|
|
70
|
+
* This point defines the other line or edge being measured. The extension line
|
|
71
|
+
* extends from this point to the center point, helping to clearly identify the
|
|
72
|
+
* second reference line for the angle measurement.
|
|
73
|
+
*
|
|
74
|
+
* @returns The second extension line end point
|
|
38
75
|
*/
|
|
39
76
|
get xLine2Point(): AcGePoint3d;
|
|
40
77
|
set xLine2Point(value: AcGePoint3d);
|
|
41
78
|
/**
|
|
79
|
+
* Gets the geometric extents (bounding box) of this dimension entity.
|
|
80
|
+
*
|
|
81
|
+
* The geometric extents define the minimum bounding box that completely contains
|
|
82
|
+
* the dimension entity, including all its components like extension lines,
|
|
83
|
+
* dimension lines, arrows, and text.
|
|
84
|
+
*
|
|
85
|
+
* @returns A 3D bounding box containing the dimension entity
|
|
42
86
|
* @inheritdoc
|
|
43
87
|
*/
|
|
44
88
|
get geometricExtents(): AcGeBox3d;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AcDb3PointAngularDimension.d.ts","sourceRoot":"","sources":["../../../src/entity/dimension/AcDb3PointAngularDimension.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,WAAW,EACX,aAAa,EACd,MAAM,4BAA4B,CAAA;AAEnC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAE/C
|
|
1
|
+
{"version":3,"file":"AcDb3PointAngularDimension.d.ts","sourceRoot":"","sources":["../../../src/entity/dimension/AcDb3PointAngularDimension.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,WAAW,EACX,aAAa,EACd,MAAM,4BAA4B,CAAA;AAEnC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAE/C;;;;;;;;;GASG;AACH,qBAAa,0BAA2B,SAAQ,aAAa;IAC3D,OAAO,CAAC,SAAS,CAAa;IAC9B,OAAO,CAAC,YAAY,CAAa;IACjC,OAAO,CAAC,YAAY,CAAa;IACjC,OAAO,CAAC,YAAY,CAAa;IAEjC;;;;;;;;;;;;;;;OAeG;gBAED,WAAW,EAAE,aAAa,EAC1B,WAAW,EAAE,aAAa,EAC1B,WAAW,EAAE,aAAa,EAC1B,QAAQ,EAAE,aAAa,EACvB,OAAO,GAAE,MAAM,GAAG,IAAW,EAC7B,QAAQ,GAAE,MAAM,GAAG,IAAW;IAahC;;;;;;;;OAQG;IACH,IAAI,QAAQ,IAGQ,WAAW,CAD9B;IACD,IAAI,QAAQ,CAAC,KAAK,EAAE,WAAW,EAE9B;IAED;;;;;;;OAOG;IACH,IAAI,WAAW,IAGQ,WAAW,CADjC;IACD,IAAI,WAAW,CAAC,KAAK,EAAE,WAAW,EAEjC;IAED;;;;;;;;OAQG;IACH,IAAI,WAAW,IAGQ,WAAW,CADjC;IACD,IAAI,WAAW,CAAC,KAAK,EAAE,WAAW,EAEjC;IAED;;;;;;;;OAQG;IACH,IAAI,WAAW,IAGQ,WAAW,CADjC;IACD,IAAI,WAAW,CAAC,KAAK,EAAE,WAAW,EAEjC;IAED;;;;;;;;;OASG;IACH,IAAI,gBAAgB,cAGnB;CACF"}
|
|
@@ -16,18 +16,32 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
16
16
|
import { AcGeBox3d, AcGePoint3d } from '@mlightcad/geometry-engine';
|
|
17
17
|
import { AcDbDimension } from './AcDbDimension';
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Represents a three-point angular dimension entity in AutoCAD.
|
|
20
|
+
*
|
|
21
|
+
* This dimension type measures the angle between two lines or edges by defining three points:
|
|
22
|
+
* a center point and two points that define the lines or edges being measured. The dimension
|
|
23
|
+
* displays the angle value and typically includes extension lines, dimension lines, and arrows.
|
|
24
|
+
*
|
|
25
|
+
* Three-point angular dimensions are commonly used to measure angles between non-parallel lines,
|
|
26
|
+
* angles of arcs, or any angular measurement that requires three reference points.
|
|
20
27
|
*/
|
|
21
28
|
var AcDb3PointAngularDimension = /** @class */ (function (_super) {
|
|
22
29
|
__extends(AcDb3PointAngularDimension, _super);
|
|
23
30
|
/**
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
* @param
|
|
27
|
-
*
|
|
28
|
-
* @param
|
|
29
|
-
*
|
|
30
|
-
* @param
|
|
31
|
+
* Creates a new three-point angular dimension.
|
|
32
|
+
*
|
|
33
|
+
* @param centerPoint - The center point of the angle being measured. This is typically
|
|
34
|
+
* the vertex where the two lines or edges meet
|
|
35
|
+
* @param xLine1Point - The first extension line end point. This defines one of the
|
|
36
|
+
* lines or edges being measured
|
|
37
|
+
* @param xLine2Point - The second extension line end point. This defines the other
|
|
38
|
+
* line or edge being measured
|
|
39
|
+
* @param arcPoint - A point on the arc that represents the angle being measured.
|
|
40
|
+
* This point helps determine the direction and extent of the angle
|
|
41
|
+
* @param dimText - Optional custom dimension text to display instead of the calculated
|
|
42
|
+
* angle value. If null, the calculated angle 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
|
|
31
45
|
*/
|
|
32
46
|
function AcDb3PointAngularDimension(centerPoint, xLine1Point, xLine2Point, arcPoint, dimText, dimStyle) {
|
|
33
47
|
if (dimText === void 0) { dimText = null; }
|
|
@@ -44,7 +58,13 @@ var AcDb3PointAngularDimension = /** @class */ (function (_super) {
|
|
|
44
58
|
}
|
|
45
59
|
Object.defineProperty(AcDb3PointAngularDimension.prototype, "arcPoint", {
|
|
46
60
|
/**
|
|
47
|
-
*
|
|
61
|
+
* Gets or sets a point on the arc that represents the angle being measured.
|
|
62
|
+
*
|
|
63
|
+
* This point is used to determine the direction and extent of the angle measurement.
|
|
64
|
+
* It helps define which side of the angle should be measured and how the dimension
|
|
65
|
+
* arc should be drawn.
|
|
66
|
+
*
|
|
67
|
+
* @returns The arc point that defines the angle measurement
|
|
48
68
|
*/
|
|
49
69
|
get: function () {
|
|
50
70
|
return this._arcPoint;
|
|
@@ -57,7 +77,12 @@ var AcDb3PointAngularDimension = /** @class */ (function (_super) {
|
|
|
57
77
|
});
|
|
58
78
|
Object.defineProperty(AcDb3PointAngularDimension.prototype, "centerPoint", {
|
|
59
79
|
/**
|
|
60
|
-
*
|
|
80
|
+
* Gets or sets the center point of the angle being measured.
|
|
81
|
+
*
|
|
82
|
+
* The center point is the vertex where the two lines or edges meet. This point
|
|
83
|
+
* serves as the reference for measuring the angle between the two extension lines.
|
|
84
|
+
*
|
|
85
|
+
* @returns The center point of the angle
|
|
61
86
|
*/
|
|
62
87
|
get: function () {
|
|
63
88
|
return this._centerPoint;
|
|
@@ -70,7 +95,13 @@ var AcDb3PointAngularDimension = /** @class */ (function (_super) {
|
|
|
70
95
|
});
|
|
71
96
|
Object.defineProperty(AcDb3PointAngularDimension.prototype, "xLine1Point", {
|
|
72
97
|
/**
|
|
73
|
-
*
|
|
98
|
+
* Gets or sets the first extension line end point.
|
|
99
|
+
*
|
|
100
|
+
* This point defines one of the lines or edges being measured. The extension line
|
|
101
|
+
* extends from this point to the center point, helping to clearly identify the
|
|
102
|
+
* first reference line for the angle measurement.
|
|
103
|
+
*
|
|
104
|
+
* @returns The first extension line end point
|
|
74
105
|
*/
|
|
75
106
|
get: function () {
|
|
76
107
|
return this._xLine1Point;
|
|
@@ -83,7 +114,13 @@ var AcDb3PointAngularDimension = /** @class */ (function (_super) {
|
|
|
83
114
|
});
|
|
84
115
|
Object.defineProperty(AcDb3PointAngularDimension.prototype, "xLine2Point", {
|
|
85
116
|
/**
|
|
86
|
-
*
|
|
117
|
+
* Gets or sets the second extension line end point.
|
|
118
|
+
*
|
|
119
|
+
* This point defines the other line or edge being measured. The extension line
|
|
120
|
+
* extends from this point to the center point, helping to clearly identify the
|
|
121
|
+
* second reference line for the angle measurement.
|
|
122
|
+
*
|
|
123
|
+
* @returns The second extension line end point
|
|
87
124
|
*/
|
|
88
125
|
get: function () {
|
|
89
126
|
return this._xLine2Point;
|
|
@@ -96,6 +133,13 @@ var AcDb3PointAngularDimension = /** @class */ (function (_super) {
|
|
|
96
133
|
});
|
|
97
134
|
Object.defineProperty(AcDb3PointAngularDimension.prototype, "geometricExtents", {
|
|
98
135
|
/**
|
|
136
|
+
* Gets the geometric extents (bounding box) of this dimension entity.
|
|
137
|
+
*
|
|
138
|
+
* The geometric extents define the minimum bounding box that completely contains
|
|
139
|
+
* the dimension entity, including all its components like extension lines,
|
|
140
|
+
* dimension lines, arrows, and text.
|
|
141
|
+
*
|
|
142
|
+
* @returns A 3D bounding box containing the dimension entity
|
|
99
143
|
* @inheritdoc
|
|
100
144
|
*/
|
|
101
145
|
get: function () {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AcDb3PointAngularDimension.js","sourceRoot":"","sources":["../../../src/entity/dimension/AcDb3PointAngularDimension.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EACL,SAAS,EACT,WAAW,EAEZ,MAAM,4BAA4B,CAAA;AAEnC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAE/C
|
|
1
|
+
{"version":3,"file":"AcDb3PointAngularDimension.js","sourceRoot":"","sources":["../../../src/entity/dimension/AcDb3PointAngularDimension.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EACL,SAAS,EACT,WAAW,EAEZ,MAAM,4BAA4B,CAAA;AAEnC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAE/C;;;;;;;;;GASG;AACH;IAAgD,8CAA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AAC;;;OAHA;IAcD,sBAAI,mDAAW;QATf;;;;;;;;WAQG;aACH;YACE,OAAO,IAAI,CAAC,YAAY,CAAA;QAC1B,CAAC;aACD,UAAgB,KAAkB;YAChC,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;QAC/B,CAAC;;;OAHA;IAeD,sBAAI,wDAAgB;QAVpB;;;;;;;;;WASG;aACH;YACE,kBAAkB;YAClB,OAAO,IAAI,SAAS,EAAE,CAAA;QACxB,CAAC;;;OAAA;IACH,iCAAC;AAAD,CAAC,AAtHD,CAAgD,aAAa,GAsH5D"}
|
|
@@ -1,52 +1,193 @@
|
|
|
1
1
|
import { AcGeBox3d, AcGeLine3d, AcGePoint3d, AcGePointLike } from '@mlightcad/geometry-engine';
|
|
2
2
|
import { AcDbDimension } from './AcDbDimension';
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
4
|
+
* Represents an aligned dimension entity in AutoCAD.
|
|
5
|
+
*
|
|
6
|
+
* An aligned dimension measures the distance between two points located anywhere in space.
|
|
7
|
+
* The dimension's normal vector must be perpendicular to the line between the two points.
|
|
8
|
+
* The two selected points are also used as the definition points for the start of the
|
|
9
|
+
* two dimension extension lines.
|
|
10
|
+
*
|
|
11
|
+
* Aligned dimensions are commonly used to measure distances that are not parallel to
|
|
12
|
+
* the X or Y axes, providing accurate measurements regardless of the orientation.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```typescript
|
|
16
|
+
* // Create an aligned dimension
|
|
17
|
+
* const alignedDim = new AcDbAlignedDimension(
|
|
18
|
+
* new AcGePoint3d(0, 0, 0), // First extension line point
|
|
19
|
+
* new AcGePoint3d(10, 5, 0), // Second extension line point
|
|
20
|
+
* new AcGePoint3d(5, 2.5, 0), // Dimension line point
|
|
21
|
+
* "10.0", // Dimension text
|
|
22
|
+
* "Standard" // Dimension style
|
|
23
|
+
* );
|
|
24
|
+
*
|
|
25
|
+
* // Access dimension properties
|
|
26
|
+
* console.log(`Dimension line point: ${alignedDim.dimLinePoint}`);
|
|
27
|
+
* console.log(`Extension line 1 point: ${alignedDim.xLine1Point}`);
|
|
28
|
+
* console.log(`Extension line 2 point: ${alignedDim.xLine2Point}`);
|
|
29
|
+
* ```
|
|
7
30
|
*/
|
|
8
31
|
export declare class AcDbAlignedDimension extends AcDbDimension {
|
|
32
|
+
/** The definition point that specifies where the dimension line will be */
|
|
9
33
|
private _dimLinePoint;
|
|
34
|
+
/** The start point for the first extension line */
|
|
10
35
|
private _xLine1Point;
|
|
36
|
+
/** The start point for the second extension line */
|
|
11
37
|
private _xLine2Point;
|
|
38
|
+
/** The extension line obliquing angle in radians */
|
|
12
39
|
private _oblique;
|
|
40
|
+
/** The dimension's rotation angle in radians */
|
|
13
41
|
private _rotation;
|
|
14
42
|
/**
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
* @param
|
|
21
|
-
* @param
|
|
22
|
-
* @param
|
|
43
|
+
* Creates a new aligned dimension entity.
|
|
44
|
+
*
|
|
45
|
+
* This constructor initializes an aligned dimension using the specified points.
|
|
46
|
+
* The extension line obliquing angle is set to 0.0 by default.
|
|
47
|
+
*
|
|
48
|
+
* @param xLine1Point - Start point (in WCS coordinates) of first extension line
|
|
49
|
+
* @param xLine2Point - Start point (in WCS coordinates) of second extension line
|
|
50
|
+
* @param dimLinePoint - Point (in WCS coordinates) on dimension line itself
|
|
51
|
+
* @param dimText - Text string to use as the dimension annotation (optional)
|
|
52
|
+
* @param dimStyle - String name of dimension style table record to use (optional)
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* ```typescript
|
|
56
|
+
* // Create an aligned dimension with default text and style
|
|
57
|
+
* const alignedDim = new AcDbAlignedDimension(
|
|
58
|
+
* new AcGePoint3d(0, 0, 0),
|
|
59
|
+
* new AcGePoint3d(10, 5, 0),
|
|
60
|
+
* new AcGePoint3d(5, 2.5, 0)
|
|
61
|
+
* );
|
|
62
|
+
*
|
|
63
|
+
* // Create an aligned dimension with custom text and style
|
|
64
|
+
* const alignedDim2 = new AcDbAlignedDimension(
|
|
65
|
+
* new AcGePoint3d(0, 0, 0),
|
|
66
|
+
* new AcGePoint3d(15, 10, 0),
|
|
67
|
+
* new AcGePoint3d(7.5, 5, 0),
|
|
68
|
+
* "15.0",
|
|
69
|
+
* "Architectural"
|
|
70
|
+
* );
|
|
71
|
+
* ```
|
|
23
72
|
*/
|
|
24
73
|
constructor(xLine1Point: AcGePointLike, xLine2Point: AcGePointLike, dimLinePoint: AcGePointLike, dimText?: string | null, dimStyle?: string | null);
|
|
25
74
|
/**
|
|
26
|
-
*
|
|
27
|
-
*
|
|
75
|
+
* Gets the definition point that specifies where the dimension line will be.
|
|
76
|
+
*
|
|
77
|
+
* This point will be somewhere on the dimension line and determines the position
|
|
78
|
+
* of the dimension text and arrows.
|
|
79
|
+
*
|
|
80
|
+
* @returns The dimension line point in WCS coordinates
|
|
81
|
+
*
|
|
82
|
+
* @example
|
|
83
|
+
* ```typescript
|
|
84
|
+
* const dimLinePoint = alignedDim.dimLinePoint;
|
|
85
|
+
* console.log(`Dimension line point: ${dimLinePoint.x}, ${dimLinePoint.y}, ${dimLinePoint.z}`);
|
|
86
|
+
* ```
|
|
28
87
|
*/
|
|
29
88
|
get dimLinePoint(): AcGePoint3d;
|
|
89
|
+
/**
|
|
90
|
+
* Sets the definition point that specifies where the dimension line will be.
|
|
91
|
+
*
|
|
92
|
+
* @param value - The new dimension line point
|
|
93
|
+
*
|
|
94
|
+
* @example
|
|
95
|
+
* ```typescript
|
|
96
|
+
* alignedDim.dimLinePoint = new AcGePoint3d(5, 2.5, 0);
|
|
97
|
+
* ```
|
|
98
|
+
*/
|
|
30
99
|
set dimLinePoint(value: AcGePoint3d);
|
|
31
100
|
/**
|
|
32
|
-
*
|
|
101
|
+
* Gets the start point for the first extension line of the dimension.
|
|
102
|
+
*
|
|
103
|
+
* @returns The first extension line point in WCS coordinates
|
|
104
|
+
*
|
|
105
|
+
* @example
|
|
106
|
+
* ```typescript
|
|
107
|
+
* const xLine1Point = alignedDim.xLine1Point;
|
|
108
|
+
* console.log(`Extension line 1 point: ${xLine1Point.x}, ${xLine1Point.y}, ${xLine1Point.z}`);
|
|
109
|
+
* ```
|
|
33
110
|
*/
|
|
34
111
|
get xLine1Point(): AcGePoint3d;
|
|
112
|
+
/**
|
|
113
|
+
* Sets the start point for the first extension line of the dimension.
|
|
114
|
+
*
|
|
115
|
+
* @param value - The new first extension line point
|
|
116
|
+
*
|
|
117
|
+
* @example
|
|
118
|
+
* ```typescript
|
|
119
|
+
* alignedDim.xLine1Point = new AcGePoint3d(0, 0, 0);
|
|
120
|
+
* ```
|
|
121
|
+
*/
|
|
35
122
|
set xLine1Point(value: AcGePoint3d);
|
|
36
123
|
/**
|
|
37
|
-
*
|
|
124
|
+
* Gets the start point for the second extension line of the dimension.
|
|
125
|
+
*
|
|
126
|
+
* @returns The second extension line point in WCS coordinates
|
|
127
|
+
*
|
|
128
|
+
* @example
|
|
129
|
+
* ```typescript
|
|
130
|
+
* const xLine2Point = alignedDim.xLine2Point;
|
|
131
|
+
* console.log(`Extension line 2 point: ${xLine2Point.x}, ${xLine2Point.y}, ${xLine2Point.z}`);
|
|
132
|
+
* ```
|
|
38
133
|
*/
|
|
39
134
|
get xLine2Point(): AcGePoint3d;
|
|
135
|
+
/**
|
|
136
|
+
* Sets the start point for the second extension line of the dimension.
|
|
137
|
+
*
|
|
138
|
+
* @param value - The new second extension line point
|
|
139
|
+
*
|
|
140
|
+
* @example
|
|
141
|
+
* ```typescript
|
|
142
|
+
* alignedDim.xLine2Point = new AcGePoint3d(10, 5, 0);
|
|
143
|
+
* ```
|
|
144
|
+
*/
|
|
40
145
|
set xLine2Point(value: AcGePoint3d);
|
|
41
146
|
/**
|
|
42
|
-
*
|
|
147
|
+
* Gets the dimension's rotation angle.
|
|
148
|
+
*
|
|
149
|
+
* @returns The rotation angle in radians
|
|
150
|
+
*
|
|
151
|
+
* @example
|
|
152
|
+
* ```typescript
|
|
153
|
+
* const rotation = alignedDim.rotation;
|
|
154
|
+
* console.log(`Rotation: ${rotation} radians (${rotation * 180 / Math.PI} degrees)`);
|
|
155
|
+
* ```
|
|
43
156
|
*/
|
|
44
157
|
get rotation(): number;
|
|
158
|
+
/**
|
|
159
|
+
* Sets the dimension's rotation angle.
|
|
160
|
+
*
|
|
161
|
+
* @param value - The new rotation angle in radians
|
|
162
|
+
*
|
|
163
|
+
* @example
|
|
164
|
+
* ```typescript
|
|
165
|
+
* alignedDim.rotation = Math.PI / 4; // 45 degrees
|
|
166
|
+
* ```
|
|
167
|
+
*/
|
|
45
168
|
set rotation(value: number);
|
|
46
169
|
/**
|
|
47
|
-
*
|
|
170
|
+
* Gets the extension line obliquing angle.
|
|
171
|
+
*
|
|
172
|
+
* @returns The obliquing angle in radians
|
|
173
|
+
*
|
|
174
|
+
* @example
|
|
175
|
+
* ```typescript
|
|
176
|
+
* const oblique = alignedDim.oblique;
|
|
177
|
+
* console.log(`Oblique angle: ${oblique} radians`);
|
|
178
|
+
* ```
|
|
48
179
|
*/
|
|
49
180
|
get oblique(): number;
|
|
181
|
+
/**
|
|
182
|
+
* Sets the extension line obliquing angle.
|
|
183
|
+
*
|
|
184
|
+
* @param value - The new obliquing angle in radians
|
|
185
|
+
*
|
|
186
|
+
* @example
|
|
187
|
+
* ```typescript
|
|
188
|
+
* alignedDim.oblique = Math.PI / 6; // 30 degrees
|
|
189
|
+
* ```
|
|
190
|
+
*/
|
|
50
191
|
set oblique(value: number);
|
|
51
192
|
/**
|
|
52
193
|
* @inheritdoc
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AcDbAlignedDimension.d.ts","sourceRoot":"","sources":["../../../src/entity/dimension/AcDbAlignedDimension.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,UAAU,EACV,WAAW,EACX,aAAa,EAEd,MA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