@node-projects/acad-ts 1.0.0
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/LICENSE +22 -0
- package/README.md +171 -0
- package/dist/ACadVersion.d.ts +82 -0
- package/dist/ACadVersion.d.ts.map +1 -0
- package/dist/ACadVersion.js +83 -0
- package/dist/ACadVersion.js.map +1 -0
- package/dist/Blocks/Block.d.ts +24 -0
- package/dist/Blocks/Block.d.ts.map +1 -0
- package/dist/Blocks/Block.js +52 -0
- package/dist/Blocks/Block.js.map +1 -0
- package/dist/Blocks/BlockEnd.d.ts +13 -0
- package/dist/Blocks/BlockEnd.d.ts.map +1 -0
- package/dist/Blocks/BlockEnd.js +33 -0
- package/dist/Blocks/BlockEnd.js.map +1 -0
- package/dist/Blocks/BlockTypeFlags.d.ts +11 -0
- package/dist/Blocks/BlockTypeFlags.d.ts.map +1 -0
- package/dist/Blocks/BlockTypeFlags.js +12 -0
- package/dist/Blocks/BlockTypeFlags.js.map +1 -0
- package/dist/CadDocument.d.ts +64 -0
- package/dist/CadDocument.d.ts.map +1 -0
- package/dist/CadDocument.js +267 -0
- package/dist/CadDocument.js.map +1 -0
- package/dist/CadObject.d.ts +34 -0
- package/dist/CadObject.d.ts.map +1 -0
- package/dist/CadObject.js +112 -0
- package/dist/CadObject.js.map +1 -0
- package/dist/CadObjectCollection.d.ts +17 -0
- package/dist/CadObjectCollection.d.ts.map +1 -0
- package/dist/CadObjectCollection.js +53 -0
- package/dist/CadObjectCollection.js.map +1 -0
- package/dist/CadSummaryInfo.d.ts +14 -0
- package/dist/CadSummaryInfo.d.ts.map +1 -0
- package/dist/CadSummaryInfo.js +14 -0
- package/dist/CadSummaryInfo.js.map +1 -0
- package/dist/CadSystemVariable.d.ts +12 -0
- package/dist/CadSystemVariable.d.ts.map +1 -0
- package/dist/CadSystemVariable.js +32 -0
- package/dist/CadSystemVariable.js.map +1 -0
- package/dist/CadUtils.d.ts +77 -0
- package/dist/CadUtils.d.ts.map +1 -0
- package/dist/CadUtils.js +289 -0
- package/dist/CadUtils.js.map +1 -0
- package/dist/CadValue.d.ts +17 -0
- package/dist/CadValue.d.ts.map +1 -0
- package/dist/CadValue.js +49 -0
- package/dist/CadValue.js.map +1 -0
- package/dist/CadValueType.d.ts +14 -0
- package/dist/CadValueType.d.ts.map +1 -0
- package/dist/CadValueType.js +15 -0
- package/dist/CadValueType.js.map +1 -0
- package/dist/CadValueUnitType.d.ts +10 -0
- package/dist/CadValueUnitType.d.ts.map +1 -0
- package/dist/CadValueUnitType.js +11 -0
- package/dist/CadValueUnitType.js.map +1 -0
- package/dist/Classes/DxfClass.d.ts +21 -0
- package/dist/Classes/DxfClass.d.ts.map +1 -0
- package/dist/Classes/DxfClass.js +42 -0
- package/dist/Classes/DxfClass.js.map +1 -0
- package/dist/Classes/DxfClassCollection.d.ts +26 -0
- package/dist/Classes/DxfClassCollection.d.ts.map +1 -0
- package/dist/Classes/DxfClassCollection.js +548 -0
- package/dist/Classes/DxfClassCollection.js.map +1 -0
- package/dist/Classes/ProxyFlags.d.ts +18 -0
- package/dist/Classes/ProxyFlags.d.ts.map +1 -0
- package/dist/Classes/ProxyFlags.js +19 -0
- package/dist/Classes/ProxyFlags.js.map +1 -0
- package/dist/CollectionChangedEventArgs.d.ts +6 -0
- package/dist/CollectionChangedEventArgs.d.ts.map +1 -0
- package/dist/CollectionChangedEventArgs.js +7 -0
- package/dist/CollectionChangedEventArgs.js.map +1 -0
- package/dist/Color.d.ts +41 -0
- package/dist/Color.d.ts.map +1 -0
- package/dist/Color.js +180 -0
- package/dist/Color.js.map +1 -0
- package/dist/DwgPreview.d.ts +17 -0
- package/dist/DwgPreview.d.ts.map +1 -0
- package/dist/DwgPreview.js +42 -0
- package/dist/DwgPreview.js.map +1 -0
- package/dist/DxfClassMap.d.ts +11 -0
- package/dist/DxfClassMap.d.ts.map +1 -0
- package/dist/DxfClassMap.js +38 -0
- package/dist/DxfClassMap.js.map +1 -0
- package/dist/DxfCode.d.ts +153 -0
- package/dist/DxfCode.d.ts.map +1 -0
- package/dist/DxfCode.js +154 -0
- package/dist/DxfCode.js.map +1 -0
- package/dist/DxfFileToken.d.ts +144 -0
- package/dist/DxfFileToken.d.ts.map +1 -0
- package/dist/DxfFileToken.js +144 -0
- package/dist/DxfFileToken.js.map +1 -0
- package/dist/DxfMap.d.ts +10 -0
- package/dist/DxfMap.d.ts.map +1 -0
- package/dist/DxfMap.js +33 -0
- package/dist/DxfMap.js.map +1 -0
- package/dist/DxfMapBase.d.ts +8 -0
- package/dist/DxfMapBase.d.ts.map +1 -0
- package/dist/DxfMapBase.js +13 -0
- package/dist/DxfMapBase.js.map +1 -0
- package/dist/DxfProperty.d.ts +9 -0
- package/dist/DxfProperty.d.ts.map +1 -0
- package/dist/DxfProperty.js +28 -0
- package/dist/DxfProperty.js.map +1 -0
- package/dist/DxfPropertyBase.d.ts +14 -0
- package/dist/DxfPropertyBase.d.ts.map +1 -0
- package/dist/DxfPropertyBase.js +40 -0
- package/dist/DxfPropertyBase.js.map +1 -0
- package/dist/DxfSubclassMarker.d.ts +137 -0
- package/dist/DxfSubclassMarker.d.ts.map +1 -0
- package/dist/DxfSubclassMarker.js +137 -0
- package/dist/DxfSubclassMarker.js.map +1 -0
- package/dist/Entities/AecObjects/Wall.d.ts +33 -0
- package/dist/Entities/AecObjects/Wall.d.ts.map +1 -0
- package/dist/Entities/AecObjects/Wall.js +37 -0
- package/dist/Entities/AecObjects/Wall.js.map +1 -0
- package/dist/Entities/Arc.d.ts +30 -0
- package/dist/Entities/Arc.d.ts.map +1 -0
- package/dist/Entities/Arc.js +116 -0
- package/dist/Entities/Arc.js.map +1 -0
- package/dist/Entities/AttachmentPointType.d.ts +12 -0
- package/dist/Entities/AttachmentPointType.d.ts.map +1 -0
- package/dist/Entities/AttachmentPointType.js +13 -0
- package/dist/Entities/AttachmentPointType.js.map +1 -0
- package/dist/Entities/AttributeBase.d.ts +20 -0
- package/dist/Entities/AttributeBase.d.ts.map +1 -0
- package/dist/Entities/AttributeBase.js +52 -0
- package/dist/Entities/AttributeBase.js.map +1 -0
- package/dist/Entities/AttributeDefinition.d.ts +10 -0
- package/dist/Entities/AttributeDefinition.d.ts.map +1 -0
- package/dist/Entities/AttributeDefinition.js +23 -0
- package/dist/Entities/AttributeDefinition.js.map +1 -0
- package/dist/Entities/AttributeEntity.d.ts +9 -0
- package/dist/Entities/AttributeEntity.d.ts.map +1 -0
- package/dist/Entities/AttributeEntity.js +22 -0
- package/dist/Entities/AttributeEntity.js.map +1 -0
- package/dist/Entities/AttributeFlags.d.ts +8 -0
- package/dist/Entities/AttributeFlags.d.ts.map +1 -0
- package/dist/Entities/AttributeFlags.js +9 -0
- package/dist/Entities/AttributeFlags.js.map +1 -0
- package/dist/Entities/AttributeType.d.ts +6 -0
- package/dist/Entities/AttributeType.d.ts.map +1 -0
- package/dist/Entities/AttributeType.js +7 -0
- package/dist/Entities/AttributeType.js.map +1 -0
- package/dist/Entities/BackgroundFillFlags.d.ts +7 -0
- package/dist/Entities/BackgroundFillFlags.d.ts.map +1 -0
- package/dist/Entities/BackgroundFillFlags.js +8 -0
- package/dist/Entities/BackgroundFillFlags.js.map +1 -0
- package/dist/Entities/BoundaryPathFlags.d.ts +18 -0
- package/dist/Entities/BoundaryPathFlags.d.ts.map +1 -0
- package/dist/Entities/BoundaryPathFlags.js +19 -0
- package/dist/Entities/BoundaryPathFlags.js.map +1 -0
- package/dist/Entities/CadBody.d.ts +7 -0
- package/dist/Entities/CadBody.d.ts.map +1 -0
- package/dist/Entities/CadBody.js +12 -0
- package/dist/Entities/CadBody.js.map +1 -0
- package/dist/Entities/CadWipeoutBase.d.ts +51 -0
- package/dist/Entities/CadWipeoutBase.d.ts.map +1 -0
- package/dist/Entities/CadWipeoutBase.js +127 -0
- package/dist/Entities/CadWipeoutBase.js.map +1 -0
- package/dist/Entities/Circle.d.ts +21 -0
- package/dist/Entities/Circle.d.ts.map +1 -0
- package/dist/Entities/Circle.js +55 -0
- package/dist/Entities/Circle.js.map +1 -0
- package/dist/Entities/ClipMode.d.ts +5 -0
- package/dist/Entities/ClipMode.d.ts.map +1 -0
- package/dist/Entities/ClipMode.js +6 -0
- package/dist/Entities/ClipMode.js.map +1 -0
- package/dist/Entities/ClipType.d.ts +5 -0
- package/dist/Entities/ClipType.d.ts.map +1 -0
- package/dist/Entities/ClipType.js +6 -0
- package/dist/Entities/ClipType.js.map +1 -0
- package/dist/Entities/ColumnType.d.ts +6 -0
- package/dist/Entities/ColumnType.d.ts.map +1 -0
- package/dist/Entities/ColumnType.js +7 -0
- package/dist/Entities/ColumnType.js.map +1 -0
- package/dist/Entities/Dimension.d.ts +61 -0
- package/dist/Entities/Dimension.d.ts.map +1 -0
- package/dist/Entities/Dimension.js +166 -0
- package/dist/Entities/Dimension.js.map +1 -0
- package/dist/Entities/DimensionAligned.d.ts +22 -0
- package/dist/Entities/DimensionAligned.d.ts.map +1 -0
- package/dist/Entities/DimensionAligned.js +74 -0
- package/dist/Entities/DimensionAligned.js.map +1 -0
- package/dist/Entities/DimensionAngular2Line.d.ts +21 -0
- package/dist/Entities/DimensionAngular2Line.d.ts.map +1 -0
- package/dist/Entities/DimensionAngular2Line.js +64 -0
- package/dist/Entities/DimensionAngular2Line.js.map +1 -0
- package/dist/Entities/DimensionAngular3Pt.d.ts +17 -0
- package/dist/Entities/DimensionAngular3Pt.d.ts.map +1 -0
- package/dist/Entities/DimensionAngular3Pt.js +49 -0
- package/dist/Entities/DimensionAngular3Pt.js.map +1 -0
- package/dist/Entities/DimensionDiameter.d.ts +17 -0
- package/dist/Entities/DimensionDiameter.d.ts.map +1 -0
- package/dist/Entities/DimensionDiameter.js +52 -0
- package/dist/Entities/DimensionDiameter.js.map +1 -0
- package/dist/Entities/DimensionLinear.d.ts +14 -0
- package/dist/Entities/DimensionLinear.d.ts.map +1 -0
- package/dist/Entities/DimensionLinear.js +43 -0
- package/dist/Entities/DimensionLinear.js.map +1 -0
- package/dist/Entities/DimensionOrdinate.d.ts +18 -0
- package/dist/Entities/DimensionOrdinate.d.ts.map +1 -0
- package/dist/Entities/DimensionOrdinate.js +69 -0
- package/dist/Entities/DimensionOrdinate.js.map +1 -0
- package/dist/Entities/DimensionRadius.d.ts +16 -0
- package/dist/Entities/DimensionRadius.d.ts.map +1 -0
- package/dist/Entities/DimensionRadius.js +46 -0
- package/dist/Entities/DimensionRadius.js.map +1 -0
- package/dist/Entities/DimensionType.d.ts +13 -0
- package/dist/Entities/DimensionType.d.ts.map +1 -0
- package/dist/Entities/DimensionType.js +14 -0
- package/dist/Entities/DimensionType.js.map +1 -0
- package/dist/Entities/DrawingDirectionType.d.ts +8 -0
- package/dist/Entities/DrawingDirectionType.d.ts.map +1 -0
- package/dist/Entities/DrawingDirectionType.js +9 -0
- package/dist/Entities/DrawingDirectionType.js.map +1 -0
- package/dist/Entities/Ellipse.d.ts +31 -0
- package/dist/Entities/Ellipse.d.ts.map +1 -0
- package/dist/Entities/Ellipse.js +86 -0
- package/dist/Entities/Ellipse.js.map +1 -0
- package/dist/Entities/Entity.d.ts +53 -0
- package/dist/Entities/Entity.d.ts.map +1 -0
- package/dist/Entities/Entity.js +174 -0
- package/dist/Entities/Entity.js.map +1 -0
- package/dist/Entities/Face3D.d.ts +19 -0
- package/dist/Entities/Face3D.d.ts.map +1 -0
- package/dist/Entities/Face3D.js +34 -0
- package/dist/Entities/Face3D.js.map +1 -0
- package/dist/Entities/GradientColor.d.ts +7 -0
- package/dist/Entities/GradientColor.d.ts.map +1 -0
- package/dist/Entities/GradientColor.js +12 -0
- package/dist/Entities/GradientColor.js.map +1 -0
- package/dist/Entities/Hatch.d.ts +132 -0
- package/dist/Entities/Hatch.d.ts.map +1 -0
- package/dist/Entities/Hatch.js +261 -0
- package/dist/Entities/Hatch.js.map +1 -0
- package/dist/Entities/HatchGradientPattern.d.ts +14 -0
- package/dist/Entities/HatchGradientPattern.d.ts.map +1 -0
- package/dist/Entities/HatchGradientPattern.js +28 -0
- package/dist/Entities/HatchGradientPattern.js.map +1 -0
- package/dist/Entities/HatchPattern.d.ts +21 -0
- package/dist/Entities/HatchPattern.d.ts.map +1 -0
- package/dist/Entities/HatchPattern.js +53 -0
- package/dist/Entities/HatchPattern.js.map +1 -0
- package/dist/Entities/HatchPatternType.d.ts +6 -0
- package/dist/Entities/HatchPatternType.d.ts.map +1 -0
- package/dist/Entities/HatchPatternType.js +7 -0
- package/dist/Entities/HatchPatternType.js.map +1 -0
- package/dist/Entities/HatchStyleType.d.ts +6 -0
- package/dist/Entities/HatchStyleType.d.ts.map +1 -0
- package/dist/Entities/HatchStyleType.js +7 -0
- package/dist/Entities/HatchStyleType.js.map +1 -0
- package/dist/Entities/HookLineDirection.d.ts +5 -0
- package/dist/Entities/HookLineDirection.d.ts.map +1 -0
- package/dist/Entities/HookLineDirection.js +6 -0
- package/dist/Entities/HookLineDirection.js.map +1 -0
- package/dist/Entities/IEntity.d.ts +24 -0
- package/dist/Entities/IEntity.d.ts.map +1 -0
- package/dist/Entities/IEntity.js +2 -0
- package/dist/Entities/IEntity.js.map +1 -0
- package/dist/Entities/IGeometricEntity.d.ts +5 -0
- package/dist/Entities/IGeometricEntity.d.ts.map +1 -0
- package/dist/Entities/IGeometricEntity.js +2 -0
- package/dist/Entities/IGeometricEntity.js.map +1 -0
- package/dist/Entities/IPolyline.d.ts +14 -0
- package/dist/Entities/IPolyline.d.ts.map +1 -0
- package/dist/Entities/IPolyline.js +2 -0
- package/dist/Entities/IPolyline.js.map +1 -0
- package/dist/Entities/IText.d.ts +12 -0
- package/dist/Entities/IText.d.ts.map +1 -0
- package/dist/Entities/IText.js +2 -0
- package/dist/Entities/IText.js.map +1 -0
- package/dist/Entities/IVertex.d.ts +5 -0
- package/dist/Entities/IVertex.d.ts.map +1 -0
- package/dist/Entities/IVertex.js +2 -0
- package/dist/Entities/IVertex.js.map +1 -0
- package/dist/Entities/ImageDisplayFlags.d.ts +8 -0
- package/dist/Entities/ImageDisplayFlags.d.ts.map +1 -0
- package/dist/Entities/ImageDisplayFlags.js +9 -0
- package/dist/Entities/ImageDisplayFlags.js.map +1 -0
- package/dist/Entities/Insert.d.ts +46 -0
- package/dist/Entities/Insert.d.ts.map +1 -0
- package/dist/Entities/Insert.js +146 -0
- package/dist/Entities/Insert.js.map +1 -0
- package/dist/Entities/InvisibleEdgeFlags.d.ts +8 -0
- package/dist/Entities/InvisibleEdgeFlags.d.ts.map +1 -0
- package/dist/Entities/InvisibleEdgeFlags.js +9 -0
- package/dist/Entities/InvisibleEdgeFlags.js.map +1 -0
- package/dist/Entities/KnotParametrization.d.ts +7 -0
- package/dist/Entities/KnotParametrization.d.ts.map +1 -0
- package/dist/Entities/KnotParametrization.js +8 -0
- package/dist/Entities/KnotParametrization.js.map +1 -0
- package/dist/Entities/Leader.d.ts +43 -0
- package/dist/Entities/Leader.d.ts.map +1 -0
- package/dist/Entities/Leader.js +87 -0
- package/dist/Entities/Leader.js.map +1 -0
- package/dist/Entities/LeaderCreationType.d.ts +7 -0
- package/dist/Entities/LeaderCreationType.d.ts.map +1 -0
- package/dist/Entities/LeaderCreationType.js +8 -0
- package/dist/Entities/LeaderCreationType.js.map +1 -0
- package/dist/Entities/LeaderPathType.d.ts +5 -0
- package/dist/Entities/LeaderPathType.d.ts.map +1 -0
- package/dist/Entities/LeaderPathType.js +6 -0
- package/dist/Entities/LeaderPathType.js.map +1 -0
- package/dist/Entities/LightingType.d.ts +5 -0
- package/dist/Entities/LightingType.d.ts.map +1 -0
- package/dist/Entities/LightingType.js +6 -0
- package/dist/Entities/LightingType.js.map +1 -0
- package/dist/Entities/Line.d.ts +16 -0
- package/dist/Entities/Line.d.ts.map +1 -0
- package/dist/Entities/Line.js +38 -0
- package/dist/Entities/Line.js.map +1 -0
- package/dist/Entities/LineSpacingStyleType.d.ts +6 -0
- package/dist/Entities/LineSpacingStyleType.d.ts.map +1 -0
- package/dist/Entities/LineSpacingStyleType.js +7 -0
- package/dist/Entities/LineSpacingStyleType.js.map +1 -0
- package/dist/Entities/LwPolyline.d.ts +39 -0
- package/dist/Entities/LwPolyline.d.ts.map +1 -0
- package/dist/Entities/LwPolyline.js +88 -0
- package/dist/Entities/LwPolyline.js.map +1 -0
- package/dist/Entities/LwPolylineFlags.d.ts +6 -0
- package/dist/Entities/LwPolylineFlags.d.ts.map +1 -0
- package/dist/Entities/LwPolylineFlags.js +7 -0
- package/dist/Entities/LwPolylineFlags.js.map +1 -0
- package/dist/Entities/MLine.d.ts +40 -0
- package/dist/Entities/MLine.d.ts.map +1 -0
- package/dist/Entities/MLine.js +78 -0
- package/dist/Entities/MLine.js.map +1 -0
- package/dist/Entities/MLineFlags.d.ts +7 -0
- package/dist/Entities/MLineFlags.d.ts.map +1 -0
- package/dist/Entities/MLineFlags.js +8 -0
- package/dist/Entities/MLineFlags.js.map +1 -0
- package/dist/Entities/MLineJustification.d.ts +6 -0
- package/dist/Entities/MLineJustification.d.ts.map +1 -0
- package/dist/Entities/MLineJustification.js +7 -0
- package/dist/Entities/MLineJustification.js.map +1 -0
- package/dist/Entities/MText.d.ts +78 -0
- package/dist/Entities/MText.d.ts.map +1 -0
- package/dist/Entities/MText.js +157 -0
- package/dist/Entities/MText.js.map +1 -0
- package/dist/Entities/Mesh.d.ts +26 -0
- package/dist/Entities/Mesh.d.ts.map +1 -0
- package/dist/Entities/Mesh.js +54 -0
- package/dist/Entities/Mesh.js.map +1 -0
- package/dist/Entities/ModelerGeometry.d.ts +41 -0
- package/dist/Entities/ModelerGeometry.d.ts.map +1 -0
- package/dist/Entities/ModelerGeometry.js +49 -0
- package/dist/Entities/ModelerGeometry.js.map +1 -0
- package/dist/Entities/MultiLeader.d.ts +71 -0
- package/dist/Entities/MultiLeader.d.ts.map +1 -0
- package/dist/Entities/MultiLeader.js +90 -0
- package/dist/Entities/MultiLeader.js.map +1 -0
- package/dist/Entities/MultiLeaderPropertyOverrideFlags.d.ts +34 -0
- package/dist/Entities/MultiLeaderPropertyOverrideFlags.d.ts.map +1 -0
- package/dist/Entities/MultiLeaderPropertyOverrideFlags.js +35 -0
- package/dist/Entities/MultiLeaderPropertyOverrideFlags.js.map +1 -0
- package/dist/Entities/Ole2Frame.d.ts +19 -0
- package/dist/Entities/Ole2Frame.d.ts.map +1 -0
- package/dist/Entities/Ole2Frame.js +32 -0
- package/dist/Entities/Ole2Frame.js.map +1 -0
- package/dist/Entities/OleObjectType.d.ts +6 -0
- package/dist/Entities/OleObjectType.d.ts.map +1 -0
- package/dist/Entities/OleObjectType.js +7 -0
- package/dist/Entities/OleObjectType.js.map +1 -0
- package/dist/Entities/PdfUnderlay.d.ts +8 -0
- package/dist/Entities/PdfUnderlay.d.ts.map +1 -0
- package/dist/Entities/PdfUnderlay.js +15 -0
- package/dist/Entities/PdfUnderlay.js.map +1 -0
- package/dist/Entities/Point.d.ts +16 -0
- package/dist/Entities/Point.d.ts.map +1 -0
- package/dist/Entities/Point.js +34 -0
- package/dist/Entities/Point.js.map +1 -0
- package/dist/Entities/PolyfaceMesh.d.ts +16 -0
- package/dist/Entities/PolyfaceMesh.d.ts.map +1 -0
- package/dist/Entities/PolyfaceMesh.js +30 -0
- package/dist/Entities/PolyfaceMesh.js.map +1 -0
- package/dist/Entities/PolygonMesh.d.ts +16 -0
- package/dist/Entities/PolygonMesh.d.ts.map +1 -0
- package/dist/Entities/PolygonMesh.js +28 -0
- package/dist/Entities/PolygonMesh.js.map +1 -0
- package/dist/Entities/PolygonMeshVertex.d.ts +9 -0
- package/dist/Entities/PolygonMeshVertex.d.ts.map +1 -0
- package/dist/Entities/PolygonMeshVertex.js +16 -0
- package/dist/Entities/PolygonMeshVertex.js.map +1 -0
- package/dist/Entities/Polyline.d.ts +30 -0
- package/dist/Entities/Polyline.d.ts.map +1 -0
- package/dist/Entities/Polyline.js +70 -0
- package/dist/Entities/Polyline.js.map +1 -0
- package/dist/Entities/Polyline2D.d.ts +9 -0
- package/dist/Entities/Polyline2D.d.ts.map +1 -0
- package/dist/Entities/Polyline2D.js +17 -0
- package/dist/Entities/Polyline2D.js.map +1 -0
- package/dist/Entities/Polyline3D.d.ts +15 -0
- package/dist/Entities/Polyline3D.d.ts.map +1 -0
- package/dist/Entities/Polyline3D.js +37 -0
- package/dist/Entities/Polyline3D.js.map +1 -0
- package/dist/Entities/PolylineFlags.d.ts +12 -0
- package/dist/Entities/PolylineFlags.d.ts.map +1 -0
- package/dist/Entities/PolylineFlags.js +13 -0
- package/dist/Entities/PolylineFlags.js.map +1 -0
- package/dist/Entities/ProxyEntity.d.ts +18 -0
- package/dist/Entities/ProxyEntity.d.ts.map +1 -0
- package/dist/Entities/ProxyEntity.js +34 -0
- package/dist/Entities/ProxyEntity.js.map +1 -0
- package/dist/Entities/RasterImage.d.ts +11 -0
- package/dist/Entities/RasterImage.d.ts.map +1 -0
- package/dist/Entities/RasterImage.js +31 -0
- package/dist/Entities/RasterImage.js.map +1 -0
- package/dist/Entities/Ray.d.ts +13 -0
- package/dist/Entities/Ray.d.ts.map +1 -0
- package/dist/Entities/Ray.js +26 -0
- package/dist/Entities/Ray.js.map +1 -0
- package/dist/Entities/Region.d.ts +7 -0
- package/dist/Entities/Region.d.ts.map +1 -0
- package/dist/Entities/Region.js +12 -0
- package/dist/Entities/Region.js.map +1 -0
- package/dist/Entities/Seqend.d.ts +11 -0
- package/dist/Entities/Seqend.d.ts.map +1 -0
- package/dist/Entities/Seqend.js +24 -0
- package/dist/Entities/Seqend.js.map +1 -0
- package/dist/Entities/SeqendCollection.d.ts +10 -0
- package/dist/Entities/SeqendCollection.d.ts.map +1 -0
- package/dist/Entities/SeqendCollection.js +12 -0
- package/dist/Entities/SeqendCollection.js.map +1 -0
- package/dist/Entities/ShadowMode.d.ts +7 -0
- package/dist/Entities/ShadowMode.d.ts.map +1 -0
- package/dist/Entities/ShadowMode.js +8 -0
- package/dist/Entities/ShadowMode.js.map +1 -0
- package/dist/Entities/Shape.d.ts +28 -0
- package/dist/Entities/Shape.d.ts.map +1 -0
- package/dist/Entities/Shape.js +60 -0
- package/dist/Entities/Shape.js.map +1 -0
- package/dist/Entities/SmoothSurfaceType.d.ts +7 -0
- package/dist/Entities/SmoothSurfaceType.d.ts.map +1 -0
- package/dist/Entities/SmoothSurfaceType.js +8 -0
- package/dist/Entities/SmoothSurfaceType.js.map +1 -0
- package/dist/Entities/Solid.d.ts +17 -0
- package/dist/Entities/Solid.d.ts.map +1 -0
- package/dist/Entities/Solid.js +30 -0
- package/dist/Entities/Solid.js.map +1 -0
- package/dist/Entities/Solid3D.d.ts +8 -0
- package/dist/Entities/Solid3D.d.ts.map +1 -0
- package/dist/Entities/Solid3D.js +16 -0
- package/dist/Entities/Solid3D.js.map +1 -0
- package/dist/Entities/Spline.d.ts +60 -0
- package/dist/Entities/Spline.d.ts.map +1 -0
- package/dist/Entities/Spline.js +257 -0
- package/dist/Entities/Spline.js.map +1 -0
- package/dist/Entities/SplineFlags.d.ts +9 -0
- package/dist/Entities/SplineFlags.d.ts.map +1 -0
- package/dist/Entities/SplineFlags.js +10 -0
- package/dist/Entities/SplineFlags.js.map +1 -0
- package/dist/Entities/SplineFlags1.d.ts +8 -0
- package/dist/Entities/SplineFlags1.d.ts.map +1 -0
- package/dist/Entities/SplineFlags1.js +9 -0
- package/dist/Entities/SplineFlags1.js.map +1 -0
- package/dist/Entities/TableEntity.d.ts +352 -0
- package/dist/Entities/TableEntity.d.ts.map +1 -0
- package/dist/Entities/TableEntity.js +404 -0
- package/dist/Entities/TableEntity.js.map +1 -0
- package/dist/Entities/TextEntity.d.ts +50 -0
- package/dist/Entities/TextEntity.d.ts.map +1 -0
- package/dist/Entities/TextEntity.js +106 -0
- package/dist/Entities/TextEntity.js.map +1 -0
- package/dist/Entities/TextHorizontalAlignment.d.ts +9 -0
- package/dist/Entities/TextHorizontalAlignment.d.ts.map +1 -0
- package/dist/Entities/TextHorizontalAlignment.js +10 -0
- package/dist/Entities/TextHorizontalAlignment.js.map +1 -0
- package/dist/Entities/TextMirrorFlag.d.ts +6 -0
- package/dist/Entities/TextMirrorFlag.d.ts.map +1 -0
- package/dist/Entities/TextMirrorFlag.js +7 -0
- package/dist/Entities/TextMirrorFlag.js.map +1 -0
- package/dist/Entities/TextVerticalAlignmentType.d.ts +7 -0
- package/dist/Entities/TextVerticalAlignmentType.d.ts.map +1 -0
- package/dist/Entities/TextVerticalAlignmentType.js +8 -0
- package/dist/Entities/TextVerticalAlignmentType.js.map +1 -0
- package/dist/Entities/Tolerance.d.ts +19 -0
- package/dist/Entities/Tolerance.d.ts.map +1 -0
- package/dist/Entities/Tolerance.js +44 -0
- package/dist/Entities/Tolerance.js.map +1 -0
- package/dist/Entities/UnderlayDisplayFlags.d.ts +9 -0
- package/dist/Entities/UnderlayDisplayFlags.d.ts.map +1 -0
- package/dist/Entities/UnderlayDisplayFlags.js +10 -0
- package/dist/Entities/UnderlayDisplayFlags.js.map +1 -0
- package/dist/Entities/UnderlayEntity.d.ts +39 -0
- package/dist/Entities/UnderlayEntity.d.ts.map +1 -0
- package/dist/Entities/UnderlayEntity.js +93 -0
- package/dist/Entities/UnderlayEntity.js.map +1 -0
- package/dist/Entities/UnknownEntity.d.ts +13 -0
- package/dist/Entities/UnknownEntity.d.ts.map +1 -0
- package/dist/Entities/UnknownEntity.js +33 -0
- package/dist/Entities/UnknownEntity.js.map +1 -0
- package/dist/Entities/Vertex.d.ts +21 -0
- package/dist/Entities/Vertex.d.ts.map +1 -0
- package/dist/Entities/Vertex.js +38 -0
- package/dist/Entities/Vertex.js.map +1 -0
- package/dist/Entities/Vertex2D.d.ts +9 -0
- package/dist/Entities/Vertex2D.d.ts.map +1 -0
- package/dist/Entities/Vertex2D.js +15 -0
- package/dist/Entities/Vertex2D.js.map +1 -0
- package/dist/Entities/Vertex3D.d.ts +9 -0
- package/dist/Entities/Vertex3D.d.ts.map +1 -0
- package/dist/Entities/Vertex3D.js +15 -0
- package/dist/Entities/Vertex3D.js.map +1 -0
- package/dist/Entities/VertexFaceMesh.d.ts +7 -0
- package/dist/Entities/VertexFaceMesh.d.ts.map +1 -0
- package/dist/Entities/VertexFaceMesh.js +12 -0
- package/dist/Entities/VertexFaceMesh.js.map +1 -0
- package/dist/Entities/VertexFaceRecord.d.ts +14 -0
- package/dist/Entities/VertexFaceRecord.d.ts.map +1 -0
- package/dist/Entities/VertexFaceRecord.js +23 -0
- package/dist/Entities/VertexFaceRecord.js.map +1 -0
- package/dist/Entities/VertexFlags.d.ts +12 -0
- package/dist/Entities/VertexFlags.d.ts.map +1 -0
- package/dist/Entities/VertexFlags.js +13 -0
- package/dist/Entities/VertexFlags.js.map +1 -0
- package/dist/Entities/VerticalAlignmentType.d.ts +6 -0
- package/dist/Entities/VerticalAlignmentType.d.ts.map +1 -0
- package/dist/Entities/VerticalAlignmentType.js +7 -0
- package/dist/Entities/VerticalAlignmentType.js.map +1 -0
- package/dist/Entities/Viewport.d.ts +68 -0
- package/dist/Entities/Viewport.d.ts.map +1 -0
- package/dist/Entities/Viewport.js +120 -0
- package/dist/Entities/Viewport.js.map +1 -0
- package/dist/Entities/ViewportStatusFlags.d.ts +24 -0
- package/dist/Entities/ViewportStatusFlags.d.ts.map +1 -0
- package/dist/Entities/ViewportStatusFlags.js +25 -0
- package/dist/Entities/ViewportStatusFlags.js.map +1 -0
- package/dist/Entities/Wipeout.d.ts +9 -0
- package/dist/Entities/Wipeout.d.ts.map +1 -0
- package/dist/Entities/Wipeout.js +21 -0
- package/dist/Entities/Wipeout.js.map +1 -0
- package/dist/Entities/XLine.d.ts +13 -0
- package/dist/Entities/XLine.d.ts.map +1 -0
- package/dist/Entities/XLine.js +26 -0
- package/dist/Entities/XLine.js.map +1 -0
- package/dist/Exceptions/CadNotSupportedException.d.ts +5 -0
- package/dist/Exceptions/CadNotSupportedException.d.ts.map +1 -0
- package/dist/Exceptions/CadNotSupportedException.js +12 -0
- package/dist/Exceptions/CadNotSupportedException.js.map +1 -0
- package/dist/Exceptions/DwgException.d.ts +5 -0
- package/dist/Exceptions/DwgException.d.ts.map +1 -0
- package/dist/Exceptions/DwgException.js +9 -0
- package/dist/Exceptions/DwgException.js.map +1 -0
- package/dist/Exceptions/DxfException.d.ts +4 -0
- package/dist/Exceptions/DxfException.d.ts.map +1 -0
- package/dist/Exceptions/DxfException.js +15 -0
- package/dist/Exceptions/DxfException.js.map +1 -0
- package/dist/Extensions/CadObjectExtensions.d.ts +5 -0
- package/dist/Extensions/CadObjectExtensions.d.ts.map +1 -0
- package/dist/Extensions/CadObjectExtensions.js +6 -0
- package/dist/Extensions/CadObjectExtensions.js.map +1 -0
- package/dist/Extensions/INamedCadObjectExtensions.d.ts +7 -0
- package/dist/Extensions/INamedCadObjectExtensions.d.ts.map +1 -0
- package/dist/Extensions/INamedCadObjectExtensions.js +22 -0
- package/dist/Extensions/INamedCadObjectExtensions.js.map +1 -0
- package/dist/Extensions/LineWeightTypeExtensions.d.ts +5 -0
- package/dist/Extensions/LineWeightTypeExtensions.d.ts.map +1 -0
- package/dist/Extensions/LineWeightTypeExtensions.js +12 -0
- package/dist/Extensions/LineWeightTypeExtensions.js.map +1 -0
- package/dist/Extensions/PolylineExtensions.d.ts +3 -0
- package/dist/Extensions/PolylineExtensions.d.ts.map +1 -0
- package/dist/Extensions/PolylineExtensions.js +5 -0
- package/dist/Extensions/PolylineExtensions.js.map +1 -0
- package/dist/Extensions/UnitExtensions.d.ts +10 -0
- package/dist/Extensions/UnitExtensions.d.ts.map +1 -0
- package/dist/Extensions/UnitExtensions.js +22 -0
- package/dist/Extensions/UnitExtensions.js.map +1 -0
- package/dist/FlowDirectionType.d.ts +7 -0
- package/dist/FlowDirectionType.d.ts.map +1 -0
- package/dist/FlowDirectionType.js +8 -0
- package/dist/FlowDirectionType.js.map +1 -0
- package/dist/GroupCodeValue.d.ts +9 -0
- package/dist/GroupCodeValue.d.ts.map +1 -0
- package/dist/GroupCodeValue.js +134 -0
- package/dist/GroupCodeValue.js.map +1 -0
- package/dist/GroupCodeValueType.d.ts +22 -0
- package/dist/GroupCodeValueType.d.ts.map +1 -0
- package/dist/GroupCodeValueType.js +23 -0
- package/dist/GroupCodeValueType.js.map +1 -0
- package/dist/Header/AttributeVisibilityMode.d.ts +6 -0
- package/dist/Header/AttributeVisibilityMode.d.ts.map +1 -0
- package/dist/Header/AttributeVisibilityMode.js +7 -0
- package/dist/Header/AttributeVisibilityMode.js.map +1 -0
- package/dist/Header/CadHeader.d.ts +434 -0
- package/dist/Header/CadHeader.d.ts.map +1 -0
- package/dist/Header/CadHeader.js +577 -0
- package/dist/Header/CadHeader.js.map +1 -0
- package/dist/Header/DimensionAssociation.d.ts +6 -0
- package/dist/Header/DimensionAssociation.d.ts.map +1 -0
- package/dist/Header/DimensionAssociation.js +7 -0
- package/dist/Header/DimensionAssociation.js.map +1 -0
- package/dist/Header/EntityPlotStyleType.d.ts +7 -0
- package/dist/Header/EntityPlotStyleType.d.ts.map +1 -0
- package/dist/Header/EntityPlotStyleType.js +8 -0
- package/dist/Header/EntityPlotStyleType.js.map +1 -0
- package/dist/Header/IndexCreationFlags.d.ts +7 -0
- package/dist/Header/IndexCreationFlags.d.ts.map +1 -0
- package/dist/Header/IndexCreationFlags.js +8 -0
- package/dist/Header/IndexCreationFlags.js.map +1 -0
- package/dist/Header/MeasurementUnits.d.ts +5 -0
- package/dist/Header/MeasurementUnits.d.ts.map +1 -0
- package/dist/Header/MeasurementUnits.js +6 -0
- package/dist/Header/MeasurementUnits.js.map +1 -0
- package/dist/Header/ObjectSnapMode.d.ts +20 -0
- package/dist/Header/ObjectSnapMode.d.ts.map +1 -0
- package/dist/Header/ObjectSnapMode.js +21 -0
- package/dist/Header/ObjectSnapMode.js.map +1 -0
- package/dist/Header/ObjectSortingFlags.d.ts +12 -0
- package/dist/Header/ObjectSortingFlags.d.ts.map +1 -0
- package/dist/Header/ObjectSortingFlags.js +13 -0
- package/dist/Header/ObjectSortingFlags.js.map +1 -0
- package/dist/Header/ShadeEdgeType.d.ts +7 -0
- package/dist/Header/ShadeEdgeType.d.ts.map +1 -0
- package/dist/Header/ShadeEdgeType.js +8 -0
- package/dist/Header/ShadeEdgeType.js.map +1 -0
- package/dist/Header/ShadowMode.d.ts +7 -0
- package/dist/Header/ShadowMode.d.ts.map +1 -0
- package/dist/Header/ShadowMode.js +8 -0
- package/dist/Header/ShadowMode.js.map +1 -0
- package/dist/Header/SpaceLineTypeScaling.d.ts +5 -0
- package/dist/Header/SpaceLineTypeScaling.d.ts.map +1 -0
- package/dist/Header/SpaceLineTypeScaling.js +6 -0
- package/dist/Header/SpaceLineTypeScaling.js.map +1 -0
- package/dist/Header/SplineType.d.ts +7 -0
- package/dist/Header/SplineType.d.ts.map +1 -0
- package/dist/Header/SplineType.js +8 -0
- package/dist/Header/SplineType.js.map +1 -0
- package/dist/Header/XClipFrameType.d.ts +6 -0
- package/dist/Header/XClipFrameType.d.ts.map +1 -0
- package/dist/Header/XClipFrameType.js +7 -0
- package/dist/Header/XClipFrameType.js.map +1 -0
- package/dist/Helpers/LittleEndianConverter.d.ts +11 -0
- package/dist/Helpers/LittleEndianConverter.d.ts.map +1 -0
- package/dist/Helpers/LittleEndianConverter.js +40 -0
- package/dist/Helpers/LittleEndianConverter.js.map +1 -0
- package/dist/ICadCollection.d.ts +5 -0
- package/dist/ICadCollection.d.ts.map +1 -0
- package/dist/ICadCollection.js +2 -0
- package/dist/ICadCollection.js.map +1 -0
- package/dist/IHandledCadObject.d.ts +4 -0
- package/dist/IHandledCadObject.d.ts.map +1 -0
- package/dist/IHandledCadObject.js +2 -0
- package/dist/IHandledCadObject.js.map +1 -0
- package/dist/INamedCadObject.d.ts +6 -0
- package/dist/INamedCadObject.d.ts.map +1 -0
- package/dist/INamedCadObject.js +2 -0
- package/dist/INamedCadObject.js.map +1 -0
- package/dist/IO/CadDocumentBuilder.d.ts +64 -0
- package/dist/IO/CadDocumentBuilder.d.ts.map +1 -0
- package/dist/IO/CadDocumentBuilder.js +236 -0
- package/dist/IO/CadDocumentBuilder.js.map +1 -0
- package/dist/IO/CadReaderBase.d.ts +21 -0
- package/dist/IO/CadReaderBase.d.ts.map +1 -0
- package/dist/IO/CadReaderBase.js +31 -0
- package/dist/IO/CadReaderBase.js.map +1 -0
- package/dist/IO/CadReaderConfiguration.d.ts +6 -0
- package/dist/IO/CadReaderConfiguration.d.ts.map +1 -0
- package/dist/IO/CadReaderConfiguration.js +6 -0
- package/dist/IO/CadReaderConfiguration.js.map +1 -0
- package/dist/IO/CadWriterBase.d.ts +20 -0
- package/dist/IO/CadWriterBase.d.ts.map +1 -0
- package/dist/IO/CadWriterBase.js +53 -0
- package/dist/IO/CadWriterBase.js.map +1 -0
- package/dist/IO/CadWriterConfiguration.d.ts +10 -0
- package/dist/IO/CadWriterConfiguration.d.ts.map +1 -0
- package/dist/IO/CadWriterConfiguration.js +10 -0
- package/dist/IO/CadWriterConfiguration.js.map +1 -0
- package/dist/IO/Converters.d.ts +7 -0
- package/dist/IO/Converters.d.ts.map +1 -0
- package/dist/IO/Converters.js +19 -0
- package/dist/IO/Converters.js.map +1 -0
- package/dist/IO/DWG/CRC.d.ts +6 -0
- package/dist/IO/DWG/CRC.d.ts.map +1 -0
- package/dist/IO/DWG/CRC.js +111 -0
- package/dist/IO/DWG/CRC.js.map +1 -0
- package/dist/IO/DWG/CRC32StreamHandler.d.ts +14 -0
- package/dist/IO/DWG/CRC32StreamHandler.d.ts.map +1 -0
- package/dist/IO/DWG/CRC32StreamHandler.js +47 -0
- package/dist/IO/DWG/CRC32StreamHandler.js.map +1 -0
- package/dist/IO/DWG/CRC8StreamHandler.d.ts +14 -0
- package/dist/IO/DWG/CRC8StreamHandler.d.ts.map +1 -0
- package/dist/IO/DWG/CRC8StreamHandler.js +49 -0
- package/dist/IO/DWG/CRC8StreamHandler.js.map +1 -0
- package/dist/IO/DWG/DwgCheckSumCalculator.d.ts +6 -0
- package/dist/IO/DWG/DwgCheckSumCalculator.d.ts.map +1 -0
- package/dist/IO/DWG/DwgCheckSumCalculator.js +33 -0
- package/dist/IO/DWG/DwgCheckSumCalculator.js.map +1 -0
- package/dist/IO/DWG/DwgDocumentBuilder.d.ts +20 -0
- package/dist/IO/DWG/DwgDocumentBuilder.d.ts.map +1 -0
- package/dist/IO/DWG/DwgDocumentBuilder.js +52 -0
- package/dist/IO/DWG/DwgDocumentBuilder.js.map +1 -0
- package/dist/IO/DWG/DwgHeaderHandlesCollection.d.ts +106 -0
- package/dist/IO/DWG/DwgHeaderHandlesCollection.d.ts.map +1 -0
- package/dist/IO/DWG/DwgHeaderHandlesCollection.js +153 -0
- package/dist/IO/DWG/DwgHeaderHandlesCollection.js.map +1 -0
- package/dist/IO/DWG/DwgReader.d.ts +41 -0
- package/dist/IO/DWG/DwgReader.d.ts.map +1 -0
- package/dist/IO/DWG/DwgReader.js +802 -0
- package/dist/IO/DWG/DwgReader.js.map +1 -0
- package/dist/IO/DWG/DwgReaderConfiguration.d.ts +6 -0
- package/dist/IO/DWG/DwgReaderConfiguration.d.ts.map +1 -0
- package/dist/IO/DWG/DwgReaderConfiguration.js +6 -0
- package/dist/IO/DWG/DwgReaderConfiguration.js.map +1 -0
- package/dist/IO/DWG/DwgSectionIO.d.ts +23 -0
- package/dist/IO/DWG/DwgSectionIO.d.ts.map +1 -0
- package/dist/IO/DWG/DwgSectionIO.js +50 -0
- package/dist/IO/DWG/DwgSectionIO.js.map +1 -0
- package/dist/IO/DWG/DwgStreamReaders/DwgAppInfoReader.d.ts +11 -0
- package/dist/IO/DWG/DwgStreamReaders/DwgAppInfoReader.d.ts.map +1 -0
- package/dist/IO/DWG/DwgStreamReaders/DwgAppInfoReader.js +37 -0
- package/dist/IO/DWG/DwgStreamReaders/DwgAppInfoReader.js.map +1 -0
- package/dist/IO/DWG/DwgStreamReaders/DwgClassesReader.d.ts +14 -0
- package/dist/IO/DWG/DwgStreamReaders/DwgClassesReader.d.ts.map +1 -0
- package/dist/IO/DWG/DwgStreamReaders/DwgClassesReader.js +81 -0
- package/dist/IO/DWG/DwgStreamReaders/DwgClassesReader.js.map +1 -0
- package/dist/IO/DWG/DwgStreamReaders/DwgHandleReader.d.ts +10 -0
- package/dist/IO/DWG/DwgStreamReaders/DwgHandleReader.d.ts.map +1 -0
- package/dist/IO/DWG/DwgStreamReaders/DwgHandleReader.js +44 -0
- package/dist/IO/DWG/DwgStreamReaders/DwgHandleReader.js.map +1 -0
- package/dist/IO/DWG/DwgStreamReaders/DwgHeaderReader.d.ts +15 -0
- package/dist/IO/DWG/DwgStreamReaders/DwgHeaderReader.d.ts.map +1 -0
- package/dist/IO/DWG/DwgStreamReaders/DwgHeaderReader.js +509 -0
- package/dist/IO/DWG/DwgStreamReaders/DwgHeaderReader.js.map +1 -0
- package/dist/IO/DWG/DwgStreamReaders/DwgLZ77AC18Decompressor.d.ts +10 -0
- package/dist/IO/DWG/DwgStreamReaders/DwgLZ77AC18Decompressor.d.ts.map +1 -0
- package/dist/IO/DWG/DwgStreamReaders/DwgLZ77AC18Decompressor.js +142 -0
- package/dist/IO/DWG/DwgStreamReaders/DwgLZ77AC18Decompressor.js.map +1 -0
- package/dist/IO/DWG/DwgStreamReaders/DwgLZ77AC21Decompressor.d.ts +21 -0
- package/dist/IO/DWG/DwgStreamReaders/DwgLZ77AC21Decompressor.d.ts.map +1 -0
- package/dist/IO/DWG/DwgStreamReaders/DwgLZ77AC21Decompressor.js +324 -0
- package/dist/IO/DWG/DwgStreamReaders/DwgLZ77AC21Decompressor.js.map +1 -0
- package/dist/IO/DWG/DwgStreamReaders/DwgMergedReader.d.ts +77 -0
- package/dist/IO/DWG/DwgStreamReaders/DwgMergedReader.d.ts.map +1 -0
- package/dist/IO/DWG/DwgStreamReaders/DwgMergedReader.js +229 -0
- package/dist/IO/DWG/DwgStreamReaders/DwgMergedReader.js.map +1 -0
- package/dist/IO/DWG/DwgStreamReaders/DwgObjectReader.d.ts +190 -0
- package/dist/IO/DWG/DwgStreamReaders/DwgObjectReader.d.ts.map +1 -0
- package/dist/IO/DWG/DwgStreamReaders/DwgObjectReader.js +4491 -0
- package/dist/IO/DWG/DwgStreamReaders/DwgObjectReader.js.map +1 -0
- package/dist/IO/DWG/DwgStreamReaders/DwgPreviewReader.d.ts +14 -0
- package/dist/IO/DWG/DwgStreamReaders/DwgPreviewReader.d.ts.map +1 -0
- package/dist/IO/DWG/DwgStreamReaders/DwgPreviewReader.js +55 -0
- package/dist/IO/DWG/DwgStreamReaders/DwgPreviewReader.js.map +1 -0
- package/dist/IO/DWG/DwgStreamReaders/DwgStreamReaderAC12.d.ts +5 -0
- package/dist/IO/DWG/DwgStreamReaders/DwgStreamReaderAC12.d.ts.map +1 -0
- package/dist/IO/DWG/DwgStreamReaders/DwgStreamReaderAC12.js +7 -0
- package/dist/IO/DWG/DwgStreamReaders/DwgStreamReaderAC12.js.map +1 -0
- package/dist/IO/DWG/DwgStreamReaders/DwgStreamReaderAC15.d.ts +8 -0
- package/dist/IO/DWG/DwgStreamReaders/DwgStreamReaderAC15.d.ts.map +1 -0
- package/dist/IO/DWG/DwgStreamReaders/DwgStreamReaderAC15.js +14 -0
- package/dist/IO/DWG/DwgStreamReaders/DwgStreamReaderAC15.js.map +1 -0
- package/dist/IO/DWG/DwgStreamReaders/DwgStreamReaderAC18.d.ts +13 -0
- package/dist/IO/DWG/DwgStreamReaders/DwgStreamReaderAC18.d.ts.map +1 -0
- package/dist/IO/DWG/DwgStreamReaders/DwgStreamReaderAC18.js +75 -0
- package/dist/IO/DWG/DwgStreamReaders/DwgStreamReaderAC18.js.map +1 -0
- package/dist/IO/DWG/DwgStreamReaders/DwgStreamReaderAC21.d.ts +7 -0
- package/dist/IO/DWG/DwgStreamReaders/DwgStreamReaderAC21.d.ts.map +1 -0
- package/dist/IO/DWG/DwgStreamReaders/DwgStreamReaderAC21.js +31 -0
- package/dist/IO/DWG/DwgStreamReaders/DwgStreamReaderAC21.js.map +1 -0
- package/dist/IO/DWG/DwgStreamReaders/DwgStreamReaderAC24.d.ts +7 -0
- package/dist/IO/DWG/DwgStreamReaders/DwgStreamReaderAC24.d.ts.map +1 -0
- package/dist/IO/DWG/DwgStreamReaders/DwgStreamReaderAC24.js +26 -0
- package/dist/IO/DWG/DwgStreamReaders/DwgStreamReaderAC24.js.map +1 -0
- package/dist/IO/DWG/DwgStreamReaders/DwgStreamReaderBase.d.ts +99 -0
- package/dist/IO/DWG/DwgStreamReaders/DwgStreamReaderBase.d.ts.map +1 -0
- package/dist/IO/DWG/DwgStreamReaders/DwgStreamReaderBase.js +734 -0
- package/dist/IO/DWG/DwgStreamReaders/DwgStreamReaderBase.js.map +1 -0
- package/dist/IO/DWG/DwgStreamReaders/DwgStreamReaderFactory.d.ts +2 -0
- package/dist/IO/DWG/DwgStreamReaders/DwgStreamReaderFactory.d.ts.map +1 -0
- package/dist/IO/DWG/DwgStreamReaders/DwgStreamReaderFactory.js +12 -0
- package/dist/IO/DWG/DwgStreamReaders/DwgStreamReaderFactory.js.map +1 -0
- package/dist/IO/DWG/DwgStreamReaders/DwgSummaryInfoReader.d.ts +13 -0
- package/dist/IO/DWG/DwgStreamReaders/DwgSummaryInfoReader.d.ts.map +1 -0
- package/dist/IO/DWG/DwgStreamReaders/DwgSummaryInfoReader.js +73 -0
- package/dist/IO/DWG/DwgStreamReaders/DwgSummaryInfoReader.js.map +1 -0
- package/dist/IO/DWG/DwgStreamReaders/IDwgStreamReader.d.ts +69 -0
- package/dist/IO/DWG/DwgStreamReaders/IDwgStreamReader.d.ts.map +1 -0
- package/dist/IO/DWG/DwgStreamReaders/IDwgStreamReader.js +2 -0
- package/dist/IO/DWG/DwgStreamReaders/IDwgStreamReader.js.map +1 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgAppInfodWriter.d.ts +12 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgAppInfodWriter.d.ts.map +1 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgAppInfodWriter.js +36 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgAppInfodWriter.js.map +1 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgAuxHeaderWriter.d.ts +14 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgAuxHeaderWriter.d.ts.map +1 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgAuxHeaderWriter.js +109 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgAuxHeaderWriter.js.map +1 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgClassesWriter.d.ts +17 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgClassesWriter.d.ts.map +1 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgClassesWriter.js +126 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgClassesWriter.js.map +1 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgFileHeaderWriterAC15.d.ts +18 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgFileHeaderWriterAC15.d.ts.map +1 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgFileHeaderWriterAC15.js +112 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgFileHeaderWriterAC15.js.map +1 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgFileHeaderWriterAC18.d.ts +27 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgFileHeaderWriterAC18.d.ts.map +1 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgFileHeaderWriterAC18.js +395 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgFileHeaderWriterAC18.js.map +1 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgFileHeaderWriterAC21.d.ts +11 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgFileHeaderWriterAC21.d.ts.map +1 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgFileHeaderWriterAC21.js +16 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgFileHeaderWriterAC21.js.map +1 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgFileHeaderWriterBase.d.ts +34 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgFileHeaderWriterBase.d.ts.map +1 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgFileHeaderWriterBase.js +92 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgFileHeaderWriterBase.js.map +1 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgHandleWriter.d.ts +13 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgHandleWriter.d.ts.map +1 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgHandleWriter.js +100 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgHandleWriter.js.map +1 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgHeaderWriter.d.ts +17 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgHeaderWriter.d.ts.map +1 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgHeaderWriter.js +741 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgHeaderWriter.js.map +1 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgLZ77AC18Compressor.d.ts +19 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgLZ77AC18Compressor.d.ts.map +1 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgLZ77AC18Compressor.js +155 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgLZ77AC18Compressor.js.map +1 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgLZ77AC21Compressor.d.ts +8 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgLZ77AC21Compressor.d.ts.map +1 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgLZ77AC21Compressor.js +9 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgLZ77AC21Compressor.js.map +1 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgMergedStreamWriter.d.ts +60 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgMergedStreamWriter.d.ts.map +1 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgMergedStreamWriter.js +183 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgMergedStreamWriter.js.map +1 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgObjectWriter.d.ts +146 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgObjectWriter.d.ts.map +1 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgObjectWriter.js +3304 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgObjectWriter.js.map +1 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgPreviewWriter.d.ts +15 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgPreviewWriter.d.ts.map +1 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgPreviewWriter.js +49 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgPreviewWriter.js.map +1 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgStreamWriterAC12.d.ts +5 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgStreamWriterAC12.d.ts.map +1 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgStreamWriterAC12.js +7 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgStreamWriterAC12.js.map +1 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgStreamWriterAC15.d.ts +8 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgStreamWriterAC15.d.ts.map +1 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgStreamWriterAC15.js +31 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgStreamWriterAC15.js.map +1 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgStreamWriterAC18.d.ts +10 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgStreamWriterAC18.d.ts.map +1 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgStreamWriterAC18.js +107 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgStreamWriterAC18.js.map +1 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgStreamWriterAC21.d.ts +7 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgStreamWriterAC21.d.ts.map +1 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgStreamWriterAC21.js +36 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgStreamWriterAC21.js.map +1 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgStreamWriterAC24.d.ts +6 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgStreamWriterAC24.d.ts.map +1 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgStreamWriterAC24.js +29 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgStreamWriterAC24.js.map +1 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgStreamWriterBase.d.ts +73 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgStreamWriterBase.d.ts.map +1 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgStreamWriterBase.js +597 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgStreamWriterBase.js.map +1 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgStreamWriterFactory.d.ts +2 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgStreamWriterFactory.d.ts.map +1 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgStreamWriterFactory.js +16 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgStreamWriterFactory.js.map +1 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgSummaryInfoWriter.d.ts +15 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgSummaryInfoWriter.d.ts.map +1 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgSummaryInfoWriter.js +61 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgSummaryInfoWriter.js.map +1 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgmMergedStreamWriterAC14.d.ts +7 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgmMergedStreamWriterAC14.d.ts.map +1 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgmMergedStreamWriterAC14.js +22 -0
- package/dist/IO/DWG/DwgStreamWriters/DwgmMergedStreamWriterAC14.js.map +1 -0
- package/dist/IO/DWG/DwgStreamWriters/ICompressor.d.ts +4 -0
- package/dist/IO/DWG/DwgStreamWriters/ICompressor.d.ts.map +1 -0
- package/dist/IO/DWG/DwgStreamWriters/ICompressor.js +2 -0
- package/dist/IO/DWG/DwgStreamWriters/ICompressor.js.map +1 -0
- package/dist/IO/DWG/DwgStreamWriters/IDwgFileHeaderWriter.d.ts +7 -0
- package/dist/IO/DWG/DwgStreamWriters/IDwgFileHeaderWriter.d.ts.map +1 -0
- package/dist/IO/DWG/DwgStreamWriters/IDwgFileHeaderWriter.js +2 -0
- package/dist/IO/DWG/DwgStreamWriters/IDwgFileHeaderWriter.js.map +1 -0
- package/dist/IO/DWG/DwgStreamWriters/IDwgStreamWriter.d.ts +55 -0
- package/dist/IO/DWG/DwgStreamWriters/IDwgStreamWriter.d.ts.map +1 -0
- package/dist/IO/DWG/DwgStreamWriters/IDwgStreamWriter.js +2 -0
- package/dist/IO/DWG/DwgStreamWriters/IDwgStreamWriter.js.map +1 -0
- package/dist/IO/DWG/DwgWriter.d.ts +35 -0
- package/dist/IO/DWG/DwgWriter.d.ts.map +1 -0
- package/dist/IO/DWG/DwgWriter.js +235 -0
- package/dist/IO/DWG/DwgWriter.js.map +1 -0
- package/dist/IO/DWG/DwgWriterConfiguration.d.ts +4 -0
- package/dist/IO/DWG/DwgWriterConfiguration.d.ts.map +1 -0
- package/dist/IO/DWG/DwgWriterConfiguration.js +4 -0
- package/dist/IO/DWG/DwgWriterConfiguration.js.map +1 -0
- package/dist/IO/DWG/FileHeaders/Dwg21CompressedMetadata.d.ts +37 -0
- package/dist/IO/DWG/FileHeaders/Dwg21CompressedMetadata.d.ts.map +1 -0
- package/dist/IO/DWG/FileHeaders/Dwg21CompressedMetadata.js +37 -0
- package/dist/IO/DWG/FileHeaders/Dwg21CompressedMetadata.js.map +1 -0
- package/dist/IO/DWG/FileHeaders/DwgFileHeader.d.ts +14 -0
- package/dist/IO/DWG/FileHeaders/DwgFileHeader.d.ts.map +1 -0
- package/dist/IO/DWG/FileHeaders/DwgFileHeader.js +22 -0
- package/dist/IO/DWG/FileHeaders/DwgFileHeader.js.map +1 -0
- package/dist/IO/DWG/FileHeaders/DwgFileHeaderAC15.d.ts +13 -0
- package/dist/IO/DWG/FileHeaders/DwgFileHeaderAC15.d.ts.map +1 -0
- package/dist/IO/DWG/FileHeaders/DwgFileHeaderAC15.js +36 -0
- package/dist/IO/DWG/FileHeaders/DwgFileHeaderAC15.js.map +1 -0
- package/dist/IO/DWG/FileHeaders/DwgFileHeaderAC18.d.ts +30 -0
- package/dist/IO/DWG/FileHeaders/DwgFileHeaderAC18.d.ts.map +1 -0
- package/dist/IO/DWG/FileHeaders/DwgFileHeaderAC18.js +37 -0
- package/dist/IO/DWG/FileHeaders/DwgFileHeaderAC18.js.map +1 -0
- package/dist/IO/DWG/FileHeaders/DwgFileHeaderAC21.d.ts +8 -0
- package/dist/IO/DWG/FileHeaders/DwgFileHeaderAC21.d.ts.map +1 -0
- package/dist/IO/DWG/FileHeaders/DwgFileHeaderAC21.js +8 -0
- package/dist/IO/DWG/FileHeaders/DwgFileHeaderAC21.js.map +1 -0
- package/dist/IO/DWG/FileHeaders/DwgFileHeaderFactory.d.ts +2 -0
- package/dist/IO/DWG/FileHeaders/DwgFileHeaderFactory.d.ts.map +1 -0
- package/dist/IO/DWG/FileHeaders/DwgFileHeaderFactory.js +39 -0
- package/dist/IO/DWG/FileHeaders/DwgFileHeaderFactory.js.map +1 -0
- package/dist/IO/DWG/FileHeaders/DwgLocalSectionMap.d.ts +17 -0
- package/dist/IO/DWG/FileHeaders/DwgLocalSectionMap.d.ts.map +1 -0
- package/dist/IO/DWG/FileHeaders/DwgLocalSectionMap.js +21 -0
- package/dist/IO/DWG/FileHeaders/DwgLocalSectionMap.js.map +1 -0
- package/dist/IO/DWG/FileHeaders/DwgSectionDefinition.d.ts +18 -0
- package/dist/IO/DWG/FileHeaders/DwgSectionDefinition.d.ts.map +1 -0
- package/dist/IO/DWG/FileHeaders/DwgSectionDefinition.js +43 -0
- package/dist/IO/DWG/FileHeaders/DwgSectionDefinition.js.map +1 -0
- package/dist/IO/DWG/FileHeaders/DwgSectionDescriptor.d.ts +19 -0
- package/dist/IO/DWG/FileHeaders/DwgSectionDescriptor.d.ts.map +1 -0
- package/dist/IO/DWG/FileHeaders/DwgSectionDescriptor.js +33 -0
- package/dist/IO/DWG/FileHeaders/DwgSectionDescriptor.js.map +1 -0
- package/dist/IO/DWG/FileHeaders/DwgSectionHash.d.ts +19 -0
- package/dist/IO/DWG/FileHeaders/DwgSectionHash.d.ts.map +1 -0
- package/dist/IO/DWG/FileHeaders/DwgSectionHash.js +20 -0
- package/dist/IO/DWG/FileHeaders/DwgSectionHash.js.map +1 -0
- package/dist/IO/DWG/FileHeaders/DwgSectionLocatorRecord.d.ts +10 -0
- package/dist/IO/DWG/FileHeaders/DwgSectionLocatorRecord.d.ts.map +1 -0
- package/dist/IO/DWG/FileHeaders/DwgSectionLocatorRecord.js +24 -0
- package/dist/IO/DWG/FileHeaders/DwgSectionLocatorRecord.js.map +1 -0
- package/dist/IO/DXF/CadObjectHolder.d.ts +7 -0
- package/dist/IO/DXF/CadObjectHolder.d.ts.map +1 -0
- package/dist/IO/DXF/CadObjectHolder.js +5 -0
- package/dist/IO/DXF/CadObjectHolder.js.map +1 -0
- package/dist/IO/DXF/DxfDocumentBuilder.d.ts +20 -0
- package/dist/IO/DXF/DxfDocumentBuilder.d.ts.map +1 -0
- package/dist/IO/DXF/DxfDocumentBuilder.js +97 -0
- package/dist/IO/DXF/DxfDocumentBuilder.js.map +1 -0
- package/dist/IO/DXF/DxfReader.d.ts +33 -0
- package/dist/IO/DXF/DxfReader.d.ts.map +1 -0
- package/dist/IO/DXF/DxfReader.js +323 -0
- package/dist/IO/DXF/DxfReader.js.map +1 -0
- package/dist/IO/DXF/DxfReaderConfiguration.d.ts +6 -0
- package/dist/IO/DXF/DxfReaderConfiguration.d.ts.map +1 -0
- package/dist/IO/DXF/DxfReaderConfiguration.js +6 -0
- package/dist/IO/DXF/DxfReaderConfiguration.js.map +1 -0
- package/dist/IO/DXF/DxfStreamReader/DxfBinaryReader.d.ts +22 -0
- package/dist/IO/DXF/DxfStreamReader/DxfBinaryReader.d.ts.map +1 -0
- package/dist/IO/DXF/DxfStreamReader/DxfBinaryReader.js +93 -0
- package/dist/IO/DXF/DxfStreamReader/DxfBinaryReader.js.map +1 -0
- package/dist/IO/DXF/DxfStreamReader/DxfBinaryReaderAC1009.d.ts +7 -0
- package/dist/IO/DXF/DxfStreamReader/DxfBinaryReaderAC1009.d.ts.map +1 -0
- package/dist/IO/DXF/DxfStreamReader/DxfBinaryReaderAC1009.js +15 -0
- package/dist/IO/DXF/DxfStreamReader/DxfBinaryReaderAC1009.js.map +1 -0
- package/dist/IO/DXF/DxfStreamReader/DxfBlockSectionReader.d.ts +10 -0
- package/dist/IO/DXF/DxfStreamReader/DxfBlockSectionReader.d.ts.map +1 -0
- package/dist/IO/DXF/DxfStreamReader/DxfBlockSectionReader.js +163 -0
- package/dist/IO/DXF/DxfStreamReader/DxfBlockSectionReader.js.map +1 -0
- package/dist/IO/DXF/DxfStreamReader/DxfEntitiesSectionReader.d.ts +8 -0
- package/dist/IO/DXF/DxfStreamReader/DxfEntitiesSectionReader.d.ts.map +1 -0
- package/dist/IO/DXF/DxfStreamReader/DxfEntitiesSectionReader.js +42 -0
- package/dist/IO/DXF/DxfStreamReader/DxfEntitiesSectionReader.js.map +1 -0
- package/dist/IO/DXF/DxfStreamReader/DxfObjectsSectionReader.d.ts +83 -0
- package/dist/IO/DXF/DxfStreamReader/DxfObjectsSectionReader.d.ts.map +1 -0
- package/dist/IO/DXF/DxfStreamReader/DxfObjectsSectionReader.js +2053 -0
- package/dist/IO/DXF/DxfStreamReader/DxfObjectsSectionReader.js.map +1 -0
- package/dist/IO/DXF/DxfStreamReader/DxfSectionReaderBase.d.ts +82 -0
- package/dist/IO/DXF/DxfStreamReader/DxfSectionReaderBase.d.ts.map +1 -0
- package/dist/IO/DXF/DxfStreamReader/DxfSectionReaderBase.js +2002 -0
- package/dist/IO/DXF/DxfStreamReader/DxfSectionReaderBase.js.map +1 -0
- package/dist/IO/DXF/DxfStreamReader/DxfStreamReaderBase.d.ts +39 -0
- package/dist/IO/DXF/DxfStreamReader/DxfStreamReaderBase.d.ts.map +1 -0
- package/dist/IO/DXF/DxfStreamReader/DxfStreamReaderBase.js +114 -0
- package/dist/IO/DXF/DxfStreamReader/DxfStreamReaderBase.js.map +1 -0
- package/dist/IO/DXF/DxfStreamReader/DxfTablesSectionReader.d.ts +25 -0
- package/dist/IO/DXF/DxfStreamReader/DxfTablesSectionReader.d.ts.map +1 -0
- package/dist/IO/DXF/DxfStreamReader/DxfTablesSectionReader.js +666 -0
- package/dist/IO/DXF/DxfStreamReader/DxfTablesSectionReader.js.map +1 -0
- package/dist/IO/DXF/DxfStreamReader/DxfTextReader.d.ts +21 -0
- package/dist/IO/DXF/DxfStreamReader/DxfTextReader.d.ts.map +1 -0
- package/dist/IO/DXF/DxfStreamReader/DxfTextReader.js +113 -0
- package/dist/IO/DXF/DxfStreamReader/DxfTextReader.js.map +1 -0
- package/dist/IO/DXF/DxfStreamReader/IDxfStreamReader.d.ts +25 -0
- package/dist/IO/DXF/DxfStreamReader/IDxfStreamReader.d.ts.map +1 -0
- package/dist/IO/DXF/DxfStreamReader/IDxfStreamReader.js +2 -0
- package/dist/IO/DXF/DxfStreamReader/IDxfStreamReader.js.map +1 -0
- package/dist/IO/DXF/DxfStreamWriter/DxfAsciiWriter.d.ts +17 -0
- package/dist/IO/DXF/DxfStreamWriter/DxfAsciiWriter.d.ts.map +1 -0
- package/dist/IO/DXF/DxfStreamWriter/DxfAsciiWriter.js +104 -0
- package/dist/IO/DXF/DxfStreamWriter/DxfAsciiWriter.js.map +1 -0
- package/dist/IO/DXF/DxfStreamWriter/DxfBinaryWriter.d.ts +21 -0
- package/dist/IO/DXF/DxfStreamWriter/DxfBinaryWriter.d.ts.map +1 -0
- package/dist/IO/DXF/DxfStreamWriter/DxfBinaryWriter.js +136 -0
- package/dist/IO/DXF/DxfStreamWriter/DxfBinaryWriter.js.map +1 -0
- package/dist/IO/DXF/DxfStreamWriter/DxfBlocksSectionWriter.d.ts +14 -0
- package/dist/IO/DXF/DxfStreamWriter/DxfBlocksSectionWriter.d.ts.map +1 -0
- package/dist/IO/DXF/DxfStreamWriter/DxfBlocksSectionWriter.js +65 -0
- package/dist/IO/DXF/DxfStreamWriter/DxfBlocksSectionWriter.js.map +1 -0
- package/dist/IO/DXF/DxfStreamWriter/DxfClassesSectionWriter.d.ts +11 -0
- package/dist/IO/DXF/DxfStreamWriter/DxfClassesSectionWriter.d.ts.map +1 -0
- package/dist/IO/DXF/DxfStreamWriter/DxfClassesSectionWriter.js +30 -0
- package/dist/IO/DXF/DxfStreamWriter/DxfClassesSectionWriter.js.map +1 -0
- package/dist/IO/DXF/DxfStreamWriter/DxfEntitiesSectionWriter.d.ts +11 -0
- package/dist/IO/DXF/DxfStreamWriter/DxfEntitiesSectionWriter.d.ts.map +1 -0
- package/dist/IO/DXF/DxfStreamWriter/DxfEntitiesSectionWriter.js +17 -0
- package/dist/IO/DXF/DxfStreamWriter/DxfEntitiesSectionWriter.js.map +1 -0
- package/dist/IO/DXF/DxfStreamWriter/DxfHeaderSectionWriter.d.ts +13 -0
- package/dist/IO/DXF/DxfStreamWriter/DxfHeaderSectionWriter.d.ts.map +1 -0
- package/dist/IO/DXF/DxfStreamWriter/DxfHeaderSectionWriter.js +47 -0
- package/dist/IO/DXF/DxfStreamWriter/DxfHeaderSectionWriter.js.map +1 -0
- package/dist/IO/DXF/DxfStreamWriter/DxfObjectsSectionWriter.d.ts +50 -0
- package/dist/IO/DXF/DxfStreamWriter/DxfObjectsSectionWriter.d.ts.map +1 -0
- package/dist/IO/DXF/DxfStreamWriter/DxfObjectsSectionWriter.js +613 -0
- package/dist/IO/DXF/DxfStreamWriter/DxfObjectsSectionWriter.js.map +1 -0
- package/dist/IO/DXF/DxfStreamWriter/DxfSectionWriterBase.d.ts +74 -0
- package/dist/IO/DXF/DxfStreamWriter/DxfSectionWriterBase.d.ts.map +1 -0
- package/dist/IO/DXF/DxfStreamWriter/DxfSectionWriterBase.js +1091 -0
- package/dist/IO/DXF/DxfStreamWriter/DxfSectionWriterBase.js.map +1 -0
- package/dist/IO/DXF/DxfStreamWriter/DxfStreamWriterBase.d.ts +23 -0
- package/dist/IO/DXF/DxfStreamWriter/DxfStreamWriterBase.d.ts.map +1 -0
- package/dist/IO/DXF/DxfStreamWriter/DxfStreamWriterBase.js +84 -0
- package/dist/IO/DXF/DxfStreamWriter/DxfStreamWriterBase.js.map +1 -0
- package/dist/IO/DXF/DxfStreamWriter/DxfTablesSectionWriter.d.ts +21 -0
- package/dist/IO/DXF/DxfStreamWriter/DxfTablesSectionWriter.d.ts.map +1 -0
- package/dist/IO/DXF/DxfStreamWriter/DxfTablesSectionWriter.js +284 -0
- package/dist/IO/DXF/DxfStreamWriter/DxfTablesSectionWriter.js.map +1 -0
- package/dist/IO/DXF/DxfStreamWriter/IDxfStreamWriter.d.ts +20 -0
- package/dist/IO/DXF/DxfStreamWriter/IDxfStreamWriter.d.ts.map +1 -0
- package/dist/IO/DXF/DxfStreamWriter/IDxfStreamWriter.js +2 -0
- package/dist/IO/DXF/DxfStreamWriter/IDxfStreamWriter.js.map +1 -0
- package/dist/IO/DXF/DxfWriter.d.ts +37 -0
- package/dist/IO/DXF/DxfWriter.d.ts.map +1 -0
- package/dist/IO/DXF/DxfWriter.js +150 -0
- package/dist/IO/DXF/DxfWriter.js.map +1 -0
- package/dist/IO/DXF/DxfWriterConfiguration.d.ts +12 -0
- package/dist/IO/DXF/DxfWriterConfiguration.d.ts.map +1 -0
- package/dist/IO/DXF/DxfWriterConfiguration.js +70 -0
- package/dist/IO/DXF/DxfWriterConfiguration.js.map +1 -0
- package/dist/IO/HugeMemoryStream.d.ts +26 -0
- package/dist/IO/HugeMemoryStream.d.ts.map +1 -0
- package/dist/IO/HugeMemoryStream.js +107 -0
- package/dist/IO/HugeMemoryStream.js.map +1 -0
- package/dist/IO/ICadReader.d.ts +10 -0
- package/dist/IO/ICadReader.d.ts.map +1 -0
- package/dist/IO/ICadReader.js +2 -0
- package/dist/IO/ICadReader.js.map +1 -0
- package/dist/IO/ICadWriter.d.ts +7 -0
- package/dist/IO/ICadWriter.d.ts.map +1 -0
- package/dist/IO/ICadWriter.js +2 -0
- package/dist/IO/ICadWriter.js.map +1 -0
- package/dist/IO/NotificationEventHandler.d.ts +18 -0
- package/dist/IO/NotificationEventHandler.d.ts.map +1 -0
- package/dist/IO/NotificationEventHandler.js +22 -0
- package/dist/IO/NotificationEventHandler.js.map +1 -0
- package/dist/IO/SVG/SvgConfiguration.d.ts +11 -0
- package/dist/IO/SVG/SvgConfiguration.d.ts.map +1 -0
- package/dist/IO/SVG/SvgConfiguration.js +24 -0
- package/dist/IO/SVG/SvgConfiguration.js.map +1 -0
- package/dist/IO/SVG/SvgConverter.d.ts +20 -0
- package/dist/IO/SVG/SvgConverter.d.ts.map +1 -0
- package/dist/IO/SVG/SvgConverter.js +49 -0
- package/dist/IO/SVG/SvgConverter.js.map +1 -0
- package/dist/IO/SVG/SvgDocumentBuilder.d.ts +14 -0
- package/dist/IO/SVG/SvgDocumentBuilder.d.ts.map +1 -0
- package/dist/IO/SVG/SvgDocumentBuilder.js +68 -0
- package/dist/IO/SVG/SvgDocumentBuilder.js.map +1 -0
- package/dist/IO/SVG/SvgXmlWriter.d.ts +86 -0
- package/dist/IO/SVG/SvgXmlWriter.d.ts.map +1 -0
- package/dist/IO/SVG/SvgXmlWriter.js +781 -0
- package/dist/IO/SVG/SvgXmlWriter.js.map +1 -0
- package/dist/IO/SvgWriter.d.ts +16 -0
- package/dist/IO/SvgWriter.d.ts.map +1 -0
- package/dist/IO/SvgWriter.js +31 -0
- package/dist/IO/SvgWriter.js.map +1 -0
- package/dist/IO/Templates/CadAnnotScaleObjectContextDataTemplate.d.ts +9 -0
- package/dist/IO/Templates/CadAnnotScaleObjectContextDataTemplate.d.ts.map +1 -0
- package/dist/IO/Templates/CadAnnotScaleObjectContextDataTemplate.js +16 -0
- package/dist/IO/Templates/CadAnnotScaleObjectContextDataTemplate.js.map +1 -0
- package/dist/IO/Templates/CadAttributeTemplate.d.ts +9 -0
- package/dist/IO/Templates/CadAttributeTemplate.d.ts.map +1 -0
- package/dist/IO/Templates/CadAttributeTemplate.js +14 -0
- package/dist/IO/Templates/CadAttributeTemplate.js.map +1 -0
- package/dist/IO/Templates/CadBlock1PtParameterTemplate.d.ts +7 -0
- package/dist/IO/Templates/CadBlock1PtParameterTemplate.d.ts.map +1 -0
- package/dist/IO/Templates/CadBlock1PtParameterTemplate.js +8 -0
- package/dist/IO/Templates/CadBlock1PtParameterTemplate.js.map +1 -0
- package/dist/IO/Templates/CadBlock2PtParameterTemplate.d.ts +7 -0
- package/dist/IO/Templates/CadBlock2PtParameterTemplate.d.ts.map +1 -0
- package/dist/IO/Templates/CadBlock2PtParameterTemplate.js +8 -0
- package/dist/IO/Templates/CadBlock2PtParameterTemplate.js.map +1 -0
- package/dist/IO/Templates/CadBlockActionBasePtTemplate.d.ts +6 -0
- package/dist/IO/Templates/CadBlockActionBasePtTemplate.d.ts.map +1 -0
- package/dist/IO/Templates/CadBlockActionBasePtTemplate.js +7 -0
- package/dist/IO/Templates/CadBlockActionBasePtTemplate.js.map +1 -0
- package/dist/IO/Templates/CadBlockActionTemplate.d.ts +10 -0
- package/dist/IO/Templates/CadBlockActionTemplate.d.ts.map +1 -0
- package/dist/IO/Templates/CadBlockActionTemplate.js +21 -0
- package/dist/IO/Templates/CadBlockActionTemplate.js.map +1 -0
- package/dist/IO/Templates/CadBlockCtrlObjectTemplate.d.ts +11 -0
- package/dist/IO/Templates/CadBlockCtrlObjectTemplate.d.ts.map +1 -0
- package/dist/IO/Templates/CadBlockCtrlObjectTemplate.js +20 -0
- package/dist/IO/Templates/CadBlockCtrlObjectTemplate.js.map +1 -0
- package/dist/IO/Templates/CadBlockElementTemplate.d.ts +7 -0
- package/dist/IO/Templates/CadBlockElementTemplate.d.ts.map +1 -0
- package/dist/IO/Templates/CadBlockElementTemplate.js +8 -0
- package/dist/IO/Templates/CadBlockElementTemplate.js.map +1 -0
- package/dist/IO/Templates/CadBlockEntityTemplate.d.ts +8 -0
- package/dist/IO/Templates/CadBlockEntityTemplate.d.ts.map +1 -0
- package/dist/IO/Templates/CadBlockEntityTemplate.js +8 -0
- package/dist/IO/Templates/CadBlockEntityTemplate.js.map +1 -0
- package/dist/IO/Templates/CadBlockFlipActionTemplate.d.ts +7 -0
- package/dist/IO/Templates/CadBlockFlipActionTemplate.d.ts.map +1 -0
- package/dist/IO/Templates/CadBlockFlipActionTemplate.js +8 -0
- package/dist/IO/Templates/CadBlockFlipActionTemplate.js.map +1 -0
- package/dist/IO/Templates/CadBlockFlipParameterTemplate.d.ts +7 -0
- package/dist/IO/Templates/CadBlockFlipParameterTemplate.d.ts.map +1 -0
- package/dist/IO/Templates/CadBlockFlipParameterTemplate.js +8 -0
- package/dist/IO/Templates/CadBlockFlipParameterTemplate.js.map +1 -0
- package/dist/IO/Templates/CadBlockGripExpressionTemplate.d.ts +6 -0
- package/dist/IO/Templates/CadBlockGripExpressionTemplate.d.ts.map +1 -0
- package/dist/IO/Templates/CadBlockGripExpressionTemplate.js +8 -0
- package/dist/IO/Templates/CadBlockGripExpressionTemplate.js.map +1 -0
- package/dist/IO/Templates/CadBlockGripTemplate.d.ts +6 -0
- package/dist/IO/Templates/CadBlockGripTemplate.d.ts.map +1 -0
- package/dist/IO/Templates/CadBlockGripTemplate.js +7 -0
- package/dist/IO/Templates/CadBlockGripTemplate.js.map +1 -0
- package/dist/IO/Templates/CadBlockParameterTemplate.d.ts +7 -0
- package/dist/IO/Templates/CadBlockParameterTemplate.d.ts.map +1 -0
- package/dist/IO/Templates/CadBlockParameterTemplate.js +8 -0
- package/dist/IO/Templates/CadBlockParameterTemplate.js.map +1 -0
- package/dist/IO/Templates/CadBlockRecordTemplate.d.ts +24 -0
- package/dist/IO/Templates/CadBlockRecordTemplate.d.ts.map +1 -0
- package/dist/IO/Templates/CadBlockRecordTemplate.js +80 -0
- package/dist/IO/Templates/CadBlockRecordTemplate.js.map +1 -0
- package/dist/IO/Templates/CadBlockRepresentationDataTemplate.d.ts +9 -0
- package/dist/IO/Templates/CadBlockRepresentationDataTemplate.d.ts.map +1 -0
- package/dist/IO/Templates/CadBlockRepresentationDataTemplate.js +16 -0
- package/dist/IO/Templates/CadBlockRepresentationDataTemplate.js.map +1 -0
- package/dist/IO/Templates/CadBlockRotationActionTemplate.d.ts +6 -0
- package/dist/IO/Templates/CadBlockRotationActionTemplate.d.ts.map +1 -0
- package/dist/IO/Templates/CadBlockRotationActionTemplate.js +8 -0
- package/dist/IO/Templates/CadBlockRotationActionTemplate.js.map +1 -0
- package/dist/IO/Templates/CadBlockRotationGripTemplate.d.ts +6 -0
- package/dist/IO/Templates/CadBlockRotationGripTemplate.d.ts.map +1 -0
- package/dist/IO/Templates/CadBlockRotationGripTemplate.js +8 -0
- package/dist/IO/Templates/CadBlockRotationGripTemplate.js.map +1 -0
- package/dist/IO/Templates/CadBlockRotationParameterTemplate.d.ts +6 -0
- package/dist/IO/Templates/CadBlockRotationParameterTemplate.d.ts.map +1 -0
- package/dist/IO/Templates/CadBlockRotationParameterTemplate.js +8 -0
- package/dist/IO/Templates/CadBlockRotationParameterTemplate.js.map +1 -0
- package/dist/IO/Templates/CadBlockVisibilityGripTemplate.d.ts +6 -0
- package/dist/IO/Templates/CadBlockVisibilityGripTemplate.d.ts.map +1 -0
- package/dist/IO/Templates/CadBlockVisibilityGripTemplate.js +8 -0
- package/dist/IO/Templates/CadBlockVisibilityGripTemplate.js.map +1 -0
- package/dist/IO/Templates/CadBlockVisibilityParameterTemplate.d.ts +21 -0
- package/dist/IO/Templates/CadBlockVisibilityParameterTemplate.d.ts.map +1 -0
- package/dist/IO/Templates/CadBlockVisibilityParameterTemplate.js +59 -0
- package/dist/IO/Templates/CadBlockVisibilityParameterTemplate.js.map +1 -0
- package/dist/IO/Templates/CadDictionaryTemplate.d.ts +10 -0
- package/dist/IO/Templates/CadDictionaryTemplate.d.ts.map +1 -0
- package/dist/IO/Templates/CadDictionaryTemplate.js +47 -0
- package/dist/IO/Templates/CadDictionaryTemplate.js.map +1 -0
- package/dist/IO/Templates/CadDictionaryWithDefaultTemplate.d.ts +9 -0
- package/dist/IO/Templates/CadDictionaryWithDefaultTemplate.d.ts.map +1 -0
- package/dist/IO/Templates/CadDictionaryWithDefaultTemplate.js +16 -0
- package/dist/IO/Templates/CadDictionaryWithDefaultTemplate.js.map +1 -0
- package/dist/IO/Templates/CadDimensionAssociationTemplate.d.ts +22 -0
- package/dist/IO/Templates/CadDimensionAssociationTemplate.d.ts.map +1 -0
- package/dist/IO/Templates/CadDimensionAssociationTemplate.js +52 -0
- package/dist/IO/Templates/CadDimensionAssociationTemplate.js.map +1 -0
- package/dist/IO/Templates/CadDimensionStyleTemplate.d.ts +22 -0
- package/dist/IO/Templates/CadDimensionStyleTemplate.d.ts.map +1 -0
- package/dist/IO/Templates/CadDimensionStyleTemplate.js +54 -0
- package/dist/IO/Templates/CadDimensionStyleTemplate.js.map +1 -0
- package/dist/IO/Templates/CadDimensionTemplate.d.ts +21 -0
- package/dist/IO/Templates/CadDimensionTemplate.d.ts.map +1 -0
- package/dist/IO/Templates/CadDimensionTemplate.js +72 -0
- package/dist/IO/Templates/CadDimensionTemplate.js.map +1 -0
- package/dist/IO/Templates/CadEntityTemplate.d.ts +24 -0
- package/dist/IO/Templates/CadEntityTemplate.d.ts.map +1 -0
- package/dist/IO/Templates/CadEntityTemplate.js +67 -0
- package/dist/IO/Templates/CadEntityTemplate.js.map +1 -0
- package/dist/IO/Templates/CadEvaluationExpressionTemplate.d.ts +6 -0
- package/dist/IO/Templates/CadEvaluationExpressionTemplate.d.ts.map +1 -0
- package/dist/IO/Templates/CadEvaluationExpressionTemplate.js +7 -0
- package/dist/IO/Templates/CadEvaluationExpressionTemplate.js.map +1 -0
- package/dist/IO/Templates/CadEvaluationGraphTemplate.d.ts +17 -0
- package/dist/IO/Templates/CadEvaluationGraphTemplate.d.ts.map +1 -0
- package/dist/IO/Templates/CadEvaluationGraphTemplate.js +33 -0
- package/dist/IO/Templates/CadEvaluationGraphTemplate.js.map +1 -0
- package/dist/IO/Templates/CadFieldListTemplate.d.ts +10 -0
- package/dist/IO/Templates/CadFieldListTemplate.d.ts.map +1 -0
- package/dist/IO/Templates/CadFieldListTemplate.js +21 -0
- package/dist/IO/Templates/CadFieldListTemplate.js.map +1 -0
- package/dist/IO/Templates/CadFieldTemplate.d.ts +12 -0
- package/dist/IO/Templates/CadFieldTemplate.d.ts.map +1 -0
- package/dist/IO/Templates/CadFieldTemplate.js +32 -0
- package/dist/IO/Templates/CadFieldTemplate.js.map +1 -0
- package/dist/IO/Templates/CadGeoDataTemplate.d.ts +9 -0
- package/dist/IO/Templates/CadGeoDataTemplate.d.ts.map +1 -0
- package/dist/IO/Templates/CadGeoDataTemplate.js +16 -0
- package/dist/IO/Templates/CadGeoDataTemplate.js.map +1 -0
- package/dist/IO/Templates/CadGroupTemplate.d.ts +9 -0
- package/dist/IO/Templates/CadGroupTemplate.d.ts.map +1 -0
- package/dist/IO/Templates/CadGroupTemplate.js +28 -0
- package/dist/IO/Templates/CadGroupTemplate.js.map +1 -0
- package/dist/IO/Templates/CadHatchTemplate.d.ts +18 -0
- package/dist/IO/Templates/CadHatchTemplate.d.ts.map +1 -0
- package/dist/IO/Templates/CadHatchTemplate.js +32 -0
- package/dist/IO/Templates/CadHatchTemplate.js.map +1 -0
- package/dist/IO/Templates/CadInsertTemplate.d.ts +17 -0
- package/dist/IO/Templates/CadInsertTemplate.d.ts.map +1 -0
- package/dist/IO/Templates/CadInsertTemplate.js +51 -0
- package/dist/IO/Templates/CadInsertTemplate.js.map +1 -0
- package/dist/IO/Templates/CadLayerTemplate.d.ts +14 -0
- package/dist/IO/Templates/CadLayerTemplate.d.ts.map +1 -0
- package/dist/IO/Templates/CadLayerTemplate.js +26 -0
- package/dist/IO/Templates/CadLayerTemplate.js.map +1 -0
- package/dist/IO/Templates/CadLayoutTemplate.d.ts +14 -0
- package/dist/IO/Templates/CadLayoutTemplate.d.ts.map +1 -0
- package/dist/IO/Templates/CadLayoutTemplate.js +36 -0
- package/dist/IO/Templates/CadLayoutTemplate.js.map +1 -0
- package/dist/IO/Templates/CadLeaderTemplate.d.ts +12 -0
- package/dist/IO/Templates/CadLeaderTemplate.d.ts.map +1 -0
- package/dist/IO/Templates/CadLeaderTemplate.js +24 -0
- package/dist/IO/Templates/CadLeaderTemplate.js.map +1 -0
- package/dist/IO/Templates/CadLineTypeTemplate.d.ts +18 -0
- package/dist/IO/Templates/CadLineTypeTemplate.d.ts.map +1 -0
- package/dist/IO/Templates/CadLineTypeTemplate.js +31 -0
- package/dist/IO/Templates/CadLineTypeTemplate.js.map +1 -0
- package/dist/IO/Templates/CadMLeaderAnnotContextTemplate.d.ts +21 -0
- package/dist/IO/Templates/CadMLeaderAnnotContextTemplate.d.ts.map +1 -0
- package/dist/IO/Templates/CadMLeaderAnnotContextTemplate.js +47 -0
- package/dist/IO/Templates/CadMLeaderAnnotContextTemplate.js.map +1 -0
- package/dist/IO/Templates/CadMLeaderStyleTemplate.d.ts +12 -0
- package/dist/IO/Templates/CadMLeaderStyleTemplate.d.ts.map +1 -0
- package/dist/IO/Templates/CadMLeaderStyleTemplate.js +31 -0
- package/dist/IO/Templates/CadMLeaderStyleTemplate.js.map +1 -0
- package/dist/IO/Templates/CadMLeaderTemplate.d.ts +17 -0
- package/dist/IO/Templates/CadMLeaderTemplate.d.ts.map +1 -0
- package/dist/IO/Templates/CadMLeaderTemplate.js +56 -0
- package/dist/IO/Templates/CadMLeaderTemplate.js.map +1 -0
- package/dist/IO/Templates/CadMLineStyleTemplate.d.ts +19 -0
- package/dist/IO/Templates/CadMLineStyleTemplate.d.ts.map +1 -0
- package/dist/IO/Templates/CadMLineStyleTemplate.js +69 -0
- package/dist/IO/Templates/CadMLineStyleTemplate.js.map +1 -0
- package/dist/IO/Templates/CadMLineTemplate.d.ts +15 -0
- package/dist/IO/Templates/CadMLineTemplate.d.ts.map +1 -0
- package/dist/IO/Templates/CadMLineTemplate.js +89 -0
- package/dist/IO/Templates/CadMLineTemplate.js.map +1 -0
- package/dist/IO/Templates/CadMaterialTemplate.d.ts +8 -0
- package/dist/IO/Templates/CadMaterialTemplate.d.ts.map +1 -0
- package/dist/IO/Templates/CadMaterialTemplate.js +11 -0
- package/dist/IO/Templates/CadMaterialTemplate.js.map +1 -0
- package/dist/IO/Templates/CadMeshTemplate.d.ts +7 -0
- package/dist/IO/Templates/CadMeshTemplate.d.ts.map +1 -0
- package/dist/IO/Templates/CadMeshTemplate.js +9 -0
- package/dist/IO/Templates/CadMeshTemplate.js.map +1 -0
- package/dist/IO/Templates/CadNonGraphicalObjectTemplate.d.ts +6 -0
- package/dist/IO/Templates/CadNonGraphicalObjectTemplate.d.ts.map +1 -0
- package/dist/IO/Templates/CadNonGraphicalObjectTemplate.js +7 -0
- package/dist/IO/Templates/CadNonGraphicalObjectTemplate.js.map +1 -0
- package/dist/IO/Templates/CadOle2FrameTemplate.d.ts +10 -0
- package/dist/IO/Templates/CadOle2FrameTemplate.d.ts.map +1 -0
- package/dist/IO/Templates/CadOle2FrameTemplate.js +38 -0
- package/dist/IO/Templates/CadOle2FrameTemplate.js.map +1 -0
- package/dist/IO/Templates/CadPlotSettingsTemplate.d.ts +6 -0
- package/dist/IO/Templates/CadPlotSettingsTemplate.d.ts.map +1 -0
- package/dist/IO/Templates/CadPlotSettingsTemplate.js +7 -0
- package/dist/IO/Templates/CadPlotSettingsTemplate.js.map +1 -0
- package/dist/IO/Templates/CadPolyLineTemplate.d.ts +21 -0
- package/dist/IO/Templates/CadPolyLineTemplate.d.ts.map +1 -0
- package/dist/IO/Templates/CadPolyLineTemplate.js +141 -0
- package/dist/IO/Templates/CadPolyLineTemplate.js.map +1 -0
- package/dist/IO/Templates/CadProxyObjectTemplate.d.ts +7 -0
- package/dist/IO/Templates/CadProxyObjectTemplate.d.ts.map +1 -0
- package/dist/IO/Templates/CadProxyObjectTemplate.js +9 -0
- package/dist/IO/Templates/CadProxyObjectTemplate.js.map +1 -0
- package/dist/IO/Templates/CadShapeTemplate.d.ts +11 -0
- package/dist/IO/Templates/CadShapeTemplate.d.ts.map +1 -0
- package/dist/IO/Templates/CadShapeTemplate.js +24 -0
- package/dist/IO/Templates/CadShapeTemplate.js.map +1 -0
- package/dist/IO/Templates/CadSolid3DTemplate.d.ts +7 -0
- package/dist/IO/Templates/CadSolid3DTemplate.d.ts.map +1 -0
- package/dist/IO/Templates/CadSolid3DTemplate.js +9 -0
- package/dist/IO/Templates/CadSolid3DTemplate.js.map +1 -0
- package/dist/IO/Templates/CadSortensTableTemplate.d.ts +10 -0
- package/dist/IO/Templates/CadSortensTableTemplate.d.ts.map +1 -0
- package/dist/IO/Templates/CadSortensTableTemplate.js +38 -0
- package/dist/IO/Templates/CadSortensTableTemplate.js.map +1 -0
- package/dist/IO/Templates/CadSpatialFilterTemplate.d.ts +8 -0
- package/dist/IO/Templates/CadSpatialFilterTemplate.d.ts.map +1 -0
- package/dist/IO/Templates/CadSpatialFilterTemplate.js +10 -0
- package/dist/IO/Templates/CadSpatialFilterTemplate.js.map +1 -0
- package/dist/IO/Templates/CadSplineTemplate.d.ts +6 -0
- package/dist/IO/Templates/CadSplineTemplate.d.ts.map +1 -0
- package/dist/IO/Templates/CadSplineTemplate.js +8 -0
- package/dist/IO/Templates/CadSplineTemplate.js.map +1 -0
- package/dist/IO/Templates/CadTableContentTemplate.d.ts +7 -0
- package/dist/IO/Templates/CadTableContentTemplate.d.ts.map +1 -0
- package/dist/IO/Templates/CadTableContentTemplate.js +9 -0
- package/dist/IO/Templates/CadTableContentTemplate.js.map +1 -0
- package/dist/IO/Templates/CadTableEntityTemplate.d.ts +59 -0
- package/dist/IO/Templates/CadTableEntityTemplate.d.ts.map +1 -0
- package/dist/IO/Templates/CadTableEntityTemplate.js +89 -0
- package/dist/IO/Templates/CadTableEntityTemplate.js.map +1 -0
- package/dist/IO/Templates/CadTableEntryTemplate.d.ts +12 -0
- package/dist/IO/Templates/CadTableEntryTemplate.d.ts.map +1 -0
- package/dist/IO/Templates/CadTableEntryTemplate.js +12 -0
- package/dist/IO/Templates/CadTableEntryTemplate.js.map +1 -0
- package/dist/IO/Templates/CadTableStyleTemplate.d.ts +12 -0
- package/dist/IO/Templates/CadTableStyleTemplate.d.ts.map +1 -0
- package/dist/IO/Templates/CadTableStyleTemplate.js +22 -0
- package/dist/IO/Templates/CadTableStyleTemplate.js.map +1 -0
- package/dist/IO/Templates/CadTableTemplate.d.ts +12 -0
- package/dist/IO/Templates/CadTableTemplate.d.ts.map +1 -0
- package/dist/IO/Templates/CadTableTemplate.js +23 -0
- package/dist/IO/Templates/CadTableTemplate.js.map +1 -0
- package/dist/IO/Templates/CadTemplate.d.ts +25 -0
- package/dist/IO/Templates/CadTemplate.d.ts.map +1 -0
- package/dist/IO/Templates/CadTemplate.js +92 -0
- package/dist/IO/Templates/CadTemplate.js.map +1 -0
- package/dist/IO/Templates/CadTemplate[T].d.ts +7 -0
- package/dist/IO/Templates/CadTemplate[T].d.ts.map +1 -0
- package/dist/IO/Templates/CadTemplate[T].js +7 -0
- package/dist/IO/Templates/CadTemplate[T].js.map +1 -0
- package/dist/IO/Templates/CadTextEntityTemplate.d.ts +10 -0
- package/dist/IO/Templates/CadTextEntityTemplate.d.ts.map +1 -0
- package/dist/IO/Templates/CadTextEntityTemplate.js +17 -0
- package/dist/IO/Templates/CadTextEntityTemplate.js.map +1 -0
- package/dist/IO/Templates/CadToleranceTemplate.d.ts +10 -0
- package/dist/IO/Templates/CadToleranceTemplate.d.ts.map +1 -0
- package/dist/IO/Templates/CadToleranceTemplate.js +17 -0
- package/dist/IO/Templates/CadToleranceTemplate.js.map +1 -0
- package/dist/IO/Templates/CadUcsTemplate.d.ts +6 -0
- package/dist/IO/Templates/CadUcsTemplate.d.ts.map +1 -0
- package/dist/IO/Templates/CadUcsTemplate.js +8 -0
- package/dist/IO/Templates/CadUcsTemplate.js.map +1 -0
- package/dist/IO/Templates/CadUnderlayTemplate.d.ts +10 -0
- package/dist/IO/Templates/CadUnderlayTemplate.d.ts.map +1 -0
- package/dist/IO/Templates/CadUnderlayTemplate.js +20 -0
- package/dist/IO/Templates/CadUnderlayTemplate.js.map +1 -0
- package/dist/IO/Templates/CadUnknownEntityTemplate.d.ts +11 -0
- package/dist/IO/Templates/CadUnknownEntityTemplate.d.ts.map +1 -0
- package/dist/IO/Templates/CadUnknownEntityTemplate.js +13 -0
- package/dist/IO/Templates/CadUnknownEntityTemplate.js.map +1 -0
- package/dist/IO/Templates/CadVPortTemplate.d.ts +14 -0
- package/dist/IO/Templates/CadVPortTemplate.d.ts.map +1 -0
- package/dist/IO/Templates/CadVPortTemplate.js +33 -0
- package/dist/IO/Templates/CadVPortTemplate.js.map +1 -0
- package/dist/IO/Templates/CadValueTemplate.d.ts +10 -0
- package/dist/IO/Templates/CadValueTemplate.d.ts.map +1 -0
- package/dist/IO/Templates/CadValueTemplate.js +15 -0
- package/dist/IO/Templates/CadValueTemplate.js.map +1 -0
- package/dist/IO/Templates/CadVertexTemplate.d.ts +15 -0
- package/dist/IO/Templates/CadVertexTemplate.d.ts.map +1 -0
- package/dist/IO/Templates/CadVertexTemplate.js +39 -0
- package/dist/IO/Templates/CadVertexTemplate.js.map +1 -0
- package/dist/IO/Templates/CadViewTemplate.d.ts +11 -0
- package/dist/IO/Templates/CadViewTemplate.d.ts.map +1 -0
- package/dist/IO/Templates/CadViewTemplate.js +15 -0
- package/dist/IO/Templates/CadViewTemplate.js.map +1 -0
- package/dist/IO/Templates/CadViewportEntityControlTemplate.d.ts +8 -0
- package/dist/IO/Templates/CadViewportEntityControlTemplate.d.ts.map +1 -0
- package/dist/IO/Templates/CadViewportEntityControlTemplate.js +17 -0
- package/dist/IO/Templates/CadViewportEntityControlTemplate.js.map +1 -0
- package/dist/IO/Templates/CadViewportEntityHeaderTemplate.d.ts +7 -0
- package/dist/IO/Templates/CadViewportEntityHeaderTemplate.d.ts.map +1 -0
- package/dist/IO/Templates/CadViewportEntityHeaderTemplate.js +8 -0
- package/dist/IO/Templates/CadViewportEntityHeaderTemplate.js.map +1 -0
- package/dist/IO/Templates/CadViewportTemplate.d.ts +16 -0
- package/dist/IO/Templates/CadViewportTemplate.d.ts.map +1 -0
- package/dist/IO/Templates/CadViewportTemplate.js +42 -0
- package/dist/IO/Templates/CadViewportTemplate.js.map +1 -0
- package/dist/IO/Templates/CadWallTemplate.d.ts +12 -0
- package/dist/IO/Templates/CadWallTemplate.d.ts.map +1 -0
- package/dist/IO/Templates/CadWallTemplate.js +30 -0
- package/dist/IO/Templates/CadWallTemplate.js.map +1 -0
- package/dist/IO/Templates/CadWipeoutBaseTemplate.d.ts +10 -0
- package/dist/IO/Templates/CadWipeoutBaseTemplate.d.ts.map +1 -0
- package/dist/IO/Templates/CadWipeoutBaseTemplate.js +21 -0
- package/dist/IO/Templates/CadWipeoutBaseTemplate.js.map +1 -0
- package/dist/IO/Templates/CadXRecordTemplate.d.ts +10 -0
- package/dist/IO/Templates/CadXRecordTemplate.d.ts.map +1 -0
- package/dist/IO/Templates/CadXRecordTemplate.js +25 -0
- package/dist/IO/Templates/CadXRecordTemplate.js.map +1 -0
- package/dist/IO/Templates/ICadDictionaryTemplate.d.ts +6 -0
- package/dist/IO/Templates/ICadDictionaryTemplate.d.ts.map +1 -0
- package/dist/IO/Templates/ICadDictionaryTemplate.js +2 -0
- package/dist/IO/Templates/ICadDictionaryTemplate.js.map +1 -0
- package/dist/IO/Templates/ICadObjectTemplate.d.ts +6 -0
- package/dist/IO/Templates/ICadObjectTemplate.d.ts.map +1 -0
- package/dist/IO/Templates/ICadObjectTemplate.js +2 -0
- package/dist/IO/Templates/ICadObjectTemplate.js.map +1 -0
- package/dist/IO/Templates/ICadOwnerTemplate.d.ts +5 -0
- package/dist/IO/Templates/ICadOwnerTemplate.d.ts.map +1 -0
- package/dist/IO/Templates/ICadOwnerTemplate.js +2 -0
- package/dist/IO/Templates/ICadOwnerTemplate.js.map +1 -0
- package/dist/IO/Templates/ICadTableEntryTemplate.d.ts +6 -0
- package/dist/IO/Templates/ICadTableEntryTemplate.d.ts.map +1 -0
- package/dist/IO/Templates/ICadTableEntryTemplate.js +2 -0
- package/dist/IO/Templates/ICadTableEntryTemplate.js.map +1 -0
- package/dist/IO/Templates/ICadTableTemplate.d.ts +5 -0
- package/dist/IO/Templates/ICadTableTemplate.d.ts.map +1 -0
- package/dist/IO/Templates/ICadTableTemplate.js +2 -0
- package/dist/IO/Templates/ICadTableTemplate.js.map +1 -0
- package/dist/IO/Templates/ICadTemplate.d.ts +5 -0
- package/dist/IO/Templates/ICadTemplate.d.ts.map +1 -0
- package/dist/IO/Templates/ICadTemplate.js +2 -0
- package/dist/IO/Templates/ICadTemplate.js.map +1 -0
- package/dist/IObservableCadCollection.d.ts +7 -0
- package/dist/IObservableCadCollection.d.ts.map +1 -0
- package/dist/IObservableCadCollection.js +2 -0
- package/dist/IObservableCadCollection.js.map +1 -0
- package/dist/IProxy.d.ts +11 -0
- package/dist/IProxy.d.ts.map +1 -0
- package/dist/IProxy.js +2 -0
- package/dist/IProxy.js.map +1 -0
- package/dist/ISeqendColleciton.d.ts +8 -0
- package/dist/ISeqendColleciton.d.ts.map +1 -0
- package/dist/ISeqendColleciton.js +2 -0
- package/dist/ISeqendColleciton.js.map +1 -0
- package/dist/LineSpacingStyle.d.ts +5 -0
- package/dist/LineSpacingStyle.d.ts.map +1 -0
- package/dist/LineSpacingStyle.js +6 -0
- package/dist/LineSpacingStyle.js.map +1 -0
- package/dist/Math/BoundingBox.d.ts +20 -0
- package/dist/Math/BoundingBox.d.ts.map +1 -0
- package/dist/Math/BoundingBox.js +34 -0
- package/dist/Math/BoundingBox.js.map +1 -0
- package/dist/Math/IVector.d.ts +4 -0
- package/dist/Math/IVector.d.ts.map +1 -0
- package/dist/Math/IVector.js +2 -0
- package/dist/Math/IVector.js.map +1 -0
- package/dist/Math/MathHelper.d.ts +14 -0
- package/dist/Math/MathHelper.d.ts.map +1 -0
- package/dist/Math/MathHelper.js +28 -0
- package/dist/Math/MathHelper.js.map +1 -0
- package/dist/Math/Matrix4.d.ts +55 -0
- package/dist/Math/Matrix4.d.ts.map +1 -0
- package/dist/Math/Matrix4.js +77 -0
- package/dist/Math/Matrix4.js.map +1 -0
- package/dist/Math/Transform.d.ts +21 -0
- package/dist/Math/Transform.d.ts.map +1 -0
- package/dist/Math/Transform.js +66 -0
- package/dist/Math/Transform.js.map +1 -0
- package/dist/Math/XY.d.ts +28 -0
- package/dist/Math/XY.d.ts.map +1 -0
- package/dist/Math/XY.js +54 -0
- package/dist/Math/XY.js.map +1 -0
- package/dist/Math/XYZ.d.ts +34 -0
- package/dist/Math/XYZ.d.ts.map +1 -0
- package/dist/Math/XYZ.js +57 -0
- package/dist/Math/XYZ.js.map +1 -0
- package/dist/Math/index.d.ts +8 -0
- package/dist/Math/index.d.ts.map +1 -0
- package/dist/Math/index.js +7 -0
- package/dist/Math/index.js.map +1 -0
- package/dist/MultiLeaderPathType.d.ts +6 -0
- package/dist/MultiLeaderPathType.d.ts.map +1 -0
- package/dist/MultiLeaderPathType.js +7 -0
- package/dist/MultiLeaderPathType.js.map +1 -0
- package/dist/Objects/AEC/AecBinRecord.d.ts +10 -0
- package/dist/Objects/AEC/AecBinRecord.d.ts.map +1 -0
- package/dist/Objects/AEC/AecBinRecord.js +12 -0
- package/dist/Objects/AEC/AecBinRecord.js.map +1 -0
- package/dist/Objects/AEC/AecCleanupGroup.d.ts +12 -0
- package/dist/Objects/AEC/AecCleanupGroup.d.ts.map +1 -0
- package/dist/Objects/AEC/AecCleanupGroup.js +16 -0
- package/dist/Objects/AEC/AecCleanupGroup.js.map +1 -0
- package/dist/Objects/AEC/AecWallStyle.d.ts +12 -0
- package/dist/Objects/AEC/AecWallStyle.d.ts.map +1 -0
- package/dist/Objects/AEC/AecWallStyle.js +16 -0
- package/dist/Objects/AEC/AecWallStyle.js.map +1 -0
- package/dist/Objects/AcdbPlaceHolder.d.ts +8 -0
- package/dist/Objects/AcdbPlaceHolder.d.ts.map +1 -0
- package/dist/Objects/AcdbPlaceHolder.js +16 -0
- package/dist/Objects/AcdbPlaceHolder.js.map +1 -0
- package/dist/Objects/AnnotScaleObjectContextData.d.ts +11 -0
- package/dist/Objects/AnnotScaleObjectContextData.d.ts.map +1 -0
- package/dist/Objects/AnnotScaleObjectContextData.js +28 -0
- package/dist/Objects/AnnotScaleObjectContextData.js.map +1 -0
- package/dist/Objects/AssociativityFlags.d.ts +8 -0
- package/dist/Objects/AssociativityFlags.d.ts.map +1 -0
- package/dist/Objects/AssociativityFlags.js +9 -0
- package/dist/Objects/AssociativityFlags.js.map +1 -0
- package/dist/Objects/AutoTransformMethodFlags.d.ts +7 -0
- package/dist/Objects/AutoTransformMethodFlags.d.ts.map +1 -0
- package/dist/Objects/AutoTransformMethodFlags.js +8 -0
- package/dist/Objects/AutoTransformMethodFlags.js.map +1 -0
- package/dist/Objects/BlockReferenceObjectContextData.d.ts +17 -0
- package/dist/Objects/BlockReferenceObjectContextData.d.ts.map +1 -0
- package/dist/Objects/BlockReferenceObjectContextData.js +32 -0
- package/dist/Objects/BlockReferenceObjectContextData.js.map +1 -0
- package/dist/Objects/BlockRepresentationData.d.ts +8 -0
- package/dist/Objects/BlockRepresentationData.d.ts.map +1 -0
- package/dist/Objects/BlockRepresentationData.js +14 -0
- package/dist/Objects/BlockRepresentationData.js.map +1 -0
- package/dist/Objects/BookColor.d.ts +13 -0
- package/dist/Objects/BookColor.d.ts.map +1 -0
- package/dist/Objects/BookColor.js +38 -0
- package/dist/Objects/BookColor.js.map +1 -0
- package/dist/Objects/CadDictionary.d.ts +50 -0
- package/dist/Objects/CadDictionary.d.ts.map +1 -0
- package/dist/Objects/CadDictionary.js +118 -0
- package/dist/Objects/CadDictionary.js.map +1 -0
- package/dist/Objects/CadDictionaryWithDefault.d.ts +11 -0
- package/dist/Objects/CadDictionaryWithDefault.d.ts.map +1 -0
- package/dist/Objects/CadDictionaryWithDefault.js +23 -0
- package/dist/Objects/CadDictionaryWithDefault.js.map +1 -0
- package/dist/Objects/Collections/ColorCollection.d.ts +7 -0
- package/dist/Objects/Collections/ColorCollection.d.ts.map +1 -0
- package/dist/Objects/Collections/ColorCollection.js +7 -0
- package/dist/Objects/Collections/ColorCollection.js.map +1 -0
- package/dist/Objects/Collections/DictionaryVariableCollection.d.ts +11 -0
- package/dist/Objects/Collections/DictionaryVariableCollection.d.ts.map +1 -0
- package/dist/Objects/Collections/DictionaryVariableCollection.js +37 -0
- package/dist/Objects/Collections/DictionaryVariableCollection.js.map +1 -0
- package/dist/Objects/Collections/GroupCollection.d.ts +9 -0
- package/dist/Objects/Collections/GroupCollection.d.ts.map +1 -0
- package/dist/Objects/Collections/GroupCollection.js +20 -0
- package/dist/Objects/Collections/GroupCollection.js.map +1 -0
- package/dist/Objects/Collections/ImageDefinitionCollection.d.ts +7 -0
- package/dist/Objects/Collections/ImageDefinitionCollection.d.ts.map +1 -0
- package/dist/Objects/Collections/ImageDefinitionCollection.js +7 -0
- package/dist/Objects/Collections/ImageDefinitionCollection.js.map +1 -0
- package/dist/Objects/Collections/LayoutCollection.d.ts +8 -0
- package/dist/Objects/Collections/LayoutCollection.d.ts.map +1 -0
- package/dist/Objects/Collections/LayoutCollection.js +16 -0
- package/dist/Objects/Collections/LayoutCollection.js.map +1 -0
- package/dist/Objects/Collections/MLeaderStyleCollection.d.ts +8 -0
- package/dist/Objects/Collections/MLeaderStyleCollection.d.ts.map +1 -0
- package/dist/Objects/Collections/MLeaderStyleCollection.js +11 -0
- package/dist/Objects/Collections/MLeaderStyleCollection.js.map +1 -0
- package/dist/Objects/Collections/MLineStyleCollection.d.ts +8 -0
- package/dist/Objects/Collections/MLineStyleCollection.d.ts.map +1 -0
- package/dist/Objects/Collections/MLineStyleCollection.js +11 -0
- package/dist/Objects/Collections/MLineStyleCollection.js.map +1 -0
- package/dist/Objects/Collections/MaterialCollection.d.ts +8 -0
- package/dist/Objects/Collections/MaterialCollection.d.ts.map +1 -0
- package/dist/Objects/Collections/MaterialCollection.js +13 -0
- package/dist/Objects/Collections/MaterialCollection.js.map +1 -0
- package/dist/Objects/Collections/ObjectDictionaryCollection.d.ts +19 -0
- package/dist/Objects/Collections/ObjectDictionaryCollection.d.ts.map +1 -0
- package/dist/Objects/Collections/ObjectDictionaryCollection.js +46 -0
- package/dist/Objects/Collections/ObjectDictionaryCollection.js.map +1 -0
- package/dist/Objects/Collections/PdfDefinitionCollection.d.ts +7 -0
- package/dist/Objects/Collections/PdfDefinitionCollection.d.ts.map +1 -0
- package/dist/Objects/Collections/PdfDefinitionCollection.js +7 -0
- package/dist/Objects/Collections/PdfDefinitionCollection.js.map +1 -0
- package/dist/Objects/Collections/ScaleCollection.d.ts +8 -0
- package/dist/Objects/Collections/ScaleCollection.d.ts.map +1 -0
- package/dist/Objects/Collections/ScaleCollection.js +37 -0
- package/dist/Objects/Collections/ScaleCollection.js.map +1 -0
- package/dist/Objects/Collections/TableStyleCollection.d.ts +8 -0
- package/dist/Objects/Collections/TableStyleCollection.d.ts.map +1 -0
- package/dist/Objects/Collections/TableStyleCollection.js +11 -0
- package/dist/Objects/Collections/TableStyleCollection.js.map +1 -0
- package/dist/Objects/ColorMethod.d.ts +5 -0
- package/dist/Objects/ColorMethod.d.ts.map +1 -0
- package/dist/Objects/ColorMethod.js +6 -0
- package/dist/Objects/ColorMethod.js.map +1 -0
- package/dist/Objects/DesignCoordinatesType.d.ts +7 -0
- package/dist/Objects/DesignCoordinatesType.d.ts.map +1 -0
- package/dist/Objects/DesignCoordinatesType.js +8 -0
- package/dist/Objects/DesignCoordinatesType.js.map +1 -0
- package/dist/Objects/DictionaryCloningFlags.d.ts +9 -0
- package/dist/Objects/DictionaryCloningFlags.d.ts.map +1 -0
- package/dist/Objects/DictionaryCloningFlags.js +10 -0
- package/dist/Objects/DictionaryCloningFlags.js.map +1 -0
- package/dist/Objects/DictionaryVariable.d.ts +15 -0
- package/dist/Objects/DictionaryVariable.d.ts.map +1 -0
- package/dist/Objects/DictionaryVariable.js +28 -0
- package/dist/Objects/DictionaryVariable.js.map +1 -0
- package/dist/Objects/DimensionAssociation.d.ts +37 -0
- package/dist/Objects/DimensionAssociation.d.ts.map +1 -0
- package/dist/Objects/DimensionAssociation.js +44 -0
- package/dist/Objects/DimensionAssociation.js.map +1 -0
- package/dist/Objects/EdgeStyleModel.d.ts +6 -0
- package/dist/Objects/EdgeStyleModel.d.ts.map +1 -0
- package/dist/Objects/EdgeStyleModel.js +7 -0
- package/dist/Objects/EdgeStyleModel.js.map +1 -0
- package/dist/Objects/EvaluationOptionFlags.d.ts +10 -0
- package/dist/Objects/EvaluationOptionFlags.d.ts.map +1 -0
- package/dist/Objects/EvaluationOptionFlags.js +11 -0
- package/dist/Objects/EvaluationOptionFlags.js.map +1 -0
- package/dist/Objects/EvaluationStatusFlags.d.ts +10 -0
- package/dist/Objects/EvaluationStatusFlags.d.ts.map +1 -0
- package/dist/Objects/EvaluationStatusFlags.js +11 -0
- package/dist/Objects/EvaluationStatusFlags.js.map +1 -0
- package/dist/Objects/Evaluations/Block1PtParameter.d.ts +10 -0
- package/dist/Objects/Evaluations/Block1PtParameter.d.ts.map +1 -0
- package/dist/Objects/Evaluations/Block1PtParameter.js +11 -0
- package/dist/Objects/Evaluations/Block1PtParameter.js.map +1 -0
- package/dist/Objects/Evaluations/Block2PtParameter.d.ts +18 -0
- package/dist/Objects/Evaluations/Block2PtParameter.d.ts.map +1 -0
- package/dist/Objects/Evaluations/Block2PtParameter.js +19 -0
- package/dist/Objects/Evaluations/Block2PtParameter.js.map +1 -0
- package/dist/Objects/Evaluations/BlockAction.d.ts +9 -0
- package/dist/Objects/Evaluations/BlockAction.d.ts.map +1 -0
- package/dist/Objects/Evaluations/BlockAction.js +10 -0
- package/dist/Objects/Evaluations/BlockAction.js.map +1 -0
- package/dist/Objects/Evaluations/BlockActionBasePt.d.ts +13 -0
- package/dist/Objects/Evaluations/BlockActionBasePt.d.ts.map +1 -0
- package/dist/Objects/Evaluations/BlockActionBasePt.js +14 -0
- package/dist/Objects/Evaluations/BlockActionBasePt.js.map +1 -0
- package/dist/Objects/Evaluations/BlockBasePointParameter.d.ts +9 -0
- package/dist/Objects/Evaluations/BlockBasePointParameter.d.ts.map +1 -0
- package/dist/Objects/Evaluations/BlockBasePointParameter.js +11 -0
- package/dist/Objects/Evaluations/BlockBasePointParameter.js.map +1 -0
- package/dist/Objects/Evaluations/BlockElement.d.ts +7 -0
- package/dist/Objects/Evaluations/BlockElement.d.ts.map +1 -0
- package/dist/Objects/Evaluations/BlockElement.js +8 -0
- package/dist/Objects/Evaluations/BlockElement.js.map +1 -0
- package/dist/Objects/Evaluations/BlockFlipAction.d.ts +14 -0
- package/dist/Objects/Evaluations/BlockFlipAction.d.ts.map +1 -0
- package/dist/Objects/Evaluations/BlockFlipAction.js +16 -0
- package/dist/Objects/Evaluations/BlockFlipAction.js.map +1 -0
- package/dist/Objects/Evaluations/BlockFlipGrip.d.ts +9 -0
- package/dist/Objects/Evaluations/BlockFlipGrip.d.ts.map +1 -0
- package/dist/Objects/Evaluations/BlockFlipGrip.js +10 -0
- package/dist/Objects/Evaluations/BlockFlipGrip.js.map +1 -0
- package/dist/Objects/Evaluations/BlockFlipParameter.d.ts +16 -0
- package/dist/Objects/Evaluations/BlockFlipParameter.d.ts.map +1 -0
- package/dist/Objects/Evaluations/BlockFlipParameter.js +18 -0
- package/dist/Objects/Evaluations/BlockFlipParameter.js.map +1 -0
- package/dist/Objects/Evaluations/BlockGrip.d.ts +11 -0
- package/dist/Objects/Evaluations/BlockGrip.d.ts.map +1 -0
- package/dist/Objects/Evaluations/BlockGrip.js +12 -0
- package/dist/Objects/Evaluations/BlockGrip.js.map +1 -0
- package/dist/Objects/Evaluations/BlockGripExpression.d.ts +8 -0
- package/dist/Objects/Evaluations/BlockGripExpression.d.ts.map +1 -0
- package/dist/Objects/Evaluations/BlockGripExpression.js +10 -0
- package/dist/Objects/Evaluations/BlockGripExpression.js.map +1 -0
- package/dist/Objects/Evaluations/BlockLinearParameter.d.ts +11 -0
- package/dist/Objects/Evaluations/BlockLinearParameter.d.ts.map +1 -0
- package/dist/Objects/Evaluations/BlockLinearParameter.js +13 -0
- package/dist/Objects/Evaluations/BlockLinearParameter.js.map +1 -0
- package/dist/Objects/Evaluations/BlockParameter.d.ts +7 -0
- package/dist/Objects/Evaluations/BlockParameter.d.ts.map +1 -0
- package/dist/Objects/Evaluations/BlockParameter.js +8 -0
- package/dist/Objects/Evaluations/BlockParameter.js.map +1 -0
- package/dist/Objects/Evaluations/BlockRotationAction.d.ts +7 -0
- package/dist/Objects/Evaluations/BlockRotationAction.d.ts.map +1 -0
- package/dist/Objects/Evaluations/BlockRotationAction.js +8 -0
- package/dist/Objects/Evaluations/BlockRotationAction.js.map +1 -0
- package/dist/Objects/Evaluations/BlockRotationGrip.d.ts +6 -0
- package/dist/Objects/Evaluations/BlockRotationGrip.d.ts.map +1 -0
- package/dist/Objects/Evaluations/BlockRotationGrip.js +8 -0
- package/dist/Objects/Evaluations/BlockRotationGrip.js.map +1 -0
- package/dist/Objects/Evaluations/BlockRotationParameter.d.ts +17 -0
- package/dist/Objects/Evaluations/BlockRotationParameter.d.ts.map +1 -0
- package/dist/Objects/Evaluations/BlockRotationParameter.js +19 -0
- package/dist/Objects/Evaluations/BlockRotationParameter.js.map +1 -0
- package/dist/Objects/Evaluations/BlockVisibilityGrip.d.ts +6 -0
- package/dist/Objects/Evaluations/BlockVisibilityGrip.d.ts.map +1 -0
- package/dist/Objects/Evaluations/BlockVisibilityGrip.js +8 -0
- package/dist/Objects/Evaluations/BlockVisibilityGrip.js.map +1 -0
- package/dist/Objects/Evaluations/BlockVisibilityParameter.d.ts +22 -0
- package/dist/Objects/Evaluations/BlockVisibilityParameter.d.ts.map +1 -0
- package/dist/Objects/Evaluations/BlockVisibilityParameter.js +41 -0
- package/dist/Objects/Evaluations/BlockVisibilityParameter.js.map +1 -0
- package/dist/Objects/Evaluations/EvaluationExpression.d.ts +10 -0
- package/dist/Objects/Evaluations/EvaluationExpression.d.ts.map +1 -0
- package/dist/Objects/Evaluations/EvaluationExpression.js +11 -0
- package/dist/Objects/Evaluations/EvaluationExpression.js.map +1 -0
- package/dist/Objects/Evaluations/EvaluationGraph.d.ts +30 -0
- package/dist/Objects/Evaluations/EvaluationGraph.d.ts.map +1 -0
- package/dist/Objects/Evaluations/EvaluationGraph.js +46 -0
- package/dist/Objects/Evaluations/EvaluationGraph.js.map +1 -0
- package/dist/Objects/FaceColorMode.d.ts +10 -0
- package/dist/Objects/FaceColorMode.d.ts.map +1 -0
- package/dist/Objects/FaceColorMode.js +11 -0
- package/dist/Objects/FaceColorMode.js.map +1 -0
- package/dist/Objects/FaceLightingModelType.d.ts +7 -0
- package/dist/Objects/FaceLightingModelType.d.ts.map +1 -0
- package/dist/Objects/FaceLightingModelType.js +8 -0
- package/dist/Objects/FaceLightingModelType.js.map +1 -0
- package/dist/Objects/FaceLightingQualityType.d.ts +6 -0
- package/dist/Objects/FaceLightingQualityType.d.ts.map +1 -0
- package/dist/Objects/FaceLightingQualityType.js +7 -0
- package/dist/Objects/FaceLightingQualityType.js.map +1 -0
- package/dist/Objects/FaceModifierType.d.ts +6 -0
- package/dist/Objects/FaceModifierType.d.ts.map +1 -0
- package/dist/Objects/FaceModifierType.js +7 -0
- package/dist/Objects/FaceModifierType.js.map +1 -0
- package/dist/Objects/Field.d.ts +29 -0
- package/dist/Objects/Field.d.ts.map +1 -0
- package/dist/Objects/Field.js +34 -0
- package/dist/Objects/Field.js.map +1 -0
- package/dist/Objects/FieldList.d.ts +12 -0
- package/dist/Objects/FieldList.d.ts.map +1 -0
- package/dist/Objects/FieldList.js +22 -0
- package/dist/Objects/FieldList.js.map +1 -0
- package/dist/Objects/FieldStateFlags.d.ts +9 -0
- package/dist/Objects/FieldStateFlags.d.ts.map +1 -0
- package/dist/Objects/FieldStateFlags.js +10 -0
- package/dist/Objects/FieldStateFlags.js.map +1 -0
- package/dist/Objects/FilingOptionFlags.d.ts +5 -0
- package/dist/Objects/FilingOptionFlags.d.ts.map +1 -0
- package/dist/Objects/FilingOptionFlags.js +6 -0
- package/dist/Objects/FilingOptionFlags.js.map +1 -0
- package/dist/Objects/Filter.d.ts +9 -0
- package/dist/Objects/Filter.d.ts.map +1 -0
- package/dist/Objects/Filter.js +16 -0
- package/dist/Objects/Filter.js.map +1 -0
- package/dist/Objects/FormattedTableData.d.ts +2 -0
- package/dist/Objects/FormattedTableData.d.ts.map +1 -0
- package/dist/Objects/FormattedTableData.js +2 -0
- package/dist/Objects/FormattedTableData.js.map +1 -0
- package/dist/Objects/GeoData.d.ts +49 -0
- package/dist/Objects/GeoData.d.ts.map +1 -0
- package/dist/Objects/GeoData.js +53 -0
- package/dist/Objects/GeoData.js.map +1 -0
- package/dist/Objects/GeoDataVersion.d.ts +6 -0
- package/dist/Objects/GeoDataVersion.d.ts.map +1 -0
- package/dist/Objects/GeoDataVersion.js +7 -0
- package/dist/Objects/GeoDataVersion.js.map +1 -0
- package/dist/Objects/Group.d.ts +21 -0
- package/dist/Objects/Group.d.ts.map +1 -0
- package/dist/Objects/Group.js +58 -0
- package/dist/Objects/Group.js.map +1 -0
- package/dist/Objects/ImageDefinition.d.ts +17 -0
- package/dist/Objects/ImageDefinition.d.ts.map +1 -0
- package/dist/Objects/ImageDefinition.js +25 -0
- package/dist/Objects/ImageDefinition.js.map +1 -0
- package/dist/Objects/ImageDefinitionReactor.d.ts +10 -0
- package/dist/Objects/ImageDefinitionReactor.d.ts.map +1 -0
- package/dist/Objects/ImageDefinitionReactor.js +18 -0
- package/dist/Objects/ImageDefinitionReactor.js.map +1 -0
- package/dist/Objects/ImageDisplayQuality.d.ts +5 -0
- package/dist/Objects/ImageDisplayQuality.d.ts.map +1 -0
- package/dist/Objects/ImageDisplayQuality.js +6 -0
- package/dist/Objects/ImageDisplayQuality.js.map +1 -0
- package/dist/Objects/Layout.d.ts +42 -0
- package/dist/Objects/Layout.d.ts.map +1 -0
- package/dist/Objects/Layout.js +78 -0
- package/dist/Objects/Layout.js.map +1 -0
- package/dist/Objects/LayoutFlags.d.ts +6 -0
- package/dist/Objects/LayoutFlags.d.ts.map +1 -0
- package/dist/Objects/LayoutFlags.js +7 -0
- package/dist/Objects/LayoutFlags.js.map +1 -0
- package/dist/Objects/LeaderContentType.d.ts +7 -0
- package/dist/Objects/LeaderContentType.d.ts.map +1 -0
- package/dist/Objects/LeaderContentType.js +8 -0
- package/dist/Objects/LeaderContentType.js.map +1 -0
- package/dist/Objects/LeaderDrawOrderType.d.ts +5 -0
- package/dist/Objects/LeaderDrawOrderType.d.ts.map +1 -0
- package/dist/Objects/LeaderDrawOrderType.js +6 -0
- package/dist/Objects/LeaderDrawOrderType.js.map +1 -0
- package/dist/Objects/LeaderLinePropertOverrideFlags.d.ts +10 -0
- package/dist/Objects/LeaderLinePropertOverrideFlags.d.ts.map +1 -0
- package/dist/Objects/LeaderLinePropertOverrideFlags.js +11 -0
- package/dist/Objects/LeaderLinePropertOverrideFlags.js.map +1 -0
- package/dist/Objects/LinkedData.d.ts +16 -0
- package/dist/Objects/LinkedData.d.ts.map +1 -0
- package/dist/Objects/LinkedData.js +23 -0
- package/dist/Objects/LinkedData.js.map +1 -0
- package/dist/Objects/MLineStyle.d.ts +35 -0
- package/dist/Objects/MLineStyle.d.ts.map +1 -0
- package/dist/Objects/MLineStyle.js +79 -0
- package/dist/Objects/MLineStyle.js.map +1 -0
- package/dist/Objects/MLineStyleFlags.d.ts +12 -0
- package/dist/Objects/MLineStyleFlags.d.ts.map +1 -0
- package/dist/Objects/MLineStyleFlags.js +13 -0
- package/dist/Objects/MLineStyleFlags.js.map +1 -0
- package/dist/Objects/MTextAttributeObjectContextData.d.ts +12 -0
- package/dist/Objects/MTextAttributeObjectContextData.d.ts.map +1 -0
- package/dist/Objects/MTextAttributeObjectContextData.js +15 -0
- package/dist/Objects/MTextAttributeObjectContextData.js.map +1 -0
- package/dist/Objects/MapSource.d.ts +6 -0
- package/dist/Objects/MapSource.d.ts.map +1 -0
- package/dist/Objects/MapSource.js +7 -0
- package/dist/Objects/MapSource.js.map +1 -0
- package/dist/Objects/Material.d.ts +88 -0
- package/dist/Objects/Material.d.ts.map +1 -0
- package/dist/Objects/Material.js +104 -0
- package/dist/Objects/Material.js.map +1 -0
- package/dist/Objects/MultiLeaderDrawOrderType.d.ts +5 -0
- package/dist/Objects/MultiLeaderDrawOrderType.d.ts.map +1 -0
- package/dist/Objects/MultiLeaderDrawOrderType.js +6 -0
- package/dist/Objects/MultiLeaderDrawOrderType.js.map +1 -0
- package/dist/Objects/MultiLeaderObjectContextData.d.ts +105 -0
- package/dist/Objects/MultiLeaderObjectContextData.d.ts.map +1 -0
- package/dist/Objects/MultiLeaderObjectContextData.js +152 -0
- package/dist/Objects/MultiLeaderObjectContextData.js.map +1 -0
- package/dist/Objects/MultiLeaderStyle.d.ts +79 -0
- package/dist/Objects/MultiLeaderStyle.d.ts.map +1 -0
- package/dist/Objects/MultiLeaderStyle.js +94 -0
- package/dist/Objects/MultiLeaderStyle.js.map +1 -0
- package/dist/Objects/NonGraphicalObject.d.ts +16 -0
- package/dist/Objects/NonGraphicalObject.d.ts.map +1 -0
- package/dist/Objects/NonGraphicalObject.js +34 -0
- package/dist/Objects/NonGraphicalObject.js.map +1 -0
- package/dist/Objects/ObjectContextData.d.ts +8 -0
- package/dist/Objects/ObjectContextData.d.ts.map +1 -0
- package/dist/Objects/ObjectContextData.js +11 -0
- package/dist/Objects/ObjectContextData.js.map +1 -0
- package/dist/Objects/ObjectOsnapType.d.ts +17 -0
- package/dist/Objects/ObjectOsnapType.d.ts.map +1 -0
- package/dist/Objects/ObjectOsnapType.js +18 -0
- package/dist/Objects/ObjectOsnapType.js.map +1 -0
- package/dist/Objects/PaperMargin.d.ts +11 -0
- package/dist/Objects/PaperMargin.d.ts.map +1 -0
- package/dist/Objects/PaperMargin.js +16 -0
- package/dist/Objects/PaperMargin.js.map +1 -0
- package/dist/Objects/PdfUnderlayDefinition.d.ts +8 -0
- package/dist/Objects/PdfUnderlayDefinition.d.ts.map +1 -0
- package/dist/Objects/PdfUnderlayDefinition.js +11 -0
- package/dist/Objects/PdfUnderlayDefinition.js.map +1 -0
- package/dist/Objects/PlotFlags.d.ts +18 -0
- package/dist/Objects/PlotFlags.d.ts.map +1 -0
- package/dist/Objects/PlotFlags.js +19 -0
- package/dist/Objects/PlotFlags.js.map +1 -0
- package/dist/Objects/PlotPaperUnits.d.ts +6 -0
- package/dist/Objects/PlotPaperUnits.d.ts.map +1 -0
- package/dist/Objects/PlotPaperUnits.js +7 -0
- package/dist/Objects/PlotPaperUnits.js.map +1 -0
- package/dist/Objects/PlotRotation.d.ts +7 -0
- package/dist/Objects/PlotRotation.d.ts.map +1 -0
- package/dist/Objects/PlotRotation.js +8 -0
- package/dist/Objects/PlotRotation.js.map +1 -0
- package/dist/Objects/PlotSettings.d.ts +70 -0
- package/dist/Objects/PlotSettings.d.ts.map +1 -0
- package/dist/Objects/PlotSettings.js +99 -0
- package/dist/Objects/PlotSettings.js.map +1 -0
- package/dist/Objects/ProjectionMethod.d.ts +8 -0
- package/dist/Objects/ProjectionMethod.d.ts.map +1 -0
- package/dist/Objects/ProjectionMethod.js +9 -0
- package/dist/Objects/ProjectionMethod.js.map +1 -0
- package/dist/Objects/ProxyObject.d.ts +16 -0
- package/dist/Objects/ProxyObject.d.ts.map +1 -0
- package/dist/Objects/ProxyObject.js +26 -0
- package/dist/Objects/ProxyObject.js.map +1 -0
- package/dist/Objects/RasterVariables.d.ts +12 -0
- package/dist/Objects/RasterVariables.d.ts.map +1 -0
- package/dist/Objects/RasterVariables.js +18 -0
- package/dist/Objects/RasterVariables.js.map +1 -0
- package/dist/Objects/ResolutionUnit.d.ts +6 -0
- package/dist/Objects/ResolutionUnit.d.ts.map +1 -0
- package/dist/Objects/ResolutionUnit.js +7 -0
- package/dist/Objects/ResolutionUnit.js.map +1 -0
- package/dist/Objects/RotatedDimensionType.d.ts +6 -0
- package/dist/Objects/RotatedDimensionType.d.ts.map +1 -0
- package/dist/Objects/RotatedDimensionType.js +7 -0
- package/dist/Objects/RotatedDimensionType.js.map +1 -0
- package/dist/Objects/Scale.d.ts +16 -0
- package/dist/Objects/Scale.d.ts.map +1 -0
- package/dist/Objects/Scale.js +37 -0
- package/dist/Objects/Scale.js.map +1 -0
- package/dist/Objects/ScaleEstimationType.d.ts +7 -0
- package/dist/Objects/ScaleEstimationType.d.ts.map +1 -0
- package/dist/Objects/ScaleEstimationType.js +8 -0
- package/dist/Objects/ScaleEstimationType.js.map +1 -0
- package/dist/Objects/ShadePlotMode.d.ts +7 -0
- package/dist/Objects/ShadePlotMode.d.ts.map +1 -0
- package/dist/Objects/ShadePlotMode.js +8 -0
- package/dist/Objects/ShadePlotMode.js.map +1 -0
- package/dist/Objects/ShadePlotResolutionMode.d.ts +9 -0
- package/dist/Objects/ShadePlotResolutionMode.d.ts.map +1 -0
- package/dist/Objects/ShadePlotResolutionMode.js +10 -0
- package/dist/Objects/ShadePlotResolutionMode.js.map +1 -0
- package/dist/Objects/SortEntitiesTable.d.ts +26 -0
- package/dist/Objects/SortEntitiesTable.d.ts.map +1 -0
- package/dist/Objects/SortEntitiesTable.js +66 -0
- package/dist/Objects/SortEntitiesTable.js.map +1 -0
- package/dist/Objects/SpatialFilter.d.ts +23 -0
- package/dist/Objects/SpatialFilter.d.ts.map +1 -0
- package/dist/Objects/SpatialFilter.js +26 -0
- package/dist/Objects/SpatialFilter.js.map +1 -0
- package/dist/Objects/SubentType.d.ts +6 -0
- package/dist/Objects/SubentType.d.ts.map +1 -0
- package/dist/Objects/SubentType.js +7 -0
- package/dist/Objects/SubentType.js.map +1 -0
- package/dist/Objects/TableContent.d.ts +10 -0
- package/dist/Objects/TableContent.d.ts.map +1 -0
- package/dist/Objects/TableContent.js +12 -0
- package/dist/Objects/TableContent.js.map +1 -0
- package/dist/Objects/TableFlowDirectionType.d.ts +5 -0
- package/dist/Objects/TableFlowDirectionType.d.ts.map +1 -0
- package/dist/Objects/TableFlowDirectionType.js +6 -0
- package/dist/Objects/TableFlowDirectionType.js.map +1 -0
- package/dist/Objects/TableStyle.d.ts +25 -0
- package/dist/Objects/TableStyle.d.ts.map +1 -0
- package/dist/Objects/TableStyle.js +29 -0
- package/dist/Objects/TableStyle.js.map +1 -0
- package/dist/Objects/TilingMethod.d.ts +7 -0
- package/dist/Objects/TilingMethod.d.ts.map +1 -0
- package/dist/Objects/TilingMethod.js +8 -0
- package/dist/Objects/TilingMethod.js.map +1 -0
- package/dist/Objects/UnderlayDefinition.d.ts +8 -0
- package/dist/Objects/UnderlayDefinition.d.ts.map +1 -0
- package/dist/Objects/UnderlayDefinition.js +9 -0
- package/dist/Objects/UnderlayDefinition.js.map +1 -0
- package/dist/Objects/UnknownNonGraphicalObject.d.ts +10 -0
- package/dist/Objects/UnknownNonGraphicalObject.d.ts.map +1 -0
- package/dist/Objects/UnknownNonGraphicalObject.js +26 -0
- package/dist/Objects/UnknownNonGraphicalObject.js.map +1 -0
- package/dist/Objects/VisualStyle.d.ts +49 -0
- package/dist/Objects/VisualStyle.d.ts.map +1 -0
- package/dist/Objects/VisualStyle.js +51 -0
- package/dist/Objects/VisualStyle.js.map +1 -0
- package/dist/Objects/XRecrod.d.ts +26 -0
- package/dist/Objects/XRecrod.d.ts.map +1 -0
- package/dist/Objects/XRecrod.js +63 -0
- package/dist/Objects/XRecrod.js.map +1 -0
- package/dist/OnNameChangedArgs.d.ts +6 -0
- package/dist/OnNameChangedArgs.d.ts.map +1 -0
- package/dist/OnNameChangedArgs.js +9 -0
- package/dist/OnNameChangedArgs.js.map +1 -0
- package/dist/PropertyReflection.d.ts +14 -0
- package/dist/PropertyReflection.d.ts.map +1 -0
- package/dist/PropertyReflection.js +23 -0
- package/dist/PropertyReflection.js.map +1 -0
- package/dist/SeqendCollection.d.ts +17 -0
- package/dist/SeqendCollection.d.ts.map +1 -0
- package/dist/SeqendCollection.js +42 -0
- package/dist/SeqendCollection.js.map +1 -0
- package/dist/Tables/AppId.d.ts +13 -0
- package/dist/Tables/AppId.d.ts.map +1 -0
- package/dist/Tables/AppId.js +28 -0
- package/dist/Tables/AppId.js.map +1 -0
- package/dist/Tables/ArcLengthSymbolPosition.d.ts +6 -0
- package/dist/Tables/ArcLengthSymbolPosition.d.ts.map +1 -0
- package/dist/Tables/ArcLengthSymbolPosition.js +7 -0
- package/dist/Tables/ArcLengthSymbolPosition.js.map +1 -0
- package/dist/Tables/BlockContentConnectionType.d.ts +5 -0
- package/dist/Tables/BlockContentConnectionType.d.ts.map +1 -0
- package/dist/Tables/BlockContentConnectionType.js +6 -0
- package/dist/Tables/BlockContentConnectionType.js.map +1 -0
- package/dist/Tables/BlockRecord.d.ts +49 -0
- package/dist/Tables/BlockRecord.d.ts.map +1 -0
- package/dist/Tables/BlockRecord.js +134 -0
- package/dist/Tables/BlockRecord.js.map +1 -0
- package/dist/Tables/Collections/AppIdsTable.d.ts +11 -0
- package/dist/Tables/Collections/AppIdsTable.d.ts.map +1 -0
- package/dist/Tables/Collections/AppIdsTable.js +24 -0
- package/dist/Tables/Collections/AppIdsTable.js.map +1 -0
- package/dist/Tables/Collections/BlockRecordsTable.d.ts +12 -0
- package/dist/Tables/Collections/BlockRecordsTable.d.ts.map +1 -0
- package/dist/Tables/Collections/BlockRecordsTable.js +37 -0
- package/dist/Tables/Collections/BlockRecordsTable.js.map +1 -0
- package/dist/Tables/Collections/DimensionStylesTable.d.ts +11 -0
- package/dist/Tables/Collections/DimensionStylesTable.d.ts.map +1 -0
- package/dist/Tables/Collections/DimensionStylesTable.js +24 -0
- package/dist/Tables/Collections/DimensionStylesTable.js.map +1 -0
- package/dist/Tables/Collections/ITable.d.ts +3 -0
- package/dist/Tables/Collections/ITable.d.ts.map +1 -0
- package/dist/Tables/Collections/ITable.js +2 -0
- package/dist/Tables/Collections/ITable.js.map +1 -0
- package/dist/Tables/Collections/LayersTable.d.ts +11 -0
- package/dist/Tables/Collections/LayersTable.d.ts.map +1 -0
- package/dist/Tables/Collections/LayersTable.js +27 -0
- package/dist/Tables/Collections/LayersTable.js.map +1 -0
- package/dist/Tables/Collections/LineTypesTable.d.ts +14 -0
- package/dist/Tables/Collections/LineTypesTable.d.ts.map +1 -0
- package/dist/Tables/Collections/LineTypesTable.js +39 -0
- package/dist/Tables/Collections/LineTypesTable.js.map +1 -0
- package/dist/Tables/Collections/Table.d.ts +28 -0
- package/dist/Tables/Collections/Table.d.ts.map +1 -0
- package/dist/Tables/Collections/Table.js +115 -0
- package/dist/Tables/Collections/Table.js.map +1 -0
- package/dist/Tables/Collections/TextStylesTable.d.ts +11 -0
- package/dist/Tables/Collections/TextStylesTable.d.ts.map +1 -0
- package/dist/Tables/Collections/TextStylesTable.js +24 -0
- package/dist/Tables/Collections/TextStylesTable.js.map +1 -0
- package/dist/Tables/Collections/UCSTable.d.ts +10 -0
- package/dist/Tables/Collections/UCSTable.d.ts.map +1 -0
- package/dist/Tables/Collections/UCSTable.js +18 -0
- package/dist/Tables/Collections/UCSTable.js.map +1 -0
- package/dist/Tables/Collections/VPortsTable.d.ts +12 -0
- package/dist/Tables/Collections/VPortsTable.d.ts.map +1 -0
- package/dist/Tables/Collections/VPortsTable.js +32 -0
- package/dist/Tables/Collections/VPortsTable.js.map +1 -0
- package/dist/Tables/Collections/ViewportEntityControl.d.ts +9 -0
- package/dist/Tables/Collections/ViewportEntityControl.d.ts.map +1 -0
- package/dist/Tables/Collections/ViewportEntityControl.js +14 -0
- package/dist/Tables/Collections/ViewportEntityControl.js.map +1 -0
- package/dist/Tables/Collections/ViewsTable.d.ts +10 -0
- package/dist/Tables/Collections/ViewsTable.d.ts.map +1 -0
- package/dist/Tables/Collections/ViewsTable.js +18 -0
- package/dist/Tables/Collections/ViewsTable.js.map +1 -0
- package/dist/Tables/DefaultLightingType.d.ts +5 -0
- package/dist/Tables/DefaultLightingType.d.ts.map +1 -0
- package/dist/Tables/DefaultLightingType.js +6 -0
- package/dist/Tables/DefaultLightingType.js.map +1 -0
- package/dist/Tables/DimensionStyle.d.ts +154 -0
- package/dist/Tables/DimensionStyle.d.ts.map +1 -0
- package/dist/Tables/DimensionStyle.js +297 -0
- package/dist/Tables/DimensionStyle.js.map +1 -0
- package/dist/Tables/DimensionTextBackgroundFillMode.d.ts +6 -0
- package/dist/Tables/DimensionTextBackgroundFillMode.d.ts.map +1 -0
- package/dist/Tables/DimensionTextBackgroundFillMode.js +7 -0
- package/dist/Tables/DimensionTextBackgroundFillMode.js.map +1 -0
- package/dist/Tables/DimensionTextHorizontalAlignment.d.ts +8 -0
- package/dist/Tables/DimensionTextHorizontalAlignment.d.ts.map +1 -0
- package/dist/Tables/DimensionTextHorizontalAlignment.js +9 -0
- package/dist/Tables/DimensionTextHorizontalAlignment.js.map +1 -0
- package/dist/Tables/DimensionTextVerticalAlignment.d.ts +8 -0
- package/dist/Tables/DimensionTextVerticalAlignment.d.ts.map +1 -0
- package/dist/Tables/DimensionTextVerticalAlignment.js +9 -0
- package/dist/Tables/DimensionTextVerticalAlignment.js.map +1 -0
- package/dist/Tables/EntryFlags.d.ts +7 -0
- package/dist/Tables/EntryFlags.d.ts.map +1 -0
- package/dist/Tables/EntryFlags.js +8 -0
- package/dist/Tables/EntryFlags.js.map +1 -0
- package/dist/Tables/FontFlags.d.ts +6 -0
- package/dist/Tables/FontFlags.d.ts.map +1 -0
- package/dist/Tables/FontFlags.js +7 -0
- package/dist/Tables/FontFlags.js.map +1 -0
- package/dist/Tables/FractionFormat.d.ts +6 -0
- package/dist/Tables/FractionFormat.d.ts.map +1 -0
- package/dist/Tables/FractionFormat.js +7 -0
- package/dist/Tables/FractionFormat.js.map +1 -0
- package/dist/Tables/GridFlags.d.ts +8 -0
- package/dist/Tables/GridFlags.d.ts.map +1 -0
- package/dist/Tables/GridFlags.js +9 -0
- package/dist/Tables/GridFlags.js.map +1 -0
- package/dist/Tables/Layer.d.ts +36 -0
- package/dist/Tables/Layer.d.ts.map +1 -0
- package/dist/Tables/Layer.js +81 -0
- package/dist/Tables/Layer.js.map +1 -0
- package/dist/Tables/LayerFlags.d.ts +10 -0
- package/dist/Tables/LayerFlags.d.ts.map +1 -0
- package/dist/Tables/LayerFlags.js +11 -0
- package/dist/Tables/LayerFlags.js.map +1 -0
- package/dist/Tables/LineType.d.ts +43 -0
- package/dist/Tables/LineType.d.ts.map +1 -0
- package/dist/Tables/LineType.js +90 -0
- package/dist/Tables/LineType.js.map +1 -0
- package/dist/Tables/LinetypeShapeFlags.d.ts +7 -0
- package/dist/Tables/LinetypeShapeFlags.d.ts.map +1 -0
- package/dist/Tables/LinetypeShapeFlags.js +8 -0
- package/dist/Tables/LinetypeShapeFlags.js.map +1 -0
- package/dist/Tables/StandardFlags.d.ts +7 -0
- package/dist/Tables/StandardFlags.d.ts.map +1 -0
- package/dist/Tables/StandardFlags.js +8 -0
- package/dist/Tables/StandardFlags.js.map +1 -0
- package/dist/Tables/StyleFlags.d.ts +9 -0
- package/dist/Tables/StyleFlags.d.ts.map +1 -0
- package/dist/Tables/StyleFlags.js +10 -0
- package/dist/Tables/StyleFlags.js.map +1 -0
- package/dist/Tables/TableEntry.d.ts +17 -0
- package/dist/Tables/TableEntry.d.ts.map +1 -0
- package/dist/Tables/TableEntry.js +43 -0
- package/dist/Tables/TableEntry.js.map +1 -0
- package/dist/Tables/TextArrowFitType.d.ts +7 -0
- package/dist/Tables/TextArrowFitType.d.ts.map +1 -0
- package/dist/Tables/TextArrowFitType.js +8 -0
- package/dist/Tables/TextArrowFitType.js.map +1 -0
- package/dist/Tables/TextDirection.d.ts +5 -0
- package/dist/Tables/TextDirection.d.ts.map +1 -0
- package/dist/Tables/TextDirection.js +6 -0
- package/dist/Tables/TextDirection.js.map +1 -0
- package/dist/Tables/TextMovement.d.ts +6 -0
- package/dist/Tables/TextMovement.d.ts.map +1 -0
- package/dist/Tables/TextMovement.js +7 -0
- package/dist/Tables/TextMovement.js.map +1 -0
- package/dist/Tables/TextStyle.d.ts +30 -0
- package/dist/Tables/TextStyle.d.ts.map +1 -0
- package/dist/Tables/TextStyle.js +50 -0
- package/dist/Tables/TextStyle.js.map +1 -0
- package/dist/Tables/ToleranceAlignment.d.ts +6 -0
- package/dist/Tables/ToleranceAlignment.d.ts.map +1 -0
- package/dist/Tables/ToleranceAlignment.js +7 -0
- package/dist/Tables/ToleranceAlignment.js.map +1 -0
- package/dist/Tables/UCS.d.ts +18 -0
- package/dist/Tables/UCS.d.ts.map +1 -0
- package/dist/Tables/UCS.js +28 -0
- package/dist/Tables/UCS.js.map +1 -0
- package/dist/Tables/UscIconType.d.ts +7 -0
- package/dist/Tables/UscIconType.d.ts.map +1 -0
- package/dist/Tables/UscIconType.js +8 -0
- package/dist/Tables/UscIconType.js.map +1 -0
- package/dist/Tables/VPort.d.ts +66 -0
- package/dist/Tables/VPort.d.ts.map +1 -0
- package/dist/Tables/VPort.js +91 -0
- package/dist/Tables/VPort.js.map +1 -0
- package/dist/Tables/View.d.ts +37 -0
- package/dist/Tables/View.d.ts.map +1 -0
- package/dist/Tables/View.js +50 -0
- package/dist/Tables/View.js.map +1 -0
- package/dist/Tables/ViewModeType.d.ts +9 -0
- package/dist/Tables/ViewModeType.d.ts.map +1 -0
- package/dist/Tables/ViewModeType.js +10 -0
- package/dist/Tables/ViewModeType.js.map +1 -0
- package/dist/Tables/ViewportEntityHeader.d.ts +6 -0
- package/dist/Tables/ViewportEntityHeader.d.ts.map +1 -0
- package/dist/Tables/ViewportEntityHeader.js +8 -0
- package/dist/Tables/ViewportEntityHeader.js.map +1 -0
- package/dist/Tables/ZeroHandling.d.ts +16 -0
- package/dist/Tables/ZeroHandling.d.ts.map +1 -0
- package/dist/Tables/ZeroHandling.js +18 -0
- package/dist/Tables/ZeroHandling.js.map +1 -0
- package/dist/Text/TextProcessor.d.ts +16 -0
- package/dist/Text/TextProcessor.d.ts.map +1 -0
- package/dist/Text/TextProcessor.js +155 -0
- package/dist/Text/TextProcessor.js.map +1 -0
- package/dist/TextAlignmentType.d.ts +6 -0
- package/dist/TextAlignmentType.d.ts.map +1 -0
- package/dist/TextAlignmentType.js +7 -0
- package/dist/TextAlignmentType.js.map +1 -0
- package/dist/TextAngleType.d.ts +6 -0
- package/dist/TextAngleType.d.ts.map +1 -0
- package/dist/TextAngleType.js +7 -0
- package/dist/TextAngleType.js.map +1 -0
- package/dist/TextAttachmentDirectionType.d.ts +5 -0
- package/dist/TextAttachmentDirectionType.d.ts.map +1 -0
- package/dist/TextAttachmentDirectionType.js +6 -0
- package/dist/TextAttachmentDirectionType.js.map +1 -0
- package/dist/TextAttachmentPoint.d.ts +6 -0
- package/dist/TextAttachmentPoint.d.ts.map +1 -0
- package/dist/TextAttachmentPoint.js +7 -0
- package/dist/TextAttachmentPoint.js.map +1 -0
- package/dist/TextAttachmentType.d.ts +14 -0
- package/dist/TextAttachmentType.d.ts.map +1 -0
- package/dist/TextAttachmentType.js +15 -0
- package/dist/TextAttachmentType.js.map +1 -0
- package/dist/Transparency.d.ts +14 -0
- package/dist/Transparency.d.ts.map +1 -0
- package/dist/Transparency.js +50 -0
- package/dist/Transparency.js.map +1 -0
- package/dist/Types/DwgReferenceType.d.ts +8 -0
- package/dist/Types/DwgReferenceType.d.ts.map +1 -0
- package/dist/Types/DwgReferenceType.js +9 -0
- package/dist/Types/DwgReferenceType.js.map +1 -0
- package/dist/Types/DxfReferenceType.d.ts +11 -0
- package/dist/Types/DxfReferenceType.d.ts.map +1 -0
- package/dist/Types/DxfReferenceType.js +12 -0
- package/dist/Types/DxfReferenceType.js.map +1 -0
- package/dist/Types/LineWeightType.d.ts +31 -0
- package/dist/Types/LineWeightType.d.ts.map +1 -0
- package/dist/Types/LineWeightType.js +32 -0
- package/dist/Types/LineWeightType.js.map +1 -0
- package/dist/Types/ObjectType.d.ts +90 -0
- package/dist/Types/ObjectType.d.ts.map +1 -0
- package/dist/Types/ObjectType.js +91 -0
- package/dist/Types/ObjectType.js.map +1 -0
- package/dist/Types/OrthographicType.d.ts +10 -0
- package/dist/Types/OrthographicType.d.ts.map +1 -0
- package/dist/Types/OrthographicType.js +11 -0
- package/dist/Types/OrthographicType.js.map +1 -0
- package/dist/Types/PlotType.d.ts +9 -0
- package/dist/Types/PlotType.d.ts.map +1 -0
- package/dist/Types/PlotType.js +10 -0
- package/dist/Types/PlotType.js.map +1 -0
- package/dist/Types/RenderMode.d.ts +10 -0
- package/dist/Types/RenderMode.d.ts.map +1 -0
- package/dist/Types/RenderMode.js +11 -0
- package/dist/Types/RenderMode.js.map +1 -0
- package/dist/Types/ScaledType.d.ts +36 -0
- package/dist/Types/ScaledType.d.ts.map +1 -0
- package/dist/Types/ScaledType.js +37 -0
- package/dist/Types/ScaledType.js.map +1 -0
- package/dist/Types/Units/AngularDirection.d.ts +5 -0
- package/dist/Types/Units/AngularDirection.d.ts.map +1 -0
- package/dist/Types/Units/AngularDirection.js +6 -0
- package/dist/Types/Units/AngularDirection.js.map +1 -0
- package/dist/Types/Units/AngularUnitFormat.d.ts +8 -0
- package/dist/Types/Units/AngularUnitFormat.d.ts.map +1 -0
- package/dist/Types/Units/AngularUnitFormat.js +9 -0
- package/dist/Types/Units/AngularUnitFormat.js.map +1 -0
- package/dist/Types/Units/ImageUnits.d.ts +12 -0
- package/dist/Types/Units/ImageUnits.d.ts.map +1 -0
- package/dist/Types/Units/ImageUnits.js +13 -0
- package/dist/Types/Units/ImageUnits.js.map +1 -0
- package/dist/Types/Units/LinearUnitFormat.d.ts +10 -0
- package/dist/Types/Units/LinearUnitFormat.d.ts.map +1 -0
- package/dist/Types/Units/LinearUnitFormat.js +11 -0
- package/dist/Types/Units/LinearUnitFormat.js.map +1 -0
- package/dist/Types/Units/UnitStyleFormat.d.ts +46 -0
- package/dist/Types/Units/UnitStyleFormat.d.ts.map +1 -0
- package/dist/Types/Units/UnitStyleFormat.js +309 -0
- package/dist/Types/Units/UnitStyleFormat.js.map +1 -0
- package/dist/Types/Units/UnitsType.d.ts +27 -0
- package/dist/Types/Units/UnitsType.d.ts.map +1 -0
- package/dist/Types/Units/UnitsType.js +28 -0
- package/dist/Types/Units/UnitsType.js.map +1 -0
- package/dist/Types/WipeoutFrameType.d.ts +6 -0
- package/dist/Types/WipeoutFrameType.d.ts.map +1 -0
- package/dist/Types/WipeoutFrameType.js +7 -0
- package/dist/Types/WipeoutFrameType.js.map +1 -0
- package/dist/XData/ExtendedData.d.ts +7 -0
- package/dist/XData/ExtendedData.d.ts.map +1 -0
- package/dist/XData/ExtendedData.js +32 -0
- package/dist/XData/ExtendedData.js.map +1 -0
- package/dist/XData/ExtendedDataBinaryChunk.d.ts +5 -0
- package/dist/XData/ExtendedDataBinaryChunk.d.ts.map +1 -0
- package/dist/XData/ExtendedDataBinaryChunk.js +8 -0
- package/dist/XData/ExtendedDataBinaryChunk.js.map +1 -0
- package/dist/XData/ExtendedDataControlString.d.ts +9 -0
- package/dist/XData/ExtendedDataControlString.d.ts.map +1 -0
- package/dist/XData/ExtendedDataControlString.js +19 -0
- package/dist/XData/ExtendedDataControlString.js.map +1 -0
- package/dist/XData/ExtendedDataCoordinate.d.ts +6 -0
- package/dist/XData/ExtendedDataCoordinate.d.ts.map +1 -0
- package/dist/XData/ExtendedDataCoordinate.js +8 -0
- package/dist/XData/ExtendedDataCoordinate.js.map +1 -0
- package/dist/XData/ExtendedDataDictionary.d.ts +36 -0
- package/dist/XData/ExtendedDataDictionary.d.ts.map +1 -0
- package/dist/XData/ExtendedDataDictionary.js +98 -0
- package/dist/XData/ExtendedDataDictionary.js.map +1 -0
- package/dist/XData/ExtendedDataDirection.d.ts +6 -0
- package/dist/XData/ExtendedDataDirection.d.ts.map +1 -0
- package/dist/XData/ExtendedDataDirection.js +8 -0
- package/dist/XData/ExtendedDataDirection.js.map +1 -0
- package/dist/XData/ExtendedDataDisplacement.d.ts +6 -0
- package/dist/XData/ExtendedDataDisplacement.d.ts.map +1 -0
- package/dist/XData/ExtendedDataDisplacement.js +8 -0
- package/dist/XData/ExtendedDataDisplacement.js.map +1 -0
- package/dist/XData/ExtendedDataDistance.d.ts +5 -0
- package/dist/XData/ExtendedDataDistance.d.ts.map +1 -0
- package/dist/XData/ExtendedDataDistance.js +8 -0
- package/dist/XData/ExtendedDataDistance.js.map +1 -0
- package/dist/XData/ExtendedDataHandle.d.ts +6 -0
- package/dist/XData/ExtendedDataHandle.d.ts.map +1 -0
- package/dist/XData/ExtendedDataHandle.js +8 -0
- package/dist/XData/ExtendedDataHandle.js.map +1 -0
- package/dist/XData/ExtendedDataInteger16.d.ts +5 -0
- package/dist/XData/ExtendedDataInteger16.d.ts.map +1 -0
- package/dist/XData/ExtendedDataInteger16.js +8 -0
- package/dist/XData/ExtendedDataInteger16.js.map +1 -0
- package/dist/XData/ExtendedDataInteger32.d.ts +5 -0
- package/dist/XData/ExtendedDataInteger32.d.ts.map +1 -0
- package/dist/XData/ExtendedDataInteger32.js +8 -0
- package/dist/XData/ExtendedDataInteger32.js.map +1 -0
- package/dist/XData/ExtendedDataLayer.d.ts +6 -0
- package/dist/XData/ExtendedDataLayer.d.ts.map +1 -0
- package/dist/XData/ExtendedDataLayer.js +9 -0
- package/dist/XData/ExtendedDataLayer.js.map +1 -0
- package/dist/XData/ExtendedDataReal.d.ts +5 -0
- package/dist/XData/ExtendedDataReal.d.ts.map +1 -0
- package/dist/XData/ExtendedDataReal.js +8 -0
- package/dist/XData/ExtendedDataReal.js.map +1 -0
- package/dist/XData/ExtendedDataRecord.d.ts +3 -0
- package/dist/XData/ExtendedDataRecord.d.ts.map +1 -0
- package/dist/XData/ExtendedDataRecord.js +3 -0
- package/dist/XData/ExtendedDataRecord.js.map +1 -0
- package/dist/XData/ExtendedDataRecordBase.d.ts +17 -0
- package/dist/XData/ExtendedDataRecordBase.d.ts.map +1 -0
- package/dist/XData/ExtendedDataRecordBase.js +32 -0
- package/dist/XData/ExtendedDataRecordBase.js.map +1 -0
- package/dist/XData/ExtendedDataRecordFactory.d.ts +2 -0
- package/dist/XData/ExtendedDataRecordFactory.d.ts.map +1 -0
- package/dist/XData/ExtendedDataRecordFactory.js +43 -0
- package/dist/XData/ExtendedDataRecordFactory.js.map +1 -0
- package/dist/XData/ExtendedDataReference.d.ts +9 -0
- package/dist/XData/ExtendedDataReference.d.ts.map +1 -0
- package/dist/XData/ExtendedDataReference.js +10 -0
- package/dist/XData/ExtendedDataReference.js.map +1 -0
- package/dist/XData/ExtendedDataScale.d.ts +5 -0
- package/dist/XData/ExtendedDataScale.d.ts.map +1 -0
- package/dist/XData/ExtendedDataScale.js +8 -0
- package/dist/XData/ExtendedDataScale.js.map +1 -0
- package/dist/XData/ExtendedDataString.d.ts +5 -0
- package/dist/XData/ExtendedDataString.d.ts.map +1 -0
- package/dist/XData/ExtendedDataString.js +8 -0
- package/dist/XData/ExtendedDataString.js.map +1 -0
- package/dist/XData/ExtendedDataWorldCoordinate.d.ts +6 -0
- package/dist/XData/ExtendedDataWorldCoordinate.d.ts.map +1 -0
- package/dist/XData/ExtendedDataWorldCoordinate.js +8 -0
- package/dist/XData/ExtendedDataWorldCoordinate.js.map +1 -0
- package/dist/XData/IExtendedDataHandleReference.d.ts +6 -0
- package/dist/XData/IExtendedDataHandleReference.d.ts.map +1 -0
- package/dist/XData/IExtendedDataHandleReference.js +2 -0
- package/dist/XData/IExtendedDataHandleReference.js.map +1 -0
- package/dist/index-min.js +15 -0
- package/dist/index.d.ts +554 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +528 -0
- package/dist/index.js.map +1 -0
- package/package.json +55 -0
|
@@ -0,0 +1,4491 @@
|
|
|
1
|
+
import { DwgSectionIO } from '../DwgSectionIO.js';
|
|
2
|
+
import { DwgSectionDefinition } from '../FileHeaders/DwgSectionDefinition.js';
|
|
3
|
+
import { DwgStreamReaderBase } from './DwgStreamReaderBase.js';
|
|
4
|
+
import { DwgMergedReader } from './DwgMergedReader.js';
|
|
5
|
+
import { ACadVersion } from '../../../ACadVersion.js';
|
|
6
|
+
import { ObjectType } from '../../../Types/ObjectType.js';
|
|
7
|
+
import { DxfCode } from '../../../DxfCode.js';
|
|
8
|
+
import { DxfFileToken } from '../../../DxfFileToken.js';
|
|
9
|
+
import { GroupCodeValue, GroupCodeValueType } from '../../../GroupCodeValue.js';
|
|
10
|
+
import { CadEntityTemplate } from '../../Templates/CadEntityTemplate.js';
|
|
11
|
+
import { CadNonGraphicalObjectTemplate } from '../../Templates/CadNonGraphicalObjectTemplate.js';
|
|
12
|
+
import { CadBlockRecordTemplate } from '../../Templates/CadBlockRecordTemplate.js';
|
|
13
|
+
import { CadBlockCtrlObjectTemplate } from '../../Templates/CadBlockCtrlObjectTemplate.js';
|
|
14
|
+
import { CadTableTemplate } from '../../Templates/CadTableTemplate.js';
|
|
15
|
+
import { CadDimensionTemplate } from '../../Templates/CadDimensionTemplate.js';
|
|
16
|
+
import { CadDimensionStyleTemplate } from '../../Templates/CadDimensionStyleTemplate.js';
|
|
17
|
+
import { CadHatchTemplate } from '../../Templates/CadHatchTemplate.js';
|
|
18
|
+
import { CadInsertTemplate } from '../../Templates/CadInsertTemplate.js';
|
|
19
|
+
import { CadLayerTemplate } from '../../Templates/CadLayerTemplate.js';
|
|
20
|
+
import { CadLayoutTemplate } from '../../Templates/CadLayoutTemplate.js';
|
|
21
|
+
import { CadLeaderTemplate } from '../../Templates/CadLeaderTemplate.js';
|
|
22
|
+
import { CadLineTypeTemplate } from '../../Templates/CadLineTypeTemplate.js';
|
|
23
|
+
import { CadMLeaderTemplate } from '../../Templates/CadMLeaderTemplate.js';
|
|
24
|
+
import { CadMLeaderAnnotContextTemplate } from '../../Templates/CadMLeaderAnnotContextTemplate.js';
|
|
25
|
+
import { CadMLeaderStyleTemplate } from '../../Templates/CadMLeaderStyleTemplate.js';
|
|
26
|
+
import { CadMLineTemplate } from '../../Templates/CadMLineTemplate.js';
|
|
27
|
+
import { CadMLineStyleTemplate } from '../../Templates/CadMLineStyleTemplate.js';
|
|
28
|
+
import { CadMaterialTemplate } from '../../Templates/CadMaterialTemplate.js';
|
|
29
|
+
import { CadMeshTemplate } from '../../Templates/CadMeshTemplate.js';
|
|
30
|
+
import { CadOle2FrameTemplate } from '../../Templates/CadOle2FrameTemplate.js';
|
|
31
|
+
import { CadPolyLineTemplate } from '../../Templates/CadPolyLineTemplate.js';
|
|
32
|
+
import { CadPlotSettingsTemplate } from '../../Templates/CadPlotSettingsTemplate.js';
|
|
33
|
+
import { CadShapeTemplate } from '../../Templates/CadShapeTemplate.js';
|
|
34
|
+
import { CadSolid3DTemplate } from '../../Templates/CadSolid3DTemplate.js';
|
|
35
|
+
import { CadSplineTemplate } from '../../Templates/CadSplineTemplate.js';
|
|
36
|
+
import { CadTextEntityTemplate } from '../../Templates/CadTextEntityTemplate.js';
|
|
37
|
+
import { CadAttributeTemplate } from '../../Templates/CadAttributeTemplate.js';
|
|
38
|
+
import { CadToleranceTemplate } from '../../Templates/CadToleranceTemplate.js';
|
|
39
|
+
import { CadTableEntryTemplate } from '../../Templates/CadTableEntryTemplate.js';
|
|
40
|
+
import { CadUcsTemplate } from '../../Templates/CadUcsTemplate.js';
|
|
41
|
+
import { CadViewTemplate } from '../../Templates/CadViewTemplate.js';
|
|
42
|
+
import { CadViewportTemplate } from '../../Templates/CadViewportTemplate.js';
|
|
43
|
+
import { CadViewportEntityControlTemplate } from '../../Templates/CadViewportEntityControlTemplate.js';
|
|
44
|
+
import { CadViewportEntityHeaderTemplate } from '../../Templates/CadViewportEntityHeaderTemplate.js';
|
|
45
|
+
import { CadVPortTemplate } from '../../Templates/CadVPortTemplate.js';
|
|
46
|
+
import { CadWipeoutBaseTemplate } from '../../Templates/CadWipeoutBaseTemplate.js';
|
|
47
|
+
import { CadDictionaryTemplate } from '../../Templates/CadDictionaryTemplate.js';
|
|
48
|
+
import { CadDictionaryWithDefaultTemplate } from '../../Templates/CadDictionaryWithDefaultTemplate.js';
|
|
49
|
+
import { CadGeoDataTemplate } from '../../Templates/CadGeoDataTemplate.js';
|
|
50
|
+
import { CadGroupTemplate } from '../../Templates/CadGroupTemplate.js';
|
|
51
|
+
import { CadSortensTableTemplate } from '../../Templates/CadSortensTableTemplate.js';
|
|
52
|
+
import { CadTableStyleTemplate } from '../../Templates/CadTableStyleTemplate.js';
|
|
53
|
+
import { CadTableEntityTemplate } from '../../Templates/CadTableEntityTemplate.js';
|
|
54
|
+
import { CadXRecordTemplate } from '../../Templates/CadXRecordTemplate.js';
|
|
55
|
+
import { CadUnknownEntityTemplate } from '../../Templates/CadUnknownEntityTemplate.js';
|
|
56
|
+
import { CadUnknownNonGraphicalObjectTemplate } from '../../Templates/CadUnknownEntityTemplate.js';
|
|
57
|
+
import { CadUnderlayTemplate } from '../../Templates/CadUnderlayTemplate.js';
|
|
58
|
+
import { CadDimensionAssociationTemplate } from '../../Templates/CadDimensionAssociationTemplate.js';
|
|
59
|
+
import { CadEvaluationGraphTemplate } from '../../Templates/CadEvaluationGraphTemplate.js';
|
|
60
|
+
import { CadBlockFlipActionTemplate } from '../../Templates/CadBlockFlipActionTemplate.js';
|
|
61
|
+
import { CadBlockFlipParameterTemplate } from '../../Templates/CadBlockFlipParameterTemplate.js';
|
|
62
|
+
import { CadBlockRotationParameterTemplate } from '../../Templates/CadBlockRotationParameterTemplate.js';
|
|
63
|
+
import { CadBlockVisibilityParameterTemplate } from '../../Templates/CadBlockVisibilityParameterTemplate.js';
|
|
64
|
+
import { CadBlockRotationActionTemplate } from '../../Templates/CadBlockRotationActionTemplate.js';
|
|
65
|
+
import { CadBlockRepresentationDataTemplate } from '../../Templates/CadBlockRepresentationDataTemplate.js';
|
|
66
|
+
import { CadBlockRotationGripTemplate } from '../../Templates/CadBlockRotationGripTemplate.js';
|
|
67
|
+
import { CadBlockVisibilityGripTemplate } from '../../Templates/CadBlockVisibilityGripTemplate.js';
|
|
68
|
+
import { CadBlockGripExpressionTemplate } from '../../Templates/CadBlockGripExpressionTemplate.js';
|
|
69
|
+
import { CadAnnotScaleObjectContextDataTemplate } from '../../Templates/CadAnnotScaleObjectContextDataTemplate.js';
|
|
70
|
+
import { CadFieldTemplate } from '../../Templates/CadFieldTemplate.js';
|
|
71
|
+
import { CadFieldListTemplate } from '../../Templates/CadFieldListTemplate.js';
|
|
72
|
+
import { CadValueTemplate } from '../../Templates/CadValueTemplate.js';
|
|
73
|
+
import { CadWallTemplate } from '../../Templates/CadWallTemplate.js';
|
|
74
|
+
import { CadTableCellTemplate, CadCellStyleTemplate } from '../../Templates/CadTableEntityTemplate.js';
|
|
75
|
+
import { NotificationType } from '../../NotificationEventHandler.js';
|
|
76
|
+
import { Face3D } from '../../../Entities/Face3D.js';
|
|
77
|
+
import { Arc } from '../../../Entities/Arc.js';
|
|
78
|
+
import { Circle } from '../../../Entities/Circle.js';
|
|
79
|
+
import { Line } from '../../../Entities/Line.js';
|
|
80
|
+
import { Point } from '../../../Entities/Point.js';
|
|
81
|
+
import { Ellipse } from '../../../Entities/Ellipse.js';
|
|
82
|
+
import { Solid } from '../../../Entities/Solid.js';
|
|
83
|
+
import { Solid3D } from '../../../Entities/Solid3D.js';
|
|
84
|
+
import { Ray } from '../../../Entities/Ray.js';
|
|
85
|
+
import { XLine } from '../../../Entities/XLine.js';
|
|
86
|
+
import { MText, BackgroundFillFlags, ColumnType } from '../../../Entities/MText.js';
|
|
87
|
+
import { TextEntity } from '../../../Entities/TextEntity.js';
|
|
88
|
+
import { AttributeEntity } from '../../../Entities/AttributeEntity.js';
|
|
89
|
+
import { AttributeDefinition } from '../../../Entities/AttributeDefinition.js';
|
|
90
|
+
import { AttributeType } from '../../../Entities/AttributeBase.js';
|
|
91
|
+
import { Insert } from '../../../Entities/Insert.js';
|
|
92
|
+
import { Leader, HookLineDirection } from '../../../Entities/Leader.js';
|
|
93
|
+
import { MultiLeader, MultiLeaderBlockAttribute } from '../../../Entities/MultiLeader.js';
|
|
94
|
+
import { MultiLeaderObjectContextData, LeaderRoot, LeaderLine, StartEndPointPair } from '../../../Objects/MultiLeaderObjectContextData.js';
|
|
95
|
+
import { Hatch, HatchPattern, BoundaryPathFlags, HatchBoundaryPathLine, HatchBoundaryPathArc, HatchBoundaryPathEllipse, HatchBoundaryPathSpline, HatchBoundaryPathPolyline } from '../../../Entities/Hatch.js';
|
|
96
|
+
import { LwPolyline, LwPolylineFlags } from '../../../Entities/LwPolyline.js';
|
|
97
|
+
import { Polyline2D } from '../../../Entities/Polyline2D.js';
|
|
98
|
+
import { Polyline3D } from '../../../Entities/Polyline3D.js';
|
|
99
|
+
import { PolygonMesh } from '../../../Entities/PolygonMesh.js';
|
|
100
|
+
import { PolyfaceMesh } from '../../../Entities/PolyfaceMesh.js';
|
|
101
|
+
import { MLine, MLineFlags, MLineVertex, MLineSegment } from '../../../Entities/MLine.js';
|
|
102
|
+
import { Spline, SplineFlags, SplineFlags1, KnotParametrization } from '../../../Entities/Spline.js';
|
|
103
|
+
import { Shape } from '../../../Entities/Shape.js';
|
|
104
|
+
import { Viewport } from '../../../Entities/Viewport.js';
|
|
105
|
+
import { Tolerance } from '../../../Entities/Tolerance.js';
|
|
106
|
+
import { Seqend } from '../../../Entities/Seqend.js';
|
|
107
|
+
import { Vertex2D } from '../../../Entities/Vertex2D.js';
|
|
108
|
+
import { Vertex3D } from '../../../Entities/Vertex3D.js';
|
|
109
|
+
import { VertexFaceMesh } from '../../../Entities/VertexFaceMesh.js';
|
|
110
|
+
import { PolygonMeshVertex } from '../../../Entities/PolygonMeshVertex.js';
|
|
111
|
+
import { VertexFaceRecord } from '../../../Entities/VertexFaceRecord.js';
|
|
112
|
+
import { Mesh } from '../../../Entities/Mesh.js';
|
|
113
|
+
import { DimensionAligned } from '../../../Entities/DimensionAligned.js';
|
|
114
|
+
import { DimensionAngular3Pt } from '../../../Entities/DimensionAngular3Pt.js';
|
|
115
|
+
import { DimensionAngular2Line } from '../../../Entities/DimensionAngular2Line.js';
|
|
116
|
+
import { DimensionDiameter } from '../../../Entities/DimensionDiameter.js';
|
|
117
|
+
import { DimensionLinear } from '../../../Entities/DimensionLinear.js';
|
|
118
|
+
import { DimensionOrdinate } from '../../../Entities/DimensionOrdinate.js';
|
|
119
|
+
import { DimensionRadius } from '../../../Entities/DimensionRadius.js';
|
|
120
|
+
import { Ole2Frame } from '../../../Entities/Ole2Frame.js';
|
|
121
|
+
import { ProxyEntity } from '../../../Entities/ProxyEntity.js';
|
|
122
|
+
import { RasterImage } from '../../../Entities/RasterImage.js';
|
|
123
|
+
import { Wipeout } from '../../../Entities/Wipeout.js';
|
|
124
|
+
import { ClipMode, ClipType } from '../../../Entities/CadWipeoutBase.js';
|
|
125
|
+
import { PdfUnderlay } from '../../../Entities/PdfUnderlay.js';
|
|
126
|
+
import { ModelerGeometryWire, ModelerGeometrySilhouette } from '../../../Entities/ModelerGeometry.js';
|
|
127
|
+
import { Region } from '../../../Entities/Region.js';
|
|
128
|
+
import { CadBody } from '../../../Entities/CadBody.js';
|
|
129
|
+
import { UnknownEntity } from '../../../Entities/UnknownEntity.js';
|
|
130
|
+
import { TableEntity, CellStyle, TableOverrideFlags, BorderOverrideFlags, BreakHeight, BreakRowRange, TableEntityColumn, TableEntityRow, TableEntityCell } from '../../../Entities/TableEntity.js';
|
|
131
|
+
import { Block } from '../../../Blocks/Block.js';
|
|
132
|
+
import { BlockEnd } from '../../../Blocks/BlockEnd.js';
|
|
133
|
+
import { BlockRecord, BlockTypeFlags } from '../../../Tables/BlockRecord.js';
|
|
134
|
+
import { BlockRecordsTable } from '../../../Tables/Collections/BlockRecordsTable.js';
|
|
135
|
+
import { LayersTable } from '../../../Tables/Collections/LayersTable.js';
|
|
136
|
+
import { TextStylesTable } from '../../../Tables/Collections/TextStylesTable.js';
|
|
137
|
+
import { LineTypesTable } from '../../../Tables/Collections/LineTypesTable.js';
|
|
138
|
+
import { ViewsTable } from '../../../Tables/Collections/ViewsTable.js';
|
|
139
|
+
import { UCSTable } from '../../../Tables/Collections/UCSTable.js';
|
|
140
|
+
import { VPortsTable } from '../../../Tables/Collections/VPortsTable.js';
|
|
141
|
+
import { AppIdsTable } from '../../../Tables/Collections/AppIdsTable.js';
|
|
142
|
+
import { DimensionStylesTable } from '../../../Tables/Collections/DimensionStylesTable.js';
|
|
143
|
+
import { Layer, LayerFlags } from '../../../Tables/Layer.js';
|
|
144
|
+
import { LineType, LineTypeShapeFlags } from '../../../Tables/LineType.js';
|
|
145
|
+
import { TextStyle, StyleFlags } from '../../../Tables/TextStyle.js';
|
|
146
|
+
import { DimensionStyle, TextDirection } from '../../../Tables/DimensionStyle.js';
|
|
147
|
+
import { View, ViewModeType } from '../../../Tables/View.js';
|
|
148
|
+
import { VPort, UscIconType } from '../../../Tables/VPort.js';
|
|
149
|
+
import { UCS } from '../../../Tables/UCS.js';
|
|
150
|
+
import { AppId } from '../../../Tables/AppId.js';
|
|
151
|
+
import { ViewportEntityHeader } from '../../../Tables/ViewportEntityHeader.js';
|
|
152
|
+
import { StandardFlags } from '../../../Tables/TableEntry.js';
|
|
153
|
+
import { CadDictionary } from '../../../Objects/CadDictionary.js';
|
|
154
|
+
import { CadDictionaryWithDefault } from '../../../Objects/CadDictionaryWithDefault.js';
|
|
155
|
+
import { DictionaryVariable } from '../../../Objects/DictionaryVariable.js';
|
|
156
|
+
import { Group } from '../../../Objects/Group.js';
|
|
157
|
+
import { ImageDefinition } from '../../../Objects/ImageDefinition.js';
|
|
158
|
+
import { ImageDefinitionReactor } from '../../../Objects/ImageDefinitionReactor.js';
|
|
159
|
+
import { Layout } from '../../../Objects/Layout.js';
|
|
160
|
+
import { MLineStyle, MLineStyleFlags, MLineStyleElement } from '../../../Objects/MLineStyle.js';
|
|
161
|
+
import { MultiLeaderStyle } from '../../../Objects/MultiLeaderStyle.js';
|
|
162
|
+
import { Material, ColorMethod, MapSource } from '../../../Objects/Material.js';
|
|
163
|
+
import { PlotSettings, PaperMargin } from '../../../Objects/PlotSettings.js';
|
|
164
|
+
import { RasterVariables } from '../../../Objects/RasterVariables.js';
|
|
165
|
+
import { Scale } from '../../../Objects/Scale.js';
|
|
166
|
+
import { SortEntitiesTable } from '../../../Objects/SortEntitiesTable.js';
|
|
167
|
+
import { TableStyle } from '../../../Objects/TableStyle.js';
|
|
168
|
+
import { VisualStyle } from '../../../Objects/VisualStyle.js';
|
|
169
|
+
import { XRecord } from '../../../Objects/XRecrod.js';
|
|
170
|
+
import { GeoData, GeoDataVersion, GeoMeshPoint, GeoMeshFace } from '../../../Objects/GeoData.js';
|
|
171
|
+
import { PdfUnderlayDefinition } from '../../../Objects/PdfUnderlayDefinition.js';
|
|
172
|
+
import { AcdbPlaceHolder } from '../../../Objects/AcdbPlaceHolder.js';
|
|
173
|
+
import { BookColor } from '../../../Objects/BookColor.js';
|
|
174
|
+
import { ProxyObject } from '../../../Objects/ProxyObject.js';
|
|
175
|
+
import { SpatialFilter } from '../../../Objects/SpatialFilter.js';
|
|
176
|
+
import { DimensionAssociation, AssociativityFlags, OsnapPointRef } from '../../../Objects/DimensionAssociation.js';
|
|
177
|
+
import { EvaluationGraph, EvaluationGraphNode } from '../../../Objects/Evaluations/EvaluationGraph.js';
|
|
178
|
+
import { BlockFlipAction } from '../../../Objects/Evaluations/BlockFlipAction.js';
|
|
179
|
+
import { BlockFlipParameter } from '../../../Objects/Evaluations/BlockFlipParameter.js';
|
|
180
|
+
import { BlockRotationParameter } from '../../../Objects/Evaluations/BlockRotationParameter.js';
|
|
181
|
+
import { BlockRotationAction } from '../../../Objects/Evaluations/BlockRotationAction.js';
|
|
182
|
+
import { BlockVisibilityParameter } from '../../../Objects/Evaluations/BlockVisibilityParameter.js';
|
|
183
|
+
import { BlockGripExpression } from '../../../Objects/Evaluations/BlockGripExpression.js';
|
|
184
|
+
import { BlockRepresentationData } from '../../../Objects/BlockRepresentationData.js';
|
|
185
|
+
import { BlockReferenceObjectContextData } from '../../../Objects/BlockReferenceObjectContextData.js';
|
|
186
|
+
import { Field } from '../../../Objects/Field.js';
|
|
187
|
+
import { FieldList } from '../../../Objects/FieldList.js';
|
|
188
|
+
import { CadValue, CadValueType } from '../../../CadValue.js';
|
|
189
|
+
import { AecCleanupGroup } from '../../../Objects/AEC/AecCleanupGroup.js';
|
|
190
|
+
import { AecWallStyle } from '../../../Objects/AEC/AecWallStyle.js';
|
|
191
|
+
import { AecBinRecord } from '../../../Objects/AEC/AecBinRecord.js';
|
|
192
|
+
import { Wall } from '../../../Entities/AecObjects/Wall.js';
|
|
193
|
+
import { UnknownNonGraphicalObject } from '../../../Objects/UnknownNonGraphicalObject.js';
|
|
194
|
+
import { Color } from '../../../Color.js';
|
|
195
|
+
import { CadUtils } from '../../../CadUtils.js';
|
|
196
|
+
import { XY } from '../../../Math/XY.js';
|
|
197
|
+
import { XYZ } from '../../../Math/XYZ.js';
|
|
198
|
+
import { Matrix4 } from '../../../Math/Matrix4.js';
|
|
199
|
+
import { MathHelper } from '../../../Math/MathHelper.js';
|
|
200
|
+
import { BigEndianConverter, LittleEndianConverter } from '../../../IO/Converters.js';
|
|
201
|
+
import { GradientColor } from '../../../Entities/GradientColor.js';
|
|
202
|
+
import { PolylineFlags } from '../../../Entities/PolylineFlags.js';
|
|
203
|
+
import { ExtendedDataString } from '../../../XData/ExtendedDataString.js';
|
|
204
|
+
import { ExtendedDataControlString } from '../../../XData/ExtendedDataControlString.js';
|
|
205
|
+
import { ExtendedDataLayer } from '../../../XData/ExtendedDataLayer.js';
|
|
206
|
+
import { ExtendedDataBinaryChunk } from '../../../XData/ExtendedDataBinaryChunk.js';
|
|
207
|
+
import { ExtendedDataHandle } from '../../../XData/ExtendedDataHandle.js';
|
|
208
|
+
import { ExtendedDataDisplacement } from '../../../XData/ExtendedDataDisplacement.js';
|
|
209
|
+
import { ExtendedDataDistance } from '../../../XData/ExtendedDataDistance.js';
|
|
210
|
+
import { ExtendedDataScale } from '../../../XData/ExtendedDataScale.js';
|
|
211
|
+
import { ExtendedDataCoordinate } from '../../../XData/ExtendedDataCoordinate.js';
|
|
212
|
+
import { ExtendedDataDirection } from '../../../XData/ExtendedDataDirection.js';
|
|
213
|
+
import { ExtendedDataInteger16 } from '../../../XData/ExtendedDataInteger16.js';
|
|
214
|
+
import { ExtendedDataInteger32 } from '../../../XData/ExtendedDataInteger32.js';
|
|
215
|
+
import { ExtendedDataReal } from '../../../XData/ExtendedDataReal.js';
|
|
216
|
+
import { ExtendedDataWorldCoordinate } from '../../../XData/ExtendedDataWorldCoordinate.js';
|
|
217
|
+
import { LwPolylineVertex } from '../../../Entities/LwPolyline.js';
|
|
218
|
+
import { MeshEdge } from '../../../Entities/Mesh.js';
|
|
219
|
+
import { HatchPatternLine } from '../../../Entities/HatchPattern.js';
|
|
220
|
+
export class DwgObjectReader extends DwgSectionIO {
|
|
221
|
+
get sectionName() {
|
|
222
|
+
return DwgSectionDefinition.AcDbObjects;
|
|
223
|
+
}
|
|
224
|
+
_classes;
|
|
225
|
+
_crcReader;
|
|
226
|
+
_map;
|
|
227
|
+
_memoryStream;
|
|
228
|
+
_readedObjects = new Map();
|
|
229
|
+
_reader;
|
|
230
|
+
_builder;
|
|
231
|
+
_handles;
|
|
232
|
+
_handlesReader;
|
|
233
|
+
_mergedReaders;
|
|
234
|
+
_objectInitialPos = 0;
|
|
235
|
+
_objectReader;
|
|
236
|
+
_size = 0;
|
|
237
|
+
_textReader;
|
|
238
|
+
constructor(version, builder, reader, handles, handleMap, classes) {
|
|
239
|
+
super(version);
|
|
240
|
+
this._builder = builder;
|
|
241
|
+
this._reader = reader;
|
|
242
|
+
this._handles = [...handles];
|
|
243
|
+
this._map = new Map(handleMap);
|
|
244
|
+
this._classes = new Map();
|
|
245
|
+
for (const c of classes) {
|
|
246
|
+
this._classes.set(c.classNumber, c);
|
|
247
|
+
}
|
|
248
|
+
this._memoryStream = new Uint8Array(reader.stream);
|
|
249
|
+
this._crcReader = DwgStreamReaderBase.getStreamHandler(this._version, new Uint8Array(this._memoryStream));
|
|
250
|
+
}
|
|
251
|
+
read() {
|
|
252
|
+
while (this._handles.length > 0) {
|
|
253
|
+
const handle = this._handles.shift();
|
|
254
|
+
const offset = this._map.get(handle);
|
|
255
|
+
if (offset === undefined ||
|
|
256
|
+
this._builder.TryGetObjectTemplate(handle) !== undefined ||
|
|
257
|
+
this._readedObjects.has(handle)) {
|
|
258
|
+
continue;
|
|
259
|
+
}
|
|
260
|
+
const type = this.getEntityType(offset);
|
|
261
|
+
this._readedObjects.set(handle, type);
|
|
262
|
+
let template = null;
|
|
263
|
+
try {
|
|
264
|
+
template = this.readObject(type);
|
|
265
|
+
}
|
|
266
|
+
catch (ex) {
|
|
267
|
+
if (!this._builder.Configuration.Failsafe)
|
|
268
|
+
throw ex;
|
|
269
|
+
const dxf = this._classes.get(type);
|
|
270
|
+
if (dxf) {
|
|
271
|
+
this._builder.Notify(`Could not read ${dxf.dxfName} number ${dxf.classNumber} with handle: ${handle}`, NotificationType.Error, ex);
|
|
272
|
+
}
|
|
273
|
+
else {
|
|
274
|
+
this._builder.Notify(`Could not read ${type} with handle: ${handle}`, NotificationType.Error, ex);
|
|
275
|
+
}
|
|
276
|
+
continue;
|
|
277
|
+
}
|
|
278
|
+
if (template == null)
|
|
279
|
+
continue;
|
|
280
|
+
this._builder.AddTemplate(template);
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
getEntityType(offset) {
|
|
284
|
+
let type = ObjectType.INVALID;
|
|
285
|
+
this._crcReader.position = offset;
|
|
286
|
+
this._size = this._crcReader.readModularShort();
|
|
287
|
+
if (this._size <= 0)
|
|
288
|
+
return type;
|
|
289
|
+
const sizeInBits = this._size << 3;
|
|
290
|
+
if (this.R2010Plus) {
|
|
291
|
+
const handleSize = this._crcReader.readModularChar();
|
|
292
|
+
const handleSectionOffset = this._crcReader.positionInBits() + sizeInBits - handleSize;
|
|
293
|
+
this._objectReader = DwgStreamReaderBase.getStreamHandler(this._version, new Uint8Array(this._memoryStream), this._reader.encoding);
|
|
294
|
+
this._objectReader.setPositionInBits(this._crcReader.positionInBits());
|
|
295
|
+
this._objectInitialPos = this._objectReader.positionInBits();
|
|
296
|
+
type = this._objectReader.readObjectType();
|
|
297
|
+
this._handlesReader = DwgStreamReaderBase.getStreamHandler(this._version, new Uint8Array(this._memoryStream), this._reader.encoding);
|
|
298
|
+
this._handlesReader.setPositionInBits(handleSectionOffset);
|
|
299
|
+
this._textReader = DwgStreamReaderBase.getStreamHandler(this._version, new Uint8Array(this._memoryStream), this._reader.encoding);
|
|
300
|
+
this._textReader.setPositionByFlag(handleSectionOffset - 1);
|
|
301
|
+
this._mergedReaders = new DwgMergedReader(this._objectReader, this._textReader, this._handlesReader);
|
|
302
|
+
}
|
|
303
|
+
else {
|
|
304
|
+
this._objectReader = DwgStreamReaderBase.getStreamHandler(this._version, new Uint8Array(this._memoryStream), this._reader.encoding);
|
|
305
|
+
this._objectReader.setPositionInBits(this._crcReader.positionInBits());
|
|
306
|
+
this._handlesReader = DwgStreamReaderBase.getStreamHandler(this._version, new Uint8Array(this._memoryStream), this._reader.encoding);
|
|
307
|
+
this._textReader = this._objectReader;
|
|
308
|
+
this._objectInitialPos = this._objectReader.positionInBits();
|
|
309
|
+
type = this._objectReader.readObjectType();
|
|
310
|
+
}
|
|
311
|
+
return type;
|
|
312
|
+
}
|
|
313
|
+
handleReference(handle = 0) {
|
|
314
|
+
const value = handle === 0
|
|
315
|
+
? this._handlesReader.handleReference()
|
|
316
|
+
: this._handlesReader.handleReferenceWithRef(handle);
|
|
317
|
+
if (value !== 0 &&
|
|
318
|
+
this._builder.TryGetObjectTemplate(value) === undefined &&
|
|
319
|
+
!this._readedObjects.has(value)) {
|
|
320
|
+
this._handles.push(value);
|
|
321
|
+
}
|
|
322
|
+
return value;
|
|
323
|
+
}
|
|
324
|
+
readCommonData(template) {
|
|
325
|
+
if (this._version >= ACadVersion.AC1015 && this._version < ACadVersion.AC1024) {
|
|
326
|
+
this.updateHandleReader();
|
|
327
|
+
}
|
|
328
|
+
template.CadObject.handle = this._objectReader.handleReference();
|
|
329
|
+
this.readExtendedData(template);
|
|
330
|
+
}
|
|
331
|
+
readCommonEntityData(template) {
|
|
332
|
+
const entity = template.CadObject;
|
|
333
|
+
this.readCommonData(template);
|
|
334
|
+
if (this._objectReader.readBit()) {
|
|
335
|
+
const graphicImageSize = this._version >= ACadVersion.AC1024
|
|
336
|
+
? this._objectReader.readBitLongLong()
|
|
337
|
+
: this._objectReader.readRawLong();
|
|
338
|
+
this._objectReader.advance(graphicImageSize);
|
|
339
|
+
}
|
|
340
|
+
if (this._version >= ACadVersion.AC1012 && this._version <= ACadVersion.AC1014) {
|
|
341
|
+
this.updateHandleReader();
|
|
342
|
+
}
|
|
343
|
+
this.readEntityMode(template);
|
|
344
|
+
}
|
|
345
|
+
readCommonNonEntityData(template) {
|
|
346
|
+
this.readCommonData(template);
|
|
347
|
+
if (this.R13_14Only) {
|
|
348
|
+
this.updateHandleReader();
|
|
349
|
+
}
|
|
350
|
+
template.OwnerHandle = this.handleReference(template.CadObject.handle);
|
|
351
|
+
this.readReactorsAndDictionaryHandle(template);
|
|
352
|
+
}
|
|
353
|
+
readEntityMode(template) {
|
|
354
|
+
const entity = template.CadObject;
|
|
355
|
+
template.EntityMode = this._objectReader.read2Bits();
|
|
356
|
+
if (template.EntityMode === 0) {
|
|
357
|
+
template.OwnerHandle = this._handlesReader.handleReferenceWithRef(entity.handle);
|
|
358
|
+
}
|
|
359
|
+
else if (template.EntityMode === 1) {
|
|
360
|
+
this._builder.PaperSpaceEntities.push(entity);
|
|
361
|
+
}
|
|
362
|
+
else if (template.EntityMode === 2) {
|
|
363
|
+
this._builder.ModelSpaceEntities.push(entity);
|
|
364
|
+
}
|
|
365
|
+
this.readReactorsAndDictionaryHandle(template);
|
|
366
|
+
if (this.R13_14Only) {
|
|
367
|
+
template.LayerHandle = this.handleReference();
|
|
368
|
+
if (!this._objectReader.readBit()) {
|
|
369
|
+
template.LineTypeHandle = this.handleReference();
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
if (!this.R2004Plus && !this._objectReader.readBit()) {
|
|
373
|
+
template.PrevEntity = this.handleReference(entity.handle);
|
|
374
|
+
template.NextEntity = this.handleReference(entity.handle);
|
|
375
|
+
}
|
|
376
|
+
else if (!this.R2004Plus) {
|
|
377
|
+
if (!this._readedObjects.has(entity.handle - 1)) {
|
|
378
|
+
this._handles.push(entity.handle - 1);
|
|
379
|
+
}
|
|
380
|
+
if (!this._readedObjects.has(entity.handle + 1)) {
|
|
381
|
+
this._handles.push(entity.handle + 1);
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
const { color, transparency, flag: colorFlag } = this._objectReader.readEnColor();
|
|
385
|
+
entity.color = color;
|
|
386
|
+
entity.transparency = transparency;
|
|
387
|
+
if (this._version >= ACadVersion.AC1018 && colorFlag) {
|
|
388
|
+
template.ColorHandle = this.handleReference();
|
|
389
|
+
}
|
|
390
|
+
entity.lineTypeScale = this._objectReader.readBitDouble();
|
|
391
|
+
if (!(this._version >= ACadVersion.AC1015)) {
|
|
392
|
+
entity.isInvisible = (this._objectReader.readBitShort() & 1) === 0;
|
|
393
|
+
return;
|
|
394
|
+
}
|
|
395
|
+
template.LayerHandle = this.handleReference();
|
|
396
|
+
template.LtypeFlags = this._objectReader.read2Bits();
|
|
397
|
+
if (template.LtypeFlags === 3) {
|
|
398
|
+
template.LineTypeHandle = this.handleReference();
|
|
399
|
+
}
|
|
400
|
+
if (this.R2007Plus) {
|
|
401
|
+
if (this._objectReader.read2Bits() === 3) {
|
|
402
|
+
template.MaterialHandle = this.handleReference();
|
|
403
|
+
}
|
|
404
|
+
this._objectReader.readByte();
|
|
405
|
+
}
|
|
406
|
+
if (this._objectReader.read2Bits() === 3) {
|
|
407
|
+
this.handleReference();
|
|
408
|
+
}
|
|
409
|
+
if (this.R2010Plus) {
|
|
410
|
+
if (this._objectReader.readBit()) {
|
|
411
|
+
this.handleReference();
|
|
412
|
+
}
|
|
413
|
+
if (this._objectReader.readBit()) {
|
|
414
|
+
this.handleReference();
|
|
415
|
+
}
|
|
416
|
+
if (this._objectReader.readBit()) {
|
|
417
|
+
this.handleReference();
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
entity.isInvisible = (this._objectReader.readBitShort() & 1) === 1;
|
|
421
|
+
entity.lineWeight = CadUtils.toValue(this._objectReader.readByte());
|
|
422
|
+
}
|
|
423
|
+
readExtendedData(template) {
|
|
424
|
+
let size = this._objectReader.readBitShort();
|
|
425
|
+
while (size !== 0) {
|
|
426
|
+
const appHandle = this._objectReader.handleReference();
|
|
427
|
+
const endPos = this._objectReader.position + size;
|
|
428
|
+
const edata = this.readExtendedDataRecords(endPos);
|
|
429
|
+
template.EDataTemplate.set(appHandle, edata);
|
|
430
|
+
size = this._objectReader.readBitShort();
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
readExtendedDataRecords(endPos) {
|
|
434
|
+
const records = [];
|
|
435
|
+
while (this._objectReader.position < endPos) {
|
|
436
|
+
const dxfCode = (1000 + this._objectReader.readByte());
|
|
437
|
+
let record = null;
|
|
438
|
+
switch (dxfCode) {
|
|
439
|
+
case DxfCode.ExtendedDataAsciiString:
|
|
440
|
+
case DxfCode.ExtendedDataRegAppName:
|
|
441
|
+
record = new ExtendedDataString(this._objectReader.readTextUnicode());
|
|
442
|
+
break;
|
|
443
|
+
case DxfCode.ExtendedDataControlString:
|
|
444
|
+
record = new ExtendedDataControlString(this._objectReader.readByte() === 1);
|
|
445
|
+
break;
|
|
446
|
+
case DxfCode.ExtendedDataLayerName: {
|
|
447
|
+
const arr = this._objectReader.readBytes(8);
|
|
448
|
+
const handle = BigEndianConverter.toUInt64(arr);
|
|
449
|
+
record = new ExtendedDataLayer(handle);
|
|
450
|
+
break;
|
|
451
|
+
}
|
|
452
|
+
case DxfCode.ExtendedDataBinaryChunk:
|
|
453
|
+
record = new ExtendedDataBinaryChunk(this._objectReader.readBytes(this._objectReader.readByte()));
|
|
454
|
+
break;
|
|
455
|
+
case DxfCode.ExtendedDataHandle: {
|
|
456
|
+
const arr = this._objectReader.readBytes(8);
|
|
457
|
+
const handle = BigEndianConverter.toUInt64(arr);
|
|
458
|
+
record = new ExtendedDataHandle(handle);
|
|
459
|
+
break;
|
|
460
|
+
}
|
|
461
|
+
case DxfCode.ExtendedDataXCoordinate:
|
|
462
|
+
record = new ExtendedDataCoordinate(new XYZ(this._objectReader.readDouble(), this._objectReader.readDouble(), this._objectReader.readDouble()));
|
|
463
|
+
break;
|
|
464
|
+
case DxfCode.ExtendedDataWorldXCoordinate:
|
|
465
|
+
record = new ExtendedDataWorldCoordinate(new XYZ(this._objectReader.readDouble(), this._objectReader.readDouble(), this._objectReader.readDouble()));
|
|
466
|
+
break;
|
|
467
|
+
case DxfCode.ExtendedDataWorldXDisp:
|
|
468
|
+
record = new ExtendedDataDisplacement(new XYZ(this._objectReader.readDouble(), this._objectReader.readDouble(), this._objectReader.readDouble()));
|
|
469
|
+
break;
|
|
470
|
+
case DxfCode.ExtendedDataWorldXDir:
|
|
471
|
+
record = new ExtendedDataDirection(new XYZ(this._objectReader.readDouble(), this._objectReader.readDouble(), this._objectReader.readDouble()));
|
|
472
|
+
break;
|
|
473
|
+
case DxfCode.ExtendedDataReal:
|
|
474
|
+
record = new ExtendedDataReal(this._objectReader.readDouble());
|
|
475
|
+
break;
|
|
476
|
+
case DxfCode.ExtendedDataDist:
|
|
477
|
+
record = new ExtendedDataDistance(this._objectReader.readDouble());
|
|
478
|
+
break;
|
|
479
|
+
case DxfCode.ExtendedDataScale:
|
|
480
|
+
record = new ExtendedDataScale(this._objectReader.readDouble());
|
|
481
|
+
break;
|
|
482
|
+
case DxfCode.ExtendedDataInteger16:
|
|
483
|
+
record = new ExtendedDataInteger16(this._objectReader.readShort());
|
|
484
|
+
break;
|
|
485
|
+
case DxfCode.ExtendedDataInteger32:
|
|
486
|
+
record = new ExtendedDataInteger32(this._objectReader.readRawLong());
|
|
487
|
+
break;
|
|
488
|
+
default:
|
|
489
|
+
this._objectReader.readBytes(endPos - this._objectReader.position);
|
|
490
|
+
this._builder.Notify(`Unknown code for extended data: ${dxfCode}`, NotificationType.Warning);
|
|
491
|
+
return records;
|
|
492
|
+
}
|
|
493
|
+
records.push(record);
|
|
494
|
+
}
|
|
495
|
+
return records;
|
|
496
|
+
}
|
|
497
|
+
readReactorsAndDictionaryHandle(template) {
|
|
498
|
+
const numberOfReactors = this._objectReader.readBitLong();
|
|
499
|
+
for (let i = 0; i < numberOfReactors; ++i) {
|
|
500
|
+
template.ReactorsHandles.add(this.handleReference());
|
|
501
|
+
}
|
|
502
|
+
let flag = false;
|
|
503
|
+
if (this.R2004Plus) {
|
|
504
|
+
flag = this._objectReader.readBit();
|
|
505
|
+
}
|
|
506
|
+
if (!flag) {
|
|
507
|
+
template.XDictHandle = this.handleReference();
|
|
508
|
+
}
|
|
509
|
+
if (this.R2013Plus) {
|
|
510
|
+
this._objectReader.readBit();
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
readXrefDependantBit(entry) {
|
|
514
|
+
if (this.R2007Plus) {
|
|
515
|
+
const xrefindex = this._objectReader.readBitShort();
|
|
516
|
+
if ((xrefindex & 0b100000000) > 0) {
|
|
517
|
+
entry.flags |= StandardFlags.XrefDependent;
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
else {
|
|
521
|
+
if (this._objectReader.readBit()) {
|
|
522
|
+
entry.flags |= StandardFlags.Referenced;
|
|
523
|
+
}
|
|
524
|
+
const xrefindex = this._objectReader.readBitShort() - 1;
|
|
525
|
+
if (this._objectReader.readBit()) {
|
|
526
|
+
entry.flags |= StandardFlags.XrefDependent;
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
updateHandleReader() {
|
|
531
|
+
const size = this._objectReader.readRawLong();
|
|
532
|
+
this._handlesReader.setPositionInBits(size + this._objectInitialPos);
|
|
533
|
+
if (this._version === ACadVersion.AC1021) {
|
|
534
|
+
this._textReader = DwgStreamReaderBase.getStreamHandler(this._version, new Uint8Array(this._memoryStream), this._reader.encoding);
|
|
535
|
+
this._textReader.setPositionByFlag(size + this._objectInitialPos - 1);
|
|
536
|
+
}
|
|
537
|
+
this._mergedReaders = new DwgMergedReader(this._objectReader, this._textReader, this._handlesReader);
|
|
538
|
+
}
|
|
539
|
+
static looksLikeUtf16Le(buffer, offset) {
|
|
540
|
+
if (buffer == null || offset < 0 || offset + 1 >= buffer.length)
|
|
541
|
+
return false;
|
|
542
|
+
let sawNonZero = false;
|
|
543
|
+
for (let i = offset; i + 1 < buffer.length; i += 2) {
|
|
544
|
+
const lo = buffer[i];
|
|
545
|
+
const hi = buffer[i + 1];
|
|
546
|
+
if (lo === 0 && hi === 0)
|
|
547
|
+
return sawNonZero;
|
|
548
|
+
if (hi !== 0)
|
|
549
|
+
return false;
|
|
550
|
+
if (lo !== 0)
|
|
551
|
+
sawNonZero = true;
|
|
552
|
+
}
|
|
553
|
+
return false;
|
|
554
|
+
}
|
|
555
|
+
// ==================== DISPATCH ====================
|
|
556
|
+
readObject(type) {
|
|
557
|
+
let template = null;
|
|
558
|
+
switch (type) {
|
|
559
|
+
case ObjectType.TEXT:
|
|
560
|
+
template = this.readText();
|
|
561
|
+
break;
|
|
562
|
+
case ObjectType.ATTRIB:
|
|
563
|
+
template = this.readAttribute();
|
|
564
|
+
break;
|
|
565
|
+
case ObjectType.ATTDEF:
|
|
566
|
+
template = this.readAttributeDefinition();
|
|
567
|
+
break;
|
|
568
|
+
case ObjectType.BLOCK:
|
|
569
|
+
template = this.readBlock();
|
|
570
|
+
break;
|
|
571
|
+
case ObjectType.ENDBLK:
|
|
572
|
+
template = this.readEndBlock();
|
|
573
|
+
break;
|
|
574
|
+
case ObjectType.SEQEND:
|
|
575
|
+
template = this.readSeqend();
|
|
576
|
+
break;
|
|
577
|
+
case ObjectType.INSERT:
|
|
578
|
+
template = this.readInsert();
|
|
579
|
+
break;
|
|
580
|
+
case ObjectType.MINSERT:
|
|
581
|
+
template = this.readMInsert();
|
|
582
|
+
break;
|
|
583
|
+
case ObjectType.VERTEX_2D:
|
|
584
|
+
template = this.readVertex2D();
|
|
585
|
+
break;
|
|
586
|
+
case ObjectType.VERTEX_3D:
|
|
587
|
+
template = this.readVertex3D(new Vertex3D());
|
|
588
|
+
break;
|
|
589
|
+
case ObjectType.VERTEX_PFACE:
|
|
590
|
+
template = this.readVertex3D(new VertexFaceMesh());
|
|
591
|
+
break;
|
|
592
|
+
case ObjectType.VERTEX_MESH:
|
|
593
|
+
template = this.readVertex3D(new PolygonMeshVertex());
|
|
594
|
+
break;
|
|
595
|
+
case ObjectType.VERTEX_PFACE_FACE:
|
|
596
|
+
template = this.readPfaceVertex();
|
|
597
|
+
break;
|
|
598
|
+
case ObjectType.POLYLINE_2D:
|
|
599
|
+
template = this.readPolyline2D();
|
|
600
|
+
break;
|
|
601
|
+
case ObjectType.POLYLINE_3D:
|
|
602
|
+
template = this.readPolyline3D();
|
|
603
|
+
break;
|
|
604
|
+
case ObjectType.ARC:
|
|
605
|
+
template = this.readArc();
|
|
606
|
+
break;
|
|
607
|
+
case ObjectType.CIRCLE:
|
|
608
|
+
template = this.readCircle();
|
|
609
|
+
break;
|
|
610
|
+
case ObjectType.LINE:
|
|
611
|
+
template = this.readLine();
|
|
612
|
+
break;
|
|
613
|
+
case ObjectType.DIMENSION_ORDINATE:
|
|
614
|
+
template = this.readDimOrdinate();
|
|
615
|
+
break;
|
|
616
|
+
case ObjectType.DIMENSION_LINEAR:
|
|
617
|
+
template = this.readDimLinear();
|
|
618
|
+
break;
|
|
619
|
+
case ObjectType.DIMENSION_ALIGNED:
|
|
620
|
+
template = this.readDimAligned();
|
|
621
|
+
break;
|
|
622
|
+
case ObjectType.DIMENSION_ANG_3_Pt:
|
|
623
|
+
template = this.readDimAngular3pt();
|
|
624
|
+
break;
|
|
625
|
+
case ObjectType.DIMENSION_ANG_2_Ln:
|
|
626
|
+
template = this.readDimLine2pt();
|
|
627
|
+
break;
|
|
628
|
+
case ObjectType.DIMENSION_RADIUS:
|
|
629
|
+
template = this.readDimRadius();
|
|
630
|
+
break;
|
|
631
|
+
case ObjectType.DIMENSION_DIAMETER:
|
|
632
|
+
template = this.readDimDiameter();
|
|
633
|
+
break;
|
|
634
|
+
case ObjectType.POINT:
|
|
635
|
+
template = this.readPoint();
|
|
636
|
+
break;
|
|
637
|
+
case ObjectType.FACE3D:
|
|
638
|
+
template = this.read3dFace();
|
|
639
|
+
break;
|
|
640
|
+
case ObjectType.POLYLINE_PFACE:
|
|
641
|
+
template = this.readPolyfaceMesh();
|
|
642
|
+
break;
|
|
643
|
+
case ObjectType.POLYLINE_MESH:
|
|
644
|
+
template = this.readPolylineMesh();
|
|
645
|
+
break;
|
|
646
|
+
case ObjectType.SOLID:
|
|
647
|
+
case ObjectType.TRACE:
|
|
648
|
+
template = this.readSolid();
|
|
649
|
+
break;
|
|
650
|
+
case ObjectType.SHAPE:
|
|
651
|
+
template = this.readShape();
|
|
652
|
+
break;
|
|
653
|
+
case ObjectType.VIEWPORT:
|
|
654
|
+
template = this.readViewport();
|
|
655
|
+
break;
|
|
656
|
+
case ObjectType.ELLIPSE:
|
|
657
|
+
template = this.readEllipse();
|
|
658
|
+
break;
|
|
659
|
+
case ObjectType.SPLINE:
|
|
660
|
+
template = this.readSpline();
|
|
661
|
+
break;
|
|
662
|
+
case ObjectType.REGION:
|
|
663
|
+
template = this.readModelerGeometry(new CadEntityTemplate(new Region()));
|
|
664
|
+
break;
|
|
665
|
+
case ObjectType.SOLID3D:
|
|
666
|
+
template = this.readSolid3D();
|
|
667
|
+
break;
|
|
668
|
+
case ObjectType.BODY:
|
|
669
|
+
template = this.readModelerGeometry(new CadEntityTemplate(new CadBody()));
|
|
670
|
+
break;
|
|
671
|
+
case ObjectType.RAY:
|
|
672
|
+
template = this.readRay();
|
|
673
|
+
break;
|
|
674
|
+
case ObjectType.XLINE:
|
|
675
|
+
template = this.readXLine();
|
|
676
|
+
break;
|
|
677
|
+
case ObjectType.DICTIONARY:
|
|
678
|
+
template = this.readDictionary();
|
|
679
|
+
break;
|
|
680
|
+
case ObjectType.MTEXT:
|
|
681
|
+
template = this.readMText();
|
|
682
|
+
break;
|
|
683
|
+
case ObjectType.LEADER:
|
|
684
|
+
template = this.readLeader();
|
|
685
|
+
break;
|
|
686
|
+
case ObjectType.TOLERANCE:
|
|
687
|
+
template = this.readTolerance();
|
|
688
|
+
break;
|
|
689
|
+
case ObjectType.MLINE:
|
|
690
|
+
template = this.readMLine();
|
|
691
|
+
break;
|
|
692
|
+
case ObjectType.BLOCK_CONTROL_OBJ:
|
|
693
|
+
template = this.readBlockControlObject();
|
|
694
|
+
this._builder.BlockRecords = template.CadObject;
|
|
695
|
+
break;
|
|
696
|
+
case ObjectType.BLOCK_HEADER:
|
|
697
|
+
template = this.readBlockHeader();
|
|
698
|
+
break;
|
|
699
|
+
case ObjectType.LAYER_CONTROL_OBJ:
|
|
700
|
+
template = this.readDocumentTableGeneric(new LayersTable());
|
|
701
|
+
this._builder.Layers = template.CadObject;
|
|
702
|
+
break;
|
|
703
|
+
case ObjectType.LAYER:
|
|
704
|
+
template = this.readLayer();
|
|
705
|
+
break;
|
|
706
|
+
case ObjectType.STYLE_CONTROL_OBJ:
|
|
707
|
+
template = this.readDocumentTableGeneric(new TextStylesTable());
|
|
708
|
+
this._builder.TextStyles = template.CadObject;
|
|
709
|
+
break;
|
|
710
|
+
case ObjectType.STYLE:
|
|
711
|
+
template = this.readTextStyle();
|
|
712
|
+
break;
|
|
713
|
+
case ObjectType.LTYPE_CONTROL_OBJ:
|
|
714
|
+
template = this.readLTypeControlObject();
|
|
715
|
+
this._builder.LineTypesTable = template.CadObject;
|
|
716
|
+
break;
|
|
717
|
+
case ObjectType.LTYPE:
|
|
718
|
+
template = this.readLType();
|
|
719
|
+
break;
|
|
720
|
+
case ObjectType.VIEW_CONTROL_OBJ:
|
|
721
|
+
template = this.readDocumentTableGeneric(new ViewsTable());
|
|
722
|
+
this._builder.Views = template.CadObject;
|
|
723
|
+
break;
|
|
724
|
+
case ObjectType.VIEW:
|
|
725
|
+
template = this.readView();
|
|
726
|
+
break;
|
|
727
|
+
case ObjectType.UCS_CONTROL_OBJ:
|
|
728
|
+
template = this.readDocumentTableGeneric(new UCSTable());
|
|
729
|
+
this._builder.UCSs = template.CadObject;
|
|
730
|
+
break;
|
|
731
|
+
case ObjectType.UCS:
|
|
732
|
+
template = this.readUcs();
|
|
733
|
+
break;
|
|
734
|
+
case ObjectType.VPORT_CONTROL_OBJ:
|
|
735
|
+
template = this.readDocumentTableGeneric(new VPortsTable());
|
|
736
|
+
this._builder.VPorts = template.CadObject;
|
|
737
|
+
break;
|
|
738
|
+
case ObjectType.VPORT:
|
|
739
|
+
template = this.readVPort();
|
|
740
|
+
break;
|
|
741
|
+
case ObjectType.APPID_CONTROL_OBJ:
|
|
742
|
+
template = this.readDocumentTableGeneric(new AppIdsTable());
|
|
743
|
+
this._builder.AppIds = template.CadObject;
|
|
744
|
+
break;
|
|
745
|
+
case ObjectType.APPID:
|
|
746
|
+
template = this.readAppId();
|
|
747
|
+
break;
|
|
748
|
+
case ObjectType.DIMSTYLE_CONTROL_OBJ:
|
|
749
|
+
template = this.readDocumentTableGeneric(new DimensionStylesTable());
|
|
750
|
+
this._builder.DimensionStyles = template.CadObject;
|
|
751
|
+
break;
|
|
752
|
+
case ObjectType.DIMSTYLE:
|
|
753
|
+
template = this.readDimStyle();
|
|
754
|
+
break;
|
|
755
|
+
case ObjectType.VP_ENT_HDR_CTRL_OBJ:
|
|
756
|
+
template = this.readViewportEntityControl();
|
|
757
|
+
break;
|
|
758
|
+
case ObjectType.VP_ENT_HDR:
|
|
759
|
+
template = this.readViewportEntityHeader();
|
|
760
|
+
break;
|
|
761
|
+
case ObjectType.GROUP:
|
|
762
|
+
template = this.readGroup();
|
|
763
|
+
break;
|
|
764
|
+
case ObjectType.MLINESTYLE:
|
|
765
|
+
template = this.readMLineStyle();
|
|
766
|
+
break;
|
|
767
|
+
case ObjectType.LWPOLYLINE:
|
|
768
|
+
template = this.readLWPolyline();
|
|
769
|
+
break;
|
|
770
|
+
case ObjectType.HATCH:
|
|
771
|
+
template = this.readHatch();
|
|
772
|
+
break;
|
|
773
|
+
case ObjectType.XRECORD:
|
|
774
|
+
template = this.readXRecord();
|
|
775
|
+
break;
|
|
776
|
+
case ObjectType.ACDBPLACEHOLDER:
|
|
777
|
+
template = this.readPlaceHolder();
|
|
778
|
+
break;
|
|
779
|
+
case ObjectType.LAYOUT:
|
|
780
|
+
template = this.readLayout();
|
|
781
|
+
break;
|
|
782
|
+
case ObjectType.ACAD_PROXY_ENTITY:
|
|
783
|
+
template = this.readProxyEntity();
|
|
784
|
+
break;
|
|
785
|
+
case ObjectType.ACAD_PROXY_OBJECT:
|
|
786
|
+
template = this.readProxyObject();
|
|
787
|
+
break;
|
|
788
|
+
case ObjectType.OLE2FRAME:
|
|
789
|
+
template = this.readOle2Frame();
|
|
790
|
+
break;
|
|
791
|
+
case ObjectType.OLEFRAME:
|
|
792
|
+
case ObjectType.DUMMY:
|
|
793
|
+
template = this.readUnknownEntity(null);
|
|
794
|
+
this._builder.Notify(`Unlisted object with DXF name ${type} has been read as an UnknownEntity`, NotificationType.Warning);
|
|
795
|
+
return template;
|
|
796
|
+
case ObjectType.VBA_PROJECT:
|
|
797
|
+
case ObjectType.LONG_TRANSACTION:
|
|
798
|
+
template = this.readUnknownNonGraphicalObject(null);
|
|
799
|
+
this._builder.Notify(`Unlisted object with DXF name ${type} has been read as an UnknownNonGraphicalObject`, NotificationType.Warning);
|
|
800
|
+
return template;
|
|
801
|
+
case ObjectType.UNDEFINED:
|
|
802
|
+
case ObjectType.UNKNOW_3A:
|
|
803
|
+
case ObjectType.UNKNOW_3B:
|
|
804
|
+
case ObjectType.UNKNOW_36:
|
|
805
|
+
case ObjectType.UNKNOW_37:
|
|
806
|
+
case ObjectType.UNKNOW_9:
|
|
807
|
+
break;
|
|
808
|
+
default:
|
|
809
|
+
return this.readUnlistedType(type);
|
|
810
|
+
}
|
|
811
|
+
if (template == null) {
|
|
812
|
+
this._builder.Notify(`Object type not implemented: ${type}`, NotificationType.NotImplemented);
|
|
813
|
+
}
|
|
814
|
+
return template;
|
|
815
|
+
}
|
|
816
|
+
readUnlistedType(classNumber) {
|
|
817
|
+
const c = this._classes.get(classNumber);
|
|
818
|
+
if (!c)
|
|
819
|
+
return null;
|
|
820
|
+
let template = null;
|
|
821
|
+
switch (c.dxfName) {
|
|
822
|
+
case DxfFileToken.EntityAecWall:
|
|
823
|
+
template = this.readAecWall();
|
|
824
|
+
break;
|
|
825
|
+
case DxfFileToken.ObjectBinRecord:
|
|
826
|
+
template = this.readBinRecord();
|
|
827
|
+
break;
|
|
828
|
+
case DxfFileToken.ObjectAecWallStyle:
|
|
829
|
+
template = this.readAecWallStyle();
|
|
830
|
+
break;
|
|
831
|
+
case DxfFileToken.ObjectAecCleanupGroupDef:
|
|
832
|
+
template = this.readAecCleanupGroup();
|
|
833
|
+
break;
|
|
834
|
+
case 'ACDBDICTIONARYWDFLT':
|
|
835
|
+
template = this.readDictionaryWithDefault();
|
|
836
|
+
break;
|
|
837
|
+
case 'ACDBPLACEHOLDER':
|
|
838
|
+
template = this.readPlaceHolder();
|
|
839
|
+
break;
|
|
840
|
+
case 'ACAD_TABLE':
|
|
841
|
+
template = this.readTableEntity();
|
|
842
|
+
break;
|
|
843
|
+
case DxfFileToken.ObjectDimensionAssociation:
|
|
844
|
+
template = this.readDimensionAssociation();
|
|
845
|
+
break;
|
|
846
|
+
case 'DBCOLOR':
|
|
847
|
+
template = this.readDbColor();
|
|
848
|
+
break;
|
|
849
|
+
case 'DICTIONARYVAR':
|
|
850
|
+
template = this.readDictionaryVar();
|
|
851
|
+
break;
|
|
852
|
+
case 'DICTIONARYWDFLT':
|
|
853
|
+
template = this.readDictionaryWithDefault();
|
|
854
|
+
break;
|
|
855
|
+
case DxfFileToken.ObjectGeoData:
|
|
856
|
+
template = this.readGeoData();
|
|
857
|
+
break;
|
|
858
|
+
case 'GROUP':
|
|
859
|
+
template = this.readGroup();
|
|
860
|
+
break;
|
|
861
|
+
case 'HATCH':
|
|
862
|
+
template = this.readHatch();
|
|
863
|
+
break;
|
|
864
|
+
case 'IMAGE':
|
|
865
|
+
template = this.readCadImage(new RasterImage());
|
|
866
|
+
break;
|
|
867
|
+
case 'IMAGEDEF':
|
|
868
|
+
template = this.readImageDefinition();
|
|
869
|
+
break;
|
|
870
|
+
case 'IMAGEDEF_REACTOR':
|
|
871
|
+
template = this.readImageDefinitionReactor();
|
|
872
|
+
break;
|
|
873
|
+
case 'LAYOUT':
|
|
874
|
+
template = this.readLayout();
|
|
875
|
+
break;
|
|
876
|
+
case 'LWPLINE':
|
|
877
|
+
case 'LWPOLYLINE':
|
|
878
|
+
template = this.readLWPolyline();
|
|
879
|
+
break;
|
|
880
|
+
case 'MATERIAL':
|
|
881
|
+
template = this.readMaterial();
|
|
882
|
+
break;
|
|
883
|
+
case 'MESH':
|
|
884
|
+
template = this.readMesh();
|
|
885
|
+
break;
|
|
886
|
+
case 'MULTILEADER':
|
|
887
|
+
template = this.readMultiLeader();
|
|
888
|
+
break;
|
|
889
|
+
case 'ACDB_MLEADEROBJECTCONTEXTDATA_CLASS':
|
|
890
|
+
template = this.readMultiLeaderAnnotContext();
|
|
891
|
+
break;
|
|
892
|
+
case 'MLEADERSTYLE':
|
|
893
|
+
template = this.readMultiLeaderStyle();
|
|
894
|
+
break;
|
|
895
|
+
case 'PDFDEFINITION':
|
|
896
|
+
template = this.readPdfDefinition();
|
|
897
|
+
break;
|
|
898
|
+
case 'PDFUNDERLAY':
|
|
899
|
+
case 'PDFREFERENCE':
|
|
900
|
+
template = this.readPdfUnderlay();
|
|
901
|
+
break;
|
|
902
|
+
case 'SCALE':
|
|
903
|
+
template = this.readScale();
|
|
904
|
+
break;
|
|
905
|
+
case 'SORTENTSTABLE':
|
|
906
|
+
template = this.readSortentsTable();
|
|
907
|
+
break;
|
|
908
|
+
case 'RASTERVARIABLES':
|
|
909
|
+
template = this.readRasterVariables();
|
|
910
|
+
break;
|
|
911
|
+
case 'WIPEOUT':
|
|
912
|
+
template = this.readCadImage(new Wipeout());
|
|
913
|
+
break;
|
|
914
|
+
case 'XRECORD':
|
|
915
|
+
template = this.readXRecord();
|
|
916
|
+
break;
|
|
917
|
+
case DxfFileToken.ObjectEvalGraph:
|
|
918
|
+
template = this.readEvaluationGraph();
|
|
919
|
+
break;
|
|
920
|
+
case DxfFileToken.ObjectBlockRotationParameter:
|
|
921
|
+
template = this.readBlockRotationParameter();
|
|
922
|
+
break;
|
|
923
|
+
case DxfFileToken.ObjectBlockVisibilityParameter:
|
|
924
|
+
template = this.readBlockVisibilityParameter();
|
|
925
|
+
break;
|
|
926
|
+
case 'BLOCKFLIPPARAMETER':
|
|
927
|
+
template = this.readBlockFlipParameter();
|
|
928
|
+
break;
|
|
929
|
+
case DxfFileToken.ObjectBlockRepresentationData:
|
|
930
|
+
template = this.readBlockRepresentationData();
|
|
931
|
+
break;
|
|
932
|
+
case DxfFileToken.ObjectBlockGripLocationComponent:
|
|
933
|
+
template = this.readBlockGripLocationComponent();
|
|
934
|
+
break;
|
|
935
|
+
case DxfFileToken.ObjectBlockRotationGrip: {
|
|
936
|
+
const t = new CadBlockRotationGripTemplate();
|
|
937
|
+
this.readBlockGrip(t);
|
|
938
|
+
template = t;
|
|
939
|
+
break;
|
|
940
|
+
}
|
|
941
|
+
case DxfFileToken.ObjectBlockVisibilityGrip: {
|
|
942
|
+
const t = new CadBlockVisibilityGripTemplate();
|
|
943
|
+
this.readBlockGrip(t);
|
|
944
|
+
template = t;
|
|
945
|
+
break;
|
|
946
|
+
}
|
|
947
|
+
case DxfFileToken.ObjectBlockFlipAction:
|
|
948
|
+
template = this.readBlockFlipAction();
|
|
949
|
+
break;
|
|
950
|
+
case DxfFileToken.ObjectBlockRotateAction:
|
|
951
|
+
template = this.readBlockRotateAction();
|
|
952
|
+
break;
|
|
953
|
+
case 'SPATIAL_FILTER':
|
|
954
|
+
template = this.readSpatialFilter();
|
|
955
|
+
break;
|
|
956
|
+
case 'ACAD_PROXY_ENTITY':
|
|
957
|
+
template = this.readProxyEntity();
|
|
958
|
+
break;
|
|
959
|
+
case 'ACAD_PROXY_OBJECT':
|
|
960
|
+
template = this.readProxyObject();
|
|
961
|
+
break;
|
|
962
|
+
case DxfFileToken.ObjectVisualStyle:
|
|
963
|
+
template = this.readVisualStyle();
|
|
964
|
+
break;
|
|
965
|
+
case DxfFileToken.ObjectPlotSettings:
|
|
966
|
+
template = this.readPlotSettings();
|
|
967
|
+
break;
|
|
968
|
+
case DxfFileToken.ObjectTableStyle:
|
|
969
|
+
template = this.readTableStyle();
|
|
970
|
+
break;
|
|
971
|
+
case DxfFileToken.BlkRefObjectContextData:
|
|
972
|
+
template = this.readBlkRefObjectContextData();
|
|
973
|
+
break;
|
|
974
|
+
case DxfFileToken.MTextAttributeObjectContextData:
|
|
975
|
+
template = this.readMTextAttributeObjectContextData();
|
|
976
|
+
break;
|
|
977
|
+
case DxfFileToken.ObjectFieldList:
|
|
978
|
+
template = this.readFieldList();
|
|
979
|
+
break;
|
|
980
|
+
case DxfFileToken.ObjectField:
|
|
981
|
+
template = this.readField();
|
|
982
|
+
break;
|
|
983
|
+
}
|
|
984
|
+
if (template == null && c.isAnEntity) {
|
|
985
|
+
template = this.readUnknownEntity(c);
|
|
986
|
+
this._builder.Notify(`Unlisted object with DXF name ${c.dxfName} has been read as an UnknownEntity`, NotificationType.Warning);
|
|
987
|
+
}
|
|
988
|
+
else if (template == null && !c.isAnEntity) {
|
|
989
|
+
template = this.readUnknownNonGraphicalObject(c);
|
|
990
|
+
this._builder.Notify(`Unlisted object with DXF name ${c.dxfName} has been read as an UnknownNonGraphicalObject`, NotificationType.Warning);
|
|
991
|
+
}
|
|
992
|
+
return template;
|
|
993
|
+
}
|
|
994
|
+
// ==================== ENTITY READERS ====================
|
|
995
|
+
read3dFace() {
|
|
996
|
+
const face = new Face3D();
|
|
997
|
+
const template = new CadEntityTemplate(face);
|
|
998
|
+
this.readCommonEntityData(template);
|
|
999
|
+
if (this.R13_14Only) {
|
|
1000
|
+
face.firstCorner = this._objectReader.read3BitDouble();
|
|
1001
|
+
face.secondCorner = this._objectReader.read3BitDouble();
|
|
1002
|
+
face.thirdCorner = this._objectReader.read3BitDouble();
|
|
1003
|
+
face.fourthCorner = this._objectReader.read3BitDouble();
|
|
1004
|
+
face.flags = this._objectReader.readBitShort();
|
|
1005
|
+
}
|
|
1006
|
+
if (this.R2000Plus) {
|
|
1007
|
+
const noFlags = this._objectReader.readBit();
|
|
1008
|
+
const zIsZero = this._objectReader.readBit();
|
|
1009
|
+
const x = this._objectReader.readDouble();
|
|
1010
|
+
const y = this._objectReader.readDouble();
|
|
1011
|
+
let z = 0.0;
|
|
1012
|
+
if (!zIsZero)
|
|
1013
|
+
z = this._objectReader.readDouble();
|
|
1014
|
+
face.firstCorner = new XYZ(x, y, z);
|
|
1015
|
+
face.secondCorner = this._objectReader.read3BitDoubleWithDefault(face.firstCorner);
|
|
1016
|
+
face.thirdCorner = this._objectReader.read3BitDoubleWithDefault(face.secondCorner);
|
|
1017
|
+
face.fourthCorner = this._objectReader.read3BitDoubleWithDefault(face.thirdCorner);
|
|
1018
|
+
if (!noFlags)
|
|
1019
|
+
face.flags = this._objectReader.readBitShort();
|
|
1020
|
+
}
|
|
1021
|
+
return template;
|
|
1022
|
+
}
|
|
1023
|
+
readArc() {
|
|
1024
|
+
const arc = new Arc();
|
|
1025
|
+
const template = new CadEntityTemplate(arc);
|
|
1026
|
+
this.readCommonEntityData(template);
|
|
1027
|
+
arc.center = this._objectReader.read3BitDouble();
|
|
1028
|
+
const radius = this._objectReader.readBitDouble();
|
|
1029
|
+
arc.radius = radius <= 0 ? MathHelper.Epsilon : radius;
|
|
1030
|
+
arc.thickness = this._objectReader.readBitThickness();
|
|
1031
|
+
arc.normal = this._objectReader.readBitExtrusion();
|
|
1032
|
+
arc.startAngle = this._objectReader.readBitDouble();
|
|
1033
|
+
arc.endAngle = this._objectReader.readBitDouble();
|
|
1034
|
+
return template;
|
|
1035
|
+
}
|
|
1036
|
+
readCircle() {
|
|
1037
|
+
const circle = new Circle();
|
|
1038
|
+
const template = new CadEntityTemplate(circle);
|
|
1039
|
+
this.readCommonEntityData(template);
|
|
1040
|
+
circle.center = this._objectReader.read3BitDouble();
|
|
1041
|
+
const radius = this._objectReader.readBitDouble();
|
|
1042
|
+
circle.radius = radius <= 0 ? MathHelper.Epsilon : radius;
|
|
1043
|
+
circle.thickness = this._objectReader.readBitThickness();
|
|
1044
|
+
circle.normal = this._objectReader.readBitExtrusion();
|
|
1045
|
+
return template;
|
|
1046
|
+
}
|
|
1047
|
+
readLine() {
|
|
1048
|
+
const line = new Line();
|
|
1049
|
+
const template = new CadEntityTemplate(line);
|
|
1050
|
+
this.readCommonEntityData(template);
|
|
1051
|
+
if (this.R13_14Only) {
|
|
1052
|
+
line.startPoint = this._objectReader.read3BitDouble();
|
|
1053
|
+
line.endPoint = this._objectReader.read3BitDouble();
|
|
1054
|
+
}
|
|
1055
|
+
if (this.R2000Plus) {
|
|
1056
|
+
const flag = this._objectReader.readBit();
|
|
1057
|
+
const startX = this._objectReader.readDouble();
|
|
1058
|
+
const endX = this._objectReader.readBitDoubleWithDefault(startX);
|
|
1059
|
+
const startY = this._objectReader.readDouble();
|
|
1060
|
+
const endY = this._objectReader.readBitDoubleWithDefault(startY);
|
|
1061
|
+
let startZ = 0.0;
|
|
1062
|
+
let endZ = 0.0;
|
|
1063
|
+
if (!flag) {
|
|
1064
|
+
startZ = this._objectReader.readDouble();
|
|
1065
|
+
endZ = this._objectReader.readBitDoubleWithDefault(startZ);
|
|
1066
|
+
}
|
|
1067
|
+
line.startPoint = new XYZ(startX, startY, startZ);
|
|
1068
|
+
line.endPoint = new XYZ(endX, endY, endZ);
|
|
1069
|
+
}
|
|
1070
|
+
line.thickness = this._objectReader.readBitThickness();
|
|
1071
|
+
line.normal = this._objectReader.readBitExtrusion();
|
|
1072
|
+
return template;
|
|
1073
|
+
}
|
|
1074
|
+
readPoint() {
|
|
1075
|
+
const pt = new Point();
|
|
1076
|
+
const template = new CadEntityTemplate(pt);
|
|
1077
|
+
this.readCommonEntityData(template);
|
|
1078
|
+
pt.location = this._objectReader.read3BitDouble();
|
|
1079
|
+
pt.thickness = this._objectReader.readBitThickness();
|
|
1080
|
+
pt.normal = this._objectReader.readBitExtrusion();
|
|
1081
|
+
pt.rotation = this._objectReader.readBitDouble();
|
|
1082
|
+
return template;
|
|
1083
|
+
}
|
|
1084
|
+
readEllipse() {
|
|
1085
|
+
const ellipse = new Ellipse();
|
|
1086
|
+
const template = new CadEntityTemplate(ellipse);
|
|
1087
|
+
this.readCommonEntityData(template);
|
|
1088
|
+
ellipse.center = this._objectReader.read3BitDouble();
|
|
1089
|
+
ellipse.majorAxisEndPoint = this._objectReader.read3BitDouble();
|
|
1090
|
+
ellipse.normal = this._objectReader.read3BitDouble();
|
|
1091
|
+
ellipse.radiusRatio = this._objectReader.readBitDouble();
|
|
1092
|
+
ellipse.startParameter = this._objectReader.readBitDouble();
|
|
1093
|
+
ellipse.endParameter = this._objectReader.readBitDouble();
|
|
1094
|
+
return template;
|
|
1095
|
+
}
|
|
1096
|
+
readRay() {
|
|
1097
|
+
const ray = new Ray();
|
|
1098
|
+
const template = new CadEntityTemplate(ray);
|
|
1099
|
+
this.readCommonEntityData(template);
|
|
1100
|
+
ray.startPoint = this._objectReader.read3BitDouble();
|
|
1101
|
+
ray.direction = this._objectReader.read3BitDouble();
|
|
1102
|
+
return template;
|
|
1103
|
+
}
|
|
1104
|
+
readXLine() {
|
|
1105
|
+
const xline = new XLine();
|
|
1106
|
+
const template = new CadEntityTemplate(xline);
|
|
1107
|
+
this.readCommonEntityData(template);
|
|
1108
|
+
xline.firstPoint = this._objectReader.read3BitDouble();
|
|
1109
|
+
xline.direction = this._objectReader.read3BitDouble();
|
|
1110
|
+
return template;
|
|
1111
|
+
}
|
|
1112
|
+
readSolid() {
|
|
1113
|
+
const solid = new Solid();
|
|
1114
|
+
const template = new CadEntityTemplate(solid);
|
|
1115
|
+
this.readCommonEntityData(template);
|
|
1116
|
+
solid.thickness = this._objectReader.readBitThickness();
|
|
1117
|
+
const elevation = this._objectReader.readBitDouble();
|
|
1118
|
+
let pt = this._objectReader.read2RawDouble();
|
|
1119
|
+
solid.firstCorner = new XYZ(pt.x, pt.y, elevation);
|
|
1120
|
+
pt = this._objectReader.read2RawDouble();
|
|
1121
|
+
solid.secondCorner = new XYZ(pt.x, pt.y, elevation);
|
|
1122
|
+
pt = this._objectReader.read2RawDouble();
|
|
1123
|
+
solid.thirdCorner = new XYZ(pt.x, pt.y, elevation);
|
|
1124
|
+
pt = this._objectReader.read2RawDouble();
|
|
1125
|
+
solid.fourthCorner = new XYZ(pt.x, pt.y, elevation);
|
|
1126
|
+
solid.normal = this._objectReader.readBitExtrusion();
|
|
1127
|
+
return template;
|
|
1128
|
+
}
|
|
1129
|
+
readBlock() {
|
|
1130
|
+
const block = new Block(new BlockRecord());
|
|
1131
|
+
const template = new CadEntityTemplate(block);
|
|
1132
|
+
this.readCommonEntityData(template);
|
|
1133
|
+
const name = this._textReader.readVariableText();
|
|
1134
|
+
if (name && name.trim().length > 0)
|
|
1135
|
+
block.name = name;
|
|
1136
|
+
return template;
|
|
1137
|
+
}
|
|
1138
|
+
readEndBlock() {
|
|
1139
|
+
const block = new BlockEnd(new BlockRecord());
|
|
1140
|
+
const template = new CadEntityTemplate(block);
|
|
1141
|
+
this.readCommonEntityData(template);
|
|
1142
|
+
return template;
|
|
1143
|
+
}
|
|
1144
|
+
readSeqend() {
|
|
1145
|
+
const template = new CadEntityTemplate(new Seqend());
|
|
1146
|
+
this.readCommonEntityData(template);
|
|
1147
|
+
return template;
|
|
1148
|
+
}
|
|
1149
|
+
readShape() {
|
|
1150
|
+
const shape = new Shape();
|
|
1151
|
+
const template = new CadShapeTemplate(shape);
|
|
1152
|
+
this.readCommonEntityData(template);
|
|
1153
|
+
shape.insertionPoint = this._objectReader.read3BitDouble();
|
|
1154
|
+
shape.size = this._objectReader.readBitDouble();
|
|
1155
|
+
shape.rotation = this._objectReader.readBitDouble();
|
|
1156
|
+
shape.relativeXScale = this._objectReader.readBitDouble();
|
|
1157
|
+
shape.obliqueAngle = this._objectReader.readBitDouble();
|
|
1158
|
+
shape.thickness = this._objectReader.readBitDouble();
|
|
1159
|
+
shape.shapeIndex = this._objectReader.readBitShort() & 0xFFFF;
|
|
1160
|
+
shape.normal = this._objectReader.read3BitDouble();
|
|
1161
|
+
template.ShapeFileHandle = this.handleReference();
|
|
1162
|
+
return template;
|
|
1163
|
+
}
|
|
1164
|
+
readTolerance() {
|
|
1165
|
+
const tolerance = new Tolerance();
|
|
1166
|
+
const template = new CadToleranceTemplate(tolerance);
|
|
1167
|
+
this.readCommonEntityData(template);
|
|
1168
|
+
if (this.R13_14Only) {
|
|
1169
|
+
this._objectReader.readBitShort();
|
|
1170
|
+
this._objectReader.readBitDouble();
|
|
1171
|
+
this._objectReader.readBitDouble();
|
|
1172
|
+
}
|
|
1173
|
+
tolerance.insertionPoint = this._objectReader.read3BitDouble();
|
|
1174
|
+
tolerance.direction = this._objectReader.read3BitDouble();
|
|
1175
|
+
tolerance.normal = this._objectReader.read3BitDouble();
|
|
1176
|
+
tolerance.text = this._textReader.readVariableText();
|
|
1177
|
+
template.DimensionStyleHandle = this.handleReference();
|
|
1178
|
+
return template;
|
|
1179
|
+
}
|
|
1180
|
+
readPlaceHolder() {
|
|
1181
|
+
const template = new CadNonGraphicalObjectTemplate(new AcdbPlaceHolder());
|
|
1182
|
+
this.readCommonNonEntityData(template);
|
|
1183
|
+
return template;
|
|
1184
|
+
}
|
|
1185
|
+
readUnknownEntity(dxfClass) {
|
|
1186
|
+
const entity = new UnknownEntity(dxfClass);
|
|
1187
|
+
const template = new CadUnknownEntityTemplate(entity);
|
|
1188
|
+
this.readCommonEntityData(template);
|
|
1189
|
+
return template;
|
|
1190
|
+
}
|
|
1191
|
+
readUnknownNonGraphicalObject(dxfClass) {
|
|
1192
|
+
const obj = new UnknownNonGraphicalObject(dxfClass);
|
|
1193
|
+
const template = new CadUnknownNonGraphicalObjectTemplate(obj);
|
|
1194
|
+
this.readCommonNonEntityData(template);
|
|
1195
|
+
return template;
|
|
1196
|
+
}
|
|
1197
|
+
// ==================== BLOCK HEADER ====================
|
|
1198
|
+
readBlockControlObject() {
|
|
1199
|
+
const template = new CadBlockCtrlObjectTemplate(new BlockRecordsTable());
|
|
1200
|
+
this.readDocumentTable(template);
|
|
1201
|
+
template.ModelSpaceHandle = this.handleReference();
|
|
1202
|
+
template.PaperSpaceHandle = this.handleReference();
|
|
1203
|
+
return template;
|
|
1204
|
+
}
|
|
1205
|
+
readBlockHeader() {
|
|
1206
|
+
const record = new BlockRecord();
|
|
1207
|
+
const block = record.blockEntity;
|
|
1208
|
+
const template = new CadBlockRecordTemplate(record);
|
|
1209
|
+
this._builder.BlockRecordTemplates.push(template);
|
|
1210
|
+
this.readCommonNonEntityData(template);
|
|
1211
|
+
const name = this._textReader.readVariableText();
|
|
1212
|
+
if (name.toLowerCase() === BlockRecord.ModelSpaceName.toLowerCase() ||
|
|
1213
|
+
name.toLowerCase() === BlockRecord.PaperSpaceName.toLowerCase()) {
|
|
1214
|
+
record.name = name;
|
|
1215
|
+
}
|
|
1216
|
+
this.readXrefDependantBit(template.CadObject);
|
|
1217
|
+
if (this._objectReader.readBit())
|
|
1218
|
+
block.flags |= BlockTypeFlags.Anonymous;
|
|
1219
|
+
const hasatts = this._objectReader.readBit();
|
|
1220
|
+
if (this._objectReader.readBit())
|
|
1221
|
+
block.flags |= BlockTypeFlags.XRef;
|
|
1222
|
+
if (this._objectReader.readBit())
|
|
1223
|
+
block.flags |= BlockTypeFlags.XRefOverlay;
|
|
1224
|
+
if (this.R2000Plus) {
|
|
1225
|
+
block.isUnloaded = this._objectReader.readBit();
|
|
1226
|
+
}
|
|
1227
|
+
let nownedObjects = 0;
|
|
1228
|
+
if (this.R2004Plus && !(block.flags & BlockTypeFlags.XRef) && !(block.flags & BlockTypeFlags.XRefOverlay)) {
|
|
1229
|
+
nownedObjects = this._objectReader.readBitLong();
|
|
1230
|
+
}
|
|
1231
|
+
block.basePoint = this._objectReader.read3BitDouble();
|
|
1232
|
+
block.xRefPath = this._textReader.readVariableText();
|
|
1233
|
+
let insertCount = 0;
|
|
1234
|
+
if (this.R2000Plus) {
|
|
1235
|
+
for (let i = this._objectReader.readByte(); i !== 0; i = this._objectReader.readByte())
|
|
1236
|
+
++insertCount;
|
|
1237
|
+
block.comments = this._textReader.readVariableText();
|
|
1238
|
+
const n = this._objectReader.readBitLong();
|
|
1239
|
+
const data = [];
|
|
1240
|
+
for (let i = 0; i < n; ++i)
|
|
1241
|
+
data.push(this._objectReader.readByte());
|
|
1242
|
+
record.preview = new Uint8Array(data);
|
|
1243
|
+
}
|
|
1244
|
+
if (this.R2007Plus) {
|
|
1245
|
+
record.units = this._objectReader.readBitShort();
|
|
1246
|
+
record.isExplodable = this._objectReader.readBit();
|
|
1247
|
+
record.canScale = this._objectReader.readByte() > 0;
|
|
1248
|
+
}
|
|
1249
|
+
this.handleReference();
|
|
1250
|
+
template.BeginBlockHandle = this.handleReference();
|
|
1251
|
+
if (this._version >= ACadVersion.AC1012 && this._version <= ACadVersion.AC1015
|
|
1252
|
+
&& !(block.flags & BlockTypeFlags.XRef) && !(block.flags & BlockTypeFlags.XRefOverlay)) {
|
|
1253
|
+
template.FirstEntityHandle = this.handleReference();
|
|
1254
|
+
template.LastEntityHandle = this.handleReference();
|
|
1255
|
+
}
|
|
1256
|
+
if (this.R2004Plus) {
|
|
1257
|
+
for (let i = 0; i < nownedObjects; ++i)
|
|
1258
|
+
template.OwnedObjectsHandlers.add(this.handleReference());
|
|
1259
|
+
}
|
|
1260
|
+
template.EndBlockHandle = this.handleReference();
|
|
1261
|
+
if (this.R2000Plus) {
|
|
1262
|
+
for (let i = 0; i < insertCount; ++i)
|
|
1263
|
+
template.InsertHandles.push(this.handleReference());
|
|
1264
|
+
template.LayoutHandle = this.handleReference();
|
|
1265
|
+
}
|
|
1266
|
+
return template;
|
|
1267
|
+
}
|
|
1268
|
+
// ==================== TABLE READERS ====================
|
|
1269
|
+
readDocumentTable(template) {
|
|
1270
|
+
this.readCommonNonEntityData(template);
|
|
1271
|
+
const numentries = this._objectReader.readBitLong();
|
|
1272
|
+
for (let i = 0; i < numentries; ++i)
|
|
1273
|
+
template.EntryHandles.add(this.handleReference());
|
|
1274
|
+
return template;
|
|
1275
|
+
}
|
|
1276
|
+
readDocumentTableGeneric(table) {
|
|
1277
|
+
const template = new CadTableTemplate(table);
|
|
1278
|
+
return this.readDocumentTable(template);
|
|
1279
|
+
}
|
|
1280
|
+
readLTypeControlObject() {
|
|
1281
|
+
const template = new CadTableTemplate(new LineTypesTable());
|
|
1282
|
+
this.readDocumentTable(template);
|
|
1283
|
+
template.EntryHandles.add(this.handleReference());
|
|
1284
|
+
template.EntryHandles.add(this.handleReference());
|
|
1285
|
+
return template;
|
|
1286
|
+
}
|
|
1287
|
+
readAppId() {
|
|
1288
|
+
const appId = new AppId();
|
|
1289
|
+
const template = new CadTableEntryTemplate(appId);
|
|
1290
|
+
this.readCommonNonEntityData(template);
|
|
1291
|
+
const name = this._textReader.readVariableText();
|
|
1292
|
+
if (name && name.trim().length > 0)
|
|
1293
|
+
appId.name = name;
|
|
1294
|
+
this.readXrefDependantBit(appId);
|
|
1295
|
+
this._objectReader.readByte();
|
|
1296
|
+
this.handleReference();
|
|
1297
|
+
return template;
|
|
1298
|
+
}
|
|
1299
|
+
readTextStyle() {
|
|
1300
|
+
const style = new TextStyle();
|
|
1301
|
+
const template = new CadTableEntryTemplate(style);
|
|
1302
|
+
this.readCommonNonEntityData(template);
|
|
1303
|
+
const name = this._textReader.readVariableText();
|
|
1304
|
+
if (name && name.trim().length > 0)
|
|
1305
|
+
style.name = name;
|
|
1306
|
+
this.readXrefDependantBit(template.CadObject);
|
|
1307
|
+
if (this._objectReader.readBit())
|
|
1308
|
+
style.flags |= StyleFlags.IsShape;
|
|
1309
|
+
if (this._objectReader.readBit())
|
|
1310
|
+
style.flags |= StyleFlags.VerticalText;
|
|
1311
|
+
style.height = this._objectReader.readBitDouble();
|
|
1312
|
+
style.width = this._objectReader.readBitDouble();
|
|
1313
|
+
style.obliqueAngle = this._objectReader.readBitDouble();
|
|
1314
|
+
style.mirrorFlag = this._objectReader.readByte();
|
|
1315
|
+
style.lastHeight = this._objectReader.readBitDouble();
|
|
1316
|
+
style.filename = this._textReader.readVariableText();
|
|
1317
|
+
style.bigFontFilename = this._textReader.readVariableText();
|
|
1318
|
+
this.handleReference();
|
|
1319
|
+
return template;
|
|
1320
|
+
}
|
|
1321
|
+
readLayer() {
|
|
1322
|
+
const layer = new Layer();
|
|
1323
|
+
const template = new CadLayerTemplate(layer);
|
|
1324
|
+
this.readCommonNonEntityData(template);
|
|
1325
|
+
const name = this._textReader.readVariableText();
|
|
1326
|
+
if (name && name.trim().length > 0)
|
|
1327
|
+
layer.name = name;
|
|
1328
|
+
this.readXrefDependantBit(template.CadObject);
|
|
1329
|
+
if (this.R13_14Only) {
|
|
1330
|
+
if (this._objectReader.readBit())
|
|
1331
|
+
layer.flags |= LayerFlags.Frozen;
|
|
1332
|
+
layer.isOn = this._objectReader.readBit();
|
|
1333
|
+
if (this._objectReader.readBit())
|
|
1334
|
+
layer.flags |= LayerFlags.FrozenNewViewports;
|
|
1335
|
+
if (this._objectReader.readBit())
|
|
1336
|
+
layer.flags |= LayerFlags.Locked;
|
|
1337
|
+
}
|
|
1338
|
+
if (this.R2000Plus) {
|
|
1339
|
+
const values = this._objectReader.readBitShort();
|
|
1340
|
+
if ((values & 0b1) > 0)
|
|
1341
|
+
layer.flags |= LayerFlags.Frozen;
|
|
1342
|
+
layer.isOn = (values & 0b10) === 0;
|
|
1343
|
+
if ((values & 0b100) > 0)
|
|
1344
|
+
layer.flags |= LayerFlags.FrozenNewViewports;
|
|
1345
|
+
if ((values & 0b1000) > 0)
|
|
1346
|
+
layer.flags |= LayerFlags.Locked;
|
|
1347
|
+
layer.plotFlag = (values & 0b10000) > 0;
|
|
1348
|
+
const lineweight = (values & 0x3E0) >> 5;
|
|
1349
|
+
layer.lineWeight = CadUtils.toValue(lineweight);
|
|
1350
|
+
}
|
|
1351
|
+
const color = this._mergedReaders.readCmColor();
|
|
1352
|
+
layer.color = color.isByBlock || color.isByLayer ? new Color(30) : color;
|
|
1353
|
+
template.LayerControlHandle = this.handleReference();
|
|
1354
|
+
if (this.R2000Plus)
|
|
1355
|
+
template.PlotStyleHandle = this.handleReference();
|
|
1356
|
+
if (this.R2007Plus)
|
|
1357
|
+
template.MaterialHandle = this.handleReference();
|
|
1358
|
+
template.LineTypeHandle = this.handleReference();
|
|
1359
|
+
if (this.R2013Plus)
|
|
1360
|
+
this.handleReference();
|
|
1361
|
+
return template;
|
|
1362
|
+
}
|
|
1363
|
+
readLType() {
|
|
1364
|
+
const ltype = new LineType();
|
|
1365
|
+
const template = new CadLineTypeTemplate(ltype);
|
|
1366
|
+
this.readCommonNonEntityData(template);
|
|
1367
|
+
const name = this._textReader.readVariableText();
|
|
1368
|
+
if (name && name.trim().length > 0)
|
|
1369
|
+
ltype.name = name;
|
|
1370
|
+
this.readXrefDependantBit(template.CadObject);
|
|
1371
|
+
ltype.description = this._textReader.readVariableText();
|
|
1372
|
+
template.TotalLen = this._objectReader.readBitDouble();
|
|
1373
|
+
ltype.alignment = String.fromCharCode(this._objectReader.readRawChar());
|
|
1374
|
+
const ndashes = this._objectReader.readByte();
|
|
1375
|
+
let isText = false;
|
|
1376
|
+
for (let i = 0; i < ndashes; i++) {
|
|
1377
|
+
const segment = new CadLineTypeTemplate.SegmentTemplate();
|
|
1378
|
+
segment.Segment.length = this._objectReader.readBitDouble();
|
|
1379
|
+
segment.Segment.shapeNumber = this._objectReader.readBitShort();
|
|
1380
|
+
segment.Segment.offset = new XY(this._objectReader.readDouble(), this._objectReader.readDouble());
|
|
1381
|
+
segment.Segment.scale = this._objectReader.readBitDouble();
|
|
1382
|
+
segment.Segment.rotation = this._objectReader.readBitDouble();
|
|
1383
|
+
segment.Segment.shapeFlags = this._objectReader.readBitShort();
|
|
1384
|
+
if (segment.Segment.shapeFlags & LineTypeShapeFlags.Text)
|
|
1385
|
+
isText = true;
|
|
1386
|
+
template.SegmentTemplates.push(segment);
|
|
1387
|
+
}
|
|
1388
|
+
let textarea = null;
|
|
1389
|
+
if (this._version <= ACadVersion.AC1018) {
|
|
1390
|
+
textarea = this._objectReader.readBytes(256);
|
|
1391
|
+
}
|
|
1392
|
+
if (this.R2007Plus && isText) {
|
|
1393
|
+
textarea = this._objectReader.readBytes(512);
|
|
1394
|
+
}
|
|
1395
|
+
if (isText && textarea) {
|
|
1396
|
+
this.readLineTypeSegmentTexts(template.SegmentTemplates, textarea);
|
|
1397
|
+
}
|
|
1398
|
+
template.LtypeControlHandle = this.handleReference();
|
|
1399
|
+
for (let i = 0; i < ndashes; i++) {
|
|
1400
|
+
template.SegmentTemplates[i].StyleHandle = this.handleReference();
|
|
1401
|
+
}
|
|
1402
|
+
return template;
|
|
1403
|
+
}
|
|
1404
|
+
readLineTypeSegmentTexts(segments, textArea) {
|
|
1405
|
+
if (!segments || !textArea || textArea.length === 0)
|
|
1406
|
+
return;
|
|
1407
|
+
for (const segment of segments) {
|
|
1408
|
+
if (!(segment.Segment.shapeFlags & LineTypeShapeFlags.Text))
|
|
1409
|
+
continue;
|
|
1410
|
+
const offset = segment.Segment.shapeNumber & 0xFFFF;
|
|
1411
|
+
if (offset >= textArea.length) {
|
|
1412
|
+
this._builder.Notify(`Unable to read linetype text segment; offset ${offset} is outside the available buffer (${textArea.length} bytes).`, NotificationType.Warning);
|
|
1413
|
+
segment.Segment.text = '';
|
|
1414
|
+
segment.Segment.shapeNumber = 0;
|
|
1415
|
+
continue;
|
|
1416
|
+
}
|
|
1417
|
+
segment.Segment.text = this.readLineTypeTextString(textArea, offset);
|
|
1418
|
+
segment.Segment.shapeNumber = 0;
|
|
1419
|
+
}
|
|
1420
|
+
}
|
|
1421
|
+
readLineTypeTextString(buffer, offset) {
|
|
1422
|
+
if (!buffer || offset < 0 || offset >= buffer.length)
|
|
1423
|
+
return '';
|
|
1424
|
+
if (DwgObjectReader.looksLikeUtf16Le(buffer, offset)) {
|
|
1425
|
+
let end = offset;
|
|
1426
|
+
while (end + 1 < buffer.length) {
|
|
1427
|
+
if (buffer[end] === 0 && buffer[end + 1] === 0)
|
|
1428
|
+
break;
|
|
1429
|
+
end += 2;
|
|
1430
|
+
}
|
|
1431
|
+
return new TextDecoder('utf-16le').decode(buffer.slice(offset, end));
|
|
1432
|
+
}
|
|
1433
|
+
let endAscii = offset;
|
|
1434
|
+
while (endAscii < buffer.length && buffer[endAscii] !== 0)
|
|
1435
|
+
endAscii++;
|
|
1436
|
+
if (endAscii === offset)
|
|
1437
|
+
return '';
|
|
1438
|
+
return new TextDecoder('ascii').decode(buffer.slice(offset, endAscii));
|
|
1439
|
+
}
|
|
1440
|
+
// ==================== DIMENSION READERS ====================
|
|
1441
|
+
readCommonDimensionData(template) {
|
|
1442
|
+
this.readCommonEntityData(template);
|
|
1443
|
+
const dimension = template.CadObject;
|
|
1444
|
+
if (this.R2010Plus)
|
|
1445
|
+
dimension.version = this._objectReader.readByte();
|
|
1446
|
+
dimension.normal = this._objectReader.read3BitDouble();
|
|
1447
|
+
const midpt = this._objectReader.read2RawDouble();
|
|
1448
|
+
const elevation = this._objectReader.readBitDouble();
|
|
1449
|
+
dimension.textMiddlePoint = new XYZ(midpt.x, midpt.y, elevation);
|
|
1450
|
+
const flags = this._objectReader.readByte();
|
|
1451
|
+
dimension.isTextUserDefinedLocation = (flags & 0b01) === 0;
|
|
1452
|
+
dimension.text = this._textReader.readVariableText();
|
|
1453
|
+
dimension.textRotation = this._objectReader.readBitDouble();
|
|
1454
|
+
dimension.horizontalDirection = this._objectReader.readBitDouble();
|
|
1455
|
+
const insertionScaleFactor = new XYZ(this._objectReader.readBitDouble(), this._objectReader.readBitDouble(), this._objectReader.readBitDouble());
|
|
1456
|
+
const insertionRotation = this._objectReader.readBitDouble();
|
|
1457
|
+
if (this.R2000Plus) {
|
|
1458
|
+
dimension.attachmentPoint = this._objectReader.readBitShort();
|
|
1459
|
+
dimension.lineSpacingStyle = this._objectReader.readBitShort();
|
|
1460
|
+
dimension.lineSpacingFactor = this._objectReader.readBitDouble();
|
|
1461
|
+
this._objectReader.readBitDouble();
|
|
1462
|
+
}
|
|
1463
|
+
if (this.R2007Plus) {
|
|
1464
|
+
this._objectReader.readBit();
|
|
1465
|
+
dimension.flipArrow1 = this._objectReader.readBit();
|
|
1466
|
+
dimension.flipArrow2 = this._objectReader.readBit();
|
|
1467
|
+
}
|
|
1468
|
+
const pt = this._objectReader.read2RawDouble();
|
|
1469
|
+
dimension.insertionPoint = new XYZ(pt.x, pt.y, elevation);
|
|
1470
|
+
}
|
|
1471
|
+
readCommonDimensionAlignedData(template) {
|
|
1472
|
+
const dimension = template.CadObject;
|
|
1473
|
+
dimension.firstPoint = this._objectReader.read3BitDouble();
|
|
1474
|
+
dimension.secondPoint = this._objectReader.read3BitDouble();
|
|
1475
|
+
dimension.definitionPoint = this._objectReader.read3BitDouble();
|
|
1476
|
+
dimension.extLineRotation = this._objectReader.readBitDouble();
|
|
1477
|
+
}
|
|
1478
|
+
readCommonDimensionHandles(template) {
|
|
1479
|
+
template.StyleHandle = this.handleReference();
|
|
1480
|
+
template.BlockHandle = this.handleReference();
|
|
1481
|
+
}
|
|
1482
|
+
readDimAligned() {
|
|
1483
|
+
const dimension = new DimensionAligned();
|
|
1484
|
+
const template = new CadDimensionTemplate(dimension);
|
|
1485
|
+
this.readCommonDimensionData(template);
|
|
1486
|
+
this.readCommonDimensionAlignedData(template);
|
|
1487
|
+
this.readCommonDimensionHandles(template);
|
|
1488
|
+
return template;
|
|
1489
|
+
}
|
|
1490
|
+
readDimAngular3pt() {
|
|
1491
|
+
const dimension = new DimensionAngular3Pt();
|
|
1492
|
+
const template = new CadDimensionTemplate(dimension);
|
|
1493
|
+
this.readCommonDimensionData(template);
|
|
1494
|
+
dimension.definitionPoint = this._objectReader.read3BitDouble();
|
|
1495
|
+
dimension.firstPoint = this._objectReader.read3BitDouble();
|
|
1496
|
+
dimension.secondPoint = this._objectReader.read3BitDouble();
|
|
1497
|
+
dimension.angleVertex = this._objectReader.read3BitDouble();
|
|
1498
|
+
this.readCommonDimensionHandles(template);
|
|
1499
|
+
return template;
|
|
1500
|
+
}
|
|
1501
|
+
readDimDiameter() {
|
|
1502
|
+
const dimension = new DimensionDiameter();
|
|
1503
|
+
const template = new CadDimensionTemplate(dimension);
|
|
1504
|
+
this.readCommonDimensionData(template);
|
|
1505
|
+
dimension.definitionPoint = this._objectReader.read3BitDouble();
|
|
1506
|
+
dimension.angleVertex = this._objectReader.read3BitDouble();
|
|
1507
|
+
dimension.leaderLength = this._objectReader.readBitDouble();
|
|
1508
|
+
this.readCommonDimensionHandles(template);
|
|
1509
|
+
return template;
|
|
1510
|
+
}
|
|
1511
|
+
readDimLine2pt() {
|
|
1512
|
+
const dimension = new DimensionAngular2Line();
|
|
1513
|
+
const template = new CadDimensionTemplate(dimension);
|
|
1514
|
+
this.readCommonDimensionData(template);
|
|
1515
|
+
const xy = this._objectReader.read2RawDouble();
|
|
1516
|
+
dimension.dimensionArc = new XYZ(xy.x, xy.y, dimension.textMiddlePoint.z);
|
|
1517
|
+
dimension.firstPoint = this._objectReader.read3BitDouble();
|
|
1518
|
+
dimension.secondPoint = this._objectReader.read3BitDouble();
|
|
1519
|
+
dimension.angleVertex = this._objectReader.read3BitDouble();
|
|
1520
|
+
dimension.definitionPoint = this._objectReader.read3BitDouble();
|
|
1521
|
+
this.readCommonDimensionHandles(template);
|
|
1522
|
+
return template;
|
|
1523
|
+
}
|
|
1524
|
+
readDimLinear() {
|
|
1525
|
+
const dimension = new DimensionLinear();
|
|
1526
|
+
const template = new CadDimensionTemplate(dimension);
|
|
1527
|
+
this.readCommonDimensionData(template);
|
|
1528
|
+
this.readCommonDimensionAlignedData(template);
|
|
1529
|
+
dimension.rotation = this._objectReader.readBitDouble();
|
|
1530
|
+
this.readCommonDimensionHandles(template);
|
|
1531
|
+
return template;
|
|
1532
|
+
}
|
|
1533
|
+
readDimOrdinate() {
|
|
1534
|
+
const dimension = new DimensionOrdinate();
|
|
1535
|
+
const template = new CadDimensionTemplate(dimension);
|
|
1536
|
+
this.readCommonDimensionData(template);
|
|
1537
|
+
dimension.definitionPoint = this._objectReader.read3BitDouble();
|
|
1538
|
+
dimension.featureLocation = this._objectReader.read3BitDouble();
|
|
1539
|
+
dimension.leaderEndpoint = this._objectReader.read3BitDouble();
|
|
1540
|
+
const flags = this._objectReader.readByte();
|
|
1541
|
+
dimension.isOrdinateTypeX = (flags & 0b01) !== 0;
|
|
1542
|
+
this.readCommonDimensionHandles(template);
|
|
1543
|
+
return template;
|
|
1544
|
+
}
|
|
1545
|
+
readDimRadius() {
|
|
1546
|
+
const dimension = new DimensionRadius();
|
|
1547
|
+
const template = new CadDimensionTemplate(dimension);
|
|
1548
|
+
this.readCommonDimensionData(template);
|
|
1549
|
+
dimension.definitionPoint = this._objectReader.read3BitDouble();
|
|
1550
|
+
dimension.angleVertex = this._objectReader.read3BitDouble();
|
|
1551
|
+
dimension.leaderLength = this._objectReader.readBitDouble();
|
|
1552
|
+
this.readCommonDimensionHandles(template);
|
|
1553
|
+
return template;
|
|
1554
|
+
}
|
|
1555
|
+
// ==================== TEXT ENTITIES ====================
|
|
1556
|
+
readText() {
|
|
1557
|
+
const text = new TextEntity();
|
|
1558
|
+
const template = new CadTextEntityTemplate(text);
|
|
1559
|
+
this.readCommonTextData(template);
|
|
1560
|
+
return template;
|
|
1561
|
+
}
|
|
1562
|
+
readAttribute() {
|
|
1563
|
+
const att = new AttributeEntity();
|
|
1564
|
+
const template = new CadAttributeTemplate(att);
|
|
1565
|
+
this.readCommonTextData(template);
|
|
1566
|
+
this.readCommonAttData(template);
|
|
1567
|
+
return template;
|
|
1568
|
+
}
|
|
1569
|
+
readAttributeDefinition() {
|
|
1570
|
+
const attdef = new AttributeDefinition();
|
|
1571
|
+
const template = new CadAttributeTemplate(attdef);
|
|
1572
|
+
this.readCommonTextData(template);
|
|
1573
|
+
this.readCommonAttData(template);
|
|
1574
|
+
if (this.R2010Plus)
|
|
1575
|
+
attdef.version = this._objectReader.readByte();
|
|
1576
|
+
attdef.prompt = this._textReader.readVariableText();
|
|
1577
|
+
return template;
|
|
1578
|
+
}
|
|
1579
|
+
readCommonAttData(template) {
|
|
1580
|
+
const att = template.CadObject;
|
|
1581
|
+
if (this.R2010Plus)
|
|
1582
|
+
att.version = this._objectReader.readByte();
|
|
1583
|
+
if (this.R2018Plus)
|
|
1584
|
+
att.attributeType = this._objectReader.readByte();
|
|
1585
|
+
switch (att.attributeType) {
|
|
1586
|
+
case AttributeType.MultiLine:
|
|
1587
|
+
case AttributeType.ConstantMultiLine: {
|
|
1588
|
+
att.mText = new MText();
|
|
1589
|
+
const mtextTemplate = new CadTextEntityTemplate(att.mText);
|
|
1590
|
+
template.MTextTemplate = mtextTemplate;
|
|
1591
|
+
this.readEntityMode(mtextTemplate);
|
|
1592
|
+
this.readMTextBody(mtextTemplate, false);
|
|
1593
|
+
const dataSize = this._objectReader.readBitShort();
|
|
1594
|
+
if (dataSize > 0) {
|
|
1595
|
+
this._objectReader.readBytes(dataSize);
|
|
1596
|
+
this.handleReference();
|
|
1597
|
+
this._objectReader.readBitShort();
|
|
1598
|
+
}
|
|
1599
|
+
break;
|
|
1600
|
+
}
|
|
1601
|
+
}
|
|
1602
|
+
att.tag = this._textReader.readVariableText();
|
|
1603
|
+
this._objectReader.readBitShort();
|
|
1604
|
+
att.flags = this._objectReader.readByte();
|
|
1605
|
+
if (this.R2007Plus)
|
|
1606
|
+
att.isReallyLocked = this._objectReader.readBit();
|
|
1607
|
+
}
|
|
1608
|
+
readCommonTextData(template) {
|
|
1609
|
+
this.readCommonEntityData(template);
|
|
1610
|
+
const text = template.CadObject;
|
|
1611
|
+
let elevation = 0.0;
|
|
1612
|
+
let pt;
|
|
1613
|
+
if (this.R13_14Only) {
|
|
1614
|
+
elevation = this._objectReader.readBitDouble();
|
|
1615
|
+
pt = this._objectReader.read2RawDouble();
|
|
1616
|
+
text.insertPoint = new XYZ(pt.x, pt.y, elevation);
|
|
1617
|
+
pt = this._objectReader.read2RawDouble();
|
|
1618
|
+
text.alignmentPoint = new XYZ(pt.x, pt.y, elevation);
|
|
1619
|
+
text.normal = this._objectReader.read3BitDouble();
|
|
1620
|
+
text.thickness = this._objectReader.readBitDouble();
|
|
1621
|
+
text.obliqueAngle = this._objectReader.readBitDouble();
|
|
1622
|
+
text.rotation = this._objectReader.readBitDouble();
|
|
1623
|
+
text.height = this._objectReader.readBitDouble();
|
|
1624
|
+
text.widthFactor = this._objectReader.readBitDouble();
|
|
1625
|
+
text.value = this._textReader.readVariableText();
|
|
1626
|
+
text.mirror = this._objectReader.readBitShort();
|
|
1627
|
+
text.horizontalAlignment = this._objectReader.readBitShort();
|
|
1628
|
+
text.verticalAlignment = this._objectReader.readBitShort();
|
|
1629
|
+
template.StyleHandle = this.handleReference();
|
|
1630
|
+
return;
|
|
1631
|
+
}
|
|
1632
|
+
const dataFlags = this._objectReader.readByte();
|
|
1633
|
+
if ((dataFlags & 0x1) === 0)
|
|
1634
|
+
elevation = this._objectReader.readDouble();
|
|
1635
|
+
pt = this._objectReader.read2RawDouble();
|
|
1636
|
+
text.insertPoint = new XYZ(pt.x, pt.y, elevation);
|
|
1637
|
+
if ((dataFlags & 0x2) === 0) {
|
|
1638
|
+
const x = this._objectReader.readBitDoubleWithDefault(text.insertPoint.x);
|
|
1639
|
+
const y = this._objectReader.readBitDoubleWithDefault(text.insertPoint.y);
|
|
1640
|
+
text.alignmentPoint = new XYZ(x, y, elevation);
|
|
1641
|
+
}
|
|
1642
|
+
text.normal = this._objectReader.readBitExtrusion();
|
|
1643
|
+
text.thickness = this._objectReader.readBitThickness();
|
|
1644
|
+
if ((dataFlags & 0x4) === 0)
|
|
1645
|
+
text.obliqueAngle = this._objectReader.readDouble();
|
|
1646
|
+
if ((dataFlags & 0x8) === 0)
|
|
1647
|
+
text.rotation = this._objectReader.readDouble();
|
|
1648
|
+
text.height = this._objectReader.readDouble();
|
|
1649
|
+
if ((dataFlags & 0x10) === 0)
|
|
1650
|
+
text.widthFactor = this._objectReader.readDouble();
|
|
1651
|
+
text.value = this._textReader.readVariableText();
|
|
1652
|
+
if ((dataFlags & 0x20) === 0)
|
|
1653
|
+
text.mirror = this._objectReader.readBitShort();
|
|
1654
|
+
if ((dataFlags & 0x40) === 0)
|
|
1655
|
+
text.horizontalAlignment = this._objectReader.readBitShort();
|
|
1656
|
+
if ((dataFlags & 0x80) === 0)
|
|
1657
|
+
text.verticalAlignment = this._objectReader.readBitShort();
|
|
1658
|
+
template.StyleHandle = this.handleReference();
|
|
1659
|
+
}
|
|
1660
|
+
// ==================== INSERT ====================
|
|
1661
|
+
readInsert() {
|
|
1662
|
+
const template = new CadInsertTemplate(new Insert());
|
|
1663
|
+
this.readInsertCommonData(template);
|
|
1664
|
+
this.readInsertCommonHandles(template);
|
|
1665
|
+
return template;
|
|
1666
|
+
}
|
|
1667
|
+
readMInsert() {
|
|
1668
|
+
const insert = new Insert();
|
|
1669
|
+
const template = new CadInsertTemplate(insert);
|
|
1670
|
+
this.readInsertCommonData(template);
|
|
1671
|
+
insert.columnCount = this._objectReader.readBitShort() & 0xFFFF;
|
|
1672
|
+
insert.rowCount = this._objectReader.readBitShort() & 0xFFFF;
|
|
1673
|
+
insert.columnSpacing = this._objectReader.readBitDouble();
|
|
1674
|
+
insert.rowSpacing = this._objectReader.readBitDouble();
|
|
1675
|
+
this.readInsertCommonHandles(template);
|
|
1676
|
+
return template;
|
|
1677
|
+
}
|
|
1678
|
+
readInsertCommonData(template) {
|
|
1679
|
+
const insert = template.CadObject;
|
|
1680
|
+
this.readCommonEntityData(template);
|
|
1681
|
+
insert.insertPoint = this._objectReader.read3BitDouble();
|
|
1682
|
+
if (this.R13_14Only) {
|
|
1683
|
+
const scale = this._objectReader.read3BitDouble();
|
|
1684
|
+
insert.xScale = scale.x;
|
|
1685
|
+
insert.yScale = scale.y;
|
|
1686
|
+
insert.zScale = scale.z;
|
|
1687
|
+
}
|
|
1688
|
+
if (this.R2000Plus) {
|
|
1689
|
+
switch (this._objectReader.read2Bits()) {
|
|
1690
|
+
case 0:
|
|
1691
|
+
insert.xScale = this._objectReader.readDouble();
|
|
1692
|
+
insert.yScale = this._objectReader.readBitDoubleWithDefault(insert.xScale);
|
|
1693
|
+
insert.zScale = this._objectReader.readBitDoubleWithDefault(insert.xScale);
|
|
1694
|
+
break;
|
|
1695
|
+
case 1:
|
|
1696
|
+
insert.yScale = this._objectReader.readBitDoubleWithDefault(insert.xScale);
|
|
1697
|
+
insert.zScale = this._objectReader.readBitDoubleWithDefault(insert.xScale);
|
|
1698
|
+
break;
|
|
1699
|
+
case 2: {
|
|
1700
|
+
const xyz = this._objectReader.readDouble();
|
|
1701
|
+
insert.xScale = xyz;
|
|
1702
|
+
insert.yScale = xyz;
|
|
1703
|
+
insert.zScale = xyz;
|
|
1704
|
+
break;
|
|
1705
|
+
}
|
|
1706
|
+
case 3:
|
|
1707
|
+
insert.xScale = 1;
|
|
1708
|
+
insert.yScale = 1;
|
|
1709
|
+
insert.zScale = 1;
|
|
1710
|
+
break;
|
|
1711
|
+
}
|
|
1712
|
+
}
|
|
1713
|
+
insert.rotation = this._objectReader.readBitDouble();
|
|
1714
|
+
insert.normal = this._objectReader.read3BitDouble();
|
|
1715
|
+
template.HasAtts = this._objectReader.readBit();
|
|
1716
|
+
template.OwnedObjectsCount = 0;
|
|
1717
|
+
if (this.R2004Plus && template.HasAtts)
|
|
1718
|
+
template.OwnedObjectsCount = this._objectReader.readBitLong();
|
|
1719
|
+
}
|
|
1720
|
+
readInsertCommonHandles(template) {
|
|
1721
|
+
template.BlockHeaderHandle = this.handleReference();
|
|
1722
|
+
if (!template.HasAtts)
|
|
1723
|
+
return;
|
|
1724
|
+
if (this._version >= ACadVersion.AC1012 && this._version <= ACadVersion.AC1015) {
|
|
1725
|
+
template.FirstAttributeHandle = this.handleReference();
|
|
1726
|
+
template.EndAttributeHandle = this.handleReference();
|
|
1727
|
+
}
|
|
1728
|
+
else if (this.R2004Plus) {
|
|
1729
|
+
for (let i = 0; i < template.OwnedObjectsCount; ++i)
|
|
1730
|
+
template.OwnedObjectsHandlers.add(this.handleReference());
|
|
1731
|
+
}
|
|
1732
|
+
template.SeqendHandle = this.handleReference();
|
|
1733
|
+
}
|
|
1734
|
+
// ==================== VERTEX ====================
|
|
1735
|
+
readVertex2D() {
|
|
1736
|
+
const vertex = new Vertex2D();
|
|
1737
|
+
const template = new CadEntityTemplate(vertex);
|
|
1738
|
+
this.readCommonEntityData(template);
|
|
1739
|
+
vertex.flags = this._objectReader.readByte();
|
|
1740
|
+
vertex.location = this._objectReader.read3BitDouble();
|
|
1741
|
+
const width = this._objectReader.readBitDouble();
|
|
1742
|
+
if (width < 0.0) {
|
|
1743
|
+
vertex.startWidth = -width;
|
|
1744
|
+
vertex.endWidth = -width;
|
|
1745
|
+
}
|
|
1746
|
+
else {
|
|
1747
|
+
vertex.startWidth = width;
|
|
1748
|
+
vertex.endWidth = this._objectReader.readBitDouble();
|
|
1749
|
+
}
|
|
1750
|
+
vertex.bulge = this._objectReader.readBitDouble();
|
|
1751
|
+
if (this.R2010Plus)
|
|
1752
|
+
vertex.id = this._objectReader.readBitLong();
|
|
1753
|
+
vertex.curveTangent = this._objectReader.readBitDouble();
|
|
1754
|
+
return template;
|
|
1755
|
+
}
|
|
1756
|
+
readVertex3D(vertex) {
|
|
1757
|
+
const template = new CadEntityTemplate(vertex);
|
|
1758
|
+
this.readCommonEntityData(template);
|
|
1759
|
+
vertex.flags = this._objectReader.readByte();
|
|
1760
|
+
vertex.location = this._objectReader.read3BitDouble();
|
|
1761
|
+
return template;
|
|
1762
|
+
}
|
|
1763
|
+
readPfaceVertex() {
|
|
1764
|
+
const face = new VertexFaceRecord();
|
|
1765
|
+
const template = new CadEntityTemplate(face);
|
|
1766
|
+
this.readCommonEntityData(template);
|
|
1767
|
+
face.index1 = this._objectReader.readBitShort();
|
|
1768
|
+
face.index2 = this._objectReader.readBitShort();
|
|
1769
|
+
face.index3 = this._objectReader.readBitShort();
|
|
1770
|
+
face.index4 = this._objectReader.readBitShort();
|
|
1771
|
+
return template;
|
|
1772
|
+
}
|
|
1773
|
+
// ==================== POLYLINE ====================
|
|
1774
|
+
readPolyline2D() {
|
|
1775
|
+
const pline = new Polyline2D();
|
|
1776
|
+
const template = new CadPolyLineTemplate(pline);
|
|
1777
|
+
this.readCommonEntityData(template);
|
|
1778
|
+
pline.flags = this._objectReader.readBitShort();
|
|
1779
|
+
pline.smoothSurface = this._objectReader.readBitShort();
|
|
1780
|
+
pline.startWidth = this._objectReader.readBitDouble();
|
|
1781
|
+
pline.endWidth = this._objectReader.readBitDouble();
|
|
1782
|
+
pline.thickness = this._objectReader.readBitThickness();
|
|
1783
|
+
pline.elevation = this._objectReader.readBitDouble();
|
|
1784
|
+
pline.normal = this._objectReader.readBitExtrusion();
|
|
1785
|
+
if (this.R2004Plus) {
|
|
1786
|
+
const n = this._objectReader.readBitLong();
|
|
1787
|
+
for (let i = 0; i < n; ++i)
|
|
1788
|
+
template.OwnedObjectsHandlers.add(this.handleReference());
|
|
1789
|
+
}
|
|
1790
|
+
if (this._version >= ACadVersion.AC1012 && this._version <= ACadVersion.AC1015) {
|
|
1791
|
+
template.FirstVertexHandle = this.handleReference();
|
|
1792
|
+
template.LastVertexHandle = this.handleReference();
|
|
1793
|
+
}
|
|
1794
|
+
template.SeqendHandle = this.handleReference();
|
|
1795
|
+
return template;
|
|
1796
|
+
}
|
|
1797
|
+
readPolyline3D() {
|
|
1798
|
+
const pline = new Polyline3D();
|
|
1799
|
+
const template = new CadPolyLineTemplate(pline);
|
|
1800
|
+
this.readCommonEntityData(template);
|
|
1801
|
+
const flags = this._objectReader.readByte();
|
|
1802
|
+
const splined = (flags & 0b1) > 0;
|
|
1803
|
+
const splined1 = (flags & 0b10) > 0;
|
|
1804
|
+
if (splined || splined1)
|
|
1805
|
+
pline.flags |= PolylineFlags.SplineFit;
|
|
1806
|
+
pline.flags |= PolylineFlags.Polyline3D;
|
|
1807
|
+
if ((this._objectReader.readByte() & 1) > 0)
|
|
1808
|
+
pline.flags |= PolylineFlags.ClosedPolylineOrClosedPolygonMeshInM;
|
|
1809
|
+
if (this.R2004Plus) {
|
|
1810
|
+
const n = this._objectReader.readBitLong();
|
|
1811
|
+
for (let i = 0; i < n; ++i)
|
|
1812
|
+
template.OwnedObjectsHandlers.add(this.handleReference());
|
|
1813
|
+
}
|
|
1814
|
+
if (this._version >= ACadVersion.AC1012 && this._version <= ACadVersion.AC1015) {
|
|
1815
|
+
template.FirstVertexHandle = this.handleReference();
|
|
1816
|
+
template.LastVertexHandle = this.handleReference();
|
|
1817
|
+
}
|
|
1818
|
+
template.SeqendHandle = this.handleReference();
|
|
1819
|
+
return template;
|
|
1820
|
+
}
|
|
1821
|
+
readPolyfaceMesh() {
|
|
1822
|
+
const template = new CadPolyLineTemplate(new PolyfaceMesh());
|
|
1823
|
+
this.readCommonEntityData(template);
|
|
1824
|
+
this._objectReader.readBitShort();
|
|
1825
|
+
this._objectReader.readBitShort();
|
|
1826
|
+
if (this.R2004Plus) {
|
|
1827
|
+
const n = this._objectReader.readBitLong();
|
|
1828
|
+
for (let i = 0; i < n; i++)
|
|
1829
|
+
template.OwnedObjectsHandlers.add(this.handleReference());
|
|
1830
|
+
}
|
|
1831
|
+
if (this.R13_15Only) {
|
|
1832
|
+
template.FirstVertexHandle = this.handleReference();
|
|
1833
|
+
template.LastVertexHandle = this.handleReference();
|
|
1834
|
+
}
|
|
1835
|
+
template.SeqendHandle = this.handleReference();
|
|
1836
|
+
return template;
|
|
1837
|
+
}
|
|
1838
|
+
readPolylineMesh() {
|
|
1839
|
+
const pline = new PolygonMesh();
|
|
1840
|
+
const template = new CadPolyLineTemplate(pline);
|
|
1841
|
+
this.readCommonEntityData(template);
|
|
1842
|
+
pline.flags = this._objectReader.readBitShort();
|
|
1843
|
+
pline.smoothSurface = this._objectReader.readBitShort();
|
|
1844
|
+
pline.mVertexCount = this._objectReader.readBitShort();
|
|
1845
|
+
pline.nVertexCount = this._objectReader.readBitShort();
|
|
1846
|
+
pline.mSmoothSurfaceDensity = this._objectReader.readBitShort();
|
|
1847
|
+
pline.nSmoothSurfaceDensity = this._objectReader.readBitShort();
|
|
1848
|
+
if (this.R13_15Only) {
|
|
1849
|
+
template.FirstVertexHandle = this.handleReference();
|
|
1850
|
+
template.LastVertexHandle = this.handleReference();
|
|
1851
|
+
}
|
|
1852
|
+
if (this.R2004Plus) {
|
|
1853
|
+
const n = this._objectReader.readBitLong();
|
|
1854
|
+
for (let i = 0; i < n; i++)
|
|
1855
|
+
template.OwnedObjectsHandlers.add(this.handleReference());
|
|
1856
|
+
}
|
|
1857
|
+
template.SeqendHandle = this.handleReference();
|
|
1858
|
+
return template;
|
|
1859
|
+
}
|
|
1860
|
+
readLWPolyline() {
|
|
1861
|
+
const lwPolyline = new LwPolyline();
|
|
1862
|
+
const template = new CadEntityTemplate(lwPolyline);
|
|
1863
|
+
try {
|
|
1864
|
+
this.readCommonEntityData(template);
|
|
1865
|
+
const flags = this._objectReader.readBitShort();
|
|
1866
|
+
if ((flags & 0x100) !== 0)
|
|
1867
|
+
lwPolyline.flags |= LwPolylineFlags.Plinegen;
|
|
1868
|
+
if ((flags & 0x200) !== 0)
|
|
1869
|
+
lwPolyline.flags |= LwPolylineFlags.Closed;
|
|
1870
|
+
if ((flags & 0x4) !== 0)
|
|
1871
|
+
lwPolyline.constantWidth = this._objectReader.readBitDouble();
|
|
1872
|
+
if ((flags & 0x8) !== 0)
|
|
1873
|
+
lwPolyline.elevation = this._objectReader.readBitDouble();
|
|
1874
|
+
if ((flags & 0x2) !== 0)
|
|
1875
|
+
lwPolyline.thickness = this._objectReader.readBitDouble();
|
|
1876
|
+
if ((flags & 0x1) !== 0)
|
|
1877
|
+
lwPolyline.normal = this._objectReader.read3BitDouble();
|
|
1878
|
+
const nvertices = this._objectReader.readBitLong();
|
|
1879
|
+
let nbulges = 0;
|
|
1880
|
+
if ((flags & 0x10) !== 0)
|
|
1881
|
+
nbulges = this._objectReader.readBitLong();
|
|
1882
|
+
let nids = 0;
|
|
1883
|
+
if ((flags & 0x400) !== 0)
|
|
1884
|
+
nids = this._objectReader.readBitLong();
|
|
1885
|
+
let ndiffwidth = 0;
|
|
1886
|
+
if ((flags & 0x20) !== 0)
|
|
1887
|
+
ndiffwidth = this._objectReader.readBitLong();
|
|
1888
|
+
if (this.R13_14Only) {
|
|
1889
|
+
for (let i = 0; i < nvertices; i++) {
|
|
1890
|
+
const loc = this._objectReader.read2RawDouble();
|
|
1891
|
+
lwPolyline.vertices.push(new LwPolylineVertex(loc));
|
|
1892
|
+
}
|
|
1893
|
+
}
|
|
1894
|
+
if (this.R2000Plus && nvertices > 0) {
|
|
1895
|
+
let loc = this._objectReader.read2RawDouble();
|
|
1896
|
+
lwPolyline.vertices.push(new LwPolylineVertex(loc));
|
|
1897
|
+
for (let j = 1; j < nvertices; j++) {
|
|
1898
|
+
loc = this._objectReader.read2BitDoubleWithDefault(loc);
|
|
1899
|
+
lwPolyline.vertices.push(new LwPolylineVertex(loc));
|
|
1900
|
+
}
|
|
1901
|
+
}
|
|
1902
|
+
for (let k = 0; k < nbulges; k++)
|
|
1903
|
+
lwPolyline.vertices[k].bulge = this._objectReader.readBitDouble();
|
|
1904
|
+
for (let l = 0; l < nids; l++)
|
|
1905
|
+
lwPolyline.vertices[l].id = this._objectReader.readBitLong();
|
|
1906
|
+
for (let m = 0; m < ndiffwidth; m++) {
|
|
1907
|
+
const vertex = lwPolyline.vertices[m];
|
|
1908
|
+
vertex.startWidth = this._objectReader.readBitDouble();
|
|
1909
|
+
vertex.endWidth = this._objectReader.readBitDouble();
|
|
1910
|
+
}
|
|
1911
|
+
}
|
|
1912
|
+
catch (ex) {
|
|
1913
|
+
this._builder.Notify(`Exception while reading LwPolyline: ${ex.constructor?.name || 'Error'}`, NotificationType.Error, ex);
|
|
1914
|
+
return template;
|
|
1915
|
+
}
|
|
1916
|
+
return template;
|
|
1917
|
+
}
|
|
1918
|
+
// ==================== SPLINE ====================
|
|
1919
|
+
readSpline() {
|
|
1920
|
+
const spline = new Spline();
|
|
1921
|
+
const template = new CadSplineTemplate(spline);
|
|
1922
|
+
this.readCommonEntityData(template);
|
|
1923
|
+
let scenario = this._objectReader.readBitLong();
|
|
1924
|
+
if (this.R2013Plus) {
|
|
1925
|
+
spline.flags1 = this._mergedReaders.readBitLong();
|
|
1926
|
+
spline.isClosed = !!(spline.flags1 & SplineFlags1.Closed);
|
|
1927
|
+
spline.knotParametrization = this._mergedReaders.readBitLong();
|
|
1928
|
+
scenario = (spline.knotParametrization === KnotParametrization.Custom || (spline.flags1 & SplineFlags1.UseKnotParameter) === 0) ? 1 : 2;
|
|
1929
|
+
}
|
|
1930
|
+
else if (scenario === 2) {
|
|
1931
|
+
spline.flags1 |= SplineFlags1.MethodFitPoints;
|
|
1932
|
+
}
|
|
1933
|
+
else {
|
|
1934
|
+
spline.knotParametrization = KnotParametrization.Custom;
|
|
1935
|
+
}
|
|
1936
|
+
spline.degree = this._objectReader.readBitLong();
|
|
1937
|
+
let numfitpts = 0, numknots = 0, numctrlpts = 0, flag = false;
|
|
1938
|
+
switch (scenario) {
|
|
1939
|
+
case 1:
|
|
1940
|
+
if (this._objectReader.readBit())
|
|
1941
|
+
spline.flags |= SplineFlags.Rational;
|
|
1942
|
+
if (this._objectReader.readBit())
|
|
1943
|
+
spline.flags |= SplineFlags.Closed;
|
|
1944
|
+
if (this._objectReader.readBit())
|
|
1945
|
+
spline.flags |= SplineFlags.Periodic;
|
|
1946
|
+
spline.knotTolerance = this._objectReader.readBitDouble();
|
|
1947
|
+
spline.controlPointTolerance = this._objectReader.readBitDouble();
|
|
1948
|
+
numknots = this._objectReader.readBitLong();
|
|
1949
|
+
numctrlpts = this._objectReader.readBitLong();
|
|
1950
|
+
flag = this._objectReader.readBit();
|
|
1951
|
+
break;
|
|
1952
|
+
case 2:
|
|
1953
|
+
spline.fitTolerance = this._objectReader.readBitDouble();
|
|
1954
|
+
spline.startTangent = this._objectReader.read3BitDouble();
|
|
1955
|
+
spline.endTangent = this._objectReader.read3BitDouble();
|
|
1956
|
+
numfitpts = this._objectReader.readBitLong();
|
|
1957
|
+
break;
|
|
1958
|
+
}
|
|
1959
|
+
for (let i = 0; i < numknots; i++)
|
|
1960
|
+
spline.knots.push(this._objectReader.readBitDouble());
|
|
1961
|
+
for (let j = 0; j < numctrlpts; j++) {
|
|
1962
|
+
spline.controlPoints.push(this._objectReader.read3BitDouble());
|
|
1963
|
+
if (flag)
|
|
1964
|
+
spline.weights.push(this._objectReader.readBitDouble());
|
|
1965
|
+
}
|
|
1966
|
+
for (let k = 0; k < numfitpts; k++)
|
|
1967
|
+
spline.fitPoints.push(this._objectReader.read3BitDouble());
|
|
1968
|
+
return template;
|
|
1969
|
+
}
|
|
1970
|
+
// ==================== MESH ====================
|
|
1971
|
+
readMesh() {
|
|
1972
|
+
const mesh = new Mesh();
|
|
1973
|
+
const template = new CadMeshTemplate(mesh);
|
|
1974
|
+
this.readCommonEntityData(template);
|
|
1975
|
+
mesh.version = this._objectReader.readBitShort();
|
|
1976
|
+
mesh.blendCrease = this._objectReader.readBit() ? 1 : 0;
|
|
1977
|
+
mesh.subdivisionLevel = this._objectReader.readBitLong();
|
|
1978
|
+
const nvertices = this._objectReader.readBitLong();
|
|
1979
|
+
for (let i = 0; i < nvertices; i++)
|
|
1980
|
+
mesh.vertices.push(this._objectReader.read3BitDouble());
|
|
1981
|
+
let nfaces = this._objectReader.readBitLong();
|
|
1982
|
+
for (let i = 0; i < nfaces; i++) {
|
|
1983
|
+
const faceSize = this._objectReader.readBitLong();
|
|
1984
|
+
const arr = [];
|
|
1985
|
+
for (let j = 0; j < faceSize; j++)
|
|
1986
|
+
arr.push(this._objectReader.readBitLong());
|
|
1987
|
+
i += faceSize;
|
|
1988
|
+
mesh.faces.push([...arr]);
|
|
1989
|
+
}
|
|
1990
|
+
const nedges = this._objectReader.readBitLong();
|
|
1991
|
+
for (let k = 0; k < nedges; k++) {
|
|
1992
|
+
const start = this._objectReader.readBitLong();
|
|
1993
|
+
const end = this._objectReader.readBitLong();
|
|
1994
|
+
mesh.edges.push(new MeshEdge(start, end));
|
|
1995
|
+
}
|
|
1996
|
+
const ncrease = this._objectReader.readBitLong();
|
|
1997
|
+
for (let l = 0; l < ncrease; l++) {
|
|
1998
|
+
mesh.edges[l].crease = this._objectReader.readBitDouble();
|
|
1999
|
+
}
|
|
2000
|
+
this._objectReader.readBitLong();
|
|
2001
|
+
return template;
|
|
2002
|
+
}
|
|
2003
|
+
// ==================== VIEWPORT ====================
|
|
2004
|
+
readViewport() {
|
|
2005
|
+
const viewport = new Viewport();
|
|
2006
|
+
const template = new CadViewportTemplate(viewport);
|
|
2007
|
+
this.readCommonEntityData(template);
|
|
2008
|
+
viewport.center = this._objectReader.read3BitDouble();
|
|
2009
|
+
viewport.width = this._objectReader.readBitDouble();
|
|
2010
|
+
viewport.height = this._objectReader.readBitDouble();
|
|
2011
|
+
if (this.R2000Plus) {
|
|
2012
|
+
viewport.viewTarget = this._objectReader.read3BitDouble();
|
|
2013
|
+
viewport.viewDirection = this._objectReader.read3BitDouble();
|
|
2014
|
+
viewport.twistAngle = this._objectReader.readBitDouble();
|
|
2015
|
+
viewport.viewHeight = this._objectReader.readBitDouble();
|
|
2016
|
+
viewport.lensLength = this._objectReader.readBitDouble();
|
|
2017
|
+
viewport.frontClipPlane = this._objectReader.readBitDouble();
|
|
2018
|
+
viewport.backClipPlane = this._objectReader.readBitDouble();
|
|
2019
|
+
viewport.snapAngle = this._objectReader.readBitDouble();
|
|
2020
|
+
viewport.viewCenter = this._objectReader.read2RawDouble();
|
|
2021
|
+
viewport.snapBase = this._objectReader.read2RawDouble();
|
|
2022
|
+
viewport.snapSpacing = this._objectReader.read2RawDouble();
|
|
2023
|
+
viewport.gridSpacing = this._objectReader.read2RawDouble();
|
|
2024
|
+
viewport.circleZoomPercent = this._objectReader.readBitShort();
|
|
2025
|
+
}
|
|
2026
|
+
if (this.R2007Plus)
|
|
2027
|
+
viewport.majorGridLineFrequency = this._objectReader.readBitShort();
|
|
2028
|
+
let frozenLayerCount = 0;
|
|
2029
|
+
if (this.R2000Plus) {
|
|
2030
|
+
frozenLayerCount = this._objectReader.readBitLong();
|
|
2031
|
+
viewport.status = this._objectReader.readBitLong();
|
|
2032
|
+
viewport.styleSheetName = this._textReader.readVariableText();
|
|
2033
|
+
viewport.renderMode = this._objectReader.readByte();
|
|
2034
|
+
viewport.displayUcsIcon = this._objectReader.readBit();
|
|
2035
|
+
viewport.ucsPerViewport = this._objectReader.readBit();
|
|
2036
|
+
viewport.ucsOrigin = this._objectReader.read3BitDouble();
|
|
2037
|
+
viewport.ucsXAxis = this._objectReader.read3BitDouble();
|
|
2038
|
+
viewport.ucsYAxis = this._objectReader.read3BitDouble();
|
|
2039
|
+
viewport.elevation = this._objectReader.readBitDouble();
|
|
2040
|
+
viewport.ucsOrthographicType = this._objectReader.readBitShort();
|
|
2041
|
+
}
|
|
2042
|
+
if (this.R2004Plus)
|
|
2043
|
+
viewport.shadePlotMode = this._objectReader.readBitShort();
|
|
2044
|
+
if (this.R2007Plus) {
|
|
2045
|
+
viewport.useDefaultLighting = this._objectReader.readBit();
|
|
2046
|
+
viewport.defaultLightingType = this._objectReader.readByte();
|
|
2047
|
+
viewport.brightness = this._objectReader.readBitDouble();
|
|
2048
|
+
viewport.contrast = this._objectReader.readBitDouble();
|
|
2049
|
+
viewport.ambientLightColor = this._objectReader.readCmColor();
|
|
2050
|
+
}
|
|
2051
|
+
if (this.R13_14Only)
|
|
2052
|
+
template.ViewportHeaderHandle = this.handleReference();
|
|
2053
|
+
if (this.R2000Plus) {
|
|
2054
|
+
for (let i = 0; i < frozenLayerCount; ++i)
|
|
2055
|
+
template.FrozenLayerHandles.add(this.handleReference());
|
|
2056
|
+
template.BoundaryHandle = this.handleReference();
|
|
2057
|
+
}
|
|
2058
|
+
if (this._version === ACadVersion.AC1015)
|
|
2059
|
+
template.ViewportHeaderHandle = this.handleReference();
|
|
2060
|
+
if (this.R2000Plus) {
|
|
2061
|
+
template.NamedUcsHandle = this.handleReference();
|
|
2062
|
+
template.BaseUcsHandle = this.handleReference();
|
|
2063
|
+
}
|
|
2064
|
+
if (this.R2007Plus) {
|
|
2065
|
+
this.handleReference();
|
|
2066
|
+
this.handleReference();
|
|
2067
|
+
this.handleReference();
|
|
2068
|
+
this.handleReference();
|
|
2069
|
+
}
|
|
2070
|
+
return template;
|
|
2071
|
+
}
|
|
2072
|
+
readViewportEntityControl() {
|
|
2073
|
+
const template = new CadViewportEntityControlTemplate();
|
|
2074
|
+
this.readCommonNonEntityData(template);
|
|
2075
|
+
const numentries = this._objectReader.readBitLong();
|
|
2076
|
+
for (let i = 0; i < numentries; ++i)
|
|
2077
|
+
template.EntryHandles.add(this.handleReference());
|
|
2078
|
+
return template;
|
|
2079
|
+
}
|
|
2080
|
+
readViewportEntityHeader() {
|
|
2081
|
+
const viewport = new ViewportEntityHeader();
|
|
2082
|
+
const template = new CadViewportEntityHeaderTemplate(viewport);
|
|
2083
|
+
this.readCommonNonEntityData(template);
|
|
2084
|
+
viewport.name = this._textReader.readVariableText();
|
|
2085
|
+
this.readXrefDependantBit(template.CadObject);
|
|
2086
|
+
this._objectReader.readBit();
|
|
2087
|
+
this.handleReference();
|
|
2088
|
+
this.handleReference();
|
|
2089
|
+
template.BlockHandle = this.handleReference();
|
|
2090
|
+
return template;
|
|
2091
|
+
}
|
|
2092
|
+
// ==================== MTEXT ====================
|
|
2093
|
+
readMText() {
|
|
2094
|
+
const mtext = new MText();
|
|
2095
|
+
const template = new CadTextEntityTemplate(mtext);
|
|
2096
|
+
return this.readMTextBody(template, true);
|
|
2097
|
+
}
|
|
2098
|
+
readMTextBody(template, readCommonData) {
|
|
2099
|
+
const mtext = template.CadObject;
|
|
2100
|
+
if (readCommonData)
|
|
2101
|
+
this.readCommonEntityData(template);
|
|
2102
|
+
mtext.insertPoint = this._objectReader.read3BitDouble();
|
|
2103
|
+
mtext.normal = this._objectReader.read3BitDouble();
|
|
2104
|
+
mtext.alignmentPoint = this._objectReader.read3BitDouble();
|
|
2105
|
+
mtext.rectangleWidth = this._objectReader.readBitDouble();
|
|
2106
|
+
if (this.R2007Plus)
|
|
2107
|
+
mtext.rectangleHeight = this._objectReader.readBitDouble();
|
|
2108
|
+
mtext.height = this._objectReader.readBitDouble();
|
|
2109
|
+
mtext.attachmentPoint = this._objectReader.readBitShort();
|
|
2110
|
+
mtext.drawingDirection = this._objectReader.readBitShort();
|
|
2111
|
+
this._objectReader.readBitDouble();
|
|
2112
|
+
this._objectReader.readBitDouble();
|
|
2113
|
+
mtext.value = this._textReader.readVariableText();
|
|
2114
|
+
template.StyleHandle = this.handleReference();
|
|
2115
|
+
if (this.R2000Plus) {
|
|
2116
|
+
mtext.lineSpacingStyle = this._objectReader.readBitShort();
|
|
2117
|
+
mtext.lineSpacing = this._objectReader.readBitDouble();
|
|
2118
|
+
this._objectReader.readBit();
|
|
2119
|
+
}
|
|
2120
|
+
if (this.R2004Plus) {
|
|
2121
|
+
mtext.backgroundFillFlags = this._objectReader.readBitLong();
|
|
2122
|
+
if ((mtext.backgroundFillFlags & BackgroundFillFlags.UseBackgroundFillColor) !== 0
|
|
2123
|
+
|| (this._version > ACadVersion.AC1027 && (mtext.backgroundFillFlags & BackgroundFillFlags.TextFrame) > 0)) {
|
|
2124
|
+
mtext.backgroundScale = this._objectReader.readBitDouble();
|
|
2125
|
+
mtext.backgroundColor = this._mergedReaders.readCmColor();
|
|
2126
|
+
mtext.backgroundTransparency = this._objectReader.readBitLong();
|
|
2127
|
+
}
|
|
2128
|
+
}
|
|
2129
|
+
if (!this.R2018Plus)
|
|
2130
|
+
return template;
|
|
2131
|
+
mtext.isAnnotative = !this._objectReader.readBit();
|
|
2132
|
+
if (!mtext.isAnnotative) {
|
|
2133
|
+
this._objectReader.readBitShort();
|
|
2134
|
+
this._objectReader.readBit();
|
|
2135
|
+
this.handleReference();
|
|
2136
|
+
this._objectReader.readBitLong();
|
|
2137
|
+
this._objectReader.read3BitDouble();
|
|
2138
|
+
this._objectReader.read3BitDouble();
|
|
2139
|
+
this._objectReader.readBitDouble();
|
|
2140
|
+
this._objectReader.readBitDouble();
|
|
2141
|
+
this._objectReader.readBitDouble();
|
|
2142
|
+
this._objectReader.readBitDouble();
|
|
2143
|
+
mtext.columnData.columnType = this._objectReader.readBitShort();
|
|
2144
|
+
if (mtext.columnData.columnType !== ColumnType.NoColumns) {
|
|
2145
|
+
const count = this._objectReader.readBitLong();
|
|
2146
|
+
mtext.columnData.width = this._objectReader.readBitDouble();
|
|
2147
|
+
mtext.columnData.gutter = this._objectReader.readBitDouble();
|
|
2148
|
+
mtext.columnData.autoHeight = this._objectReader.readBit();
|
|
2149
|
+
mtext.columnData.flowReversed = this._objectReader.readBit();
|
|
2150
|
+
if (!mtext.columnData.autoHeight && mtext.columnData.columnType === ColumnType.DynamicColumns && count > 0) {
|
|
2151
|
+
for (let i = 0; i < count; ++i)
|
|
2152
|
+
mtext.columnData.heights.push(this._objectReader.readBitDouble());
|
|
2153
|
+
}
|
|
2154
|
+
}
|
|
2155
|
+
}
|
|
2156
|
+
return template;
|
|
2157
|
+
}
|
|
2158
|
+
// ==================== HATCH ====================
|
|
2159
|
+
readHatch() {
|
|
2160
|
+
const hatch = new Hatch();
|
|
2161
|
+
const template = new CadHatchTemplate(hatch);
|
|
2162
|
+
this.readCommonEntityData(template);
|
|
2163
|
+
if (this.R2004Plus) {
|
|
2164
|
+
hatch.gradientColor.enabled = this._objectReader.readBitLong() !== 0;
|
|
2165
|
+
hatch.gradientColor.reserved = this._objectReader.readBitLong();
|
|
2166
|
+
hatch.gradientColor.angle = this._objectReader.readBitDouble();
|
|
2167
|
+
hatch.gradientColor.shift = this._objectReader.readBitDouble();
|
|
2168
|
+
hatch.gradientColor.isSingleColorGradient = this._objectReader.readBitLong() > 0;
|
|
2169
|
+
hatch.gradientColor.colorTint = this._objectReader.readBitDouble();
|
|
2170
|
+
const ncolors = this._objectReader.readBitLong();
|
|
2171
|
+
for (let i = 0; i < ncolors; ++i) {
|
|
2172
|
+
const color = new GradientColor();
|
|
2173
|
+
color.value = this._objectReader.readBitDouble();
|
|
2174
|
+
color.color = this._mergedReaders.readCmColor();
|
|
2175
|
+
hatch.gradientColor.colors.push(color);
|
|
2176
|
+
}
|
|
2177
|
+
hatch.gradientColor.name = this._textReader.readVariableText();
|
|
2178
|
+
}
|
|
2179
|
+
hatch.elevation = this._objectReader.readBitDouble();
|
|
2180
|
+
hatch.normal = this._objectReader.read3BitDouble();
|
|
2181
|
+
hatch.pattern = new HatchPattern(this._textReader.readVariableText());
|
|
2182
|
+
hatch.isSolid = this._objectReader.readBit();
|
|
2183
|
+
hatch.isAssociative = this._objectReader.readBit();
|
|
2184
|
+
const npaths = this._objectReader.readBitLong();
|
|
2185
|
+
let hasDerivedBoundary = false;
|
|
2186
|
+
for (let i = 0; i < npaths; i++) {
|
|
2187
|
+
const pathTemplate = new CadHatchTemplate.CadBoundaryPathTemplate();
|
|
2188
|
+
const flags = this._objectReader.readBitLong();
|
|
2189
|
+
pathTemplate.Path.flags = flags;
|
|
2190
|
+
if (flags & BoundaryPathFlags.Derived)
|
|
2191
|
+
hasDerivedBoundary = true;
|
|
2192
|
+
if (!(flags & BoundaryPathFlags.Polyline)) {
|
|
2193
|
+
const nsegments = this._objectReader.readBitLong();
|
|
2194
|
+
for (let j = 0; j < nsegments; ++j) {
|
|
2195
|
+
const pathTypeStatus = this._objectReader.readByte();
|
|
2196
|
+
switch (pathTypeStatus) {
|
|
2197
|
+
case 1: // Line
|
|
2198
|
+
{
|
|
2199
|
+
const line = new HatchBoundaryPathLine();
|
|
2200
|
+
line.start = this._objectReader.read2RawDouble();
|
|
2201
|
+
line.end = this._objectReader.read2RawDouble();
|
|
2202
|
+
pathTemplate.Path.edges.push(line);
|
|
2203
|
+
}
|
|
2204
|
+
break;
|
|
2205
|
+
case 2: // CircularArc
|
|
2206
|
+
{
|
|
2207
|
+
const arc = new HatchBoundaryPathArc();
|
|
2208
|
+
arc.center = this._objectReader.read2RawDouble();
|
|
2209
|
+
arc.radius = this._objectReader.readBitDouble();
|
|
2210
|
+
arc.startAngle = this._objectReader.readBitDouble();
|
|
2211
|
+
arc.endAngle = this._objectReader.readBitDouble();
|
|
2212
|
+
arc.counterClockWise = this._objectReader.readBit();
|
|
2213
|
+
pathTemplate.Path.edges.push(arc);
|
|
2214
|
+
}
|
|
2215
|
+
break;
|
|
2216
|
+
case 3: // EllipticArc
|
|
2217
|
+
{
|
|
2218
|
+
const ellipse = new HatchBoundaryPathEllipse();
|
|
2219
|
+
ellipse.center = this._objectReader.read2RawDouble();
|
|
2220
|
+
ellipse.majorAxisEndPoint = this._objectReader.read2RawDouble();
|
|
2221
|
+
ellipse.minorToMajorRatio = this._objectReader.readBitDouble();
|
|
2222
|
+
ellipse.startAngle = this._objectReader.readBitDouble();
|
|
2223
|
+
ellipse.endAngle = this._objectReader.readBitDouble();
|
|
2224
|
+
ellipse.counterClockWise = this._objectReader.readBit();
|
|
2225
|
+
pathTemplate.Path.edges.push(ellipse);
|
|
2226
|
+
}
|
|
2227
|
+
break;
|
|
2228
|
+
case 4: { // Spline
|
|
2229
|
+
const splineEdge = new HatchBoundaryPathSpline();
|
|
2230
|
+
splineEdge.degree = this._objectReader.readBitLong();
|
|
2231
|
+
splineEdge.isRational = this._objectReader.readBit();
|
|
2232
|
+
splineEdge.isPeriodic = this._objectReader.readBit();
|
|
2233
|
+
const numknots = this._objectReader.readBitLong();
|
|
2234
|
+
const numctlpts = this._objectReader.readBitLong();
|
|
2235
|
+
for (let k = 0; k < numknots; ++k)
|
|
2236
|
+
splineEdge.knots.push(this._objectReader.readBitDouble());
|
|
2237
|
+
for (let p = 0; p < numctlpts; ++p) {
|
|
2238
|
+
const cp = this._objectReader.read2RawDouble();
|
|
2239
|
+
let wheight = 0;
|
|
2240
|
+
if (splineEdge.isRational)
|
|
2241
|
+
wheight = this._objectReader.readBitDouble();
|
|
2242
|
+
splineEdge.controlPoints.push(new XYZ(cp.x, cp.y, wheight));
|
|
2243
|
+
}
|
|
2244
|
+
if (this.R2010Plus) {
|
|
2245
|
+
const nfitPoints = this._objectReader.readBitLong();
|
|
2246
|
+
if (nfitPoints > 0) {
|
|
2247
|
+
for (let fp = 0; fp < nfitPoints; ++fp)
|
|
2248
|
+
splineEdge.fitPoints.push(this._objectReader.read2RawDouble());
|
|
2249
|
+
splineEdge.startTangent = this._objectReader.read2RawDouble();
|
|
2250
|
+
splineEdge.endTangent = this._objectReader.read2RawDouble();
|
|
2251
|
+
}
|
|
2252
|
+
}
|
|
2253
|
+
pathTemplate.Path.edges.push(splineEdge);
|
|
2254
|
+
break;
|
|
2255
|
+
}
|
|
2256
|
+
}
|
|
2257
|
+
}
|
|
2258
|
+
}
|
|
2259
|
+
else {
|
|
2260
|
+
const pline = new HatchBoundaryPathPolyline();
|
|
2261
|
+
const bulgespresent = this._objectReader.readBit();
|
|
2262
|
+
pline.isClosed = this._objectReader.readBit();
|
|
2263
|
+
const numpathsegs = this._objectReader.readBitLong();
|
|
2264
|
+
for (let index = 0; index < numpathsegs; ++index) {
|
|
2265
|
+
const vertex = this._objectReader.read2RawDouble();
|
|
2266
|
+
let bulge = 0;
|
|
2267
|
+
if (bulgespresent)
|
|
2268
|
+
bulge = this._objectReader.readBitDouble();
|
|
2269
|
+
pline.vertices.push(new XYZ(vertex.x, vertex.y, bulge));
|
|
2270
|
+
}
|
|
2271
|
+
pathTemplate.Path.edges.push(pline);
|
|
2272
|
+
}
|
|
2273
|
+
const numboundaryobjhandles = this._objectReader.readBitLong();
|
|
2274
|
+
for (let h = 0; h < numboundaryobjhandles; h++)
|
|
2275
|
+
pathTemplate.Handles.add(this.handleReference());
|
|
2276
|
+
template.PathTemplates.push(pathTemplate);
|
|
2277
|
+
}
|
|
2278
|
+
hatch.style = this._objectReader.readBitShort();
|
|
2279
|
+
hatch.patternType = this._objectReader.readBitShort();
|
|
2280
|
+
if (!hatch.isSolid) {
|
|
2281
|
+
hatch.patternAngle = this._objectReader.readBitDouble();
|
|
2282
|
+
hatch.patternScale = this._objectReader.readBitDouble();
|
|
2283
|
+
hatch.isDouble = this._objectReader.readBit();
|
|
2284
|
+
const numdeflines = this._objectReader.readBitShort();
|
|
2285
|
+
for (let li = 0; li < numdeflines; ++li) {
|
|
2286
|
+
const line = new HatchPatternLine();
|
|
2287
|
+
line.angle = this._objectReader.readBitDouble();
|
|
2288
|
+
line.basePoint = this._objectReader.read2BitDouble();
|
|
2289
|
+
line.offset = this._objectReader.read2BitDouble();
|
|
2290
|
+
const ndashes = this._objectReader.readBitShort();
|
|
2291
|
+
for (let ds = 0; ds < ndashes; ++ds)
|
|
2292
|
+
line.dashLengths.push(this._objectReader.readBitDouble());
|
|
2293
|
+
hatch.pattern.lines.push(line);
|
|
2294
|
+
}
|
|
2295
|
+
}
|
|
2296
|
+
if (hasDerivedBoundary)
|
|
2297
|
+
hatch.pixelSize = this._objectReader.readBitDouble();
|
|
2298
|
+
const numseedpoints = this._objectReader.readBitLong();
|
|
2299
|
+
for (let sp = 0; sp < numseedpoints; ++sp)
|
|
2300
|
+
hatch.seedPoints.push(this._objectReader.read2RawDouble());
|
|
2301
|
+
return template;
|
|
2302
|
+
}
|
|
2303
|
+
// ==================== MODELER GEOMETRY ====================
|
|
2304
|
+
readModelerGeometry(template) {
|
|
2305
|
+
const geometry = template.CadObject;
|
|
2306
|
+
this.readCommonEntityData(template);
|
|
2307
|
+
if (!this.R2013Plus) {
|
|
2308
|
+
const hasData = this._mergedReaders.readBit();
|
|
2309
|
+
if (!hasData) {
|
|
2310
|
+
this.readModelerGeometryData(template);
|
|
2311
|
+
return template;
|
|
2312
|
+
}
|
|
2313
|
+
}
|
|
2314
|
+
const isWireframe = this._mergedReaders.readBit();
|
|
2315
|
+
if (isWireframe) {
|
|
2316
|
+
const hasPoint = this._mergedReaders.readBit();
|
|
2317
|
+
if (hasPoint)
|
|
2318
|
+
geometry.point = this._objectReader.read3BitDouble();
|
|
2319
|
+
const nIsoLines = this._mergedReaders.readBitLong();
|
|
2320
|
+
if (this._mergedReaders.readBit()) {
|
|
2321
|
+
const nWires = this._mergedReaders.readBitLong();
|
|
2322
|
+
for (let i = 0; i < nWires; i++) {
|
|
2323
|
+
const wire = new ModelerGeometryWire();
|
|
2324
|
+
this.readWire(wire);
|
|
2325
|
+
geometry.wires.push(wire);
|
|
2326
|
+
}
|
|
2327
|
+
}
|
|
2328
|
+
const nSilhouettes = this._mergedReaders.readBitLong();
|
|
2329
|
+
for (let i = 0; i < nSilhouettes; i++) {
|
|
2330
|
+
const silhouette = new ModelerGeometrySilhouette();
|
|
2331
|
+
silhouette.viewportId = this._mergedReaders.readBitLongLong();
|
|
2332
|
+
silhouette.viewportTarget = this._mergedReaders.read3BitDouble();
|
|
2333
|
+
silhouette.viewportDirectionFromTarget = this._mergedReaders.read3BitDouble();
|
|
2334
|
+
silhouette.viewportUpDirection = this._mergedReaders.read3BitDouble();
|
|
2335
|
+
silhouette.viewportPerspective = this._mergedReaders.readBit();
|
|
2336
|
+
if (this._mergedReaders.readBit()) {
|
|
2337
|
+
const nWires = this._mergedReaders.readBitLong();
|
|
2338
|
+
for (let j = 0; j < nWires; j++) {
|
|
2339
|
+
const wire = new ModelerGeometryWire();
|
|
2340
|
+
this.readWire(wire);
|
|
2341
|
+
silhouette.wires.push(wire);
|
|
2342
|
+
}
|
|
2343
|
+
}
|
|
2344
|
+
geometry.silhouettes.push(silhouette);
|
|
2345
|
+
}
|
|
2346
|
+
if (!this._mergedReaders.readBit()) {
|
|
2347
|
+
this.readModelerGeometryData(template);
|
|
2348
|
+
return template;
|
|
2349
|
+
}
|
|
2350
|
+
}
|
|
2351
|
+
if (this.R2007Plus)
|
|
2352
|
+
this._mergedReaders.readBitLong();
|
|
2353
|
+
return template;
|
|
2354
|
+
}
|
|
2355
|
+
readModelerGeometryData(template) {
|
|
2356
|
+
this._mergedReaders.readBit();
|
|
2357
|
+
const version = this._mergedReaders.readBitShort();
|
|
2358
|
+
this.notify(`Stream data reader hasn't been implemented for ${template.CadObject.objectName}`, NotificationType.NotImplemented);
|
|
2359
|
+
}
|
|
2360
|
+
readSolid3D() {
|
|
2361
|
+
const solid = new Solid3D();
|
|
2362
|
+
const template = new CadSolid3DTemplate(solid);
|
|
2363
|
+
this.readModelerGeometry(template);
|
|
2364
|
+
if (this.R2007Plus)
|
|
2365
|
+
template.HistoryHandle = this._mergedReaders.handleReference();
|
|
2366
|
+
return template;
|
|
2367
|
+
}
|
|
2368
|
+
readWire(wire) {
|
|
2369
|
+
wire.type = this._mergedReaders.readByte();
|
|
2370
|
+
wire.selectionMarker = this._mergedReaders.readBitLong();
|
|
2371
|
+
let color = this._mergedReaders.readBitShort();
|
|
2372
|
+
color = color > 256 ? 256 : color;
|
|
2373
|
+
wire.color = new Color(color);
|
|
2374
|
+
wire.acisIndex = this._mergedReaders.readBitLong();
|
|
2375
|
+
const nPoints = this._mergedReaders.readBitLong();
|
|
2376
|
+
for (let i = 0; i < nPoints; i++)
|
|
2377
|
+
wire.points.push(this._mergedReaders.read3BitDouble());
|
|
2378
|
+
wire.applyTransformPresent = this._mergedReaders.readBit();
|
|
2379
|
+
if (wire.applyTransformPresent) {
|
|
2380
|
+
wire.xAxis = this._mergedReaders.read3BitDouble();
|
|
2381
|
+
wire.yAxis = this._mergedReaders.read3BitDouble();
|
|
2382
|
+
wire.zAxis = this._mergedReaders.read3BitDouble();
|
|
2383
|
+
wire.translation = this._mergedReaders.read3BitDouble();
|
|
2384
|
+
wire.scale = this._mergedReaders.readBitDouble();
|
|
2385
|
+
wire.hasRotation = this._mergedReaders.readBit();
|
|
2386
|
+
wire.hasReflection = this._mergedReaders.readBit();
|
|
2387
|
+
wire.hasShear = this._mergedReaders.readBit();
|
|
2388
|
+
}
|
|
2389
|
+
}
|
|
2390
|
+
// ==================== IMAGE ====================
|
|
2391
|
+
readCadImage(image) {
|
|
2392
|
+
const template = new CadWipeoutBaseTemplate(image);
|
|
2393
|
+
this.readCommonEntityData(template);
|
|
2394
|
+
image.classVersion = this._objectReader.readBitLong();
|
|
2395
|
+
image.insertPoint = this._objectReader.read3BitDouble();
|
|
2396
|
+
image.uVector = this._objectReader.read3BitDouble();
|
|
2397
|
+
image.vVector = this._objectReader.read3BitDouble();
|
|
2398
|
+
image.size = this._objectReader.read2RawDouble();
|
|
2399
|
+
image.flags = this._objectReader.readBitShort();
|
|
2400
|
+
image.clippingState = this._objectReader.readBit();
|
|
2401
|
+
image.brightness = this._objectReader.readByte();
|
|
2402
|
+
image.contrast = this._objectReader.readByte();
|
|
2403
|
+
image.fade = this._objectReader.readByte();
|
|
2404
|
+
if (this.R2010Plus)
|
|
2405
|
+
image.clipMode = this._objectReader.readBit() ? ClipMode.Inside : ClipMode.Outside;
|
|
2406
|
+
image.clipType = this._objectReader.readBitShort();
|
|
2407
|
+
switch (image.clipType) {
|
|
2408
|
+
case ClipType.Rectangular:
|
|
2409
|
+
image.clipBoundaryVertices.push(this._objectReader.read2RawDouble());
|
|
2410
|
+
image.clipBoundaryVertices.push(this._objectReader.read2RawDouble());
|
|
2411
|
+
break;
|
|
2412
|
+
case ClipType.Polygonal: {
|
|
2413
|
+
const nvertices = this._objectReader.readBitLong();
|
|
2414
|
+
for (let i = 0; i < nvertices; i++)
|
|
2415
|
+
image.clipBoundaryVertices.push(this._objectReader.read2RawDouble());
|
|
2416
|
+
break;
|
|
2417
|
+
}
|
|
2418
|
+
}
|
|
2419
|
+
template.ImgDefHandle = this.handleReference();
|
|
2420
|
+
template.ImgReactorHandle = this.handleReference();
|
|
2421
|
+
return template;
|
|
2422
|
+
}
|
|
2423
|
+
readImageDefinition() {
|
|
2424
|
+
const definition = new ImageDefinition();
|
|
2425
|
+
const template = new CadNonGraphicalObjectTemplate(definition);
|
|
2426
|
+
this.readCommonNonEntityData(template);
|
|
2427
|
+
definition.classVersion = this._mergedReaders.readBitLong();
|
|
2428
|
+
definition.size = this._mergedReaders.read2RawDouble();
|
|
2429
|
+
definition.fileName = this._mergedReaders.readVariableText();
|
|
2430
|
+
definition.isLoaded = this._mergedReaders.readBit();
|
|
2431
|
+
definition.units = this._mergedReaders.readByte();
|
|
2432
|
+
definition.defaultSize = this._mergedReaders.read2RawDouble();
|
|
2433
|
+
return template;
|
|
2434
|
+
}
|
|
2435
|
+
readImageDefinitionReactor() {
|
|
2436
|
+
const definition = new ImageDefinitionReactor();
|
|
2437
|
+
const template = new CadNonGraphicalObjectTemplate(definition);
|
|
2438
|
+
this.readCommonNonEntityData(template);
|
|
2439
|
+
definition.classVersion = this._objectReader.readBitLong();
|
|
2440
|
+
return template;
|
|
2441
|
+
}
|
|
2442
|
+
// ==================== OLE2 FRAME ====================
|
|
2443
|
+
readOle2Frame() {
|
|
2444
|
+
const ole2Frame = new Ole2Frame();
|
|
2445
|
+
const template = new CadOle2FrameTemplate(ole2Frame);
|
|
2446
|
+
this.readCommonEntityData(template);
|
|
2447
|
+
ole2Frame.version = this._mergedReaders.readBitShort();
|
|
2448
|
+
if (this.R2000Plus)
|
|
2449
|
+
this._mergedReaders.readBitShort();
|
|
2450
|
+
const dataLength = this._mergedReaders.readBitLong();
|
|
2451
|
+
template.CadObject.binaryData = this._mergedReaders.readBytes(dataLength);
|
|
2452
|
+
if (this.R2000Plus)
|
|
2453
|
+
this._mergedReaders.readByte();
|
|
2454
|
+
return template;
|
|
2455
|
+
}
|
|
2456
|
+
// ==================== PDF UNDERLAY ====================
|
|
2457
|
+
readPdfDefinition() {
|
|
2458
|
+
const definition = new PdfUnderlayDefinition();
|
|
2459
|
+
const template = new CadNonGraphicalObjectTemplate(definition);
|
|
2460
|
+
this.readCommonNonEntityData(template);
|
|
2461
|
+
definition.file = this._objectReader.readVariableText();
|
|
2462
|
+
definition.page = this._objectReader.readVariableText();
|
|
2463
|
+
return template;
|
|
2464
|
+
}
|
|
2465
|
+
readPdfUnderlay() {
|
|
2466
|
+
const underlay = new PdfUnderlay();
|
|
2467
|
+
const template = new CadUnderlayTemplate(underlay);
|
|
2468
|
+
this.readCommonEntityData(template);
|
|
2469
|
+
underlay.normal = this._objectReader.read3BitDouble();
|
|
2470
|
+
underlay.insertPoint = this._objectReader.read3BitDouble();
|
|
2471
|
+
underlay.rotation = this._objectReader.readBitDouble();
|
|
2472
|
+
underlay.xScale = this._objectReader.readBitDouble();
|
|
2473
|
+
underlay.yScale = this._objectReader.readBitDouble();
|
|
2474
|
+
underlay.zScale = this._objectReader.readBitDouble();
|
|
2475
|
+
underlay.flags = this._objectReader.readByte();
|
|
2476
|
+
underlay.contrast = this._objectReader.readByte();
|
|
2477
|
+
underlay.fade = this._objectReader.readByte();
|
|
2478
|
+
template.DefinitionHandle = this.handleReference();
|
|
2479
|
+
const nvertices = this._mergedReaders.readBitLong();
|
|
2480
|
+
for (let i = 0; i < nvertices; i++)
|
|
2481
|
+
underlay.clipBoundaryVertices.push(this._mergedReaders.read2RawDouble());
|
|
2482
|
+
return template;
|
|
2483
|
+
}
|
|
2484
|
+
// ==================== PROXY ====================
|
|
2485
|
+
readProxyEntity() {
|
|
2486
|
+
const proxy = new ProxyEntity();
|
|
2487
|
+
const template = new CadEntityTemplate(proxy);
|
|
2488
|
+
this.readCommonEntityData(template);
|
|
2489
|
+
this.readCommonProxyData(proxy);
|
|
2490
|
+
return template;
|
|
2491
|
+
}
|
|
2492
|
+
readProxyObject() {
|
|
2493
|
+
const proxy = new ProxyObject();
|
|
2494
|
+
const template = new CadNonGraphicalObjectTemplate(proxy);
|
|
2495
|
+
this.readCommonNonEntityData(template);
|
|
2496
|
+
this.readCommonProxyData(proxy);
|
|
2497
|
+
return template;
|
|
2498
|
+
}
|
|
2499
|
+
readCommonProxyData(proxy) {
|
|
2500
|
+
const classId = this._mergedReaders.readBitLong();
|
|
2501
|
+
const dxfClass = this._classes.get(classId);
|
|
2502
|
+
if (dxfClass)
|
|
2503
|
+
proxy.dxfClass = dxfClass;
|
|
2504
|
+
if (this.R2000Plus) {
|
|
2505
|
+
if (this._version > ACadVersion.AC1015)
|
|
2506
|
+
this._mergedReaders.readVariableText();
|
|
2507
|
+
if (!this.R2018Plus) {
|
|
2508
|
+
const format = this._mergedReaders.readBitLong();
|
|
2509
|
+
proxy.version = (format & 0xFFFF);
|
|
2510
|
+
proxy.maintenanceVersion = format >> 16;
|
|
2511
|
+
}
|
|
2512
|
+
else {
|
|
2513
|
+
proxy.version = this._mergedReaders.readBitLong();
|
|
2514
|
+
proxy.maintenanceVersion = this._mergedReaders.readBitLong();
|
|
2515
|
+
}
|
|
2516
|
+
proxy.originalDataFormatDxf = this._mergedReaders.readBit();
|
|
2517
|
+
}
|
|
2518
|
+
}
|
|
2519
|
+
// ==================== DICT / GROUP / XRECORD ====================
|
|
2520
|
+
readDictionary() {
|
|
2521
|
+
const cadDictionary = new CadDictionary();
|
|
2522
|
+
const template = new CadDictionaryTemplate(cadDictionary);
|
|
2523
|
+
this.readCommonDictionary(template);
|
|
2524
|
+
return template;
|
|
2525
|
+
}
|
|
2526
|
+
readDictionaryVar() {
|
|
2527
|
+
const dictvar = new DictionaryVariable();
|
|
2528
|
+
const template = new CadNonGraphicalObjectTemplate(dictvar);
|
|
2529
|
+
this.readCommonNonEntityData(template);
|
|
2530
|
+
this._objectReader.readByte();
|
|
2531
|
+
dictvar.value = this._textReader.readVariableText();
|
|
2532
|
+
return template;
|
|
2533
|
+
}
|
|
2534
|
+
readDictionaryWithDefault() {
|
|
2535
|
+
const dictionary = new CadDictionaryWithDefault();
|
|
2536
|
+
const template = new CadDictionaryWithDefaultTemplate(dictionary);
|
|
2537
|
+
this.readCommonDictionary(template);
|
|
2538
|
+
template.DefaultEntryHandle = this.handleReference();
|
|
2539
|
+
return template;
|
|
2540
|
+
}
|
|
2541
|
+
readCommonDictionary(template) {
|
|
2542
|
+
this.readCommonNonEntityData(template);
|
|
2543
|
+
const nentries = this._objectReader.readBitLong();
|
|
2544
|
+
if (this._version === ACadVersion.AC1014)
|
|
2545
|
+
this._objectReader.readByte();
|
|
2546
|
+
if (this.R2000Plus) {
|
|
2547
|
+
template.CadObject.clonningFlags = this._objectReader.readBitShort();
|
|
2548
|
+
template.CadObject.hardOwnerFlag = this._objectReader.readByte() > 0;
|
|
2549
|
+
}
|
|
2550
|
+
for (let i = 0; i < nentries; ++i) {
|
|
2551
|
+
const name = this._textReader.readVariableText();
|
|
2552
|
+
const handle = this.handleReference();
|
|
2553
|
+
if (handle === 0 || !name || name.length === 0)
|
|
2554
|
+
continue;
|
|
2555
|
+
template.Entries.set(name, handle);
|
|
2556
|
+
}
|
|
2557
|
+
}
|
|
2558
|
+
readGroup() {
|
|
2559
|
+
const group = new Group();
|
|
2560
|
+
const template = new CadGroupTemplate(group);
|
|
2561
|
+
this.readCommonNonEntityData(template);
|
|
2562
|
+
group.description = this._textReader.readVariableText();
|
|
2563
|
+
this._objectReader.readBitShort();
|
|
2564
|
+
group.selectable = this._objectReader.readBitShort() > 0;
|
|
2565
|
+
const numhandles = this._objectReader.readBitLong();
|
|
2566
|
+
for (let i = 0; i < numhandles; ++i)
|
|
2567
|
+
template.Handles.add(this.handleReference());
|
|
2568
|
+
return template;
|
|
2569
|
+
}
|
|
2570
|
+
readXRecord() {
|
|
2571
|
+
const xRecord = new XRecord();
|
|
2572
|
+
const template = new CadXRecordTemplate(xRecord);
|
|
2573
|
+
this.readCommonNonEntityData(template);
|
|
2574
|
+
const offset = this._objectReader.readBitLong() + this._objectReader.position;
|
|
2575
|
+
while (this._objectReader.position < offset) {
|
|
2576
|
+
const code = this._objectReader.readShort();
|
|
2577
|
+
const groupCode = GroupCodeValue.transformValue(code);
|
|
2578
|
+
switch (groupCode) {
|
|
2579
|
+
case GroupCodeValueType.String:
|
|
2580
|
+
case GroupCodeValueType.ExtendedDataString:
|
|
2581
|
+
xRecord.createEntry(code, this._objectReader.readTextUnicode());
|
|
2582
|
+
break;
|
|
2583
|
+
case GroupCodeValueType.Point3D:
|
|
2584
|
+
xRecord.createEntry(code, new XYZ(this._objectReader.readDouble(), this._objectReader.readDouble(), this._objectReader.readDouble()));
|
|
2585
|
+
break;
|
|
2586
|
+
case GroupCodeValueType.Double:
|
|
2587
|
+
case GroupCodeValueType.ExtendedDataDouble:
|
|
2588
|
+
xRecord.createEntry(code, this._objectReader.readDouble());
|
|
2589
|
+
break;
|
|
2590
|
+
case GroupCodeValueType.Byte:
|
|
2591
|
+
xRecord.createEntry(code, this._objectReader.readByte());
|
|
2592
|
+
break;
|
|
2593
|
+
case GroupCodeValueType.Int16:
|
|
2594
|
+
case GroupCodeValueType.ExtendedDataInt16:
|
|
2595
|
+
xRecord.createEntry(code, this._objectReader.readShort());
|
|
2596
|
+
break;
|
|
2597
|
+
case GroupCodeValueType.Int32:
|
|
2598
|
+
case GroupCodeValueType.ExtendedDataInt32:
|
|
2599
|
+
xRecord.createEntry(code, this._objectReader.readRawLong());
|
|
2600
|
+
break;
|
|
2601
|
+
case GroupCodeValueType.Int64:
|
|
2602
|
+
xRecord.createEntry(code, this._objectReader.readRawULong());
|
|
2603
|
+
break;
|
|
2604
|
+
case GroupCodeValueType.Handle: {
|
|
2605
|
+
const hex = this._objectReader.readTextUnicode();
|
|
2606
|
+
const result = parseInt(hex, 16);
|
|
2607
|
+
if (!isNaN(result)) {
|
|
2608
|
+
template.AddHandleReference(code, result);
|
|
2609
|
+
}
|
|
2610
|
+
else {
|
|
2611
|
+
this.notify(`Failed to parse ${hex} to handle`, NotificationType.Warning);
|
|
2612
|
+
}
|
|
2613
|
+
break;
|
|
2614
|
+
}
|
|
2615
|
+
case GroupCodeValueType.Bool:
|
|
2616
|
+
xRecord.createEntry(code, this._objectReader.readByte() > 0);
|
|
2617
|
+
break;
|
|
2618
|
+
case GroupCodeValueType.Chunk:
|
|
2619
|
+
case GroupCodeValueType.ExtendedDataChunk:
|
|
2620
|
+
xRecord.createEntry(code, this._objectReader.readBytes(this._objectReader.readByte()));
|
|
2621
|
+
break;
|
|
2622
|
+
case GroupCodeValueType.ObjectId:
|
|
2623
|
+
case GroupCodeValueType.ExtendedDataHandle:
|
|
2624
|
+
template.AddHandleReference(code, this._objectReader.readRawULong());
|
|
2625
|
+
break;
|
|
2626
|
+
default:
|
|
2627
|
+
this.notify(`Unidentified GroupCodeValueType ${code} for XRecord [${xRecord.handle}]`, NotificationType.Warning);
|
|
2628
|
+
break;
|
|
2629
|
+
}
|
|
2630
|
+
}
|
|
2631
|
+
if (this.R2000Plus)
|
|
2632
|
+
xRecord.cloningFlags = this._objectReader.readBitShort();
|
|
2633
|
+
const size = this._objectInitialPos + (this._size * 8) - 7;
|
|
2634
|
+
while (this._handlesReader.positionInBits() < size)
|
|
2635
|
+
this.handleReference();
|
|
2636
|
+
return template;
|
|
2637
|
+
}
|
|
2638
|
+
readSortentsTable() {
|
|
2639
|
+
const sortTable = new SortEntitiesTable();
|
|
2640
|
+
const template = new CadSortensTableTemplate(sortTable);
|
|
2641
|
+
this.readCommonNonEntityData(template);
|
|
2642
|
+
template.BlockOwnerHandle = this.handleReference();
|
|
2643
|
+
const numentries = this._mergedReaders.readBitLong();
|
|
2644
|
+
for (let i = 0; i < numentries; i++) {
|
|
2645
|
+
const sortHandle = this._objectReader.handleReference();
|
|
2646
|
+
const entityHandle = this.handleReference();
|
|
2647
|
+
template.Values.push([sortHandle, entityHandle]);
|
|
2648
|
+
}
|
|
2649
|
+
return template;
|
|
2650
|
+
}
|
|
2651
|
+
readScale() {
|
|
2652
|
+
const scale = new Scale();
|
|
2653
|
+
const template = new CadNonGraphicalObjectTemplate(scale);
|
|
2654
|
+
this.readCommonNonEntityData(template);
|
|
2655
|
+
this._mergedReaders.readBitShort();
|
|
2656
|
+
scale.name = this._mergedReaders.readVariableText();
|
|
2657
|
+
scale.paperUnits = this._mergedReaders.readBitDouble();
|
|
2658
|
+
scale.drawingUnits = this._mergedReaders.readBitDouble();
|
|
2659
|
+
scale.isUnitScale = this._mergedReaders.readBit();
|
|
2660
|
+
return template;
|
|
2661
|
+
}
|
|
2662
|
+
readRasterVariables() {
|
|
2663
|
+
const vars = new RasterVariables();
|
|
2664
|
+
const template = new CadNonGraphicalObjectTemplate(vars);
|
|
2665
|
+
this.readCommonNonEntityData(template);
|
|
2666
|
+
vars.classVersion = this._mergedReaders.readBitLong();
|
|
2667
|
+
vars.isDisplayFrameShown = this._mergedReaders.readBitShort() !== 0;
|
|
2668
|
+
vars.displayQuality = this._mergedReaders.readBitShort();
|
|
2669
|
+
vars.units = this._mergedReaders.readBitShort();
|
|
2670
|
+
return template;
|
|
2671
|
+
}
|
|
2672
|
+
readDbColor() {
|
|
2673
|
+
const bookColor = new BookColor();
|
|
2674
|
+
const template = new CadNonGraphicalObjectTemplate(bookColor);
|
|
2675
|
+
this.readCommonNonEntityData(template);
|
|
2676
|
+
const colorIndex = this._objectReader.readBitShort();
|
|
2677
|
+
if (this.R2004Plus) {
|
|
2678
|
+
const trueColor = this._objectReader.readBitLong() >>> 0;
|
|
2679
|
+
const flags = this._objectReader.readByte();
|
|
2680
|
+
if ((flags & 1) > 0)
|
|
2681
|
+
bookColor.colorName = this._textReader.readVariableText();
|
|
2682
|
+
if ((flags & 2) > 0)
|
|
2683
|
+
bookColor.bookName = this._textReader.readVariableText();
|
|
2684
|
+
const arr = LittleEndianConverter.getBytes(trueColor);
|
|
2685
|
+
bookColor.color = new Color(arr[2], arr[1], arr[0]);
|
|
2686
|
+
}
|
|
2687
|
+
else {
|
|
2688
|
+
bookColor.color = new Color(colorIndex);
|
|
2689
|
+
}
|
|
2690
|
+
return template;
|
|
2691
|
+
}
|
|
2692
|
+
// ==================== REMAINING READERS (stubs for brevity, all follow same pattern) ====================
|
|
2693
|
+
// DimStyle, View, VPort, UCS, Layout, Leader, MultiLeader, Material, MLine, MLineStyle,
|
|
2694
|
+
// MultiLeaderStyle, GeoData, TableStyle, VisualStyle, PlotSettings, Evaluation Graph,
|
|
2695
|
+
// Block elements, SpatialFilter, DimensionAssociation, TableEntity, Field, etc.
|
|
2696
|
+
// These are all implemented following the exact same pattern as above - reading binary fields
|
|
2697
|
+
// in the same order as the C# source.
|
|
2698
|
+
readDimStyle() {
|
|
2699
|
+
const dimStyle = new DimensionStyle();
|
|
2700
|
+
const template = new CadDimensionStyleTemplate(dimStyle);
|
|
2701
|
+
this.readCommonNonEntityData(template);
|
|
2702
|
+
const name = this._textReader.readVariableText();
|
|
2703
|
+
if (name && name.trim().length > 0) {
|
|
2704
|
+
dimStyle.name = name;
|
|
2705
|
+
}
|
|
2706
|
+
this.readXrefDependantBit(dimStyle);
|
|
2707
|
+
if (this.R13_14Only) {
|
|
2708
|
+
dimStyle.generateTolerances = this._objectReader.readBit();
|
|
2709
|
+
dimStyle.limitsGeneration = this._objectReader.readBit();
|
|
2710
|
+
dimStyle.textOutsideHorizontal = this._objectReader.readBit();
|
|
2711
|
+
dimStyle.suppressFirstExtensionLine = this._objectReader.readBit();
|
|
2712
|
+
dimStyle.suppressSecondExtensionLine = this._objectReader.readBit();
|
|
2713
|
+
dimStyle.textInsideHorizontal = this._objectReader.readBit();
|
|
2714
|
+
dimStyle.alternateUnitDimensioning = this._objectReader.readBit();
|
|
2715
|
+
dimStyle.textOutsideExtensions = this._objectReader.readBit();
|
|
2716
|
+
dimStyle.separateArrowBlocks = this._objectReader.readBit();
|
|
2717
|
+
dimStyle.textInsideExtensions = this._objectReader.readBit();
|
|
2718
|
+
dimStyle.suppressOutsideExtensions = this._objectReader.readBit();
|
|
2719
|
+
dimStyle.alternateUnitDecimalPlaces = this._objectReader.readByte();
|
|
2720
|
+
dimStyle.zeroHandling = this._objectReader.readRawChar();
|
|
2721
|
+
dimStyle.suppressFirstDimensionLine = this._objectReader.readBit();
|
|
2722
|
+
dimStyle.suppressSecondDimensionLine = this._objectReader.readBit();
|
|
2723
|
+
dimStyle.toleranceAlignment = this._objectReader.readRawChar();
|
|
2724
|
+
dimStyle.textHorizontalAlignment = this._objectReader.readByte();
|
|
2725
|
+
dimStyle.dimensionFit = this._objectReader.readRawChar();
|
|
2726
|
+
dimStyle.cursorUpdate = this._objectReader.readBit();
|
|
2727
|
+
dimStyle.toleranceZeroHandling = this._objectReader.readByte();
|
|
2728
|
+
dimStyle.alternateUnitZeroHandling = this._objectReader.readByte();
|
|
2729
|
+
dimStyle.alternateUnitToleranceZeroHandling = this._objectReader.readByte();
|
|
2730
|
+
dimStyle.textVerticalAlignment = this._objectReader.readByte();
|
|
2731
|
+
dimStyle.dimensionUnit = this._objectReader.readBitShort();
|
|
2732
|
+
dimStyle.angularUnit = this._objectReader.readBitShort();
|
|
2733
|
+
dimStyle.decimalPlaces = this._objectReader.readBitShort();
|
|
2734
|
+
dimStyle.toleranceDecimalPlaces = this._objectReader.readBitShort();
|
|
2735
|
+
dimStyle.alternateUnitFormat = this._objectReader.readBitShort();
|
|
2736
|
+
dimStyle.alternateUnitToleranceDecimalPlaces = this._objectReader.readBitShort();
|
|
2737
|
+
dimStyle.scaleFactor = this._objectReader.readBitDouble();
|
|
2738
|
+
dimStyle.arrowSize = this._objectReader.readBitDouble();
|
|
2739
|
+
dimStyle.extensionLineOffset = this._objectReader.readBitDouble();
|
|
2740
|
+
dimStyle.dimensionLineIncrement = this._objectReader.readBitDouble();
|
|
2741
|
+
dimStyle.extensionLineExtension = this._objectReader.readBitDouble();
|
|
2742
|
+
dimStyle.rounding = this._objectReader.readBitDouble();
|
|
2743
|
+
dimStyle.dimensionLineExtension = this._objectReader.readBitDouble();
|
|
2744
|
+
dimStyle.plusTolerance = this._objectReader.readBitDouble();
|
|
2745
|
+
dimStyle.minusTolerance = this._objectReader.readBitDouble();
|
|
2746
|
+
dimStyle.textHeight = this._objectReader.readBitDouble();
|
|
2747
|
+
dimStyle.centerMarkSize = this._objectReader.readBitDouble();
|
|
2748
|
+
dimStyle.tickSize = this._objectReader.readBitDouble();
|
|
2749
|
+
dimStyle.alternateUnitScaleFactor = this._objectReader.readBitDouble();
|
|
2750
|
+
dimStyle.linearScaleFactor = this._objectReader.readBitDouble();
|
|
2751
|
+
dimStyle.textVerticalPosition = this._objectReader.readBitDouble();
|
|
2752
|
+
dimStyle.toleranceScaleFactor = this._objectReader.readBitDouble();
|
|
2753
|
+
dimStyle.dimensionLineGap = this._objectReader.readBitDouble();
|
|
2754
|
+
dimStyle.postFix = this._textReader.readVariableText();
|
|
2755
|
+
dimStyle.alternateDimensioningSuffix = this._textReader.readVariableText();
|
|
2756
|
+
template.DIMBL_Name = this._textReader.readVariableText();
|
|
2757
|
+
template.DIMBLK1_Name = this._textReader.readVariableText();
|
|
2758
|
+
template.DIMBLK2_Name = this._textReader.readVariableText();
|
|
2759
|
+
dimStyle.dimensionLineColor = this._objectReader.readColorByIndex();
|
|
2760
|
+
dimStyle.extensionLineColor = this._objectReader.readColorByIndex();
|
|
2761
|
+
dimStyle.textColor = this._objectReader.readColorByIndex();
|
|
2762
|
+
}
|
|
2763
|
+
if (this.R2000Plus) {
|
|
2764
|
+
dimStyle.postFix = this._textReader.readVariableText();
|
|
2765
|
+
dimStyle.alternateDimensioningSuffix = this._textReader.readVariableText();
|
|
2766
|
+
dimStyle.scaleFactor = this._objectReader.readBitDouble();
|
|
2767
|
+
dimStyle.arrowSize = this._objectReader.readBitDouble();
|
|
2768
|
+
dimStyle.extensionLineOffset = this._objectReader.readBitDouble();
|
|
2769
|
+
dimStyle.dimensionLineIncrement = this._objectReader.readBitDouble();
|
|
2770
|
+
dimStyle.extensionLineExtension = this._objectReader.readBitDouble();
|
|
2771
|
+
dimStyle.rounding = this._objectReader.readBitDouble();
|
|
2772
|
+
dimStyle.dimensionLineExtension = this._objectReader.readBitDouble();
|
|
2773
|
+
dimStyle.plusTolerance = this._objectReader.readBitDouble();
|
|
2774
|
+
dimStyle.minusTolerance = this._objectReader.readBitDouble();
|
|
2775
|
+
}
|
|
2776
|
+
if (this.R2007Plus) {
|
|
2777
|
+
dimStyle.fixedExtensionLineLength = this._objectReader.readBitDouble();
|
|
2778
|
+
dimStyle.joggedRadiusDimensionTransverseSegmentAngle = this._objectReader.readBitDouble();
|
|
2779
|
+
dimStyle.textBackgroundFillMode = this._objectReader.readBitShort();
|
|
2780
|
+
dimStyle.textBackgroundColor = this._mergedReaders.readCmColor();
|
|
2781
|
+
}
|
|
2782
|
+
if (this.R2000Plus) {
|
|
2783
|
+
dimStyle.generateTolerances = this._objectReader.readBit();
|
|
2784
|
+
dimStyle.limitsGeneration = this._objectReader.readBit();
|
|
2785
|
+
dimStyle.textInsideHorizontal = this._objectReader.readBit();
|
|
2786
|
+
dimStyle.textOutsideHorizontal = this._objectReader.readBit();
|
|
2787
|
+
dimStyle.suppressFirstExtensionLine = this._objectReader.readBit();
|
|
2788
|
+
dimStyle.suppressSecondExtensionLine = this._objectReader.readBit();
|
|
2789
|
+
dimStyle.textVerticalAlignment = this._objectReader.readBitShort();
|
|
2790
|
+
dimStyle.zeroHandling = this._objectReader.readBitShort();
|
|
2791
|
+
dimStyle.angularZeroHandling = this._objectReader.readBitShort();
|
|
2792
|
+
}
|
|
2793
|
+
if (this.R2007Plus) {
|
|
2794
|
+
dimStyle.arcLengthSymbolPosition = this._objectReader.readBitShort();
|
|
2795
|
+
}
|
|
2796
|
+
if (this.R2000Plus) {
|
|
2797
|
+
dimStyle.textHeight = this._objectReader.readBitDouble();
|
|
2798
|
+
dimStyle.centerMarkSize = this._objectReader.readBitDouble();
|
|
2799
|
+
dimStyle.tickSize = this._objectReader.readBitDouble();
|
|
2800
|
+
dimStyle.alternateUnitScaleFactor = this._objectReader.readBitDouble();
|
|
2801
|
+
dimStyle.linearScaleFactor = this._objectReader.readBitDouble();
|
|
2802
|
+
dimStyle.textVerticalPosition = this._objectReader.readBitDouble();
|
|
2803
|
+
dimStyle.toleranceScaleFactor = this._objectReader.readBitDouble();
|
|
2804
|
+
dimStyle.dimensionLineGap = this._objectReader.readBitDouble();
|
|
2805
|
+
dimStyle.alternateUnitRounding = this._objectReader.readBitDouble();
|
|
2806
|
+
dimStyle.alternateUnitDimensioning = this._objectReader.readBit();
|
|
2807
|
+
dimStyle.alternateUnitDecimalPlaces = this._objectReader.readBitShort();
|
|
2808
|
+
dimStyle.textOutsideExtensions = this._objectReader.readBit();
|
|
2809
|
+
dimStyle.separateArrowBlocks = this._objectReader.readBit();
|
|
2810
|
+
dimStyle.textInsideExtensions = this._objectReader.readBit();
|
|
2811
|
+
dimStyle.suppressOutsideExtensions = this._objectReader.readBit();
|
|
2812
|
+
dimStyle.dimensionLineColor = this._mergedReaders.readCmColor();
|
|
2813
|
+
dimStyle.extensionLineColor = this._mergedReaders.readCmColor();
|
|
2814
|
+
dimStyle.textColor = this._mergedReaders.readCmColor();
|
|
2815
|
+
dimStyle.angularDecimalPlaces = this._objectReader.readBitShort();
|
|
2816
|
+
dimStyle.decimalPlaces = this._objectReader.readBitShort();
|
|
2817
|
+
dimStyle.toleranceDecimalPlaces = this._objectReader.readBitShort();
|
|
2818
|
+
dimStyle.alternateUnitFormat = this._objectReader.readBitShort();
|
|
2819
|
+
dimStyle.alternateUnitToleranceDecimalPlaces = this._objectReader.readBitShort();
|
|
2820
|
+
dimStyle.angularUnit = this._objectReader.readBitShort();
|
|
2821
|
+
dimStyle.fractionFormat = this._objectReader.readBitShort();
|
|
2822
|
+
dimStyle.linearUnitFormat = this._objectReader.readBitShort();
|
|
2823
|
+
dimStyle.decimalSeparator = String.fromCharCode(this._objectReader.readBitShort());
|
|
2824
|
+
dimStyle.textMovement = this._objectReader.readBitShort();
|
|
2825
|
+
dimStyle.textHorizontalAlignment = this._objectReader.readBitShort();
|
|
2826
|
+
dimStyle.suppressFirstDimensionLine = this._objectReader.readBit();
|
|
2827
|
+
dimStyle.suppressSecondDimensionLine = this._objectReader.readBit();
|
|
2828
|
+
dimStyle.toleranceAlignment = this._objectReader.readBitShort();
|
|
2829
|
+
dimStyle.toleranceZeroHandling = this._objectReader.readBitShort();
|
|
2830
|
+
dimStyle.alternateUnitZeroHandling = this._objectReader.readBitShort();
|
|
2831
|
+
dimStyle.alternateUnitToleranceZeroHandling = this._objectReader.readBitShort();
|
|
2832
|
+
dimStyle.cursorUpdate = this._objectReader.readBit();
|
|
2833
|
+
dimStyle.dimensionFit = this._objectReader.readBitShort();
|
|
2834
|
+
}
|
|
2835
|
+
if (this.R2007Plus) {
|
|
2836
|
+
dimStyle.isExtensionLineLengthFixed = this._objectReader.readBit();
|
|
2837
|
+
}
|
|
2838
|
+
if (this.R2010Plus) {
|
|
2839
|
+
dimStyle.textDirection = this._objectReader.readBit() ? TextDirection.RightToLeft : TextDirection.LeftToRight;
|
|
2840
|
+
dimStyle.altMzf = this._objectReader.readBitDouble();
|
|
2841
|
+
dimStyle.altMzs = this._textReader.readVariableText();
|
|
2842
|
+
dimStyle.mzf = this._objectReader.readBitDouble();
|
|
2843
|
+
dimStyle.mzs = this._textReader.readVariableText();
|
|
2844
|
+
}
|
|
2845
|
+
if (this.R2000Plus) {
|
|
2846
|
+
dimStyle.dimensionLineWeight = this._objectReader.readBitShort();
|
|
2847
|
+
dimStyle.extensionLineWeight = this._objectReader.readBitShort();
|
|
2848
|
+
}
|
|
2849
|
+
this._objectReader.readBit();
|
|
2850
|
+
template.BlockHandle = this.handleReference();
|
|
2851
|
+
template.TextStyleHandle = this.handleReference();
|
|
2852
|
+
if (this.R2000Plus) {
|
|
2853
|
+
template.DIMLDRBLK = this.handleReference();
|
|
2854
|
+
template.DIMBLK = this.handleReference();
|
|
2855
|
+
template.DIMBLK1 = this.handleReference();
|
|
2856
|
+
template.DIMBLK2 = this.handleReference();
|
|
2857
|
+
}
|
|
2858
|
+
if (this.R2007Plus) {
|
|
2859
|
+
template.Dimltype = this.handleReference();
|
|
2860
|
+
template.Dimltex1 = this.handleReference();
|
|
2861
|
+
template.Dimltex2 = this.handleReference();
|
|
2862
|
+
}
|
|
2863
|
+
return template;
|
|
2864
|
+
}
|
|
2865
|
+
readView() {
|
|
2866
|
+
const view = new View();
|
|
2867
|
+
const template = new CadViewTemplate(view);
|
|
2868
|
+
this.readCommonNonEntityData(template);
|
|
2869
|
+
view.name = this._textReader.readVariableText();
|
|
2870
|
+
this.readXrefDependantBit(view);
|
|
2871
|
+
view.height = this._objectReader.readBitDouble();
|
|
2872
|
+
view.width = this._objectReader.readBitDouble();
|
|
2873
|
+
view.center = this._objectReader.read2RawDouble();
|
|
2874
|
+
view.target = this._objectReader.read3BitDouble();
|
|
2875
|
+
view.direction = this._objectReader.read3BitDouble();
|
|
2876
|
+
view.angle = this._objectReader.readBitDouble();
|
|
2877
|
+
view.lensLength = this._objectReader.readBitDouble();
|
|
2878
|
+
view.frontClipping = this._objectReader.readBitDouble();
|
|
2879
|
+
view.backClipping = this._objectReader.readBitDouble();
|
|
2880
|
+
if (this._objectReader.readBit())
|
|
2881
|
+
view.viewMode |= ViewModeType.PerspectiveView;
|
|
2882
|
+
if (this._objectReader.readBit())
|
|
2883
|
+
view.viewMode |= ViewModeType.FrontClipping;
|
|
2884
|
+
if (this._objectReader.readBit())
|
|
2885
|
+
view.viewMode |= ViewModeType.BackClipping;
|
|
2886
|
+
if (this._objectReader.readBit())
|
|
2887
|
+
view.viewMode |= ViewModeType.FrontClippingZ;
|
|
2888
|
+
if (this.R2000Plus) {
|
|
2889
|
+
view.renderMode = this._objectReader.readByte();
|
|
2890
|
+
}
|
|
2891
|
+
if (this.R2007Plus) {
|
|
2892
|
+
this._mergedReaders.readBit();
|
|
2893
|
+
this._mergedReaders.readByte();
|
|
2894
|
+
this._mergedReaders.readBitDouble();
|
|
2895
|
+
this._mergedReaders.readBitDouble();
|
|
2896
|
+
this._mergedReaders.readCmColor();
|
|
2897
|
+
}
|
|
2898
|
+
if (this._objectReader.readBit())
|
|
2899
|
+
view.flags |= 0b1;
|
|
2900
|
+
if (this.R2000Plus) {
|
|
2901
|
+
view.isUcsAssociated = this._objectReader.readBit();
|
|
2902
|
+
if (view.isUcsAssociated) {
|
|
2903
|
+
view.ucsOrigin = this._objectReader.read3BitDouble();
|
|
2904
|
+
view.ucsXAxis = this._objectReader.read3BitDouble();
|
|
2905
|
+
view.ucsYAxis = this._objectReader.read3BitDouble();
|
|
2906
|
+
view.ucsElevation = this._objectReader.readBitDouble();
|
|
2907
|
+
view.ucsOrthographicType = this._objectReader.readBitShort();
|
|
2908
|
+
}
|
|
2909
|
+
}
|
|
2910
|
+
this.handleReference();
|
|
2911
|
+
if (this.R2007Plus) {
|
|
2912
|
+
view.isPlottable = this._objectReader.readBit();
|
|
2913
|
+
this.handleReference();
|
|
2914
|
+
this.handleReference();
|
|
2915
|
+
this.handleReference();
|
|
2916
|
+
}
|
|
2917
|
+
if (this.R2000Plus && view.isUcsAssociated) {
|
|
2918
|
+
template.UcsHandle = this.handleReference();
|
|
2919
|
+
template.NamedUcsHandle = this.handleReference();
|
|
2920
|
+
}
|
|
2921
|
+
if (this.R2007Plus) {
|
|
2922
|
+
this.handleReference();
|
|
2923
|
+
}
|
|
2924
|
+
return template;
|
|
2925
|
+
}
|
|
2926
|
+
readVPort() {
|
|
2927
|
+
const vport = new VPort();
|
|
2928
|
+
const template = new CadVPortTemplate(vport);
|
|
2929
|
+
this.readCommonNonEntityData(template);
|
|
2930
|
+
vport.name = this._textReader.readVariableText();
|
|
2931
|
+
this.readXrefDependantBit(vport);
|
|
2932
|
+
vport.viewHeight = this._objectReader.readBitDouble();
|
|
2933
|
+
vport.aspectRatio = this._objectReader.readBitDouble() / vport.viewHeight;
|
|
2934
|
+
vport.center = this._objectReader.read2RawDouble();
|
|
2935
|
+
vport.target = this._objectReader.read3BitDouble();
|
|
2936
|
+
vport.direction = this._objectReader.read3BitDouble();
|
|
2937
|
+
vport.twistAngle = this._objectReader.readBitDouble();
|
|
2938
|
+
vport.lensLength = this._objectReader.readBitDouble();
|
|
2939
|
+
vport.frontClippingPlane = this._objectReader.readBitDouble();
|
|
2940
|
+
vport.backClippingPlane = this._objectReader.readBitDouble();
|
|
2941
|
+
if (this._objectReader.readBit())
|
|
2942
|
+
vport.viewMode |= ViewModeType.PerspectiveView;
|
|
2943
|
+
if (this._objectReader.readBit())
|
|
2944
|
+
vport.viewMode |= ViewModeType.FrontClipping;
|
|
2945
|
+
if (this._objectReader.readBit())
|
|
2946
|
+
vport.viewMode |= ViewModeType.BackClipping;
|
|
2947
|
+
if (this._objectReader.readBit())
|
|
2948
|
+
vport.viewMode |= ViewModeType.FrontClippingZ;
|
|
2949
|
+
if (this.R2000Plus) {
|
|
2950
|
+
vport.renderMode = this._objectReader.readByte();
|
|
2951
|
+
}
|
|
2952
|
+
if (this.R2007Plus) {
|
|
2953
|
+
vport.useDefaultLighting = this._objectReader.readBit();
|
|
2954
|
+
vport.defaultLighting = this._objectReader.readByte();
|
|
2955
|
+
vport.brightness = this._objectReader.readBitDouble();
|
|
2956
|
+
vport.contrast = this._objectReader.readBitDouble();
|
|
2957
|
+
vport.ambientColor = this._mergedReaders.readCmColor();
|
|
2958
|
+
}
|
|
2959
|
+
vport.bottomLeft = this._objectReader.read2RawDouble();
|
|
2960
|
+
vport.topRight = this._objectReader.read2RawDouble();
|
|
2961
|
+
if (this._objectReader.readBit())
|
|
2962
|
+
vport.viewMode |= ViewModeType.Follow;
|
|
2963
|
+
vport.circleZoomPercent = this._objectReader.readBitShort();
|
|
2964
|
+
this._objectReader.readBit();
|
|
2965
|
+
if (this._objectReader.readBit())
|
|
2966
|
+
vport.ucsIconDisplay = UscIconType.OnLower;
|
|
2967
|
+
if (this._objectReader.readBit())
|
|
2968
|
+
vport.ucsIconDisplay = UscIconType.OnOrigin;
|
|
2969
|
+
vport.showGrid = this._objectReader.readBit();
|
|
2970
|
+
vport.gridSpacing = this._objectReader.read2RawDouble();
|
|
2971
|
+
vport.snapOn = this._objectReader.readBit();
|
|
2972
|
+
vport.isometricSnap = this._objectReader.readBit();
|
|
2973
|
+
vport.snapIsoPair = this._objectReader.readBitShort();
|
|
2974
|
+
vport.snapRotation = this._objectReader.readBitDouble();
|
|
2975
|
+
vport.snapBasePoint = this._objectReader.read2RawDouble();
|
|
2976
|
+
vport.snapSpacing = this._objectReader.read2RawDouble();
|
|
2977
|
+
if (this.R2000Plus) {
|
|
2978
|
+
this._objectReader.readBit();
|
|
2979
|
+
const ucsPerViewport = this._objectReader.readBit();
|
|
2980
|
+
vport.origin = this._objectReader.read3BitDouble();
|
|
2981
|
+
vport.xAxis = this._objectReader.read3BitDouble();
|
|
2982
|
+
vport.yAxis = this._objectReader.read3BitDouble();
|
|
2983
|
+
vport.elevation = this._objectReader.readBitDouble();
|
|
2984
|
+
vport.orthographicType = this._objectReader.readBitShort();
|
|
2985
|
+
}
|
|
2986
|
+
if (this.R2007Plus) {
|
|
2987
|
+
vport.gridFlags = this._objectReader.readBitShort();
|
|
2988
|
+
vport.minorGridLinesPerMajorGridLine = this._objectReader.readBitShort();
|
|
2989
|
+
}
|
|
2990
|
+
template.VportControlHandle = this.handleReference();
|
|
2991
|
+
if (this.R2007Plus) {
|
|
2992
|
+
template.BackgroundHandle = this.handleReference();
|
|
2993
|
+
template.StyleHandle = this.handleReference();
|
|
2994
|
+
template.SunHandle = this.handleReference();
|
|
2995
|
+
}
|
|
2996
|
+
if (this.R2000Plus) {
|
|
2997
|
+
template.NamedUcsHandle = this.handleReference();
|
|
2998
|
+
template.BaseUcsHandle = this.handleReference();
|
|
2999
|
+
}
|
|
3000
|
+
return template;
|
|
3001
|
+
}
|
|
3002
|
+
readUcs() {
|
|
3003
|
+
const ucs = new UCS();
|
|
3004
|
+
const template = new CadUcsTemplate(ucs);
|
|
3005
|
+
this.readCommonNonEntityData(template);
|
|
3006
|
+
ucs.name = this._textReader.readVariableText();
|
|
3007
|
+
this.readXrefDependantBit(ucs);
|
|
3008
|
+
ucs.origin = this._objectReader.read3BitDouble();
|
|
3009
|
+
ucs.xAxis = this._objectReader.read3BitDouble();
|
|
3010
|
+
ucs.yAxis = this._objectReader.read3BitDouble();
|
|
3011
|
+
if (this.R2000Plus) {
|
|
3012
|
+
ucs.elevation = this._objectReader.readBitDouble();
|
|
3013
|
+
ucs.orthographicViewType = this._objectReader.readBitShort();
|
|
3014
|
+
ucs.orthographicType = this._objectReader.readBitShort();
|
|
3015
|
+
}
|
|
3016
|
+
const control = this.handleReference();
|
|
3017
|
+
if (this.R2000Plus) {
|
|
3018
|
+
const baseUcs = this.handleReference();
|
|
3019
|
+
const namedHandle = this.handleReference();
|
|
3020
|
+
}
|
|
3021
|
+
return template;
|
|
3022
|
+
}
|
|
3023
|
+
readLayout() {
|
|
3024
|
+
const layout = new Layout();
|
|
3025
|
+
const template = new CadLayoutTemplate(layout);
|
|
3026
|
+
this.readCommonNonEntityData(template);
|
|
3027
|
+
this.readPlotSettingsData(layout);
|
|
3028
|
+
layout.name = this._textReader.readVariableText();
|
|
3029
|
+
layout.tabOrder = this._objectReader.readBitLong();
|
|
3030
|
+
layout.layoutFlags = this._objectReader.readBitShort();
|
|
3031
|
+
layout.origin = this._objectReader.read3BitDouble();
|
|
3032
|
+
layout.minLimits = this._objectReader.read2RawDouble();
|
|
3033
|
+
layout.maxLimits = this._objectReader.read2RawDouble();
|
|
3034
|
+
layout.insertionBasePoint = this._objectReader.read3BitDouble();
|
|
3035
|
+
layout.xAxis = this._objectReader.read3BitDouble();
|
|
3036
|
+
layout.yAxis = this._objectReader.read3BitDouble();
|
|
3037
|
+
layout.elevation = this._objectReader.readBitDouble();
|
|
3038
|
+
layout.ucsOrthographicType = this._objectReader.readBitShort();
|
|
3039
|
+
layout.minExtents = this._objectReader.read3BitDouble();
|
|
3040
|
+
layout.maxExtents = this._objectReader.read3BitDouble();
|
|
3041
|
+
let nLayouts = 0;
|
|
3042
|
+
if (this.R2004Plus) {
|
|
3043
|
+
nLayouts = this._objectReader.readBitLong();
|
|
3044
|
+
}
|
|
3045
|
+
template.PaperSpaceBlockHandle = this.handleReference();
|
|
3046
|
+
template.ActiveViewportHandle = this.handleReference();
|
|
3047
|
+
template.BaseUcsHandle = this.handleReference();
|
|
3048
|
+
template.NamesUcsHandle = this.handleReference();
|
|
3049
|
+
if (this.R2004Plus) {
|
|
3050
|
+
for (let i = 0; i < nLayouts; i++) {
|
|
3051
|
+
template.ViewportHandles.add(this.handleReference());
|
|
3052
|
+
}
|
|
3053
|
+
}
|
|
3054
|
+
return template;
|
|
3055
|
+
}
|
|
3056
|
+
readLeader() {
|
|
3057
|
+
const leader = new Leader();
|
|
3058
|
+
const template = new CadLeaderTemplate(leader);
|
|
3059
|
+
this.readCommonEntityData(template);
|
|
3060
|
+
this._objectReader.readBit();
|
|
3061
|
+
leader.creationType = this._objectReader.readBitShort();
|
|
3062
|
+
leader.pathType = this._objectReader.readBitShort();
|
|
3063
|
+
const npts = this._objectReader.readBitLong();
|
|
3064
|
+
for (let i = 0; i < npts; i++) {
|
|
3065
|
+
leader.vertices.push(this._objectReader.read3BitDouble());
|
|
3066
|
+
}
|
|
3067
|
+
this._objectReader.read3BitDouble();
|
|
3068
|
+
leader.normal = this._objectReader.read3BitDouble();
|
|
3069
|
+
leader.horizontalDirection = this._objectReader.read3BitDouble();
|
|
3070
|
+
leader.blockOffset = this._objectReader.read3BitDouble();
|
|
3071
|
+
if (this._version >= ACadVersion.AC1014) {
|
|
3072
|
+
leader.annotationOffset = this._objectReader.read3BitDouble();
|
|
3073
|
+
}
|
|
3074
|
+
if (this.R13_14Only) {
|
|
3075
|
+
leader.style.dimensionLineGap = this._objectReader.readBitDouble();
|
|
3076
|
+
}
|
|
3077
|
+
if (this._version <= ACadVersion.AC1021) {
|
|
3078
|
+
leader.textHeight = this._objectReader.readBitDouble();
|
|
3079
|
+
leader.textWidth = this._objectReader.readBitDouble();
|
|
3080
|
+
}
|
|
3081
|
+
leader.hookLineDirection = this._objectReader.readBit() ? HookLineDirection.Same : HookLineDirection.Opposite;
|
|
3082
|
+
leader.arrowHeadEnabled = this._objectReader.readBit();
|
|
3083
|
+
if (this.R13_14Only) {
|
|
3084
|
+
this._objectReader.readBitShort();
|
|
3085
|
+
template.Dimasz = this._objectReader.readBitDouble();
|
|
3086
|
+
this._objectReader.readBit();
|
|
3087
|
+
this._objectReader.readBit();
|
|
3088
|
+
this._objectReader.readBitShort();
|
|
3089
|
+
this._objectReader.readBitShort();
|
|
3090
|
+
this._objectReader.readBit();
|
|
3091
|
+
this._objectReader.readBit();
|
|
3092
|
+
}
|
|
3093
|
+
if (this.R2000Plus) {
|
|
3094
|
+
this._objectReader.readBitShort();
|
|
3095
|
+
this._objectReader.readBit();
|
|
3096
|
+
this._objectReader.readBit();
|
|
3097
|
+
}
|
|
3098
|
+
template.AnnotationHandle = this.handleReference();
|
|
3099
|
+
template.DIMSTYLEHandle = this.handleReference();
|
|
3100
|
+
return template;
|
|
3101
|
+
}
|
|
3102
|
+
readMultiLeader() {
|
|
3103
|
+
const mLeader = new MultiLeader();
|
|
3104
|
+
const template = new CadMLeaderTemplate(mLeader);
|
|
3105
|
+
this.readCommonEntityData(template);
|
|
3106
|
+
if (this.R2010Plus) {
|
|
3107
|
+
const f270 = this._objectReader.readBitShort();
|
|
3108
|
+
}
|
|
3109
|
+
this.readMultiLeaderAnnotContextData(mLeader.contextData, template.CadMLeaderAnnotContextTemplate);
|
|
3110
|
+
template.LeaderStyleHandle = this.handleReference();
|
|
3111
|
+
mLeader.propertyOverrideFlags = this._objectReader.readBitLong();
|
|
3112
|
+
mLeader.pathType = this._objectReader.readBitShort();
|
|
3113
|
+
mLeader.lineColor = this._mergedReaders.readCmColor();
|
|
3114
|
+
template.LeaderLineTypeHandle = this.handleReference();
|
|
3115
|
+
mLeader.leaderLineWeight = this._objectReader.readBitLong();
|
|
3116
|
+
mLeader.enableLanding = this._objectReader.readBit();
|
|
3117
|
+
mLeader.enableDogleg = this._objectReader.readBit();
|
|
3118
|
+
mLeader.landingDistance = this._objectReader.readBitDouble();
|
|
3119
|
+
template.ArrowheadHandle = this.handleReference();
|
|
3120
|
+
mLeader.arrowheadSize = this._objectReader.readBitDouble();
|
|
3121
|
+
mLeader.contentType = this._objectReader.readBitShort();
|
|
3122
|
+
template.MTextStyleHandle = this.handleReference();
|
|
3123
|
+
mLeader.textLeftAttachment = this._objectReader.readBitShort();
|
|
3124
|
+
mLeader.textRightAttachment = this._objectReader.readBitShort();
|
|
3125
|
+
mLeader.textAngle = this._objectReader.readBitShort();
|
|
3126
|
+
mLeader.textAlignment = this._objectReader.readBitShort();
|
|
3127
|
+
mLeader.textColor = this._mergedReaders.readCmColor();
|
|
3128
|
+
mLeader.textFrame = this._objectReader.readBit();
|
|
3129
|
+
template.BlockContentHandle = this.handleReference();
|
|
3130
|
+
mLeader.blockContentColor = this._mergedReaders.readCmColor();
|
|
3131
|
+
mLeader.blockContentScale = this._objectReader.read3BitDouble();
|
|
3132
|
+
mLeader.blockContentRotation = this._objectReader.readBitDouble();
|
|
3133
|
+
mLeader.blockContentConnection = this._objectReader.readBitShort();
|
|
3134
|
+
mLeader.enableAnnotationScale = this._objectReader.readBit();
|
|
3135
|
+
if (this.R2007Pre) {
|
|
3136
|
+
const arrowHeadCount = this._objectReader.readBitLong();
|
|
3137
|
+
for (let ah = 0; ah < arrowHeadCount; ah++) {
|
|
3138
|
+
const isDefault = this._objectReader.readBit();
|
|
3139
|
+
template.ArrowheadHandles.set(this.handleReference(), isDefault);
|
|
3140
|
+
}
|
|
3141
|
+
}
|
|
3142
|
+
const blockLabelCount = this._objectReader.readBitLong();
|
|
3143
|
+
for (let bl = 0; bl < blockLabelCount; bl++) {
|
|
3144
|
+
const attributeHandle = this.handleReference();
|
|
3145
|
+
const blockAttribute = new MultiLeaderBlockAttribute();
|
|
3146
|
+
blockAttribute.text = this._textReader.readVariableText();
|
|
3147
|
+
blockAttribute.index = this._objectReader.readBitShort();
|
|
3148
|
+
blockAttribute.width = this._objectReader.readBitDouble();
|
|
3149
|
+
mLeader.blockAttributes.push(blockAttribute);
|
|
3150
|
+
template.BlockAttributeHandles.set(blockAttribute, attributeHandle);
|
|
3151
|
+
}
|
|
3152
|
+
mLeader.textDirectionNegative = this._objectReader.readBit();
|
|
3153
|
+
mLeader.textAligninIPE = this._objectReader.readBitShort() !== 0;
|
|
3154
|
+
mLeader.textAttachmentPoint = this._objectReader.readBitShort();
|
|
3155
|
+
mLeader.scaleFactor = this._objectReader.readBitDouble();
|
|
3156
|
+
if (this.R2010Plus) {
|
|
3157
|
+
mLeader.textAttachmentDirection = this._objectReader.readBitShort();
|
|
3158
|
+
mLeader.textBottomAttachment = this._objectReader.readBitShort();
|
|
3159
|
+
mLeader.textTopAttachment = this._objectReader.readBitShort();
|
|
3160
|
+
}
|
|
3161
|
+
if (this.R2013Plus) {
|
|
3162
|
+
mLeader.extendedToText = this._objectReader.readBit();
|
|
3163
|
+
}
|
|
3164
|
+
return template;
|
|
3165
|
+
}
|
|
3166
|
+
readMultiLeaderAnnotContext() {
|
|
3167
|
+
const annotContext = new MultiLeaderObjectContextData();
|
|
3168
|
+
const template = new CadMLeaderAnnotContextTemplate(annotContext);
|
|
3169
|
+
this.readAnnotScaleObjectContextData(template);
|
|
3170
|
+
this.readMultiLeaderAnnotContextData(annotContext, template);
|
|
3171
|
+
return template;
|
|
3172
|
+
}
|
|
3173
|
+
readMultiLeaderAnnotContextData(annotContext, template) {
|
|
3174
|
+
let leaderRootCount = this._objectReader.readBitLong();
|
|
3175
|
+
if (leaderRootCount === 0) {
|
|
3176
|
+
const b0 = this._objectReader.readBit();
|
|
3177
|
+
const b1 = this._objectReader.readBit();
|
|
3178
|
+
const b2 = this._objectReader.readBit();
|
|
3179
|
+
const b3 = this._objectReader.readBit();
|
|
3180
|
+
const b4 = this._objectReader.readBit();
|
|
3181
|
+
const b5 = this._objectReader.readBit();
|
|
3182
|
+
const b6 = this._objectReader.readBit();
|
|
3183
|
+
leaderRootCount = b5 ? 2 : 1;
|
|
3184
|
+
}
|
|
3185
|
+
for (let i = 0; i < leaderRootCount; i++) {
|
|
3186
|
+
annotContext.leaderRoots.push(this.readLeaderRoot(template));
|
|
3187
|
+
}
|
|
3188
|
+
annotContext.scaleFactor = this._objectReader.readBitDouble();
|
|
3189
|
+
annotContext.contentBasePoint = this._objectReader.read3BitDouble();
|
|
3190
|
+
annotContext.textHeight = this._objectReader.readBitDouble();
|
|
3191
|
+
annotContext.arrowheadSize = this._objectReader.readBitDouble();
|
|
3192
|
+
annotContext.landingGap = this._objectReader.readBitDouble();
|
|
3193
|
+
annotContext.textLeftAttachment = this._objectReader.readBitShort();
|
|
3194
|
+
annotContext.textRightAttachment = this._objectReader.readBitShort();
|
|
3195
|
+
annotContext.textAlignment = this._objectReader.readBitShort();
|
|
3196
|
+
annotContext.blockContentConnection = this._objectReader.readBitShort();
|
|
3197
|
+
annotContext.hasTextContents = this._objectReader.readBit();
|
|
3198
|
+
if (annotContext.hasTextContents) {
|
|
3199
|
+
annotContext.textLabel = this._textReader.readVariableText();
|
|
3200
|
+
annotContext.textNormal = this._objectReader.read3BitDouble();
|
|
3201
|
+
template.TextStyleHandle = this.handleReference();
|
|
3202
|
+
annotContext.textLocation = this._objectReader.read3BitDouble();
|
|
3203
|
+
annotContext.direction = this._objectReader.read3BitDouble();
|
|
3204
|
+
annotContext.textRotation = this._objectReader.readBitDouble();
|
|
3205
|
+
annotContext.boundaryWidth = this._objectReader.readBitDouble();
|
|
3206
|
+
annotContext.boundaryHeight = this._objectReader.readBitDouble();
|
|
3207
|
+
annotContext.lineSpacingFactor = this._objectReader.readBitDouble();
|
|
3208
|
+
annotContext.lineSpacing = this._objectReader.readBitShort();
|
|
3209
|
+
annotContext.textColor = this._objectReader.readCmColor();
|
|
3210
|
+
annotContext.textAttachmentPoint = this._objectReader.readBitShort();
|
|
3211
|
+
annotContext.flowDirection = this._objectReader.readBitShort();
|
|
3212
|
+
annotContext.backgroundFillColor = this._objectReader.readCmColor();
|
|
3213
|
+
annotContext.backgroundScaleFactor = this._objectReader.readBitDouble();
|
|
3214
|
+
annotContext.backgroundTransparency = this._objectReader.readBitLong();
|
|
3215
|
+
annotContext.backgroundFillEnabled = this._objectReader.readBit();
|
|
3216
|
+
annotContext.backgroundMaskFillOn = this._objectReader.readBit();
|
|
3217
|
+
annotContext.columnType = this._objectReader.readBitShort();
|
|
3218
|
+
annotContext.textHeightAutomatic = this._objectReader.readBit();
|
|
3219
|
+
annotContext.columnWidth = this._objectReader.readBitDouble();
|
|
3220
|
+
annotContext.columnGutter = this._objectReader.readBitDouble();
|
|
3221
|
+
annotContext.columnFlowReversed = this._objectReader.readBit();
|
|
3222
|
+
const columnSizesCount = this._objectReader.readBitLong();
|
|
3223
|
+
for (let i = 0; i < columnSizesCount; i++) {
|
|
3224
|
+
annotContext.columnSizes.push(this._objectReader.readBitDouble());
|
|
3225
|
+
}
|
|
3226
|
+
annotContext.wordBreak = this._objectReader.readBit();
|
|
3227
|
+
this._objectReader.readBit();
|
|
3228
|
+
}
|
|
3229
|
+
else if (annotContext.hasContentsBlock = this._objectReader.readBit()) {
|
|
3230
|
+
template.BlockRecordHandle = this.handleReference();
|
|
3231
|
+
annotContext.blockContentNormal = this._objectReader.read3BitDouble();
|
|
3232
|
+
annotContext.blockContentLocation = this._objectReader.read3BitDouble();
|
|
3233
|
+
annotContext.blockContentScale = this._objectReader.read3BitDouble();
|
|
3234
|
+
annotContext.blockContentRotation = this._objectReader.readBitDouble();
|
|
3235
|
+
annotContext.blockContentColor = this._objectReader.readCmColor();
|
|
3236
|
+
const m00 = this._objectReader.readBitDouble();
|
|
3237
|
+
const m10 = this._objectReader.readBitDouble();
|
|
3238
|
+
const m20 = this._objectReader.readBitDouble();
|
|
3239
|
+
const m30 = this._objectReader.readBitDouble();
|
|
3240
|
+
const m01 = this._objectReader.readBitDouble();
|
|
3241
|
+
const m11 = this._objectReader.readBitDouble();
|
|
3242
|
+
const m21 = this._objectReader.readBitDouble();
|
|
3243
|
+
const m31 = this._objectReader.readBitDouble();
|
|
3244
|
+
const m02 = this._objectReader.readBitDouble();
|
|
3245
|
+
const m12 = this._objectReader.readBitDouble();
|
|
3246
|
+
const m22 = this._objectReader.readBitDouble();
|
|
3247
|
+
const m32 = this._objectReader.readBitDouble();
|
|
3248
|
+
const m03 = this._objectReader.readBitDouble();
|
|
3249
|
+
const m13 = this._objectReader.readBitDouble();
|
|
3250
|
+
const m23 = this._objectReader.readBitDouble();
|
|
3251
|
+
const m33 = this._objectReader.readBitDouble();
|
|
3252
|
+
const matrix = Matrix4.identity();
|
|
3253
|
+
matrix.m00 = m00;
|
|
3254
|
+
matrix.m10 = m10;
|
|
3255
|
+
matrix.m20 = m20;
|
|
3256
|
+
matrix.m30 = m30;
|
|
3257
|
+
matrix.m01 = m01;
|
|
3258
|
+
matrix.m11 = m11;
|
|
3259
|
+
matrix.m21 = m21;
|
|
3260
|
+
matrix.m31 = m31;
|
|
3261
|
+
matrix.m02 = m02;
|
|
3262
|
+
matrix.m12 = m12;
|
|
3263
|
+
matrix.m22 = m22;
|
|
3264
|
+
matrix.m32 = m32;
|
|
3265
|
+
matrix.m03 = m03;
|
|
3266
|
+
matrix.m13 = m13;
|
|
3267
|
+
matrix.m23 = m23;
|
|
3268
|
+
matrix.m33 = m33;
|
|
3269
|
+
annotContext.transformationMatrix = matrix;
|
|
3270
|
+
}
|
|
3271
|
+
annotContext.basePoint = this._objectReader.read3BitDouble();
|
|
3272
|
+
annotContext.baseDirection = this._objectReader.read3BitDouble();
|
|
3273
|
+
annotContext.baseVertical = this._objectReader.read3BitDouble();
|
|
3274
|
+
annotContext.normalReversed = this._objectReader.readBit();
|
|
3275
|
+
if (this.R2010Plus) {
|
|
3276
|
+
annotContext.textTopAttachment = this._objectReader.readBitShort();
|
|
3277
|
+
annotContext.textBottomAttachment = this._objectReader.readBitShort();
|
|
3278
|
+
}
|
|
3279
|
+
return annotContext;
|
|
3280
|
+
}
|
|
3281
|
+
readMultiLeaderStyle() {
|
|
3282
|
+
const mLeaderStyle = new MultiLeaderStyle();
|
|
3283
|
+
const template = new CadMLeaderStyleTemplate(mLeaderStyle);
|
|
3284
|
+
this.readCommonNonEntityData(template);
|
|
3285
|
+
if (this.R2010Plus) {
|
|
3286
|
+
const version = this._objectReader.readBitShort();
|
|
3287
|
+
}
|
|
3288
|
+
mLeaderStyle.contentType = this._objectReader.readBitShort();
|
|
3289
|
+
mLeaderStyle.multiLeaderDrawOrder = this._objectReader.readBitShort();
|
|
3290
|
+
mLeaderStyle.leaderDrawOrder = this._objectReader.readBitShort();
|
|
3291
|
+
mLeaderStyle.maxLeaderSegmentsPoints = this._objectReader.readBitLong();
|
|
3292
|
+
mLeaderStyle.firstSegmentAngleConstraint = this._objectReader.readBitDouble();
|
|
3293
|
+
mLeaderStyle.secondSegmentAngleConstraint = this._objectReader.readBitDouble();
|
|
3294
|
+
mLeaderStyle.pathType = this._objectReader.readBitShort();
|
|
3295
|
+
mLeaderStyle.lineColor = this._mergedReaders.readCmColor();
|
|
3296
|
+
template.LeaderLineTypeHandle = this.handleReference();
|
|
3297
|
+
mLeaderStyle.leaderLineWeight = this._objectReader.readBitLong();
|
|
3298
|
+
mLeaderStyle.enableLanding = this._objectReader.readBit();
|
|
3299
|
+
mLeaderStyle.landingGap = this._objectReader.readBitDouble();
|
|
3300
|
+
mLeaderStyle.enableDogleg = this._objectReader.readBit();
|
|
3301
|
+
mLeaderStyle.landingDistance = this._objectReader.readBitDouble();
|
|
3302
|
+
mLeaderStyle.description = this._mergedReaders.readVariableText();
|
|
3303
|
+
template.ArrowheadHandle = this.handleReference();
|
|
3304
|
+
mLeaderStyle.arrowheadSize = this._objectReader.readBitDouble();
|
|
3305
|
+
mLeaderStyle.defaultTextContents = this._mergedReaders.readVariableText();
|
|
3306
|
+
template.MTextStyleHandle = this.handleReference();
|
|
3307
|
+
mLeaderStyle.textLeftAttachment = this._objectReader.readBitShort();
|
|
3308
|
+
mLeaderStyle.textRightAttachment = this._objectReader.readBitShort();
|
|
3309
|
+
mLeaderStyle.textAngle = this._objectReader.readBitShort();
|
|
3310
|
+
mLeaderStyle.textAlignment = this._objectReader.readBitShort();
|
|
3311
|
+
mLeaderStyle.textColor = this._mergedReaders.readCmColor();
|
|
3312
|
+
mLeaderStyle.textHeight = this._objectReader.readBitDouble();
|
|
3313
|
+
mLeaderStyle.textFrame = this._objectReader.readBit();
|
|
3314
|
+
mLeaderStyle.textAlignAlwaysLeft = this._objectReader.readBit();
|
|
3315
|
+
mLeaderStyle.alignSpace = this._objectReader.readBitDouble();
|
|
3316
|
+
template.BlockContentHandle = this.handleReference();
|
|
3317
|
+
mLeaderStyle.blockContentColor = this._mergedReaders.readCmColor();
|
|
3318
|
+
mLeaderStyle.blockContentScale = this._objectReader.read3BitDouble();
|
|
3319
|
+
mLeaderStyle.enableBlockContentScale = this._objectReader.readBit();
|
|
3320
|
+
mLeaderStyle.blockContentRotation = this._objectReader.readBitDouble();
|
|
3321
|
+
mLeaderStyle.enableBlockContentRotation = this._objectReader.readBit();
|
|
3322
|
+
mLeaderStyle.blockContentConnection = this._objectReader.readBitShort();
|
|
3323
|
+
mLeaderStyle.scaleFactor = this._objectReader.readBitDouble();
|
|
3324
|
+
mLeaderStyle.overwritePropertyValue = this._objectReader.readBit();
|
|
3325
|
+
mLeaderStyle.isAnnotative = this._objectReader.readBit();
|
|
3326
|
+
mLeaderStyle.breakGapSize = this._objectReader.readBitDouble();
|
|
3327
|
+
if (this.R2010Plus) {
|
|
3328
|
+
mLeaderStyle.textAttachmentDirection = this._objectReader.readBitShort();
|
|
3329
|
+
mLeaderStyle.textBottomAttachment = this._objectReader.readBitShort();
|
|
3330
|
+
mLeaderStyle.textTopAttachment = this._objectReader.readBitShort();
|
|
3331
|
+
}
|
|
3332
|
+
if (this.R2013Plus) {
|
|
3333
|
+
mLeaderStyle.unknownFlag298 = this._objectReader.readBit();
|
|
3334
|
+
}
|
|
3335
|
+
return template;
|
|
3336
|
+
}
|
|
3337
|
+
readMaterial() {
|
|
3338
|
+
const material = new Material();
|
|
3339
|
+
const template = new CadMaterialTemplate(material);
|
|
3340
|
+
this.readCommonNonEntityData(template);
|
|
3341
|
+
material.name = this._mergedReaders.readVariableText();
|
|
3342
|
+
material.description = this._mergedReaders.readVariableText();
|
|
3343
|
+
// Ambient
|
|
3344
|
+
material.ambientColorMethod = this._mergedReaders.readByte();
|
|
3345
|
+
material.ambientColorFactor = this._mergedReaders.readBitDouble();
|
|
3346
|
+
if (material.ambientColorMethod === ColorMethod.Override) {
|
|
3347
|
+
const rgb = this._mergedReaders.readBitLong() >>> 0;
|
|
3348
|
+
const arr = LittleEndianConverter.getBytes32(rgb);
|
|
3349
|
+
material.ambientColor = new Color(arr[2], arr[1], arr[0]);
|
|
3350
|
+
}
|
|
3351
|
+
// Diffuse
|
|
3352
|
+
material.diffuseColorMethod = this._mergedReaders.readByte();
|
|
3353
|
+
material.diffuseColorFactor = this._mergedReaders.readBitDouble();
|
|
3354
|
+
if (material.diffuseColorMethod === ColorMethod.Override) {
|
|
3355
|
+
const rgb = this._mergedReaders.readBitLong() >>> 0;
|
|
3356
|
+
const arr = LittleEndianConverter.getBytes32(rgb);
|
|
3357
|
+
material.diffuseColor = new Color(arr[2], arr[1], arr[0]);
|
|
3358
|
+
}
|
|
3359
|
+
material.diffuseMapBlendFactor = this._mergedReaders.readBitDouble();
|
|
3360
|
+
material.diffuseProjectionMethod = this._mergedReaders.readByte();
|
|
3361
|
+
material.diffuseTilingMethod = this._mergedReaders.readByte();
|
|
3362
|
+
material.diffuseAutoTransform = this._mergedReaders.readByte();
|
|
3363
|
+
material.diffuseMatrix = this.readMatrix4();
|
|
3364
|
+
material.diffuseMapSource = this._mergedReaders.readByte();
|
|
3365
|
+
switch (material.diffuseMapSource) {
|
|
3366
|
+
case MapSource.UseCurrentScene: break;
|
|
3367
|
+
case MapSource.UseImageFile:
|
|
3368
|
+
material.diffuseMapFileName = this._mergedReaders.readVariableText();
|
|
3369
|
+
break;
|
|
3370
|
+
case MapSource.Procedural:
|
|
3371
|
+
throw new Error('Procedural map source not implemented');
|
|
3372
|
+
}
|
|
3373
|
+
// Specular
|
|
3374
|
+
material.specularColorMethod = this._mergedReaders.readByte();
|
|
3375
|
+
material.specularColorFactor = this._mergedReaders.readBitDouble();
|
|
3376
|
+
if (material.specularColorMethod === ColorMethod.Override) {
|
|
3377
|
+
const rgb = this._mergedReaders.readBitLong() >>> 0;
|
|
3378
|
+
const arr = LittleEndianConverter.getBytes32(rgb);
|
|
3379
|
+
material.specularColor = new Color(arr[2], arr[1], arr[0]);
|
|
3380
|
+
}
|
|
3381
|
+
material.specularMapBlendFactor = this._mergedReaders.readBitDouble();
|
|
3382
|
+
material.specularProjectionMethod = this._mergedReaders.readByte();
|
|
3383
|
+
material.specularTilingMethod = this._mergedReaders.readByte();
|
|
3384
|
+
material.specularAutoTransform = this._mergedReaders.readByte();
|
|
3385
|
+
material.specularMatrix = this.readMatrix4();
|
|
3386
|
+
material.specularMapSource = this._mergedReaders.readByte();
|
|
3387
|
+
switch (material.specularMapSource) {
|
|
3388
|
+
case MapSource.UseCurrentScene: break;
|
|
3389
|
+
case MapSource.UseImageFile:
|
|
3390
|
+
material.specularMapFileName = this._mergedReaders.readVariableText();
|
|
3391
|
+
break;
|
|
3392
|
+
case MapSource.Procedural:
|
|
3393
|
+
throw new Error('Procedural map source not implemented');
|
|
3394
|
+
}
|
|
3395
|
+
material.specularGlossFactor = this._objectReader.readBitDouble();
|
|
3396
|
+
// Reflection
|
|
3397
|
+
material.reflectionMapBlendFactor = this._mergedReaders.readBitDouble();
|
|
3398
|
+
material.reflectionProjectionMethod = this._mergedReaders.readByte();
|
|
3399
|
+
material.reflectionTilingMethod = this._mergedReaders.readByte();
|
|
3400
|
+
material.reflectionAutoTransform = this._mergedReaders.readByte();
|
|
3401
|
+
material.reflectionMatrix = this.readMatrix4();
|
|
3402
|
+
material.reflectionMapSource = this._mergedReaders.readByte();
|
|
3403
|
+
switch (material.reflectionMapSource) {
|
|
3404
|
+
case MapSource.UseCurrentScene: break;
|
|
3405
|
+
case MapSource.UseImageFile:
|
|
3406
|
+
material.reflectionMapFileName = this._mergedReaders.readVariableText();
|
|
3407
|
+
break;
|
|
3408
|
+
case MapSource.Procedural:
|
|
3409
|
+
throw new Error('Procedural map source not implemented');
|
|
3410
|
+
}
|
|
3411
|
+
material.opacity = this._mergedReaders.readBitDouble();
|
|
3412
|
+
// Opacity
|
|
3413
|
+
material.opacityMapBlendFactor = this._mergedReaders.readBitDouble();
|
|
3414
|
+
material.opacityProjectionMethod = this._mergedReaders.readByte();
|
|
3415
|
+
material.opacityTilingMethod = this._mergedReaders.readByte();
|
|
3416
|
+
material.opacityAutoTransform = this._mergedReaders.readByte();
|
|
3417
|
+
material.opacityMatrix = this.readMatrix4();
|
|
3418
|
+
material.opacityMapSource = this._mergedReaders.readByte();
|
|
3419
|
+
switch (material.opacityMapSource) {
|
|
3420
|
+
case MapSource.UseCurrentScene: break;
|
|
3421
|
+
case MapSource.UseImageFile:
|
|
3422
|
+
material.opacityMapFileName = this._mergedReaders.readVariableText();
|
|
3423
|
+
break;
|
|
3424
|
+
case MapSource.Procedural:
|
|
3425
|
+
throw new Error('Procedural map source not implemented');
|
|
3426
|
+
}
|
|
3427
|
+
// Bump
|
|
3428
|
+
material.bumpMapBlendFactor = this._mergedReaders.readBitDouble();
|
|
3429
|
+
material.bumpProjectionMethod = this._mergedReaders.readByte();
|
|
3430
|
+
material.bumpTilingMethod = this._mergedReaders.readByte();
|
|
3431
|
+
material.bumpAutoTransform = this._mergedReaders.readByte();
|
|
3432
|
+
material.bumpMatrix = this.readMatrix4();
|
|
3433
|
+
material.bumpMapSource = this._mergedReaders.readByte();
|
|
3434
|
+
switch (material.bumpMapSource) {
|
|
3435
|
+
case MapSource.UseCurrentScene: break;
|
|
3436
|
+
case MapSource.UseImageFile:
|
|
3437
|
+
material.bumpMapFileName = this._mergedReaders.readVariableText();
|
|
3438
|
+
break;
|
|
3439
|
+
case MapSource.Procedural:
|
|
3440
|
+
throw new Error('Procedural map source not implemented');
|
|
3441
|
+
}
|
|
3442
|
+
material.refractionIndex = this._mergedReaders.readBitDouble();
|
|
3443
|
+
// Refraction
|
|
3444
|
+
material.refractionMapBlendFactor = this._mergedReaders.readBitDouble();
|
|
3445
|
+
material.refractionProjectionMethod = this._mergedReaders.readByte();
|
|
3446
|
+
material.refractionTilingMethod = this._mergedReaders.readByte();
|
|
3447
|
+
material.refractionAutoTransform = this._mergedReaders.readByte();
|
|
3448
|
+
material.refractionMatrix = this.readMatrix4();
|
|
3449
|
+
material.refractionMapSource = this._mergedReaders.readByte();
|
|
3450
|
+
switch (material.refractionMapSource) {
|
|
3451
|
+
case MapSource.UseCurrentScene: break;
|
|
3452
|
+
case MapSource.UseImageFile:
|
|
3453
|
+
material.refractionMapFileName = this._mergedReaders.readVariableText();
|
|
3454
|
+
break;
|
|
3455
|
+
case MapSource.Procedural:
|
|
3456
|
+
throw new Error('Procedural map source not implemented');
|
|
3457
|
+
}
|
|
3458
|
+
return template;
|
|
3459
|
+
}
|
|
3460
|
+
readMLine() {
|
|
3461
|
+
const mline = new MLine();
|
|
3462
|
+
const template = new CadMLineTemplate(mline);
|
|
3463
|
+
this.readCommonEntityData(template);
|
|
3464
|
+
mline.scaleFactor = this._objectReader.readBitDouble();
|
|
3465
|
+
mline.justification = this._objectReader.readByte();
|
|
3466
|
+
mline.startPoint = this._objectReader.read3BitDouble();
|
|
3467
|
+
mline.normal = this._objectReader.read3BitDouble();
|
|
3468
|
+
mline.flags |= this._objectReader.readBitShort() === 3 ? MLineFlags.Closed : MLineFlags.Has;
|
|
3469
|
+
const nlines = this._objectReader.readByte();
|
|
3470
|
+
const nverts = this._objectReader.readBitShort();
|
|
3471
|
+
for (let i = 0; i < nverts; i++) {
|
|
3472
|
+
const vertex = new MLineVertex();
|
|
3473
|
+
vertex.position = this._objectReader.read3BitDouble();
|
|
3474
|
+
vertex.direction = this._objectReader.read3BitDouble();
|
|
3475
|
+
vertex.miter = this._objectReader.read3BitDouble();
|
|
3476
|
+
for (let j = 0; j < nlines; j++) {
|
|
3477
|
+
const element = new MLineSegment();
|
|
3478
|
+
const nsegparms = this._objectReader.readBitShort();
|
|
3479
|
+
for (let k = 0; k < nsegparms; k++) {
|
|
3480
|
+
element.parameters.push(this._objectReader.readBitDouble());
|
|
3481
|
+
}
|
|
3482
|
+
const nfillparms = this._objectReader.readBitShort();
|
|
3483
|
+
for (let k = 0; k < nfillparms; k++) {
|
|
3484
|
+
element.areaFillParameters.push(this._objectReader.readBitDouble());
|
|
3485
|
+
}
|
|
3486
|
+
vertex.segments.push(element);
|
|
3487
|
+
}
|
|
3488
|
+
mline.vertices.push(vertex);
|
|
3489
|
+
}
|
|
3490
|
+
template.MLineStyleHandle = this.handleReference();
|
|
3491
|
+
return template;
|
|
3492
|
+
}
|
|
3493
|
+
readMLineStyle() {
|
|
3494
|
+
const mlineStyle = new MLineStyle();
|
|
3495
|
+
const template = new CadMLineStyleTemplate(mlineStyle);
|
|
3496
|
+
this.readCommonNonEntityData(template);
|
|
3497
|
+
mlineStyle.name = this._textReader.readVariableText();
|
|
3498
|
+
mlineStyle.description = this._textReader.readVariableText();
|
|
3499
|
+
const flags = this._objectReader.readBitShort();
|
|
3500
|
+
if ((flags & 1) > 0)
|
|
3501
|
+
mlineStyle.flags |= MLineStyleFlags.DisplayJoints;
|
|
3502
|
+
if ((flags & 2) > 0)
|
|
3503
|
+
mlineStyle.flags |= MLineStyleFlags.FillOn;
|
|
3504
|
+
if ((flags & 16) > 0)
|
|
3505
|
+
mlineStyle.flags |= MLineStyleFlags.StartSquareCap;
|
|
3506
|
+
if ((flags & 32) > 0)
|
|
3507
|
+
mlineStyle.flags |= MLineStyleFlags.StartRoundCap;
|
|
3508
|
+
if ((flags & 64) > 0)
|
|
3509
|
+
mlineStyle.flags |= MLineStyleFlags.StartInnerArcsCap;
|
|
3510
|
+
if ((flags & 256) > 0)
|
|
3511
|
+
mlineStyle.flags |= MLineStyleFlags.EndSquareCap;
|
|
3512
|
+
if ((flags & 512) > 0)
|
|
3513
|
+
mlineStyle.flags |= MLineStyleFlags.EndRoundCap;
|
|
3514
|
+
if ((flags & 1024) > 0)
|
|
3515
|
+
mlineStyle.flags |= MLineStyleFlags.EndInnerArcsCap;
|
|
3516
|
+
mlineStyle.fillColor = this._mergedReaders.readCmColor();
|
|
3517
|
+
mlineStyle.startAngle = this._objectReader.readBitDouble();
|
|
3518
|
+
mlineStyle.endAngle = this._objectReader.readBitDouble();
|
|
3519
|
+
const nlines = this._objectReader.readByte();
|
|
3520
|
+
for (let i = 0; i < nlines; i++) {
|
|
3521
|
+
const element = new MLineStyleElement();
|
|
3522
|
+
const elementTemplate = new CadMLineStyleTemplate.ElementTemplate(element);
|
|
3523
|
+
element.offset = this._objectReader.readBitDouble();
|
|
3524
|
+
element.color = this._mergedReaders.readCmColor();
|
|
3525
|
+
if (this.R2018Plus) {
|
|
3526
|
+
elementTemplate.LineTypeHandle = this.handleReference();
|
|
3527
|
+
}
|
|
3528
|
+
else {
|
|
3529
|
+
elementTemplate.LinetypeIndex = this._objectReader.readBitShort();
|
|
3530
|
+
}
|
|
3531
|
+
template.ElementTemplates.push(elementTemplate);
|
|
3532
|
+
mlineStyle.addElement(element);
|
|
3533
|
+
}
|
|
3534
|
+
return template;
|
|
3535
|
+
}
|
|
3536
|
+
readGeoData() {
|
|
3537
|
+
const geoData = new GeoData();
|
|
3538
|
+
const template = new CadGeoDataTemplate(geoData);
|
|
3539
|
+
this.readCommonNonEntityData(template);
|
|
3540
|
+
geoData.version = this._mergedReaders.readBitLong();
|
|
3541
|
+
template.HostBlockHandle = this.handleReference();
|
|
3542
|
+
geoData.coordinatesType = this._mergedReaders.readBitShort();
|
|
3543
|
+
switch (geoData.version) {
|
|
3544
|
+
case GeoDataVersion.R2009:
|
|
3545
|
+
geoData.referencePoint = this._mergedReaders.read3BitDouble();
|
|
3546
|
+
geoData.horizontalUnits = this._mergedReaders.readBitLong();
|
|
3547
|
+
geoData.verticalUnits = geoData.horizontalUnits;
|
|
3548
|
+
geoData.designPoint = this._mergedReaders.read3BitDouble();
|
|
3549
|
+
this._mergedReaders.read3BitDouble();
|
|
3550
|
+
geoData.upDirection = this._mergedReaders.read3BitDouble();
|
|
3551
|
+
const angle = Math.PI / 2.0 - this._mergedReaders.readBitDouble();
|
|
3552
|
+
geoData.northDirection = new XY(Math.cos(angle), Math.sin(angle));
|
|
3553
|
+
this._mergedReaders.read3BitDouble();
|
|
3554
|
+
geoData.coordinateSystemDefinition = this._mergedReaders.readVariableText();
|
|
3555
|
+
geoData.geoRssTag = this._mergedReaders.readVariableText();
|
|
3556
|
+
geoData.horizontalUnitScale = this._mergedReaders.readBitDouble();
|
|
3557
|
+
geoData.verticalUnitScale = geoData.horizontalUnitScale;
|
|
3558
|
+
this._mergedReaders.readVariableText();
|
|
3559
|
+
this._mergedReaders.readVariableText();
|
|
3560
|
+
break;
|
|
3561
|
+
case GeoDataVersion.R2010:
|
|
3562
|
+
case GeoDataVersion.R2013:
|
|
3563
|
+
geoData.designPoint = this._mergedReaders.read3BitDouble();
|
|
3564
|
+
geoData.referencePoint = this._mergedReaders.read3BitDouble();
|
|
3565
|
+
geoData.horizontalUnitScale = this._mergedReaders.readBitDouble();
|
|
3566
|
+
geoData.horizontalUnits = this._mergedReaders.readBitLong();
|
|
3567
|
+
geoData.verticalUnitScale = this._mergedReaders.readBitDouble();
|
|
3568
|
+
geoData.horizontalUnits = this._mergedReaders.readBitLong();
|
|
3569
|
+
geoData.upDirection = this._mergedReaders.read3BitDouble();
|
|
3570
|
+
geoData.northDirection = this._mergedReaders.read2RawDouble();
|
|
3571
|
+
geoData.scaleEstimationMethod = this._mergedReaders.readBitLong();
|
|
3572
|
+
geoData.userSpecifiedScaleFactor = this._mergedReaders.readBitDouble();
|
|
3573
|
+
geoData.enableSeaLevelCorrection = this._mergedReaders.readBit();
|
|
3574
|
+
geoData.seaLevelElevation = this._mergedReaders.readBitDouble();
|
|
3575
|
+
geoData.coordinateProjectionRadius = this._mergedReaders.readBitDouble();
|
|
3576
|
+
geoData.coordinateSystemDefinition = this._mergedReaders.readVariableText();
|
|
3577
|
+
geoData.geoRssTag = this._mergedReaders.readVariableText();
|
|
3578
|
+
break;
|
|
3579
|
+
}
|
|
3580
|
+
geoData.observationFromTag = this._mergedReaders.readVariableText();
|
|
3581
|
+
geoData.observationToTag = this._mergedReaders.readVariableText();
|
|
3582
|
+
geoData.observationCoverageTag = this._mergedReaders.readVariableText();
|
|
3583
|
+
const npts = this._mergedReaders.readBitLong();
|
|
3584
|
+
for (let i = 0; i < npts; i++) {
|
|
3585
|
+
const pt = new GeoMeshPoint();
|
|
3586
|
+
pt.source = this._mergedReaders.read2RawDouble();
|
|
3587
|
+
pt.destination = this._mergedReaders.read2RawDouble();
|
|
3588
|
+
geoData.points.push(pt);
|
|
3589
|
+
}
|
|
3590
|
+
const nfaces = this._mergedReaders.readBitLong();
|
|
3591
|
+
for (let i = 0; i < nfaces; i++) {
|
|
3592
|
+
const face = new GeoMeshFace();
|
|
3593
|
+
face.index1 = this._mergedReaders.readBitLong();
|
|
3594
|
+
face.index2 = this._mergedReaders.readBitLong();
|
|
3595
|
+
face.index3 = this._mergedReaders.readBitLong();
|
|
3596
|
+
geoData.faces.push(face);
|
|
3597
|
+
}
|
|
3598
|
+
return template;
|
|
3599
|
+
}
|
|
3600
|
+
readTableStyle() {
|
|
3601
|
+
const style = new TableStyle();
|
|
3602
|
+
const template = new CadTableStyleTemplate(style);
|
|
3603
|
+
this.readCommonNonEntityData(template);
|
|
3604
|
+
if (this.R2007Pre) {
|
|
3605
|
+
style.description = this._mergedReaders.readVariableText();
|
|
3606
|
+
style.flowDirection = this._mergedReaders.readBitShort();
|
|
3607
|
+
style.flags = this._mergedReaders.readBitShort();
|
|
3608
|
+
style.horizontalCellMargin = this._mergedReaders.readBitDouble();
|
|
3609
|
+
style.verticalCellMargin = this._mergedReaders.readBitDouble();
|
|
3610
|
+
style.suppressTitle = this._mergedReaders.readBit();
|
|
3611
|
+
style.suppressHeaderRow = this._mergedReaders.readBit();
|
|
3612
|
+
this.readRowCellStyle(template, style.dataCellStyle);
|
|
3613
|
+
this.readRowCellStyle(template, style.titleCellStyle);
|
|
3614
|
+
this.readRowCellStyle(template, style.headerCellStyle);
|
|
3615
|
+
return template;
|
|
3616
|
+
}
|
|
3617
|
+
const rc = this._mergedReaders.readByte();
|
|
3618
|
+
style.description = this._mergedReaders.readVariableText();
|
|
3619
|
+
const bl1 = this._mergedReaders.readBitLong();
|
|
3620
|
+
const bl2 = this._mergedReaders.readBitLong();
|
|
3621
|
+
const h = this.handleReference();
|
|
3622
|
+
const tableCellStyleTemplate = new CadCellStyleTemplate(style.tableCellStyle);
|
|
3623
|
+
this.readCellStyle(tableCellStyleTemplate);
|
|
3624
|
+
style.tableCellStyle.id = this._mergedReaders.readBitLong();
|
|
3625
|
+
style.tableCellStyle.styleClass = this._mergedReaders.readBitLong();
|
|
3626
|
+
style.tableCellStyle.name = this._mergedReaders.readVariableText();
|
|
3627
|
+
const nCellStyles = this._mergedReaders.readBitLong();
|
|
3628
|
+
for (let i = 0; i < nCellStyles; i++) {
|
|
3629
|
+
const cellStyle = new CellStyle();
|
|
3630
|
+
const cellStyleTemplate = new CadCellStyleTemplate(cellStyle);
|
|
3631
|
+
template.CellStyleTemplates.push(cellStyleTemplate);
|
|
3632
|
+
const unknown = this._mergedReaders.readBitLong();
|
|
3633
|
+
this.readCellStyle(cellStyleTemplate);
|
|
3634
|
+
cellStyle.id = this._mergedReaders.readBitLong();
|
|
3635
|
+
cellStyle.styleClass = this._mergedReaders.readBitLong();
|
|
3636
|
+
cellStyle.name = this._mergedReaders.readVariableText();
|
|
3637
|
+
}
|
|
3638
|
+
return template;
|
|
3639
|
+
}
|
|
3640
|
+
readVisualStyle() {
|
|
3641
|
+
const visualStyle = new VisualStyle();
|
|
3642
|
+
const template = new CadNonGraphicalObjectTemplate(visualStyle);
|
|
3643
|
+
this.readCommonNonEntityData(template);
|
|
3644
|
+
visualStyle.name = this._textReader.readVariableText();
|
|
3645
|
+
visualStyle.type = this._objectReader.readBitLong();
|
|
3646
|
+
const value177 = this._objectReader.readBitShort();
|
|
3647
|
+
const value291 = this._objectReader.readBit();
|
|
3648
|
+
const count = this._objectReader.readBitLong();
|
|
3649
|
+
// TODO: Finish dwg implementation for VisualStyle
|
|
3650
|
+
return template;
|
|
3651
|
+
}
|
|
3652
|
+
readPlotSettingsEntity() {
|
|
3653
|
+
const plotsettings = new PlotSettings();
|
|
3654
|
+
const template = new CadPlotSettingsTemplate(plotsettings);
|
|
3655
|
+
this.readCommonNonEntityData(template);
|
|
3656
|
+
this.readPlotSettingsData(plotsettings);
|
|
3657
|
+
return template;
|
|
3658
|
+
}
|
|
3659
|
+
readPlotSettings() {
|
|
3660
|
+
return this.readPlotSettingsEntity();
|
|
3661
|
+
}
|
|
3662
|
+
readPlotSettingsData(plot) {
|
|
3663
|
+
plot.pageName = this._textReader.readVariableText();
|
|
3664
|
+
plot.systemPrinterName = this._textReader.readVariableText();
|
|
3665
|
+
plot.flags = this._objectReader.readBitShort();
|
|
3666
|
+
const margin = new PaperMargin();
|
|
3667
|
+
margin.left = this._objectReader.readBitDouble();
|
|
3668
|
+
margin.bottom = this._objectReader.readBitDouble();
|
|
3669
|
+
margin.right = this._objectReader.readBitDouble();
|
|
3670
|
+
margin.top = this._objectReader.readBitDouble();
|
|
3671
|
+
plot.unprintableMargin = margin;
|
|
3672
|
+
plot.paperWidth = this._objectReader.readBitDouble();
|
|
3673
|
+
plot.paperHeight = this._objectReader.readBitDouble();
|
|
3674
|
+
plot.paperSize = this._textReader.readVariableText();
|
|
3675
|
+
plot.plotOriginX = this._objectReader.readBitDouble();
|
|
3676
|
+
plot.plotOriginY = this._objectReader.readBitDouble();
|
|
3677
|
+
plot.paperUnits = this._objectReader.readBitShort();
|
|
3678
|
+
plot.paperRotation = this._objectReader.readBitShort();
|
|
3679
|
+
plot.plotType = this._objectReader.readBitShort();
|
|
3680
|
+
plot.windowLowerLeftX = this._objectReader.readBitDouble();
|
|
3681
|
+
plot.windowLowerLeftY = this._objectReader.readBitDouble();
|
|
3682
|
+
plot.windowUpperLeftX = this._objectReader.readBitDouble();
|
|
3683
|
+
plot.windowUpperLeftY = this._objectReader.readBitDouble();
|
|
3684
|
+
if (this._version >= ACadVersion.AC1012 && this._version <= ACadVersion.AC1015) {
|
|
3685
|
+
plot.plotViewName = this._textReader.readVariableText();
|
|
3686
|
+
}
|
|
3687
|
+
plot.numeratorScale = this._objectReader.readBitDouble();
|
|
3688
|
+
plot.denominatorScale = this._objectReader.readBitDouble();
|
|
3689
|
+
plot.styleSheet = this._textReader.readVariableText();
|
|
3690
|
+
plot.scaledFit = this._objectReader.readBitShort();
|
|
3691
|
+
plot.standardScale = this._objectReader.readBitDouble();
|
|
3692
|
+
plot.paperImageOrigin = this._objectReader.read2BitDouble();
|
|
3693
|
+
if (this.R2004Plus) {
|
|
3694
|
+
plot.shadePlotMode = this._objectReader.readBitShort();
|
|
3695
|
+
plot.shadePlotResolutionMode = this._objectReader.readBitShort();
|
|
3696
|
+
plot.shadePlotDPI = this._objectReader.readBitShort();
|
|
3697
|
+
const plotViewHandle = this.handleReference();
|
|
3698
|
+
}
|
|
3699
|
+
if (this.R2007Plus) {
|
|
3700
|
+
this.handleReference();
|
|
3701
|
+
}
|
|
3702
|
+
}
|
|
3703
|
+
readEvaluationGraph() {
|
|
3704
|
+
const evaluationGraph = new EvaluationGraph();
|
|
3705
|
+
const template = new CadEvaluationGraphTemplate(evaluationGraph);
|
|
3706
|
+
this.readCommonNonEntityData(template);
|
|
3707
|
+
evaluationGraph.value96 = this._objectReader.readBitLong();
|
|
3708
|
+
evaluationGraph.value97 = this._objectReader.readBitLong();
|
|
3709
|
+
const nodeCount = this._objectReader.readBitLong();
|
|
3710
|
+
for (let i = 0; i < nodeCount; i++) {
|
|
3711
|
+
const nodeTemplate = new CadEvaluationGraphTemplate.GraphNodeTemplate();
|
|
3712
|
+
const node = new EvaluationGraphNode();
|
|
3713
|
+
template.NodeTemplates.push(nodeTemplate);
|
|
3714
|
+
node.index = this._objectReader.readBitLong();
|
|
3715
|
+
node.flags = this._objectReader.readBitLong();
|
|
3716
|
+
node.nextNodeIndex = this._objectReader.readBitLong();
|
|
3717
|
+
nodeTemplate.ExpressionHandle = this.handleReference();
|
|
3718
|
+
node.data1 = this._objectReader.readBitLong();
|
|
3719
|
+
node.data2 = this._objectReader.readBitLong();
|
|
3720
|
+
node.data3 = this._objectReader.readBitLong();
|
|
3721
|
+
node.data4 = this._objectReader.readBitLong();
|
|
3722
|
+
}
|
|
3723
|
+
const edgeCount = this._objectReader.readBitLong();
|
|
3724
|
+
for (let i = 0; i < edgeCount; i++) {
|
|
3725
|
+
this._objectReader.readBitLong();
|
|
3726
|
+
this._objectReader.readBitLong();
|
|
3727
|
+
this._objectReader.readBitLong();
|
|
3728
|
+
this._objectReader.readBitLong();
|
|
3729
|
+
this._objectReader.readBitLong();
|
|
3730
|
+
this._objectReader.readBitLong();
|
|
3731
|
+
this._objectReader.readBitLong();
|
|
3732
|
+
this._objectReader.readBitLong();
|
|
3733
|
+
this._objectReader.readBitLong();
|
|
3734
|
+
this._objectReader.readBitLong();
|
|
3735
|
+
}
|
|
3736
|
+
return template;
|
|
3737
|
+
}
|
|
3738
|
+
readSpatialFilter() {
|
|
3739
|
+
const filter = new SpatialFilter();
|
|
3740
|
+
const template = new CadNonGraphicalObjectTemplate(filter);
|
|
3741
|
+
this.readCommonNonEntityData(template);
|
|
3742
|
+
const numPts = this._mergedReaders.readBitShort();
|
|
3743
|
+
for (let i = 0; i < numPts; i++) {
|
|
3744
|
+
filter.boundaryPoints.push(this._mergedReaders.read2RawDouble());
|
|
3745
|
+
}
|
|
3746
|
+
filter.normal = this._mergedReaders.read3BitDouble();
|
|
3747
|
+
filter.origin = this._mergedReaders.read3BitDouble();
|
|
3748
|
+
filter.displayBoundary = this._mergedReaders.readBitShort() !== 0;
|
|
3749
|
+
filter.clipFrontPlane = this._mergedReaders.readBitShort() !== 0;
|
|
3750
|
+
if (filter.clipFrontPlane) {
|
|
3751
|
+
filter.frontDistance = this._mergedReaders.readBitDouble();
|
|
3752
|
+
}
|
|
3753
|
+
filter.clipBackPlane = this._mergedReaders.readBitShort() !== 0;
|
|
3754
|
+
if (filter.clipBackPlane) {
|
|
3755
|
+
filter.backDistance = this._mergedReaders.readBitDouble();
|
|
3756
|
+
}
|
|
3757
|
+
filter.inverseInsertTransform = this.read4x3Matrix();
|
|
3758
|
+
filter.insertTransform = this.read4x3Matrix();
|
|
3759
|
+
return template;
|
|
3760
|
+
}
|
|
3761
|
+
readDimensionAssociation() {
|
|
3762
|
+
const association = new DimensionAssociation();
|
|
3763
|
+
const template = new CadDimensionAssociationTemplate(association);
|
|
3764
|
+
this.readCommonNonEntityData(template);
|
|
3765
|
+
template.DimensionHandle = this.handleReference();
|
|
3766
|
+
association.associativityFlags = this._mergedReaders.readBitLong();
|
|
3767
|
+
association.isTransSpace = this._mergedReaders.readBit();
|
|
3768
|
+
association.rotatedDimensionType = this._mergedReaders.readByte();
|
|
3769
|
+
if ((association.associativityFlags & AssociativityFlags.FirstPointReference) !== 0) {
|
|
3770
|
+
template.FirstPointRef = this.readOsnapPointRef();
|
|
3771
|
+
}
|
|
3772
|
+
if ((association.associativityFlags & AssociativityFlags.SecondPointReference) !== 0) {
|
|
3773
|
+
template.SecondPointRef = this.readOsnapPointRef();
|
|
3774
|
+
}
|
|
3775
|
+
if ((association.associativityFlags & AssociativityFlags.ThirdPointReference) !== 0) {
|
|
3776
|
+
template.ThirdPointRef = this.readOsnapPointRef();
|
|
3777
|
+
}
|
|
3778
|
+
if ((association.associativityFlags & AssociativityFlags.FourthPointReference) !== 0) {
|
|
3779
|
+
template.FourthPointRef = this.readOsnapPointRef();
|
|
3780
|
+
}
|
|
3781
|
+
return template;
|
|
3782
|
+
}
|
|
3783
|
+
readOsnapPointRef() {
|
|
3784
|
+
const osnap = new OsnapPointRef();
|
|
3785
|
+
const template = new CadDimensionAssociationTemplate.OsnapPointRefTemplate(osnap);
|
|
3786
|
+
const className = this._mergedReaders.readVariableText();
|
|
3787
|
+
osnap.objectOsnapType = this._mergedReaders.readByte();
|
|
3788
|
+
template.ObjectHandle = this.handleReference();
|
|
3789
|
+
return template;
|
|
3790
|
+
}
|
|
3791
|
+
readBlockFlipAction() {
|
|
3792
|
+
const blockFlipAction = new BlockFlipAction();
|
|
3793
|
+
const template = new CadBlockFlipActionTemplate(blockFlipAction);
|
|
3794
|
+
this.readBlockAction(template);
|
|
3795
|
+
blockFlipAction.value92 = this._mergedReaders.readBitLong();
|
|
3796
|
+
blockFlipAction.value93 = this._mergedReaders.readBitLong();
|
|
3797
|
+
blockFlipAction.value94 = this._mergedReaders.readBitLong();
|
|
3798
|
+
blockFlipAction.value95 = this._mergedReaders.readBitLong();
|
|
3799
|
+
blockFlipAction.caption301 = this._mergedReaders.readVariableText();
|
|
3800
|
+
blockFlipAction.caption302 = this._mergedReaders.readVariableText();
|
|
3801
|
+
blockFlipAction.caption303 = this._mergedReaders.readVariableText();
|
|
3802
|
+
blockFlipAction.caption304 = this._mergedReaders.readVariableText();
|
|
3803
|
+
return template;
|
|
3804
|
+
}
|
|
3805
|
+
readBlockFlipParameter() {
|
|
3806
|
+
const blockFlipParameter = new BlockFlipParameter();
|
|
3807
|
+
const template = new CadBlockFlipParameterTemplate(blockFlipParameter);
|
|
3808
|
+
this.readBlock2PtParameter(template);
|
|
3809
|
+
blockFlipParameter.caption = this._mergedReaders.readVariableText();
|
|
3810
|
+
blockFlipParameter.description = this._mergedReaders.readVariableText();
|
|
3811
|
+
blockFlipParameter.baseStateName = this._mergedReaders.readVariableText();
|
|
3812
|
+
blockFlipParameter.flippedStateName = this._mergedReaders.readVariableText();
|
|
3813
|
+
blockFlipParameter.captionLocation = this._mergedReaders.read3BitDouble();
|
|
3814
|
+
blockFlipParameter.caption309 = this._mergedReaders.readVariableText();
|
|
3815
|
+
blockFlipParameter.value96 = this._mergedReaders.readBitLong();
|
|
3816
|
+
return template;
|
|
3817
|
+
}
|
|
3818
|
+
readBlockRotationParameter() {
|
|
3819
|
+
const blockRotationParameter = new BlockRotationParameter();
|
|
3820
|
+
const template = new CadBlockRotationParameterTemplate(blockRotationParameter);
|
|
3821
|
+
this.readBlock2PtParameter(template);
|
|
3822
|
+
blockRotationParameter.point = this._mergedReaders.read3BitDouble();
|
|
3823
|
+
blockRotationParameter.name = this._mergedReaders.readVariableText();
|
|
3824
|
+
blockRotationParameter.description = this._mergedReaders.readVariableText();
|
|
3825
|
+
blockRotationParameter.nameOffset = this._mergedReaders.readBitDouble();
|
|
3826
|
+
blockRotationParameter.value96 = this._mergedReaders.readBitLong();
|
|
3827
|
+
blockRotationParameter.value141 = this._mergedReaders.readBitDouble();
|
|
3828
|
+
blockRotationParameter.value142 = this._mergedReaders.readBitDouble();
|
|
3829
|
+
blockRotationParameter.value143 = this._mergedReaders.readBitDouble();
|
|
3830
|
+
blockRotationParameter.value175 = this._mergedReaders.readBitLong();
|
|
3831
|
+
return template;
|
|
3832
|
+
}
|
|
3833
|
+
readBlockVisibilityParameter() {
|
|
3834
|
+
const blockVisibilityParameter = new BlockVisibilityParameter();
|
|
3835
|
+
const template = new CadBlockVisibilityParameterTemplate(blockVisibilityParameter);
|
|
3836
|
+
this.readBlock1PtParameter(template);
|
|
3837
|
+
blockVisibilityParameter.value281 = this._mergedReaders.readBit();
|
|
3838
|
+
blockVisibilityParameter.name = this._mergedReaders.readVariableText();
|
|
3839
|
+
blockVisibilityParameter.description = this._mergedReaders.readVariableText();
|
|
3840
|
+
blockVisibilityParameter.value91 = this._mergedReaders.readBit();
|
|
3841
|
+
const totalEntitiesCount = this._objectReader.readBitLong();
|
|
3842
|
+
for (let i = 0; i < totalEntitiesCount; i++) {
|
|
3843
|
+
template.entityHandles.push(this.handleReference());
|
|
3844
|
+
}
|
|
3845
|
+
const nstates = this._objectReader.readBitLong();
|
|
3846
|
+
for (let j = 0; j < nstates; j++) {
|
|
3847
|
+
template.StateTemplates.push(this.readState());
|
|
3848
|
+
}
|
|
3849
|
+
return template;
|
|
3850
|
+
}
|
|
3851
|
+
readBlockRotateAction() {
|
|
3852
|
+
const rotationAction = new BlockRotationAction();
|
|
3853
|
+
const template = new CadBlockRotationActionTemplate(rotationAction);
|
|
3854
|
+
this.readBlockActionBasePt(template);
|
|
3855
|
+
rotationAction.value94 = this._mergedReaders.readBitLong();
|
|
3856
|
+
rotationAction.value303 = this._mergedReaders.readVariableText();
|
|
3857
|
+
return template;
|
|
3858
|
+
}
|
|
3859
|
+
readBlockRepresentationData() {
|
|
3860
|
+
const representation = new BlockRepresentationData();
|
|
3861
|
+
const template = new CadBlockRepresentationDataTemplate(representation);
|
|
3862
|
+
this.readCommonNonEntityData(template);
|
|
3863
|
+
representation.value70 = this._mergedReaders.readBitShort();
|
|
3864
|
+
template.BlockHandle = this.handleReference();
|
|
3865
|
+
return template;
|
|
3866
|
+
}
|
|
3867
|
+
readBlockGripLocationComponent() {
|
|
3868
|
+
const gripExpression = new BlockGripExpression();
|
|
3869
|
+
const template = new CadBlockGripExpressionTemplate(gripExpression);
|
|
3870
|
+
this.readEvaluationExpression(template);
|
|
3871
|
+
return template;
|
|
3872
|
+
}
|
|
3873
|
+
readBlockGrip(template) {
|
|
3874
|
+
this.readBlockElement(template);
|
|
3875
|
+
const blockGrip = template.CadObject;
|
|
3876
|
+
blockGrip.value91 = this._mergedReaders.readBitLong();
|
|
3877
|
+
blockGrip.value92 = this._mergedReaders.readBitLong();
|
|
3878
|
+
blockGrip.location = this._mergedReaders.read3BitDouble();
|
|
3879
|
+
blockGrip.value280 = this._mergedReaders.readBitAsShort();
|
|
3880
|
+
blockGrip.value93 = this._mergedReaders.readBitLong();
|
|
3881
|
+
}
|
|
3882
|
+
readAecCleanupGroup() {
|
|
3883
|
+
const cleanupGroup = new AecCleanupGroup();
|
|
3884
|
+
const template = new CadNonGraphicalObjectTemplate(cleanupGroup);
|
|
3885
|
+
this.readCommonNonEntityData(template);
|
|
3886
|
+
try {
|
|
3887
|
+
if (this.R2000Plus) {
|
|
3888
|
+
cleanupGroup.version = this._mergedReaders.readBitLong();
|
|
3889
|
+
}
|
|
3890
|
+
cleanupGroup.description = this._mergedReaders.readVariableText();
|
|
3891
|
+
const currentPos = this._mergedReaders.positionInBits();
|
|
3892
|
+
const endPos = this._objectInitialPos + (this._size * 8);
|
|
3893
|
+
const remainingBits = endPos - currentPos;
|
|
3894
|
+
if (remainingBits > 0) {
|
|
3895
|
+
const remainingBytes = Math.floor(remainingBits / 8);
|
|
3896
|
+
if (remainingBytes > 0) {
|
|
3897
|
+
cleanupGroup.rawData = this._mergedReaders.readBytes(remainingBytes);
|
|
3898
|
+
}
|
|
3899
|
+
}
|
|
3900
|
+
}
|
|
3901
|
+
catch (ex) {
|
|
3902
|
+
this._builder.Notify(`Error reading AEC_CLEANUP_GROUP [Handle: ${cleanupGroup.handle.toString(16)}]: ${ex.message}`, NotificationType.Error, ex);
|
|
3903
|
+
}
|
|
3904
|
+
return template;
|
|
3905
|
+
}
|
|
3906
|
+
readAecWall() {
|
|
3907
|
+
const wall = new Wall();
|
|
3908
|
+
const template = new CadWallTemplate(wall);
|
|
3909
|
+
this.readCommonEntityData(template);
|
|
3910
|
+
if (this.R2000Plus) {
|
|
3911
|
+
wall.version = this._mergedReaders.readBitLong();
|
|
3912
|
+
}
|
|
3913
|
+
this.handleReference();
|
|
3914
|
+
template.StyleHandle = this.handleReference();
|
|
3915
|
+
template.CleanupGroupHandle = this.handleReference();
|
|
3916
|
+
const objectPos = this._objectReader.positionInBits();
|
|
3917
|
+
const handlesPos = this._handlesReader.positionInBits();
|
|
3918
|
+
const objectDataSize = handlesPos - objectPos;
|
|
3919
|
+
if (objectDataSize > 0) {
|
|
3920
|
+
let dataBytes = Math.floor(objectDataSize / 8);
|
|
3921
|
+
if (objectDataSize % 8 !== 0)
|
|
3922
|
+
dataBytes++;
|
|
3923
|
+
const rawData = this._objectReader.readBytes(dataBytes);
|
|
3924
|
+
template.RawData = rawData;
|
|
3925
|
+
}
|
|
3926
|
+
return template;
|
|
3927
|
+
}
|
|
3928
|
+
readAecWallStyle() {
|
|
3929
|
+
const wallStyle = new AecWallStyle();
|
|
3930
|
+
const template = new CadNonGraphicalObjectTemplate(wallStyle);
|
|
3931
|
+
this.readCommonNonEntityData(template);
|
|
3932
|
+
if (this.R2000Plus) {
|
|
3933
|
+
wallStyle.version = this._mergedReaders.readBitLong();
|
|
3934
|
+
}
|
|
3935
|
+
wallStyle.description = this._mergedReaders.readVariableText();
|
|
3936
|
+
const currentPos = this._mergedReaders.positionInBits();
|
|
3937
|
+
const endPos = this._objectInitialPos + (this._size * 8);
|
|
3938
|
+
const remainingBits = endPos - currentPos;
|
|
3939
|
+
if (remainingBits > 0) {
|
|
3940
|
+
const remainingBytes = Math.floor(remainingBits / 8);
|
|
3941
|
+
if (remainingBytes > 0) {
|
|
3942
|
+
wallStyle.rawData = this._mergedReaders.readBytes(remainingBytes);
|
|
3943
|
+
}
|
|
3944
|
+
}
|
|
3945
|
+
return template;
|
|
3946
|
+
}
|
|
3947
|
+
readBinRecord() {
|
|
3948
|
+
const binRecord = new AecBinRecord();
|
|
3949
|
+
const template = new CadNonGraphicalObjectTemplate(binRecord);
|
|
3950
|
+
this.readCommonNonEntityData(template);
|
|
3951
|
+
if (this.R2000Plus) {
|
|
3952
|
+
binRecord.version = this._mergedReaders.readBitLong();
|
|
3953
|
+
}
|
|
3954
|
+
const currentPos = this._mergedReaders.positionInBits();
|
|
3955
|
+
this._builder.Notify(`BinRecord: Handle reader at position ${currentPos}, BinRecord Handle: ${binRecord.handle.toString(16)}`, NotificationType.None);
|
|
3956
|
+
const endPos = this._objectInitialPos + (this._size * 8);
|
|
3957
|
+
const remainingBits = endPos - currentPos;
|
|
3958
|
+
if (remainingBits > 0) {
|
|
3959
|
+
const remainingBytes = Math.floor(remainingBits / 8);
|
|
3960
|
+
if (remainingBytes > 0) {
|
|
3961
|
+
binRecord.binaryData = this._mergedReaders.readBytes(remainingBytes);
|
|
3962
|
+
this._builder.Notify(`BinRecord: Read ${remainingBytes} bytes of binary data. Version: ${binRecord.version}, Handle: ${binRecord.handle.toString(16)}`, NotificationType.None);
|
|
3963
|
+
}
|
|
3964
|
+
}
|
|
3965
|
+
return template;
|
|
3966
|
+
}
|
|
3967
|
+
readTableEntity() {
|
|
3968
|
+
const table = new TableEntity();
|
|
3969
|
+
const template = new CadTableEntityTemplate(table);
|
|
3970
|
+
this.readInsertCommonData(template);
|
|
3971
|
+
this.readInsertCommonHandles(template);
|
|
3972
|
+
if (this.R2010Plus) {
|
|
3973
|
+
this._mergedReaders.readByte();
|
|
3974
|
+
template.NullHandle = this.handleReference();
|
|
3975
|
+
const longZero = this._mergedReaders.readBitLong();
|
|
3976
|
+
if (this.R2013Plus) {
|
|
3977
|
+
this._mergedReaders.readBitLong();
|
|
3978
|
+
}
|
|
3979
|
+
else {
|
|
3980
|
+
this._mergedReaders.readBit();
|
|
3981
|
+
}
|
|
3982
|
+
this.readTableContent(table.content, template);
|
|
3983
|
+
this._mergedReaders.readBitShort();
|
|
3984
|
+
table.horizontalDirection = this._mergedReaders.read3BitDouble();
|
|
3985
|
+
const hasBreakData = this._mergedReaders.readBitLong() === 1;
|
|
3986
|
+
if (hasBreakData) {
|
|
3987
|
+
const breakData = table.tableBreakData;
|
|
3988
|
+
breakData.flags = this._mergedReaders.readBitLong();
|
|
3989
|
+
breakData.flowDirection = this._mergedReaders.readBitLong();
|
|
3990
|
+
breakData.breakSpacing = this._mergedReaders.readBitDouble();
|
|
3991
|
+
this._mergedReaders.readBitLong();
|
|
3992
|
+
this._mergedReaders.readBitLong();
|
|
3993
|
+
const num = this._mergedReaders.readBitLong();
|
|
3994
|
+
for (let i = 0; i < num; i++) {
|
|
3995
|
+
const breakHeight = new BreakHeight();
|
|
3996
|
+
breakHeight.position = this._mergedReaders.read3BitDouble();
|
|
3997
|
+
breakHeight.height = this._mergedReaders.readBitDouble();
|
|
3998
|
+
this._mergedReaders.readBitLong();
|
|
3999
|
+
breakData.heights.push(breakHeight);
|
|
4000
|
+
}
|
|
4001
|
+
}
|
|
4002
|
+
const rowRanges = this._mergedReaders.readBitLong();
|
|
4003
|
+
for (let i = 0; i < rowRanges; i++) {
|
|
4004
|
+
const breakRowRange = new BreakRowRange();
|
|
4005
|
+
breakRowRange.position = this._mergedReaders.read3BitDouble();
|
|
4006
|
+
breakRowRange.startRowIndex = this._mergedReaders.readBitLong();
|
|
4007
|
+
breakRowRange.endRowIndex = this._mergedReaders.readBitLong();
|
|
4008
|
+
table.breakRowRanges.push(breakRowRange);
|
|
4009
|
+
}
|
|
4010
|
+
return template;
|
|
4011
|
+
}
|
|
4012
|
+
// Until R2007
|
|
4013
|
+
table.valueFlag = this._mergedReaders.readBitShort();
|
|
4014
|
+
table.horizontalDirection = this._mergedReaders.read3BitDouble();
|
|
4015
|
+
const ncols = this._mergedReaders.readBitLong();
|
|
4016
|
+
const nrows = this._mergedReaders.readBitLong();
|
|
4017
|
+
for (let i = 0; i < ncols; i++) {
|
|
4018
|
+
const c = new TableEntityColumn();
|
|
4019
|
+
c.width = this._mergedReaders.readBitDouble();
|
|
4020
|
+
table.columns.push(c);
|
|
4021
|
+
}
|
|
4022
|
+
for (let i = 0; i < nrows; i++) {
|
|
4023
|
+
const r = new TableEntityRow();
|
|
4024
|
+
r.height = this._mergedReaders.readBitDouble();
|
|
4025
|
+
table.rows.push(r);
|
|
4026
|
+
}
|
|
4027
|
+
template.styleHandle = this.handleReference();
|
|
4028
|
+
for (let n = 0; n < table.rows.length; n++) {
|
|
4029
|
+
for (let m = 0; m < table.columns.length; m++) {
|
|
4030
|
+
const cell = new TableEntityCell();
|
|
4031
|
+
table.rows[n].cells.push(cell);
|
|
4032
|
+
const cellTemplate = new CadTableCellTemplate(cell);
|
|
4033
|
+
template.cadTableCellTemplates.push(cellTemplate);
|
|
4034
|
+
this.readTableCellData(cellTemplate);
|
|
4035
|
+
}
|
|
4036
|
+
}
|
|
4037
|
+
if (this._mergedReaders.readBit()) {
|
|
4038
|
+
const styleOverride = new TableStyle();
|
|
4039
|
+
table.content.style = styleOverride;
|
|
4040
|
+
const flags = this._mergedReaders.readBitLong();
|
|
4041
|
+
if ((flags & TableOverrideFlags.TitleSuppressed) !== 0) {
|
|
4042
|
+
styleOverride.suppressTitle = this._mergedReaders.readBit();
|
|
4043
|
+
}
|
|
4044
|
+
if ((flags & TableOverrideFlags.FlowDirection) !== 0) {
|
|
4045
|
+
this._mergedReaders.readBitShort();
|
|
4046
|
+
}
|
|
4047
|
+
if ((flags & TableOverrideFlags.HorizontalCellMargin) !== 0) {
|
|
4048
|
+
this._mergedReaders.readBitDouble();
|
|
4049
|
+
}
|
|
4050
|
+
if ((flags & TableOverrideFlags.VerticalCellMargin) !== 0) {
|
|
4051
|
+
this._mergedReaders.readBitDouble();
|
|
4052
|
+
}
|
|
4053
|
+
if ((flags & TableOverrideFlags.TitleRowColor) !== 0) {
|
|
4054
|
+
this._mergedReaders.readCmColor(this.R2004Pre);
|
|
4055
|
+
}
|
|
4056
|
+
if ((flags & TableOverrideFlags.HeaderRowColor) !== 0) {
|
|
4057
|
+
this._mergedReaders.readCmColor(this.R2004Pre);
|
|
4058
|
+
}
|
|
4059
|
+
if ((flags & TableOverrideFlags.DataRowColor) !== 0) {
|
|
4060
|
+
this._mergedReaders.readCmColor(this.R2004Pre);
|
|
4061
|
+
}
|
|
4062
|
+
if ((flags & TableOverrideFlags.TitleRowFillNone) !== 0) {
|
|
4063
|
+
this._mergedReaders.readBit();
|
|
4064
|
+
}
|
|
4065
|
+
if ((flags & TableOverrideFlags.HeaderRowFillNone) !== 0) {
|
|
4066
|
+
this._mergedReaders.readBit();
|
|
4067
|
+
}
|
|
4068
|
+
if ((flags & TableOverrideFlags.DataRowFillNone) !== 0) {
|
|
4069
|
+
this._mergedReaders.readBit();
|
|
4070
|
+
}
|
|
4071
|
+
if ((flags & TableOverrideFlags.TitleRowFillColor) !== 0) {
|
|
4072
|
+
this._mergedReaders.readCmColor(this.R2004Pre);
|
|
4073
|
+
}
|
|
4074
|
+
if ((flags & TableOverrideFlags.HeaderRowFillColor) !== 0) {
|
|
4075
|
+
this._mergedReaders.readCmColor(this.R2004Pre);
|
|
4076
|
+
}
|
|
4077
|
+
if ((flags & TableOverrideFlags.DataRowFillColor) !== 0) {
|
|
4078
|
+
this._mergedReaders.readCmColor(this.R2004Pre);
|
|
4079
|
+
}
|
|
4080
|
+
if ((flags & TableOverrideFlags.TitleRowAlign) !== 0) {
|
|
4081
|
+
this._mergedReaders.readBitShort();
|
|
4082
|
+
}
|
|
4083
|
+
if ((flags & TableOverrideFlags.HeaderRowAlign) !== 0) {
|
|
4084
|
+
this._mergedReaders.readBitShort();
|
|
4085
|
+
}
|
|
4086
|
+
if ((flags & TableOverrideFlags.DataRowAlign) !== 0) {
|
|
4087
|
+
this._mergedReaders.readBitShort();
|
|
4088
|
+
}
|
|
4089
|
+
if ((flags & TableOverrideFlags.TitleTextStyle) !== 0) {
|
|
4090
|
+
this.handleReference();
|
|
4091
|
+
}
|
|
4092
|
+
if ((flags & TableOverrideFlags.HeaderTextStyle) !== 0) {
|
|
4093
|
+
this.handleReference();
|
|
4094
|
+
}
|
|
4095
|
+
if ((flags & TableOverrideFlags.DataTextStyle) !== 0) {
|
|
4096
|
+
this.handleReference();
|
|
4097
|
+
}
|
|
4098
|
+
if ((flags & TableOverrideFlags.TitleRowHeight) !== 0) {
|
|
4099
|
+
this._mergedReaders.readBitDouble();
|
|
4100
|
+
}
|
|
4101
|
+
if ((flags & TableOverrideFlags.HeaderRowHeight) !== 0) {
|
|
4102
|
+
this._mergedReaders.readBitDouble();
|
|
4103
|
+
}
|
|
4104
|
+
if ((flags & TableOverrideFlags.DataRowHeight) !== 0) {
|
|
4105
|
+
this._mergedReaders.readBitDouble();
|
|
4106
|
+
}
|
|
4107
|
+
}
|
|
4108
|
+
if (this._mergedReaders.readBit()) {
|
|
4109
|
+
const flags = this._mergedReaders.readBitLong();
|
|
4110
|
+
const borderColorsToRead = [
|
|
4111
|
+
[0, BorderOverrideFlags.TitleHorizontalTop],
|
|
4112
|
+
[0, BorderOverrideFlags.TitleHorizontalInsert],
|
|
4113
|
+
[0, BorderOverrideFlags.TitleHorizontalBottom],
|
|
4114
|
+
[0, BorderOverrideFlags.TitleVerticalLeft],
|
|
4115
|
+
[0, BorderOverrideFlags.TitleVerticalInsert],
|
|
4116
|
+
[0, BorderOverrideFlags.TitleVerticalRight],
|
|
4117
|
+
[0, BorderOverrideFlags.HeaderHorizontalTop],
|
|
4118
|
+
[0, BorderOverrideFlags.HeaderHorizontalInsert],
|
|
4119
|
+
[0, BorderOverrideFlags.HeaderHorizontalBottom],
|
|
4120
|
+
[0, BorderOverrideFlags.HeaderVerticalLeft],
|
|
4121
|
+
[0, BorderOverrideFlags.HeaderVerticalInsert],
|
|
4122
|
+
[0, BorderOverrideFlags.HeaderVerticalRight],
|
|
4123
|
+
[0, BorderOverrideFlags.DataHorizontalTop],
|
|
4124
|
+
[0, BorderOverrideFlags.DataHorizontalInsert],
|
|
4125
|
+
[0, BorderOverrideFlags.DataHorizontalBottom],
|
|
4126
|
+
[0, BorderOverrideFlags.DataVerticalLeft],
|
|
4127
|
+
[0, BorderOverrideFlags.DataVerticalInsert],
|
|
4128
|
+
[0, BorderOverrideFlags.DataVerticalRight],
|
|
4129
|
+
];
|
|
4130
|
+
for (const [_, flag] of borderColorsToRead) {
|
|
4131
|
+
if ((flags & flag) !== 0) {
|
|
4132
|
+
this._mergedReaders.readCmColor(this.R2004Pre);
|
|
4133
|
+
}
|
|
4134
|
+
}
|
|
4135
|
+
}
|
|
4136
|
+
if (this._mergedReaders.readBit()) {
|
|
4137
|
+
const flags = this._mergedReaders.readBitLong();
|
|
4138
|
+
const borderLwToRead = [
|
|
4139
|
+
BorderOverrideFlags.TitleHorizontalTop,
|
|
4140
|
+
BorderOverrideFlags.TitleHorizontalInsert,
|
|
4141
|
+
BorderOverrideFlags.TitleHorizontalBottom,
|
|
4142
|
+
BorderOverrideFlags.TitleVerticalLeft,
|
|
4143
|
+
BorderOverrideFlags.TitleVerticalInsert,
|
|
4144
|
+
BorderOverrideFlags.TitleVerticalRight,
|
|
4145
|
+
BorderOverrideFlags.HeaderHorizontalTop,
|
|
4146
|
+
BorderOverrideFlags.HeaderHorizontalInsert,
|
|
4147
|
+
BorderOverrideFlags.HeaderHorizontalBottom,
|
|
4148
|
+
BorderOverrideFlags.HeaderVerticalLeft,
|
|
4149
|
+
BorderOverrideFlags.HeaderVerticalInsert,
|
|
4150
|
+
BorderOverrideFlags.HeaderVerticalRight,
|
|
4151
|
+
BorderOverrideFlags.DataHorizontalTop,
|
|
4152
|
+
BorderOverrideFlags.DataHorizontalInsert,
|
|
4153
|
+
BorderOverrideFlags.DataHorizontalBottom,
|
|
4154
|
+
BorderOverrideFlags.DataVerticalLeft,
|
|
4155
|
+
BorderOverrideFlags.DataVerticalInsert,
|
|
4156
|
+
BorderOverrideFlags.DataVerticalRight,
|
|
4157
|
+
];
|
|
4158
|
+
for (const flag of borderLwToRead) {
|
|
4159
|
+
if ((flags & flag) !== 0) {
|
|
4160
|
+
this._mergedReaders.readBitShort();
|
|
4161
|
+
}
|
|
4162
|
+
}
|
|
4163
|
+
}
|
|
4164
|
+
// TODO: Has border visibility overrides section (matching C# patterns)
|
|
4165
|
+
return template;
|
|
4166
|
+
}
|
|
4167
|
+
readBlkRefObjectContextData() {
|
|
4168
|
+
const contextData = new BlockReferenceObjectContextData();
|
|
4169
|
+
const template = new CadAnnotScaleObjectContextDataTemplate(contextData);
|
|
4170
|
+
this.readAnnotScaleObjectContextData(template);
|
|
4171
|
+
contextData.rotation = this._mergedReaders.readBitDouble();
|
|
4172
|
+
contextData.insertionPoint = this._mergedReaders.read3BitDouble();
|
|
4173
|
+
contextData.xScale = this._mergedReaders.readBitDouble();
|
|
4174
|
+
contextData.yScale = this._mergedReaders.readBitDouble();
|
|
4175
|
+
contextData.zScale = this._mergedReaders.readBitDouble();
|
|
4176
|
+
return template;
|
|
4177
|
+
}
|
|
4178
|
+
readMTextAttributeObjectContextData() {
|
|
4179
|
+
// TODO: MTextAttributeObjectContextData for dwg
|
|
4180
|
+
return null;
|
|
4181
|
+
}
|
|
4182
|
+
readFieldList() {
|
|
4183
|
+
const fieldList = new FieldList();
|
|
4184
|
+
const template = new CadFieldListTemplate(fieldList);
|
|
4185
|
+
this.readCommonNonEntityData(template);
|
|
4186
|
+
const nhandles = this._mergedReaders.readBitLong();
|
|
4187
|
+
this._mergedReaders.readBit();
|
|
4188
|
+
for (let i = 0; i < nhandles; i++) {
|
|
4189
|
+
template.OwnedObjectsHandlers.add(this.handleReference());
|
|
4190
|
+
}
|
|
4191
|
+
return template;
|
|
4192
|
+
}
|
|
4193
|
+
readField() {
|
|
4194
|
+
const field = new Field();
|
|
4195
|
+
const template = new CadFieldTemplate(field);
|
|
4196
|
+
this.readCommonNonEntityData(template);
|
|
4197
|
+
field.evaluatorId = this._mergedReaders.readVariableText();
|
|
4198
|
+
field.fieldCode = this._mergedReaders.readVariableText();
|
|
4199
|
+
const nchild = this._mergedReaders.readBitLong();
|
|
4200
|
+
for (let i = 0; i < nchild; i++) {
|
|
4201
|
+
template.ChildrenHandles.push(this.handleReference());
|
|
4202
|
+
}
|
|
4203
|
+
const nfields = this._mergedReaders.readBitLong();
|
|
4204
|
+
for (let j = 0; j < nfields; j++) {
|
|
4205
|
+
template.CadObjectsHandles.push(this.handleReference());
|
|
4206
|
+
}
|
|
4207
|
+
if (this._version < ACadVersion.AC1021) {
|
|
4208
|
+
field.formatString = this._mergedReaders.readVariableText();
|
|
4209
|
+
}
|
|
4210
|
+
field.evaluationOptionFlags = this._mergedReaders.readBitLong();
|
|
4211
|
+
field.filingOptionFlags = this._mergedReaders.readBitLong();
|
|
4212
|
+
field.fieldStateFlags = this._mergedReaders.readBitLong();
|
|
4213
|
+
field.evaluationStatusFlags = this._mergedReaders.readBitLong();
|
|
4214
|
+
field.evaluationErrorCode = this._mergedReaders.readBitLong();
|
|
4215
|
+
field.evaluationErrorMessage = this._mergedReaders.readVariableText();
|
|
4216
|
+
template.CadValueTemplates.push(this.readCadValue(field.value));
|
|
4217
|
+
field.formatString = this._mergedReaders.readVariableText();
|
|
4218
|
+
this._mergedReaders.readBitLong();
|
|
4219
|
+
const num3 = this._mergedReaders.readBitLong();
|
|
4220
|
+
for (let k = 0; k < num3; k++) {
|
|
4221
|
+
const key = this._mergedReaders.readVariableText();
|
|
4222
|
+
const value = new CadValue();
|
|
4223
|
+
template.CadValueTemplates.push(this.readCadValue(value));
|
|
4224
|
+
field.values.set(key, value);
|
|
4225
|
+
}
|
|
4226
|
+
return template;
|
|
4227
|
+
}
|
|
4228
|
+
readMatrix4() {
|
|
4229
|
+
const matrix = [];
|
|
4230
|
+
for (let i = 0; i < 16; i++) {
|
|
4231
|
+
matrix.push(this._mergedReaders.readBitDouble());
|
|
4232
|
+
}
|
|
4233
|
+
return matrix;
|
|
4234
|
+
}
|
|
4235
|
+
read4x3Matrix() {
|
|
4236
|
+
const identity = Matrix4.identity();
|
|
4237
|
+
for (let i = 0; i < 3; i++) {
|
|
4238
|
+
for (let j = 0; j < 4; j++) {
|
|
4239
|
+
identity.setElement(i, j, this._mergedReaders.readBitDouble());
|
|
4240
|
+
}
|
|
4241
|
+
}
|
|
4242
|
+
return identity;
|
|
4243
|
+
}
|
|
4244
|
+
readBorderStyle(border) {
|
|
4245
|
+
border.lineWeight = this._mergedReaders.readBitShort();
|
|
4246
|
+
border.isInvisible = !this._mergedReaders.readBit();
|
|
4247
|
+
border.color = this._mergedReaders.readCmColor(this.R2004Pre);
|
|
4248
|
+
}
|
|
4249
|
+
readAnnotScaleObjectContextData(template) {
|
|
4250
|
+
this.readObjectContextData(template);
|
|
4251
|
+
template.scaleHandle = this.handleReference();
|
|
4252
|
+
}
|
|
4253
|
+
readObjectContextData(template) {
|
|
4254
|
+
this.readCommonNonEntityData(template);
|
|
4255
|
+
const contextData = template.CadObject;
|
|
4256
|
+
contextData.version = this._objectReader.readBitShort();
|
|
4257
|
+
contextData.default = this._objectReader.readBit();
|
|
4258
|
+
}
|
|
4259
|
+
readLeaderLine(template) {
|
|
4260
|
+
const leaderLine = new LeaderLine();
|
|
4261
|
+
const leaderLineSubTemplate = new CadMLeaderAnnotContextTemplate.LeaderLineTemplate(leaderLine);
|
|
4262
|
+
template.leaderLineTemplates.push(leaderLineSubTemplate);
|
|
4263
|
+
const pointCount = this._objectReader.readBitLong();
|
|
4264
|
+
for (let p = 0; p < pointCount; p++) {
|
|
4265
|
+
leaderLine.points.push(this._objectReader.read3BitDouble());
|
|
4266
|
+
}
|
|
4267
|
+
leaderLine.breakInfoCount = this._objectReader.readBitLong();
|
|
4268
|
+
if (leaderLine.breakInfoCount > 0) {
|
|
4269
|
+
leaderLine.segmentIndex = this._objectReader.readBitLong();
|
|
4270
|
+
const startEndPointCount = this._objectReader.readBitLong();
|
|
4271
|
+
for (let sep = 0; sep < startEndPointCount; sep++) {
|
|
4272
|
+
leaderLine.startEndPoints.push(new StartEndPointPair(this._objectReader.read3BitDouble(), this._objectReader.read3BitDouble()));
|
|
4273
|
+
}
|
|
4274
|
+
}
|
|
4275
|
+
leaderLine.index = this._objectReader.readBitLong();
|
|
4276
|
+
if (this.R2010Plus) {
|
|
4277
|
+
leaderLine.pathType = this._objectReader.readBitShort();
|
|
4278
|
+
leaderLine.lineColor = this._objectReader.readCmColor();
|
|
4279
|
+
leaderLineSubTemplate.LineTypeHandle = this.handleReference();
|
|
4280
|
+
leaderLine.lineWeight = this._objectReader.readBitLong();
|
|
4281
|
+
leaderLine.arrowheadSize = this._objectReader.readBitDouble();
|
|
4282
|
+
leaderLineSubTemplate.ArrowSymbolHandle = this.handleReference();
|
|
4283
|
+
leaderLine.overrideFlags = this._objectReader.readBitLong();
|
|
4284
|
+
}
|
|
4285
|
+
return leaderLine;
|
|
4286
|
+
}
|
|
4287
|
+
readLeaderRoot(template) {
|
|
4288
|
+
const leaderRoot = new LeaderRoot();
|
|
4289
|
+
leaderRoot.contentValid = this._objectReader.readBit();
|
|
4290
|
+
leaderRoot.unknown = this._objectReader.readBit();
|
|
4291
|
+
leaderRoot.connectionPoint = this._objectReader.read3BitDouble();
|
|
4292
|
+
leaderRoot.direction = this._objectReader.read3BitDouble();
|
|
4293
|
+
const breakStartEndPointCount = this._objectReader.readBitLong();
|
|
4294
|
+
for (let bsep = 0; bsep < breakStartEndPointCount; bsep++) {
|
|
4295
|
+
leaderRoot.breakStartEndPointsPairs.push(new StartEndPointPair(this._objectReader.read3BitDouble(), this._objectReader.read3BitDouble()));
|
|
4296
|
+
}
|
|
4297
|
+
leaderRoot.leaderIndex = this._objectReader.readBitLong();
|
|
4298
|
+
leaderRoot.landingDistance = this._objectReader.readBitDouble();
|
|
4299
|
+
const leaderLineCount = this._objectReader.readBitLong();
|
|
4300
|
+
for (let ll = 0; ll < leaderLineCount; ll++) {
|
|
4301
|
+
leaderRoot.lines.push(this.readLeaderLine(template));
|
|
4302
|
+
}
|
|
4303
|
+
if (this.R2010Plus) {
|
|
4304
|
+
leaderRoot.textAttachmentDirection = this._objectReader.readBitShort();
|
|
4305
|
+
}
|
|
4306
|
+
return leaderRoot;
|
|
4307
|
+
}
|
|
4308
|
+
readBlockElement(template) {
|
|
4309
|
+
this.readEvaluationExpression(template);
|
|
4310
|
+
template.blockElement.elementName = this._mergedReaders.readVariableText();
|
|
4311
|
+
template.blockElement.value98 = this._mergedReaders.readBitLong();
|
|
4312
|
+
template.blockElement.value99 = this._mergedReaders.readBitLong();
|
|
4313
|
+
template.blockElement.value1071 = this._mergedReaders.readBitLong();
|
|
4314
|
+
}
|
|
4315
|
+
readBlockParameter(template) {
|
|
4316
|
+
this.readBlockElement(template);
|
|
4317
|
+
template.blockParameter.value280 = this._mergedReaders.readBit();
|
|
4318
|
+
template.blockParameter.value281 = this._mergedReaders.readBit();
|
|
4319
|
+
}
|
|
4320
|
+
readBlock1PtParameter(template) {
|
|
4321
|
+
this.readBlockParameter(template);
|
|
4322
|
+
template.block1PtParameter.location = this._mergedReaders.read3BitDouble();
|
|
4323
|
+
template.block1PtParameter.value170 = this._mergedReaders.readBitShort();
|
|
4324
|
+
template.block1PtParameter.value171 = this._mergedReaders.readBitShort();
|
|
4325
|
+
template.block1PtParameter.value93 = this._mergedReaders.readBitLong();
|
|
4326
|
+
}
|
|
4327
|
+
readBlock2PtParameter(template) {
|
|
4328
|
+
this.readBlockParameter(template);
|
|
4329
|
+
template.block2PtParameter.firstPoint = this._mergedReaders.read3BitDouble();
|
|
4330
|
+
template.block2PtParameter.secondPoint = this._mergedReaders.read3BitDouble();
|
|
4331
|
+
for (let i = 0; i < 4; i++) {
|
|
4332
|
+
const n = this._mergedReaders.readBitShort();
|
|
4333
|
+
for (let j = 0; j < n; j++) {
|
|
4334
|
+
const d = this._mergedReaders.readBitLong();
|
|
4335
|
+
const e = this._mergedReaders.readVariableText();
|
|
4336
|
+
}
|
|
4337
|
+
}
|
|
4338
|
+
for (let k = 0; k < 4; k++) {
|
|
4339
|
+
const f = this._mergedReaders.readBitLong();
|
|
4340
|
+
}
|
|
4341
|
+
const value177 = this._mergedReaders.readBitShort();
|
|
4342
|
+
}
|
|
4343
|
+
readBlockAction(template) {
|
|
4344
|
+
this.readBlockElement(template);
|
|
4345
|
+
const blockAction = template.blockAction;
|
|
4346
|
+
blockAction.actionPoint = this._mergedReaders.read3BitDouble();
|
|
4347
|
+
const entityCount = this._objectReader.readBitShort();
|
|
4348
|
+
for (let i = 0; i < entityCount; i++) {
|
|
4349
|
+
const entityHandle = this.handleReference();
|
|
4350
|
+
template.entityHandles.add(entityHandle);
|
|
4351
|
+
}
|
|
4352
|
+
blockAction.value70 = this._mergedReaders.readBitShort();
|
|
4353
|
+
}
|
|
4354
|
+
readBlockActionBasePt(template) {
|
|
4355
|
+
this.readBlockAction(template);
|
|
4356
|
+
const blockActionBasePt = template.CadObject;
|
|
4357
|
+
blockActionBasePt.value1011 = this._mergedReaders.read3BitDouble();
|
|
4358
|
+
blockActionBasePt.value92 = this._mergedReaders.readBitLong();
|
|
4359
|
+
blockActionBasePt.value301 = this._mergedReaders.readVariableText();
|
|
4360
|
+
blockActionBasePt.value93 = this._mergedReaders.readBitLong();
|
|
4361
|
+
blockActionBasePt.value302 = this._mergedReaders.readVariableText();
|
|
4362
|
+
blockActionBasePt.value280 = this._mergedReaders.readBit();
|
|
4363
|
+
blockActionBasePt.value1012 = this._mergedReaders.read3BitDouble();
|
|
4364
|
+
}
|
|
4365
|
+
readEvaluationExpression(template) {
|
|
4366
|
+
this.readCommonNonEntityData(template);
|
|
4367
|
+
const unknown = this._objectReader.readBitLong();
|
|
4368
|
+
template.CadObject.value98 = this._objectReader.readBitLong();
|
|
4369
|
+
template.CadObject.value99 = this._objectReader.readBitLong();
|
|
4370
|
+
const code = this._mergedReaders.readBitShort();
|
|
4371
|
+
if (code > 0) {
|
|
4372
|
+
const groupValue = GroupCodeValue.transformValue(code);
|
|
4373
|
+
switch (groupValue) {
|
|
4374
|
+
case GroupCodeValueType.Double:
|
|
4375
|
+
case GroupCodeValueType.ExtendedDataDouble:
|
|
4376
|
+
this._mergedReaders.readBitDouble();
|
|
4377
|
+
break;
|
|
4378
|
+
default:
|
|
4379
|
+
throw new Error(`[EvaluationExpression] Code not implemented ${groupValue}`);
|
|
4380
|
+
}
|
|
4381
|
+
}
|
|
4382
|
+
template.CadObject.id = this._objectReader.readBitLong();
|
|
4383
|
+
}
|
|
4384
|
+
readRowCellStyle(tableStyleTemplate, style) {
|
|
4385
|
+
const cellStyleTemplate = new CadCellStyleTemplate(style);
|
|
4386
|
+
tableStyleTemplate.CellStyleTemplates.push(cellStyleTemplate);
|
|
4387
|
+
cellStyleTemplate.textStyleHandle = this.handleReference();
|
|
4388
|
+
style.textHeight = this._mergedReaders.readBitDouble();
|
|
4389
|
+
style.cellAlignment = this._mergedReaders.readBitShort();
|
|
4390
|
+
style.textColor = this._mergedReaders.readCmColor(this.R2004Pre);
|
|
4391
|
+
style.backgroundColor = this._mergedReaders.readCmColor(this.R2004Pre);
|
|
4392
|
+
style.isFillColorOn = this._mergedReaders.readBit();
|
|
4393
|
+
this.readBorderStyle(style.topBorder);
|
|
4394
|
+
this.readBorderStyle(style.horizontalInsideBorder);
|
|
4395
|
+
this.readBorderStyle(style.bottomBorder);
|
|
4396
|
+
this.readBorderStyle(style.leftBorder);
|
|
4397
|
+
this.readBorderStyle(style.verticalInsideBorder);
|
|
4398
|
+
this.readBorderStyle(style.rightBorder);
|
|
4399
|
+
if (this.R2007Plus) {
|
|
4400
|
+
style.valueDataType = this._mergedReaders.readBitLong();
|
|
4401
|
+
style.valueUnitType = this._mergedReaders.readBitLong();
|
|
4402
|
+
style.valueFormatString = this._mergedReaders.readVariableText();
|
|
4403
|
+
}
|
|
4404
|
+
}
|
|
4405
|
+
readCellStyle(template) {
|
|
4406
|
+
// TODO: readCellStyle for R2007+ table styles
|
|
4407
|
+
}
|
|
4408
|
+
readTableContent(content, template) {
|
|
4409
|
+
// TODO: readTableContent for R2010+ tables
|
|
4410
|
+
}
|
|
4411
|
+
readTableCellData(template) {
|
|
4412
|
+
// TODO: readTableCellData for pre-R2010 tables
|
|
4413
|
+
}
|
|
4414
|
+
readCadValue(value) {
|
|
4415
|
+
const template = new CadValueTemplate(value);
|
|
4416
|
+
if (this.R2007Plus) {
|
|
4417
|
+
value.flags = this._mergedReaders.readBitLong();
|
|
4418
|
+
}
|
|
4419
|
+
value.valueType = this._mergedReaders.readBitLong();
|
|
4420
|
+
if (!this.R2007Plus || !value.isEmpty) {
|
|
4421
|
+
switch (value.valueType) {
|
|
4422
|
+
case CadValueType.Unknown:
|
|
4423
|
+
case CadValueType.Long:
|
|
4424
|
+
value.setValue(this._mergedReaders.readBitLong());
|
|
4425
|
+
break;
|
|
4426
|
+
case CadValueType.Double:
|
|
4427
|
+
value.setValue(this._mergedReaders.readBitDouble());
|
|
4428
|
+
break;
|
|
4429
|
+
case CadValueType.General:
|
|
4430
|
+
case CadValueType.String:
|
|
4431
|
+
value.setValue(this.readStringCadValue());
|
|
4432
|
+
break;
|
|
4433
|
+
case CadValueType.Date: {
|
|
4434
|
+
const dateTime = this.readDateCadValue();
|
|
4435
|
+
if (dateTime !== null) {
|
|
4436
|
+
value.setValue(dateTime);
|
|
4437
|
+
}
|
|
4438
|
+
break;
|
|
4439
|
+
}
|
|
4440
|
+
case CadValueType.Point2D:
|
|
4441
|
+
value.setValue(this.readValueXY());
|
|
4442
|
+
break;
|
|
4443
|
+
case CadValueType.Point3D:
|
|
4444
|
+
value.setValue(this.readValueXYZ());
|
|
4445
|
+
break;
|
|
4446
|
+
case CadValueType.Handle:
|
|
4447
|
+
template.ValueHandle = this.handleReference();
|
|
4448
|
+
break;
|
|
4449
|
+
default:
|
|
4450
|
+
throw new Error('CadValue type not implemented');
|
|
4451
|
+
}
|
|
4452
|
+
}
|
|
4453
|
+
if (this.R2007Plus) {
|
|
4454
|
+
value.units = this._mergedReaders.readBitLong();
|
|
4455
|
+
value.format = this._mergedReaders.readVariableText();
|
|
4456
|
+
value.formattedValue = this._mergedReaders.readVariableText();
|
|
4457
|
+
}
|
|
4458
|
+
return template;
|
|
4459
|
+
}
|
|
4460
|
+
readStringCadValue() {
|
|
4461
|
+
return this._mergedReaders.readVariableText();
|
|
4462
|
+
}
|
|
4463
|
+
readDateCadValue() {
|
|
4464
|
+
const julianDay = this._mergedReaders.readBitLong();
|
|
4465
|
+
const msecs = this._mergedReaders.readBitLong();
|
|
4466
|
+
// Julian day 2440588 = Jan 1, 1970
|
|
4467
|
+
const unixDays = julianDay - 2440588;
|
|
4468
|
+
return new Date(unixDays * 86400000 + msecs);
|
|
4469
|
+
}
|
|
4470
|
+
readValueXY() {
|
|
4471
|
+
return new XY(this._mergedReaders.readBitDouble(), this._mergedReaders.readBitDouble());
|
|
4472
|
+
}
|
|
4473
|
+
readValueXYZ() {
|
|
4474
|
+
return new XYZ(this._mergedReaders.readBitDouble(), this._mergedReaders.readBitDouble(), this._mergedReaders.readBitDouble());
|
|
4475
|
+
}
|
|
4476
|
+
readState() {
|
|
4477
|
+
const template = new CadBlockVisibilityParameterTemplate.StateTemplate();
|
|
4478
|
+
template.state.name = this._textReader.readVariableText();
|
|
4479
|
+
const n1 = this._objectReader.readBitLong();
|
|
4480
|
+
for (let i = 0; i < n1; i++) {
|
|
4481
|
+
template.entityHandles.add(this.handleReference());
|
|
4482
|
+
}
|
|
4483
|
+
const n2 = this._objectReader.readBitLong();
|
|
4484
|
+
for (let i = 0; i < n2; i++) {
|
|
4485
|
+
template.expressionHandles.add(this.handleReference());
|
|
4486
|
+
}
|
|
4487
|
+
return template;
|
|
4488
|
+
}
|
|
4489
|
+
get SectionName() { return "AcDb:AcDbObjects"; }
|
|
4490
|
+
}
|
|
4491
|
+
//# sourceMappingURL=DwgObjectReader.js.map
|