@mlightcad/data-model 1.3.0 → 1.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +4 -4
- package/dist/data-model.cjs +0 -5
- package/dist/data-model.js +0 -25305
- package/dist/dxf-parser-worker.js +0 -1669
- package/lib/base/AcDbHostApplicationServices.d.ts +0 -96
- package/lib/base/AcDbHostApplicationServices.d.ts.map +0 -1
- package/lib/base/AcDbHostApplicationServices.js +0 -118
- package/lib/base/AcDbHostApplicationServices.js.map +0 -1
- package/lib/base/AcDbObject.d.ts +0 -205
- package/lib/base/AcDbObject.d.ts.map +0 -1
- package/lib/base/AcDbObject.js +0 -236
- package/lib/base/AcDbObject.js.map +0 -1
- package/lib/base/index.d.ts +0 -3
- package/lib/base/index.d.ts.map +0 -1
- package/lib/base/index.js +0 -3
- package/lib/base/index.js.map +0 -1
- package/lib/converter/AcDbBatchProcessing.d.ts +0 -146
- package/lib/converter/AcDbBatchProcessing.d.ts.map +0 -1
- package/lib/converter/AcDbBatchProcessing.js +0 -272
- package/lib/converter/AcDbBatchProcessing.js.map +0 -1
- package/lib/converter/AcDbDxfConverter.d.ts +0 -272
- package/lib/converter/AcDbDxfConverter.d.ts.map +0 -1
- package/lib/converter/AcDbDxfConverter.js +0 -872
- package/lib/converter/AcDbDxfConverter.js.map +0 -1
- package/lib/converter/AcDbDxfParser.d.ts +0 -23
- package/lib/converter/AcDbDxfParser.d.ts.map +0 -1
- package/lib/converter/AcDbDxfParser.js +0 -83
- package/lib/converter/AcDbDxfParser.js.map +0 -1
- package/lib/converter/AcDbEntitiyConverter.d.ts +0 -159
- package/lib/converter/AcDbEntitiyConverter.d.ts.map +0 -1
- package/lib/converter/AcDbEntitiyConverter.js +0 -659
- package/lib/converter/AcDbEntitiyConverter.js.map +0 -1
- package/lib/converter/AcDbObjectConverter.d.ts +0 -61
- package/lib/converter/AcDbObjectConverter.d.ts.map +0 -1
- package/lib/converter/AcDbObjectConverter.js +0 -91
- package/lib/converter/AcDbObjectConverter.js.map +0 -1
- package/lib/converter/index.d.ts +0 -4
- package/lib/converter/index.d.ts.map +0 -1
- package/lib/converter/index.js +0 -4
- package/lib/converter/index.js.map +0 -1
- package/lib/converter/worker/AcDbBaseWorker.d.ts +0 -36
- package/lib/converter/worker/AcDbBaseWorker.d.ts.map +0 -1
- package/lib/converter/worker/AcDbBaseWorker.js +0 -93
- package/lib/converter/worker/AcDbBaseWorker.js.map +0 -1
- package/lib/converter/worker/AcDbDxfParserWorker.d.ts +0 -11
- package/lib/converter/worker/AcDbDxfParserWorker.d.ts.map +0 -1
- package/lib/converter/worker/AcDbDxfParserWorker.js +0 -75
- package/lib/converter/worker/AcDbDxfParserWorker.js.map +0 -1
- package/lib/converter/worker/AcDbWorkerManager.d.ts +0 -107
- package/lib/converter/worker/AcDbWorkerManager.d.ts.map +0 -1
- package/lib/converter/worker/AcDbWorkerManager.js +0 -360
- package/lib/converter/worker/AcDbWorkerManager.js.map +0 -1
- package/lib/converter/worker/index.d.ts +0 -3
- package/lib/converter/worker/index.d.ts.map +0 -1
- package/lib/converter/worker/index.js +0 -3
- package/lib/converter/worker/index.js.map +0 -1
- package/lib/database/AcDbBlockTable.d.ts +0 -56
- package/lib/database/AcDbBlockTable.d.ts.map +0 -1
- package/lib/database/AcDbBlockTable.js +0 -98
- package/lib/database/AcDbBlockTable.js.map +0 -1
- package/lib/database/AcDbBlockTableRecord.d.ts +0 -185
- package/lib/database/AcDbBlockTableRecord.d.ts.map +0 -1
- package/lib/database/AcDbBlockTableRecord.js +0 -261
- package/lib/database/AcDbBlockTableRecord.js.map +0 -1
- package/lib/database/AcDbDatabase.d.ts +0 -575
- package/lib/database/AcDbDatabase.d.ts.map +0 -1
- package/lib/database/AcDbDatabase.js +0 -833
- package/lib/database/AcDbDatabase.js.map +0 -1
- package/lib/database/AcDbDatabaseConverter.d.ts +0 -292
- package/lib/database/AcDbDatabaseConverter.d.ts.map +0 -1
- package/lib/database/AcDbDatabaseConverter.js +0 -447
- package/lib/database/AcDbDatabaseConverter.js.map +0 -1
- package/lib/database/AcDbDatabaseConverterManager.d.ts +0 -141
- package/lib/database/AcDbDatabaseConverterManager.d.ts.map +0 -1
- package/lib/database/AcDbDatabaseConverterManager.js +0 -173
- package/lib/database/AcDbDatabaseConverterManager.js.map +0 -1
- package/lib/database/AcDbDimStyleTable.d.ts +0 -31
- package/lib/database/AcDbDimStyleTable.d.ts.map +0 -1
- package/lib/database/AcDbDimStyleTable.js +0 -49
- package/lib/database/AcDbDimStyleTable.js.map +0 -1
- package/lib/database/AcDbDimStyleTableRecord.d.ts +0 -797
- package/lib/database/AcDbDimStyleTableRecord.d.ts.map +0 -1
- package/lib/database/AcDbDimStyleTableRecord.js +0 -1294
- package/lib/database/AcDbDimStyleTableRecord.js.map +0 -1
- package/lib/database/AcDbDwgVersion.d.ts +0 -32
- package/lib/database/AcDbDwgVersion.d.ts.map +0 -1
- package/lib/database/AcDbDwgVersion.js +0 -76
- package/lib/database/AcDbDwgVersion.js.map +0 -1
- package/lib/database/AcDbLayerTable.d.ts +0 -51
- package/lib/database/AcDbLayerTable.d.ts.map +0 -1
- package/lib/database/AcDbLayerTable.js +0 -92
- package/lib/database/AcDbLayerTable.js.map +0 -1
- package/lib/database/AcDbLayerTableRecord.d.ts +0 -278
- package/lib/database/AcDbLayerTableRecord.d.ts.map +0 -1
- package/lib/database/AcDbLayerTableRecord.js +0 -397
- package/lib/database/AcDbLayerTableRecord.js.map +0 -1
- package/lib/database/AcDbLinetypeTable.d.ts +0 -30
- package/lib/database/AcDbLinetypeTable.d.ts.map +0 -1
- package/lib/database/AcDbLinetypeTable.js +0 -48
- package/lib/database/AcDbLinetypeTable.js.map +0 -1
- package/lib/database/AcDbLinetypeTableRecord.d.ts +0 -79
- package/lib/database/AcDbLinetypeTableRecord.d.ts.map +0 -1
- package/lib/database/AcDbLinetypeTableRecord.js +0 -129
- package/lib/database/AcDbLinetypeTableRecord.js.map +0 -1
- package/lib/database/AcDbSymbolTable.d.ts +0 -199
- package/lib/database/AcDbSymbolTable.d.ts.map +0 -1
- package/lib/database/AcDbSymbolTable.js +0 -264
- package/lib/database/AcDbSymbolTable.js.map +0 -1
- package/lib/database/AcDbSymbolTableRecord.d.ts +0 -61
- package/lib/database/AcDbSymbolTableRecord.d.ts.map +0 -1
- package/lib/database/AcDbSymbolTableRecord.js +0 -82
- package/lib/database/AcDbSymbolTableRecord.js.map +0 -1
- package/lib/database/AcDbTextStyleTable.d.ts +0 -48
- package/lib/database/AcDbTextStyleTable.d.ts.map +0 -1
- package/lib/database/AcDbTextStyleTable.js +0 -112
- package/lib/database/AcDbTextStyleTable.js.map +0 -1
- package/lib/database/AcDbTextStyleTableRecord.d.ts +0 -179
- package/lib/database/AcDbTextStyleTableRecord.d.ts.map +0 -1
- package/lib/database/AcDbTextStyleTableRecord.js +0 -276
- package/lib/database/AcDbTextStyleTableRecord.js.map +0 -1
- package/lib/database/AcDbViewportTable.d.ts +0 -31
- package/lib/database/AcDbViewportTable.d.ts.map +0 -1
- package/lib/database/AcDbViewportTable.js +0 -49
- package/lib/database/AcDbViewportTable.js.map +0 -1
- package/lib/database/AcDbViewportTableRecord.d.ts +0 -154
- package/lib/database/AcDbViewportTableRecord.d.ts.map +0 -1
- package/lib/database/AcDbViewportTableRecord.js +0 -318
- package/lib/database/AcDbViewportTableRecord.js.map +0 -1
- package/lib/database/index.d.ts +0 -19
- package/lib/database/index.d.ts.map +0 -1
- package/lib/database/index.js +0 -19
- package/lib/database/index.js.map +0 -1
- package/lib/entity/AcDbArc.d.ts +0 -254
- package/lib/entity/AcDbArc.d.ts.map +0 -1
- package/lib/entity/AcDbArc.js +0 -340
- package/lib/entity/AcDbArc.js.map +0 -1
- package/lib/entity/AcDbBlockReference.d.ts +0 -190
- package/lib/entity/AcDbBlockReference.d.ts.map +0 -1
- package/lib/entity/AcDbBlockReference.js +0 -302
- package/lib/entity/AcDbBlockReference.js.map +0 -1
- package/lib/entity/AcDbCircle.d.ts +0 -186
- package/lib/entity/AcDbCircle.d.ts.map +0 -1
- package/lib/entity/AcDbCircle.js +0 -249
- package/lib/entity/AcDbCircle.js.map +0 -1
- package/lib/entity/AcDbCurve.d.ts +0 -42
- package/lib/entity/AcDbCurve.d.ts.map +0 -1
- package/lib/entity/AcDbCurve.js +0 -44
- package/lib/entity/AcDbCurve.js.map +0 -1
- package/lib/entity/AcDbEllipse.d.ts +0 -207
- package/lib/entity/AcDbEllipse.d.ts.map +0 -1
- package/lib/entity/AcDbEllipse.js +0 -272
- package/lib/entity/AcDbEllipse.js.map +0 -1
- package/lib/entity/AcDbEntity.d.ts +0 -385
- package/lib/entity/AcDbEntity.d.ts.map +0 -1
- package/lib/entity/AcDbEntity.js +0 -561
- package/lib/entity/AcDbEntity.js.map +0 -1
- package/lib/entity/AcDbFace.d.ts +0 -151
- package/lib/entity/AcDbFace.d.ts.map +0 -1
- package/lib/entity/AcDbFace.js +0 -224
- package/lib/entity/AcDbFace.js.map +0 -1
- package/lib/entity/AcDbHatch.d.ts +0 -174
- package/lib/entity/AcDbHatch.d.ts.map +0 -1
- package/lib/entity/AcDbHatch.js +0 -250
- package/lib/entity/AcDbHatch.js.map +0 -1
- package/lib/entity/AcDbLeader.d.ts +0 -243
- package/lib/entity/AcDbLeader.d.ts.map +0 -1
- package/lib/entity/AcDbLeader.js +0 -358
- package/lib/entity/AcDbLeader.js.map +0 -1
- package/lib/entity/AcDbLine.d.ts +0 -198
- package/lib/entity/AcDbLine.d.ts.map +0 -1
- package/lib/entity/AcDbLine.js +0 -300
- package/lib/entity/AcDbLine.js.map +0 -1
- package/lib/entity/AcDbMText.d.ts +0 -248
- package/lib/entity/AcDbMText.d.ts.map +0 -1
- package/lib/entity/AcDbMText.js +0 -414
- package/lib/entity/AcDbMText.js.map +0 -1
- package/lib/entity/AcDbPoint.d.ts +0 -113
- package/lib/entity/AcDbPoint.d.ts.map +0 -1
- package/lib/entity/AcDbPoint.js +0 -155
- package/lib/entity/AcDbPoint.js.map +0 -1
- package/lib/entity/AcDbPolyline.d.ts +0 -221
- package/lib/entity/AcDbPolyline.d.ts.map +0 -1
- package/lib/entity/AcDbPolyline.js +0 -301
- package/lib/entity/AcDbPolyline.js.map +0 -1
- package/lib/entity/AcDbRasterImage.d.ts +0 -216
- package/lib/entity/AcDbRasterImage.d.ts.map +0 -1
- package/lib/entity/AcDbRasterImage.js +0 -451
- package/lib/entity/AcDbRasterImage.js.map +0 -1
- package/lib/entity/AcDbRay.d.ts +0 -150
- package/lib/entity/AcDbRay.d.ts.map +0 -1
- package/lib/entity/AcDbRay.js +0 -208
- package/lib/entity/AcDbRay.js.map +0 -1
- package/lib/entity/AcDbSpline.d.ts +0 -135
- package/lib/entity/AcDbSpline.d.ts.map +0 -1
- package/lib/entity/AcDbSpline.js +0 -142
- package/lib/entity/AcDbSpline.js.map +0 -1
- package/lib/entity/AcDbTable.d.ts +0 -260
- package/lib/entity/AcDbTable.d.ts.map +0 -1
- package/lib/entity/AcDbTable.js +0 -452
- package/lib/entity/AcDbTable.js.map +0 -1
- package/lib/entity/AcDbText.d.ts +0 -388
- package/lib/entity/AcDbText.d.ts.map +0 -1
- package/lib/entity/AcDbText.js +0 -523
- package/lib/entity/AcDbText.js.map +0 -1
- package/lib/entity/AcDbTrace.d.ts +0 -193
- package/lib/entity/AcDbTrace.d.ts.map +0 -1
- package/lib/entity/AcDbTrace.js +0 -271
- package/lib/entity/AcDbTrace.js.map +0 -1
- package/lib/entity/AcDbViewport.d.ts +0 -173
- package/lib/entity/AcDbViewport.d.ts.map +0 -1
- package/lib/entity/AcDbViewport.js +0 -295
- package/lib/entity/AcDbViewport.js.map +0 -1
- package/lib/entity/AcDbWipeout.d.ts +0 -39
- package/lib/entity/AcDbWipeout.d.ts.map +0 -1
- package/lib/entity/AcDbWipeout.js +0 -70
- package/lib/entity/AcDbWipeout.js.map +0 -1
- package/lib/entity/AcDbXline.d.ts +0 -151
- package/lib/entity/AcDbXline.d.ts.map +0 -1
- package/lib/entity/AcDbXline.js +0 -209
- package/lib/entity/AcDbXline.js.map +0 -1
- package/lib/entity/dimension/AcDb3PointAngularDimension.d.ts +0 -92
- package/lib/entity/dimension/AcDb3PointAngularDimension.d.ts.map +0 -1
- package/lib/entity/dimension/AcDb3PointAngularDimension.js +0 -157
- package/lib/entity/dimension/AcDb3PointAngularDimension.js.map +0 -1
- package/lib/entity/dimension/AcDbAlignedDimension.d.ts +0 -220
- package/lib/entity/dimension/AcDbAlignedDimension.d.ts.map +0 -1
- package/lib/entity/dimension/AcDbAlignedDimension.js +0 -341
- package/lib/entity/dimension/AcDbAlignedDimension.js.map +0 -1
- package/lib/entity/dimension/AcDbArcDimension.d.ts +0 -94
- package/lib/entity/dimension/AcDbArcDimension.d.ts.map +0 -1
- package/lib/entity/dimension/AcDbArcDimension.js +0 -159
- package/lib/entity/dimension/AcDbArcDimension.js.map +0 -1
- package/lib/entity/dimension/AcDbDiametricDimension.d.ts +0 -145
- package/lib/entity/dimension/AcDbDiametricDimension.d.ts.map +0 -1
- package/lib/entity/dimension/AcDbDiametricDimension.js +0 -275
- package/lib/entity/dimension/AcDbDiametricDimension.js.map +0 -1
- package/lib/entity/dimension/AcDbDimension.d.ts +0 -257
- package/lib/entity/dimension/AcDbDimension.d.ts.map +0 -1
- package/lib/entity/dimension/AcDbDimension.js +0 -466
- package/lib/entity/dimension/AcDbDimension.js.map +0 -1
- package/lib/entity/dimension/AcDbOrdinateDimension.d.ts +0 -78
- package/lib/entity/dimension/AcDbOrdinateDimension.d.ts.map +0 -1
- package/lib/entity/dimension/AcDbOrdinateDimension.js +0 -133
- package/lib/entity/dimension/AcDbOrdinateDimension.js.map +0 -1
- package/lib/entity/dimension/AcDbRadialDimension.d.ts +0 -214
- package/lib/entity/dimension/AcDbRadialDimension.d.ts.map +0 -1
- package/lib/entity/dimension/AcDbRadialDimension.js +0 -288
- package/lib/entity/dimension/AcDbRadialDimension.js.map +0 -1
- package/lib/entity/dimension/index.d.ts +0 -8
- package/lib/entity/dimension/index.d.ts.map +0 -1
- package/lib/entity/dimension/index.js +0 -8
- package/lib/entity/dimension/index.js.map +0 -1
- package/lib/entity/index.d.ts +0 -24
- package/lib/entity/index.d.ts.map +0 -1
- package/lib/entity/index.js +0 -24
- package/lib/entity/index.js.map +0 -1
- package/lib/index.d.ts +0 -10
- package/lib/index.d.ts.map +0 -1
- package/lib/index.js +0 -10
- package/lib/index.js.map +0 -1
- package/lib/misc/AcDbAngleUnits.d.ts +0 -20
- package/lib/misc/AcDbAngleUnits.d.ts.map +0 -1
- package/lib/misc/AcDbAngleUnits.js +0 -21
- package/lib/misc/AcDbAngleUnits.js.map +0 -1
- package/lib/misc/AcDbCodePage.d.ts +0 -50
- package/lib/misc/AcDbCodePage.d.ts.map +0 -1
- package/lib/misc/AcDbCodePage.js +0 -100
- package/lib/misc/AcDbCodePage.js.map +0 -1
- package/lib/misc/AcDbConstants.d.ts +0 -24
- package/lib/misc/AcDbConstants.d.ts.map +0 -1
- package/lib/misc/AcDbConstants.js +0 -24
- package/lib/misc/AcDbConstants.js.map +0 -1
- package/lib/misc/AcDbDimArrowType.d.ts +0 -89
- package/lib/misc/AcDbDimArrowType.d.ts.map +0 -1
- package/lib/misc/AcDbDimArrowType.js +0 -90
- package/lib/misc/AcDbDimArrowType.js.map +0 -1
- package/lib/misc/AcDbObjectIterator.d.ts +0 -55
- package/lib/misc/AcDbObjectIterator.d.ts.map +0 -1
- package/lib/misc/AcDbObjectIterator.js +0 -67
- package/lib/misc/AcDbObjectIterator.js.map +0 -1
- package/lib/misc/AcDbOsnapMode.d.ts +0 -51
- package/lib/misc/AcDbOsnapMode.d.ts.map +0 -1
- package/lib/misc/AcDbOsnapMode.js +0 -52
- package/lib/misc/AcDbOsnapMode.js.map +0 -1
- package/lib/misc/AcDbRenderingCache.d.ts +0 -141
- package/lib/misc/AcDbRenderingCache.d.ts.map +0 -1
- package/lib/misc/AcDbRenderingCache.js +0 -239
- package/lib/misc/AcDbRenderingCache.js.map +0 -1
- package/lib/misc/AcDbUnitsValue.d.ts +0 -101
- package/lib/misc/AcDbUnitsValue.d.ts.map +0 -1
- package/lib/misc/AcDbUnitsValue.js +0 -121
- package/lib/misc/AcDbUnitsValue.js.map +0 -1
- package/lib/misc/index.d.ts +0 -9
- package/lib/misc/index.d.ts.map +0 -1
- package/lib/misc/index.js +0 -9
- package/lib/misc/index.js.map +0 -1
- package/lib/object/AcDbDictionary.d.ts +0 -178
- package/lib/object/AcDbDictionary.d.ts.map +0 -1
- package/lib/object/AcDbDictionary.js +0 -264
- package/lib/object/AcDbDictionary.js.map +0 -1
- package/lib/object/AcDbRasterImageDef.d.ts +0 -54
- package/lib/object/AcDbRasterImageDef.d.ts.map +0 -1
- package/lib/object/AcDbRasterImageDef.js +0 -82
- package/lib/object/AcDbRasterImageDef.js.map +0 -1
- package/lib/object/index.d.ts +0 -4
- package/lib/object/index.d.ts.map +0 -1
- package/lib/object/index.js +0 -4
- package/lib/object/index.js.map +0 -1
- package/lib/object/layout/AcDbLayout.d.ts +0 -190
- package/lib/object/layout/AcDbLayout.d.ts.map +0 -1
- package/lib/object/layout/AcDbLayout.js +0 -253
- package/lib/object/layout/AcDbLayout.js.map +0 -1
- package/lib/object/layout/AcDbLayoutDictionary.d.ts +0 -47
- package/lib/object/layout/AcDbLayoutDictionary.d.ts.map +0 -1
- package/lib/object/layout/AcDbLayoutDictionary.js +0 -122
- package/lib/object/layout/AcDbLayoutDictionary.js.map +0 -1
- package/lib/object/layout/AcDbLayoutManager.d.ts +0 -188
- package/lib/object/layout/AcDbLayoutManager.d.ts.map +0 -1
- package/lib/object/layout/AcDbLayoutManager.js +0 -245
- package/lib/object/layout/AcDbLayoutManager.js.map +0 -1
- package/lib/object/layout/index.d.ts +0 -4
- package/lib/object/layout/index.d.ts.map +0 -1
- package/lib/object/layout/index.js +0 -4
- package/lib/object/layout/index.js.map +0 -1
package/lib/entity/AcDbText.d.ts
DELETED
|
@@ -1,388 +0,0 @@
|
|
|
1
|
-
import { AcGeBox3d, AcGePoint3d } from '@mlightcad/geometry-engine';
|
|
2
|
-
import { AcGiRenderer } from '@mlightcad/graphic-interface';
|
|
3
|
-
import { AcDbEntity } from './AcDbEntity';
|
|
4
|
-
/**
|
|
5
|
-
* Defines the horizontal alignment mode for text entities.
|
|
6
|
-
*/
|
|
7
|
-
export declare enum AcDbTextHorizontalMode {
|
|
8
|
-
/** Left-aligned text */
|
|
9
|
-
LEFT = 0,
|
|
10
|
-
/** Center-aligned text */
|
|
11
|
-
CENTER = 1,
|
|
12
|
-
/** Right-aligned text */
|
|
13
|
-
RIGHT = 2,
|
|
14
|
-
/** Aligned text (fits between two points) */
|
|
15
|
-
ALIGNED = 3,
|
|
16
|
-
/** Middle-aligned text */
|
|
17
|
-
MIDDLE = 4,
|
|
18
|
-
/** Fit text (scales to fit between two points) */
|
|
19
|
-
FIT = 5
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Defines the vertical alignment mode for text entities.
|
|
23
|
-
*/
|
|
24
|
-
export declare enum AcDbTextVerticalMode {
|
|
25
|
-
/** Baseline-aligned text */
|
|
26
|
-
BASELINE = 0,
|
|
27
|
-
/** Bottom-aligned text */
|
|
28
|
-
BOTTOM = 1,
|
|
29
|
-
/** Middle-aligned text */
|
|
30
|
-
MIDDLE = 2,
|
|
31
|
-
/** Top-aligned text */
|
|
32
|
-
TOP = 3
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Represents a text entity in AutoCAD.
|
|
36
|
-
*
|
|
37
|
-
* A text entity is a 2D geometric object that displays text strings in drawings.
|
|
38
|
-
* Text entities can have various properties including position, height, rotation,
|
|
39
|
-
* alignment, and style. Text is always drawn in the plane defined by its normal vector.
|
|
40
|
-
*
|
|
41
|
-
* @example
|
|
42
|
-
* ```typescript
|
|
43
|
-
* // Create a text entity
|
|
44
|
-
* const text = new AcDbText();
|
|
45
|
-
* text.textString = "Hello, World!";
|
|
46
|
-
* text.position = new AcGePoint3d(0, 0, 0);
|
|
47
|
-
* text.height = 2.5;
|
|
48
|
-
* text.horizontalMode = AcDbTextHorizontalMode.CENTER;
|
|
49
|
-
* text.verticalMode = AcDbTextVerticalMode.BASELINE;
|
|
50
|
-
*
|
|
51
|
-
* // Access text properties
|
|
52
|
-
* console.log(`Text: ${text.textString}`);
|
|
53
|
-
* console.log(`Position: ${text.position}`);
|
|
54
|
-
* console.log(`Height: ${text.height}`);
|
|
55
|
-
* ```
|
|
56
|
-
*/
|
|
57
|
-
export declare class AcDbText extends AcDbEntity {
|
|
58
|
-
/** The entity type name */
|
|
59
|
-
static typeName: string;
|
|
60
|
-
/** The text string content */
|
|
61
|
-
private _textString;
|
|
62
|
-
/** The thickness (extrusion) of the text */
|
|
63
|
-
private _thickness;
|
|
64
|
-
/** The height of the text */
|
|
65
|
-
private _height;
|
|
66
|
-
/** The insertion point of the text */
|
|
67
|
-
private _position;
|
|
68
|
-
/** The rotation angle of the text */
|
|
69
|
-
private _rotation;
|
|
70
|
-
/** The oblique angle of the text */
|
|
71
|
-
private _oblique;
|
|
72
|
-
/** The horizontal alignment mode */
|
|
73
|
-
private _horizontalMode;
|
|
74
|
-
/** The vertical alignment mode */
|
|
75
|
-
private _verticalModel;
|
|
76
|
-
/** The text style name */
|
|
77
|
-
private _styleName;
|
|
78
|
-
/** The width factor (scale) of the text */
|
|
79
|
-
private _widthFactor;
|
|
80
|
-
/**
|
|
81
|
-
* Creates a new text entity.
|
|
82
|
-
*
|
|
83
|
-
* This constructor initializes a text entity with default values.
|
|
84
|
-
* The text string is empty, height is 0, and position is at the origin.
|
|
85
|
-
*
|
|
86
|
-
* @example
|
|
87
|
-
* ```typescript
|
|
88
|
-
* const text = new AcDbText();
|
|
89
|
-
* text.textString = "Sample Text";
|
|
90
|
-
* text.position = new AcGePoint3d(10, 20, 0);
|
|
91
|
-
* text.height = 3.0;
|
|
92
|
-
* ```
|
|
93
|
-
*/
|
|
94
|
-
constructor();
|
|
95
|
-
/**
|
|
96
|
-
* Gets the text string content of this entity.
|
|
97
|
-
*
|
|
98
|
-
* @returns The text string
|
|
99
|
-
*
|
|
100
|
-
* @example
|
|
101
|
-
* ```typescript
|
|
102
|
-
* const content = text.textString;
|
|
103
|
-
* console.log(`Text content: ${content}`);
|
|
104
|
-
* ```
|
|
105
|
-
*/
|
|
106
|
-
get textString(): string;
|
|
107
|
-
/**
|
|
108
|
-
* Sets the text string content of this entity.
|
|
109
|
-
*
|
|
110
|
-
* @param value - The new text string
|
|
111
|
-
*
|
|
112
|
-
* @example
|
|
113
|
-
* ```typescript
|
|
114
|
-
* text.textString = "New text content";
|
|
115
|
-
* ```
|
|
116
|
-
*/
|
|
117
|
-
set textString(value: string);
|
|
118
|
-
/**
|
|
119
|
-
* Gets the thickness of the text.
|
|
120
|
-
*
|
|
121
|
-
* The thickness is the text's dimension along its normal vector direction
|
|
122
|
-
* (sometimes called the extrusion direction).
|
|
123
|
-
*
|
|
124
|
-
* @returns The thickness value
|
|
125
|
-
*
|
|
126
|
-
* @example
|
|
127
|
-
* ```typescript
|
|
128
|
-
* const thickness = text.thickness;
|
|
129
|
-
* console.log(`Text thickness: ${thickness}`);
|
|
130
|
-
* ```
|
|
131
|
-
*/
|
|
132
|
-
get thickness(): number;
|
|
133
|
-
/**
|
|
134
|
-
* Sets the thickness of the text.
|
|
135
|
-
*
|
|
136
|
-
* @param value - The new thickness value
|
|
137
|
-
*
|
|
138
|
-
* @example
|
|
139
|
-
* ```typescript
|
|
140
|
-
* text.thickness = 2.0;
|
|
141
|
-
* ```
|
|
142
|
-
*/
|
|
143
|
-
set thickness(value: number);
|
|
144
|
-
/**
|
|
145
|
-
* Gets the height of the text.
|
|
146
|
-
*
|
|
147
|
-
* The height value is used as a scale factor for both height and width
|
|
148
|
-
* of the text.
|
|
149
|
-
*
|
|
150
|
-
* @returns The height value
|
|
151
|
-
*
|
|
152
|
-
* @example
|
|
153
|
-
* ```typescript
|
|
154
|
-
* const height = text.height;
|
|
155
|
-
* console.log(`Text height: ${height}`);
|
|
156
|
-
* ```
|
|
157
|
-
*/
|
|
158
|
-
get height(): number;
|
|
159
|
-
/**
|
|
160
|
-
* Sets the height of the text.
|
|
161
|
-
*
|
|
162
|
-
* @param value - The new height value
|
|
163
|
-
*
|
|
164
|
-
* @example
|
|
165
|
-
* ```typescript
|
|
166
|
-
* text.height = 5.0;
|
|
167
|
-
* ```
|
|
168
|
-
*/
|
|
169
|
-
set height(value: number);
|
|
170
|
-
/**
|
|
171
|
-
* Gets the insertion point of the text in WCS coordinates.
|
|
172
|
-
*
|
|
173
|
-
* @returns The insertion point as a 3D point
|
|
174
|
-
*
|
|
175
|
-
* @example
|
|
176
|
-
* ```typescript
|
|
177
|
-
* const position = text.position;
|
|
178
|
-
* console.log(`Text position: ${position.x}, ${position.y}, ${position.z}`);
|
|
179
|
-
* ```
|
|
180
|
-
*/
|
|
181
|
-
get position(): AcGePoint3d;
|
|
182
|
-
/**
|
|
183
|
-
* Sets the insertion point of the text in WCS coordinates.
|
|
184
|
-
*
|
|
185
|
-
* @param value - The new insertion point
|
|
186
|
-
*
|
|
187
|
-
* @example
|
|
188
|
-
* ```typescript
|
|
189
|
-
* text.position = new AcGePoint3d(15, 25, 0);
|
|
190
|
-
* ```
|
|
191
|
-
*/
|
|
192
|
-
set position(value: AcGePoint3d);
|
|
193
|
-
/**
|
|
194
|
-
* Gets the rotation angle of the text.
|
|
195
|
-
*
|
|
196
|
-
* The rotation angle is relative to the X axis of the text's OCS,
|
|
197
|
-
* with positive angles going counterclockwise when looking down the Z axis
|
|
198
|
-
* toward the origin.
|
|
199
|
-
*
|
|
200
|
-
* @returns The rotation angle in radians
|
|
201
|
-
*
|
|
202
|
-
* @example
|
|
203
|
-
* ```typescript
|
|
204
|
-
* const rotation = text.rotation;
|
|
205
|
-
* console.log(`Text rotation: ${rotation} radians (${rotation * 180 / Math.PI} degrees)`);
|
|
206
|
-
* ```
|
|
207
|
-
*/
|
|
208
|
-
get rotation(): number;
|
|
209
|
-
/**
|
|
210
|
-
* Sets the rotation angle of the text.
|
|
211
|
-
*
|
|
212
|
-
* @param value - The new rotation angle in radians
|
|
213
|
-
*
|
|
214
|
-
* @example
|
|
215
|
-
* ```typescript
|
|
216
|
-
* text.rotation = Math.PI / 4; // 45 degrees
|
|
217
|
-
* ```
|
|
218
|
-
*/
|
|
219
|
-
set rotation(value: number);
|
|
220
|
-
/**
|
|
221
|
-
* Gets the oblique angle of the text.
|
|
222
|
-
*
|
|
223
|
-
* The oblique angle is the angle from the text's vertical; that is, the top
|
|
224
|
-
* of the text "slants" relative to the bottom, similar to italic text.
|
|
225
|
-
* Positive angles slant characters forward at their tops.
|
|
226
|
-
*
|
|
227
|
-
* @returns The oblique angle in radians
|
|
228
|
-
*
|
|
229
|
-
* @example
|
|
230
|
-
* ```typescript
|
|
231
|
-
* const oblique = text.oblique;
|
|
232
|
-
* console.log(`Text oblique angle: ${oblique} radians`);
|
|
233
|
-
* ```
|
|
234
|
-
*/
|
|
235
|
-
get oblique(): number;
|
|
236
|
-
/**
|
|
237
|
-
* Sets the oblique angle of the text.
|
|
238
|
-
*
|
|
239
|
-
* @param value - The new oblique angle in radians
|
|
240
|
-
*
|
|
241
|
-
* @example
|
|
242
|
-
* ```typescript
|
|
243
|
-
* text.oblique = Math.PI / 6; // 30 degrees
|
|
244
|
-
* ```
|
|
245
|
-
*/
|
|
246
|
-
set oblique(value: number);
|
|
247
|
-
/**
|
|
248
|
-
* Gets the horizontal alignment mode of the text.
|
|
249
|
-
*
|
|
250
|
-
* @returns The horizontal alignment mode
|
|
251
|
-
*
|
|
252
|
-
* @example
|
|
253
|
-
* ```typescript
|
|
254
|
-
* const horizontalMode = text.horizontalMode;
|
|
255
|
-
* console.log(`Horizontal mode: ${horizontalMode}`);
|
|
256
|
-
* ```
|
|
257
|
-
*/
|
|
258
|
-
get horizontalMode(): AcDbTextHorizontalMode;
|
|
259
|
-
/**
|
|
260
|
-
* Sets the horizontal alignment mode of the text.
|
|
261
|
-
*
|
|
262
|
-
* @param value - The new horizontal alignment mode
|
|
263
|
-
*
|
|
264
|
-
* @example
|
|
265
|
-
* ```typescript
|
|
266
|
-
* text.horizontalMode = AcDbTextHorizontalMode.CENTER;
|
|
267
|
-
* ```
|
|
268
|
-
*/
|
|
269
|
-
set horizontalMode(value: AcDbTextHorizontalMode);
|
|
270
|
-
/**
|
|
271
|
-
* Gets the vertical alignment mode of the text.
|
|
272
|
-
*
|
|
273
|
-
* @returns The vertical alignment mode
|
|
274
|
-
*
|
|
275
|
-
* @example
|
|
276
|
-
* ```typescript
|
|
277
|
-
* const verticalMode = text.verticalMode;
|
|
278
|
-
* console.log(`Vertical mode: ${verticalMode}`);
|
|
279
|
-
* ```
|
|
280
|
-
*/
|
|
281
|
-
get verticalMode(): AcDbTextVerticalMode;
|
|
282
|
-
/**
|
|
283
|
-
* Sets the vertical alignment mode of the text.
|
|
284
|
-
*
|
|
285
|
-
* @param value - The new vertical alignment mode
|
|
286
|
-
*
|
|
287
|
-
* @example
|
|
288
|
-
* ```typescript
|
|
289
|
-
* text.verticalMode = AcDbTextVerticalMode.BASELINE;
|
|
290
|
-
* ```
|
|
291
|
-
*/
|
|
292
|
-
set verticalMode(value: AcDbTextVerticalMode);
|
|
293
|
-
/**
|
|
294
|
-
* Gets the style name used by this text entity.
|
|
295
|
-
*
|
|
296
|
-
* @returns The text style name
|
|
297
|
-
*
|
|
298
|
-
* @example
|
|
299
|
-
* ```typescript
|
|
300
|
-
* const styleName = text.styleName;
|
|
301
|
-
* console.log(`Text style: ${styleName}`);
|
|
302
|
-
* ```
|
|
303
|
-
*/
|
|
304
|
-
get styleName(): string;
|
|
305
|
-
/**
|
|
306
|
-
* Sets the style name for this text entity.
|
|
307
|
-
*
|
|
308
|
-
* @param value - The new text style name
|
|
309
|
-
*
|
|
310
|
-
* @example
|
|
311
|
-
* ```typescript
|
|
312
|
-
* text.styleName = "Standard";
|
|
313
|
-
* ```
|
|
314
|
-
*/
|
|
315
|
-
set styleName(value: string);
|
|
316
|
-
/**
|
|
317
|
-
* Gets the width factor of the text.
|
|
318
|
-
*
|
|
319
|
-
* The width factor is applied to the text's width to allow the width to be
|
|
320
|
-
* adjusted independently of the height. For example, if the widthFactor value
|
|
321
|
-
* is 0.8, then the text is drawn with a width that is 80% of its normal width.
|
|
322
|
-
*
|
|
323
|
-
* @returns The width factor value
|
|
324
|
-
*
|
|
325
|
-
* @example
|
|
326
|
-
* ```typescript
|
|
327
|
-
* const widthFactor = text.widthFactor;
|
|
328
|
-
* console.log(`Width factor: ${widthFactor}`);
|
|
329
|
-
* ```
|
|
330
|
-
*/
|
|
331
|
-
get widthFactor(): number;
|
|
332
|
-
/**
|
|
333
|
-
* Sets the width factor of the text.
|
|
334
|
-
*
|
|
335
|
-
* @param value - The new width factor value
|
|
336
|
-
*
|
|
337
|
-
* @example
|
|
338
|
-
* ```typescript
|
|
339
|
-
* text.widthFactor = 0.8; // 80% width
|
|
340
|
-
* ```
|
|
341
|
-
*/
|
|
342
|
-
set widthFactor(value: number);
|
|
343
|
-
/**
|
|
344
|
-
* Gets the geometric extents (bounding box) of this text.
|
|
345
|
-
*
|
|
346
|
-
* @returns The bounding box that encompasses the text
|
|
347
|
-
*
|
|
348
|
-
* @example
|
|
349
|
-
* ```typescript
|
|
350
|
-
* const extents = text.geometricExtents;
|
|
351
|
-
* console.log(`Text bounds: ${extents.minPoint} to ${extents.maxPoint}`);
|
|
352
|
-
* ```
|
|
353
|
-
*/
|
|
354
|
-
get geometricExtents(): AcGeBox3d;
|
|
355
|
-
/**
|
|
356
|
-
* Gets the text style for this text entity.
|
|
357
|
-
*
|
|
358
|
-
* This method retrieves the text style from the text style table.
|
|
359
|
-
* If the specified style is not found, it falls back to the 'STANDARD' style.
|
|
360
|
-
*
|
|
361
|
-
* @returns The text style object
|
|
362
|
-
*
|
|
363
|
-
* @example
|
|
364
|
-
* ```typescript
|
|
365
|
-
* const textStyle = text.getTextStyle();
|
|
366
|
-
* ```
|
|
367
|
-
*/
|
|
368
|
-
private getTextStyle;
|
|
369
|
-
/**
|
|
370
|
-
* Draws this text using the specified renderer.
|
|
371
|
-
*
|
|
372
|
-
* This method renders the text as a multiline text entity using the text's
|
|
373
|
-
* current style properties.
|
|
374
|
-
*
|
|
375
|
-
* @param renderer - The renderer to use for drawing
|
|
376
|
-
* @param delay - The flag to delay creating one rendered entity and just create one dummy
|
|
377
|
-
* entity. Renderer can delay heavy calculation operation to avoid blocking UI when this flag
|
|
378
|
-
* is true.
|
|
379
|
-
* @returns The rendered text entity, or undefined if drawing failed
|
|
380
|
-
*
|
|
381
|
-
* @example
|
|
382
|
-
* ```typescript
|
|
383
|
-
* const renderedText = text.draw(renderer);
|
|
384
|
-
* ```
|
|
385
|
-
*/
|
|
386
|
-
draw(renderer: AcGiRenderer, delay?: boolean): import("@mlightcad/graphic-interface").AcGiEntity;
|
|
387
|
-
}
|
|
388
|
-
//# sourceMappingURL=AcDbText.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AcDbText.d.ts","sourceRoot":"","sources":["../../src/entity/AcDbText.ts"],"names":[],"mappings":"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"}
|