@mlightcad/data-model 1.3.3 → 1.3.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.cjs +5 -0
- package/dist/data-model.js +25523 -0
- package/dist/dxf-parser-worker.js +1715 -0
- package/lib/base/AcDbHostApplicationServices.d.ts +96 -0
- package/lib/base/AcDbHostApplicationServices.d.ts.map +1 -0
- package/lib/base/AcDbHostApplicationServices.js +118 -0
- package/lib/base/AcDbHostApplicationServices.js.map +1 -0
- package/lib/base/AcDbObject.d.ts +205 -0
- package/lib/base/AcDbObject.d.ts.map +1 -0
- package/lib/base/AcDbObject.js +236 -0
- package/lib/base/AcDbObject.js.map +1 -0
- package/lib/base/index.d.ts +3 -0
- package/lib/base/index.d.ts.map +1 -0
- package/lib/base/index.js +3 -0
- package/lib/base/index.js.map +1 -0
- package/lib/converter/AcDbBatchProcessing.d.ts +146 -0
- package/lib/converter/AcDbBatchProcessing.d.ts.map +1 -0
- package/lib/converter/AcDbBatchProcessing.js +272 -0
- package/lib/converter/AcDbBatchProcessing.js.map +1 -0
- package/lib/converter/AcDbDxfConverter.d.ts +272 -0
- package/lib/converter/AcDbDxfConverter.d.ts.map +1 -0
- package/lib/converter/AcDbDxfConverter.js +874 -0
- package/lib/converter/AcDbDxfConverter.js.map +1 -0
- package/lib/converter/AcDbDxfParser.d.ts +23 -0
- package/lib/converter/AcDbDxfParser.d.ts.map +1 -0
- package/lib/converter/AcDbDxfParser.js +85 -0
- package/lib/converter/AcDbDxfParser.js.map +1 -0
- package/lib/converter/AcDbEntitiyConverter.d.ts +159 -0
- package/lib/converter/AcDbEntitiyConverter.d.ts.map +1 -0
- package/lib/converter/AcDbEntitiyConverter.js +659 -0
- package/lib/converter/AcDbEntitiyConverter.js.map +1 -0
- package/lib/converter/AcDbObjectConverter.d.ts +61 -0
- package/lib/converter/AcDbObjectConverter.d.ts.map +1 -0
- package/lib/converter/AcDbObjectConverter.js +91 -0
- package/lib/converter/AcDbObjectConverter.js.map +1 -0
- package/lib/converter/AcDbRegenerator.d.ts +101 -0
- package/lib/converter/AcDbRegenerator.d.ts.map +1 -0
- package/lib/converter/AcDbRegenerator.js +334 -0
- package/lib/converter/AcDbRegenerator.js.map +1 -0
- package/lib/converter/index.d.ts +5 -0
- package/lib/converter/index.d.ts.map +1 -0
- package/lib/converter/index.js +5 -0
- package/lib/converter/index.js.map +1 -0
- package/lib/converter/worker/AcDbBaseWorker.d.ts +36 -0
- package/lib/converter/worker/AcDbBaseWorker.d.ts.map +1 -0
- package/lib/converter/worker/AcDbBaseWorker.js +93 -0
- package/lib/converter/worker/AcDbBaseWorker.js.map +1 -0
- package/lib/converter/worker/AcDbDxfParserWorker.d.ts +11 -0
- package/lib/converter/worker/AcDbDxfParserWorker.d.ts.map +1 -0
- package/lib/converter/worker/AcDbDxfParserWorker.js +75 -0
- package/lib/converter/worker/AcDbDxfParserWorker.js.map +1 -0
- package/lib/converter/worker/AcDbWorkerManager.d.ts +107 -0
- package/lib/converter/worker/AcDbWorkerManager.d.ts.map +1 -0
- package/lib/converter/worker/AcDbWorkerManager.js +360 -0
- package/lib/converter/worker/AcDbWorkerManager.js.map +1 -0
- package/lib/converter/worker/index.d.ts +3 -0
- package/lib/converter/worker/index.d.ts.map +1 -0
- package/lib/converter/worker/index.js +3 -0
- package/lib/converter/worker/index.js.map +1 -0
- package/lib/database/AcDbBlockTable.d.ts +56 -0
- package/lib/database/AcDbBlockTable.d.ts.map +1 -0
- package/lib/database/AcDbBlockTable.js +98 -0
- package/lib/database/AcDbBlockTable.js.map +1 -0
- package/lib/database/AcDbBlockTableRecord.d.ts +185 -0
- package/lib/database/AcDbBlockTableRecord.d.ts.map +1 -0
- package/lib/database/AcDbBlockTableRecord.js +261 -0
- package/lib/database/AcDbBlockTableRecord.js.map +1 -0
- package/lib/database/AcDbDatabase.d.ts +563 -0
- package/lib/database/AcDbDatabase.d.ts.map +1 -0
- package/lib/database/AcDbDatabase.js +842 -0
- package/lib/database/AcDbDatabase.js.map +1 -0
- package/lib/database/AcDbDatabaseConverter.d.ts +292 -0
- package/lib/database/AcDbDatabaseConverter.d.ts.map +1 -0
- package/lib/database/AcDbDatabaseConverter.js +448 -0
- package/lib/database/AcDbDatabaseConverter.js.map +1 -0
- package/lib/database/AcDbDatabaseConverterManager.d.ts +141 -0
- package/lib/database/AcDbDatabaseConverterManager.d.ts.map +1 -0
- package/lib/database/AcDbDatabaseConverterManager.js +173 -0
- package/lib/database/AcDbDatabaseConverterManager.js.map +1 -0
- package/lib/database/AcDbDimStyleTable.d.ts +31 -0
- package/lib/database/AcDbDimStyleTable.d.ts.map +1 -0
- package/lib/database/AcDbDimStyleTable.js +49 -0
- package/lib/database/AcDbDimStyleTable.js.map +1 -0
- package/lib/database/AcDbDimStyleTableRecord.d.ts +797 -0
- package/lib/database/AcDbDimStyleTableRecord.d.ts.map +1 -0
- package/lib/database/AcDbDimStyleTableRecord.js +1294 -0
- package/lib/database/AcDbDimStyleTableRecord.js.map +1 -0
- package/lib/database/AcDbDwgVersion.d.ts +32 -0
- package/lib/database/AcDbDwgVersion.d.ts.map +1 -0
- package/lib/database/AcDbDwgVersion.js +126 -0
- package/lib/database/AcDbDwgVersion.js.map +1 -0
- package/lib/database/AcDbLayerTable.d.ts +51 -0
- package/lib/database/AcDbLayerTable.d.ts.map +1 -0
- package/lib/database/AcDbLayerTable.js +92 -0
- package/lib/database/AcDbLayerTable.js.map +1 -0
- package/lib/database/AcDbLayerTableRecord.d.ts +278 -0
- package/lib/database/AcDbLayerTableRecord.d.ts.map +1 -0
- package/lib/database/AcDbLayerTableRecord.js +397 -0
- package/lib/database/AcDbLayerTableRecord.js.map +1 -0
- package/lib/database/AcDbLinetypeTable.d.ts +30 -0
- package/lib/database/AcDbLinetypeTable.d.ts.map +1 -0
- package/lib/database/AcDbLinetypeTable.js +48 -0
- package/lib/database/AcDbLinetypeTable.js.map +1 -0
- package/lib/database/AcDbLinetypeTableRecord.d.ts +79 -0
- package/lib/database/AcDbLinetypeTableRecord.d.ts.map +1 -0
- package/lib/database/AcDbLinetypeTableRecord.js +129 -0
- package/lib/database/AcDbLinetypeTableRecord.js.map +1 -0
- package/lib/database/AcDbSymbolTable.d.ts +199 -0
- package/lib/database/AcDbSymbolTable.d.ts.map +1 -0
- package/lib/database/AcDbSymbolTable.js +264 -0
- package/lib/database/AcDbSymbolTable.js.map +1 -0
- package/lib/database/AcDbSymbolTableRecord.d.ts +61 -0
- package/lib/database/AcDbSymbolTableRecord.d.ts.map +1 -0
- package/lib/database/AcDbSymbolTableRecord.js +82 -0
- package/lib/database/AcDbSymbolTableRecord.js.map +1 -0
- package/lib/database/AcDbTextStyleTable.d.ts +48 -0
- package/lib/database/AcDbTextStyleTable.d.ts.map +1 -0
- package/lib/database/AcDbTextStyleTable.js +112 -0
- package/lib/database/AcDbTextStyleTable.js.map +1 -0
- package/lib/database/AcDbTextStyleTableRecord.d.ts +179 -0
- package/lib/database/AcDbTextStyleTableRecord.d.ts.map +1 -0
- package/lib/database/AcDbTextStyleTableRecord.js +276 -0
- package/lib/database/AcDbTextStyleTableRecord.js.map +1 -0
- package/lib/database/AcDbViewportTable.d.ts +31 -0
- package/lib/database/AcDbViewportTable.d.ts.map +1 -0
- package/lib/database/AcDbViewportTable.js +49 -0
- package/lib/database/AcDbViewportTable.js.map +1 -0
- package/lib/database/AcDbViewportTableRecord.d.ts +154 -0
- package/lib/database/AcDbViewportTableRecord.d.ts.map +1 -0
- package/lib/database/AcDbViewportTableRecord.js +318 -0
- package/lib/database/AcDbViewportTableRecord.js.map +1 -0
- package/lib/database/index.d.ts +19 -0
- package/lib/database/index.d.ts.map +1 -0
- package/lib/database/index.js +19 -0
- package/lib/database/index.js.map +1 -0
- package/lib/entity/AcDbArc.d.ts +254 -0
- package/lib/entity/AcDbArc.d.ts.map +1 -0
- package/lib/entity/AcDbArc.js +340 -0
- package/lib/entity/AcDbArc.js.map +1 -0
- package/lib/entity/AcDbBlockReference.d.ts +190 -0
- package/lib/entity/AcDbBlockReference.d.ts.map +1 -0
- package/lib/entity/AcDbBlockReference.js +302 -0
- package/lib/entity/AcDbBlockReference.js.map +1 -0
- package/lib/entity/AcDbCircle.d.ts +186 -0
- package/lib/entity/AcDbCircle.d.ts.map +1 -0
- package/lib/entity/AcDbCircle.js +249 -0
- package/lib/entity/AcDbCircle.js.map +1 -0
- package/lib/entity/AcDbCurve.d.ts +42 -0
- package/lib/entity/AcDbCurve.d.ts.map +1 -0
- package/lib/entity/AcDbCurve.js +44 -0
- package/lib/entity/AcDbCurve.js.map +1 -0
- package/lib/entity/AcDbEllipse.d.ts +207 -0
- package/lib/entity/AcDbEllipse.d.ts.map +1 -0
- package/lib/entity/AcDbEllipse.js +272 -0
- package/lib/entity/AcDbEllipse.js.map +1 -0
- package/lib/entity/AcDbEntity.d.ts +385 -0
- package/lib/entity/AcDbEntity.d.ts.map +1 -0
- package/lib/entity/AcDbEntity.js +561 -0
- package/lib/entity/AcDbEntity.js.map +1 -0
- package/lib/entity/AcDbFace.d.ts +151 -0
- package/lib/entity/AcDbFace.d.ts.map +1 -0
- package/lib/entity/AcDbFace.js +224 -0
- package/lib/entity/AcDbFace.js.map +1 -0
- package/lib/entity/AcDbHatch.d.ts +174 -0
- package/lib/entity/AcDbHatch.d.ts.map +1 -0
- package/lib/entity/AcDbHatch.js +250 -0
- package/lib/entity/AcDbHatch.js.map +1 -0
- package/lib/entity/AcDbLeader.d.ts +243 -0
- package/lib/entity/AcDbLeader.d.ts.map +1 -0
- package/lib/entity/AcDbLeader.js +358 -0
- package/lib/entity/AcDbLeader.js.map +1 -0
- package/lib/entity/AcDbLine.d.ts +198 -0
- package/lib/entity/AcDbLine.d.ts.map +1 -0
- package/lib/entity/AcDbLine.js +300 -0
- package/lib/entity/AcDbLine.js.map +1 -0
- package/lib/entity/AcDbMText.d.ts +248 -0
- package/lib/entity/AcDbMText.d.ts.map +1 -0
- package/lib/entity/AcDbMText.js +414 -0
- package/lib/entity/AcDbMText.js.map +1 -0
- package/lib/entity/AcDbPoint.d.ts +113 -0
- package/lib/entity/AcDbPoint.d.ts.map +1 -0
- package/lib/entity/AcDbPoint.js +155 -0
- package/lib/entity/AcDbPoint.js.map +1 -0
- package/lib/entity/AcDbPolyline.d.ts +221 -0
- package/lib/entity/AcDbPolyline.d.ts.map +1 -0
- package/lib/entity/AcDbPolyline.js +301 -0
- package/lib/entity/AcDbPolyline.js.map +1 -0
- package/lib/entity/AcDbRasterImage.d.ts +216 -0
- package/lib/entity/AcDbRasterImage.d.ts.map +1 -0
- package/lib/entity/AcDbRasterImage.js +451 -0
- package/lib/entity/AcDbRasterImage.js.map +1 -0
- package/lib/entity/AcDbRay.d.ts +150 -0
- package/lib/entity/AcDbRay.d.ts.map +1 -0
- package/lib/entity/AcDbRay.js +208 -0
- package/lib/entity/AcDbRay.js.map +1 -0
- package/lib/entity/AcDbSpline.d.ts +135 -0
- package/lib/entity/AcDbSpline.d.ts.map +1 -0
- package/lib/entity/AcDbSpline.js +142 -0
- package/lib/entity/AcDbSpline.js.map +1 -0
- package/lib/entity/AcDbTable.d.ts +260 -0
- package/lib/entity/AcDbTable.d.ts.map +1 -0
- package/lib/entity/AcDbTable.js +452 -0
- package/lib/entity/AcDbTable.js.map +1 -0
- package/lib/entity/AcDbText.d.ts +388 -0
- package/lib/entity/AcDbText.d.ts.map +1 -0
- package/lib/entity/AcDbText.js +523 -0
- package/lib/entity/AcDbText.js.map +1 -0
- package/lib/entity/AcDbTrace.d.ts +193 -0
- package/lib/entity/AcDbTrace.d.ts.map +1 -0
- package/lib/entity/AcDbTrace.js +271 -0
- package/lib/entity/AcDbTrace.js.map +1 -0
- package/lib/entity/AcDbViewport.d.ts +173 -0
- package/lib/entity/AcDbViewport.d.ts.map +1 -0
- package/lib/entity/AcDbViewport.js +295 -0
- package/lib/entity/AcDbViewport.js.map +1 -0
- package/lib/entity/AcDbWipeout.d.ts +39 -0
- package/lib/entity/AcDbWipeout.d.ts.map +1 -0
- package/lib/entity/AcDbWipeout.js +70 -0
- package/lib/entity/AcDbWipeout.js.map +1 -0
- package/lib/entity/AcDbXline.d.ts +151 -0
- package/lib/entity/AcDbXline.d.ts.map +1 -0
- package/lib/entity/AcDbXline.js +209 -0
- package/lib/entity/AcDbXline.js.map +1 -0
- package/lib/entity/dimension/AcDb3PointAngularDimension.d.ts +92 -0
- package/lib/entity/dimension/AcDb3PointAngularDimension.d.ts.map +1 -0
- package/lib/entity/dimension/AcDb3PointAngularDimension.js +157 -0
- package/lib/entity/dimension/AcDb3PointAngularDimension.js.map +1 -0
- package/lib/entity/dimension/AcDbAlignedDimension.d.ts +220 -0
- package/lib/entity/dimension/AcDbAlignedDimension.d.ts.map +1 -0
- package/lib/entity/dimension/AcDbAlignedDimension.js +341 -0
- package/lib/entity/dimension/AcDbAlignedDimension.js.map +1 -0
- package/lib/entity/dimension/AcDbArcDimension.d.ts +94 -0
- package/lib/entity/dimension/AcDbArcDimension.d.ts.map +1 -0
- package/lib/entity/dimension/AcDbArcDimension.js +159 -0
- package/lib/entity/dimension/AcDbArcDimension.js.map +1 -0
- package/lib/entity/dimension/AcDbDiametricDimension.d.ts +145 -0
- package/lib/entity/dimension/AcDbDiametricDimension.d.ts.map +1 -0
- package/lib/entity/dimension/AcDbDiametricDimension.js +275 -0
- package/lib/entity/dimension/AcDbDiametricDimension.js.map +1 -0
- package/lib/entity/dimension/AcDbDimension.d.ts +257 -0
- package/lib/entity/dimension/AcDbDimension.d.ts.map +1 -0
- package/lib/entity/dimension/AcDbDimension.js +466 -0
- package/lib/entity/dimension/AcDbDimension.js.map +1 -0
- package/lib/entity/dimension/AcDbOrdinateDimension.d.ts +78 -0
- package/lib/entity/dimension/AcDbOrdinateDimension.d.ts.map +1 -0
- package/lib/entity/dimension/AcDbOrdinateDimension.js +133 -0
- package/lib/entity/dimension/AcDbOrdinateDimension.js.map +1 -0
- package/lib/entity/dimension/AcDbRadialDimension.d.ts +214 -0
- package/lib/entity/dimension/AcDbRadialDimension.d.ts.map +1 -0
- package/lib/entity/dimension/AcDbRadialDimension.js +288 -0
- package/lib/entity/dimension/AcDbRadialDimension.js.map +1 -0
- package/lib/entity/dimension/index.d.ts +8 -0
- package/lib/entity/dimension/index.d.ts.map +1 -0
- package/lib/entity/dimension/index.js +8 -0
- package/lib/entity/dimension/index.js.map +1 -0
- package/lib/entity/index.d.ts +24 -0
- package/lib/entity/index.d.ts.map +1 -0
- package/lib/entity/index.js +24 -0
- package/lib/entity/index.js.map +1 -0
- package/lib/index.d.ts +10 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +10 -0
- package/lib/index.js.map +1 -0
- package/lib/misc/AcDbAngleUnits.d.ts +20 -0
- package/lib/misc/AcDbAngleUnits.d.ts.map +1 -0
- package/lib/misc/AcDbAngleUnits.js +21 -0
- package/lib/misc/AcDbAngleUnits.js.map +1 -0
- package/lib/misc/AcDbCodePage.d.ts +50 -0
- package/lib/misc/AcDbCodePage.d.ts.map +1 -0
- package/lib/misc/AcDbCodePage.js +100 -0
- package/lib/misc/AcDbCodePage.js.map +1 -0
- package/lib/misc/AcDbConstants.d.ts +24 -0
- package/lib/misc/AcDbConstants.d.ts.map +1 -0
- package/lib/misc/AcDbConstants.js +24 -0
- package/lib/misc/AcDbConstants.js.map +1 -0
- package/lib/misc/AcDbDimArrowType.d.ts +89 -0
- package/lib/misc/AcDbDimArrowType.d.ts.map +1 -0
- package/lib/misc/AcDbDimArrowType.js +90 -0
- package/lib/misc/AcDbDimArrowType.js.map +1 -0
- package/lib/misc/AcDbObjectIterator.d.ts +64 -0
- package/lib/misc/AcDbObjectIterator.d.ts.map +1 -0
- package/lib/misc/AcDbObjectIterator.js +84 -0
- package/lib/misc/AcDbObjectIterator.js.map +1 -0
- package/lib/misc/AcDbOsnapMode.d.ts +51 -0
- package/lib/misc/AcDbOsnapMode.d.ts.map +1 -0
- package/lib/misc/AcDbOsnapMode.js +52 -0
- package/lib/misc/AcDbOsnapMode.js.map +1 -0
- package/lib/misc/AcDbRenderingCache.d.ts +141 -0
- package/lib/misc/AcDbRenderingCache.d.ts.map +1 -0
- package/lib/misc/AcDbRenderingCache.js +239 -0
- package/lib/misc/AcDbRenderingCache.js.map +1 -0
- package/lib/misc/AcDbUnitsValue.d.ts +101 -0
- package/lib/misc/AcDbUnitsValue.d.ts.map +1 -0
- package/lib/misc/AcDbUnitsValue.js +121 -0
- package/lib/misc/AcDbUnitsValue.js.map +1 -0
- package/lib/misc/index.d.ts +9 -0
- package/lib/misc/index.d.ts.map +1 -0
- package/lib/misc/index.js +9 -0
- package/lib/misc/index.js.map +1 -0
- package/lib/object/AcDbDictionary.d.ts +178 -0
- package/lib/object/AcDbDictionary.d.ts.map +1 -0
- package/lib/object/AcDbDictionary.js +264 -0
- package/lib/object/AcDbDictionary.js.map +1 -0
- package/lib/object/AcDbRasterImageDef.d.ts +54 -0
- package/lib/object/AcDbRasterImageDef.d.ts.map +1 -0
- package/lib/object/AcDbRasterImageDef.js +82 -0
- package/lib/object/AcDbRasterImageDef.js.map +1 -0
- package/lib/object/index.d.ts +4 -0
- package/lib/object/index.d.ts.map +1 -0
- package/lib/object/index.js +4 -0
- package/lib/object/index.js.map +1 -0
- package/lib/object/layout/AcDbLayout.d.ts +190 -0
- package/lib/object/layout/AcDbLayout.d.ts.map +1 -0
- package/lib/object/layout/AcDbLayout.js +253 -0
- package/lib/object/layout/AcDbLayout.js.map +1 -0
- package/lib/object/layout/AcDbLayoutDictionary.d.ts +47 -0
- package/lib/object/layout/AcDbLayoutDictionary.d.ts.map +1 -0
- package/lib/object/layout/AcDbLayoutDictionary.js +122 -0
- package/lib/object/layout/AcDbLayoutDictionary.js.map +1 -0
- package/lib/object/layout/AcDbLayoutManager.d.ts +188 -0
- package/lib/object/layout/AcDbLayoutManager.d.ts.map +1 -0
- package/lib/object/layout/AcDbLayoutManager.js +245 -0
- package/lib/object/layout/AcDbLayoutManager.js.map +1 -0
- package/lib/object/layout/index.d.ts +4 -0
- package/lib/object/layout/index.d.ts.map +1 -0
- package/lib/object/layout/index.js +4 -0
- package/lib/object/layout/index.js.map +1 -0
- package/package.json +4 -4
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
if (typeof b !== "function" && b !== null)
|
|
10
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
11
|
+
extendStatics(d, b);
|
|
12
|
+
function __() { this.constructor = d; }
|
|
13
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14
|
+
};
|
|
15
|
+
})();
|
|
16
|
+
import { defaults } from '@mlightcad/common';
|
|
17
|
+
import { AcDbObject } from '../base/AcDbObject';
|
|
18
|
+
/**
|
|
19
|
+
* Base class for all symbol table records.
|
|
20
|
+
*
|
|
21
|
+
* This class provides the fundamental functionality for all symbol table records,
|
|
22
|
+
* including name management and common attributes. Symbol table records represent
|
|
23
|
+
* entries in various symbol tables such as layer tables, linetype tables, text
|
|
24
|
+
* style tables, etc.
|
|
25
|
+
*
|
|
26
|
+
* @template ATTRS - The type of attributes this symbol table record can have
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```typescript
|
|
30
|
+
* class MySymbolTableRecord extends AcDbSymbolTableRecord<MySymbolTableRecordAttrs> {
|
|
31
|
+
* constructor(attrs?: Partial<MySymbolTableRecordAttrs>) {
|
|
32
|
+
* super(attrs);
|
|
33
|
+
* }
|
|
34
|
+
* }
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
var AcDbSymbolTableRecord = /** @class */ (function (_super) {
|
|
38
|
+
__extends(AcDbSymbolTableRecord, _super);
|
|
39
|
+
/**
|
|
40
|
+
* Creates a new AcDbSymbolTableRecord instance.
|
|
41
|
+
*
|
|
42
|
+
* @param attrs - Input attribute values for this symbol table record
|
|
43
|
+
* @param defaultAttrs - Default values for attributes of this symbol table record
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* ```typescript
|
|
47
|
+
* const record = new AcDbSymbolTableRecord({ name: 'MyRecord' });
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
function AcDbSymbolTableRecord(attrs, defaultAttrs) {
|
|
51
|
+
attrs = attrs || {};
|
|
52
|
+
defaults(attrs, { name: '' });
|
|
53
|
+
return _super.call(this, attrs, defaultAttrs) || this;
|
|
54
|
+
}
|
|
55
|
+
Object.defineProperty(AcDbSymbolTableRecord.prototype, "name", {
|
|
56
|
+
/**
|
|
57
|
+
* Gets or sets the name of the symbol table record.
|
|
58
|
+
*
|
|
59
|
+
* This property corresponds to DXF group code 2 and is used for
|
|
60
|
+
* identifying and referencing the symbol table record.
|
|
61
|
+
*
|
|
62
|
+
* @returns The name of the symbol table record
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* ```typescript
|
|
66
|
+
* const recordName = record.name;
|
|
67
|
+
* record.name = 'NewRecordName';
|
|
68
|
+
* ```
|
|
69
|
+
*/
|
|
70
|
+
get: function () {
|
|
71
|
+
return this.getAttr('name');
|
|
72
|
+
},
|
|
73
|
+
set: function (value) {
|
|
74
|
+
this.setAttr('name', value);
|
|
75
|
+
},
|
|
76
|
+
enumerable: false,
|
|
77
|
+
configurable: true
|
|
78
|
+
});
|
|
79
|
+
return AcDbSymbolTableRecord;
|
|
80
|
+
}(AcDbObject));
|
|
81
|
+
export { AcDbSymbolTableRecord };
|
|
82
|
+
//# sourceMappingURL=AcDbSymbolTableRecord.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcDbSymbolTableRecord.js","sourceRoot":"","sources":["../../src/database/AcDbSymbolTableRecord.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAE5C,OAAO,EAAE,UAAU,EAAmB,MAAM,oBAAoB,CAAA;AAahE;;;;;;;;;;;;;;;;;;GAkBG;AACH;IAEU,yCAAiB;IACzB;;;;;;;;;;OAUG;IACH,+BAAY,KAAsB,EAAE,YAA6B;QAC/D,KAAK,GAAG,KAAK,IAAI,EAAE,CAAA;QACnB,QAAQ,CAAC,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAA;QAC7B,OAAA,MAAK,YAAC,KAAK,EAAE,YAAY,CAAC,SAAA;IAC5B,CAAC;IAgBD,sBAAI,uCAAI;QAdR;;;;;;;;;;;;;WAaG;aACH;YACE,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAA;QAC7B,CAAC;aACD,UAAS,KAAa;YACpB,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,KAAK,CAAC,CAAA;QAC7B,CAAC;;;OAHA;IAIH,4BAAC;AAAD,CAAC,AAxCD,CAEU,UAAU,GAsCnB"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { AcDbDatabase } from './AcDbDatabase';
|
|
2
|
+
import { AcDbSymbolTable } from './AcDbSymbolTable';
|
|
3
|
+
import { AcDbTextStyleTableRecord } from './AcDbTextStyleTableRecord';
|
|
4
|
+
/**
|
|
5
|
+
* Symbol table for text style table records.
|
|
6
|
+
*
|
|
7
|
+
* This class manages text style table records which represent text styles
|
|
8
|
+
* within a drawing database. Text styles define the appearance and properties
|
|
9
|
+
* of text entities, including font, size, and other formatting options.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```typescript
|
|
13
|
+
* const textStyleTable = new AcDbTextStyleTable(database);
|
|
14
|
+
* const fonts = textStyleTable.fonts;
|
|
15
|
+
* console.log('Available fonts:', fonts);
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
export declare class AcDbTextStyleTable extends AcDbSymbolTable<AcDbTextStyleTableRecord> {
|
|
19
|
+
/**
|
|
20
|
+
* Creates a new AcDbTextStyleTable instance.
|
|
21
|
+
*
|
|
22
|
+
* @param db - The database this text style table belongs to
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```typescript
|
|
26
|
+
* const textStyleTable = new AcDbTextStyleTable(database);
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
constructor(db: AcDbDatabase);
|
|
30
|
+
/**
|
|
31
|
+
* Gets all fonts used in text styles.
|
|
32
|
+
*
|
|
33
|
+
* This method iterates through all text style table records and extracts
|
|
34
|
+
* the font names from both the primary font file and big font file.
|
|
35
|
+
* Font names are normalized by removing file extensions and converting to lowercase.
|
|
36
|
+
*
|
|
37
|
+
* @returns Array of unique font names used in text styles
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* ```typescript
|
|
41
|
+
* const fonts = textStyleTable.fonts;
|
|
42
|
+
* console.log('Available fonts:', fonts);
|
|
43
|
+
* // Output: ['arial', 'times', 'calibri', ...]
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
get fonts(): string[];
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=AcDbTextStyleTable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcDbTextStyleTable.d.ts","sourceRoot":"","sources":["../../src/database/AcDbTextStyleTable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAA;AAErE;;;;;;;;;;;;;GAaG;AACH,qBAAa,kBAAmB,SAAQ,eAAe,CAAC,wBAAwB,CAAC;IAC/E;;;;;;;;;OASG;gBACS,EAAE,EAAE,YAAY;IAI5B;;;;;;;;;;;;;;;OAeG;IACH,IAAI,KAAK,aAoBR;CACF"}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
if (typeof b !== "function" && b !== null)
|
|
10
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
11
|
+
extendStatics(d, b);
|
|
12
|
+
function __() { this.constructor = d; }
|
|
13
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14
|
+
};
|
|
15
|
+
})();
|
|
16
|
+
var __values = (this && this.__values) || function(o) {
|
|
17
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
18
|
+
if (m) return m.call(o);
|
|
19
|
+
if (o && typeof o.length === "number") return {
|
|
20
|
+
next: function () {
|
|
21
|
+
if (o && i >= o.length) o = void 0;
|
|
22
|
+
return { value: o && o[i++], done: !o };
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
26
|
+
};
|
|
27
|
+
import { AcDbSymbolTable } from './AcDbSymbolTable';
|
|
28
|
+
/**
|
|
29
|
+
* Symbol table for text style table records.
|
|
30
|
+
*
|
|
31
|
+
* This class manages text style table records which represent text styles
|
|
32
|
+
* within a drawing database. Text styles define the appearance and properties
|
|
33
|
+
* of text entities, including font, size, and other formatting options.
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* ```typescript
|
|
37
|
+
* const textStyleTable = new AcDbTextStyleTable(database);
|
|
38
|
+
* const fonts = textStyleTable.fonts;
|
|
39
|
+
* console.log('Available fonts:', fonts);
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
var AcDbTextStyleTable = /** @class */ (function (_super) {
|
|
43
|
+
__extends(AcDbTextStyleTable, _super);
|
|
44
|
+
/**
|
|
45
|
+
* Creates a new AcDbTextStyleTable instance.
|
|
46
|
+
*
|
|
47
|
+
* @param db - The database this text style table belongs to
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* ```typescript
|
|
51
|
+
* const textStyleTable = new AcDbTextStyleTable(database);
|
|
52
|
+
* ```
|
|
53
|
+
*/
|
|
54
|
+
function AcDbTextStyleTable(db) {
|
|
55
|
+
return _super.call(this, db) || this;
|
|
56
|
+
}
|
|
57
|
+
Object.defineProperty(AcDbTextStyleTable.prototype, "fonts", {
|
|
58
|
+
/**
|
|
59
|
+
* Gets all fonts used in text styles.
|
|
60
|
+
*
|
|
61
|
+
* This method iterates through all text style table records and extracts
|
|
62
|
+
* the font names from both the primary font file and big font file.
|
|
63
|
+
* Font names are normalized by removing file extensions and converting to lowercase.
|
|
64
|
+
*
|
|
65
|
+
* @returns Array of unique font names used in text styles
|
|
66
|
+
*
|
|
67
|
+
* @example
|
|
68
|
+
* ```typescript
|
|
69
|
+
* const fonts = textStyleTable.fonts;
|
|
70
|
+
* console.log('Available fonts:', fonts);
|
|
71
|
+
* // Output: ['arial', 'times', 'calibri', ...]
|
|
72
|
+
* ```
|
|
73
|
+
*/
|
|
74
|
+
get: function () {
|
|
75
|
+
var e_1, _a;
|
|
76
|
+
var fonts = new Set();
|
|
77
|
+
var setFontName = function (fontFileName) {
|
|
78
|
+
if (fontFileName) {
|
|
79
|
+
var lastDotIndex = fontFileName.lastIndexOf('.');
|
|
80
|
+
if (lastDotIndex >= 0) {
|
|
81
|
+
var fontName = fontFileName.substring(0, lastDotIndex).toLowerCase();
|
|
82
|
+
fonts.add(fontName);
|
|
83
|
+
}
|
|
84
|
+
else {
|
|
85
|
+
fonts.add(fontFileName.toLowerCase());
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
var iterator = this.newIterator();
|
|
90
|
+
try {
|
|
91
|
+
for (var iterator_1 = __values(iterator), iterator_1_1 = iterator_1.next(); !iterator_1_1.done; iterator_1_1 = iterator_1.next()) {
|
|
92
|
+
var item = iterator_1_1.value;
|
|
93
|
+
setFontName(item.fileName);
|
|
94
|
+
setFontName(item.bigFontFileName);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
98
|
+
finally {
|
|
99
|
+
try {
|
|
100
|
+
if (iterator_1_1 && !iterator_1_1.done && (_a = iterator_1.return)) _a.call(iterator_1);
|
|
101
|
+
}
|
|
102
|
+
finally { if (e_1) throw e_1.error; }
|
|
103
|
+
}
|
|
104
|
+
return Array.from(fonts);
|
|
105
|
+
},
|
|
106
|
+
enumerable: false,
|
|
107
|
+
configurable: true
|
|
108
|
+
});
|
|
109
|
+
return AcDbTextStyleTable;
|
|
110
|
+
}(AcDbSymbolTable));
|
|
111
|
+
export { AcDbTextStyleTable };
|
|
112
|
+
//# sourceMappingURL=AcDbTextStyleTable.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcDbTextStyleTable.js","sourceRoot":"","sources":["../../src/database/AcDbTextStyleTable.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AACA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAGnD;;;;;;;;;;;;;GAaG;AACH;IAAwC,sCAAyC;IAC/E;;;;;;;;;OASG;IACH,4BAAY,EAAgB;QAC1B,OAAA,MAAK,YAAC,EAAE,CAAC,SAAA;IACX,CAAC;IAkBD,sBAAI,qCAAK;QAhBT;;;;;;;;;;;;;;;WAeG;aACH;;YACE,IAAM,KAAK,GAAG,IAAI,GAAG,EAAU,CAAA;YAC/B,IAAM,WAAW,GAAG,UAAC,YAAoB;gBACvC,IAAI,YAAY,EAAE,CAAC;oBACjB,IAAM,YAAY,GAAG,YAAY,CAAC,WAAW,CAAC,GAAG,CAAC,CAAA;oBAClD,IAAI,YAAY,IAAI,CAAC,EAAE,CAAC;wBACtB,IAAM,QAAQ,GAAG,YAAY,CAAC,SAAS,CAAC,CAAC,EAAE,YAAY,CAAC,CAAC,WAAW,EAAE,CAAA;wBACtE,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAA;oBACrB,CAAC;yBAAM,CAAC;wBACN,KAAK,CAAC,GAAG,CAAC,YAAY,CAAC,WAAW,EAAE,CAAC,CAAA;oBACvC,CAAC;gBACH,CAAC;YACH,CAAC,CAAA;YAED,IAAM,QAAQ,GAAG,IAAI,CAAC,WAAW,EAAE,CAAA;;gBACnC,KAAmB,IAAA,aAAA,SAAA,QAAQ,CAAA,kCAAA,wDAAE,CAAC;oBAAzB,IAAM,IAAI,qBAAA;oBACb,WAAW,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;oBAC1B,WAAW,CAAC,IAAI,CAAC,eAAe,CAAC,CAAA;gBACnC,CAAC;;;;;;;;;YACD,OAAO,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;QAC1B,CAAC;;;OAAA;IACH,yBAAC;AAAD,CAAC,AApDD,CAAwC,eAAe,GAoDtD"}
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
import { AcGiBaseTextStyle } from '@mlightcad/graphic-interface';
|
|
2
|
+
import { AcDbSymbolTableRecord } from './AcDbSymbolTableRecord';
|
|
3
|
+
/**
|
|
4
|
+
* Represents a record in the text style table.
|
|
5
|
+
*
|
|
6
|
+
* This class represents the records that are found in the text style table (known as the "style"
|
|
7
|
+
* table in DXF). Each of these records represents a specific set of text parameters such as font,
|
|
8
|
+
* default size, relative x scaling, vertical or horizontal orientation, etc.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```typescript
|
|
12
|
+
* const textStyle = new AcGiBaseTextStyle();
|
|
13
|
+
* textStyle.name = 'MyStyle';
|
|
14
|
+
* textStyle.font = 'Arial';
|
|
15
|
+
* const record = new AcDbTextStyleTableRecord(textStyle);
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
export declare class AcDbTextStyleTableRecord extends AcDbSymbolTableRecord {
|
|
19
|
+
/** The text style configuration */
|
|
20
|
+
private _textStyle;
|
|
21
|
+
/** Whether text drawn with this style is vertical */
|
|
22
|
+
private _isVertical;
|
|
23
|
+
/**
|
|
24
|
+
* Creates a new AcDbTextStyleTableRecord instance.
|
|
25
|
+
*
|
|
26
|
+
* @param textStyle - The text style configuration to use
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```typescript
|
|
30
|
+
* const textStyle = new AcGiBaseTextStyle();
|
|
31
|
+
* textStyle.name = 'MyStyle';
|
|
32
|
+
* const record = new AcDbTextStyleTableRecord(textStyle);
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
constructor(textStyle: AcGiBaseTextStyle);
|
|
36
|
+
/**
|
|
37
|
+
* Gets or sets the obliquing angle.
|
|
38
|
+
*
|
|
39
|
+
* The obliquing angle is the angle from the text's vertical; that is, the
|
|
40
|
+
* top of the text "slants" relative to the bottom--the same as the slope in this italic text.
|
|
41
|
+
* Positive angles slant characters forward at their tops. Negative angles have 2pi added to them
|
|
42
|
+
* to convert them to their positive equivalent.
|
|
43
|
+
*
|
|
44
|
+
* @returns The obliquing angle in radians
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* ```typescript
|
|
48
|
+
* const angle = record.obliquingAngle;
|
|
49
|
+
* record.obliquingAngle = Math.PI / 6; // 30 degrees
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
get obliquingAngle(): number;
|
|
53
|
+
set obliquingAngle(value: number);
|
|
54
|
+
/**
|
|
55
|
+
* Gets or sets the text height used for the last text created using this text style.
|
|
56
|
+
*
|
|
57
|
+
* This value is updated automatically by AutoCAD after the creation of any text object
|
|
58
|
+
* that references this text style table record. If the textSize value for this text style
|
|
59
|
+
* is 0, then the priorSize value is used by AutoCAD as the default text height for the
|
|
60
|
+
* next text created using this text style.
|
|
61
|
+
*
|
|
62
|
+
* This value is automatically changed by the use of the text command. It will only be
|
|
63
|
+
* automatically changed if the textSize is set to 0 so that users are prompted for a height.
|
|
64
|
+
*
|
|
65
|
+
* @returns The prior text size
|
|
66
|
+
*
|
|
67
|
+
* @example
|
|
68
|
+
* ```typescript
|
|
69
|
+
* const priorSize = record.priorSize;
|
|
70
|
+
* record.priorSize = 12.0;
|
|
71
|
+
* ```
|
|
72
|
+
*/
|
|
73
|
+
get priorSize(): number;
|
|
74
|
+
set priorSize(value: number);
|
|
75
|
+
/**
|
|
76
|
+
* Gets or sets the default size of the text drawn with this text style.
|
|
77
|
+
*
|
|
78
|
+
* If the text size is set to 0, then each use of the AutoCAD text commands prompt
|
|
79
|
+
* for a text height to use in creating the text entity. If textSize is non-zero,
|
|
80
|
+
* the text command will not prompt for a text height and will use this value.
|
|
81
|
+
*
|
|
82
|
+
* @returns The default text size
|
|
83
|
+
*
|
|
84
|
+
* @example
|
|
85
|
+
* ```typescript
|
|
86
|
+
* const textSize = record.textSize;
|
|
87
|
+
* record.textSize = 10.0; // Fixed text height
|
|
88
|
+
* ```
|
|
89
|
+
*/
|
|
90
|
+
get textSize(): number;
|
|
91
|
+
set textSize(value: number);
|
|
92
|
+
/**
|
|
93
|
+
* Gets or sets the width factor (also referred to as the relative X-scale factor) for the text style.
|
|
94
|
+
*
|
|
95
|
+
* The width factor is applied to the text's width to allow the width to be adjusted
|
|
96
|
+
* independently of the height. For example, if the width factor value is 0.8, then the text is
|
|
97
|
+
* drawn with a width that is 80% of its normal "unadjusted" width.
|
|
98
|
+
*
|
|
99
|
+
* @returns The width factor
|
|
100
|
+
*
|
|
101
|
+
* @example
|
|
102
|
+
* ```typescript
|
|
103
|
+
* const xScale = record.xScale;
|
|
104
|
+
* record.xScale = 0.8; // 80% width
|
|
105
|
+
* ```
|
|
106
|
+
*/
|
|
107
|
+
get xScale(): number;
|
|
108
|
+
set xScale(value: number);
|
|
109
|
+
/**
|
|
110
|
+
* Gets or sets whether text drawn with this text style is drawn vertically.
|
|
111
|
+
*
|
|
112
|
+
* @returns True if text is drawn vertically, false otherwise
|
|
113
|
+
*
|
|
114
|
+
* @example
|
|
115
|
+
* ```typescript
|
|
116
|
+
* if (record.isVertical) {
|
|
117
|
+
* console.log('Text style is vertical');
|
|
118
|
+
* }
|
|
119
|
+
* record.isVertical = true;
|
|
120
|
+
* ```
|
|
121
|
+
*/
|
|
122
|
+
get isVertical(): boolean;
|
|
123
|
+
set isVertical(value: boolean);
|
|
124
|
+
/**
|
|
125
|
+
* Gets or sets the name of the font file for this text style.
|
|
126
|
+
*
|
|
127
|
+
* @returns The font file name
|
|
128
|
+
*
|
|
129
|
+
* @example
|
|
130
|
+
* ```typescript
|
|
131
|
+
* const fileName = record.fileName;
|
|
132
|
+
* record.fileName = 'Arial';
|
|
133
|
+
* ```
|
|
134
|
+
*/
|
|
135
|
+
get fileName(): string;
|
|
136
|
+
set fileName(value: string);
|
|
137
|
+
/**
|
|
138
|
+
* Gets or sets the name of the big font file for this text style.
|
|
139
|
+
*
|
|
140
|
+
* Big font files are used for languages that require more than 256 characters,
|
|
141
|
+
* such as Chinese, Japanese, and Korean.
|
|
142
|
+
*
|
|
143
|
+
* @returns The big font file name
|
|
144
|
+
*
|
|
145
|
+
* @example
|
|
146
|
+
* ```typescript
|
|
147
|
+
* const bigFontFileName = record.bigFontFileName;
|
|
148
|
+
* record.bigFontFileName = 'bigfont.shx';
|
|
149
|
+
* ```
|
|
150
|
+
*/
|
|
151
|
+
get bigFontFileName(): string;
|
|
152
|
+
set bigFontFileName(value: string);
|
|
153
|
+
/**
|
|
154
|
+
* Gets the text style information used by the renderer.
|
|
155
|
+
*
|
|
156
|
+
* @returns The text style configuration
|
|
157
|
+
*
|
|
158
|
+
* @example
|
|
159
|
+
* ```typescript
|
|
160
|
+
* const textStyle = record.textStyle;
|
|
161
|
+
* console.log('Font:', textStyle.font);
|
|
162
|
+
* ```
|
|
163
|
+
*/
|
|
164
|
+
get textStyle(): AcGiBaseTextStyle;
|
|
165
|
+
/**
|
|
166
|
+
* Removes the file extension from a file name.
|
|
167
|
+
*
|
|
168
|
+
* @param pathName - The file path or name
|
|
169
|
+
* @returns The file name without extension
|
|
170
|
+
*
|
|
171
|
+
* @example
|
|
172
|
+
* ```typescript
|
|
173
|
+
* const fileName = this.getFileNameWithoutExtension('arial.ttf');
|
|
174
|
+
* // Returns: 'arial'
|
|
175
|
+
* ```
|
|
176
|
+
*/
|
|
177
|
+
private getFileNameWithoutExtension;
|
|
178
|
+
}
|
|
179
|
+
//# sourceMappingURL=AcDbTextStyleTableRecord.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcDbTextStyleTableRecord.d.ts","sourceRoot":"","sources":["../../src/database/AcDbTextStyleTableRecord.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AAEhE,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAE/D;;;;;;;;;;;;;;GAcG;AACH,qBAAa,wBAAyB,SAAQ,qBAAqB;IACjE,mCAAmC;IACnC,OAAO,CAAC,UAAU,CAAmB;IACrC,qDAAqD;IACrD,OAAO,CAAC,WAAW,CAAS;IAE5B;;;;;;;;;;;OAWG;gBACS,SAAS,EAAE,iBAAiB;IAYxC;;;;;;;;;;;;;;;OAeG;IACH,IAAI,cAAc,IAGQ,MAAM,CAD/B;IACD,IAAI,cAAc,CAAC,KAAK,EAAE,MAAM,EAE/B;IAED;;;;;;;;;;;;;;;;;;OAkBG;IACH,IAAI,SAAS,IAGQ,MAAM,CAD1B;IACD,IAAI,SAAS,CAAC,KAAK,EAAE,MAAM,EAE1B;IAED;;;;;;;;;;;;;;OAcG;IACH,IAAI,QAAQ,IAGQ,MAAM,CADzB;IACD,IAAI,QAAQ,CAAC,KAAK,EAAE,MAAM,EAEzB;IAED;;;;;;;;;;;;;;OAcG;IACH,IAAI,MAAM,IAGQ,MAAM,CADvB;IACD,IAAI,MAAM,CAAC,KAAK,EAAE,MAAM,EAEvB;IAED;;;;;;;;;;;;OAYG;IACH,IAAI,UAAU,IAGQ,OAAO,CAD5B;IACD,IAAI,UAAU,CAAC,KAAK,EAAE,OAAO,EAE5B;IAED;;;;;;;;;;OAUG;IACH,IAAI,QAAQ,IAGQ,MAAM,CADzB;IACD,IAAI,QAAQ,CAAC,KAAK,EAAE,MAAM,EAEzB;IAED;;;;;;;;;;;;;OAaG;IACH,IAAI,eAAe,IAGQ,MAAM,CADhC;IACD,IAAI,eAAe,CAAC,KAAK,EAAE,MAAM,EAEhC;IAED;;;;;;;;;;OAUG;IACH,IAAI,SAAS,sBAEZ;IAED;;;;;;;;;;;OAWG;IACH,OAAO,CAAC,2BAA2B;CAgBpC"}
|