@mlightcad/data-model 1.1.1 → 1.1.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/dist/data-model.js +5490 -1022
- 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 +303 -33
- package/lib/database/AcDbDatabase.d.ts.map +1 -1
- package/lib/database/AcDbDatabase.js +223 -39
- package/lib/database/AcDbDatabase.js.map +1 -1
- package/lib/database/AcDbDatabaseConverter.d.ts +77 -12
- 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 +8 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AcDbLine.d.ts","sourceRoot":"","sources":["../../src/entity/AcDbLine.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EAET,YAAY,EACZ,WAAW,EACX,eAAe,EAChB,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAE3D,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAEvC
|
|
1
|
+
{"version":3,"file":"AcDbLine.d.ts","sourceRoot":"","sources":["../../src/entity/AcDbLine.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EAET,YAAY,EACZ,WAAW,EACX,eAAe,EAChB,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAE3D,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAEvC;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,qBAAa,QAAS,SAAQ,SAAS;IACrC,2CAA2C;IAC3C,OAAO,CAAC,IAAI,CAAY;IAExB;;;;;;;;;;;;;;;;OAgBG;gBACS,KAAK,EAAE,eAAe,EAAE,GAAG,EAAE,eAAe;IAKxD;;;;;;;;;;OAUG;IACH,IAAI,UAAU,IAAI,WAAW,CAE5B;IAED;;;;;;;;;OASG;IACH,IAAI,UAAU,CAAC,KAAK,EAAE,eAAe,EAEpC;IAED;;;;;;;;;;OAUG;IACH,IAAI,QAAQ,IAAI,WAAW,CAE1B;IAED;;;;;;;;;OASG;IACH,IAAI,QAAQ,CAAC,KAAK,EAAE,eAAe,EAElC;IAED;;;;;;;;;;;;OAYG;IACH,IAAI,QAAQ,IAAI,WAAW,CAE1B;IAED;;;;;;;;;;OAUG;IACH,IAAI,gBAAgB,IAAI,SAAS,CAEhC;IAED;;;;;;OAMG;IACH,IAAI,MAAM,IAAI,OAAO,CAEpB;IAED;;;;;;;;;;;;;OAaG;IACH,gBAAgB;IAQhB;;;;;;;;;;;;;;;;;;;OAmBG;IACH,iBAAiB,CACf,SAAS,EAAE,aAAa,EACxB,gBAAgB,EAAE,MAAM,EACxB,SAAS,EAAE,WAAW,EACtB,UAAU,EAAE,WAAW,EACvB,UAAU,EAAE,WAAW,EAAE;IAoC3B;;;;;;;;;;;;;;;OAeG;IACH,WAAW,CAAC,MAAM,EAAE,YAAY;IAKhC;;;;;;;;;;;;;OAaG;IACH,IAAI,CAAC,QAAQ,EAAE,YAAY;CAS5B"}
|
package/lib/entity/AcDbLine.js
CHANGED
|
@@ -17,14 +17,44 @@ import { AcGeLine3d, AcGePoint3d } from '@mlightcad/geometry-engine';
|
|
|
17
17
|
import { AcDbOsnapMode } from '../misc/AcDbOsnapMode';
|
|
18
18
|
import { AcDbCurve } from './AcDbCurve';
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
21
|
-
*
|
|
20
|
+
* Represents a line entity in AutoCAD.
|
|
21
|
+
*
|
|
22
|
+
* A line is a 3D geometric object defined by its start point and end point.
|
|
23
|
+
* Lines are fundamental drawing entities that can be used to create straight
|
|
24
|
+
* line segments in 2D or 3D space.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```typescript
|
|
28
|
+
* // Create a line from point (0,0,0) to point (10,10,0)
|
|
29
|
+
* const line = new AcDbLine(
|
|
30
|
+
* new AcGePoint3d(0, 0, 0),
|
|
31
|
+
* new AcGePoint3d(10, 10, 0)
|
|
32
|
+
* );
|
|
33
|
+
*
|
|
34
|
+
* // Access line properties
|
|
35
|
+
* console.log(`Start point: ${line.startPoint}`);
|
|
36
|
+
* console.log(`End point: ${line.endPoint}`);
|
|
37
|
+
* console.log(`Mid point: ${line.midPoint}`);
|
|
38
|
+
* ```
|
|
22
39
|
*/
|
|
23
40
|
var AcDbLine = /** @class */ (function (_super) {
|
|
24
41
|
__extends(AcDbLine, _super);
|
|
25
42
|
/**
|
|
26
|
-
*
|
|
27
|
-
*
|
|
43
|
+
* Creates a new line entity.
|
|
44
|
+
*
|
|
45
|
+
* This constructor initializes the line object with the specified start and end points.
|
|
46
|
+
* Both points must be in World Coordinate System (WCS) coordinates.
|
|
47
|
+
*
|
|
48
|
+
* @param start - The starting point of the line in WCS coordinates
|
|
49
|
+
* @param end - The ending point of the line in WCS coordinates
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* ```typescript
|
|
53
|
+
* const line = new AcDbLine(
|
|
54
|
+
* new AcGePoint3d(0, 0, 0),
|
|
55
|
+
* new AcGePoint3d(100, 50, 0)
|
|
56
|
+
* );
|
|
57
|
+
* ```
|
|
28
58
|
*/
|
|
29
59
|
function AcDbLine(start, end) {
|
|
30
60
|
var _this = _super.call(this) || this;
|
|
@@ -33,11 +63,29 @@ var AcDbLine = /** @class */ (function (_super) {
|
|
|
33
63
|
}
|
|
34
64
|
Object.defineProperty(AcDbLine.prototype, "startPoint", {
|
|
35
65
|
/**
|
|
36
|
-
*
|
|
66
|
+
* Gets the starting point of this line.
|
|
67
|
+
*
|
|
68
|
+
* @returns The starting point as a 3D point
|
|
69
|
+
*
|
|
70
|
+
* @example
|
|
71
|
+
* ```typescript
|
|
72
|
+
* const startPoint = line.startPoint;
|
|
73
|
+
* console.log(`Line starts at: ${startPoint.x}, ${startPoint.y}, ${startPoint.z}`);
|
|
74
|
+
* ```
|
|
37
75
|
*/
|
|
38
76
|
get: function () {
|
|
39
77
|
return this._geo.startPoint;
|
|
40
78
|
},
|
|
79
|
+
/**
|
|
80
|
+
* Sets the starting point of this line.
|
|
81
|
+
*
|
|
82
|
+
* @param value - The new starting point
|
|
83
|
+
*
|
|
84
|
+
* @example
|
|
85
|
+
* ```typescript
|
|
86
|
+
* line.startPoint = new AcGePoint3d(5, 5, 0);
|
|
87
|
+
* ```
|
|
88
|
+
*/
|
|
41
89
|
set: function (value) {
|
|
42
90
|
this._geo.startPoint = value;
|
|
43
91
|
},
|
|
@@ -46,11 +94,29 @@ var AcDbLine = /** @class */ (function (_super) {
|
|
|
46
94
|
});
|
|
47
95
|
Object.defineProperty(AcDbLine.prototype, "endPoint", {
|
|
48
96
|
/**
|
|
49
|
-
*
|
|
97
|
+
* Gets the ending point of this line.
|
|
98
|
+
*
|
|
99
|
+
* @returns The ending point as a 3D point
|
|
100
|
+
*
|
|
101
|
+
* @example
|
|
102
|
+
* ```typescript
|
|
103
|
+
* const endPoint = line.endPoint;
|
|
104
|
+
* console.log(`Line ends at: ${endPoint.x}, ${endPoint.y}, ${endPoint.z}`);
|
|
105
|
+
* ```
|
|
50
106
|
*/
|
|
51
107
|
get: function () {
|
|
52
108
|
return this._geo.endPoint;
|
|
53
109
|
},
|
|
110
|
+
/**
|
|
111
|
+
* Sets the ending point of this line.
|
|
112
|
+
*
|
|
113
|
+
* @param value - The new ending point
|
|
114
|
+
*
|
|
115
|
+
* @example
|
|
116
|
+
* ```typescript
|
|
117
|
+
* line.endPoint = new AcGePoint3d(15, 15, 0);
|
|
118
|
+
* ```
|
|
119
|
+
*/
|
|
54
120
|
set: function (value) {
|
|
55
121
|
this._geo.endPoint = value;
|
|
56
122
|
},
|
|
@@ -59,7 +125,17 @@ var AcDbLine = /** @class */ (function (_super) {
|
|
|
59
125
|
});
|
|
60
126
|
Object.defineProperty(AcDbLine.prototype, "midPoint", {
|
|
61
127
|
/**
|
|
62
|
-
*
|
|
128
|
+
* Gets the middle point of this line.
|
|
129
|
+
*
|
|
130
|
+
* The middle point is calculated as the midpoint between the start and end points.
|
|
131
|
+
*
|
|
132
|
+
* @returns The middle point as a 3D point
|
|
133
|
+
*
|
|
134
|
+
* @example
|
|
135
|
+
* ```typescript
|
|
136
|
+
* const midPoint = line.midPoint;
|
|
137
|
+
* console.log(`Line midpoint: ${midPoint.x}, ${midPoint.y}, ${midPoint.z}`);
|
|
138
|
+
* ```
|
|
63
139
|
*/
|
|
64
140
|
get: function () {
|
|
65
141
|
return this._geo.midPoint;
|
|
@@ -69,7 +145,15 @@ var AcDbLine = /** @class */ (function (_super) {
|
|
|
69
145
|
});
|
|
70
146
|
Object.defineProperty(AcDbLine.prototype, "geometricExtents", {
|
|
71
147
|
/**
|
|
72
|
-
*
|
|
148
|
+
* Gets the geometric extents (bounding box) of this line.
|
|
149
|
+
*
|
|
150
|
+
* @returns The bounding box that encompasses the entire line
|
|
151
|
+
*
|
|
152
|
+
* @example
|
|
153
|
+
* ```typescript
|
|
154
|
+
* const extents = line.geometricExtents;
|
|
155
|
+
* console.log(`Line bounds: ${extents.minPoint} to ${extents.maxPoint}`);
|
|
156
|
+
* ```
|
|
73
157
|
*/
|
|
74
158
|
get: function () {
|
|
75
159
|
return this._geo.box;
|
|
@@ -79,7 +163,11 @@ var AcDbLine = /** @class */ (function (_super) {
|
|
|
79
163
|
});
|
|
80
164
|
Object.defineProperty(AcDbLine.prototype, "closed", {
|
|
81
165
|
/**
|
|
82
|
-
*
|
|
166
|
+
* Gets whether this line is closed.
|
|
167
|
+
*
|
|
168
|
+
* Lines are always open entities, so this always returns false.
|
|
169
|
+
*
|
|
170
|
+
* @returns Always false for lines
|
|
83
171
|
*/
|
|
84
172
|
get: function () {
|
|
85
173
|
return false;
|
|
@@ -88,7 +176,18 @@ var AcDbLine = /** @class */ (function (_super) {
|
|
|
88
176
|
configurable: true
|
|
89
177
|
});
|
|
90
178
|
/**
|
|
91
|
-
*
|
|
179
|
+
* Gets the grip points for this line.
|
|
180
|
+
*
|
|
181
|
+
* Grip points are control points that can be used to modify the line.
|
|
182
|
+
* For a line, the grip points are the midpoint, start point, and end point.
|
|
183
|
+
*
|
|
184
|
+
* @returns Array of grip points (midpoint, start point, end point)
|
|
185
|
+
*
|
|
186
|
+
* @example
|
|
187
|
+
* ```typescript
|
|
188
|
+
* const gripPoints = line.subGetGripPoints();
|
|
189
|
+
* // gripPoints contains: [midPoint, startPoint, endPoint]
|
|
190
|
+
* ```
|
|
92
191
|
*/
|
|
93
192
|
AcDbLine.prototype.subGetGripPoints = function () {
|
|
94
193
|
var gripPoints = new Array();
|
|
@@ -98,7 +197,24 @@ var AcDbLine = /** @class */ (function (_super) {
|
|
|
98
197
|
return gripPoints;
|
|
99
198
|
};
|
|
100
199
|
/**
|
|
101
|
-
*
|
|
200
|
+
* Gets the object snap points for this line.
|
|
201
|
+
*
|
|
202
|
+
* Object snap points are precise points that can be used for positioning
|
|
203
|
+
* when drawing or editing. This method provides snap points based on the
|
|
204
|
+
* specified snap mode.
|
|
205
|
+
*
|
|
206
|
+
* @param osnapMode - The object snap mode (Endpoint, Midpoint, Nearest, Perpendicular, Tangent)
|
|
207
|
+
* @param _gsSelectionMark - The selection mark (unused)
|
|
208
|
+
* @param pickPoint - The point where the user picked
|
|
209
|
+
* @param _lastPoint - The last point (unused)
|
|
210
|
+
* @param snapPoints - Array to populate with snap points
|
|
211
|
+
*
|
|
212
|
+
* @example
|
|
213
|
+
* ```typescript
|
|
214
|
+
* const snapPoints: AcGePoint3d[] = [];
|
|
215
|
+
* line.subGetOsnapPoints(AcDbOsnapMode.EndPoint, 0, pickPoint, lastPoint, snapPoints);
|
|
216
|
+
* // snapPoints now contains the start and end points
|
|
217
|
+
* ```
|
|
102
218
|
*/
|
|
103
219
|
AcDbLine.prototype.subGetOsnapPoints = function (osnapMode, _gsSelectionMark, pickPoint, _lastPoint, snapPoints) {
|
|
104
220
|
var startPoint = this.startPoint;
|
|
@@ -134,14 +250,38 @@ var AcDbLine = /** @class */ (function (_super) {
|
|
|
134
250
|
}
|
|
135
251
|
};
|
|
136
252
|
/**
|
|
137
|
-
*
|
|
253
|
+
* Transforms this line by the specified matrix.
|
|
254
|
+
*
|
|
255
|
+
* This method applies a geometric transformation to the line, updating
|
|
256
|
+
* both the start and end points according to the transformation matrix.
|
|
257
|
+
*
|
|
258
|
+
* @param matrix - The transformation matrix to apply
|
|
259
|
+
* @returns This line after transformation
|
|
260
|
+
*
|
|
261
|
+
* @example
|
|
262
|
+
* ```typescript
|
|
263
|
+
* const translationMatrix = AcGeMatrix3d.translation(10, 0, 0);
|
|
264
|
+
* line.transformBy(translationMatrix);
|
|
265
|
+
* // Line is now translated 10 units in the X direction
|
|
266
|
+
* ```
|
|
138
267
|
*/
|
|
139
268
|
AcDbLine.prototype.transformBy = function (matrix) {
|
|
140
269
|
this._geo.transform(matrix);
|
|
141
270
|
return this;
|
|
142
271
|
};
|
|
143
272
|
/**
|
|
144
|
-
*
|
|
273
|
+
* Draws this line using the specified renderer.
|
|
274
|
+
*
|
|
275
|
+
* This method renders the line as a series of connected line segments
|
|
276
|
+
* using the line's current style properties.
|
|
277
|
+
*
|
|
278
|
+
* @param renderer - The renderer to use for drawing
|
|
279
|
+
* @returns The rendered line entity, or undefined if drawing failed
|
|
280
|
+
*
|
|
281
|
+
* @example
|
|
282
|
+
* ```typescript
|
|
283
|
+
* const renderedLine = line.draw(renderer);
|
|
284
|
+
* ```
|
|
145
285
|
*/
|
|
146
286
|
AcDbLine.prototype.draw = function (renderer) {
|
|
147
287
|
var start = this.startPoint;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AcDbLine.js","sourceRoot":"","sources":["../../src/entity/AcDbLine.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EAEL,UAAU,EAEV,WAAW,EAEZ,MAAM,4BAA4B,CAAA;AAGnC,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAEvC
|
|
1
|
+
{"version":3,"file":"AcDbLine.js","sourceRoot":"","sources":["../../src/entity/AcDbLine.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EAEL,UAAU,EAEV,WAAW,EAEZ,MAAM,4BAA4B,CAAA;AAGnC,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAEvC;;;;;;;;;;;;;;;;;;;;GAoBG;AACH;IAA8B,4BAAS;IAIrC;;;;;;;;;;;;;;;;OAgBG;IACH,kBAAY,KAAsB,EAAE,GAAoB;QACtD,YAAA,MAAK,WAAE,SAAA;QACP,KAAI,CAAC,IAAI,GAAG,IAAI,UAAU,CAAC,KAAK,EAAE,GAAG,CAAC,CAAA;;IACxC,CAAC;IAaD,sBAAI,gCAAU;QAXd;;;;;;;;;;WAUG;aACH;YACE,OAAO,IAAI,CAAC,IAAI,CAAC,UAAU,CAAA;QAC7B,CAAC;QAED;;;;;;;;;WASG;aACH,UAAe,KAAsB;YACnC,IAAI,CAAC,IAAI,CAAC,UAAU,GAAG,KAAK,CAAA;QAC9B,CAAC;;;OAdA;IA2BD,sBAAI,8BAAQ;QAXZ;;;;;;;;;;WAUG;aACH;YACE,OAAO,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAA;QAC3B,CAAC;QAED;;;;;;;;;WASG;aACH,UAAa,KAAsB;YACjC,IAAI,CAAC,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAA;QAC5B,CAAC;;;OAdA;IA6BD,sBAAI,8BAAQ;Q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cGiMTextFlowDirection } from '@mlightcad/graphic-interface';
|
|
4
4
|
import { AcDbEntity } from './AcDbEntity';
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Represents a multiline text (mtext) entity in AutoCAD.
|
|
7
|
+
*
|
|
8
|
+
* A multiline text entity is a 2D geometric object that displays formatted text
|
|
9
|
+
* with support for multiple lines, word wrapping, and rich text formatting.
|
|
10
|
+
* MText entities are more advanced than regular text entities and support
|
|
11
|
+
* features like background fills, line spacing, and attachment points.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```typescript
|
|
15
|
+
* // Create a multiline text entity
|
|
16
|
+
* const mtext = new AcDbMText();
|
|
17
|
+
* mtext.contents = "This is a\nmultiline text\nwith formatting";
|
|
18
|
+
* mtext.height = 2.5;
|
|
19
|
+
* mtext.width = 20;
|
|
20
|
+
* mtext.location = new AcGePoint3d(0, 0, 0);
|
|
21
|
+
* mtext.attachmentPoint = AcGiMTextAttachmentPoint.TopLeft;
|
|
22
|
+
*
|
|
23
|
+
* // Access mtext properties
|
|
24
|
+
* console.log(`Contents: ${mtext.contents}`);
|
|
25
|
+
* console.log(`Height: ${mtext.height}`);
|
|
26
|
+
* console.log(`Width: ${mtext.width}`);
|
|
27
|
+
* ```
|
|
7
28
|
*/
|
|
8
29
|
export declare class AcDbMText extends AcDbEntity {
|
|
30
|
+
/** The height of the text */
|
|
9
31
|
private _height;
|
|
32
|
+
/** The maximum width for word wrap formatting */
|
|
10
33
|
private _width;
|
|
34
|
+
/** The text contents */
|
|
11
35
|
private _contents;
|
|
36
|
+
/** The line spacing style */
|
|
12
37
|
private _lineSpacingStyle;
|
|
38
|
+
/** The line spacing factor */
|
|
13
39
|
private _lineSpacingFactor;
|
|
40
|
+
/** Whether background fill is enabled */
|
|
14
41
|
private _backgroundFill;
|
|
42
|
+
/** The background fill color */
|
|
15
43
|
private _backgroundFillColor;
|
|
44
|
+
/** The background scale factor */
|
|
16
45
|
private _backgroundScaleFactor;
|
|
46
|
+
/** The background fill transparency */
|
|
17
47
|
private _backgroundFillTransparency;
|
|
48
|
+
/** The rotation angle in radians */
|
|
18
49
|
private _rotation;
|
|
50
|
+
/** The text style name */
|
|
19
51
|
private _styleName;
|
|
52
|
+
/** The location point of the text */
|
|
20
53
|
private _location;
|
|
54
|
+
/** The attachment point for the text */
|
|
21
55
|
private _attachmentPoint;
|
|
56
|
+
/** The direction vector of the text */
|
|
22
57
|
private _direction;
|
|
58
|
+
/** The drawing direction of the text */
|
|
23
59
|
private _drawingDirection;
|
|
60
|
+
/**
|
|
61
|
+
* Creates a new multiline text entity.
|
|
62
|
+
*
|
|
63
|
+
* This constructor initializes an mtext entity with default values.
|
|
64
|
+
* The contents are empty, height and width are 0, and the location is at the origin.
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* ```typescript
|
|
68
|
+
* const mtext = new AcDbMText();
|
|
69
|
+
* mtext.contents = "Sample multiline text";
|
|
70
|
+
* mtext.height = 3.0;
|
|
71
|
+
* mtext.width = 15;
|
|
72
|
+
* ```
|
|
73
|
+
*/
|
|
24
74
|
constructor();
|
|
25
75
|
/**
|
|
26
|
-
*
|
|
27
|
-
*
|
|
76
|
+
* Gets the contents of the mtext object.
|
|
77
|
+
*
|
|
78
|
+
* This returns a string that contains the contents of the mtext object.
|
|
79
|
+
* Formatting data used for word wrap calculations is removed.
|
|
80
|
+
*
|
|
81
|
+
* @returns The text contents
|
|
82
|
+
*
|
|
83
|
+
* @example
|
|
84
|
+
* ```typescript
|
|
85
|
+
* const contents = mtext.contents;
|
|
86
|
+
* console.log(`Text contents: ${contents}`);
|
|
87
|
+
* ```
|
|
28
88
|
*/
|
|
29
89
|
get contents(): string;
|
|
90
|
+
/**
|
|
91
|
+
* Sets the contents of the mtext object.
|
|
92
|
+
*
|
|
93
|
+
* @param value - The new text contents
|
|
94
|
+
*
|
|
95
|
+
* @example
|
|
96
|
+
* ```typescript
|
|
97
|
+
* mtext.contents = "New multiline\ntext content";
|
|
98
|
+
* ```
|
|
99
|
+
*/
|
|
30
100
|
set contents(value: string);
|
|
31
101
|
/**
|
|
32
|
-
*
|
|
102
|
+
* Gets the height of the text.
|
|
103
|
+
*
|
|
104
|
+
* @returns The text height
|
|
105
|
+
*
|
|
106
|
+
* @example
|
|
107
|
+
* ```typescript
|
|
108
|
+
* const height = mtext.height;
|
|
109
|
+
* console.log(`Text height: ${height}`);
|
|
110
|
+
* ```
|
|
33
111
|
*/
|
|
34
112
|
get height(): number;
|
|
113
|
+
/**
|
|
114
|
+
* Sets the height of the text.
|
|
115
|
+
*
|
|
116
|
+
* @param value - The new text height
|
|
117
|
+
*
|
|
118
|
+
* @example
|
|
119
|
+
* ```typescript
|
|
120
|
+
* mtext.height = 5.0;
|
|
121
|
+
* ```
|
|
122
|
+
*/
|
|
35
123
|
set height(value: number);
|
|
36
124
|
/**
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
125
|
+
* Gets the maximum width setting used by the MText object for word wrap formatting.
|
|
126
|
+
*
|
|
127
|
+
* It is possible that none of the lines resulting from word wrap formatting will
|
|
128
|
+
* reach this width value. Words which exceed this width value will not be broken,
|
|
129
|
+
* but will extend beyond the given width.
|
|
130
|
+
*
|
|
131
|
+
* @returns The maximum width for word wrap
|
|
132
|
+
*
|
|
133
|
+
* @example
|
|
134
|
+
* ```typescript
|
|
135
|
+
* const width = mtext.width;
|
|
136
|
+
* console.log(`Text width: ${width}`);
|
|
137
|
+
* ```
|
|
40
138
|
*/
|
|
41
139
|
get width(): number;
|
|
140
|
+
/**
|
|
141
|
+
* Sets the maximum width setting used by the MText object for word wrap formatting.
|
|
142
|
+
*
|
|
143
|
+
* @param value - The new maximum width for word wrap
|
|
144
|
+
*
|
|
145
|
+
* @example
|
|
146
|
+
* ```typescript
|
|
147
|
+
* mtext.width = 25;
|
|
148
|
+
* ```
|
|
149
|
+
*/
|
|
42
150
|
set width(value: number);
|
|
43
151
|
/**
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
* axis
|
|
152
|
+
* Gets the rotation angle of the text.
|
|
153
|
+
*
|
|
154
|
+
* The rotation angle is relative to the X axis of the text's OCS, with positive
|
|
155
|
+
* angles going counterclockwise when looking down the Z axis toward the origin.
|
|
156
|
+
*
|
|
157
|
+
* @returns The rotation angle in radians
|
|
158
|
+
*
|
|
159
|
+
* @example
|
|
160
|
+
* ```typescript
|
|
161
|
+
* const rotation = mtext.rotation;
|
|
162
|
+
* console.log(`Rotation: ${rotation} radians (${rotation * 180 / Math.PI} degrees)`);
|
|
163
|
+
* ```
|
|
48
164
|
*/
|
|
49
165
|
get rotation(): number;
|
|
50
166
|
set rotation(value: number);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AcDbMText.d.ts","sourceRoot":"","sources":["../../src/entity/AcDbMText.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EAET,eAAe,EACf,YAAY,EACb,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAEL,YAAY,EAEb,MAAM,8BAA8B,CAAA;AACrC,OAAO,EACL,wBAAwB,EAExB,sBAAsB,EACvB,MAAM,8BAA8B,CAAA;AAErC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAEzC
|
|
1
|
+
{"version":3,"file":"AcDbMText.d.ts","sourceRoot":"","sources":["../../src/entity/AcDbMText.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EAET,eAAe,EACf,YAAY,EACb,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAEL,YAAY,EAEb,MAAM,8BAA8B,CAAA;AACrC,OAAO,EACL,wBAAwB,EAExB,sBAAsB,EACvB,MAAM,8BAA8B,CAAA;AAErC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAEzC;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,qBAAa,SAAU,SAAQ,UAAU;IACvC,6BAA6B;IAC7B,OAAO,CAAC,OAAO,CAAQ;IAC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,45 @@ import { AcGeBox3d, AcGePoint3d, AcGeVector3d } from '@mlightcad/geometry-engine
|
|
|
28
28
|
import { AcGiMTextAttachmentPoint, AcGiMTextFlowDirection } from '@mlightcad/graphic-interface';
|
|
29
29
|
import { AcDbEntity } from './AcDbEntity';
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Represents a multiline text (mtext) entity in AutoCAD.
|
|
32
|
+
*
|
|
33
|
+
* A multiline text entity is a 2D geometric object that displays formatted text
|
|
34
|
+
* with support for multiple lines, word wrapping, and rich text formatting.
|
|
35
|
+
* MText entities are more advanced than regular text entities and support
|
|
36
|
+
* features like background fills, line spacing, and attachment points.
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```typescript
|
|
40
|
+
* // Create a multiline text entity
|
|
41
|
+
* const mtext = new AcDbMText();
|
|
42
|
+
* mtext.contents = "This is a\nmultiline text\nwith formatting";
|
|
43
|
+
* mtext.height = 2.5;
|
|
44
|
+
* mtext.width = 20;
|
|
45
|
+
* mtext.location = new AcGePoint3d(0, 0, 0);
|
|
46
|
+
* mtext.attachmentPoint = AcGiMTextAttachmentPoint.TopLeft;
|
|
47
|
+
*
|
|
48
|
+
* // Access mtext properties
|
|
49
|
+
* console.log(`Contents: ${mtext.contents}`);
|
|
50
|
+
* console.log(`Height: ${mtext.height}`);
|
|
51
|
+
* console.log(`Width: ${mtext.width}`);
|
|
52
|
+
* ```
|
|
32
53
|
*/
|
|
33
54
|
var AcDbMText = /** @class */ (function (_super) {
|
|
34
55
|
__extends(AcDbMText, _super);
|
|
56
|
+
/**
|
|
57
|
+
* Creates a new multiline text entity.
|
|
58
|
+
*
|
|
59
|
+
* This constructor initializes an mtext entity with default values.
|
|
60
|
+
* The contents are empty, height and width are 0, and the location is at the origin.
|
|
61
|
+
*
|
|
62
|
+
* @example
|
|
63
|
+
* ```typescript
|
|
64
|
+
* const mtext = new AcDbMText();
|
|
65
|
+
* mtext.contents = "Sample multiline text";
|
|
66
|
+
* mtext.height = 3.0;
|
|
67
|
+
* mtext.width = 15;
|
|
68
|
+
* ```
|
|
69
|
+
*/
|
|
35
70
|
function AcDbMText() {
|
|
36
71
|
var _this = _super.call(this) || this;
|
|
37
72
|
_this._contents = '';
|
|
@@ -53,12 +88,32 @@ var AcDbMText = /** @class */ (function (_super) {
|
|
|
53
88
|
}
|
|
54
89
|
Object.defineProperty(AcDbMText.prototype, "contents", {
|
|
55
90
|
/**
|
|
56
|
-
*
|
|
57
|
-
*
|
|
91
|
+
* Gets the contents of the mtext object.
|
|
92
|
+
*
|
|
93
|
+
* This returns a string that contains the contents of the mtext object.
|
|
94
|
+
* Formatting data used for word wrap calculations is removed.
|
|
95
|
+
*
|
|
96
|
+
* @returns The text contents
|
|
97
|
+
*
|
|
98
|
+
* @example
|
|
99
|
+
* ```typescript
|
|
100
|
+
* const contents = mtext.contents;
|
|
101
|
+
* console.log(`Text contents: ${contents}`);
|
|
102
|
+
* ```
|
|
58
103
|
*/
|
|
59
104
|
get: function () {
|
|
60
105
|
return this._contents;
|
|
61
106
|
},
|
|
107
|
+
/**
|
|
108
|
+
* Sets the contents of the mtext object.
|
|
109
|
+
*
|
|
110
|
+
* @param value - The new text contents
|
|
111
|
+
*
|
|
112
|
+
* @example
|
|
113
|
+
* ```typescript
|
|
114
|
+
* mtext.contents = "New multiline\ntext content";
|
|
115
|
+
* ```
|
|
116
|
+
*/
|
|
62
117
|
set: function (value) {
|
|
63
118
|
this._contents = value;
|
|
64
119
|
},
|
|
@@ -67,11 +122,29 @@ var AcDbMText = /** @class */ (function (_super) {
|
|
|
67
122
|
});
|
|
68
123
|
Object.defineProperty(AcDbMText.prototype, "height", {
|
|
69
124
|
/**
|
|
70
|
-
*
|
|
125
|
+
* Gets the height of the text.
|
|
126
|
+
*
|
|
127
|
+
* @returns The text height
|
|
128
|
+
*
|
|
129
|
+
* @example
|
|
130
|
+
* ```typescript
|
|
131
|
+
* const height = mtext.height;
|
|
132
|
+
* console.log(`Text height: ${height}`);
|
|
133
|
+
* ```
|
|
71
134
|
*/
|
|
72
135
|
get: function () {
|
|
73
136
|
return this._height;
|
|
74
137
|
},
|
|
138
|
+
/**
|
|
139
|
+
* Sets the height of the text.
|
|
140
|
+
*
|
|
141
|
+
* @param value - The new text height
|
|
142
|
+
*
|
|
143
|
+
* @example
|
|
144
|
+
* ```typescript
|
|
145
|
+
* mtext.height = 5.0;
|
|
146
|
+
* ```
|
|
147
|
+
*/
|
|
75
148
|
set: function (value) {
|
|
76
149
|
this._height = value;
|
|
77
150
|
},
|
|
@@ -80,13 +153,33 @@ var AcDbMText = /** @class */ (function (_super) {
|
|
|
80
153
|
});
|
|
81
154
|
Object.defineProperty(AcDbMText.prototype, "width", {
|
|
82
155
|
/**
|
|
83
|
-
*
|
|
84
|
-
*
|
|
85
|
-
*
|
|
156
|
+
* Gets the maximum width setting used by the MText object for word wrap formatting.
|
|
157
|
+
*
|
|
158
|
+
* It is possible that none of the lines resulting from word wrap formatting will
|
|
159
|
+
* reach this width value. Words which exceed this width value will not be broken,
|
|
160
|
+
* but will extend beyond the given width.
|
|
161
|
+
*
|
|
162
|
+
* @returns The maximum width for word wrap
|
|
163
|
+
*
|
|
164
|
+
* @example
|
|
165
|
+
* ```typescript
|
|
166
|
+
* const width = mtext.width;
|
|
167
|
+
* console.log(`Text width: ${width}`);
|
|
168
|
+
* ```
|
|
86
169
|
*/
|
|
87
170
|
get: function () {
|
|
88
171
|
return this._width;
|
|
89
172
|
},
|
|
173
|
+
/**
|
|
174
|
+
* Sets the maximum width setting used by the MText object for word wrap formatting.
|
|
175
|
+
*
|
|
176
|
+
* @param value - The new maximum width for word wrap
|
|
177
|
+
*
|
|
178
|
+
* @example
|
|
179
|
+
* ```typescript
|
|
180
|
+
* mtext.width = 25;
|
|
181
|
+
* ```
|
|
182
|
+
*/
|
|
90
183
|
set: function (value) {
|
|
91
184
|
this._width = value;
|
|
92
185
|
},
|
|
@@ -95,10 +188,18 @@ var AcDbMText = /** @class */ (function (_super) {
|
|
|
95
188
|
});
|
|
96
189
|
Object.defineProperty(AcDbMText.prototype, "rotation", {
|
|
97
190
|
/**
|
|
98
|
-
*
|
|
99
|
-
*
|
|
100
|
-
*
|
|
101
|
-
* axis
|
|
191
|
+
* Gets the rotation angle of the text.
|
|
192
|
+
*
|
|
193
|
+
* The rotation angle is relative to the X axis of the text's OCS, with positive
|
|
194
|
+
* angles going counterclockwise when looking down the Z axis toward the origin.
|
|
195
|
+
*
|
|
196
|
+
* @returns The rotation angle in radians
|
|
197
|
+
*
|
|
198
|
+
* @example
|
|
199
|
+
* ```typescript
|
|
200
|
+
* const rotation = mtext.rotation;
|
|
201
|
+
* console.log(`Rotation: ${rotation} radians (${rotation * 180 / Math.PI} degrees)`);
|
|
202
|
+
* ```
|
|
102
203
|
*/
|
|
103
204
|
get: function () {
|
|
104
205
|
return this._rotation;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AcDbMText.js","sourceRoot":"","sources":["../../src/entity/AcDbMText.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EACL,SAAS,EACT,WAAW,EAEX,YAAY,EACb,MAAM,4BAA4B,CAAA;AAMnC,OAAO,EACL,wBAAwB,EAExB,sBAAsB,EACvB,MAAM,8BAA8B,CAAA;AAErC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAEzC
|
|
1
|
+
{"version":3,"file":"AcDbMText.js","sourceRoot":"","sources":["../../src/entity/AcDbMText.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EACL,SAAS,EACT,WAAW,EAEX,YAAY,EACb,MAAM,4BAA4B,CAAA;AAMnC,OAAO,EACL,wBAAwB,EAExB,sBAAsB,EACvB,MAAM,8BAA8B,CAAA;AAErC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAEzC;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH;IAA+B,6BAAU;IAgCv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