@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 @@
|
|
|
1
|
+
{"version":3,"file":"AcDb3dPolyline.d.ts","sourceRoot":"","sources":["../../src/entity/AcDb3dPolyline.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,WAAW,EACX,eAAe,EAGhB,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAE3D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAEvC;;GAEG;AACH,oBAAY,cAAc;IACxB;;OAEG;IACH,UAAU,IAAA;IACV;;OAEG;IACH,cAAc,IAAA;IACd;;OAEG;IACH,eAAe,IAAA;CAChB;AAED;;GAEG;AACH,qBAAa,cAAe,SAAQ,SAAS;IAC3C,2BAA2B;IAC3B,OAAgB,QAAQ,EAAE,MAAM,CAAe;IAE/C,+CAA+C;IAC/C,OAAO,CAAC,SAAS,CAAgB;IACjC,+CAA+C;IAC/C,OAAO,CAAC,IAAI,CAAsC;IAElD;;OAEG;gBAED,IAAI,EAAE,cAAc,EACpB,QAAQ,EAAE,eAAe,EAAE,EAC3B,MAAM,UAAQ;IAOhB;;;;OAIG;IACH,IAAI,QAAQ,IAAI,cAAc,CAE7B;IAED;;;;OAIG;IACH,IAAI,QAAQ,CAAC,KAAK,EAAE,cAAc,EAEjC;IAED;;;;;;;;;;;;;OAaG;IACH,IAAI,MAAM,IAAI,OAAO,CAEpB;IAED;;;;;;;;;OASG;IACH,IAAI,MAAM,CAAC,KAAK,EAAE,OAAO,EAExB;IAED;;;;;;;;;;OAUG;IACH,IAAI,gBAAgB,IAAI,SAAS,CAOhC;IAED;;;;;;;OAOG;IACH,gBAAgB;IAMhB;;;;;OAKG;IACH,IAAI,CAAC,QAAQ,EAAE,YAAY;CAS5B"}
|
|
@@ -0,0 +1,158 @@
|
|
|
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 { AcGeBox3d, AcGePoint3d, AcGePolyline2d, } from '@mlightcad/geometry-engine';
|
|
17
|
+
import { AcDbCurve } from './AcDbCurve';
|
|
18
|
+
/**
|
|
19
|
+
* Represents the spline-fit type for this 3D polyline.
|
|
20
|
+
*/
|
|
21
|
+
export var AcDbPoly3dType;
|
|
22
|
+
(function (AcDbPoly3dType) {
|
|
23
|
+
/**
|
|
24
|
+
* A standard polyline with no spline fitting.
|
|
25
|
+
*/
|
|
26
|
+
AcDbPoly3dType[AcDbPoly3dType["SimplePoly"] = 0] = "SimplePoly";
|
|
27
|
+
/**
|
|
28
|
+
* A spline-fit polyline that has a Quadratic B-spline path.
|
|
29
|
+
*/
|
|
30
|
+
AcDbPoly3dType[AcDbPoly3dType["QuadSplinePoly"] = 1] = "QuadSplinePoly";
|
|
31
|
+
/**
|
|
32
|
+
* A spline-fit polyline that has a Cubic B-spline path.
|
|
33
|
+
*/
|
|
34
|
+
AcDbPoly3dType[AcDbPoly3dType["CubicSplinePoly"] = 2] = "CubicSplinePoly";
|
|
35
|
+
})(AcDbPoly3dType || (AcDbPoly3dType = {}));
|
|
36
|
+
/**
|
|
37
|
+
* Represents a 3d polyline entity in AutoCAD.
|
|
38
|
+
*/
|
|
39
|
+
var AcDb3dPolyline = /** @class */ (function (_super) {
|
|
40
|
+
__extends(AcDb3dPolyline, _super);
|
|
41
|
+
/**
|
|
42
|
+
* Creates a new empty 2d polyline entity.
|
|
43
|
+
*/
|
|
44
|
+
function AcDb3dPolyline(type, vertices, closed) {
|
|
45
|
+
if (closed === void 0) { closed = false; }
|
|
46
|
+
var _this = _super.call(this) || this;
|
|
47
|
+
_this._polyType = type;
|
|
48
|
+
_this._geo = new AcGePolyline2d(vertices, closed);
|
|
49
|
+
return _this;
|
|
50
|
+
}
|
|
51
|
+
Object.defineProperty(AcDb3dPolyline.prototype, "polyType", {
|
|
52
|
+
/**
|
|
53
|
+
* Gets the spline-fit type for this 3D polyline.
|
|
54
|
+
*
|
|
55
|
+
* @returns The spline-fit type for this 3D polyline.
|
|
56
|
+
*/
|
|
57
|
+
get: function () {
|
|
58
|
+
return this._polyType;
|
|
59
|
+
},
|
|
60
|
+
/**
|
|
61
|
+
* Sets the spline-fit type for this 3D polyline.
|
|
62
|
+
*
|
|
63
|
+
* @param value - The spline-fit type for this 3D polyline.
|
|
64
|
+
*/
|
|
65
|
+
set: function (value) {
|
|
66
|
+
this._polyType = value;
|
|
67
|
+
},
|
|
68
|
+
enumerable: false,
|
|
69
|
+
configurable: true
|
|
70
|
+
});
|
|
71
|
+
Object.defineProperty(AcDb3dPolyline.prototype, "closed", {
|
|
72
|
+
/**
|
|
73
|
+
* Gets whether this polyline is closed.
|
|
74
|
+
*
|
|
75
|
+
* A closed polyline has a segment drawn from the last vertex to the first vertex,
|
|
76
|
+
* forming a complete loop.
|
|
77
|
+
*
|
|
78
|
+
* @returns True if the polyline is closed, false otherwise
|
|
79
|
+
*
|
|
80
|
+
* @example
|
|
81
|
+
* ```typescript
|
|
82
|
+
* const isClosed = polyline.closed;
|
|
83
|
+
* console.log(`Polyline is closed: ${isClosed}`);
|
|
84
|
+
* ```
|
|
85
|
+
*/
|
|
86
|
+
get: function () {
|
|
87
|
+
return this._geo.closed;
|
|
88
|
+
},
|
|
89
|
+
/**
|
|
90
|
+
* Sets whether this polyline is closed.
|
|
91
|
+
*
|
|
92
|
+
* @param value - True to close the polyline, false to open it
|
|
93
|
+
*
|
|
94
|
+
* @example
|
|
95
|
+
* ```typescript
|
|
96
|
+
* polyline.closed = true; // Close the polyline
|
|
97
|
+
* ```
|
|
98
|
+
*/
|
|
99
|
+
set: function (value) {
|
|
100
|
+
this._geo.closed = value;
|
|
101
|
+
},
|
|
102
|
+
enumerable: false,
|
|
103
|
+
configurable: true
|
|
104
|
+
});
|
|
105
|
+
Object.defineProperty(AcDb3dPolyline.prototype, "geometricExtents", {
|
|
106
|
+
/**
|
|
107
|
+
* Gets the geometric extents (bounding box) of this polyline.
|
|
108
|
+
*
|
|
109
|
+
* @returns The bounding box that encompasses the entire polyline
|
|
110
|
+
*
|
|
111
|
+
* @example
|
|
112
|
+
* ```typescript
|
|
113
|
+
* const extents = polyline.geometricExtents;
|
|
114
|
+
* console.log(`Polyline bounds: ${extents.minPoint} to ${extents.maxPoint}`);
|
|
115
|
+
* ```
|
|
116
|
+
*/
|
|
117
|
+
get: function () {
|
|
118
|
+
var box = this._geo.box;
|
|
119
|
+
// TODO: Set the correct z value for 3d box
|
|
120
|
+
return new AcGeBox3d({ x: box.min.x, y: box.min.y, z: 0 }, { x: box.max.x, y: box.max.y, z: 0 });
|
|
121
|
+
},
|
|
122
|
+
enumerable: false,
|
|
123
|
+
configurable: true
|
|
124
|
+
});
|
|
125
|
+
/**
|
|
126
|
+
* Gets the grip points for this polyline.
|
|
127
|
+
*
|
|
128
|
+
* Grip points are control points that can be used to modify the polyline.
|
|
129
|
+
* For a polyline, the grip points are all the vertices.
|
|
130
|
+
*
|
|
131
|
+
* @returns Array of grip points (all vertices)
|
|
132
|
+
*/
|
|
133
|
+
AcDb3dPolyline.prototype.subGetGripPoints = function () {
|
|
134
|
+
var gripPoints = new Array();
|
|
135
|
+
// TODO: Finish logic to get grip points
|
|
136
|
+
return gripPoints;
|
|
137
|
+
};
|
|
138
|
+
/**
|
|
139
|
+
* Draws this polyline using the specified renderer.
|
|
140
|
+
*
|
|
141
|
+
* @param renderer - The renderer to use for drawing
|
|
142
|
+
* @returns The rendered polyline entity, or undefined if drawing failed
|
|
143
|
+
*/
|
|
144
|
+
AcDb3dPolyline.prototype.draw = function (renderer) {
|
|
145
|
+
var points = [];
|
|
146
|
+
var tmp = this._geo.getPoints(100);
|
|
147
|
+
// TODO: Set the correct z value
|
|
148
|
+
tmp.forEach(function (point) {
|
|
149
|
+
return points.push(new AcGePoint3d().set(point.x, point.y, 0));
|
|
150
|
+
});
|
|
151
|
+
return renderer.lines(points, this.lineStyle);
|
|
152
|
+
};
|
|
153
|
+
/** The entity type name */
|
|
154
|
+
AcDb3dPolyline.typeName = '3dPolyline';
|
|
155
|
+
return AcDb3dPolyline;
|
|
156
|
+
}(AcDbCurve));
|
|
157
|
+
export { AcDb3dPolyline };
|
|
158
|
+
//# sourceMappingURL=AcDb3dPolyline.js.map
|
|
@@ -0,0 +1 @@
|
|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from './AcDbEntity';
|
|
4
|
+
export declare enum AcDb3dVertexType {
|
|
5
|
+
/**
|
|
6
|
+
* A standard vertex within the polyface mesh.
|
|
7
|
+
*/
|
|
8
|
+
SimpleVertex = 0,
|
|
9
|
+
/**
|
|
10
|
+
* A control point for a spline or curve-fit mesh.
|
|
11
|
+
*/
|
|
12
|
+
ControlVertex = 1,
|
|
13
|
+
/**
|
|
14
|
+
* A vertex that was automatically generated as the result of a spline or curve-fit operation.
|
|
15
|
+
* This type of vertex can go away or change automatically during subsequent editing operations
|
|
16
|
+
* on the mesh.
|
|
17
|
+
*/
|
|
18
|
+
FitVertex = 2
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Represents the vertices within 3D polylines in AutoCAD.
|
|
22
|
+
*/
|
|
23
|
+
export declare class AcDb3dVertex extends AcDbEntity {
|
|
24
|
+
/** The entity type name */
|
|
25
|
+
static typeName: string;
|
|
26
|
+
/** The WCS point value of this vertex */
|
|
27
|
+
private _position;
|
|
28
|
+
/** The vertex type */
|
|
29
|
+
private _vertexType;
|
|
30
|
+
/**
|
|
31
|
+
* Creates a new 3d vertex entity.
|
|
32
|
+
*/
|
|
33
|
+
constructor();
|
|
34
|
+
/**
|
|
35
|
+
* Gets the WCS point value of this vertex.
|
|
36
|
+
*
|
|
37
|
+
* @returns The WCS point value of this vertex.
|
|
38
|
+
*/
|
|
39
|
+
get position(): AcGePoint3d;
|
|
40
|
+
/**
|
|
41
|
+
* Sets WCS point value of this vertex.
|
|
42
|
+
*
|
|
43
|
+
* @param value - The WCS point value of this vertex.
|
|
44
|
+
*/
|
|
45
|
+
set position(value: AcGePoint3dLike);
|
|
46
|
+
/**
|
|
47
|
+
* Gets the type of this vertex.
|
|
48
|
+
* @returns The type of this vertex
|
|
49
|
+
*/
|
|
50
|
+
get vertexType(): AcDb3dVertexType;
|
|
51
|
+
/**
|
|
52
|
+
* Sets the type of this vertex.
|
|
53
|
+
* @param value - The type of this vertex
|
|
54
|
+
*/
|
|
55
|
+
set vertexType(value: AcDb3dVertexType);
|
|
56
|
+
/**
|
|
57
|
+
* Gets the geometric extents (bounding box) of this vertex.
|
|
58
|
+
*
|
|
59
|
+
* @returns The bounding box that encompasses the entire vertex
|
|
60
|
+
*/
|
|
61
|
+
get geometricExtents(): AcGeBox3d;
|
|
62
|
+
/**
|
|
63
|
+
* Gets the grip points for this vertex.
|
|
64
|
+
*
|
|
65
|
+
* @returns Array of grip points (center, start point, end point)
|
|
66
|
+
*/
|
|
67
|
+
subGetGripPoints(): AcGePoint3d[];
|
|
68
|
+
/**
|
|
69
|
+
* Transforms this vertex by the specified matrix.
|
|
70
|
+
*
|
|
71
|
+
* @param matrix - The transformation matrix to apply
|
|
72
|
+
* @returns This vertex after transformation
|
|
73
|
+
*/
|
|
74
|
+
transformBy(matrix: AcGeMatrix3d): this;
|
|
75
|
+
/**
|
|
76
|
+
* Draws nothing because it will be drawn by its parent 3d polyline.
|
|
77
|
+
*
|
|
78
|
+
* @param renderer - The renderer to use for drawing
|
|
79
|
+
* @returns undefined
|
|
80
|
+
*/
|
|
81
|
+
draw(_renderer: AcGiRenderer): undefined;
|
|
82
|
+
}
|
|
83
|
+
//# sourceMappingURL=AcDb3dVertex.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcDb3dVertex.d.ts","sourceRoot":"","sources":["../../src/entity/AcDb3dVertex.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,YAAY,EACZ,WAAW,EACX,eAAe,EAChB,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAE3D,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAGzC,oBAAY,gBAAgB;IAC1B;;OAEG;IACH,YAAY,IAAA;IACZ;;OAEG;IACH,aAAa,IAAA;IACb;;;;OAIG;IACH,SAAS,IAAA;CACV;AAED;;GAEG;AACH,qBAAa,YAAa,SAAQ,UAAU;IAC1C,2BAA2B;IAC3B,OAAgB,QAAQ,EAAE,MAAM,CAAa;IAE7C,yCAAyC;IACzC,OAAO,CAAC,SAAS,CAAa;IAC9B,sBAAsB;IACtB,OAAO,CAAC,WAAW,CAAkB;IAErC;;OAEG;;IAOH;;;;OAIG;IACH,IAAI,QAAQ,IAAI,WAAW,CAE1B;IAED;;;;OAIG;IACH,IAAI,QAAQ,CAAC,KAAK,EAAE,eAAe,EAElC;IAED;;;OAGG;IACH,IAAI,UAAU,IAAI,gBAAgB,CAEjC;IAED;;;OAGG;IACH,IAAI,UAAU,CAAC,KAAK,EAAE,gBAAgB,EAErC;IAED;;;;OAIG;IACH,IAAI,gBAAgB,cAEnB;IAED;;;;OAIG;IACH,gBAAgB;IAMhB;;;;;OAKG;IACH,WAAW,CAAC,MAAM,EAAE,YAAY;IAKhC;;;;;OAKG;IACH,IAAI,CAAC,SAAS,EAAE,YAAY,GAAG,SAAS;CAGzC"}
|
|
@@ -0,0 +1,133 @@
|
|
|
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 { AcGeBox3d, AcGePoint3d, } from '@mlightcad/geometry-engine';
|
|
17
|
+
import { AcDbEntity } from './AcDbEntity';
|
|
18
|
+
export var AcDb3dVertexType;
|
|
19
|
+
(function (AcDb3dVertexType) {
|
|
20
|
+
/**
|
|
21
|
+
* A standard vertex within the polyface mesh.
|
|
22
|
+
*/
|
|
23
|
+
AcDb3dVertexType[AcDb3dVertexType["SimpleVertex"] = 0] = "SimpleVertex";
|
|
24
|
+
/**
|
|
25
|
+
* A control point for a spline or curve-fit mesh.
|
|
26
|
+
*/
|
|
27
|
+
AcDb3dVertexType[AcDb3dVertexType["ControlVertex"] = 1] = "ControlVertex";
|
|
28
|
+
/**
|
|
29
|
+
* A vertex that was automatically generated as the result of a spline or curve-fit operation.
|
|
30
|
+
* This type of vertex can go away or change automatically during subsequent editing operations
|
|
31
|
+
* on the mesh.
|
|
32
|
+
*/
|
|
33
|
+
AcDb3dVertexType[AcDb3dVertexType["FitVertex"] = 2] = "FitVertex";
|
|
34
|
+
})(AcDb3dVertexType || (AcDb3dVertexType = {}));
|
|
35
|
+
/**
|
|
36
|
+
* Represents the vertices within 3D polylines in AutoCAD.
|
|
37
|
+
*/
|
|
38
|
+
var AcDb3dVertex = /** @class */ (function (_super) {
|
|
39
|
+
__extends(AcDb3dVertex, _super);
|
|
40
|
+
/**
|
|
41
|
+
* Creates a new 3d vertex entity.
|
|
42
|
+
*/
|
|
43
|
+
function AcDb3dVertex() {
|
|
44
|
+
var _this = _super.call(this) || this;
|
|
45
|
+
_this._position = new AcGePoint3d();
|
|
46
|
+
_this._vertexType = AcDb3dVertexType.SimpleVertex;
|
|
47
|
+
return _this;
|
|
48
|
+
}
|
|
49
|
+
Object.defineProperty(AcDb3dVertex.prototype, "position", {
|
|
50
|
+
/**
|
|
51
|
+
* Gets the WCS point value of this vertex.
|
|
52
|
+
*
|
|
53
|
+
* @returns The WCS point value of this vertex.
|
|
54
|
+
*/
|
|
55
|
+
get: function () {
|
|
56
|
+
return this._position;
|
|
57
|
+
},
|
|
58
|
+
/**
|
|
59
|
+
* Sets WCS point value of this vertex.
|
|
60
|
+
*
|
|
61
|
+
* @param value - The WCS point value of this vertex.
|
|
62
|
+
*/
|
|
63
|
+
set: function (value) {
|
|
64
|
+
this._position.copy(value);
|
|
65
|
+
},
|
|
66
|
+
enumerable: false,
|
|
67
|
+
configurable: true
|
|
68
|
+
});
|
|
69
|
+
Object.defineProperty(AcDb3dVertex.prototype, "vertexType", {
|
|
70
|
+
/**
|
|
71
|
+
* Gets the type of this vertex.
|
|
72
|
+
* @returns The type of this vertex
|
|
73
|
+
*/
|
|
74
|
+
get: function () {
|
|
75
|
+
return this._vertexType;
|
|
76
|
+
},
|
|
77
|
+
/**
|
|
78
|
+
* Sets the type of this vertex.
|
|
79
|
+
* @param value - The type of this vertex
|
|
80
|
+
*/
|
|
81
|
+
set: function (value) {
|
|
82
|
+
this._vertexType = value;
|
|
83
|
+
},
|
|
84
|
+
enumerable: false,
|
|
85
|
+
configurable: true
|
|
86
|
+
});
|
|
87
|
+
Object.defineProperty(AcDb3dVertex.prototype, "geometricExtents", {
|
|
88
|
+
/**
|
|
89
|
+
* Gets the geometric extents (bounding box) of this vertex.
|
|
90
|
+
*
|
|
91
|
+
* @returns The bounding box that encompasses the entire vertex
|
|
92
|
+
*/
|
|
93
|
+
get: function () {
|
|
94
|
+
return new AcGeBox3d().expandByPoint(this._position);
|
|
95
|
+
},
|
|
96
|
+
enumerable: false,
|
|
97
|
+
configurable: true
|
|
98
|
+
});
|
|
99
|
+
/**
|
|
100
|
+
* Gets the grip points for this vertex.
|
|
101
|
+
*
|
|
102
|
+
* @returns Array of grip points (center, start point, end point)
|
|
103
|
+
*/
|
|
104
|
+
AcDb3dVertex.prototype.subGetGripPoints = function () {
|
|
105
|
+
var gripPoints = new Array();
|
|
106
|
+
gripPoints.push(this._position);
|
|
107
|
+
return gripPoints;
|
|
108
|
+
};
|
|
109
|
+
/**
|
|
110
|
+
* Transforms this vertex by the specified matrix.
|
|
111
|
+
*
|
|
112
|
+
* @param matrix - The transformation matrix to apply
|
|
113
|
+
* @returns This vertex after transformation
|
|
114
|
+
*/
|
|
115
|
+
AcDb3dVertex.prototype.transformBy = function (matrix) {
|
|
116
|
+
this._position.applyMatrix4(matrix);
|
|
117
|
+
return this;
|
|
118
|
+
};
|
|
119
|
+
/**
|
|
120
|
+
* Draws nothing because it will be drawn by its parent 3d polyline.
|
|
121
|
+
*
|
|
122
|
+
* @param renderer - The renderer to use for drawing
|
|
123
|
+
* @returns undefined
|
|
124
|
+
*/
|
|
125
|
+
AcDb3dVertex.prototype.draw = function (_renderer) {
|
|
126
|
+
return undefined;
|
|
127
|
+
};
|
|
128
|
+
/** The entity type name */
|
|
129
|
+
AcDb3dVertex.typeName = '3dVertex';
|
|
130
|
+
return AcDb3dVertex;
|
|
131
|
+
}(AcDbEntity));
|
|
132
|
+
export { AcDb3dVertex };
|
|
133
|
+
//# sourceMappingURL=AcDb3dVertex.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcDb3dVertex.js","sourceRoot":"","sources":["../../src/entity/AcDb3dVertex.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EACL,SAAS,EAET,WAAW,GAEZ,MAAM,4BAA4B,CAAA;AAGnC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAGzC,MAAM,CAAN,IAAY,gBAeX;AAfD,WAAY,gBAAgB;IAC1B;;OAEG;IACH,uEAAY,CAAA;IACZ;;OAEG;IACH,yEAAa,CAAA;IACb;;;;OAIG;IACH,iEAAS,CAAA;AACX,CAAC,EAfW,gBAAgB,KAAhB,gBAAgB,QAe3B;AAED;;GAEG;AACH;IAAkC,gCAAU;IAS1C;;OAEG;IACH;QACE,YAAA,MAAK,WAAE,SAAA;QACP,KAAI,CAAC,SAAS,GAAG,IAAI,WAAW,EAAE,CAAA;QAClC,KAAI,CAAC,WAAW,GAAG,gBAAgB,CAAC,YAAY,CAAA;;IAClD,CAAC;IAOD,sBAAI,kCAAQ;QALZ;;;;WAIG;aACH;YACE,OAAO,IAAI,CAAC,SAAS,CAAA;QACvB,CAAC;QAED;;;;WAIG;aACH,UAAa,KAAsB;YACjC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;QAC5B,CAAC;;;OATA;IAeD,sBAAI,oCAAU;QAJd;;;WAGG;aACH;YACE,OAAO,IAAI,CAAC,WAAW,CAAA;QACzB,CAAC;QAED;;;WAGG;aACH,UAAe,KAAuB;YACpC,IAAI,CAAC,WAAW,GAAG,KAAK,CAAA;QAC1B,CAAC;;;OARA;IAeD,sBAAI,0CAAgB;QALpB;;;;WAIG;aACH;YACE,OAAO,IAAI,SAAS,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,SAAS,CAAC,CAAA;QACtD,CAAC;;;OAAA;IAED;;;;OAIG;IACH,uCAAgB,GAAhB;QACE,IAAM,UAAU,GAAG,IAAI,KAAK,EAAe,CAAA;QAC3C,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,CAAA;QAC/B,OAAO,UAAU,CAAA;IACnB,CAAC;IAED;;;;;OAKG;IACH,kCAAW,GAAX,UAAY,MAAoB;QAC9B,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,MAAM,CAAC,CAAA;QACnC,OAAO,IAAI,CAAA;IACb,CAAC;IAED;;;;;OAKG;IACH,2BAAI,GAAJ,UAAK,SAAuB;QAC1B,OAAO,SAAS,CAAA;IAClB,CAAC;IA1FD,2BAA2B;IACX,qBAAQ,GAAW,UAAU,CAAA;IA0F/C,mBAAC;CAAA,AA5FD,CAAkC,UAAU,GA4F3C;SA5FY,YAAY"}
|
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
import { AcGeMatrix3d, AcGePoint3d, AcGePoint3dLike } from '@mlightcad/geometry-engine';
|
|
2
|
+
import { AcGiRenderer } from '@mlightcad/graphic-interface';
|
|
3
|
+
import { AcDbCurve } from './AcDbCurve';
|
|
4
|
+
/**
|
|
5
|
+
* Represents an arc entity in AutoCAD.
|
|
6
|
+
*
|
|
7
|
+
* An arc is a 2D geometric object defined by its center point, radius, start angle,
|
|
8
|
+
* and end angle. Arcs are portions of circles that can be used to create curved
|
|
9
|
+
* line segments in drawings. The arc is always drawn in the plane defined by its normal vector.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```typescript
|
|
13
|
+
* // Create a 90-degree arc from 0 to π/2 radians
|
|
14
|
+
* const arc = new AcDbArc(
|
|
15
|
+
* new AcGePoint3d(0, 0, 0),
|
|
16
|
+
* 10,
|
|
17
|
+
* 0,
|
|
18
|
+
* Math.PI / 2
|
|
19
|
+
* );
|
|
20
|
+
*
|
|
21
|
+
* // Access arc properties
|
|
22
|
+
* console.log(`Center: ${arc.center}`);
|
|
23
|
+
* console.log(`Radius: ${arc.radius}`);
|
|
24
|
+
* console.log(`Start angle: ${arc.startAngle}`);
|
|
25
|
+
* console.log(`End angle: ${arc.endAngle}`);
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
export declare class AcDbArc extends AcDbCurve {
|
|
29
|
+
/** The entity type name */
|
|
30
|
+
static typeName: string;
|
|
31
|
+
/** The underlying geometric circular arc object */
|
|
32
|
+
private _geo;
|
|
33
|
+
/**
|
|
34
|
+
* Creates a new arc entity.
|
|
35
|
+
*
|
|
36
|
+
* This constructor creates an arc using the specified center point, radius,
|
|
37
|
+
* start angle, and end angle. The center point must be in World Coordinate
|
|
38
|
+
* System (WCS) coordinates. Angles are specified in radians.
|
|
39
|
+
*
|
|
40
|
+
* @param center - The center point of the arc in WCS coordinates
|
|
41
|
+
* @param radius - The radius of the arc (must be positive)
|
|
42
|
+
* @param startAngle - The starting angle in radians (0 to 2π)
|
|
43
|
+
* @param endAngle - The ending angle in radians (0 to 2π)
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* ```typescript
|
|
47
|
+
* // Create a quarter circle arc (0 to 90 degrees)
|
|
48
|
+
* const quarterArc = new AcDbArc(
|
|
49
|
+
* new AcGePoint3d(0, 0, 0),
|
|
50
|
+
* 15,
|
|
51
|
+
* 0,
|
|
52
|
+
* Math.PI / 2
|
|
53
|
+
* );
|
|
54
|
+
*
|
|
55
|
+
* // Create a semicircle arc (0 to 180 degrees)
|
|
56
|
+
* const semicircle = new AcDbArc(
|
|
57
|
+
* new AcGePoint3d(10, 20, 0),
|
|
58
|
+
* 25,
|
|
59
|
+
* 0,
|
|
60
|
+
* Math.PI
|
|
61
|
+
* );
|
|
62
|
+
* ```
|
|
63
|
+
*/
|
|
64
|
+
constructor(center: AcGePoint3dLike, radius: number, startAngle: number, endAngle: number);
|
|
65
|
+
/**
|
|
66
|
+
* Gets the center point of this arc.
|
|
67
|
+
*
|
|
68
|
+
* @returns The center point as a 3D point
|
|
69
|
+
*
|
|
70
|
+
* @example
|
|
71
|
+
* ```typescript
|
|
72
|
+
* const centerPoint = arc.center;
|
|
73
|
+
* console.log(`Arc center: ${centerPoint.x}, ${centerPoint.y}, ${centerPoint.z}`);
|
|
74
|
+
* ```
|
|
75
|
+
*/
|
|
76
|
+
get center(): AcGePoint3d;
|
|
77
|
+
/**
|
|
78
|
+
* Sets the center point of this arc.
|
|
79
|
+
*
|
|
80
|
+
* @param value - The new center point
|
|
81
|
+
*
|
|
82
|
+
* @example
|
|
83
|
+
* ```typescript
|
|
84
|
+
* arc.center = new AcGePoint3d(5, 5, 0);
|
|
85
|
+
* ```
|
|
86
|
+
*/
|
|
87
|
+
set center(value: AcGePoint3dLike);
|
|
88
|
+
/**
|
|
89
|
+
* Gets the radius of this arc.
|
|
90
|
+
*
|
|
91
|
+
* @returns The radius value
|
|
92
|
+
*
|
|
93
|
+
* @example
|
|
94
|
+
* ```typescript
|
|
95
|
+
* const radius = arc.radius;
|
|
96
|
+
* console.log(`Arc radius: ${radius}`);
|
|
97
|
+
* ```
|
|
98
|
+
*/
|
|
99
|
+
get radius(): number;
|
|
100
|
+
/**
|
|
101
|
+
* Sets the radius of this arc.
|
|
102
|
+
*
|
|
103
|
+
* @param value - The new radius value (must be positive)
|
|
104
|
+
*
|
|
105
|
+
* @example
|
|
106
|
+
* ```typescript
|
|
107
|
+
* arc.radius = 25;
|
|
108
|
+
* ```
|
|
109
|
+
*/
|
|
110
|
+
set radius(value: number);
|
|
111
|
+
/**
|
|
112
|
+
* Gets the start angle of this arc.
|
|
113
|
+
*
|
|
114
|
+
* @returns The start angle in radians
|
|
115
|
+
*
|
|
116
|
+
* @example
|
|
117
|
+
* ```typescript
|
|
118
|
+
* const startAngle = arc.startAngle;
|
|
119
|
+
* console.log(`Arc start angle: ${startAngle} radians (${startAngle * 180 / Math.PI} degrees)`);
|
|
120
|
+
* ```
|
|
121
|
+
*/
|
|
122
|
+
get startAngle(): number;
|
|
123
|
+
/**
|
|
124
|
+
* Sets the start angle of this arc.
|
|
125
|
+
*
|
|
126
|
+
* @param value - The new start angle in radians (0 to 2π)
|
|
127
|
+
*
|
|
128
|
+
* @example
|
|
129
|
+
* ```typescript
|
|
130
|
+
* arc.startAngle = Math.PI / 4; // 45 degrees
|
|
131
|
+
* ```
|
|
132
|
+
*/
|
|
133
|
+
set startAngle(value: number);
|
|
134
|
+
/**
|
|
135
|
+
* Gets the end angle of this arc.
|
|
136
|
+
*
|
|
137
|
+
* @returns The end angle in radians
|
|
138
|
+
*
|
|
139
|
+
* @example
|
|
140
|
+
* ```typescript
|
|
141
|
+
* const endAngle = arc.endAngle;
|
|
142
|
+
* console.log(`Arc end angle: ${endAngle} radians (${endAngle * 180 / Math.PI} degrees)`);
|
|
143
|
+
* ```
|
|
144
|
+
*/
|
|
145
|
+
get endAngle(): number;
|
|
146
|
+
/**
|
|
147
|
+
* Sets the end angle of this arc.
|
|
148
|
+
*
|
|
149
|
+
* @param value - The new end angle in radians (0 to 2π)
|
|
150
|
+
*
|
|
151
|
+
* @example
|
|
152
|
+
* ```typescript
|
|
153
|
+
* arc.endAngle = Math.PI; // 180 degrees
|
|
154
|
+
* ```
|
|
155
|
+
*/
|
|
156
|
+
set endAngle(value: number);
|
|
157
|
+
/**
|
|
158
|
+
* Gets the start point of this arc.
|
|
159
|
+
*
|
|
160
|
+
* The start point is calculated based on the center, radius, and start angle.
|
|
161
|
+
*
|
|
162
|
+
* @returns The start point as a 3D point
|
|
163
|
+
*
|
|
164
|
+
* @example
|
|
165
|
+
* ```typescript
|
|
166
|
+
* const startPoint = arc.startPoint;
|
|
167
|
+
* console.log(`Arc start point: ${startPoint.x}, ${startPoint.y}, ${startPoint.z}`);
|
|
168
|
+
* ```
|
|
169
|
+
*/
|
|
170
|
+
get startPoint(): AcGePoint3d;
|
|
171
|
+
/**
|
|
172
|
+
* Gets the end point of this arc.
|
|
173
|
+
*
|
|
174
|
+
* The end point is calculated based on the center, radius, and end angle.
|
|
175
|
+
*
|
|
176
|
+
* @returns The end point as a 3D point
|
|
177
|
+
*
|
|
178
|
+
* @example
|
|
179
|
+
* ```typescript
|
|
180
|
+
* const endPoint = arc.endPoint;
|
|
181
|
+
* console.log(`Arc end point: ${endPoint.x}, ${endPoint.y}, ${endPoint.z}`);
|
|
182
|
+
* ```
|
|
183
|
+
*/
|
|
184
|
+
get endPoint(): AcGePoint3d;
|
|
185
|
+
/**
|
|
186
|
+
* Gets the geometric extents (bounding box) of this arc.
|
|
187
|
+
*
|
|
188
|
+
* @returns The bounding box that encompasses the entire arc
|
|
189
|
+
*
|
|
190
|
+
* @example
|
|
191
|
+
* ```typescript
|
|
192
|
+
* const extents = arc.geometricExtents;
|
|
193
|
+
* console.log(`Arc bounds: ${extents.minPoint} to ${extents.maxPoint}`);
|
|
194
|
+
* ```
|
|
195
|
+
*/
|
|
196
|
+
get geometricExtents(): import("@mlightcad/geometry-engine").AcGeBox3d;
|
|
197
|
+
/**
|
|
198
|
+
* Gets whether this arc is closed.
|
|
199
|
+
*
|
|
200
|
+
* An arc is considered closed if the start and end angles are the same
|
|
201
|
+
* (forming a complete circle).
|
|
202
|
+
*
|
|
203
|
+
* @returns True if the arc is closed (forms a complete circle), false otherwise
|
|
204
|
+
*/
|
|
205
|
+
get closed(): boolean;
|
|
206
|
+
/**
|
|
207
|
+
* Gets the grip points for this arc.
|
|
208
|
+
*
|
|
209
|
+
* Grip points are control points that can be used to modify the arc.
|
|
210
|
+
* For an arc, the grip points are the center point, start point, and end point.
|
|
211
|
+
*
|
|
212
|
+
* @returns Array of grip points (center, start point, end point)
|
|
213
|
+
*
|
|
214
|
+
* @example
|
|
215
|
+
* ```typescript
|
|
216
|
+
* const gripPoints = arc.subGetGripPoints();
|
|
217
|
+
* // gripPoints contains: [center, startPoint, endPoint]
|
|
218
|
+
* ```
|
|
219
|
+
*/
|
|
220
|
+
subGetGripPoints(): AcGePoint3d[];
|
|
221
|
+
/**
|
|
222
|
+
* Transforms this arc by the specified matrix.
|
|
223
|
+
*
|
|
224
|
+
* This method applies a geometric transformation to the arc, updating
|
|
225
|
+
* the center point, radius, and angles according to the transformation matrix.
|
|
226
|
+
*
|
|
227
|
+
* @param matrix - The transformation matrix to apply
|
|
228
|
+
* @returns This arc after transformation
|
|
229
|
+
*
|
|
230
|
+
* @example
|
|
231
|
+
* ```typescript
|
|
232
|
+
* const translationMatrix = AcGeMatrix3d.translation(10, 0, 0);
|
|
233
|
+
* arc.transformBy(translationMatrix);
|
|
234
|
+
* // Arc is now translated 10 units in the X direction
|
|
235
|
+
* ```
|
|
236
|
+
*/
|
|
237
|
+
transformBy(matrix: AcGeMatrix3d): this;
|
|
238
|
+
/**
|
|
239
|
+
* Draws this arc using the specified renderer.
|
|
240
|
+
*
|
|
241
|
+
* This method renders the arc as a circular arc using the arc's
|
|
242
|
+
* current style properties.
|
|
243
|
+
*
|
|
244
|
+
* @param renderer - The renderer to use for drawing
|
|
245
|
+
* @returns The rendered arc entity, or undefined if drawing failed
|
|
246
|
+
*
|
|
247
|
+
* @example
|
|
248
|
+
* ```typescript
|
|
249
|
+
* const renderedArc = arc.draw(renderer);
|
|
250
|
+
* ```
|
|
251
|
+
*/
|
|
252
|
+
draw(renderer: AcGiRenderer): import("@mlightcad/graphic-interface").AcGiEntity;
|
|
253
|
+
}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