@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,209 @@
|
|
|
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, AcGeVector3d } from '@mlightcad/geometry-engine';
|
|
17
|
+
import { AcDbCurve } from './AcDbCurve';
|
|
18
|
+
/**
|
|
19
|
+
* Represents an xline entity in AutoCAD.
|
|
20
|
+
*
|
|
21
|
+
* An xline is a 3D geometric object that extends infinitely in both directions from a base point.
|
|
22
|
+
* Xlines are commonly used for construction lines, reference lines, and temporary geometry.
|
|
23
|
+
* Unlike lines, xlines have no end points and extend to infinity in both directions.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```typescript
|
|
27
|
+
* // Create an xline from origin in the positive X direction
|
|
28
|
+
* const xline = new AcDbXline();
|
|
29
|
+
* xline.basePoint = new AcGePoint3d(0, 0, 0);
|
|
30
|
+
* xline.unitDir = new AcGeVector3d(1, 0, 0);
|
|
31
|
+
*
|
|
32
|
+
* // Access xline properties
|
|
33
|
+
* console.log(`Base point: ${xline.basePoint}`);
|
|
34
|
+
* console.log(`Unit direction: ${xline.unitDir}`);
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
var AcDbXline = /** @class */ (function (_super) {
|
|
38
|
+
__extends(AcDbXline, _super);
|
|
39
|
+
/**
|
|
40
|
+
* Creates a new xline entity.
|
|
41
|
+
*
|
|
42
|
+
* This constructor initializes an xline with default values.
|
|
43
|
+
* The base point is at the origin and the unit direction is undefined.
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* ```typescript
|
|
47
|
+
* const xline = new AcDbXline();
|
|
48
|
+
* xline.basePoint = new AcGePoint3d(5, 10, 0);
|
|
49
|
+
* xline.unitDir = new AcGeVector3d(0, 1, 0); // Positive Y direction
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
function AcDbXline() {
|
|
53
|
+
var _this = _super.call(this) || this;
|
|
54
|
+
_this._basePoint = new AcGePoint3d();
|
|
55
|
+
_this._unitDir = new AcGeVector3d();
|
|
56
|
+
return _this;
|
|
57
|
+
}
|
|
58
|
+
Object.defineProperty(AcDbXline.prototype, "basePoint", {
|
|
59
|
+
/**
|
|
60
|
+
* Gets the base point of this xline.
|
|
61
|
+
*
|
|
62
|
+
* The base point is the center point from which the xline extends infinitely
|
|
63
|
+
* in both directions.
|
|
64
|
+
*
|
|
65
|
+
* @returns The base point as a 3D point
|
|
66
|
+
*
|
|
67
|
+
* @example
|
|
68
|
+
* ```typescript
|
|
69
|
+
* const basePoint = xline.basePoint;
|
|
70
|
+
* console.log(`Xline base point: ${basePoint.x}, ${basePoint.y}, ${basePoint.z}`);
|
|
71
|
+
* ```
|
|
72
|
+
*/
|
|
73
|
+
get: function () {
|
|
74
|
+
return this._basePoint;
|
|
75
|
+
},
|
|
76
|
+
/**
|
|
77
|
+
* Sets the base point of this xline.
|
|
78
|
+
*
|
|
79
|
+
* @param value - The new base point
|
|
80
|
+
*
|
|
81
|
+
* @example
|
|
82
|
+
* ```typescript
|
|
83
|
+
* xline.basePoint = new AcGePoint3d(10, 20, 0);
|
|
84
|
+
* ```
|
|
85
|
+
*/
|
|
86
|
+
set: function (value) {
|
|
87
|
+
this._basePoint.copy(value);
|
|
88
|
+
},
|
|
89
|
+
enumerable: false,
|
|
90
|
+
configurable: true
|
|
91
|
+
});
|
|
92
|
+
Object.defineProperty(AcDbXline.prototype, "unitDir", {
|
|
93
|
+
/**
|
|
94
|
+
* Gets the unit direction vector of this xline.
|
|
95
|
+
*
|
|
96
|
+
* The unit direction vector defines the direction in which the xline extends
|
|
97
|
+
* infinitely in both directions from the base point.
|
|
98
|
+
*
|
|
99
|
+
* @returns The unit direction vector
|
|
100
|
+
*
|
|
101
|
+
* @example
|
|
102
|
+
* ```typescript
|
|
103
|
+
* const unitDir = xline.unitDir;
|
|
104
|
+
* console.log(`Xline direction: ${unitDir.x}, ${unitDir.y}, ${unitDir.z}`);
|
|
105
|
+
* ```
|
|
106
|
+
*/
|
|
107
|
+
get: function () {
|
|
108
|
+
return this._unitDir;
|
|
109
|
+
},
|
|
110
|
+
/**
|
|
111
|
+
* Sets the unit direction vector of this xline.
|
|
112
|
+
*
|
|
113
|
+
* @param value - The new unit direction vector
|
|
114
|
+
*
|
|
115
|
+
* @example
|
|
116
|
+
* ```typescript
|
|
117
|
+
* xline.unitDir = new AcGeVector3d(0, 0, 1); // Positive Z direction
|
|
118
|
+
* ```
|
|
119
|
+
*/
|
|
120
|
+
set: function (value) {
|
|
121
|
+
this._unitDir.copy(value);
|
|
122
|
+
},
|
|
123
|
+
enumerable: false,
|
|
124
|
+
configurable: true
|
|
125
|
+
});
|
|
126
|
+
Object.defineProperty(AcDbXline.prototype, "closed", {
|
|
127
|
+
/**
|
|
128
|
+
* Gets whether this xline is closed.
|
|
129
|
+
*
|
|
130
|
+
* Xlines are always open entities, so this always returns false.
|
|
131
|
+
*
|
|
132
|
+
* @returns Always false for xlines
|
|
133
|
+
*/
|
|
134
|
+
get: function () {
|
|
135
|
+
return false;
|
|
136
|
+
},
|
|
137
|
+
enumerable: false,
|
|
138
|
+
configurable: true
|
|
139
|
+
});
|
|
140
|
+
Object.defineProperty(AcDbXline.prototype, "geometricExtents", {
|
|
141
|
+
/**
|
|
142
|
+
* Gets the geometric extents (bounding box) of this xline.
|
|
143
|
+
*
|
|
144
|
+
* Since xlines extend infinitely in both directions, this method returns a
|
|
145
|
+
* bounding box that encompasses a finite portion of the xline for practical purposes.
|
|
146
|
+
*
|
|
147
|
+
* @returns The bounding box that encompasses a portion of the xline
|
|
148
|
+
*
|
|
149
|
+
* @example
|
|
150
|
+
* ```typescript
|
|
151
|
+
* const extents = xline.geometricExtents;
|
|
152
|
+
* console.log(`Xline bounds: ${extents.minPoint} to ${extents.maxPoint}`);
|
|
153
|
+
* ```
|
|
154
|
+
*/
|
|
155
|
+
get: function () {
|
|
156
|
+
var extents = new AcGeBox3d();
|
|
157
|
+
extents.expandByPoint(this._unitDir.clone().multiplyScalar(10).add(this._basePoint));
|
|
158
|
+
extents.expandByPoint(this._unitDir.clone().multiplyScalar(-10).add(this._basePoint));
|
|
159
|
+
return extents;
|
|
160
|
+
},
|
|
161
|
+
enumerable: false,
|
|
162
|
+
configurable: true
|
|
163
|
+
});
|
|
164
|
+
/**
|
|
165
|
+
* Gets the grip points for this xline.
|
|
166
|
+
*
|
|
167
|
+
* Grip points are control points that can be used to modify the xline.
|
|
168
|
+
* For an xline, the grip point is the base point.
|
|
169
|
+
*
|
|
170
|
+
* @returns Array of grip points (base point)
|
|
171
|
+
*
|
|
172
|
+
* @example
|
|
173
|
+
* ```typescript
|
|
174
|
+
* const gripPoints = xline.subGetGripPoints();
|
|
175
|
+
* // gripPoints contains: [basePoint]
|
|
176
|
+
* ```
|
|
177
|
+
*/
|
|
178
|
+
AcDbXline.prototype.subGetGripPoints = function () {
|
|
179
|
+
var gripPoints = new Array();
|
|
180
|
+
gripPoints.push(this.basePoint);
|
|
181
|
+
return gripPoints;
|
|
182
|
+
};
|
|
183
|
+
/**
|
|
184
|
+
* Draws this xline using the specified renderer.
|
|
185
|
+
*
|
|
186
|
+
* This method renders the xline as a line segment extending from the base point
|
|
187
|
+
* in both directions along the unit vector. For practical purposes, the xline is
|
|
188
|
+
* drawn with a finite length.
|
|
189
|
+
*
|
|
190
|
+
* @param renderer - The renderer to use for drawing
|
|
191
|
+
* @returns The rendered xline entity, or undefined if drawing failed
|
|
192
|
+
*
|
|
193
|
+
* @example
|
|
194
|
+
* ```typescript
|
|
195
|
+
* const renderedXline = xline.draw(renderer);
|
|
196
|
+
* ```
|
|
197
|
+
*/
|
|
198
|
+
AcDbXline.prototype.draw = function (renderer) {
|
|
199
|
+
var points = [];
|
|
200
|
+
points.push(this._unitDir.clone().multiplyScalar(-1000000).add(this._basePoint));
|
|
201
|
+
points.push(this._unitDir.clone().multiplyScalar(1000000).add(this._basePoint));
|
|
202
|
+
return renderer.lines(points, this.lineStyle);
|
|
203
|
+
};
|
|
204
|
+
/** The entity type name */
|
|
205
|
+
AcDbXline.typeName = 'Xline';
|
|
206
|
+
return AcDbXline;
|
|
207
|
+
}(AcDbCurve));
|
|
208
|
+
export { AcDbXline };
|
|
209
|
+
//# sourceMappingURL=AcDbXline.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcDbXline.js","sourceRoot":"","sources":["../../src/entity/AcDbXline.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EACL,SAAS,EACT,WAAW,EACX,YAAY,EACb,MAAM,4BAA4B,CAAA;AAGnC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAEvC;;;;;;;;;;;;;;;;;;GAkBG;AACH;IAA+B,6BAAS;IAStC;;;;;;;;;;;;OAYG;IACH;QACE,YAAA,MAAK,WAAE,SAAA;QACP,KAAI,CAAC,UAAU,GAAG,IAAI,WAAW,EAAE,CAAA;QACnC,KAAI,CAAC,QAAQ,GAAG,IAAI,YAAY,EAAE,CAAA;;IACpC,CAAC;IAgBD,sBAAI,gCAAS;QAdb;;;;;;;;;;;;;WAaG;aACH;YACE,OAAO,IAAI,CAAC,UAAU,CAAA;QACxB,CAAC;QAED;;;;;;;;;WASG;aACH,UAAc,KAAkB;YAC9B,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;QAC7B,CAAC;;;OAdA;IA8BD,sBAAI,8BAAO;QAdX;;;;;;;;;;;;;WAaG;aACH;YACE,OAAO,IAAI,CAAC,QAAQ,CAAA;QACtB,CAAC;QAED;;;;;;;;;WASG;aACH,UAAY,KAAkB;YAC5B,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;QAC3B,CAAC;;;OAdA;IAuBD,sBAAI,6BAAM;QAPV;;;;;;WAMG;aACH;YACE,OAAO,KAAK,CAAA;QACd,CAAC;;;OAAA;IAgBD,sBAAI,uCAAgB;QAdpB;;;;;;;;;;;;;WAaG;aACH;YACE,IAAM,OAAO,GAAG,IAAI,SAAS,EAAE,CAAA;YAC/B,OAAO,CAAC,aAAa,CACnB,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC,CAC9D,CAAA;YACD,OAAO,CAAC,aAAa,CACnB,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,CAAC,cAAc,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC,CAC/D,CAAA;YACD,OAAO,OAAO,CAAA;QAChB,CAAC;;;OAAA;IAED;;;;;;;;;;;;;OAaG;IACH,oCAAgB,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;;;;;;;;;;;;;;OAcG;IACH,wBAAI,GAAJ,UAAK,QAAsB;QACzB,IAAM,MAAM,GAAkB,EAAE,CAAA;QAChC,MAAM,CAAC,IAAI,CACT,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,CAAC,cAAc,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC,CACpE,CAAA;QACD,MAAM,CAAC,IAAI,CACT,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC,CACnE,CAAA;QACD,OAAO,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,IAAI,CAAC,SAAS,CAAC,CAAA;IAC/C,CAAC;IA3KD,2BAA2B;IACX,kBAAQ,GAAW,OAAO,CAAA;IA2K5C,gBAAC;CAAA,AA7KD,CAA+B,SAAS,GA6KvC;SA7KY,SAAS"}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { AcGeBox3d, AcGePoint3d, AcGePointLike } from '@mlightcad/geometry-engine';
|
|
2
|
+
import { AcDbDimension } from './AcDbDimension';
|
|
3
|
+
/**
|
|
4
|
+
* Represents a three-point angular dimension entity in AutoCAD.
|
|
5
|
+
*
|
|
6
|
+
* This dimension type measures the angle between two lines or edges by defining three points:
|
|
7
|
+
* a center point and two points that define the lines or edges being measured. The dimension
|
|
8
|
+
* displays the angle value and typically includes extension lines, dimension lines, and arrows.
|
|
9
|
+
*
|
|
10
|
+
* Three-point angular dimensions are commonly used to measure angles between non-parallel lines,
|
|
11
|
+
* angles of arcs, or any angular measurement that requires three reference points.
|
|
12
|
+
*/
|
|
13
|
+
export declare class AcDb3PointAngularDimension extends AcDbDimension {
|
|
14
|
+
/** The entity type name */
|
|
15
|
+
static typeName: string;
|
|
16
|
+
private _arcPoint;
|
|
17
|
+
private _centerPoint;
|
|
18
|
+
private _xLine1Point;
|
|
19
|
+
private _xLine2Point;
|
|
20
|
+
/**
|
|
21
|
+
* Creates a new three-point angular dimension.
|
|
22
|
+
*
|
|
23
|
+
* @param centerPoint - The center point of the angle being measured. This is typically
|
|
24
|
+
* the vertex where the two lines or edges meet
|
|
25
|
+
* @param xLine1Point - The first extension line end point. This defines one of the
|
|
26
|
+
* lines or edges being measured
|
|
27
|
+
* @param xLine2Point - The second extension line end point. This defines the other
|
|
28
|
+
* line or edge being measured
|
|
29
|
+
* @param arcPoint - A point on the arc that represents the angle being measured.
|
|
30
|
+
* This point helps determine the direction and extent of the angle
|
|
31
|
+
* @param dimText - Optional custom dimension text to display instead of the calculated
|
|
32
|
+
* angle value. If null, the calculated angle will be displayed
|
|
33
|
+
* @param dimStyle - Optional name of the dimension style table record to use for
|
|
34
|
+
* formatting. If null, the current default style will be used
|
|
35
|
+
*/
|
|
36
|
+
constructor(centerPoint: AcGePointLike, xLine1Point: AcGePointLike, xLine2Point: AcGePointLike, arcPoint: AcGePointLike, dimText?: string | null, dimStyle?: string | null);
|
|
37
|
+
/**
|
|
38
|
+
* Gets or sets a point on the arc that represents the angle being measured.
|
|
39
|
+
*
|
|
40
|
+
* This point is used to determine the direction and extent of the angle measurement.
|
|
41
|
+
* It helps define which side of the angle should be measured and how the dimension
|
|
42
|
+
* arc should be drawn.
|
|
43
|
+
*
|
|
44
|
+
* @returns The arc point that defines the angle measurement
|
|
45
|
+
*/
|
|
46
|
+
get arcPoint(): AcGePoint3d;
|
|
47
|
+
set arcPoint(value: AcGePoint3d);
|
|
48
|
+
/**
|
|
49
|
+
* Gets or sets the center point of the angle being measured.
|
|
50
|
+
*
|
|
51
|
+
* The center point is the vertex where the two lines or edges meet. This point
|
|
52
|
+
* serves as the reference for measuring the angle between the two extension lines.
|
|
53
|
+
*
|
|
54
|
+
* @returns The center point of the angle
|
|
55
|
+
*/
|
|
56
|
+
get centerPoint(): AcGePoint3d;
|
|
57
|
+
set centerPoint(value: AcGePoint3d);
|
|
58
|
+
/**
|
|
59
|
+
* Gets or sets the first extension line end point.
|
|
60
|
+
*
|
|
61
|
+
* This point defines one of the lines or edges being measured. The extension line
|
|
62
|
+
* extends from this point to the center point, helping to clearly identify the
|
|
63
|
+
* first reference line for the angle measurement.
|
|
64
|
+
*
|
|
65
|
+
* @returns The first extension line end point
|
|
66
|
+
*/
|
|
67
|
+
get xLine1Point(): AcGePoint3d;
|
|
68
|
+
set xLine1Point(value: AcGePoint3d);
|
|
69
|
+
/**
|
|
70
|
+
* Gets or sets the second extension line end point.
|
|
71
|
+
*
|
|
72
|
+
* This point defines the other line or edge being measured. The extension line
|
|
73
|
+
* extends from this point to the center point, helping to clearly identify the
|
|
74
|
+
* second reference line for the angle measurement.
|
|
75
|
+
*
|
|
76
|
+
* @returns The second extension line end point
|
|
77
|
+
*/
|
|
78
|
+
get xLine2Point(): AcGePoint3d;
|
|
79
|
+
set xLine2Point(value: AcGePoint3d);
|
|
80
|
+
/**
|
|
81
|
+
* Gets the geometric extents (bounding box) of this dimension entity.
|
|
82
|
+
*
|
|
83
|
+
* The geometric extents define the minimum bounding box that completely contains
|
|
84
|
+
* the dimension entity, including all its components like extension lines,
|
|
85
|
+
* dimension lines, arrows, and text.
|
|
86
|
+
*
|
|
87
|
+
* @returns A 3D bounding box containing the dimension entity
|
|
88
|
+
* @inheritdoc
|
|
89
|
+
*/
|
|
90
|
+
get geometricExtents(): AcGeBox3d;
|
|
91
|
+
}
|
|
92
|
+
//# sourceMappingURL=AcDb3PointAngularDimension.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcDb3PointAngularDimension.d.ts","sourceRoot":"","sources":["../../../src/entity/dimension/AcDb3PointAngularDimension.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,WAAW,EACX,aAAa,EACd,MAAM,4BAA4B,CAAA;AAEnC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAE/C;;;;;;;;;GASG;AACH,qBAAa,0BAA2B,SAAQ,aAAa;IAC3D,2BAA2B;IAC3B,OAAgB,QAAQ,EAAE,MAAM,CAA2B;IAE3D,OAAO,CAAC,SAAS,CAAa;IAC9B,OAAO,CAAC,YAAY,CAAa;IACjC,OAAO,CAAC,YAAY,CAAa;IACjC,OAAO,CAAC,YAAY,CAAa;IAEjC;;;;;;;;;;;;;;;OAeG;gBAED,WAAW,EAAE,aAAa,EAC1B,WAAW,EAAE,aAAa,EAC1B,WAAW,EAAE,aAAa,EAC1B,QAAQ,EAAE,aAAa,EACvB,OAAO,GAAE,MAAM,GAAG,IAAW,EAC7B,QAAQ,GAAE,MAAM,GAAG,IAAW;IAahC;;;;;;;;OAQG;IACH,IAAI,QAAQ,IAGQ,WAAW,CAD9B;IACD,IAAI,QAAQ,CAAC,KAAK,EAAE,WAAW,EAE9B;IAED;;;;;;;OAOG;IACH,IAAI,WAAW,IAGQ,WAAW,CADjC;IACD,IAAI,WAAW,CAAC,KAAK,EAAE,WAAW,EAEjC;IAED;;;;;;;;OAQG;IACH,IAAI,WAAW,IAGQ,WAAW,CADjC;IACD,IAAI,WAAW,CAAC,KAAK,EAAE,WAAW,EAEjC;IAED;;;;;;;;OAQG;IACH,IAAI,WAAW,IAGQ,WAAW,CADjC;IACD,IAAI,WAAW,CAAC,KAAK,EAAE,WAAW,EAEjC;IAED;;;;;;;;;OASG;IACH,IAAI,gBAAgB,cAGnB;CACF"}
|
|
@@ -0,0 +1,157 @@
|
|
|
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 { AcDbDimension } from './AcDbDimension';
|
|
18
|
+
/**
|
|
19
|
+
* Represents a three-point angular dimension entity in AutoCAD.
|
|
20
|
+
*
|
|
21
|
+
* This dimension type measures the angle between two lines or edges by defining three points:
|
|
22
|
+
* a center point and two points that define the lines or edges being measured. The dimension
|
|
23
|
+
* displays the angle value and typically includes extension lines, dimension lines, and arrows.
|
|
24
|
+
*
|
|
25
|
+
* Three-point angular dimensions are commonly used to measure angles between non-parallel lines,
|
|
26
|
+
* angles of arcs, or any angular measurement that requires three reference points.
|
|
27
|
+
*/
|
|
28
|
+
var AcDb3PointAngularDimension = /** @class */ (function (_super) {
|
|
29
|
+
__extends(AcDb3PointAngularDimension, _super);
|
|
30
|
+
/**
|
|
31
|
+
* Creates a new three-point angular dimension.
|
|
32
|
+
*
|
|
33
|
+
* @param centerPoint - The center point of the angle being measured. This is typically
|
|
34
|
+
* the vertex where the two lines or edges meet
|
|
35
|
+
* @param xLine1Point - The first extension line end point. This defines one of the
|
|
36
|
+
* lines or edges being measured
|
|
37
|
+
* @param xLine2Point - The second extension line end point. This defines the other
|
|
38
|
+
* line or edge being measured
|
|
39
|
+
* @param arcPoint - A point on the arc that represents the angle being measured.
|
|
40
|
+
* This point helps determine the direction and extent of the angle
|
|
41
|
+
* @param dimText - Optional custom dimension text to display instead of the calculated
|
|
42
|
+
* angle value. If null, the calculated angle will be displayed
|
|
43
|
+
* @param dimStyle - Optional name of the dimension style table record to use for
|
|
44
|
+
* formatting. If null, the current default style will be used
|
|
45
|
+
*/
|
|
46
|
+
function AcDb3PointAngularDimension(centerPoint, xLine1Point, xLine2Point, arcPoint, dimText, dimStyle) {
|
|
47
|
+
if (dimText === void 0) { dimText = null; }
|
|
48
|
+
if (dimStyle === void 0) { dimStyle = null; }
|
|
49
|
+
var _this = _super.call(this) || this;
|
|
50
|
+
_this._centerPoint = new AcGePoint3d().copy(centerPoint);
|
|
51
|
+
_this._xLine1Point = new AcGePoint3d().copy(xLine1Point);
|
|
52
|
+
_this._xLine2Point = new AcGePoint3d().copy(xLine2Point);
|
|
53
|
+
_this._arcPoint = new AcGePoint3d().copy(arcPoint);
|
|
54
|
+
_this.dimensionText = dimText;
|
|
55
|
+
// TODO: Set it to the current default dimStyle within the AutoCAD editor if dimStyle is null
|
|
56
|
+
_this.dimensionStyleName = dimStyle;
|
|
57
|
+
return _this;
|
|
58
|
+
}
|
|
59
|
+
Object.defineProperty(AcDb3PointAngularDimension.prototype, "arcPoint", {
|
|
60
|
+
/**
|
|
61
|
+
* Gets or sets a point on the arc that represents the angle being measured.
|
|
62
|
+
*
|
|
63
|
+
* This point is used to determine the direction and extent of the angle measurement.
|
|
64
|
+
* It helps define which side of the angle should be measured and how the dimension
|
|
65
|
+
* arc should be drawn.
|
|
66
|
+
*
|
|
67
|
+
* @returns The arc point that defines the angle measurement
|
|
68
|
+
*/
|
|
69
|
+
get: function () {
|
|
70
|
+
return this._arcPoint;
|
|
71
|
+
},
|
|
72
|
+
set: function (value) {
|
|
73
|
+
this._arcPoint.copy(value);
|
|
74
|
+
},
|
|
75
|
+
enumerable: false,
|
|
76
|
+
configurable: true
|
|
77
|
+
});
|
|
78
|
+
Object.defineProperty(AcDb3PointAngularDimension.prototype, "centerPoint", {
|
|
79
|
+
/**
|
|
80
|
+
* Gets or sets the center point of the angle being measured.
|
|
81
|
+
*
|
|
82
|
+
* The center point is the vertex where the two lines or edges meet. This point
|
|
83
|
+
* serves as the reference for measuring the angle between the two extension lines.
|
|
84
|
+
*
|
|
85
|
+
* @returns The center point of the angle
|
|
86
|
+
*/
|
|
87
|
+
get: function () {
|
|
88
|
+
return this._centerPoint;
|
|
89
|
+
},
|
|
90
|
+
set: function (value) {
|
|
91
|
+
this._centerPoint.copy(value);
|
|
92
|
+
},
|
|
93
|
+
enumerable: false,
|
|
94
|
+
configurable: true
|
|
95
|
+
});
|
|
96
|
+
Object.defineProperty(AcDb3PointAngularDimension.prototype, "xLine1Point", {
|
|
97
|
+
/**
|
|
98
|
+
* Gets or sets the first extension line end point.
|
|
99
|
+
*
|
|
100
|
+
* This point defines one of the lines or edges being measured. The extension line
|
|
101
|
+
* extends from this point to the center point, helping to clearly identify the
|
|
102
|
+
* first reference line for the angle measurement.
|
|
103
|
+
*
|
|
104
|
+
* @returns The first extension line end point
|
|
105
|
+
*/
|
|
106
|
+
get: function () {
|
|
107
|
+
return this._xLine1Point;
|
|
108
|
+
},
|
|
109
|
+
set: function (value) {
|
|
110
|
+
this._xLine1Point.copy(value);
|
|
111
|
+
},
|
|
112
|
+
enumerable: false,
|
|
113
|
+
configurable: true
|
|
114
|
+
});
|
|
115
|
+
Object.defineProperty(AcDb3PointAngularDimension.prototype, "xLine2Point", {
|
|
116
|
+
/**
|
|
117
|
+
* Gets or sets the second extension line end point.
|
|
118
|
+
*
|
|
119
|
+
* This point defines the other line or edge being measured. The extension line
|
|
120
|
+
* extends from this point to the center point, helping to clearly identify the
|
|
121
|
+
* second reference line for the angle measurement.
|
|
122
|
+
*
|
|
123
|
+
* @returns The second extension line end point
|
|
124
|
+
*/
|
|
125
|
+
get: function () {
|
|
126
|
+
return this._xLine2Point;
|
|
127
|
+
},
|
|
128
|
+
set: function (value) {
|
|
129
|
+
this._xLine2Point.copy(value);
|
|
130
|
+
},
|
|
131
|
+
enumerable: false,
|
|
132
|
+
configurable: true
|
|
133
|
+
});
|
|
134
|
+
Object.defineProperty(AcDb3PointAngularDimension.prototype, "geometricExtents", {
|
|
135
|
+
/**
|
|
136
|
+
* Gets the geometric extents (bounding box) of this dimension entity.
|
|
137
|
+
*
|
|
138
|
+
* The geometric extents define the minimum bounding box that completely contains
|
|
139
|
+
* the dimension entity, including all its components like extension lines,
|
|
140
|
+
* dimension lines, arrows, and text.
|
|
141
|
+
*
|
|
142
|
+
* @returns A 3D bounding box containing the dimension entity
|
|
143
|
+
* @inheritdoc
|
|
144
|
+
*/
|
|
145
|
+
get: function () {
|
|
146
|
+
// TODO: Finish it
|
|
147
|
+
return new AcGeBox3d();
|
|
148
|
+
},
|
|
149
|
+
enumerable: false,
|
|
150
|
+
configurable: true
|
|
151
|
+
});
|
|
152
|
+
/** The entity type name */
|
|
153
|
+
AcDb3PointAngularDimension.typeName = '3PointAngularDimension';
|
|
154
|
+
return AcDb3PointAngularDimension;
|
|
155
|
+
}(AcDbDimension));
|
|
156
|
+
export { AcDb3PointAngularDimension };
|
|
157
|
+
//# sourceMappingURL=AcDb3PointAngularDimension.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcDb3PointAngularDimension.js","sourceRoot":"","sources":["../../../src/entity/dimension/AcDb3PointAngularDimension.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EACL,SAAS,EACT,WAAW,EAEZ,MAAM,4BAA4B,CAAA;AAEnC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAE/C;;;;;;;;;GASG;AACH;IAAgD,8CAAa;IAS3D;;;;;;;;;;;;;;;OAeG;IACH,oCACE,WAA0B,EAC1B,WAA0B,EAC1B,WAA0B,EAC1B,QAAuB,EACvB,OAA6B,EAC7B,QAA8B;QAD9B,wBAAA,EAAA,cAA6B;QAC7B,yBAAA,EAAA,eAA8B;QAE9B,YAAA,MAAK,WAAE,SAAA;QACP,KAAI,CAAC,YAAY,GAAG,IAAI,WAAW,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,CAAA;QACvD,KAAI,CAAC,YAAY,GAAG,IAAI,WAAW,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,CAAA;QACvD,KAAI,CAAC,YAAY,GAAG,IAAI,WAAW,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,CAAA;QACvD,KAAI,CAAC,SAAS,GAAG,IAAI,WAAW,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;QAEjD,KAAI,CAAC,aAAa,GAAG,OAAO,CAAA;QAC5B,6FAA6F;QAC7F,KAAI,CAAC,kBAAkB,GAAG,QAAQ,CAAA;;IACpC,CAAC;IAWD,sBAAI,gDAAQ;QATZ;;;;;;;;WAQG;aACH;YACE,OAAO,IAAI,CAAC,SAAS,CAAA;QACvB,CAAC;aACD,UAAa,KAAkB;YAC7B,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;QAC5B,CAAC;;;OAHA;IAaD,sBAAI,mDAAW;QARf;;;;;;;WAOG;aACH;YACE,OAAO,IAAI,CAAC,YAAY,CAAA;QAC1B,CAAC;aACD,UAAgB,KAAkB;YAChC,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;QAC/B,CAAC;;;OAHA;IAcD,sBAAI,mDAAW;QATf;;;;;;;;WAQG;aACH;YACE,OAAO,IAAI,CAAC,YAAY,CAAA;QAC1B,CAAC;aACD,UAAgB,KAAkB;YAChC,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;QAC/B,CAAC;;;OAHA;IAcD,sBAAI,mDAAW;QATf;;;;;;;;WAQG;aACH;YACE,OAAO,IAAI,CAAC,YAAY,CAAA;QAC1B,CAAC;aACD,UAAgB,KAAkB;YAChC,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;QAC/B,CAAC;;;OAHA;IAeD,sBAAI,wDAAgB;QAVpB;;;;;;;;;WASG;aACH;YACE,kBAAkB;YAClB,OAAO,IAAI,SAAS,EAAE,CAAA;QACxB,CAAC;;;OAAA;IAvHD,2BAA2B;IACX,mCAAQ,GAAW,wBAAwB,CAAA;IAuH7D,iCAAC;CAAA,AAzHD,CAAgD,aAAa,GAyH5D;SAzHY,0BAA0B"}
|