@mlightcad/data-model 1.3.3 → 1.3.5
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 +25995 -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 +883 -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 +160 -0
- package/lib/converter/AcDbEntitiyConverter.d.ts.map +1 -0
- package/lib/converter/AcDbEntitiyConverter.js +708 -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/AcDb2dPolyline.d.ts +146 -0
- package/lib/entity/AcDb2dPolyline.d.ts.map +1 -0
- package/lib/entity/AcDb2dPolyline.js +220 -0
- package/lib/entity/AcDb2dPolyline.js.map +1 -0
- package/lib/entity/AcDb2dVertex.d.ts +143 -0
- package/lib/entity/AcDb2dVertex.d.ts.map +1 -0
- package/lib/entity/AcDb2dVertex.js +210 -0
- package/lib/entity/AcDb2dVertex.js.map +1 -0
- package/lib/entity/AcDb3dPolyline.d.ts +102 -0
- package/lib/entity/AcDb3dPolyline.d.ts.map +1 -0
- package/lib/entity/AcDb3dPolyline.js +158 -0
- package/lib/entity/AcDb3dPolyline.js.map +1 -0
- package/lib/entity/AcDb3dVertex.d.ts +83 -0
- package/lib/entity/AcDb3dVertex.d.ts.map +1 -0
- package/lib/entity/AcDb3dVertex.js +133 -0
- package/lib/entity/AcDb3dVertex.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 +28 -0
- package/lib/entity/index.d.ts.map +1 -0
- package/lib/entity/index.js +28 -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,276 @@
|
|
|
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 { AcDbSymbolTableRecord } from './AcDbSymbolTableRecord';
|
|
17
|
+
/**
|
|
18
|
+
* Represents a record in the text style table.
|
|
19
|
+
*
|
|
20
|
+
* This class represents the records that are found in the text style table (known as the "style"
|
|
21
|
+
* table in DXF). Each of these records represents a specific set of text parameters such as font,
|
|
22
|
+
* default size, relative x scaling, vertical or horizontal orientation, etc.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```typescript
|
|
26
|
+
* const textStyle = new AcGiBaseTextStyle();
|
|
27
|
+
* textStyle.name = 'MyStyle';
|
|
28
|
+
* textStyle.font = 'Arial';
|
|
29
|
+
* const record = new AcDbTextStyleTableRecord(textStyle);
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
var AcDbTextStyleTableRecord = /** @class */ (function (_super) {
|
|
33
|
+
__extends(AcDbTextStyleTableRecord, _super);
|
|
34
|
+
/**
|
|
35
|
+
* Creates a new AcDbTextStyleTableRecord instance.
|
|
36
|
+
*
|
|
37
|
+
* @param textStyle - The text style configuration to use
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* ```typescript
|
|
41
|
+
* const textStyle = new AcGiBaseTextStyle();
|
|
42
|
+
* textStyle.name = 'MyStyle';
|
|
43
|
+
* const record = new AcDbTextStyleTableRecord(textStyle);
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
function AcDbTextStyleTableRecord(textStyle) {
|
|
47
|
+
var _this = _super.call(this) || this;
|
|
48
|
+
_this.name = textStyle.name;
|
|
49
|
+
_this._textStyle = textStyle;
|
|
50
|
+
// Property `font` in text style may be empty string
|
|
51
|
+
// If it contans file extension, just remove file extension.
|
|
52
|
+
_this._textStyle.font = _this.getFileNameWithoutExtension(_this._textStyle.font || _this._textStyle.extendedFont || _this.name);
|
|
53
|
+
_this._isVertical = false;
|
|
54
|
+
return _this;
|
|
55
|
+
}
|
|
56
|
+
Object.defineProperty(AcDbTextStyleTableRecord.prototype, "obliquingAngle", {
|
|
57
|
+
/**
|
|
58
|
+
* Gets or sets the obliquing angle.
|
|
59
|
+
*
|
|
60
|
+
* The obliquing angle is the angle from the text's vertical; that is, the
|
|
61
|
+
* top of the text "slants" relative to the bottom--the same as the slope in this italic text.
|
|
62
|
+
* Positive angles slant characters forward at their tops. Negative angles have 2pi added to them
|
|
63
|
+
* to convert them to their positive equivalent.
|
|
64
|
+
*
|
|
65
|
+
* @returns The obliquing angle in radians
|
|
66
|
+
*
|
|
67
|
+
* @example
|
|
68
|
+
* ```typescript
|
|
69
|
+
* const angle = record.obliquingAngle;
|
|
70
|
+
* record.obliquingAngle = Math.PI / 6; // 30 degrees
|
|
71
|
+
* ```
|
|
72
|
+
*/
|
|
73
|
+
get: function () {
|
|
74
|
+
return this._textStyle.obliqueAngle;
|
|
75
|
+
},
|
|
76
|
+
set: function (value) {
|
|
77
|
+
this._textStyle.obliqueAngle = value;
|
|
78
|
+
},
|
|
79
|
+
enumerable: false,
|
|
80
|
+
configurable: true
|
|
81
|
+
});
|
|
82
|
+
Object.defineProperty(AcDbTextStyleTableRecord.prototype, "priorSize", {
|
|
83
|
+
/**
|
|
84
|
+
* Gets or sets the text height used for the last text created using this text style.
|
|
85
|
+
*
|
|
86
|
+
* This value is updated automatically by AutoCAD after the creation of any text object
|
|
87
|
+
* that references this text style table record. If the textSize value for this text style
|
|
88
|
+
* is 0, then the priorSize value is used by AutoCAD as the default text height for the
|
|
89
|
+
* next text created using this text style.
|
|
90
|
+
*
|
|
91
|
+
* This value is automatically changed by the use of the text command. It will only be
|
|
92
|
+
* automatically changed if the textSize is set to 0 so that users are prompted for a height.
|
|
93
|
+
*
|
|
94
|
+
* @returns The prior text size
|
|
95
|
+
*
|
|
96
|
+
* @example
|
|
97
|
+
* ```typescript
|
|
98
|
+
* const priorSize = record.priorSize;
|
|
99
|
+
* record.priorSize = 12.0;
|
|
100
|
+
* ```
|
|
101
|
+
*/
|
|
102
|
+
get: function () {
|
|
103
|
+
return this._textStyle.lastHeight;
|
|
104
|
+
},
|
|
105
|
+
set: function (value) {
|
|
106
|
+
this._textStyle.lastHeight = value;
|
|
107
|
+
},
|
|
108
|
+
enumerable: false,
|
|
109
|
+
configurable: true
|
|
110
|
+
});
|
|
111
|
+
Object.defineProperty(AcDbTextStyleTableRecord.prototype, "textSize", {
|
|
112
|
+
/**
|
|
113
|
+
* Gets or sets the default size of the text drawn with this text style.
|
|
114
|
+
*
|
|
115
|
+
* If the text size is set to 0, then each use of the AutoCAD text commands prompt
|
|
116
|
+
* for a text height to use in creating the text entity. If textSize is non-zero,
|
|
117
|
+
* the text command will not prompt for a text height and will use this value.
|
|
118
|
+
*
|
|
119
|
+
* @returns The default text size
|
|
120
|
+
*
|
|
121
|
+
* @example
|
|
122
|
+
* ```typescript
|
|
123
|
+
* const textSize = record.textSize;
|
|
124
|
+
* record.textSize = 10.0; // Fixed text height
|
|
125
|
+
* ```
|
|
126
|
+
*/
|
|
127
|
+
get: function () {
|
|
128
|
+
return this._textStyle.fixedTextHeight;
|
|
129
|
+
},
|
|
130
|
+
set: function (value) {
|
|
131
|
+
this._textStyle.fixedTextHeight = value;
|
|
132
|
+
},
|
|
133
|
+
enumerable: false,
|
|
134
|
+
configurable: true
|
|
135
|
+
});
|
|
136
|
+
Object.defineProperty(AcDbTextStyleTableRecord.prototype, "xScale", {
|
|
137
|
+
/**
|
|
138
|
+
* Gets or sets the width factor (also referred to as the relative X-scale factor) for the text style.
|
|
139
|
+
*
|
|
140
|
+
* The width factor is applied to the text's width to allow the width to be adjusted
|
|
141
|
+
* independently of the height. For example, if the width factor value is 0.8, then the text is
|
|
142
|
+
* drawn with a width that is 80% of its normal "unadjusted" width.
|
|
143
|
+
*
|
|
144
|
+
* @returns The width factor
|
|
145
|
+
*
|
|
146
|
+
* @example
|
|
147
|
+
* ```typescript
|
|
148
|
+
* const xScale = record.xScale;
|
|
149
|
+
* record.xScale = 0.8; // 80% width
|
|
150
|
+
* ```
|
|
151
|
+
*/
|
|
152
|
+
get: function () {
|
|
153
|
+
return this._textStyle.widthFactor;
|
|
154
|
+
},
|
|
155
|
+
set: function (value) {
|
|
156
|
+
this._textStyle.widthFactor = value;
|
|
157
|
+
},
|
|
158
|
+
enumerable: false,
|
|
159
|
+
configurable: true
|
|
160
|
+
});
|
|
161
|
+
Object.defineProperty(AcDbTextStyleTableRecord.prototype, "isVertical", {
|
|
162
|
+
/**
|
|
163
|
+
* Gets or sets whether text drawn with this text style is drawn vertically.
|
|
164
|
+
*
|
|
165
|
+
* @returns True if text is drawn vertically, false otherwise
|
|
166
|
+
*
|
|
167
|
+
* @example
|
|
168
|
+
* ```typescript
|
|
169
|
+
* if (record.isVertical) {
|
|
170
|
+
* console.log('Text style is vertical');
|
|
171
|
+
* }
|
|
172
|
+
* record.isVertical = true;
|
|
173
|
+
* ```
|
|
174
|
+
*/
|
|
175
|
+
get: function () {
|
|
176
|
+
return this._isVertical;
|
|
177
|
+
},
|
|
178
|
+
set: function (value) {
|
|
179
|
+
this._isVertical = value;
|
|
180
|
+
},
|
|
181
|
+
enumerable: false,
|
|
182
|
+
configurable: true
|
|
183
|
+
});
|
|
184
|
+
Object.defineProperty(AcDbTextStyleTableRecord.prototype, "fileName", {
|
|
185
|
+
/**
|
|
186
|
+
* Gets or sets the name of the font file for this text style.
|
|
187
|
+
*
|
|
188
|
+
* @returns The font file name
|
|
189
|
+
*
|
|
190
|
+
* @example
|
|
191
|
+
* ```typescript
|
|
192
|
+
* const fileName = record.fileName;
|
|
193
|
+
* record.fileName = 'Arial';
|
|
194
|
+
* ```
|
|
195
|
+
*/
|
|
196
|
+
get: function () {
|
|
197
|
+
return this._textStyle.font;
|
|
198
|
+
},
|
|
199
|
+
set: function (value) {
|
|
200
|
+
this._textStyle.font = value;
|
|
201
|
+
},
|
|
202
|
+
enumerable: false,
|
|
203
|
+
configurable: true
|
|
204
|
+
});
|
|
205
|
+
Object.defineProperty(AcDbTextStyleTableRecord.prototype, "bigFontFileName", {
|
|
206
|
+
/**
|
|
207
|
+
* Gets or sets the name of the big font file for this text style.
|
|
208
|
+
*
|
|
209
|
+
* Big font files are used for languages that require more than 256 characters,
|
|
210
|
+
* such as Chinese, Japanese, and Korean.
|
|
211
|
+
*
|
|
212
|
+
* @returns The big font file name
|
|
213
|
+
*
|
|
214
|
+
* @example
|
|
215
|
+
* ```typescript
|
|
216
|
+
* const bigFontFileName = record.bigFontFileName;
|
|
217
|
+
* record.bigFontFileName = 'bigfont.shx';
|
|
218
|
+
* ```
|
|
219
|
+
*/
|
|
220
|
+
get: function () {
|
|
221
|
+
return this._textStyle.bigFont;
|
|
222
|
+
},
|
|
223
|
+
set: function (value) {
|
|
224
|
+
this._textStyle.bigFont = value;
|
|
225
|
+
},
|
|
226
|
+
enumerable: false,
|
|
227
|
+
configurable: true
|
|
228
|
+
});
|
|
229
|
+
Object.defineProperty(AcDbTextStyleTableRecord.prototype, "textStyle", {
|
|
230
|
+
/**
|
|
231
|
+
* Gets the text style information used by the renderer.
|
|
232
|
+
*
|
|
233
|
+
* @returns The text style configuration
|
|
234
|
+
*
|
|
235
|
+
* @example
|
|
236
|
+
* ```typescript
|
|
237
|
+
* const textStyle = record.textStyle;
|
|
238
|
+
* console.log('Font:', textStyle.font);
|
|
239
|
+
* ```
|
|
240
|
+
*/
|
|
241
|
+
get: function () {
|
|
242
|
+
return this._textStyle;
|
|
243
|
+
},
|
|
244
|
+
enumerable: false,
|
|
245
|
+
configurable: true
|
|
246
|
+
});
|
|
247
|
+
/**
|
|
248
|
+
* Removes the file extension from a file name.
|
|
249
|
+
*
|
|
250
|
+
* @param pathName - The file path or name
|
|
251
|
+
* @returns The file name without extension
|
|
252
|
+
*
|
|
253
|
+
* @example
|
|
254
|
+
* ```typescript
|
|
255
|
+
* const fileName = this.getFileNameWithoutExtension('arial.ttf');
|
|
256
|
+
* // Returns: 'arial'
|
|
257
|
+
* ```
|
|
258
|
+
*/
|
|
259
|
+
AcDbTextStyleTableRecord.prototype.getFileNameWithoutExtension = function (pathName) {
|
|
260
|
+
var fileName = pathName.split('/').pop();
|
|
261
|
+
if (fileName) {
|
|
262
|
+
// Find the last dot to separate the extension, if any
|
|
263
|
+
var dotIndex = fileName.lastIndexOf('.');
|
|
264
|
+
// If no dot is found, return the file name as is
|
|
265
|
+
if (dotIndex === -1) {
|
|
266
|
+
return fileName;
|
|
267
|
+
}
|
|
268
|
+
// Otherwise, return the part before the last dot (file name without extension)
|
|
269
|
+
return fileName.substring(0, dotIndex);
|
|
270
|
+
}
|
|
271
|
+
return pathName;
|
|
272
|
+
};
|
|
273
|
+
return AcDbTextStyleTableRecord;
|
|
274
|
+
}(AcDbSymbolTableRecord));
|
|
275
|
+
export { AcDbTextStyleTableRecord };
|
|
276
|
+
//# sourceMappingURL=AcDbTextStyleTableRecord.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcDbTextStyleTableRecord.js","sourceRoot":"","sources":["../../src/database/AcDbTextStyleTableRecord.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { AcDbDatabase } from './AcDbDatabase';
|
|
2
|
+
import { AcDbSymbolTable } from './AcDbSymbolTable';
|
|
3
|
+
import { AcDbViewportTableRecord } from './AcDbViewportTableRecord';
|
|
4
|
+
/**
|
|
5
|
+
* Symbol table for viewport table records.
|
|
6
|
+
*
|
|
7
|
+
* This class manages viewport table records which represent viewport configurations
|
|
8
|
+
* within AutoCAD. Viewports define how the drawing is displayed in different
|
|
9
|
+
* areas of the screen or paper space, including zoom levels, pan positions,
|
|
10
|
+
* and other display properties.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```typescript
|
|
14
|
+
* const viewportTable = new AcDbViewportTable(database);
|
|
15
|
+
* const viewport = viewportTable.getAt('*Active');
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
export declare class AcDbViewportTable extends AcDbSymbolTable<AcDbViewportTableRecord> {
|
|
19
|
+
/**
|
|
20
|
+
* Creates a new AcDbViewportTable instance.
|
|
21
|
+
*
|
|
22
|
+
* @param db - The database this viewport table belongs to
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```typescript
|
|
26
|
+
* const viewportTable = new AcDbViewportTable(database);
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
constructor(db: AcDbDatabase);
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=AcDbViewportTable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcDbViewportTable.d.ts","sourceRoot":"","sources":["../../src/database/AcDbViewportTable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAA;AAEnE;;;;;;;;;;;;;GAaG;AACH,qBAAa,iBAAkB,SAAQ,eAAe,CAAC,uBAAuB,CAAC;IAC7E;;;;;;;;;OASG;gBACS,EAAE,EAAE,YAAY;CAG7B"}
|
|
@@ -0,0 +1,49 @@
|
|
|
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 { AcDbSymbolTable } from './AcDbSymbolTable';
|
|
17
|
+
/**
|
|
18
|
+
* Symbol table for viewport table records.
|
|
19
|
+
*
|
|
20
|
+
* This class manages viewport table records which represent viewport configurations
|
|
21
|
+
* within AutoCAD. Viewports define how the drawing is displayed in different
|
|
22
|
+
* areas of the screen or paper space, including zoom levels, pan positions,
|
|
23
|
+
* and other display properties.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```typescript
|
|
27
|
+
* const viewportTable = new AcDbViewportTable(database);
|
|
28
|
+
* const viewport = viewportTable.getAt('*Active');
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
var AcDbViewportTable = /** @class */ (function (_super) {
|
|
32
|
+
__extends(AcDbViewportTable, _super);
|
|
33
|
+
/**
|
|
34
|
+
* Creates a new AcDbViewportTable instance.
|
|
35
|
+
*
|
|
36
|
+
* @param db - The database this viewport table belongs to
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```typescript
|
|
40
|
+
* const viewportTable = new AcDbViewportTable(database);
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
function AcDbViewportTable(db) {
|
|
44
|
+
return _super.call(this, db) || this;
|
|
45
|
+
}
|
|
46
|
+
return AcDbViewportTable;
|
|
47
|
+
}(AcDbSymbolTable));
|
|
48
|
+
export { AcDbViewportTable };
|
|
49
|
+
//# sourceMappingURL=AcDbViewportTable.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcDbViewportTable.js","sourceRoot":"","sources":["../../src/database/AcDbViewportTable.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAGnD;;;;;;;;;;;;;GAaG;AACH;IAAuC,qCAAwC;IAC7E;;;;;;;;;OASG;IACH,2BAAY,EAAgB;QAC1B,OAAA,MAAK,YAAC,EAAE,CAAC,SAAA;IACX,CAAC;IACH,wBAAC;AAAD,CAAC,AAdD,CAAuC,eAAe,GAcrD"}
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
import { AcGePoint2d } from '@mlightcad/geometry-engine';
|
|
2
|
+
import { AcGiView } from '@mlightcad/graphic-interface';
|
|
3
|
+
import { AcDbSymbolTableRecord } from './AcDbSymbolTableRecord';
|
|
4
|
+
/**
|
|
5
|
+
* Represents a viewport table record in AutoCAD.
|
|
6
|
+
*
|
|
7
|
+
* This class represents viewport arrangements in AutoCAD, which define how
|
|
8
|
+
* the drawing is displayed in different areas of the screen or paper space.
|
|
9
|
+
* Viewports can have their own zoom levels, pan positions, grid settings,
|
|
10
|
+
* and other display properties.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```typescript
|
|
14
|
+
* const viewportRecord = new AcDbViewportTableRecord();
|
|
15
|
+
* viewportRecord.name = '*Active';
|
|
16
|
+
* viewportRecord.circleSides = 100;
|
|
17
|
+
* viewportRecord.lowerLeftCorner = new AcGePoint2d(0, 0);
|
|
18
|
+
* viewportRecord.upperRightCorner = new AcGePoint2d(1, 1);
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
export declare class AcDbViewportTableRecord extends AcDbSymbolTableRecord {
|
|
22
|
+
/** Number of sides used for circle tessellation */
|
|
23
|
+
private _circleSides;
|
|
24
|
+
/** Center point of the viewport */
|
|
25
|
+
private _center;
|
|
26
|
+
/** Lower left corner of the viewport window */
|
|
27
|
+
private _lowerLeftCorner;
|
|
28
|
+
/** Upper right corner of the viewport window */
|
|
29
|
+
private _upperRightCorner;
|
|
30
|
+
/** Snap base point for the viewport */
|
|
31
|
+
private _snapBase;
|
|
32
|
+
/** Snap angle for the viewport */
|
|
33
|
+
private _snapAngle;
|
|
34
|
+
/** Snap spacing for the viewport */
|
|
35
|
+
private _snapSpacing;
|
|
36
|
+
/** Standard flags for the viewport */
|
|
37
|
+
private _standardFlag;
|
|
38
|
+
/** Grid spacing for the viewport */
|
|
39
|
+
private _gridSpacing;
|
|
40
|
+
/** Grid major spacing for the viewport */
|
|
41
|
+
private _gridMajor;
|
|
42
|
+
/** Background object ID for the viewport */
|
|
43
|
+
private _backgroundObjectId?;
|
|
44
|
+
/** Graphics system view configuration */
|
|
45
|
+
private _gsView;
|
|
46
|
+
/**
|
|
47
|
+
* Creates a new AcDbViewportTableRecord instance.
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* ```typescript
|
|
51
|
+
* const viewportRecord = new AcDbViewportTableRecord();
|
|
52
|
+
* ```
|
|
53
|
+
*/
|
|
54
|
+
constructor();
|
|
55
|
+
/**
|
|
56
|
+
* Gets or sets the circle zoom percent.
|
|
57
|
+
*
|
|
58
|
+
* This controls the number of sides to the tessellation used when displaying
|
|
59
|
+
* curves. The value can be between 1 and 20000, with higher settings using
|
|
60
|
+
* more sides in the curve tessellation.
|
|
61
|
+
*
|
|
62
|
+
* @returns The number of sides used for circle tessellation
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* ```typescript
|
|
66
|
+
* const sides = viewportRecord.circleSides;
|
|
67
|
+
* viewportRecord.circleSides = 200; // Higher quality circles
|
|
68
|
+
* ```
|
|
69
|
+
*/
|
|
70
|
+
get circleSides(): number;
|
|
71
|
+
set circleSides(value: number);
|
|
72
|
+
/**
|
|
73
|
+
* Gets the center point of the viewport.
|
|
74
|
+
*
|
|
75
|
+
* @returns The center point of the viewport
|
|
76
|
+
*
|
|
77
|
+
* @example
|
|
78
|
+
* ```typescript
|
|
79
|
+
* const center = viewportRecord.center;
|
|
80
|
+
* ```
|
|
81
|
+
*/
|
|
82
|
+
get center(): AcGePoint2d;
|
|
83
|
+
/**
|
|
84
|
+
* Gets or sets the lower left corner of the viewport window.
|
|
85
|
+
*
|
|
86
|
+
* The X and Y values of this point are expressed as a value between (0.0, 0.0)
|
|
87
|
+
* for the lower left corner of the AutoCAD graphics area and (1.0, 1.0) for
|
|
88
|
+
* the upper right corner of the AutoCAD graphics area. For example, a lower
|
|
89
|
+
* left corner value of (0.5, 0.0) indicates that the viewport's lower left
|
|
90
|
+
* corner is along the bottom of the AutoCAD graphics area, midway between
|
|
91
|
+
* the left and right edges of the graphics area.
|
|
92
|
+
*
|
|
93
|
+
* @returns The lower left corner point
|
|
94
|
+
*
|
|
95
|
+
* @example
|
|
96
|
+
* ```typescript
|
|
97
|
+
* const corner = viewportRecord.lowerLeftCorner;
|
|
98
|
+
* viewportRecord.lowerLeftCorner = new AcGePoint2d(0.25, 0.25);
|
|
99
|
+
* ```
|
|
100
|
+
*/
|
|
101
|
+
get lowerLeftCorner(): AcGePoint2d;
|
|
102
|
+
set lowerLeftCorner(value: AcGePoint2d);
|
|
103
|
+
/**
|
|
104
|
+
* The upper right corner of the viewport window. The X and Y values of this point are expressed as
|
|
105
|
+
* a value between (0.0, 0.0) for the lower left corner of the AutoCAD graphics area and (1.0, 1.0)
|
|
106
|
+
* for upper right corner of the AutoCAD graphics area. For example, an upper right corner value of
|
|
107
|
+
* (0.5, 1.0) indicates that the viewport's upper right corner is along the top of the AutoCAD
|
|
108
|
+
* graphics area, midway between the left and right edges of the graphics area.
|
|
109
|
+
*/
|
|
110
|
+
get upperRightCorner(): AcGePoint2d;
|
|
111
|
+
set upperRightCorner(value: AcGePoint2d);
|
|
112
|
+
/**
|
|
113
|
+
* The snap basepoint (in UCS coordinates) for the viewport table record.
|
|
114
|
+
*/
|
|
115
|
+
get snapBase(): AcGePoint2d;
|
|
116
|
+
set snapBase(value: AcGePoint2d);
|
|
117
|
+
/**
|
|
118
|
+
* The snap angle setting (in radians) for the viewport table record. The snap angle is measured
|
|
119
|
+
* within the UCS XY plane, with zero being the UCS X axis and positive angles going counterclockwise
|
|
120
|
+
* when looking down the UCS Z axis towards the UCS origin.
|
|
121
|
+
*/
|
|
122
|
+
get snapAngle(): number;
|
|
123
|
+
set snapAngle(value: number);
|
|
124
|
+
/**
|
|
125
|
+
* An AcGePoint2d in which the X value represents the X spacing of the snap grid and the Y value
|
|
126
|
+
* represents the Y spacing of the snap grid. Both values are in drawing units.
|
|
127
|
+
*/
|
|
128
|
+
get snapIncrements(): AcGePoint2d;
|
|
129
|
+
set snapIncrements(value: AcGePoint2d);
|
|
130
|
+
/**
|
|
131
|
+
* The number of minor grid lines between each major grid line in the viewport.
|
|
132
|
+
*/
|
|
133
|
+
get gridMajor(): number;
|
|
134
|
+
set gridMajor(value: number);
|
|
135
|
+
/**
|
|
136
|
+
* An AcGePoint2d in which the X value represents the X spacing (in drawing units) of the grid and
|
|
137
|
+
* the Y value represents the Y spacing of the grid.
|
|
138
|
+
*/
|
|
139
|
+
get gridIncrements(): AcGePoint2d;
|
|
140
|
+
set gridIncrements(value: AcGePoint2d);
|
|
141
|
+
get standardFlag(): number;
|
|
142
|
+
set standardFlag(value: number);
|
|
143
|
+
get snapEnabled(): boolean;
|
|
144
|
+
/**
|
|
145
|
+
* The object dD of the new background for the view.
|
|
146
|
+
*/
|
|
147
|
+
get backgroundObjectId(): string | undefined;
|
|
148
|
+
set backgroundObjectId(value: string | undefined);
|
|
149
|
+
/**
|
|
150
|
+
* The AcGiView associated with this viewport table record
|
|
151
|
+
*/
|
|
152
|
+
get gsView(): AcGiView;
|
|
153
|
+
}
|
|
154
|
+
//# sourceMappingURL=AcDbViewportTableRecord.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcDbViewportTableRecord.d.ts","sourceRoot":"","sources":["../../src/database/AcDbViewportTableRecord.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAe,MAAM,4BAA4B,CAAA;AACrE,OAAO,EAIL,QAAQ,EACT,MAAM,8BAA8B,CAAA;AAErC,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAiC/D;;;;;;;;;;;;;;;;GAgBG;AACH,qBAAa,uBAAwB,SAAQ,qBAAqB;IAChE,mDAAmD;IACnD,OAAO,CAAC,YAAY,CAAQ;IAC5B,mCAAmC;IACnC,OAAO,CAAC,OAAO,CAAa;IAC5B,+CAA+C;IAC/C,OAAO,CAAC,gBAAgB,CAAa;IACrC,gDAAgD;IAChD,OAAO,CAAC,iBAAiB,CAAa;IACtC,uCAAuC;IACvC,OAAO,CAAC,SAAS,CAAa;IAC9B,kCAAkC;IAClC,OAAO,CAAC,UAAU,CAAQ;IAC1B,oCAAoC;IACpC,OAAO,CAAC,YAAY,CAAa;IACjC,sCAAsC;IACtC,OAAO,CAAC,aAAa,CAAQ;IAC7B,oCAAoC;IACpC,OAAO,CAAC,YAAY,CAAa;IACjC,0CAA0C;IAC1C,OAAO,CAAC,UAAU,CAAQ;IAC1B,4CAA4C;IAC5C,OAAO,CAAC,mBAAmB,CAAC,CAAQ;IACpC,yCAAyC;IACzC,OAAO,CAAC,OAAO,CAAU;IAEzB;;;;;;;OAOG;;IAiBH;;;;;;;;;;;;;;OAcG;IACH,IAAI,WAAW,IAGQ,MAAM,CAD5B;IACD,IAAI,WAAW,CAAC,KAAK,EAAE,MAAM,EAE5B;IAED;;;;;;;;;OASG;IACH,IAAI,MAAM,gBAET;IAED;;;;;;;;;;;;;;;;;OAiBG;IACH,IAAI,eAAe,IAGQ,WAAW,CADrC;IACD,IAAI,eAAe,CAAC,KAAK,EAAE,WAAW,EAErC;IAED;;;;;;OAMG;IACH,IAAI,gBAAgB,IAGQ,WAAW,CADtC;IACD,IAAI,gBAAgB,CAAC,KAAK,EAAE,WAAW,EAEtC;IAED;;OAEG;IACH,IAAI,QAAQ,IAGQ,WAAW,CAD9B;IACD,IAAI,QAAQ,CAAC,KAAK,EAAE,WAAW,EAE9B;IAED;;;;OAIG;IACH,IAAI,SAAS,IAGQ,MAAM,CAD1B;IACD,IAAI,SAAS,CAAC,KAAK,EAAE,MAAM,EAE1B;IAED;;;OAGG;IACH,IAAI,cAAc,IAGQ,WAAW,CADpC;IACD,IAAI,cAAc,CAAC,KAAK,EAAE,WAAW,EAEpC;IAED;;OAEG;IACH,IAAI,SAAS,IAGQ,MAAM,CAD1B;IACD,IAAI,SAAS,CAAC,KAAK,EAAE,MAAM,EAE1B;IAED;;;OAGG;IACH,IAAI,cAAc,IAGQ,WAAW,CADpC;IACD,IAAI,cAAc,CAAC,KAAK,EAAE,WAAW,EAEpC;IA6BD,IAAI,YAAY,IAGQ,MAAM,CAD7B;IACD,IAAI,YAAY,CAAC,KAAK,EAAE,MAAM,EAE7B;IAED,IAAI,WAAW,YAEd;IAED;;OAEG;IACH,IAAI,kBAAkB,IAGQ,MAAM,GAAG,SAAS,CAD/C;IACD,IAAI,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,EAE/C;IAED;;OAEG;IACH,IAAI,MAAM,aAET;CACF"}
|