@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,250 @@
|
|
|
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 { AcGeArea2d, AcGeBox3d } from '@mlightcad/geometry-engine';
|
|
17
|
+
import { AcDbEntity } from './AcDbEntity';
|
|
18
|
+
/**
|
|
19
|
+
* Defines the type of hatch pattern.
|
|
20
|
+
*/
|
|
21
|
+
export var AcDbHatchPatternType;
|
|
22
|
+
(function (AcDbHatchPatternType) {
|
|
23
|
+
/**
|
|
24
|
+
* A user-defined pattern provides a direct method to define a simple hatch pattern using a specified
|
|
25
|
+
* hatch entity linetype. The definition data for user-defined hatch pattern include angle, space and
|
|
26
|
+
* double. "Angle" specifies an angle for the hatch pattern relative to the X axis of the hatch plane
|
|
27
|
+
* in OCS. "Space" defines the vertical distance between two consecutive pattern lines. "Double"
|
|
28
|
+
* specifies that a second set of lines is to be drawn at 90 degrees to the original lines. When
|
|
29
|
+
* specifying a user-defined hatch pattern, you don't need to set the pattern name. AutoCAD designates
|
|
30
|
+
* a default pattern name "U" for all user-defined patterns.
|
|
31
|
+
*/
|
|
32
|
+
AcDbHatchPatternType[AcDbHatchPatternType["UserDefined"] = 0] = "UserDefined";
|
|
33
|
+
/**
|
|
34
|
+
* A predefined pattern type allows you to select a hatch pattern from the AutoCAD standard hatch
|
|
35
|
+
* pattern file acad.pat in the "support" directory. The file contains many predefined hatch patterns,
|
|
36
|
+
* including ANGLE, ANSI31, BRICK, CLAY, etc. When you use a predefined pattern, you can also specify
|
|
37
|
+
* a scale and angle in order to modify the hatch's appearance. Solid fill is a new predefined pattern
|
|
38
|
+
* type that enables the application to fill in the hatch area with a specified color. The reserved
|
|
39
|
+
* name for this new pattern is "SOLID." SOLID does not appear in the file acad.pat because it has no
|
|
40
|
+
* definition data. To specify a solid, use the keyword "SOLID".
|
|
41
|
+
*/
|
|
42
|
+
AcDbHatchPatternType[AcDbHatchPatternType["Predefined"] = 1] = "Predefined";
|
|
43
|
+
/**
|
|
44
|
+
* A custom-defined pattern type stores the pattern in its own PAT file, in which the name of the
|
|
45
|
+
* hatch pattern must match the name of the file. For instance, you must store the TEST hatch pattern
|
|
46
|
+
* in a file named test.pat, and the file must be located in the ACAD search path. When you use a
|
|
47
|
+
* custom-defined pattern, you can also specify a scale and angle in order to modify the hatch's
|
|
48
|
+
* appearance.
|
|
49
|
+
*/
|
|
50
|
+
AcDbHatchPatternType[AcDbHatchPatternType["Custom"] = 2] = "Custom";
|
|
51
|
+
})(AcDbHatchPatternType || (AcDbHatchPatternType = {}));
|
|
52
|
+
/**
|
|
53
|
+
* Defines the hatch style for determining which areas to hatch.
|
|
54
|
+
*/
|
|
55
|
+
export var AcDbHatchStyle;
|
|
56
|
+
(function (AcDbHatchStyle) {
|
|
57
|
+
/**
|
|
58
|
+
* Normal hatch style will hatch inward from the outer loop. If it encounters an internal intersection,
|
|
59
|
+
* it turns off hatching until it encounters another intersection. Thus, areas separated from the
|
|
60
|
+
* outside of the hatched area by an odd number of intersections are hatched, while areas separated by
|
|
61
|
+
* an even number of intersections are not.
|
|
62
|
+
*/
|
|
63
|
+
AcDbHatchStyle[AcDbHatchStyle["Normal"] = 0] = "Normal";
|
|
64
|
+
/**
|
|
65
|
+
* Outer hatch style will hatch inward from the outer loop. It turns off hatching if it encounters an
|
|
66
|
+
* intersection and does not turn it back on. Because this process starts from both ends of each hatch
|
|
67
|
+
* line, only the outmost level of the structure is hatched, and the internal structure is left blank.
|
|
68
|
+
*/
|
|
69
|
+
AcDbHatchStyle[AcDbHatchStyle["Outer"] = 1] = "Outer";
|
|
70
|
+
/**
|
|
71
|
+
* Ignore hatch style will hatch inward from the outer loop and ignores all internal loops.
|
|
72
|
+
*/
|
|
73
|
+
AcDbHatchStyle[AcDbHatchStyle["Ignore"] = 2] = "Ignore";
|
|
74
|
+
})(AcDbHatchStyle || (AcDbHatchStyle = {}));
|
|
75
|
+
/**
|
|
76
|
+
* Represents a hatch entity in AutoCAD.
|
|
77
|
+
*
|
|
78
|
+
* A hatch is a 2D geometric object that fills an area with a pattern of lines, dots, or other shapes.
|
|
79
|
+
* Hatches are commonly used to represent materials, textures, or to distinguish different areas in drawings.
|
|
80
|
+
*
|
|
81
|
+
* @example
|
|
82
|
+
* ```typescript
|
|
83
|
+
* // Create a hatch entity
|
|
84
|
+
* const hatch = new AcDbHatch();
|
|
85
|
+
* hatch.patternName = "ANSI31";
|
|
86
|
+
* hatch.patternType = AcDbHatchPatternType.Predefined;
|
|
87
|
+
* hatch.patternScale = 1.0;
|
|
88
|
+
* hatch.patternAngle = 0;
|
|
89
|
+
* hatch.hatchStyle = AcDbHatchStyle.Normal;
|
|
90
|
+
*
|
|
91
|
+
* // Add a loop to define the hatch boundary
|
|
92
|
+
* const loop = new AcGeLoop2d();
|
|
93
|
+
* loop.add(new AcGePoint2d(0, 0));
|
|
94
|
+
* loop.add(new AcGePoint2d(10, 0));
|
|
95
|
+
* loop.add(new AcGePoint2d(10, 5));
|
|
96
|
+
* loop.add(new AcGePoint2d(0, 5));
|
|
97
|
+
* hatch.add(loop);
|
|
98
|
+
*
|
|
99
|
+
* // Access hatch properties
|
|
100
|
+
* console.log(`Pattern name: ${hatch.patternName}`);
|
|
101
|
+
* console.log(`Pattern scale: ${hatch.patternScale}`);
|
|
102
|
+
* ```
|
|
103
|
+
*/
|
|
104
|
+
var AcDbHatch = /** @class */ (function (_super) {
|
|
105
|
+
__extends(AcDbHatch, _super);
|
|
106
|
+
/**
|
|
107
|
+
* Creates a new hatch entity.
|
|
108
|
+
*
|
|
109
|
+
* This constructor initializes a hatch with default values.
|
|
110
|
+
* The elevation is 0, pattern type is Predefined, pattern scale is 1,
|
|
111
|
+
* pattern angle is 0, and hatch style is Normal.
|
|
112
|
+
*
|
|
113
|
+
* @example
|
|
114
|
+
* ```typescript
|
|
115
|
+
* const hatch = new AcDbHatch();
|
|
116
|
+
* hatch.patternName = "ANSI31";
|
|
117
|
+
* hatch.patternScale = 2.0;
|
|
118
|
+
* ```
|
|
119
|
+
*/
|
|
120
|
+
function AcDbHatch() {
|
|
121
|
+
var _this = _super.call(this) || this;
|
|
122
|
+
_this._elevation = 0;
|
|
123
|
+
_this._geo = new AcGeArea2d();
|
|
124
|
+
_this._definitionLines = [];
|
|
125
|
+
_this._patternName = '';
|
|
126
|
+
_this._patternType = AcDbHatchPatternType.Predefined;
|
|
127
|
+
_this._patternAngle = 0;
|
|
128
|
+
_this._patternScale = 1;
|
|
129
|
+
_this._hatchStyle = AcDbHatchStyle.Normal;
|
|
130
|
+
return _this;
|
|
131
|
+
}
|
|
132
|
+
Object.defineProperty(AcDbHatch.prototype, "definitionLines", {
|
|
133
|
+
/**
|
|
134
|
+
* Gets the definition lines for the hatch pattern.
|
|
135
|
+
*
|
|
136
|
+
* @returns Array of hatch pattern lines
|
|
137
|
+
*
|
|
138
|
+
* @example
|
|
139
|
+
* ```typescript
|
|
140
|
+
* const definitionLines = hatch.definitionLines;
|
|
141
|
+
* console.log(`Number of definition lines: ${definitionLines.length}`);
|
|
142
|
+
* ```
|
|
143
|
+
*/
|
|
144
|
+
get: function () {
|
|
145
|
+
return this._definitionLines;
|
|
146
|
+
},
|
|
147
|
+
enumerable: false,
|
|
148
|
+
configurable: true
|
|
149
|
+
});
|
|
150
|
+
Object.defineProperty(AcDbHatch.prototype, "patternName", {
|
|
151
|
+
/**
|
|
152
|
+
* The pattern name of this hatch.
|
|
153
|
+
*/
|
|
154
|
+
get: function () {
|
|
155
|
+
return this._patternName;
|
|
156
|
+
},
|
|
157
|
+
set: function (value) {
|
|
158
|
+
this._patternName = value;
|
|
159
|
+
},
|
|
160
|
+
enumerable: false,
|
|
161
|
+
configurable: true
|
|
162
|
+
});
|
|
163
|
+
Object.defineProperty(AcDbHatch.prototype, "patternType", {
|
|
164
|
+
/**
|
|
165
|
+
* The pattern name of this hatch.
|
|
166
|
+
*/
|
|
167
|
+
get: function () {
|
|
168
|
+
return this._patternType;
|
|
169
|
+
},
|
|
170
|
+
set: function (value) {
|
|
171
|
+
this._patternType = value;
|
|
172
|
+
},
|
|
173
|
+
enumerable: false,
|
|
174
|
+
configurable: true
|
|
175
|
+
});
|
|
176
|
+
Object.defineProperty(AcDbHatch.prototype, "patternAngle", {
|
|
177
|
+
/**
|
|
178
|
+
* The pattern angle (in radians) of this hatch.
|
|
179
|
+
*/
|
|
180
|
+
get: function () {
|
|
181
|
+
return this._patternAngle;
|
|
182
|
+
},
|
|
183
|
+
set: function (value) {
|
|
184
|
+
this._patternAngle = value;
|
|
185
|
+
},
|
|
186
|
+
enumerable: false,
|
|
187
|
+
configurable: true
|
|
188
|
+
});
|
|
189
|
+
Object.defineProperty(AcDbHatch.prototype, "patternScale", {
|
|
190
|
+
/**
|
|
191
|
+
* The pattern scale of the hatch entity. It is a non-zero positive number.
|
|
192
|
+
*/
|
|
193
|
+
get: function () {
|
|
194
|
+
return this._patternScale;
|
|
195
|
+
},
|
|
196
|
+
set: function (value) {
|
|
197
|
+
this._patternScale = value;
|
|
198
|
+
},
|
|
199
|
+
enumerable: false,
|
|
200
|
+
configurable: true
|
|
201
|
+
});
|
|
202
|
+
Object.defineProperty(AcDbHatch.prototype, "hatchStyle", {
|
|
203
|
+
/**
|
|
204
|
+
* The pattern style of the hatch entity.
|
|
205
|
+
*/
|
|
206
|
+
get: function () {
|
|
207
|
+
return this._hatchStyle;
|
|
208
|
+
},
|
|
209
|
+
set: function (value) {
|
|
210
|
+
this._hatchStyle = value;
|
|
211
|
+
},
|
|
212
|
+
enumerable: false,
|
|
213
|
+
configurable: true
|
|
214
|
+
});
|
|
215
|
+
/**
|
|
216
|
+
* Append one loop to loops of this area. If it is the first loop added, it is the outter loop.
|
|
217
|
+
* Otherwise, it is an inner loop.
|
|
218
|
+
* @param loop Input the loop to append
|
|
219
|
+
*/
|
|
220
|
+
AcDbHatch.prototype.add = function (loop) {
|
|
221
|
+
this._geo.add(loop);
|
|
222
|
+
};
|
|
223
|
+
Object.defineProperty(AcDbHatch.prototype, "geometricExtents", {
|
|
224
|
+
/**
|
|
225
|
+
* @inheritdoc
|
|
226
|
+
*/
|
|
227
|
+
get: function () {
|
|
228
|
+
var box = this._geo.box;
|
|
229
|
+
return new AcGeBox3d({ x: box.min.x, y: box.min.y, z: this._elevation }, { x: box.max.x, y: box.max.y, z: this._elevation });
|
|
230
|
+
},
|
|
231
|
+
enumerable: false,
|
|
232
|
+
configurable: true
|
|
233
|
+
});
|
|
234
|
+
/**
|
|
235
|
+
* @inheritdoc
|
|
236
|
+
*/
|
|
237
|
+
AcDbHatch.prototype.draw = function (renderer) {
|
|
238
|
+
return renderer.area(this._geo, {
|
|
239
|
+
color: this.rgbColor,
|
|
240
|
+
solidFill: false,
|
|
241
|
+
patternAngle: this.patternAngle,
|
|
242
|
+
patternLines: this.definitionLines
|
|
243
|
+
});
|
|
244
|
+
};
|
|
245
|
+
/** The entity type name */
|
|
246
|
+
AcDbHatch.typeName = 'Hatch';
|
|
247
|
+
return AcDbHatch;
|
|
248
|
+
}(AcDbEntity));
|
|
249
|
+
export { AcDbHatch };
|
|
250
|
+
//# sourceMappingURL=AcDbHatch.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcDbHatch.js","sourceRoot":"","sources":["../../src/entity/AcDbHatch.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EACL,UAAU,EACV,SAAS,EAEV,MAAM,4BAA4B,CAAA;AAMnC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAEzC;;GAEG;AACH,MAAM,CAAN,IAAY,oBA6BX;AA7BD,WAAY,oBAAoB;IAC9B;;;;;;;;OAQG;IACH,6EAAe,CAAA;IACf;;;;;;;;OAQG;IACH,2EAAc,CAAA;IACd;;;;;;OAMG;IACH,mEAAU,CAAA;AACZ,CAAC,EA7BW,oBAAoB,KAApB,oBAAoB,QA6B/B;AAED;;GAEG;AACH,MAAM,CAAN,IAAY,cAkBX;AAlBD,WAAY,cAAc;IACxB;;;;;OAKG;IACH,uDAAU,CAAA;IACV;;;;OAIG;IACH,qDAAS,CAAA;IACT;;OAEG;IACH,uDAAU,CAAA;AACZ,CAAC,EAlBW,cAAc,KAAd,cAAc,QAkBzB;AAED;;;;;;;;;;;;;;;;;;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from '@mlightcad/geometry-engine';
|
|
2
|
+
import { AcGiRenderer } from '@mlightcad/graphic-interface';
|
|
3
|
+
import { AcDbCurve } from './AcDbCurve';
|
|
4
|
+
/**
|
|
5
|
+
* Defines the annotation type for leader entities.
|
|
6
|
+
*/
|
|
7
|
+
export declare enum AcDbLeaderAnnotationType {
|
|
8
|
+
/** Multiline text annotation */
|
|
9
|
+
MText = 0,
|
|
10
|
+
/** Feature control frame annotation */
|
|
11
|
+
Fcf = 1,
|
|
12
|
+
/** Block reference annotation */
|
|
13
|
+
BlockReference = 2,
|
|
14
|
+
/** No annotation */
|
|
15
|
+
NoAnnotation = 3
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Represents a leader entity in AutoCAD.
|
|
19
|
+
*
|
|
20
|
+
* A leader is a dimension-like entity that consists of a line or spline with an arrowhead
|
|
21
|
+
* pointing to a specific object or location, and an annotation (text, block, or feature
|
|
22
|
+
* control frame) at the other end. Leaders are controlled by dimension variable settings
|
|
23
|
+
* and dimension styles.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```typescript
|
|
27
|
+
* // Create a leader entity
|
|
28
|
+
* const leader = new AcDbLeader();
|
|
29
|
+
* leader.appendVertex(new AcGePoint3d(0, 0, 0));
|
|
30
|
+
* leader.appendVertex(new AcGePoint3d(5, 5, 0));
|
|
31
|
+
* leader.appendVertex(new AcGePoint3d(10, 5, 0));
|
|
32
|
+
* leader.hasArrowHead = true;
|
|
33
|
+
* leader.hasHookLine = true;
|
|
34
|
+
* leader.annoType = AcDbLeaderAnnotationType.MText;
|
|
35
|
+
*
|
|
36
|
+
* // Access leader properties
|
|
37
|
+
* console.log(`Number of vertices: ${leader.numVertices}`);
|
|
38
|
+
* console.log(`Has arrow head: ${leader.hasArrowHead}`);
|
|
39
|
+
* console.log(`Has hook line: ${leader.hasHookLine}`);
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
export declare class AcDbLeader extends AcDbCurve {
|
|
43
|
+
/** The entity type name */
|
|
44
|
+
static typeName: string;
|
|
45
|
+
/** Whether this leader is spline-fit */
|
|
46
|
+
private _isSplined;
|
|
47
|
+
/** The spline geometry if this leader is spline-fit */
|
|
48
|
+
private _splineGeo?;
|
|
49
|
+
/** Whether this leader has been updated */
|
|
50
|
+
private _updated;
|
|
51
|
+
/** Whether this leader has an arrowhead */
|
|
52
|
+
private _hasArrowHead;
|
|
53
|
+
/** The vertices of the leader line */
|
|
54
|
+
private _vertices;
|
|
55
|
+
/** The dimension style applied to this leader */
|
|
56
|
+
private _dimensionStyle;
|
|
57
|
+
/** Whether this leader has a hook line */
|
|
58
|
+
private _hasHookLine;
|
|
59
|
+
/** The annotation type for this leader */
|
|
60
|
+
private _annoType;
|
|
61
|
+
/**
|
|
62
|
+
* Creates a new leader entity.
|
|
63
|
+
*
|
|
64
|
+
* This constructor initializes a leader with default values.
|
|
65
|
+
* The leader is not spline-fit, has no arrowhead, no hook line,
|
|
66
|
+
* and no annotation type.
|
|
67
|
+
*
|
|
68
|
+
* @example
|
|
69
|
+
* ```typescript
|
|
70
|
+
* const leader = new AcDbLeader();
|
|
71
|
+
* leader.appendVertex(new AcGePoint3d(0, 0, 0));
|
|
72
|
+
* leader.appendVertex(new AcGePoint3d(5, 5, 0));
|
|
73
|
+
* ```
|
|
74
|
+
*/
|
|
75
|
+
constructor();
|
|
76
|
+
/**
|
|
77
|
+
* Gets whether this leader is spline-fit.
|
|
78
|
+
*
|
|
79
|
+
* @returns True if the leader is spline-fit, false otherwise
|
|
80
|
+
*
|
|
81
|
+
* @example
|
|
82
|
+
* ```typescript
|
|
83
|
+
* const isSplined = leader.isSplined;
|
|
84
|
+
* console.log(`Leader is spline-fit: ${isSplined}`);
|
|
85
|
+
* ```
|
|
86
|
+
*/
|
|
87
|
+
get isSplined(): boolean;
|
|
88
|
+
/**
|
|
89
|
+
* Sets whether this leader is spline-fit.
|
|
90
|
+
*
|
|
91
|
+
* @param value - True to make the leader spline-fit, false otherwise
|
|
92
|
+
*
|
|
93
|
+
* @example
|
|
94
|
+
* ```typescript
|
|
95
|
+
* leader.isSplined = true;
|
|
96
|
+
* ```
|
|
97
|
+
*/
|
|
98
|
+
set isSplined(value: boolean);
|
|
99
|
+
/**
|
|
100
|
+
* Gets whether this leader has an arrowhead.
|
|
101
|
+
*
|
|
102
|
+
* @returns True if the leader has an arrowhead, false otherwise
|
|
103
|
+
*
|
|
104
|
+
* @example
|
|
105
|
+
* ```typescript
|
|
106
|
+
* const hasArrowHead = leader.hasArrowHead;
|
|
107
|
+
* console.log(`Leader has arrowhead: ${hasArrowHead}`);
|
|
108
|
+
* ```
|
|
109
|
+
*/
|
|
110
|
+
get hasArrowHead(): boolean;
|
|
111
|
+
/**
|
|
112
|
+
* Sets whether this leader has an arrowhead.
|
|
113
|
+
*
|
|
114
|
+
* @param value - True to enable arrowhead, false to disable
|
|
115
|
+
*
|
|
116
|
+
* @example
|
|
117
|
+
* ```typescript
|
|
118
|
+
* leader.hasArrowHead = true;
|
|
119
|
+
* ```
|
|
120
|
+
*/
|
|
121
|
+
set hasArrowHead(value: boolean);
|
|
122
|
+
/**
|
|
123
|
+
* Gets whether this leader has a hook line.
|
|
124
|
+
*
|
|
125
|
+
* The "hookline" is the small horizontal line at the end of the leader line
|
|
126
|
+
* just before the annotation.
|
|
127
|
+
*
|
|
128
|
+
* @returns True if the leader has a hook line, false otherwise
|
|
129
|
+
*
|
|
130
|
+
* @example
|
|
131
|
+
* ```typescript
|
|
132
|
+
* const hasHookLine = leader.hasHookLine;
|
|
133
|
+
* console.log(`Leader has hook line: ${hasHookLine}`);
|
|
134
|
+
* ```
|
|
135
|
+
*/
|
|
136
|
+
get hasHookLine(): boolean;
|
|
137
|
+
/**
|
|
138
|
+
* Sets whether this leader has a hook line.
|
|
139
|
+
*
|
|
140
|
+
* @param value - True to enable hook line, false to disable
|
|
141
|
+
*
|
|
142
|
+
* @example
|
|
143
|
+
* ```typescript
|
|
144
|
+
* leader.hasHookLine = true;
|
|
145
|
+
* ```
|
|
146
|
+
*/
|
|
147
|
+
set hasHookLine(value: boolean);
|
|
148
|
+
/**
|
|
149
|
+
* Gets the number of vertices in the leader's vertex list.
|
|
150
|
+
*
|
|
151
|
+
* @returns The number of vertices
|
|
152
|
+
*
|
|
153
|
+
* @example
|
|
154
|
+
* ```typescript
|
|
155
|
+
* const numVertices = leader.numVertices;
|
|
156
|
+
* console.log(`Number of vertices: ${numVertices}`);
|
|
157
|
+
* ```
|
|
158
|
+
*/
|
|
159
|
+
get numVertices(): number;
|
|
160
|
+
/**
|
|
161
|
+
* Gets the dimension style applied to this leader.
|
|
162
|
+
*
|
|
163
|
+
* @returns The dimension style name
|
|
164
|
+
*
|
|
165
|
+
* @example
|
|
166
|
+
* ```typescript
|
|
167
|
+
* const dimensionStyle = leader.dimensionStyle;
|
|
168
|
+
* console.log(`Dimension style: ${dimensionStyle}`);
|
|
169
|
+
* ```
|
|
170
|
+
*/
|
|
171
|
+
get dimensionStyle(): string;
|
|
172
|
+
/**
|
|
173
|
+
* Sets the dimension style applied to this leader.
|
|
174
|
+
*
|
|
175
|
+
* @param value - The new dimension style name
|
|
176
|
+
*
|
|
177
|
+
* @example
|
|
178
|
+
* ```typescript
|
|
179
|
+
* leader.dimensionStyle = "Standard";
|
|
180
|
+
* ```
|
|
181
|
+
*/
|
|
182
|
+
set dimensionStyle(value: string);
|
|
183
|
+
/**
|
|
184
|
+
* Gets the leader's annotation type.
|
|
185
|
+
*
|
|
186
|
+
* @returns The annotation type
|
|
187
|
+
*
|
|
188
|
+
* @example
|
|
189
|
+
* ```typescript
|
|
190
|
+
* const annoType = leader.annoType;
|
|
191
|
+
* console.log(`Annotation type: ${annoType}`);
|
|
192
|
+
* ```
|
|
193
|
+
*/
|
|
194
|
+
get annoType(): AcDbLeaderAnnotationType;
|
|
195
|
+
/**
|
|
196
|
+
* Sets the leader's annotation type.
|
|
197
|
+
*
|
|
198
|
+
* @param value - The new annotation type
|
|
199
|
+
*
|
|
200
|
+
* @example
|
|
201
|
+
* ```typescript
|
|
202
|
+
* leader.annoType = AcDbLeaderAnnotationType.MText;
|
|
203
|
+
* ```
|
|
204
|
+
*/
|
|
205
|
+
set annoType(value: AcDbLeaderAnnotationType);
|
|
206
|
+
/**
|
|
207
|
+
* Appends vertex to the end of the vertex list for this leader. If vertex is not in the plane of the
|
|
208
|
+
* leader, then it will be projected parallel the leader's normal onto the leader's plane and the
|
|
209
|
+
* projection will be appended to the leader's vertex list. If the new vertex is too close to the one
|
|
210
|
+
* next to it (that is, within 1.e-10 for X, Y, and Z), the new vertex will not be appended.
|
|
211
|
+
* @param point Input point (in WCS coordinates) to add to the vertex list
|
|
212
|
+
*/
|
|
213
|
+
appendVertex(point: AcGePoint3dLike): void;
|
|
214
|
+
/**
|
|
215
|
+
* Reset the vertex at index to the point point projected (along the plane normal) onto the plane
|
|
216
|
+
* containing the leader. It doesn't reset the vertex if that would cause one of the segments to
|
|
217
|
+
* become zero length (within 1e-10).
|
|
218
|
+
* @param index Input index number (0 based) of the vertex to change
|
|
219
|
+
* @param point Input new point value (in WCS) to use
|
|
220
|
+
*/
|
|
221
|
+
setVertexAt(index: number, point: AcGePoint3dLike): void;
|
|
222
|
+
/**
|
|
223
|
+
* Get the point that is the vertex at the location index (0 based) in this leader's vertex array.
|
|
224
|
+
* @param index Input index number (0 based) of the vertex desired
|
|
225
|
+
*/
|
|
226
|
+
vertexAt(index: number): void;
|
|
227
|
+
/**
|
|
228
|
+
* @inheritdoc
|
|
229
|
+
*/
|
|
230
|
+
get geometricExtents(): AcGeBox3d;
|
|
231
|
+
/**
|
|
232
|
+
* @inheritdoc
|
|
233
|
+
*/
|
|
234
|
+
get closed(): boolean;
|
|
235
|
+
set closed(_value: boolean);
|
|
236
|
+
/**
|
|
237
|
+
* @inheritdoc
|
|
238
|
+
*/
|
|
239
|
+
draw(renderer: AcGiRenderer): import("@mlightcad/graphic-interface").AcGiEntity;
|
|
240
|
+
private get splineGeo();
|
|
241
|
+
private createS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