@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,3304 @@
|
|
|
1
|
+
import { ACadVersion } from '../../../ACadVersion.js';
|
|
2
|
+
import { DwgSectionIO } from '../DwgSectionIO.js';
|
|
3
|
+
import { DwgSectionDefinition } from '../FileHeaders/DwgSectionDefinition.js';
|
|
4
|
+
import { DwgReferenceType } from '../../../Types/DwgReferenceType.js';
|
|
5
|
+
import { CRC8StreamHandler } from '../CRC8StreamHandler.js';
|
|
6
|
+
import { DwgStreamWriterBase } from './DwgStreamWriterBase.js';
|
|
7
|
+
import { NotificationType } from '../../NotificationEventHandler.js';
|
|
8
|
+
import { ObjectType } from '../../../Types/ObjectType.js';
|
|
9
|
+
import { CadUtils } from '../../../CadUtils.js';
|
|
10
|
+
import { XY, XYZ } from '../../../Math/index.js';
|
|
11
|
+
import { Color } from '../../../Color.js';
|
|
12
|
+
import { Arc } from '../../../Entities/Arc.js';
|
|
13
|
+
import { Circle } from '../../../Entities/Circle.js';
|
|
14
|
+
import { Dimension } from '../../../Entities/Dimension.js';
|
|
15
|
+
import { DimensionLinear } from '../../../Entities/DimensionLinear.js';
|
|
16
|
+
import { DimensionAligned } from '../../../Entities/DimensionAligned.js';
|
|
17
|
+
import { DimensionRadius } from '../../../Entities/DimensionRadius.js';
|
|
18
|
+
import { DimensionAngular2Line } from '../../../Entities/DimensionAngular2Line.js';
|
|
19
|
+
import { DimensionAngular3Pt } from '../../../Entities/DimensionAngular3Pt.js';
|
|
20
|
+
import { DimensionDiameter } from '../../../Entities/DimensionDiameter.js';
|
|
21
|
+
import { DimensionOrdinate } from '../../../Entities/DimensionOrdinate.js';
|
|
22
|
+
import { Ellipse } from '../../../Entities/Ellipse.js';
|
|
23
|
+
import { Insert } from '../../../Entities/Insert.js';
|
|
24
|
+
import { Face3D, InvisibleEdgeFlags } from '../../../Entities/Face3D.js';
|
|
25
|
+
import { Hatch, BoundaryPathFlags, HatchBoundaryPathLine, HatchBoundaryPathArc, HatchBoundaryPathEllipse, HatchBoundaryPathSpline } from '../../../Entities/Hatch.js';
|
|
26
|
+
import { Leader, HookLineDirection } from '../../../Entities/Leader.js';
|
|
27
|
+
import { Line } from '../../../Entities/Line.js';
|
|
28
|
+
import { LwPolyline, LwPolylineFlags } from '../../../Entities/LwPolyline.js';
|
|
29
|
+
import { Mesh } from '../../../Entities/Mesh.js';
|
|
30
|
+
import { MLine, MLineFlags } from '../../../Entities/MLine.js';
|
|
31
|
+
import { MText, BackgroundFillFlags } from '../../../Entities/MText.js';
|
|
32
|
+
import { MultiLeader } from '../../../Entities/MultiLeader.js';
|
|
33
|
+
import { Ole2Frame } from '../../../Entities/Ole2Frame.js';
|
|
34
|
+
import { PdfUnderlay } from '../../../Entities/PdfUnderlay.js';
|
|
35
|
+
import { Point } from '../../../Entities/Point.js';
|
|
36
|
+
import { PolyfaceMesh } from '../../../Entities/PolyfaceMesh.js';
|
|
37
|
+
import { Polyline2D } from '../../../Entities/Polyline2D.js';
|
|
38
|
+
import { Polyline3D } from '../../../Entities/Polyline3D.js';
|
|
39
|
+
import { PolygonMesh } from '../../../Entities/PolygonMesh.js';
|
|
40
|
+
import { Ray } from '../../../Entities/Ray.js';
|
|
41
|
+
import { Shape } from '../../../Entities/Shape.js';
|
|
42
|
+
import { Solid } from '../../../Entities/Solid.js';
|
|
43
|
+
import { Solid3D } from '../../../Entities/Solid3D.js';
|
|
44
|
+
import { Spline, SplineFlags, SplineFlags1, KnotParametrization } from '../../../Entities/Spline.js';
|
|
45
|
+
import { CadWipeoutBase, ClipType, ClipMode } from '../../../Entities/CadWipeoutBase.js';
|
|
46
|
+
import { TextEntity, TextMirrorFlag, TextHorizontalAlignment, TextVerticalAlignmentType } from '../../../Entities/TextEntity.js';
|
|
47
|
+
import { AttributeEntity } from '../../../Entities/AttributeEntity.js';
|
|
48
|
+
import { AttributeDefinition } from '../../../Entities/AttributeDefinition.js';
|
|
49
|
+
import { Tolerance } from '../../../Entities/Tolerance.js';
|
|
50
|
+
import { Vertex2D } from '../../../Entities/Vertex2D.js';
|
|
51
|
+
import { Vertex3D } from '../../../Entities/Vertex3D.js';
|
|
52
|
+
import { VertexFaceRecord } from '../../../Entities/VertexFaceRecord.js';
|
|
53
|
+
import { VertexFaceMesh } from '../../../Entities/VertexFaceMesh.js';
|
|
54
|
+
import { PolygonMeshVertex } from '../../../Entities/PolygonMeshVertex.js';
|
|
55
|
+
import { Viewport } from '../../../Entities/Viewport.js';
|
|
56
|
+
import { XLine } from '../../../Entities/XLine.js';
|
|
57
|
+
import { BlockRecord, BlockTypeFlags } from '../../../Tables/BlockRecord.js';
|
|
58
|
+
import { UnknownEntity } from '../../../Entities/UnknownEntity.js';
|
|
59
|
+
import { Wall } from '../../../Entities/AecObjects/Wall.js';
|
|
60
|
+
import { ProxyEntity } from '../../../Entities/ProxyEntity.js';
|
|
61
|
+
import { TableEntity } from '../../../Entities/TableEntity.js';
|
|
62
|
+
import { CadBody } from '../../../Entities/CadBody.js';
|
|
63
|
+
import { Region } from '../../../Entities/Region.js';
|
|
64
|
+
import { LineType, LineTypeShapeFlags } from '../../../Tables/LineType.js';
|
|
65
|
+
// Tables
|
|
66
|
+
import { StandardFlags } from '../../../Tables/TableEntry.js';
|
|
67
|
+
import { AppId } from '../../../Tables/AppId.js';
|
|
68
|
+
import { Layer, LayerFlags } from '../../../Tables/Layer.js';
|
|
69
|
+
import { TextStyle, StyleFlags } from '../../../Tables/TextStyle.js';
|
|
70
|
+
import { UCS } from '../../../Tables/UCS.js';
|
|
71
|
+
import { View, ViewModeType } from '../../../Tables/View.js';
|
|
72
|
+
import { DimensionStyle, TextDirection } from '../../../Tables/DimensionStyle.js';
|
|
73
|
+
import { DimensionStylesTable } from '../../../Tables/Collections/DimensionStylesTable.js';
|
|
74
|
+
import { VPort, UscIconType } from '../../../Tables/VPort.js';
|
|
75
|
+
import { CadDictionary } from '../../../Objects/CadDictionary.js';
|
|
76
|
+
import { CadDictionaryWithDefault } from '../../../Objects/CadDictionaryWithDefault.js';
|
|
77
|
+
import { DictionaryVariable } from '../../../Objects/DictionaryVariable.js';
|
|
78
|
+
import { DimensionAssociation, AssociativityFlags } from '../../../Objects/DimensionAssociation.js';
|
|
79
|
+
import { Field } from '../../../Objects/Field.js';
|
|
80
|
+
import { FieldList } from '../../../Objects/FieldList.js';
|
|
81
|
+
import { GeoData, GeoDataVersion } from '../../../Objects/GeoData.js';
|
|
82
|
+
import { Group } from '../../../Objects/Group.js';
|
|
83
|
+
import { ImageDefinition } from '../../../Objects/ImageDefinition.js';
|
|
84
|
+
import { ImageDefinitionReactor } from '../../../Objects/ImageDefinitionReactor.js';
|
|
85
|
+
import { Layout } from '../../../Objects/Layout.js';
|
|
86
|
+
import { MLineStyle, MLineStyleFlags } from '../../../Objects/MLineStyle.js';
|
|
87
|
+
import { MultiLeaderStyle } from '../../../Objects/MultiLeaderStyle.js';
|
|
88
|
+
import { PdfUnderlayDefinition } from '../../../Objects/PdfUnderlayDefinition.js';
|
|
89
|
+
import { PlotSettings } from '../../../Objects/PlotSettings.js';
|
|
90
|
+
import { RasterVariables } from '../../../Objects/RasterVariables.js';
|
|
91
|
+
import { Scale } from '../../../Objects/Scale.js';
|
|
92
|
+
import { SortEntitiesTable } from '../../../Objects/SortEntitiesTable.js';
|
|
93
|
+
import { SpatialFilter } from '../../../Objects/SpatialFilter.js';
|
|
94
|
+
import { XRecord } from '../../../Objects/XRecrod.js';
|
|
95
|
+
import { AcdbPlaceHolder } from '../../../Objects/AcdbPlaceHolder.js';
|
|
96
|
+
import { BookColor } from '../../../Objects/BookColor.js';
|
|
97
|
+
import { CadValueType } from '../../../CadValue.js';
|
|
98
|
+
import { GroupCodeValue } from '../../../GroupCodeValue.js';
|
|
99
|
+
import { ExtendedDataBinaryChunk } from '../../../XData/ExtendedDataBinaryChunk.js';
|
|
100
|
+
import { ExtendedDataControlString } from '../../../XData/ExtendedDataControlString.js';
|
|
101
|
+
import { ExtendedDataInteger16 } from '../../../XData/ExtendedDataInteger16.js';
|
|
102
|
+
import { ExtendedDataInteger32 } from '../../../XData/ExtendedDataInteger32.js';
|
|
103
|
+
import { ExtendedDataReal } from '../../../XData/ExtendedDataReal.js';
|
|
104
|
+
import { ExtendedDataScale } from '../../../XData/ExtendedDataScale.js';
|
|
105
|
+
import { ExtendedDataDistance } from '../../../XData/ExtendedDataDistance.js';
|
|
106
|
+
import { ExtendedDataDirection } from '../../../XData/ExtendedDataDirection.js';
|
|
107
|
+
import { ExtendedDataDisplacement } from '../../../XData/ExtendedDataDisplacement.js';
|
|
108
|
+
import { ExtendedDataCoordinate } from '../../../XData/ExtendedDataCoordinate.js';
|
|
109
|
+
import { ExtendedDataWorldCoordinate } from '../../../XData/ExtendedDataWorldCoordinate.js';
|
|
110
|
+
import { ExtendedDataString } from '../../../XData/ExtendedDataString.js';
|
|
111
|
+
// Aec/Proxy objects
|
|
112
|
+
import { AecWallStyle } from '../../../Objects/AEC/AecWallStyle.js';
|
|
113
|
+
import { AecCleanupGroup } from '../../../Objects/AEC/AecCleanupGroup.js';
|
|
114
|
+
import { AecBinRecord } from '../../../Objects/AEC/AecBinRecord.js';
|
|
115
|
+
import { EvaluationGraph } from '../../../Objects/Evaluations/EvaluationGraph.js';
|
|
116
|
+
import { Material } from '../../../Objects/Material.js';
|
|
117
|
+
import { UnknownNonGraphicalObject } from '../../../Objects/UnknownNonGraphicalObject.js';
|
|
118
|
+
import { VisualStyle } from '../../../Objects/VisualStyle.js';
|
|
119
|
+
import { TableStyle } from '../../../Objects/TableStyle.js';
|
|
120
|
+
import { ProxyObject } from '../../../Objects/ProxyObject.js';
|
|
121
|
+
import { BlockRepresentationData } from '../../../Objects/BlockRepresentationData.js';
|
|
122
|
+
import { BlockReferenceObjectContextData } from '../../../Objects/BlockReferenceObjectContextData.js';
|
|
123
|
+
import { MTextAttributeObjectContextData } from '../../../Objects/MTextAttributeObjectContextData.js';
|
|
124
|
+
import { MultiLeaderObjectContextData } from '../../../Objects/MultiLeaderObjectContextData.js';
|
|
125
|
+
import { PolylineFlags } from '../../../Entities/PolylineFlags.js';
|
|
126
|
+
import { AttributeType } from '../../../Entities/AttributeBase.js';
|
|
127
|
+
import { OrthographicType } from '../../../Types/OrthographicType.js';
|
|
128
|
+
import { GroupCodeValueType } from '../../../GroupCodeValueType.js';
|
|
129
|
+
export class DwgObjectWriter extends DwgSectionIO {
|
|
130
|
+
get SectionName() { return DwgSectionDefinition.AcDbObjects; }
|
|
131
|
+
/** Key: handle, Value: Offset */
|
|
132
|
+
Map = new Map();
|
|
133
|
+
WriteXRecords;
|
|
134
|
+
WriteXData;
|
|
135
|
+
WriteShapes = true;
|
|
136
|
+
_dictionaries = new Map();
|
|
137
|
+
_objects = [];
|
|
138
|
+
_msmain;
|
|
139
|
+
_msmainPos = 0;
|
|
140
|
+
_writer;
|
|
141
|
+
_stream;
|
|
142
|
+
_streamPos = 0;
|
|
143
|
+
_document;
|
|
144
|
+
_prev = null;
|
|
145
|
+
_next = null;
|
|
146
|
+
constructor(stream, document, encoding, writeXRecords = true, writeXData = true, writeShapes = true) {
|
|
147
|
+
super(document.header.version);
|
|
148
|
+
// Ensure minimum stream capacity for object section
|
|
149
|
+
this._stream = stream.length < 65536 ? new Uint8Array(1048576) : stream;
|
|
150
|
+
this._document = document;
|
|
151
|
+
this._msmain = new Uint8Array(65536);
|
|
152
|
+
this._writer = DwgStreamWriterBase.getMergedWriter(document.header.version, this._msmain, encoding);
|
|
153
|
+
this.WriteXRecords = writeXRecords;
|
|
154
|
+
this.WriteXData = writeXData;
|
|
155
|
+
this.WriteShapes = writeShapes;
|
|
156
|
+
}
|
|
157
|
+
get bytesWritten() { return this._streamPos; }
|
|
158
|
+
getWrittenData() { return this._stream.slice(0, this._streamPos); }
|
|
159
|
+
ensureStreamCapacity(needed) {
|
|
160
|
+
if (needed > this._stream.length) {
|
|
161
|
+
const newSize = Math.max(needed, this._stream.length * 2);
|
|
162
|
+
const newStream = new Uint8Array(newSize);
|
|
163
|
+
newStream.set(this._stream.subarray(0, this._streamPos));
|
|
164
|
+
this._stream = newStream;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
write() {
|
|
168
|
+
//For R18 and later the section data (right after the page header) starts with a
|
|
169
|
+
//RL value of 0x0dca (meaning unknown).
|
|
170
|
+
if (this.R2004Plus) {
|
|
171
|
+
this.ensureStreamCapacity(this._streamPos + 4);
|
|
172
|
+
const view = new DataView(this._stream.buffer, this._stream.byteOffset + this._streamPos);
|
|
173
|
+
view.setInt32(0, 0x0DCA, true);
|
|
174
|
+
this._streamPos += 4;
|
|
175
|
+
}
|
|
176
|
+
this._objects.push(this._document.rootDictionary);
|
|
177
|
+
this.writeBlockControl();
|
|
178
|
+
this.writeTable(this._document.layers);
|
|
179
|
+
this.writeTable(this._document.textStyles);
|
|
180
|
+
this.writeLTypeControlObject();
|
|
181
|
+
this.writeTable(this._document.views);
|
|
182
|
+
this.writeTable(this._document.uCSs);
|
|
183
|
+
this.writeTable(this._document.vPorts);
|
|
184
|
+
this.writeTable(this._document.appIds);
|
|
185
|
+
//For some reason the dimension must be written the last
|
|
186
|
+
this.writeTable(this._document.dimensionStyles);
|
|
187
|
+
if (this.R2004Pre && this._document.vEntityControl) {
|
|
188
|
+
this.writeTable(this._document.vEntityControl);
|
|
189
|
+
}
|
|
190
|
+
this.writeBlockEntities();
|
|
191
|
+
this.writeObjects();
|
|
192
|
+
}
|
|
193
|
+
// ==================== Main Writer Methods ====================
|
|
194
|
+
writeLTypeControlObject() {
|
|
195
|
+
this.writeCommonNonEntityData(this._document.lineTypes);
|
|
196
|
+
//Common:
|
|
197
|
+
//Numentries BL 70
|
|
198
|
+
this._writer.writeBitLong(this._document.lineTypes.length - 2);
|
|
199
|
+
for (const item of this._document.lineTypes) {
|
|
200
|
+
if (item.name.toLowerCase() === LineType.ByBlockName.toLowerCase()
|
|
201
|
+
|| item.name.toLowerCase() === LineType.ByLayerName.toLowerCase()) {
|
|
202
|
+
continue;
|
|
203
|
+
}
|
|
204
|
+
this._writer.handleReferenceTyped(DwgReferenceType.SoftOwnership, item);
|
|
205
|
+
}
|
|
206
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardOwnership, this._document.lineTypes.ByBlock);
|
|
207
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardOwnership, this._document.lineTypes.ByLayer);
|
|
208
|
+
this.registerObject(this._document.lineTypes);
|
|
209
|
+
this.writeEntries(this._document.lineTypes);
|
|
210
|
+
}
|
|
211
|
+
writeBlockControl() {
|
|
212
|
+
this.writeCommonNonEntityData(this._document.blockRecords);
|
|
213
|
+
//Common:
|
|
214
|
+
//Numentries BL 70
|
|
215
|
+
this._writer.writeBitLong(this._document.blockRecords.length - 2);
|
|
216
|
+
for (const item of this._document.blockRecords) {
|
|
217
|
+
if (item.name.toLowerCase() === BlockRecord.ModelSpaceName.toLowerCase()
|
|
218
|
+
|| item.name.toLowerCase() === BlockRecord.PaperSpaceName.toLowerCase()) {
|
|
219
|
+
continue;
|
|
220
|
+
}
|
|
221
|
+
this._writer.handleReferenceTyped(DwgReferenceType.SoftOwnership, item);
|
|
222
|
+
}
|
|
223
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardOwnership, this._document.modelSpace);
|
|
224
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardOwnership, this._document.paperSpace);
|
|
225
|
+
this.registerObject(this._document.blockRecords);
|
|
226
|
+
this.writeEntries(this._document.blockRecords);
|
|
227
|
+
}
|
|
228
|
+
writeTable(table) {
|
|
229
|
+
this.writeCommonNonEntityData(table);
|
|
230
|
+
//Common:
|
|
231
|
+
//Numentries BL 70
|
|
232
|
+
this._writer.writeBitLong(table.count);
|
|
233
|
+
if (this.R2000Plus && table instanceof DimensionStylesTable) {
|
|
234
|
+
this._writer.writeByte(0);
|
|
235
|
+
}
|
|
236
|
+
for (const item of table) {
|
|
237
|
+
this._writer.handleReferenceTyped(DwgReferenceType.SoftOwnership, item);
|
|
238
|
+
}
|
|
239
|
+
this.registerObject(table);
|
|
240
|
+
this.writeEntries(table);
|
|
241
|
+
}
|
|
242
|
+
writeEntries(table) {
|
|
243
|
+
for (const entry of table) {
|
|
244
|
+
if (entry instanceof AppId) {
|
|
245
|
+
this.writeAppId(entry);
|
|
246
|
+
}
|
|
247
|
+
else if (entry instanceof BlockRecord) {
|
|
248
|
+
this.writeBlockRecord(entry);
|
|
249
|
+
}
|
|
250
|
+
else if (entry instanceof Layer) {
|
|
251
|
+
this.writeLayer(entry);
|
|
252
|
+
}
|
|
253
|
+
else if (entry instanceof LineType) {
|
|
254
|
+
this.writeLineType(entry);
|
|
255
|
+
}
|
|
256
|
+
else if (entry instanceof TextStyle) {
|
|
257
|
+
this.writeTextStyle(entry);
|
|
258
|
+
}
|
|
259
|
+
else if (entry instanceof UCS) {
|
|
260
|
+
this.writeUCS(entry);
|
|
261
|
+
}
|
|
262
|
+
else if (entry instanceof View) {
|
|
263
|
+
this.writeView(entry);
|
|
264
|
+
}
|
|
265
|
+
else if (entry instanceof DimensionStyle) {
|
|
266
|
+
this.writeDimensionStyle(entry);
|
|
267
|
+
}
|
|
268
|
+
else if (entry instanceof VPort) {
|
|
269
|
+
this.writeVPort(entry);
|
|
270
|
+
}
|
|
271
|
+
else {
|
|
272
|
+
this.notify(`Table entry not implemented : ${entry.constructor.name}`, NotificationType.NotImplemented);
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
writeBlockEntities() {
|
|
277
|
+
for (const blkRecord of this._document.blockRecords) {
|
|
278
|
+
this.writeBlockBegin(blkRecord.blockEntity);
|
|
279
|
+
this._prev = null;
|
|
280
|
+
this._next = null;
|
|
281
|
+
const arr = this.getCompatibleEntities(blkRecord.entities);
|
|
282
|
+
for (let i = 0; i < arr.length; i++) {
|
|
283
|
+
this._prev = i > 0 ? arr[i - 1] : null;
|
|
284
|
+
const e = arr[i];
|
|
285
|
+
this._next = i < arr.length - 1 ? arr[i + 1] : null;
|
|
286
|
+
this.writeEntity(e);
|
|
287
|
+
}
|
|
288
|
+
this._prev = null;
|
|
289
|
+
this._next = null;
|
|
290
|
+
this.writeBlockEnd(blkRecord.blockEnd);
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
getCompatibleEntities(entities) {
|
|
294
|
+
return Array.from(entities).filter(e => this.isEntitySupported(e));
|
|
295
|
+
}
|
|
296
|
+
isEntitySupported(entity) {
|
|
297
|
+
if (entity instanceof UnknownEntity)
|
|
298
|
+
return false;
|
|
299
|
+
if (entity instanceof Shape)
|
|
300
|
+
return this.WriteShapes;
|
|
301
|
+
if (entity instanceof Wall
|
|
302
|
+
|| entity instanceof ProxyEntity
|
|
303
|
+
|| entity instanceof TableEntity
|
|
304
|
+
|| entity instanceof Solid3D
|
|
305
|
+
|| entity instanceof CadBody
|
|
306
|
+
|| entity instanceof Region) {
|
|
307
|
+
this.notify(`Entity type not implemented ${entity.constructor.name}`, NotificationType.NotImplemented);
|
|
308
|
+
return false;
|
|
309
|
+
}
|
|
310
|
+
return true;
|
|
311
|
+
}
|
|
312
|
+
// ==================== Table Entry Writers ====================
|
|
313
|
+
writeAppId(app) {
|
|
314
|
+
this.writeCommonNonEntityData(app);
|
|
315
|
+
this._writer.writeVariableText(app.name);
|
|
316
|
+
this.writeXrefDependantBit(app);
|
|
317
|
+
this._writer.writeByte(0);
|
|
318
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardPointer, 0);
|
|
319
|
+
this.registerObject(app);
|
|
320
|
+
}
|
|
321
|
+
writeBlockRecord(blkRecord) {
|
|
322
|
+
this.writeBlockHeader(blkRecord);
|
|
323
|
+
}
|
|
324
|
+
writeBlockHeader(record) {
|
|
325
|
+
const entities = this.getCompatibleEntities(record.entities);
|
|
326
|
+
this.writeCommonNonEntityData(record);
|
|
327
|
+
//Common:
|
|
328
|
+
//Entry name TV 2
|
|
329
|
+
if ((record.flags & BlockTypeFlags.Anonymous) !== 0) {
|
|
330
|
+
this._writer.writeVariableText(record.name.substring(0, 2));
|
|
331
|
+
}
|
|
332
|
+
else if (record.layout != null) {
|
|
333
|
+
const processedBlockName = record.name.replace(/[0-9]/g, '');
|
|
334
|
+
this._writer.writeVariableText(processedBlockName);
|
|
335
|
+
}
|
|
336
|
+
else {
|
|
337
|
+
this._writer.writeVariableText(record.name);
|
|
338
|
+
}
|
|
339
|
+
this.writeXrefDependantBit(record);
|
|
340
|
+
this._writer.writeBit((record.flags & BlockTypeFlags.Anonymous) !== 0);
|
|
341
|
+
this._writer.writeBit(record.hasAttributes);
|
|
342
|
+
this._writer.writeBit((record.flags & BlockTypeFlags.XRef) !== 0);
|
|
343
|
+
this._writer.writeBit((record.flags & BlockTypeFlags.XRefOverlay) !== 0);
|
|
344
|
+
//R2000+:
|
|
345
|
+
if (this.R2000Plus) {
|
|
346
|
+
this._writer.writeBit(record.isUnloaded);
|
|
347
|
+
}
|
|
348
|
+
//R2004+:
|
|
349
|
+
if (this.R2004Plus
|
|
350
|
+
&& (record.flags & BlockTypeFlags.XRef) === 0
|
|
351
|
+
&& (record.flags & BlockTypeFlags.XRefOverlay) === 0) {
|
|
352
|
+
this._writer.writeBitLong(entities.length);
|
|
353
|
+
}
|
|
354
|
+
//Common:
|
|
355
|
+
this._writer.write3BitDouble(record.blockEntity.basePoint);
|
|
356
|
+
this._writer.writeVariableText(record.blockEntity.xRefPath);
|
|
357
|
+
//R2000+:
|
|
358
|
+
if (this.R2000Plus) {
|
|
359
|
+
const inserts = Array.from(this._document.entities)
|
|
360
|
+
.filter((i) => i instanceof Insert && i.block?.name === record.name);
|
|
361
|
+
for (const _item of inserts) {
|
|
362
|
+
this._writer.writeByte(1);
|
|
363
|
+
}
|
|
364
|
+
this._writer.writeByte(0);
|
|
365
|
+
this._writer.writeVariableText(record.blockEntity.comments);
|
|
366
|
+
this._writer.writeBitLong(0);
|
|
367
|
+
}
|
|
368
|
+
//R2007+:
|
|
369
|
+
if (this.R2007Plus) {
|
|
370
|
+
this._writer.writeBitShort(record.units);
|
|
371
|
+
this._writer.writeBit(record.isExplodable);
|
|
372
|
+
this._writer.writeByte(record.canScale ? 1 : 0);
|
|
373
|
+
}
|
|
374
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardPointer, 0);
|
|
375
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardOwnership, record.blockEntity);
|
|
376
|
+
//R13-R2000:
|
|
377
|
+
if (this._version >= ACadVersion.AC1012 && this._version <= ACadVersion.AC1015
|
|
378
|
+
&& (record.flags & BlockTypeFlags.XRef) === 0
|
|
379
|
+
&& (record.flags & BlockTypeFlags.XRefOverlay) === 0) {
|
|
380
|
+
if (entities.length > 0) {
|
|
381
|
+
this._writer.handleReferenceTyped(DwgReferenceType.SoftPointer, entities[0]);
|
|
382
|
+
this._writer.handleReferenceTyped(DwgReferenceType.SoftPointer, entities[entities.length - 1]);
|
|
383
|
+
}
|
|
384
|
+
else {
|
|
385
|
+
this._writer.handleReferenceTyped(DwgReferenceType.SoftPointer, 0);
|
|
386
|
+
this._writer.handleReferenceTyped(DwgReferenceType.SoftPointer, 0);
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
//R2004+:
|
|
390
|
+
if (this.R2004Plus) {
|
|
391
|
+
for (const item of entities) {
|
|
392
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardOwnership, item);
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
//Common:
|
|
396
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardOwnership, record.blockEnd);
|
|
397
|
+
//R2000+:
|
|
398
|
+
if (this.R2000Plus) {
|
|
399
|
+
const inserts = Array.from(this._document.entities)
|
|
400
|
+
.filter((i) => i instanceof Insert && i.block?.name === record.name);
|
|
401
|
+
for (const item of inserts) {
|
|
402
|
+
this._writer.handleReferenceTyped(DwgReferenceType.SoftPointer, item);
|
|
403
|
+
}
|
|
404
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardPointer, record.layout);
|
|
405
|
+
}
|
|
406
|
+
this.registerObject(record);
|
|
407
|
+
}
|
|
408
|
+
writeBlockBegin(block) {
|
|
409
|
+
this.writeCommonEntityData(block);
|
|
410
|
+
this._writer.writeVariableText(block.name);
|
|
411
|
+
this.registerObject(block);
|
|
412
|
+
}
|
|
413
|
+
writeBlockEnd(blkEnd) {
|
|
414
|
+
this.writeCommonEntityData(blkEnd);
|
|
415
|
+
this.registerObject(blkEnd);
|
|
416
|
+
}
|
|
417
|
+
writeLayer(layer) {
|
|
418
|
+
this.writeCommonNonEntityData(layer);
|
|
419
|
+
this._writer.writeVariableText(layer.name);
|
|
420
|
+
this.writeXrefDependantBit(layer);
|
|
421
|
+
if (this.R13_14Only) {
|
|
422
|
+
this._writer.writeBit((layer.flags & LayerFlags.Frozen) !== 0);
|
|
423
|
+
this._writer.writeBit(layer.isOn);
|
|
424
|
+
this._writer.writeBit((layer.flags & LayerFlags.FrozenNewViewports) !== 0);
|
|
425
|
+
this._writer.writeBit((layer.flags & LayerFlags.Locked) !== 0);
|
|
426
|
+
}
|
|
427
|
+
if (this.R2000Plus) {
|
|
428
|
+
let values = CadUtils.toIndex(layer.lineWeight) << 5;
|
|
429
|
+
if ((layer.flags & LayerFlags.Frozen) !== 0)
|
|
430
|
+
values |= 0b1;
|
|
431
|
+
if (!layer.isOn)
|
|
432
|
+
values |= 0b10;
|
|
433
|
+
if ((layer.flags & LayerFlags.Frozen) !== 0)
|
|
434
|
+
values |= 0b100;
|
|
435
|
+
if ((layer.flags & LayerFlags.Locked) !== 0)
|
|
436
|
+
values |= 0b1000;
|
|
437
|
+
if (layer.plotFlag)
|
|
438
|
+
values |= 0b10000;
|
|
439
|
+
this._writer.writeBitShort(values);
|
|
440
|
+
}
|
|
441
|
+
this._writer.writeCmColor(layer.color);
|
|
442
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardPointer, null);
|
|
443
|
+
if (this.R2000Plus) {
|
|
444
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardPointer, 0);
|
|
445
|
+
}
|
|
446
|
+
if (this.R2007Plus) {
|
|
447
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardPointer, 0);
|
|
448
|
+
}
|
|
449
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardPointer, layer.lineType.handle);
|
|
450
|
+
if (this.R2013Plus) {
|
|
451
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardPointer, 0);
|
|
452
|
+
}
|
|
453
|
+
this.registerObject(layer);
|
|
454
|
+
}
|
|
455
|
+
writeLineType(ltype) {
|
|
456
|
+
this.writeCommonNonEntityData(ltype);
|
|
457
|
+
this._writer.writeVariableText(ltype.name);
|
|
458
|
+
this.writeXrefDependantBit(ltype);
|
|
459
|
+
this._writer.writeVariableText(ltype.description);
|
|
460
|
+
this._writer.writeBitDouble(ltype.patternLength);
|
|
461
|
+
this._writer.writeByte((ltype.alignment?.charCodeAt(0) ?? 0) & 0xFF);
|
|
462
|
+
this._writer.writeByte(ltype.segments.length);
|
|
463
|
+
let hasTextSegments = false;
|
|
464
|
+
for (const segment of ltype.segments) {
|
|
465
|
+
if ((segment.shapeFlags & LineTypeShapeFlags.Text) !== 0) {
|
|
466
|
+
hasTextSegments = true;
|
|
467
|
+
break;
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
let textArea = null;
|
|
471
|
+
let textCursor = 0;
|
|
472
|
+
if (this._version <= ACadVersion.AC1018) {
|
|
473
|
+
textArea = new Uint8Array(256);
|
|
474
|
+
if (this._version <= ACadVersion.AC1014)
|
|
475
|
+
textCursor = 1;
|
|
476
|
+
}
|
|
477
|
+
else if (this.R2007Plus && hasTextSegments) {
|
|
478
|
+
textArea = new Uint8Array(512);
|
|
479
|
+
}
|
|
480
|
+
for (const segment of ltype.segments) {
|
|
481
|
+
if ((segment.shapeFlags & LineTypeShapeFlags.Text) !== 0) {
|
|
482
|
+
if (textArea == null || !segment.text) {
|
|
483
|
+
segment.shapeNumber = 0;
|
|
484
|
+
}
|
|
485
|
+
else {
|
|
486
|
+
// Write text as UTF-16LE for R2007+, otherwise single-byte
|
|
487
|
+
const textBytes = this.R2007Plus
|
|
488
|
+
? this.encodeUtf16LE(segment.text)
|
|
489
|
+
: this.encodeText(segment.text);
|
|
490
|
+
const termLen = this.R2007Plus ? 2 : 1;
|
|
491
|
+
const required = textBytes.length + termLen;
|
|
492
|
+
if (textCursor + required <= textArea.length) {
|
|
493
|
+
segment.shapeNumber = textCursor;
|
|
494
|
+
textArea.set(textBytes, textCursor);
|
|
495
|
+
textCursor += textBytes.length;
|
|
496
|
+
// Write null terminator
|
|
497
|
+
for (let t = 0; t < termLen; t++) {
|
|
498
|
+
textArea[textCursor++] = 0;
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
else {
|
|
502
|
+
segment.shapeNumber = 0;
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
this._writer.writeBitDouble(segment.length);
|
|
507
|
+
this._writer.writeBitShort(segment.shapeNumber);
|
|
508
|
+
this._writer.writeRawDouble(segment.offset.x);
|
|
509
|
+
this._writer.writeRawDouble(segment.offset.y);
|
|
510
|
+
this._writer.writeBitDouble(segment.scale);
|
|
511
|
+
this._writer.writeBitDouble(segment.rotation);
|
|
512
|
+
this._writer.writeBitShort(segment.shapeFlags);
|
|
513
|
+
}
|
|
514
|
+
//R2004 and earlier:
|
|
515
|
+
if (this._version <= ACadVersion.AC1018) {
|
|
516
|
+
const buffer = textArea ?? new Uint8Array(256);
|
|
517
|
+
for (let i = 0; i < buffer.length; i++) {
|
|
518
|
+
this._writer.writeByte(buffer[i]);
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
//R2007+:
|
|
522
|
+
if (this.R2007Plus && hasTextSegments) {
|
|
523
|
+
const buffer = textArea ?? new Uint8Array(512);
|
|
524
|
+
for (let i = 0; i < buffer.length; i++) {
|
|
525
|
+
this._writer.writeByte(buffer[i]);
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardPointer, 0);
|
|
529
|
+
for (const segment of ltype.segments) {
|
|
530
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardPointer, segment.style);
|
|
531
|
+
}
|
|
532
|
+
this.registerObject(ltype);
|
|
533
|
+
}
|
|
534
|
+
writeTextStyle(style) {
|
|
535
|
+
this.writeCommonNonEntityData(style);
|
|
536
|
+
if (style.isShapeFile) {
|
|
537
|
+
this._writer.writeVariableText('');
|
|
538
|
+
}
|
|
539
|
+
else {
|
|
540
|
+
this._writer.writeVariableText(style.name);
|
|
541
|
+
}
|
|
542
|
+
this.writeXrefDependantBit(style);
|
|
543
|
+
this._writer.writeBit((style.flags & StyleFlags.IsShape) !== 0);
|
|
544
|
+
this._writer.writeBit((style.flags & StyleFlags.VerticalText) !== 0);
|
|
545
|
+
this._writer.writeBitDouble(style.height);
|
|
546
|
+
this._writer.writeBitDouble(style.width);
|
|
547
|
+
this._writer.writeBitDouble(style.obliqueAngle);
|
|
548
|
+
this._writer.writeByte(style.mirrorFlag);
|
|
549
|
+
this._writer.writeBitDouble(style.lastHeight);
|
|
550
|
+
this._writer.writeVariableText(style.filename);
|
|
551
|
+
this._writer.writeVariableText(style.bigFontFilename);
|
|
552
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardPointer, this._document.textStyles);
|
|
553
|
+
this.registerObject(style);
|
|
554
|
+
}
|
|
555
|
+
writeUCS(ucs) {
|
|
556
|
+
this.writeCommonNonEntityData(ucs);
|
|
557
|
+
this._writer.writeVariableText(ucs.name);
|
|
558
|
+
this.writeXrefDependantBit(ucs);
|
|
559
|
+
this._writer.write3BitDouble(ucs.origin);
|
|
560
|
+
this._writer.write3BitDouble(ucs.xAxis);
|
|
561
|
+
this._writer.write3BitDouble(ucs.yAxis);
|
|
562
|
+
if (this.R2000Plus) {
|
|
563
|
+
this._writer.writeBitDouble(ucs.elevation);
|
|
564
|
+
this._writer.writeBitShort(ucs.orthographicViewType);
|
|
565
|
+
this._writer.writeBitShort(ucs.orthographicType);
|
|
566
|
+
}
|
|
567
|
+
this._writer.handleReferenceTyped(DwgReferenceType.SoftPointer, this._document.uCSs);
|
|
568
|
+
if (this.R2000Plus) {
|
|
569
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardPointer, 0);
|
|
570
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardPointer, 0);
|
|
571
|
+
}
|
|
572
|
+
this.registerObject(ucs);
|
|
573
|
+
}
|
|
574
|
+
writeView(view) {
|
|
575
|
+
this.writeCommonNonEntityData(view);
|
|
576
|
+
this._writer.writeVariableText(view.name);
|
|
577
|
+
this.writeXrefDependantBit(view);
|
|
578
|
+
this._writer.writeBitDouble(view.height);
|
|
579
|
+
this._writer.writeBitDouble(view.width);
|
|
580
|
+
this._writer.write2RawDouble(view.center);
|
|
581
|
+
this._writer.write3BitDouble(view.target);
|
|
582
|
+
this._writer.write3BitDouble(view.direction);
|
|
583
|
+
this._writer.writeBitDouble(view.angle);
|
|
584
|
+
this._writer.writeBitDouble(view.lensLength);
|
|
585
|
+
this._writer.writeBitDouble(view.frontClipping);
|
|
586
|
+
this._writer.writeBitDouble(view.backClipping);
|
|
587
|
+
this._writer.writeBit((view.viewMode & ViewModeType.PerspectiveView) !== 0);
|
|
588
|
+
this._writer.writeBit((view.viewMode & ViewModeType.FrontClipping) !== 0);
|
|
589
|
+
this._writer.writeBit((view.viewMode & ViewModeType.BackClipping) !== 0);
|
|
590
|
+
this._writer.writeBit((view.viewMode & ViewModeType.FrontClippingZ) !== 0);
|
|
591
|
+
if (this.R2000Plus) {
|
|
592
|
+
this._writer.writeByte(view.renderMode);
|
|
593
|
+
}
|
|
594
|
+
if (this.R2007Plus) {
|
|
595
|
+
this._writer.writeBit(true);
|
|
596
|
+
this._writer.writeByte(1);
|
|
597
|
+
this._writer.writeBitDouble(0.0);
|
|
598
|
+
this._writer.writeBitDouble(0.0);
|
|
599
|
+
this._writer.writeCmColor(new Color(250));
|
|
600
|
+
}
|
|
601
|
+
this._writer.writeBit((view.flags & 0b1) !== 0);
|
|
602
|
+
if (this.R2000Plus) {
|
|
603
|
+
this._writer.writeBit(view.isUcsAssociated);
|
|
604
|
+
if (view.isUcsAssociated) {
|
|
605
|
+
this._writer.write3BitDouble(view.ucsOrigin);
|
|
606
|
+
this._writer.write3BitDouble(view.ucsXAxis);
|
|
607
|
+
this._writer.write3BitDouble(view.ucsYAxis);
|
|
608
|
+
this._writer.writeBitDouble(view.ucsElevation);
|
|
609
|
+
this._writer.writeBitShort(view.ucsOrthographicType);
|
|
610
|
+
}
|
|
611
|
+
}
|
|
612
|
+
this._writer.handleReferenceTyped(DwgReferenceType.SoftPointer, this._document.views);
|
|
613
|
+
if (this.R2007Plus) {
|
|
614
|
+
this._writer.writeBit(view.isPlottable);
|
|
615
|
+
this._writer.handleReferenceTyped(DwgReferenceType.SoftPointer, 0);
|
|
616
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardPointer, 0);
|
|
617
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardOwnership, 0);
|
|
618
|
+
}
|
|
619
|
+
if (this.R2000Plus && view.isUcsAssociated) {
|
|
620
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardPointer, 0);
|
|
621
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardPointer, 0);
|
|
622
|
+
}
|
|
623
|
+
if (this.R2007Plus) {
|
|
624
|
+
this._writer.handleReferenceTyped(DwgReferenceType.SoftPointer, 0);
|
|
625
|
+
}
|
|
626
|
+
this.registerObject(view);
|
|
627
|
+
}
|
|
628
|
+
writeDimensionStyle(dimStyle) {
|
|
629
|
+
this.writeCommonNonEntityData(dimStyle);
|
|
630
|
+
this._writer.writeVariableText(dimStyle.name);
|
|
631
|
+
this.writeXrefDependantBit(dimStyle);
|
|
632
|
+
if (this.R13_14Only) {
|
|
633
|
+
this._writer.writeBit(dimStyle.generateTolerances);
|
|
634
|
+
this._writer.writeBit(dimStyle.limitsGeneration);
|
|
635
|
+
this._writer.writeBit(dimStyle.textOutsideHorizontal);
|
|
636
|
+
this._writer.writeBit(dimStyle.suppressFirstExtensionLine);
|
|
637
|
+
this._writer.writeBit(dimStyle.suppressSecondExtensionLine);
|
|
638
|
+
this._writer.writeBit(dimStyle.textInsideHorizontal);
|
|
639
|
+
this._writer.writeBit(dimStyle.alternateUnitDimensioning);
|
|
640
|
+
this._writer.writeBit(dimStyle.textOutsideExtensions);
|
|
641
|
+
this._writer.writeBit(dimStyle.separateArrowBlocks);
|
|
642
|
+
this._writer.writeBit(dimStyle.textInsideExtensions);
|
|
643
|
+
this._writer.writeBit(dimStyle.suppressOutsideExtensions);
|
|
644
|
+
this._writer.writeByte(dimStyle.alternateUnitDecimalPlaces);
|
|
645
|
+
this._writer.writeByte(dimStyle.zeroHandling);
|
|
646
|
+
this._writer.writeBit(dimStyle.suppressFirstDimensionLine);
|
|
647
|
+
this._writer.writeBit(dimStyle.suppressSecondDimensionLine);
|
|
648
|
+
this._writer.writeByte(dimStyle.toleranceAlignment);
|
|
649
|
+
this._writer.writeByte(dimStyle.textHorizontalAlignment);
|
|
650
|
+
this._writer.writeByte(dimStyle.dimensionFit);
|
|
651
|
+
this._writer.writeBit(dimStyle.cursorUpdate);
|
|
652
|
+
this._writer.writeByte(dimStyle.toleranceZeroHandling);
|
|
653
|
+
this._writer.writeByte(dimStyle.alternateUnitZeroHandling);
|
|
654
|
+
this._writer.writeByte(dimStyle.alternateUnitToleranceZeroHandling);
|
|
655
|
+
this._writer.writeByte(dimStyle.textVerticalAlignment);
|
|
656
|
+
this._writer.writeBitShort(dimStyle.dimensionUnit);
|
|
657
|
+
this._writer.writeBitShort(dimStyle.angularUnit);
|
|
658
|
+
this._writer.writeBitShort(dimStyle.decimalPlaces);
|
|
659
|
+
this._writer.writeBitShort(dimStyle.toleranceDecimalPlaces);
|
|
660
|
+
this._writer.writeBitShort(dimStyle.alternateUnitFormat);
|
|
661
|
+
this._writer.writeBitShort(dimStyle.alternateUnitToleranceDecimalPlaces);
|
|
662
|
+
this._writer.writeBitDouble(dimStyle.scaleFactor);
|
|
663
|
+
this._writer.writeBitDouble(dimStyle.arrowSize);
|
|
664
|
+
this._writer.writeBitDouble(dimStyle.extensionLineOffset);
|
|
665
|
+
this._writer.writeBitDouble(dimStyle.dimensionLineIncrement);
|
|
666
|
+
this._writer.writeBitDouble(dimStyle.extensionLineExtension);
|
|
667
|
+
this._writer.writeBitDouble(dimStyle.rounding);
|
|
668
|
+
this._writer.writeBitDouble(dimStyle.dimensionLineExtension);
|
|
669
|
+
this._writer.writeBitDouble(dimStyle.plusTolerance);
|
|
670
|
+
this._writer.writeBitDouble(dimStyle.minusTolerance);
|
|
671
|
+
this._writer.writeBitDouble(dimStyle.textHeight);
|
|
672
|
+
this._writer.writeBitDouble(dimStyle.centerMarkSize);
|
|
673
|
+
this._writer.writeBitDouble(dimStyle.tickSize);
|
|
674
|
+
this._writer.writeBitDouble(dimStyle.alternateUnitScaleFactor);
|
|
675
|
+
this._writer.writeBitDouble(dimStyle.linearScaleFactor);
|
|
676
|
+
this._writer.writeBitDouble(dimStyle.textVerticalPosition);
|
|
677
|
+
this._writer.writeBitDouble(dimStyle.toleranceScaleFactor);
|
|
678
|
+
this._writer.writeBitDouble(dimStyle.dimensionLineGap);
|
|
679
|
+
this._writer.writeVariableText(dimStyle.postFix);
|
|
680
|
+
this._writer.writeVariableText(dimStyle.alternateDimensioningSuffix);
|
|
681
|
+
this._writer.writeVariableText(dimStyle.arrowBlock?.name ?? '');
|
|
682
|
+
this._writer.writeVariableText(dimStyle.dimArrow1?.name ?? '');
|
|
683
|
+
this._writer.writeVariableText(dimStyle.dimArrow2?.name ?? '');
|
|
684
|
+
this._writer.writeCmColor(dimStyle.dimensionLineColor);
|
|
685
|
+
this._writer.writeCmColor(dimStyle.extensionLineColor);
|
|
686
|
+
this._writer.writeCmColor(dimStyle.textColor);
|
|
687
|
+
}
|
|
688
|
+
if (this.R2000Plus) {
|
|
689
|
+
this._writer.writeVariableText(dimStyle.postFix);
|
|
690
|
+
this._writer.writeVariableText(dimStyle.alternateDimensioningSuffix);
|
|
691
|
+
this._writer.writeBitDouble(dimStyle.scaleFactor);
|
|
692
|
+
this._writer.writeBitDouble(dimStyle.arrowSize);
|
|
693
|
+
this._writer.writeBitDouble(dimStyle.extensionLineOffset);
|
|
694
|
+
this._writer.writeBitDouble(dimStyle.dimensionLineIncrement);
|
|
695
|
+
this._writer.writeBitDouble(dimStyle.extensionLineExtension);
|
|
696
|
+
this._writer.writeBitDouble(dimStyle.rounding);
|
|
697
|
+
this._writer.writeBitDouble(dimStyle.dimensionLineExtension);
|
|
698
|
+
this._writer.writeBitDouble(dimStyle.plusTolerance);
|
|
699
|
+
this._writer.writeBitDouble(dimStyle.minusTolerance);
|
|
700
|
+
}
|
|
701
|
+
if (this.R2007Plus) {
|
|
702
|
+
this._writer.writeBitDouble(dimStyle.fixedExtensionLineLength);
|
|
703
|
+
this._writer.writeBitDouble(dimStyle.joggedRadiusDimensionTransverseSegmentAngle);
|
|
704
|
+
this._writer.writeBitShort(dimStyle.textBackgroundFillMode);
|
|
705
|
+
this._writer.writeCmColor(dimStyle.textBackgroundColor);
|
|
706
|
+
}
|
|
707
|
+
if (this.R2000Plus) {
|
|
708
|
+
this._writer.writeBit(dimStyle.generateTolerances);
|
|
709
|
+
this._writer.writeBit(dimStyle.limitsGeneration);
|
|
710
|
+
this._writer.writeBit(dimStyle.textInsideHorizontal);
|
|
711
|
+
this._writer.writeBit(dimStyle.textOutsideHorizontal);
|
|
712
|
+
this._writer.writeBit(dimStyle.suppressFirstExtensionLine);
|
|
713
|
+
this._writer.writeBit(dimStyle.suppressSecondExtensionLine);
|
|
714
|
+
this._writer.writeBitShort(dimStyle.textVerticalAlignment);
|
|
715
|
+
this._writer.writeBitShort(dimStyle.zeroHandling);
|
|
716
|
+
this._writer.writeBitShort(dimStyle.angularZeroHandling);
|
|
717
|
+
}
|
|
718
|
+
if (this.R2007Plus) {
|
|
719
|
+
this._writer.writeBitShort(dimStyle.arcLengthSymbolPosition);
|
|
720
|
+
}
|
|
721
|
+
if (this.R2000Plus) {
|
|
722
|
+
this._writer.writeBitDouble(dimStyle.textHeight);
|
|
723
|
+
this._writer.writeBitDouble(dimStyle.centerMarkSize);
|
|
724
|
+
this._writer.writeBitDouble(dimStyle.tickSize);
|
|
725
|
+
this._writer.writeBitDouble(dimStyle.alternateUnitScaleFactor);
|
|
726
|
+
this._writer.writeBitDouble(dimStyle.linearScaleFactor);
|
|
727
|
+
this._writer.writeBitDouble(dimStyle.textVerticalPosition);
|
|
728
|
+
this._writer.writeBitDouble(dimStyle.toleranceScaleFactor);
|
|
729
|
+
this._writer.writeBitDouble(dimStyle.dimensionLineGap);
|
|
730
|
+
this._writer.writeBitDouble(dimStyle.alternateUnitRounding);
|
|
731
|
+
this._writer.writeBit(dimStyle.alternateUnitDimensioning);
|
|
732
|
+
this._writer.writeBitShort(dimStyle.alternateUnitDecimalPlaces);
|
|
733
|
+
this._writer.writeBit(dimStyle.textOutsideExtensions);
|
|
734
|
+
this._writer.writeBit(dimStyle.separateArrowBlocks);
|
|
735
|
+
this._writer.writeBit(dimStyle.textInsideExtensions);
|
|
736
|
+
this._writer.writeBit(dimStyle.suppressOutsideExtensions);
|
|
737
|
+
this._writer.writeCmColor(dimStyle.dimensionLineColor);
|
|
738
|
+
this._writer.writeCmColor(dimStyle.extensionLineColor);
|
|
739
|
+
this._writer.writeCmColor(dimStyle.textColor);
|
|
740
|
+
this._writer.writeBitShort(dimStyle.angularDecimalPlaces);
|
|
741
|
+
this._writer.writeBitShort(dimStyle.decimalPlaces);
|
|
742
|
+
this._writer.writeBitShort(dimStyle.toleranceDecimalPlaces);
|
|
743
|
+
this._writer.writeBitShort(dimStyle.alternateUnitFormat);
|
|
744
|
+
this._writer.writeBitShort(dimStyle.alternateUnitToleranceDecimalPlaces);
|
|
745
|
+
this._writer.writeBitShort(dimStyle.angularUnit);
|
|
746
|
+
this._writer.writeBitShort(dimStyle.fractionFormat);
|
|
747
|
+
this._writer.writeBitShort(dimStyle.linearUnitFormat);
|
|
748
|
+
this._writer.writeBitShort(dimStyle.decimalSeparator.charCodeAt(0));
|
|
749
|
+
this._writer.writeBitShort(dimStyle.textMovement);
|
|
750
|
+
this._writer.writeBitShort(dimStyle.textHorizontalAlignment);
|
|
751
|
+
this._writer.writeBit(dimStyle.suppressFirstDimensionLine);
|
|
752
|
+
this._writer.writeBit(dimStyle.suppressSecondDimensionLine);
|
|
753
|
+
this._writer.writeBitShort(dimStyle.toleranceAlignment);
|
|
754
|
+
this._writer.writeBitShort(dimStyle.toleranceZeroHandling);
|
|
755
|
+
this._writer.writeBitShort(dimStyle.alternateUnitZeroHandling);
|
|
756
|
+
this._writer.writeBitShort(dimStyle.alternateUnitToleranceZeroHandling);
|
|
757
|
+
this._writer.writeBit(dimStyle.cursorUpdate);
|
|
758
|
+
this._writer.writeBitShort(3);
|
|
759
|
+
}
|
|
760
|
+
if (this.R2007Plus) {
|
|
761
|
+
this._writer.writeBit(dimStyle.isExtensionLineLengthFixed);
|
|
762
|
+
}
|
|
763
|
+
if (this.R2010Plus) {
|
|
764
|
+
this._writer.writeBit(dimStyle.textDirection === TextDirection.RightToLeft);
|
|
765
|
+
this._writer.writeBitDouble(dimStyle.altMzf);
|
|
766
|
+
this._writer.writeVariableText(dimStyle.altMzs);
|
|
767
|
+
this._writer.writeBitDouble(dimStyle.mzf);
|
|
768
|
+
this._writer.writeVariableText(dimStyle.mzs);
|
|
769
|
+
}
|
|
770
|
+
if (this.R2000Plus) {
|
|
771
|
+
this._writer.writeBitShort(dimStyle.dimensionLineWeight);
|
|
772
|
+
this._writer.writeBitShort(dimStyle.extensionLineWeight);
|
|
773
|
+
}
|
|
774
|
+
this._writer.writeBit(false);
|
|
775
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardPointer, 0);
|
|
776
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardPointer, dimStyle.style);
|
|
777
|
+
if (this.R2000Plus) {
|
|
778
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardPointer, dimStyle.leaderArrow);
|
|
779
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardPointer, dimStyle.arrowBlock);
|
|
780
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardPointer, dimStyle.dimArrow1);
|
|
781
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardPointer, dimStyle.dimArrow2);
|
|
782
|
+
}
|
|
783
|
+
if (this.R2007Plus) {
|
|
784
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardPointer, dimStyle.lineType);
|
|
785
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardPointer, dimStyle.lineTypeExt1);
|
|
786
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardPointer, dimStyle.lineTypeExt2);
|
|
787
|
+
}
|
|
788
|
+
this.registerObject(dimStyle);
|
|
789
|
+
}
|
|
790
|
+
writeVPort(vport) {
|
|
791
|
+
this.writeCommonNonEntityData(vport);
|
|
792
|
+
this._writer.writeVariableText(vport.name);
|
|
793
|
+
this.writeXrefDependantBit(vport);
|
|
794
|
+
this._writer.writeBitDouble(vport.viewHeight);
|
|
795
|
+
this._writer.writeBitDouble(vport.aspectRatio * vport.viewHeight);
|
|
796
|
+
this._writer.write2RawDouble(vport.center);
|
|
797
|
+
this._writer.write3BitDouble(vport.target);
|
|
798
|
+
this._writer.write3BitDouble(vport.direction);
|
|
799
|
+
this._writer.writeBitDouble(vport.twistAngle);
|
|
800
|
+
this._writer.writeBitDouble(vport.lensLength);
|
|
801
|
+
this._writer.writeBitDouble(vport.frontClippingPlane);
|
|
802
|
+
this._writer.writeBitDouble(vport.backClippingPlane);
|
|
803
|
+
this._writer.writeBit((vport.viewMode & ViewModeType.PerspectiveView) !== 0);
|
|
804
|
+
this._writer.writeBit((vport.viewMode & ViewModeType.FrontClipping) !== 0);
|
|
805
|
+
this._writer.writeBit((vport.viewMode & ViewModeType.BackClipping) !== 0);
|
|
806
|
+
this._writer.writeBit((vport.viewMode & ViewModeType.FrontClippingZ) !== 0);
|
|
807
|
+
if (this.R2000Plus) {
|
|
808
|
+
this._writer.writeByte(vport.renderMode);
|
|
809
|
+
}
|
|
810
|
+
if (this.R2007Plus) {
|
|
811
|
+
this._writer.writeBit(vport.useDefaultLighting);
|
|
812
|
+
this._writer.writeByte(vport.defaultLighting);
|
|
813
|
+
this._writer.writeBitDouble(vport.brightness);
|
|
814
|
+
this._writer.writeBitDouble(vport.contrast);
|
|
815
|
+
this._writer.writeCmColor(vport.ambientColor);
|
|
816
|
+
}
|
|
817
|
+
this._writer.write2RawDouble(vport.bottomLeft);
|
|
818
|
+
this._writer.write2RawDouble(vport.topRight);
|
|
819
|
+
this._writer.writeBit((vport.viewMode & ViewModeType.Follow) !== 0);
|
|
820
|
+
this._writer.writeBitShort(vport.circleZoomPercent);
|
|
821
|
+
this._writer.writeBit(true); //Fast zoom
|
|
822
|
+
this._writer.writeBit((vport.ucsIconDisplay & UscIconType.OnLower) !== 0);
|
|
823
|
+
this._writer.writeBit((vport.ucsIconDisplay & UscIconType.OnOrigin) !== 0);
|
|
824
|
+
this._writer.writeBit(vport.showGrid);
|
|
825
|
+
this._writer.write2RawDouble(vport.gridSpacing);
|
|
826
|
+
this._writer.writeBit(vport.snapOn);
|
|
827
|
+
this._writer.writeBit(vport.isometricSnap);
|
|
828
|
+
this._writer.writeBitShort(vport.snapIsoPair);
|
|
829
|
+
this._writer.writeBitDouble(vport.snapRotation);
|
|
830
|
+
this._writer.write2RawDouble(vport.snapBasePoint);
|
|
831
|
+
this._writer.write2RawDouble(vport.snapSpacing);
|
|
832
|
+
if (this.R2000Plus) {
|
|
833
|
+
this._writer.writeBit(false);
|
|
834
|
+
this._writer.writeBit(true);
|
|
835
|
+
this._writer.write3BitDouble(vport.origin);
|
|
836
|
+
this._writer.write3BitDouble(vport.xAxis);
|
|
837
|
+
this._writer.write3BitDouble(vport.yAxis);
|
|
838
|
+
this._writer.writeBitDouble(vport.elevation);
|
|
839
|
+
this._writer.writeBitShort(vport.orthographicType);
|
|
840
|
+
}
|
|
841
|
+
if (this.R2007Plus) {
|
|
842
|
+
this._writer.writeBitShort(vport.gridFlags);
|
|
843
|
+
this._writer.writeBitShort(vport.minorGridLinesPerMajorGridLine);
|
|
844
|
+
}
|
|
845
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardPointer, 0);
|
|
846
|
+
if (this.R2007Plus) {
|
|
847
|
+
this._writer.handleReferenceTyped(DwgReferenceType.SoftPointer, 0);
|
|
848
|
+
this._writer.handleReferenceTyped(DwgReferenceType.SoftPointer, 0);
|
|
849
|
+
this._writer.handleReferenceTyped(DwgReferenceType.SoftPointer, 0);
|
|
850
|
+
}
|
|
851
|
+
if (this.R2000Plus) {
|
|
852
|
+
if (vport.orthographicType === OrthographicType.None) {
|
|
853
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardPointer, vport.namedUcs);
|
|
854
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardPointer, 0);
|
|
855
|
+
}
|
|
856
|
+
else {
|
|
857
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardPointer, 0);
|
|
858
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardPointer, vport.baseUcs);
|
|
859
|
+
}
|
|
860
|
+
}
|
|
861
|
+
this.registerObject(vport);
|
|
862
|
+
}
|
|
863
|
+
// ==================== Common Methods ====================
|
|
864
|
+
registerObject(cadObject) {
|
|
865
|
+
this._writer.writeSpearShift();
|
|
866
|
+
// Update _msmainPos from writer position (C# used MemoryStream.Position)
|
|
867
|
+
this._msmainPos = Math.ceil(this._writer.main.positionInBits / 8);
|
|
868
|
+
// Ensure _stream has enough capacity for this object's data
|
|
869
|
+
this.ensureStreamCapacity(this._streamPos + this._msmainPos + 64);
|
|
870
|
+
const position = this._streamPos;
|
|
871
|
+
const crc = new CRC8StreamHandler(this._stream.subarray(this._streamPos), 0xC0C1);
|
|
872
|
+
const size = this._msmainPos;
|
|
873
|
+
const sizeb = (this._msmainPos << 3) - this._writer.savedPositionInBits;
|
|
874
|
+
this.writeSize(crc, size);
|
|
875
|
+
if (this.R2010Plus) {
|
|
876
|
+
this.writeSizeInBits(crc, sizeb);
|
|
877
|
+
}
|
|
878
|
+
crc.Write(new Uint8Array(this._writer.main.stream).subarray(0, this._msmainPos), 0, this._msmainPos);
|
|
879
|
+
const seedBytes = new Uint8Array(2);
|
|
880
|
+
const seedView = new DataView(seedBytes.buffer);
|
|
881
|
+
seedView.setUint16(0, crc.Seed, true);
|
|
882
|
+
this._stream.set(seedBytes, this._streamPos + crc.Position);
|
|
883
|
+
this._streamPos += crc.Position + 2;
|
|
884
|
+
this.Map.set(cadObject.handle, position);
|
|
885
|
+
}
|
|
886
|
+
writeSize(stream, size) {
|
|
887
|
+
if (size >= 0b1000000000000000) {
|
|
888
|
+
const buf = new Uint8Array(4);
|
|
889
|
+
buf[0] = size & 0xFF;
|
|
890
|
+
buf[1] = ((size >> 8) & 0x7F) | 0x80;
|
|
891
|
+
buf[2] = (size >> 15) & 0xFF;
|
|
892
|
+
buf[3] = (size >> 23) & 0xFF;
|
|
893
|
+
stream.Write(buf, 0, 4);
|
|
894
|
+
}
|
|
895
|
+
else {
|
|
896
|
+
const buf = new Uint8Array(2);
|
|
897
|
+
buf[0] = size & 0xFF;
|
|
898
|
+
buf[1] = (size >> 8) & 0xFF;
|
|
899
|
+
stream.Write(buf, 0, 2);
|
|
900
|
+
}
|
|
901
|
+
}
|
|
902
|
+
writeSizeInBits(stream, size) {
|
|
903
|
+
if (size === 0) {
|
|
904
|
+
stream.Write(new Uint8Array([0]), 0, 1);
|
|
905
|
+
return;
|
|
906
|
+
}
|
|
907
|
+
let s = size;
|
|
908
|
+
let shift = s >>> 7;
|
|
909
|
+
while (s !== 0) {
|
|
910
|
+
let b = s & 0x7F;
|
|
911
|
+
if (shift !== 0) {
|
|
912
|
+
b = b | 0x80;
|
|
913
|
+
}
|
|
914
|
+
stream.Write(new Uint8Array([b]), 0, 1);
|
|
915
|
+
s = shift;
|
|
916
|
+
shift = s >>> 7;
|
|
917
|
+
}
|
|
918
|
+
}
|
|
919
|
+
writeXrefDependantBit(entry) {
|
|
920
|
+
if (this.R2007Plus) {
|
|
921
|
+
this._writer.writeBitShort((entry.flags & StandardFlags.XrefDependent) !== 0 ? 0b100000000 : 0);
|
|
922
|
+
}
|
|
923
|
+
else {
|
|
924
|
+
this._writer.writeBit((entry.flags & StandardFlags.Referenced) !== 0);
|
|
925
|
+
this._writer.writeBitShort(0);
|
|
926
|
+
this._writer.writeBit((entry.flags & StandardFlags.XrefDependent) !== 0);
|
|
927
|
+
}
|
|
928
|
+
}
|
|
929
|
+
writeCommonData(cadObject) {
|
|
930
|
+
this._writer.resetStream();
|
|
931
|
+
this._msmainPos = 0;
|
|
932
|
+
switch (cadObject.objectType) {
|
|
933
|
+
case ObjectType.LAYOUT:
|
|
934
|
+
if (this.R2004Pre) {
|
|
935
|
+
if (this._document.classes.tryGetByName(cadObject.objectName)) {
|
|
936
|
+
const dxfClass = this._document.classes.getByName(cadObject.objectName);
|
|
937
|
+
this._writer.writeObjectType(dxfClass.ClassNumber);
|
|
938
|
+
}
|
|
939
|
+
else {
|
|
940
|
+
this.notify(`Dxf Class not found for ${cadObject.objectType} fullname: ${cadObject.constructor.name}`, NotificationType.Warning);
|
|
941
|
+
return;
|
|
942
|
+
}
|
|
943
|
+
break;
|
|
944
|
+
}
|
|
945
|
+
this._writer.writeObjectType(cadObject.objectType);
|
|
946
|
+
break;
|
|
947
|
+
case ObjectType.UNLISTED:
|
|
948
|
+
if (this._document.classes.tryGetByName(cadObject.objectName)) {
|
|
949
|
+
const dxfClass = this._document.classes.getByName(cadObject.objectName);
|
|
950
|
+
this._writer.writeObjectType(dxfClass.ClassNumber);
|
|
951
|
+
}
|
|
952
|
+
else {
|
|
953
|
+
this.notify(`Dxf Class not found for ${cadObject.objectType} fullname: ${cadObject.constructor.name}`, NotificationType.Warning);
|
|
954
|
+
return;
|
|
955
|
+
}
|
|
956
|
+
break;
|
|
957
|
+
case ObjectType.INVALID:
|
|
958
|
+
case ObjectType.UNDEFINED:
|
|
959
|
+
this.notify(`CadObject type: ${cadObject.objectType} fullname: ${cadObject.constructor.name}`, NotificationType.NotImplemented);
|
|
960
|
+
return;
|
|
961
|
+
default:
|
|
962
|
+
this._writer.writeObjectType(cadObject.objectType);
|
|
963
|
+
break;
|
|
964
|
+
}
|
|
965
|
+
if (this._version >= ACadVersion.AC1015 && this._version < ACadVersion.AC1024) {
|
|
966
|
+
this._writer.savePositonForSize();
|
|
967
|
+
}
|
|
968
|
+
this._writer.main.handleReference(cadObject);
|
|
969
|
+
this.writeExtendedData(cadObject.extendedData);
|
|
970
|
+
}
|
|
971
|
+
writeCommonNonEntityData(cadObject) {
|
|
972
|
+
this.writeCommonData(cadObject);
|
|
973
|
+
if (this.R13_14Only) {
|
|
974
|
+
this._writer.savePositonForSize();
|
|
975
|
+
}
|
|
976
|
+
this._writer.handleReferenceTyped(DwgReferenceType.SoftPointer, cadObject.owner.handle);
|
|
977
|
+
this.writeReactorsAndDictionaryHandle(cadObject);
|
|
978
|
+
}
|
|
979
|
+
writeCommonEntityData(entity) {
|
|
980
|
+
this.writeCommonData(entity);
|
|
981
|
+
this._writer.writeBit(false);
|
|
982
|
+
if (this._version >= ACadVersion.AC1012 && this._version <= ACadVersion.AC1014) {
|
|
983
|
+
this._writer.savePositonForSize();
|
|
984
|
+
}
|
|
985
|
+
this.writeEntityMode(entity);
|
|
986
|
+
}
|
|
987
|
+
writeEntityMode(entity) {
|
|
988
|
+
const entmode = this.getEntMode(entity);
|
|
989
|
+
this._writer.write2Bits(entmode);
|
|
990
|
+
if (entmode === 0) {
|
|
991
|
+
this._writer.handleReferenceTyped(DwgReferenceType.SoftPointer, entity.owner);
|
|
992
|
+
}
|
|
993
|
+
this.writeReactorsAndDictionaryHandle(entity);
|
|
994
|
+
if (this.R13_14Only) {
|
|
995
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardPointer, entity.layer);
|
|
996
|
+
const isbylayerlt = entity.lineType.name === LineType.ByLayerName;
|
|
997
|
+
this._writer.writeBit(isbylayerlt);
|
|
998
|
+
if (isbylayerlt) {
|
|
999
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardPointer, entity.lineType);
|
|
1000
|
+
}
|
|
1001
|
+
}
|
|
1002
|
+
if (!this.R2004Plus) {
|
|
1003
|
+
const hasLinks = this._prev != null
|
|
1004
|
+
&& this._prev.handle === entity.handle - 1
|
|
1005
|
+
&& this._next != null
|
|
1006
|
+
&& this._next.handle === entity.handle + 1;
|
|
1007
|
+
this._writer.writeBit(hasLinks);
|
|
1008
|
+
if (!hasLinks) {
|
|
1009
|
+
this._writer.handleReferenceTyped(DwgReferenceType.SoftPointer, this._prev);
|
|
1010
|
+
this._writer.handleReferenceTyped(DwgReferenceType.SoftPointer, this._next);
|
|
1011
|
+
}
|
|
1012
|
+
}
|
|
1013
|
+
this._writer.writeEnColor(entity.color, entity.transparency);
|
|
1014
|
+
if (this._version >= ACadVersion.AC1018 && entity.bookColor != null) {
|
|
1015
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardPointer, entity.bookColor);
|
|
1016
|
+
}
|
|
1017
|
+
this._writer.writeBitDouble(entity.lineTypeScale);
|
|
1018
|
+
if (!(this._version >= ACadVersion.AC1015)) {
|
|
1019
|
+
this._writer.writeBitShort(entity.isInvisible ? 0 : 1);
|
|
1020
|
+
return;
|
|
1021
|
+
}
|
|
1022
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardPointer, entity.layer);
|
|
1023
|
+
if (entity.lineType.name === LineType.ByLayerName) {
|
|
1024
|
+
this._writer.write2Bits(0b00);
|
|
1025
|
+
}
|
|
1026
|
+
else if (entity.lineType.name === LineType.ByBlockName) {
|
|
1027
|
+
this._writer.write2Bits(0b01);
|
|
1028
|
+
}
|
|
1029
|
+
else if (entity.lineType.name === LineType.ContinuousName) {
|
|
1030
|
+
this._writer.write2Bits(0b10);
|
|
1031
|
+
}
|
|
1032
|
+
else {
|
|
1033
|
+
this._writer.write2Bits(0b11);
|
|
1034
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardPointer, entity.lineType);
|
|
1035
|
+
}
|
|
1036
|
+
if (this.R2007Plus) {
|
|
1037
|
+
this._writer.write2Bits(0b00);
|
|
1038
|
+
this._writer.writeByte(0);
|
|
1039
|
+
}
|
|
1040
|
+
this._writer.write2Bits(0b00);
|
|
1041
|
+
if (this._version > ACadVersion.AC1021) {
|
|
1042
|
+
this._writer.writeBit(false);
|
|
1043
|
+
this._writer.writeBit(false);
|
|
1044
|
+
this._writer.writeBit(false);
|
|
1045
|
+
}
|
|
1046
|
+
this._writer.writeBitShort(entity.isInvisible ? 1 : 0);
|
|
1047
|
+
this._writer.writeByte(CadUtils.toIndex(entity.lineWeight));
|
|
1048
|
+
}
|
|
1049
|
+
writeExtendedData(data) {
|
|
1050
|
+
if (this.WriteXData) {
|
|
1051
|
+
for (const [app, entry] of data) {
|
|
1052
|
+
this.writeExtendedDataEntry(app, entry);
|
|
1053
|
+
}
|
|
1054
|
+
}
|
|
1055
|
+
this._writer.writeBitShort(0);
|
|
1056
|
+
}
|
|
1057
|
+
writeExtendedDataEntry(app, entry) {
|
|
1058
|
+
const chunks = [];
|
|
1059
|
+
for (const record of entry.records) {
|
|
1060
|
+
chunks.push(record.code - 1000);
|
|
1061
|
+
if (record instanceof ExtendedDataBinaryChunk) {
|
|
1062
|
+
chunks.push(record.value.length);
|
|
1063
|
+
for (let i = 0; i < record.value.length; i++)
|
|
1064
|
+
chunks.push(record.value[i]);
|
|
1065
|
+
}
|
|
1066
|
+
else if (record instanceof ExtendedDataControlString) {
|
|
1067
|
+
chunks.push(record.value === '}' ? 1 : 0);
|
|
1068
|
+
}
|
|
1069
|
+
else if (record instanceof ExtendedDataInteger16) {
|
|
1070
|
+
const buf = new ArrayBuffer(2);
|
|
1071
|
+
new DataView(buf).setInt16(0, record.value, true);
|
|
1072
|
+
const bytes = new Uint8Array(buf);
|
|
1073
|
+
for (let i = 0; i < 2; i++)
|
|
1074
|
+
chunks.push(bytes[i]);
|
|
1075
|
+
}
|
|
1076
|
+
else if (record instanceof ExtendedDataInteger32) {
|
|
1077
|
+
const buf = new ArrayBuffer(4);
|
|
1078
|
+
new DataView(buf).setInt32(0, record.value, true);
|
|
1079
|
+
const bytes = new Uint8Array(buf);
|
|
1080
|
+
for (let i = 0; i < 4; i++)
|
|
1081
|
+
chunks.push(bytes[i]);
|
|
1082
|
+
}
|
|
1083
|
+
else if (record instanceof ExtendedDataReal ||
|
|
1084
|
+
record instanceof ExtendedDataScale ||
|
|
1085
|
+
record instanceof ExtendedDataDistance) {
|
|
1086
|
+
const buf = new ArrayBuffer(8);
|
|
1087
|
+
new DataView(buf).setFloat64(0, record.value, true);
|
|
1088
|
+
const bytes = new Uint8Array(buf);
|
|
1089
|
+
for (let i = 0; i < 8; i++)
|
|
1090
|
+
chunks.push(bytes[i]);
|
|
1091
|
+
}
|
|
1092
|
+
else if (record instanceof ExtendedDataDirection ||
|
|
1093
|
+
record instanceof ExtendedDataDisplacement ||
|
|
1094
|
+
record instanceof ExtendedDataCoordinate ||
|
|
1095
|
+
record instanceof ExtendedDataWorldCoordinate) {
|
|
1096
|
+
const buf = new ArrayBuffer(24);
|
|
1097
|
+
const dv = new DataView(buf);
|
|
1098
|
+
dv.setFloat64(0, record.value.x, true);
|
|
1099
|
+
dv.setFloat64(8, record.value.y, true);
|
|
1100
|
+
dv.setFloat64(16, record.value.z, true);
|
|
1101
|
+
const bytes = new Uint8Array(buf);
|
|
1102
|
+
for (let i = 0; i < 24; i++)
|
|
1103
|
+
chunks.push(bytes[i]);
|
|
1104
|
+
}
|
|
1105
|
+
else if ('ResolveReference' in record && 'Value' in record) {
|
|
1106
|
+
// IExtendedDataHandleReference
|
|
1107
|
+
const href = record;
|
|
1108
|
+
let h = href.Value;
|
|
1109
|
+
if (href.ResolveReference(this._document) == null) {
|
|
1110
|
+
h = 0;
|
|
1111
|
+
}
|
|
1112
|
+
const buf = new ArrayBuffer(8);
|
|
1113
|
+
new DataView(buf).setFloat64(0, h, false); // big endian
|
|
1114
|
+
const bytes = new Uint8Array(buf);
|
|
1115
|
+
for (let i = 0; i < 8; i++)
|
|
1116
|
+
chunks.push(bytes[i]);
|
|
1117
|
+
}
|
|
1118
|
+
else if (record instanceof ExtendedDataString) {
|
|
1119
|
+
if (this.R2007Plus) {
|
|
1120
|
+
const len = record.value.length + 1;
|
|
1121
|
+
const buf = new ArrayBuffer(2);
|
|
1122
|
+
new DataView(buf).setUint16(0, len, true);
|
|
1123
|
+
const lenBytes = new Uint8Array(buf);
|
|
1124
|
+
chunks.push(lenBytes[0], lenBytes[1]);
|
|
1125
|
+
const textBytes = this.encodeUtf16LE(record.value);
|
|
1126
|
+
for (let i = 0; i < textBytes.length; i++)
|
|
1127
|
+
chunks.push(textBytes[i]);
|
|
1128
|
+
chunks.push(0, 0);
|
|
1129
|
+
}
|
|
1130
|
+
else {
|
|
1131
|
+
const encodingIndex = CadUtils.getCodeIndex(CadUtils.getCodePage(this._writer.encoding));
|
|
1132
|
+
const textBytes = this.encodeText(record.value || '');
|
|
1133
|
+
const buf = new ArrayBuffer(2);
|
|
1134
|
+
new DataView(buf).setUint16(0, record.value.length, true);
|
|
1135
|
+
const lenBytes = new Uint8Array(buf);
|
|
1136
|
+
chunks.push(lenBytes[0], lenBytes[1]);
|
|
1137
|
+
chunks.push(encodingIndex);
|
|
1138
|
+
for (let i = 0; i < textBytes.length; i++)
|
|
1139
|
+
chunks.push(textBytes[i]);
|
|
1140
|
+
}
|
|
1141
|
+
}
|
|
1142
|
+
else {
|
|
1143
|
+
throw new Error(`ExtendedDataRecord of type ${record.constructor.name} not supported.`);
|
|
1144
|
+
}
|
|
1145
|
+
}
|
|
1146
|
+
this._writer.writeBitShort(chunks.length);
|
|
1147
|
+
this._writer.main.handleReferenceTyped(DwgReferenceType.HardPointer, app.handle);
|
|
1148
|
+
this._writer.writeBytesOffset(new Uint8Array(chunks), 0, chunks.length);
|
|
1149
|
+
}
|
|
1150
|
+
writeReactorsAndDictionaryHandle(cadObject) {
|
|
1151
|
+
cadObject.cleanReactors();
|
|
1152
|
+
this._writer.writeBitLong(cadObject.reactors.length);
|
|
1153
|
+
for (const item of cadObject.reactors) {
|
|
1154
|
+
this._writer.handleReferenceTyped(DwgReferenceType.SoftPointer, item);
|
|
1155
|
+
}
|
|
1156
|
+
const noDictionary = cadObject.xDictionary == null;
|
|
1157
|
+
if (this.R2004Plus) {
|
|
1158
|
+
this._writer.writeBit(noDictionary);
|
|
1159
|
+
if (!noDictionary) {
|
|
1160
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardOwnership, cadObject.xDictionary);
|
|
1161
|
+
}
|
|
1162
|
+
}
|
|
1163
|
+
else {
|
|
1164
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardOwnership, cadObject.xDictionary);
|
|
1165
|
+
}
|
|
1166
|
+
if (this.R2013Plus) {
|
|
1167
|
+
this._writer.writeBit(false);
|
|
1168
|
+
}
|
|
1169
|
+
if (!noDictionary) {
|
|
1170
|
+
this._dictionaries.set(cadObject.xDictionary.handle, cadObject.xDictionary);
|
|
1171
|
+
this._objects.push(cadObject.xDictionary);
|
|
1172
|
+
}
|
|
1173
|
+
}
|
|
1174
|
+
getEntMode(entity) {
|
|
1175
|
+
if (entity.owner == null)
|
|
1176
|
+
return 0;
|
|
1177
|
+
if (entity.owner.handle === this._document.paperSpace.handle)
|
|
1178
|
+
return 0b01;
|
|
1179
|
+
if (entity.owner.handle === this._document.modelSpace.handle)
|
|
1180
|
+
return 0b10;
|
|
1181
|
+
return 0;
|
|
1182
|
+
}
|
|
1183
|
+
// ==================== Entity Writers ====================
|
|
1184
|
+
writeEntity(entity) {
|
|
1185
|
+
const children = [];
|
|
1186
|
+
let seqend = null;
|
|
1187
|
+
this.writeCommonEntityData(entity);
|
|
1188
|
+
if (entity instanceof Arc) {
|
|
1189
|
+
this.writeArc(entity);
|
|
1190
|
+
}
|
|
1191
|
+
else if (entity instanceof Circle) {
|
|
1192
|
+
this.writeCircle(entity);
|
|
1193
|
+
}
|
|
1194
|
+
else if (entity instanceof Dimension) {
|
|
1195
|
+
this.writeCommonDimensionData(entity);
|
|
1196
|
+
if (entity instanceof DimensionLinear) {
|
|
1197
|
+
this.writeDimensionLinear(entity);
|
|
1198
|
+
}
|
|
1199
|
+
else if (entity instanceof DimensionAligned) {
|
|
1200
|
+
this.writeDimensionAligned(entity);
|
|
1201
|
+
}
|
|
1202
|
+
else if (entity instanceof DimensionRadius) {
|
|
1203
|
+
this.writeDimensionRadius(entity);
|
|
1204
|
+
}
|
|
1205
|
+
else if (entity instanceof DimensionAngular2Line) {
|
|
1206
|
+
this.writeDimensionAngular2Line(entity);
|
|
1207
|
+
}
|
|
1208
|
+
else if (entity instanceof DimensionAngular3Pt) {
|
|
1209
|
+
this.writeDimensionAngular3Pt(entity);
|
|
1210
|
+
}
|
|
1211
|
+
else if (entity instanceof DimensionDiameter) {
|
|
1212
|
+
this.writeDimensionDiameter(entity);
|
|
1213
|
+
}
|
|
1214
|
+
else if (entity instanceof DimensionOrdinate) {
|
|
1215
|
+
this.writeDimensionOrdinate(entity);
|
|
1216
|
+
}
|
|
1217
|
+
else {
|
|
1218
|
+
throw new Error(`Dimension not implemented : ${entity.constructor.name}`);
|
|
1219
|
+
}
|
|
1220
|
+
}
|
|
1221
|
+
else if (entity instanceof Ellipse) {
|
|
1222
|
+
this.writeEllipse(entity);
|
|
1223
|
+
}
|
|
1224
|
+
else if (entity instanceof Insert) {
|
|
1225
|
+
this.writeInsert(entity);
|
|
1226
|
+
children.push(...entity.attributes);
|
|
1227
|
+
seqend = entity.attributes.Seqend;
|
|
1228
|
+
}
|
|
1229
|
+
else if (entity instanceof Face3D) {
|
|
1230
|
+
this.writeFace3D(entity);
|
|
1231
|
+
}
|
|
1232
|
+
else if (entity instanceof Hatch) {
|
|
1233
|
+
this.writeHatch(entity);
|
|
1234
|
+
}
|
|
1235
|
+
else if (entity instanceof Leader) {
|
|
1236
|
+
this.writeLeader(entity);
|
|
1237
|
+
}
|
|
1238
|
+
else if (entity instanceof Line) {
|
|
1239
|
+
this.writeLine(entity);
|
|
1240
|
+
}
|
|
1241
|
+
else if (entity instanceof LwPolyline) {
|
|
1242
|
+
this.writeLwPolyline(entity);
|
|
1243
|
+
}
|
|
1244
|
+
else if (entity instanceof Mesh) {
|
|
1245
|
+
this.writeMesh(entity);
|
|
1246
|
+
}
|
|
1247
|
+
else if (entity instanceof MLine) {
|
|
1248
|
+
this.writeMLine(entity);
|
|
1249
|
+
}
|
|
1250
|
+
else if (entity instanceof MText) {
|
|
1251
|
+
this.writeMText(entity);
|
|
1252
|
+
}
|
|
1253
|
+
else if (entity instanceof MultiLeader) {
|
|
1254
|
+
this.writeMultiLeader(entity);
|
|
1255
|
+
}
|
|
1256
|
+
else if (entity instanceof Ole2Frame) {
|
|
1257
|
+
this.writeOle2Frame(entity);
|
|
1258
|
+
}
|
|
1259
|
+
else if (entity instanceof PdfUnderlay) {
|
|
1260
|
+
this.writePdfUnderlay(entity);
|
|
1261
|
+
}
|
|
1262
|
+
else if (entity instanceof Point) {
|
|
1263
|
+
this.writePoint(entity);
|
|
1264
|
+
}
|
|
1265
|
+
else if (entity instanceof PolyfaceMesh) {
|
|
1266
|
+
this.writePolyfaceMesh(entity);
|
|
1267
|
+
children.push(...entity.faces, ...entity.vertices);
|
|
1268
|
+
seqend = entity.vertices.Seqend;
|
|
1269
|
+
}
|
|
1270
|
+
else if (entity instanceof Polyline2D) {
|
|
1271
|
+
this.writePolyline2D(entity);
|
|
1272
|
+
children.push(...entity.vertices);
|
|
1273
|
+
seqend = entity.vertices.Seqend;
|
|
1274
|
+
}
|
|
1275
|
+
else if (entity instanceof Polyline3D) {
|
|
1276
|
+
this.writePolyline3D(entity);
|
|
1277
|
+
children.push(...entity.vertices);
|
|
1278
|
+
seqend = entity.vertices.Seqend;
|
|
1279
|
+
}
|
|
1280
|
+
else if (entity instanceof PolygonMesh) {
|
|
1281
|
+
this.writePolygonMesh(entity);
|
|
1282
|
+
children.push(...entity.vertices);
|
|
1283
|
+
seqend = entity.vertices.Seqend;
|
|
1284
|
+
}
|
|
1285
|
+
else if (entity instanceof Ray) {
|
|
1286
|
+
this.writeRay(entity);
|
|
1287
|
+
}
|
|
1288
|
+
else if (entity instanceof Shape) {
|
|
1289
|
+
this.writeShape(entity);
|
|
1290
|
+
}
|
|
1291
|
+
else if (entity instanceof Solid) {
|
|
1292
|
+
this.writeSolid(entity);
|
|
1293
|
+
}
|
|
1294
|
+
else if (entity instanceof Solid3D) {
|
|
1295
|
+
this.writeSolid3D(entity);
|
|
1296
|
+
}
|
|
1297
|
+
else if (entity instanceof Spline) {
|
|
1298
|
+
this.writeSpline(entity);
|
|
1299
|
+
}
|
|
1300
|
+
else if (entity instanceof CadWipeoutBase) {
|
|
1301
|
+
this.writeCadImage(entity);
|
|
1302
|
+
}
|
|
1303
|
+
else if (entity instanceof AttributeEntity) {
|
|
1304
|
+
this.writeAttribute(entity);
|
|
1305
|
+
}
|
|
1306
|
+
else if (entity instanceof AttributeDefinition) {
|
|
1307
|
+
this.writeAttDefinition(entity);
|
|
1308
|
+
}
|
|
1309
|
+
else if (entity instanceof TextEntity) {
|
|
1310
|
+
this.writeTextEntity(entity);
|
|
1311
|
+
}
|
|
1312
|
+
else if (entity instanceof Tolerance) {
|
|
1313
|
+
this.writeTolerance(entity);
|
|
1314
|
+
}
|
|
1315
|
+
else if (entity instanceof Vertex2D) {
|
|
1316
|
+
this.writeVertex2D(entity);
|
|
1317
|
+
}
|
|
1318
|
+
else if (entity instanceof VertexFaceRecord) {
|
|
1319
|
+
this.writeFaceRecord(entity);
|
|
1320
|
+
}
|
|
1321
|
+
else if (entity instanceof Vertex3D || entity instanceof VertexFaceMesh || entity instanceof PolygonMeshVertex) {
|
|
1322
|
+
this.writeVertex(entity);
|
|
1323
|
+
}
|
|
1324
|
+
else if (entity instanceof Viewport) {
|
|
1325
|
+
this.writeViewport(entity);
|
|
1326
|
+
}
|
|
1327
|
+
else if (entity instanceof XLine) {
|
|
1328
|
+
this.writeXLine(entity);
|
|
1329
|
+
}
|
|
1330
|
+
else {
|
|
1331
|
+
throw new Error(`Entity not implemented : ${entity.constructor.name}`);
|
|
1332
|
+
}
|
|
1333
|
+
this.registerObject(entity);
|
|
1334
|
+
this.writeChildEntities(children, seqend);
|
|
1335
|
+
}
|
|
1336
|
+
writePdfUnderlay(underlay) {
|
|
1337
|
+
this._writer.write3BitDouble(underlay.normal);
|
|
1338
|
+
this._writer.write3BitDouble(underlay.insertPoint);
|
|
1339
|
+
this._writer.writeBitDouble(underlay.rotation);
|
|
1340
|
+
this._writer.writeBitDouble(underlay.xScale);
|
|
1341
|
+
this._writer.writeBitDouble(underlay.yScale);
|
|
1342
|
+
this._writer.writeBitDouble(underlay.zScale);
|
|
1343
|
+
this._writer.writeByte(underlay.flags);
|
|
1344
|
+
this._writer.writeByte(underlay.contrast);
|
|
1345
|
+
this._writer.writeByte(underlay.fade);
|
|
1346
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardPointer, underlay.definition);
|
|
1347
|
+
this._writer.writeBitLong(underlay.clipBoundaryVertices.length);
|
|
1348
|
+
for (const v of underlay.clipBoundaryVertices) {
|
|
1349
|
+
this._writer.write2RawDouble(v);
|
|
1350
|
+
}
|
|
1351
|
+
}
|
|
1352
|
+
writeArc(arc) {
|
|
1353
|
+
this.writeCircle(arc);
|
|
1354
|
+
this._writer.writeBitDouble(arc.startAngle);
|
|
1355
|
+
this._writer.writeBitDouble(arc.endAngle);
|
|
1356
|
+
}
|
|
1357
|
+
writeAttribute(att) {
|
|
1358
|
+
this.writeCommonAttData(att);
|
|
1359
|
+
}
|
|
1360
|
+
writeAttDefinition(attdef) {
|
|
1361
|
+
this.writeCommonAttData(attdef);
|
|
1362
|
+
if (this.R2010Plus) {
|
|
1363
|
+
this._writer.writeByte(attdef.version);
|
|
1364
|
+
}
|
|
1365
|
+
this._writer.writeVariableText(attdef.prompt);
|
|
1366
|
+
}
|
|
1367
|
+
writeCommonAttData(att) {
|
|
1368
|
+
this.writeTextEntity(att);
|
|
1369
|
+
if (this.R2010Plus) {
|
|
1370
|
+
this._writer.writeByte(att.version);
|
|
1371
|
+
}
|
|
1372
|
+
if (this.R2018Plus) {
|
|
1373
|
+
this._writer.writeByte(att.attributeType);
|
|
1374
|
+
if (att.attributeType === AttributeType.MultiLine ||
|
|
1375
|
+
att.attributeType === AttributeType.ConstantMultiLine) {
|
|
1376
|
+
this.writeEntityMode(att.mText);
|
|
1377
|
+
this.writeMText(att.mText);
|
|
1378
|
+
this._writer.writeBitShort(0);
|
|
1379
|
+
}
|
|
1380
|
+
}
|
|
1381
|
+
this._writer.writeVariableText(att.tag);
|
|
1382
|
+
this._writer.writeBitShort(0);
|
|
1383
|
+
this._writer.writeByte(att.flags);
|
|
1384
|
+
if (this.R2007Plus) {
|
|
1385
|
+
this._writer.writeBit(att.isReallyLocked);
|
|
1386
|
+
}
|
|
1387
|
+
}
|
|
1388
|
+
writeCircle(circle) {
|
|
1389
|
+
this._writer.write3BitDouble(circle.center);
|
|
1390
|
+
this._writer.writeBitDouble(circle.radius);
|
|
1391
|
+
this._writer.writeBitThickness(circle.thickness);
|
|
1392
|
+
this._writer.writeBitExtrusion(circle.normal);
|
|
1393
|
+
}
|
|
1394
|
+
writeCommonDimensionData(dimension) {
|
|
1395
|
+
if (this.R2010Plus) {
|
|
1396
|
+
this._writer.writeByte(dimension.version);
|
|
1397
|
+
}
|
|
1398
|
+
this._writer.write3BitDouble(dimension.normal);
|
|
1399
|
+
this._writer.write2RawDouble(new XY(dimension.textMiddlePoint.x, dimension.textMiddlePoint.y));
|
|
1400
|
+
this._writer.writeBitDouble(dimension.insertionPoint.z);
|
|
1401
|
+
let flags = 0;
|
|
1402
|
+
flags |= dimension.isTextUserDefinedLocation ? 0b00 : 0b01;
|
|
1403
|
+
this._writer.writeByte(flags);
|
|
1404
|
+
this._writer.writeVariableText(dimension.text);
|
|
1405
|
+
this._writer.writeBitDouble(dimension.textRotation);
|
|
1406
|
+
this._writer.writeBitDouble(dimension.horizontalDirection);
|
|
1407
|
+
this._writer.write3BitDouble(new XYZ(1, 1, 1));
|
|
1408
|
+
this._writer.writeBitDouble(0);
|
|
1409
|
+
if (this.R2000Plus) {
|
|
1410
|
+
this._writer.writeBitShort(dimension.attachmentPoint);
|
|
1411
|
+
this._writer.writeBitShort(dimension.lineSpacingStyle);
|
|
1412
|
+
this._writer.writeBitDouble(dimension.lineSpacingFactor);
|
|
1413
|
+
this._writer.writeBitDouble(dimension.measurement);
|
|
1414
|
+
}
|
|
1415
|
+
if (this.R2007Plus) {
|
|
1416
|
+
this._writer.writeBit(false);
|
|
1417
|
+
this._writer.writeBit(dimension.flipArrow1);
|
|
1418
|
+
this._writer.writeBit(dimension.flipArrow2);
|
|
1419
|
+
}
|
|
1420
|
+
this._writer.write2RawDouble(new XY(dimension.insertionPoint.x, dimension.insertionPoint.y));
|
|
1421
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardPointer, dimension.style);
|
|
1422
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardPointer, dimension.block);
|
|
1423
|
+
}
|
|
1424
|
+
writeDimensionLinear(dimension) {
|
|
1425
|
+
this.writeDimensionAligned(dimension);
|
|
1426
|
+
this._writer.writeBitDouble(dimension.rotation);
|
|
1427
|
+
}
|
|
1428
|
+
writeDimensionAligned(dimension) {
|
|
1429
|
+
this._writer.write3BitDouble(dimension.firstPoint);
|
|
1430
|
+
this._writer.write3BitDouble(dimension.secondPoint);
|
|
1431
|
+
this._writer.write3BitDouble(dimension.definitionPoint);
|
|
1432
|
+
this._writer.writeBitDouble(dimension.extLineRotation);
|
|
1433
|
+
}
|
|
1434
|
+
writeDimensionRadius(dimension) {
|
|
1435
|
+
this._writer.write3BitDouble(dimension.definitionPoint);
|
|
1436
|
+
this._writer.write3BitDouble(dimension.angleVertex);
|
|
1437
|
+
this._writer.writeBitDouble(dimension.leaderLength);
|
|
1438
|
+
}
|
|
1439
|
+
writeDimensionAngular2Line(dimension) {
|
|
1440
|
+
this._writer.write2RawDouble(new XY(dimension.dimensionArc.x, dimension.dimensionArc.y));
|
|
1441
|
+
this._writer.write3BitDouble(dimension.firstPoint);
|
|
1442
|
+
this._writer.write3BitDouble(dimension.secondPoint);
|
|
1443
|
+
this._writer.write3BitDouble(dimension.angleVertex);
|
|
1444
|
+
this._writer.write3BitDouble(dimension.definitionPoint);
|
|
1445
|
+
}
|
|
1446
|
+
writeDimensionAngular3Pt(dimension) {
|
|
1447
|
+
this._writer.write3BitDouble(dimension.definitionPoint);
|
|
1448
|
+
this._writer.write3BitDouble(dimension.firstPoint);
|
|
1449
|
+
this._writer.write3BitDouble(dimension.secondPoint);
|
|
1450
|
+
this._writer.write3BitDouble(dimension.angleVertex);
|
|
1451
|
+
}
|
|
1452
|
+
writeDimensionDiameter(dimension) {
|
|
1453
|
+
this._writer.write3BitDouble(dimension.definitionPoint);
|
|
1454
|
+
this._writer.write3BitDouble(dimension.angleVertex);
|
|
1455
|
+
this._writer.writeBitDouble(dimension.leaderLength);
|
|
1456
|
+
}
|
|
1457
|
+
writeDimensionOrdinate(dimension) {
|
|
1458
|
+
this._writer.write3BitDouble(dimension.definitionPoint);
|
|
1459
|
+
this._writer.write3BitDouble(dimension.featureLocation);
|
|
1460
|
+
this._writer.write3BitDouble(dimension.leaderEndpoint);
|
|
1461
|
+
this._writer.writeByte(dimension.isOrdinateTypeX ? 1 : 0);
|
|
1462
|
+
}
|
|
1463
|
+
writeEllipse(ellipse) {
|
|
1464
|
+
this._writer.write3BitDouble(ellipse.center);
|
|
1465
|
+
this._writer.write3BitDouble(ellipse.majorAxisEndPoint);
|
|
1466
|
+
this._writer.write3BitDouble(ellipse.normal);
|
|
1467
|
+
this._writer.writeBitDouble(ellipse.radiusRatio);
|
|
1468
|
+
this._writer.writeBitDouble(ellipse.startParameter);
|
|
1469
|
+
this._writer.writeBitDouble(ellipse.endParameter);
|
|
1470
|
+
}
|
|
1471
|
+
writeInsert(insert) {
|
|
1472
|
+
this._writer.write3BitDouble(insert.insertPoint);
|
|
1473
|
+
if (this.R13_14Only) {
|
|
1474
|
+
this._writer.writeBitDouble(insert.xScale);
|
|
1475
|
+
this._writer.writeBitDouble(insert.yScale);
|
|
1476
|
+
this._writer.writeBitDouble(insert.zScale);
|
|
1477
|
+
}
|
|
1478
|
+
if (this.R2000Plus) {
|
|
1479
|
+
if (insert.xScale === 1.0 && insert.yScale === 1.0 && insert.zScale === 1.0) {
|
|
1480
|
+
this._writer.write2Bits(3);
|
|
1481
|
+
}
|
|
1482
|
+
else if (insert.xScale === insert.yScale && insert.xScale === insert.zScale) {
|
|
1483
|
+
this._writer.write2Bits(2);
|
|
1484
|
+
this._writer.writeRawDouble(insert.xScale);
|
|
1485
|
+
}
|
|
1486
|
+
else if (insert.xScale === 1.0) {
|
|
1487
|
+
this._writer.write2Bits(1);
|
|
1488
|
+
this._writer.writeBitDoubleWithDefault(insert.yScale, 1.0);
|
|
1489
|
+
this._writer.writeBitDoubleWithDefault(insert.zScale, 1.0);
|
|
1490
|
+
}
|
|
1491
|
+
else {
|
|
1492
|
+
this._writer.write2Bits(0);
|
|
1493
|
+
this._writer.writeRawDouble(insert.xScale);
|
|
1494
|
+
this._writer.writeBitDoubleWithDefault(insert.yScale, insert.xScale);
|
|
1495
|
+
this._writer.writeBitDoubleWithDefault(insert.zScale, insert.xScale);
|
|
1496
|
+
}
|
|
1497
|
+
}
|
|
1498
|
+
this._writer.writeBitDouble(insert.rotation);
|
|
1499
|
+
this._writer.write3BitDouble(insert.normal);
|
|
1500
|
+
this._writer.writeBit(insert.hasAttributes);
|
|
1501
|
+
if (this.R2004Plus && insert.hasAttributes) {
|
|
1502
|
+
this._writer.writeBitLong(insert.attributes.length);
|
|
1503
|
+
}
|
|
1504
|
+
if (insert.isMultiple) {
|
|
1505
|
+
this._writer.writeBitShort(insert.columnCount);
|
|
1506
|
+
this._writer.writeBitShort(insert.rowCount);
|
|
1507
|
+
this._writer.writeBitDouble(insert.columnSpacing);
|
|
1508
|
+
this._writer.writeBitDouble(insert.rowSpacing);
|
|
1509
|
+
}
|
|
1510
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardPointer, insert.block);
|
|
1511
|
+
if (!insert.hasAttributes)
|
|
1512
|
+
return;
|
|
1513
|
+
if (this._version >= ACadVersion.AC1012 && this._version <= ACadVersion.AC1015) {
|
|
1514
|
+
this._writer.handleReferenceTyped(DwgReferenceType.SoftPointer, insert.attributes[0]);
|
|
1515
|
+
this._writer.handleReferenceTyped(DwgReferenceType.SoftPointer, insert.attributes[insert.attributes.length - 1]);
|
|
1516
|
+
}
|
|
1517
|
+
else if (this.R2004Plus) {
|
|
1518
|
+
for (const att of insert.attributes) {
|
|
1519
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardOwnership, att);
|
|
1520
|
+
}
|
|
1521
|
+
}
|
|
1522
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardOwnership, insert.attributes.Seqend);
|
|
1523
|
+
}
|
|
1524
|
+
writeFace3D(face) {
|
|
1525
|
+
if (this.R13_14Only) {
|
|
1526
|
+
this._writer.write3BitDouble(face.firstCorner);
|
|
1527
|
+
this._writer.write3BitDouble(face.secondCorner);
|
|
1528
|
+
this._writer.write3BitDouble(face.thirdCorner);
|
|
1529
|
+
this._writer.write3BitDouble(face.fourthCorner);
|
|
1530
|
+
this._writer.writeBitShort(face.flags);
|
|
1531
|
+
}
|
|
1532
|
+
if (this.R2000Plus) {
|
|
1533
|
+
const noFlags = face.flags === InvisibleEdgeFlags.None;
|
|
1534
|
+
this._writer.writeBit(noFlags);
|
|
1535
|
+
const zIsZero = face.firstCorner.z === 0.0;
|
|
1536
|
+
this._writer.writeBit(zIsZero);
|
|
1537
|
+
this._writer.writeRawDouble(face.firstCorner.x);
|
|
1538
|
+
this._writer.writeRawDouble(face.firstCorner.y);
|
|
1539
|
+
if (!zIsZero) {
|
|
1540
|
+
this._writer.writeRawDouble(face.firstCorner.z);
|
|
1541
|
+
}
|
|
1542
|
+
this._writer.write3BitDoubleWithDefault(face.secondCorner, face.firstCorner);
|
|
1543
|
+
this._writer.write3BitDoubleWithDefault(face.thirdCorner, face.secondCorner);
|
|
1544
|
+
this._writer.write3BitDoubleWithDefault(face.fourthCorner, face.thirdCorner);
|
|
1545
|
+
if (!noFlags) {
|
|
1546
|
+
this._writer.writeBitShort(face.flags);
|
|
1547
|
+
}
|
|
1548
|
+
}
|
|
1549
|
+
}
|
|
1550
|
+
writeMesh(mesh) {
|
|
1551
|
+
this._writer.writeBitShort(mesh.version);
|
|
1552
|
+
this._writer.writeBit(mesh.blendCrease !== 0);
|
|
1553
|
+
this._writer.writeBitLong(mesh.subdivisionLevel);
|
|
1554
|
+
this._writer.writeBitLong(mesh.vertices.length);
|
|
1555
|
+
for (const vertex of mesh.vertices) {
|
|
1556
|
+
this._writer.write3BitDouble(vertex);
|
|
1557
|
+
}
|
|
1558
|
+
const nfaces = mesh.faces.reduce((sum, f) => sum + 1 + f.length, 0);
|
|
1559
|
+
this._writer.writeBitLong(nfaces);
|
|
1560
|
+
for (const face of mesh.faces) {
|
|
1561
|
+
this._writer.writeBitLong(face.length);
|
|
1562
|
+
for (const index of face) {
|
|
1563
|
+
this._writer.writeBitLong(index);
|
|
1564
|
+
}
|
|
1565
|
+
}
|
|
1566
|
+
this._writer.writeBitLong(mesh.edges.length);
|
|
1567
|
+
for (const edge of mesh.edges) {
|
|
1568
|
+
this._writer.writeBitLong(edge.start);
|
|
1569
|
+
this._writer.writeBitLong(edge.end);
|
|
1570
|
+
}
|
|
1571
|
+
this._writer.writeBitLong(mesh.edges.length);
|
|
1572
|
+
for (const edge of mesh.edges) {
|
|
1573
|
+
this._writer.writeBitDouble(edge.crease ?? 0);
|
|
1574
|
+
}
|
|
1575
|
+
this._writer.writeBitLong(0);
|
|
1576
|
+
}
|
|
1577
|
+
writeMLine(mline) {
|
|
1578
|
+
this._writer.writeBitDouble(mline.scaleFactor);
|
|
1579
|
+
this._writer.writeByte(mline.justification);
|
|
1580
|
+
this._writer.write3BitDouble(mline.startPoint);
|
|
1581
|
+
this._writer.write3BitDouble(mline.normal);
|
|
1582
|
+
this._writer.writeBitShort((mline.flags & MLineFlags.Closed) !== 0 ? 3 : 1);
|
|
1583
|
+
let nlines = 0;
|
|
1584
|
+
if (mline.vertices.length > 0) {
|
|
1585
|
+
nlines = mline.vertices[0].segments.length;
|
|
1586
|
+
}
|
|
1587
|
+
this._writer.writeByte(nlines);
|
|
1588
|
+
this._writer.writeBitShort(mline.vertices.length);
|
|
1589
|
+
for (const v of mline.vertices) {
|
|
1590
|
+
this._writer.write3BitDouble(v.position);
|
|
1591
|
+
this._writer.write3BitDouble(v.direction);
|
|
1592
|
+
this._writer.write3BitDouble(v.miter);
|
|
1593
|
+
for (let i = 0; i < nlines; i++) {
|
|
1594
|
+
const element = v.segments[i];
|
|
1595
|
+
this._writer.writeBitShort(element.parameters.length);
|
|
1596
|
+
for (const p of element.parameters) {
|
|
1597
|
+
this._writer.writeBitDouble(p);
|
|
1598
|
+
}
|
|
1599
|
+
this._writer.writeBitShort(element.areaFillParameters.length);
|
|
1600
|
+
for (const afp of element.areaFillParameters) {
|
|
1601
|
+
this._writer.writeBitDouble(afp);
|
|
1602
|
+
}
|
|
1603
|
+
}
|
|
1604
|
+
}
|
|
1605
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardPointer, mline.style);
|
|
1606
|
+
}
|
|
1607
|
+
writeLwPolyline(lwPolyline) {
|
|
1608
|
+
let nbulges = false;
|
|
1609
|
+
let ndiffwidth = false;
|
|
1610
|
+
for (const item of lwPolyline.vertices) {
|
|
1611
|
+
if (!nbulges && item.bulge !== 0.0)
|
|
1612
|
+
nbulges = true;
|
|
1613
|
+
if (!ndiffwidth && (item.startWidth !== 0.0 || item.endWidth !== 0.0))
|
|
1614
|
+
ndiffwidth = true;
|
|
1615
|
+
}
|
|
1616
|
+
let flags = 0;
|
|
1617
|
+
if ((lwPolyline.flags & LwPolylineFlags.Plinegen) !== 0)
|
|
1618
|
+
flags |= 0x100;
|
|
1619
|
+
if ((lwPolyline.flags & LwPolylineFlags.Closed) !== 0)
|
|
1620
|
+
flags |= 0x200;
|
|
1621
|
+
if (lwPolyline.constantWidth !== 0.0)
|
|
1622
|
+
flags |= 0x4;
|
|
1623
|
+
if (lwPolyline.elevation !== 0.0)
|
|
1624
|
+
flags |= 0x8;
|
|
1625
|
+
if (lwPolyline.thickness !== 0.0)
|
|
1626
|
+
flags |= 2;
|
|
1627
|
+
if (!XYZ.equals(lwPolyline.normal, XYZ.AxisZ))
|
|
1628
|
+
flags |= 1;
|
|
1629
|
+
if (nbulges)
|
|
1630
|
+
flags |= 0x10;
|
|
1631
|
+
if (ndiffwidth)
|
|
1632
|
+
flags |= 0x20;
|
|
1633
|
+
this._writer.writeBitShort(flags);
|
|
1634
|
+
if (lwPolyline.constantWidth !== 0.0)
|
|
1635
|
+
this._writer.writeBitDouble(lwPolyline.constantWidth);
|
|
1636
|
+
if (lwPolyline.elevation !== 0.0)
|
|
1637
|
+
this._writer.writeBitDouble(lwPolyline.elevation);
|
|
1638
|
+
if (lwPolyline.thickness !== 0.0)
|
|
1639
|
+
this._writer.writeBitDouble(lwPolyline.thickness);
|
|
1640
|
+
if (!XYZ.equals(lwPolyline.normal, XYZ.AxisZ))
|
|
1641
|
+
this._writer.write3BitDouble(lwPolyline.normal);
|
|
1642
|
+
this._writer.writeBitLong(lwPolyline.vertices.length);
|
|
1643
|
+
if (nbulges)
|
|
1644
|
+
this._writer.writeBitLong(lwPolyline.vertices.length);
|
|
1645
|
+
if (ndiffwidth)
|
|
1646
|
+
this._writer.writeBitLong(lwPolyline.vertices.length);
|
|
1647
|
+
if (this.R13_14Only) {
|
|
1648
|
+
for (const v of lwPolyline.vertices) {
|
|
1649
|
+
this._writer.write2RawDouble(v.location);
|
|
1650
|
+
}
|
|
1651
|
+
}
|
|
1652
|
+
if (this.R2000Plus && lwPolyline.vertices.length > 0) {
|
|
1653
|
+
let last = lwPolyline.vertices[0];
|
|
1654
|
+
this._writer.write2RawDouble(last.location);
|
|
1655
|
+
for (let j = 1; j < lwPolyline.vertices.length; j++) {
|
|
1656
|
+
const curr = lwPolyline.vertices[j];
|
|
1657
|
+
this._writer.write2BitDoubleWithDefault(curr.location, last.location);
|
|
1658
|
+
last = curr;
|
|
1659
|
+
}
|
|
1660
|
+
}
|
|
1661
|
+
if (nbulges) {
|
|
1662
|
+
for (const v of lwPolyline.vertices) {
|
|
1663
|
+
this._writer.writeBitDouble(v.bulge);
|
|
1664
|
+
}
|
|
1665
|
+
}
|
|
1666
|
+
if (ndiffwidth) {
|
|
1667
|
+
for (const v of lwPolyline.vertices) {
|
|
1668
|
+
this._writer.writeBitDouble(v.startWidth);
|
|
1669
|
+
this._writer.writeBitDouble(v.endWidth);
|
|
1670
|
+
}
|
|
1671
|
+
}
|
|
1672
|
+
}
|
|
1673
|
+
writeHatch(hatch) {
|
|
1674
|
+
if (this.R2004Plus) {
|
|
1675
|
+
const gradient = hatch.gradientColor;
|
|
1676
|
+
this._writer.writeBitLong(gradient.enabled ? 1 : 0);
|
|
1677
|
+
this._writer.writeBitLong(gradient.reserved);
|
|
1678
|
+
this._writer.writeBitDouble(gradient.angle);
|
|
1679
|
+
this._writer.writeBitDouble(gradient.shift);
|
|
1680
|
+
this._writer.writeBitLong(gradient.isSingleColorGradient ? 1 : 0);
|
|
1681
|
+
this._writer.writeBitDouble(gradient.colorTint);
|
|
1682
|
+
this._writer.writeBitLong(gradient.colors.length);
|
|
1683
|
+
for (const color of gradient.colors) {
|
|
1684
|
+
this._writer.writeBitDouble(color.value);
|
|
1685
|
+
this._writer.writeCmColor(color.color);
|
|
1686
|
+
}
|
|
1687
|
+
this._writer.writeVariableText(gradient.name);
|
|
1688
|
+
}
|
|
1689
|
+
this._writer.writeBitDouble(hatch.elevation);
|
|
1690
|
+
this._writer.write3BitDouble(hatch.normal);
|
|
1691
|
+
this._writer.writeVariableText(hatch.pattern.name);
|
|
1692
|
+
this._writer.writeBit(hatch.isSolid);
|
|
1693
|
+
this._writer.writeBit(hatch.isAssociative);
|
|
1694
|
+
this._writer.writeBitLong(hatch.paths.length);
|
|
1695
|
+
let hasDerivedBoundary = false;
|
|
1696
|
+
for (const boundaryPath of hatch.paths) {
|
|
1697
|
+
this._writer.writeBitLong(boundaryPath.flags);
|
|
1698
|
+
if ((boundaryPath.flags & BoundaryPathFlags.Derived) !== 0) {
|
|
1699
|
+
hasDerivedBoundary = true;
|
|
1700
|
+
}
|
|
1701
|
+
if ((boundaryPath.flags & BoundaryPathFlags.Polyline) !== 0) {
|
|
1702
|
+
const pline = boundaryPath.edges[0];
|
|
1703
|
+
this._writer.writeBit(pline.hasBulge);
|
|
1704
|
+
this._writer.writeBit(pline.isClosed);
|
|
1705
|
+
this._writer.writeBitLong(pline.vertices.length);
|
|
1706
|
+
for (const vertex of pline.vertices) {
|
|
1707
|
+
this._writer.write2RawDouble(new XY(vertex.X, vertex.Y));
|
|
1708
|
+
if (pline.hasBulge) {
|
|
1709
|
+
this._writer.writeBitDouble(vertex.Z);
|
|
1710
|
+
}
|
|
1711
|
+
}
|
|
1712
|
+
}
|
|
1713
|
+
else {
|
|
1714
|
+
this._writer.writeBitLong(boundaryPath.edges.length);
|
|
1715
|
+
for (const edge of boundaryPath.edges) {
|
|
1716
|
+
this._writer.writeByte(edge.type);
|
|
1717
|
+
if (edge instanceof HatchBoundaryPathLine) {
|
|
1718
|
+
this._writer.write2RawDouble(edge.start);
|
|
1719
|
+
this._writer.write2RawDouble(edge.end);
|
|
1720
|
+
}
|
|
1721
|
+
else if (edge instanceof HatchBoundaryPathArc) {
|
|
1722
|
+
this._writer.write2RawDouble(edge.center);
|
|
1723
|
+
this._writer.writeBitDouble(edge.radius);
|
|
1724
|
+
this._writer.writeBitDouble(edge.startAngle);
|
|
1725
|
+
this._writer.writeBitDouble(edge.endAngle);
|
|
1726
|
+
this._writer.writeBit(edge.counterClockWise);
|
|
1727
|
+
}
|
|
1728
|
+
else if (edge instanceof HatchBoundaryPathEllipse) {
|
|
1729
|
+
this._writer.write2RawDouble(edge.center);
|
|
1730
|
+
this._writer.write2RawDouble(edge.majorAxisEndPoint);
|
|
1731
|
+
this._writer.writeBitDouble(edge.minorToMajorRatio);
|
|
1732
|
+
this._writer.writeBitDouble(edge.startAngle);
|
|
1733
|
+
this._writer.writeBitDouble(edge.endAngle);
|
|
1734
|
+
this._writer.writeBit(edge.counterClockWise);
|
|
1735
|
+
}
|
|
1736
|
+
else if (edge instanceof HatchBoundaryPathSpline) {
|
|
1737
|
+
this._writer.writeBitLong(edge.degree);
|
|
1738
|
+
this._writer.writeBit(edge.isRational);
|
|
1739
|
+
this._writer.writeBit(edge.isPeriodic);
|
|
1740
|
+
this._writer.writeBitLong(edge.knots.length);
|
|
1741
|
+
this._writer.writeBitLong(edge.controlPoints.length);
|
|
1742
|
+
for (const k of edge.knots) {
|
|
1743
|
+
this._writer.writeBitDouble(k);
|
|
1744
|
+
}
|
|
1745
|
+
for (let p = 0; p < edge.controlPoints.length; ++p) {
|
|
1746
|
+
this._writer.write2RawDouble(new XY(edge.controlPoints[p].X, edge.controlPoints[p].Y));
|
|
1747
|
+
if (edge.isRational) {
|
|
1748
|
+
this._writer.writeBitDouble(edge.controlPoints[p].Z);
|
|
1749
|
+
}
|
|
1750
|
+
}
|
|
1751
|
+
if (this.R2010Plus) {
|
|
1752
|
+
this._writer.writeBitLong(edge.fitPoints.length);
|
|
1753
|
+
if (edge.fitPoints.length > 0) {
|
|
1754
|
+
for (const fp of edge.fitPoints) {
|
|
1755
|
+
this._writer.write2RawDouble(fp);
|
|
1756
|
+
}
|
|
1757
|
+
this._writer.write2RawDouble(edge.startTangent);
|
|
1758
|
+
this._writer.write2RawDouble(edge.endTangent);
|
|
1759
|
+
}
|
|
1760
|
+
}
|
|
1761
|
+
}
|
|
1762
|
+
else {
|
|
1763
|
+
throw new Error(`Unrecognized Boundary type: ${edge.constructor.name}`);
|
|
1764
|
+
}
|
|
1765
|
+
}
|
|
1766
|
+
}
|
|
1767
|
+
this._writer.writeBitLong(boundaryPath.entities.length);
|
|
1768
|
+
for (const e of boundaryPath.entities) {
|
|
1769
|
+
this._writer.handleReferenceTyped(DwgReferenceType.SoftPointer, e);
|
|
1770
|
+
}
|
|
1771
|
+
}
|
|
1772
|
+
this._writer.writeBitShort(hatch.style);
|
|
1773
|
+
this._writer.writeBitShort(hatch.patternType);
|
|
1774
|
+
if (!hatch.isSolid) {
|
|
1775
|
+
const pattern = hatch.pattern;
|
|
1776
|
+
this._writer.writeBitDouble(hatch.patternAngle);
|
|
1777
|
+
this._writer.writeBitDouble(hatch.patternScale);
|
|
1778
|
+
this._writer.writeBit(hatch.isDouble);
|
|
1779
|
+
this._writer.writeBitShort(pattern.lines.length);
|
|
1780
|
+
for (const line of pattern.lines) {
|
|
1781
|
+
this._writer.writeBitDouble(line.angle);
|
|
1782
|
+
this._writer.write2BitDouble(line.basePoint);
|
|
1783
|
+
this._writer.write2BitDouble(line.offset);
|
|
1784
|
+
this._writer.writeBitShort(line.dashLengths.length);
|
|
1785
|
+
for (const dl of line.dashLengths) {
|
|
1786
|
+
this._writer.writeBitDouble(dl);
|
|
1787
|
+
}
|
|
1788
|
+
}
|
|
1789
|
+
}
|
|
1790
|
+
if (hasDerivedBoundary) {
|
|
1791
|
+
this._writer.writeBitDouble(hatch.pixelSize);
|
|
1792
|
+
}
|
|
1793
|
+
this._writer.writeBitLong(hatch.seedPoints.length);
|
|
1794
|
+
for (const sp of hatch.seedPoints) {
|
|
1795
|
+
this._writer.write2RawDouble(sp);
|
|
1796
|
+
}
|
|
1797
|
+
}
|
|
1798
|
+
writeLeader(leader) {
|
|
1799
|
+
this._writer.writeBit(false);
|
|
1800
|
+
this._writer.writeBitShort(leader.creationType);
|
|
1801
|
+
this._writer.writeBitShort(leader.pathType);
|
|
1802
|
+
this._writer.writeBitLong(leader.vertices.length);
|
|
1803
|
+
for (const v of leader.vertices) {
|
|
1804
|
+
this._writer.write3BitDouble(v);
|
|
1805
|
+
}
|
|
1806
|
+
this._writer.write3BitDouble(leader.vertices.length > 0 ? leader.vertices[0] : XYZ.Zero);
|
|
1807
|
+
this._writer.write3BitDouble(leader.normal);
|
|
1808
|
+
this._writer.write3BitDouble(leader.horizontalDirection);
|
|
1809
|
+
this._writer.write3BitDouble(leader.blockOffset);
|
|
1810
|
+
if (this._version >= ACadVersion.AC1014) {
|
|
1811
|
+
this._writer.write3BitDouble(leader.annotationOffset);
|
|
1812
|
+
}
|
|
1813
|
+
if (this.R13_14Only) {
|
|
1814
|
+
this._writer.writeBitDouble(leader.style.dimensionLineGap);
|
|
1815
|
+
}
|
|
1816
|
+
if (this._version <= ACadVersion.AC1021) {
|
|
1817
|
+
this._writer.writeBitDouble(leader.textHeight);
|
|
1818
|
+
this._writer.writeBitDouble(leader.textWidth);
|
|
1819
|
+
}
|
|
1820
|
+
this._writer.writeBit(leader.hookLineDirection === HookLineDirection.Same);
|
|
1821
|
+
this._writer.writeBit(leader.arrowHeadEnabled);
|
|
1822
|
+
if (this.R13_14Only) {
|
|
1823
|
+
this._writer.writeBitShort(0);
|
|
1824
|
+
this._writer.writeBitDouble(leader.style.arrowSize * leader.style.scaleFactor);
|
|
1825
|
+
this._writer.writeBit(false);
|
|
1826
|
+
this._writer.writeBit(false);
|
|
1827
|
+
this._writer.writeBitShort(0);
|
|
1828
|
+
this._writer.writeBitShort(0);
|
|
1829
|
+
this._writer.writeBit(false);
|
|
1830
|
+
this._writer.writeBit(false);
|
|
1831
|
+
}
|
|
1832
|
+
if (this.R2000Plus) {
|
|
1833
|
+
this._writer.writeBitShort(0);
|
|
1834
|
+
this._writer.writeBit(false);
|
|
1835
|
+
this._writer.writeBit(false);
|
|
1836
|
+
}
|
|
1837
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardPointer, null);
|
|
1838
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardPointer, leader.style);
|
|
1839
|
+
}
|
|
1840
|
+
writeOle2Frame(ole2Frame) {
|
|
1841
|
+
this._writer.writeBitShort(ole2Frame.version);
|
|
1842
|
+
if (this.R2000Plus) {
|
|
1843
|
+
this._writer.writeBitShort(0);
|
|
1844
|
+
}
|
|
1845
|
+
this._writer.writeBitLong(ole2Frame.binaryData.length);
|
|
1846
|
+
this._writer.writeBytes(ole2Frame.binaryData);
|
|
1847
|
+
if (this.R2000Plus) {
|
|
1848
|
+
this._writer.writeByte(3);
|
|
1849
|
+
}
|
|
1850
|
+
}
|
|
1851
|
+
writeMultiLeader(multiLeader) {
|
|
1852
|
+
if (this.R2010Plus) {
|
|
1853
|
+
this._writer.writeBitShort(2);
|
|
1854
|
+
}
|
|
1855
|
+
this.writeMultiLeaderAnnotContextSubObject(true, multiLeader.contextData);
|
|
1856
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardPointer, multiLeader.style);
|
|
1857
|
+
this._writer.writeBitLong(multiLeader.propertyOverrideFlags);
|
|
1858
|
+
this._writer.writeBitShort(multiLeader.pathType);
|
|
1859
|
+
this._writer.writeCmColor(multiLeader.lineColor);
|
|
1860
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardPointer, multiLeader.leaderLineType);
|
|
1861
|
+
this._writer.writeBitLong(multiLeader.leaderLineWeight);
|
|
1862
|
+
this._writer.writeBit(multiLeader.enableLanding);
|
|
1863
|
+
this._writer.writeBit(multiLeader.enableDogleg);
|
|
1864
|
+
this._writer.writeBitDouble(multiLeader.landingDistance);
|
|
1865
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardPointer, multiLeader.arrowhead);
|
|
1866
|
+
this._writer.writeBitDouble(multiLeader.arrowheadSize);
|
|
1867
|
+
this._writer.writeBitShort(multiLeader.contentType);
|
|
1868
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardPointer, multiLeader.textStyle);
|
|
1869
|
+
this._writer.writeBitShort(multiLeader.textLeftAttachment);
|
|
1870
|
+
this._writer.writeBitShort(multiLeader.textRightAttachment);
|
|
1871
|
+
this._writer.writeBitShort(multiLeader.textAngle);
|
|
1872
|
+
this._writer.writeBitShort(multiLeader.textAlignment);
|
|
1873
|
+
this._writer.writeCmColor(multiLeader.textColor);
|
|
1874
|
+
this._writer.writeBit(multiLeader.textFrame);
|
|
1875
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardPointer, multiLeader.blockContentId);
|
|
1876
|
+
this._writer.writeCmColor(multiLeader.blockContentColor);
|
|
1877
|
+
this._writer.write3BitDouble(multiLeader.blockContentScale);
|
|
1878
|
+
this._writer.writeBitDouble(multiLeader.blockContentRotation);
|
|
1879
|
+
this._writer.writeBitShort(multiLeader.blockContentConnection);
|
|
1880
|
+
this._writer.writeBit(multiLeader.enableAnnotationScale);
|
|
1881
|
+
const blockLabelCount = multiLeader.blockAttributes.length;
|
|
1882
|
+
this._writer.writeBitLong(blockLabelCount);
|
|
1883
|
+
for (let bl = 0; bl < blockLabelCount; bl++) {
|
|
1884
|
+
const blockAttribute = multiLeader.blockAttributes[bl];
|
|
1885
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardPointer, blockAttribute.attributeDefinition);
|
|
1886
|
+
this._writer.writeVariableText(blockAttribute.text);
|
|
1887
|
+
this._writer.writeBitShort(blockAttribute.index);
|
|
1888
|
+
this._writer.writeBitDouble(blockAttribute.width);
|
|
1889
|
+
}
|
|
1890
|
+
this._writer.writeBit(multiLeader.textDirectionNegative);
|
|
1891
|
+
this._writer.writeBitShort(multiLeader.textAligninIPE ? 1 : 0);
|
|
1892
|
+
this._writer.writeBitShort(multiLeader.textAttachmentPoint);
|
|
1893
|
+
this._writer.writeBitDouble(multiLeader.scaleFactor);
|
|
1894
|
+
if (this.R2010Plus) {
|
|
1895
|
+
this._writer.writeBitShort(multiLeader.textAttachmentDirection);
|
|
1896
|
+
this._writer.writeBitShort(multiLeader.textBottomAttachment);
|
|
1897
|
+
this._writer.writeBitShort(multiLeader.textTopAttachment);
|
|
1898
|
+
}
|
|
1899
|
+
if (this.R2013Plus) {
|
|
1900
|
+
this._writer.writeBit(multiLeader.extendedToText);
|
|
1901
|
+
}
|
|
1902
|
+
}
|
|
1903
|
+
writeMultiLeaderAnnotContextSubObject(writeLeaderRootsCount, annotContext) {
|
|
1904
|
+
const leaderRootCount = annotContext.leaderRoots.length;
|
|
1905
|
+
if (writeLeaderRootsCount) {
|
|
1906
|
+
this._writer.writeBitLong(leaderRootCount);
|
|
1907
|
+
}
|
|
1908
|
+
else {
|
|
1909
|
+
this._writer.writeBitLong(0);
|
|
1910
|
+
this._writer.writeBit(false);
|
|
1911
|
+
this._writer.writeBit(false);
|
|
1912
|
+
this._writer.writeBit(false);
|
|
1913
|
+
this._writer.writeBit(false);
|
|
1914
|
+
this._writer.writeBit(false);
|
|
1915
|
+
this._writer.writeBit(leaderRootCount === 2);
|
|
1916
|
+
this._writer.writeBit(leaderRootCount === 1);
|
|
1917
|
+
}
|
|
1918
|
+
for (let i = 0; i < leaderRootCount; i++) {
|
|
1919
|
+
this.writeLeaderRoot(annotContext.leaderRoots[i]);
|
|
1920
|
+
}
|
|
1921
|
+
this._writer.writeBitDouble(annotContext.scaleFactor);
|
|
1922
|
+
this._writer.write3BitDouble(annotContext.contentBasePoint);
|
|
1923
|
+
this._writer.writeBitDouble(annotContext.textHeight);
|
|
1924
|
+
this._writer.writeBitDouble(annotContext.arrowheadSize);
|
|
1925
|
+
this._writer.writeBitDouble(annotContext.landingGap);
|
|
1926
|
+
this._writer.writeBitShort(annotContext.textLeftAttachment);
|
|
1927
|
+
this._writer.writeBitShort(annotContext.textRightAttachment);
|
|
1928
|
+
this._writer.writeBitShort(annotContext.textAlignment);
|
|
1929
|
+
this._writer.writeBitShort(annotContext.blockContentConnection);
|
|
1930
|
+
this._writer.writeBit(annotContext.hasTextContents);
|
|
1931
|
+
if (annotContext.hasTextContents) {
|
|
1932
|
+
this._writer.writeVariableText(annotContext.textLabel);
|
|
1933
|
+
this._writer.write3BitDouble(annotContext.textNormal);
|
|
1934
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardPointer, annotContext.textStyle);
|
|
1935
|
+
this._writer.write3BitDouble(annotContext.textLocation);
|
|
1936
|
+
this._writer.write3BitDouble(annotContext.direction);
|
|
1937
|
+
this._writer.writeBitDouble(annotContext.textRotation);
|
|
1938
|
+
this._writer.writeBitDouble(annotContext.boundaryWidth);
|
|
1939
|
+
this._writer.writeBitDouble(annotContext.boundaryHeight);
|
|
1940
|
+
this._writer.writeBitDouble(annotContext.lineSpacingFactor);
|
|
1941
|
+
this._writer.writeBitShort(annotContext.lineSpacing);
|
|
1942
|
+
this._writer.writeCmColor(annotContext.textColor);
|
|
1943
|
+
this._writer.writeBitShort(annotContext.textAttachmentPoint);
|
|
1944
|
+
this._writer.writeBitShort(annotContext.flowDirection);
|
|
1945
|
+
this._writer.writeCmColor(annotContext.backgroundFillColor);
|
|
1946
|
+
this._writer.writeBitDouble(annotContext.backgroundScaleFactor);
|
|
1947
|
+
this._writer.writeBitLong(annotContext.backgroundTransparency);
|
|
1948
|
+
this._writer.writeBit(annotContext.backgroundFillEnabled);
|
|
1949
|
+
this._writer.writeBit(annotContext.backgroundMaskFillOn);
|
|
1950
|
+
this._writer.writeBitShort(annotContext.columnType);
|
|
1951
|
+
this._writer.writeBit(annotContext.textHeightAutomatic);
|
|
1952
|
+
this._writer.writeBitDouble(annotContext.columnWidth);
|
|
1953
|
+
this._writer.writeBitDouble(annotContext.columnGutter);
|
|
1954
|
+
this._writer.writeBit(annotContext.columnFlowReversed);
|
|
1955
|
+
const columnSizesCount = annotContext.columnSizes.length;
|
|
1956
|
+
this._writer.writeBitLong(columnSizesCount);
|
|
1957
|
+
for (let i = 0; i < columnSizesCount; i++) {
|
|
1958
|
+
this._writer.writeBitDouble(annotContext.columnSizes[i]);
|
|
1959
|
+
}
|
|
1960
|
+
this._writer.writeBit(annotContext.wordBreak);
|
|
1961
|
+
this._writer.writeBit(false);
|
|
1962
|
+
}
|
|
1963
|
+
else if (annotContext.hasContentsBlock) {
|
|
1964
|
+
this._writer.writeBit(annotContext.hasContentsBlock);
|
|
1965
|
+
this._writer.handleReferenceTyped(DwgReferenceType.SoftPointer, annotContext.blockContent);
|
|
1966
|
+
this._writer.write3BitDouble(annotContext.blockContentNormal);
|
|
1967
|
+
this._writer.write3BitDouble(annotContext.blockContentLocation);
|
|
1968
|
+
this._writer.write3BitDouble(annotContext.blockContentScale);
|
|
1969
|
+
this._writer.writeBitDouble(annotContext.blockContentRotation);
|
|
1970
|
+
this._writer.writeCmColor(annotContext.blockContentColor);
|
|
1971
|
+
const m4 = annotContext.transformationMatrix;
|
|
1972
|
+
this._writer.writeBitDouble(m4.M00);
|
|
1973
|
+
this._writer.writeBitDouble(m4.M10);
|
|
1974
|
+
this._writer.writeBitDouble(m4.M20);
|
|
1975
|
+
this._writer.writeBitDouble(m4.M30);
|
|
1976
|
+
this._writer.writeBitDouble(m4.M01);
|
|
1977
|
+
this._writer.writeBitDouble(m4.M11);
|
|
1978
|
+
this._writer.writeBitDouble(m4.M21);
|
|
1979
|
+
this._writer.writeBitDouble(m4.M31);
|
|
1980
|
+
this._writer.writeBitDouble(m4.M02);
|
|
1981
|
+
this._writer.writeBitDouble(m4.M12);
|
|
1982
|
+
this._writer.writeBitDouble(m4.M22);
|
|
1983
|
+
this._writer.writeBitDouble(m4.M32);
|
|
1984
|
+
this._writer.writeBitDouble(m4.M03);
|
|
1985
|
+
this._writer.writeBitDouble(m4.M13);
|
|
1986
|
+
this._writer.writeBitDouble(m4.M23);
|
|
1987
|
+
this._writer.writeBitDouble(m4.M33);
|
|
1988
|
+
}
|
|
1989
|
+
this._writer.write3BitDouble(annotContext.basePoint);
|
|
1990
|
+
this._writer.write3BitDouble(annotContext.baseDirection);
|
|
1991
|
+
this._writer.write3BitDouble(annotContext.baseVertical);
|
|
1992
|
+
this._writer.writeBit(annotContext.normalReversed);
|
|
1993
|
+
if (this.R2010Plus) {
|
|
1994
|
+
this._writer.writeBitShort(annotContext.textTopAttachment);
|
|
1995
|
+
this._writer.writeBitShort(annotContext.textBottomAttachment);
|
|
1996
|
+
}
|
|
1997
|
+
}
|
|
1998
|
+
writeLeaderRoot(leaderRoot) {
|
|
1999
|
+
this._writer.writeBit(leaderRoot.contentValid);
|
|
2000
|
+
this._writer.writeBit(true);
|
|
2001
|
+
this._writer.write3BitDouble(leaderRoot.connectionPoint);
|
|
2002
|
+
this._writer.write3BitDouble(leaderRoot.direction);
|
|
2003
|
+
this._writer.writeBitLong(leaderRoot.breakStartEndPointsPairs.length);
|
|
2004
|
+
for (const sep of leaderRoot.breakStartEndPointsPairs) {
|
|
2005
|
+
this._writer.write3BitDouble(sep.startPoint);
|
|
2006
|
+
this._writer.write3BitDouble(sep.endPoint);
|
|
2007
|
+
}
|
|
2008
|
+
this._writer.writeBitLong(leaderRoot.leaderIndex);
|
|
2009
|
+
this._writer.writeBitDouble(leaderRoot.landingDistance);
|
|
2010
|
+
this._writer.writeBitLong(leaderRoot.lines.length);
|
|
2011
|
+
for (const leaderLine of leaderRoot.lines) {
|
|
2012
|
+
this.writeLeaderLine(leaderLine);
|
|
2013
|
+
}
|
|
2014
|
+
if (this.R2010Plus) {
|
|
2015
|
+
this._writer.writeBitShort(leaderRoot.textAttachmentDirection);
|
|
2016
|
+
}
|
|
2017
|
+
}
|
|
2018
|
+
writeLeaderLine(leaderLine) {
|
|
2019
|
+
this._writer.writeBitLong(leaderLine.points.length);
|
|
2020
|
+
for (const point of leaderLine.points) {
|
|
2021
|
+
this._writer.write3BitDouble(point);
|
|
2022
|
+
}
|
|
2023
|
+
this._writer.writeBitLong(leaderLine.breakInfoCount);
|
|
2024
|
+
if (leaderLine.breakInfoCount > 0) {
|
|
2025
|
+
this._writer.writeBitLong(leaderLine.segmentIndex);
|
|
2026
|
+
this._writer.writeBitLong(leaderLine.startEndPoints.length);
|
|
2027
|
+
for (const sep of leaderLine.startEndPoints) {
|
|
2028
|
+
this._writer.write3BitDouble(sep.startPoint);
|
|
2029
|
+
this._writer.write3BitDouble(sep.endPoint);
|
|
2030
|
+
}
|
|
2031
|
+
}
|
|
2032
|
+
this._writer.writeBitLong(leaderLine.index);
|
|
2033
|
+
if (this.R2010Plus) {
|
|
2034
|
+
this._writer.writeBitShort(leaderLine.pathType);
|
|
2035
|
+
this._writer.writeCmColor(leaderLine.lineColor);
|
|
2036
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardPointer, leaderLine.lineType);
|
|
2037
|
+
this._writer.writeBitLong(leaderLine.lineWeight);
|
|
2038
|
+
this._writer.writeBitDouble(leaderLine.arrowheadSize);
|
|
2039
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardPointer, leaderLine.arrowhead);
|
|
2040
|
+
this._writer.writeBitLong(leaderLine.overrideFlags);
|
|
2041
|
+
}
|
|
2042
|
+
}
|
|
2043
|
+
writeLine(line) {
|
|
2044
|
+
if (this.R13_14Only) {
|
|
2045
|
+
this._writer.write3BitDouble(line.startPoint);
|
|
2046
|
+
this._writer.write3BitDouble(line.endPoint);
|
|
2047
|
+
}
|
|
2048
|
+
if (this.R2000Plus) {
|
|
2049
|
+
const flag = line.startPoint.z === 0.0 && line.endPoint.z === 0.0;
|
|
2050
|
+
this._writer.writeBit(flag);
|
|
2051
|
+
this._writer.writeRawDouble(line.startPoint.x);
|
|
2052
|
+
this._writer.writeBitDoubleWithDefault(line.endPoint.x, line.startPoint.x);
|
|
2053
|
+
this._writer.writeRawDouble(line.startPoint.y);
|
|
2054
|
+
this._writer.writeBitDoubleWithDefault(line.endPoint.y, line.startPoint.y);
|
|
2055
|
+
if (!flag) {
|
|
2056
|
+
this._writer.writeRawDouble(line.startPoint.z);
|
|
2057
|
+
this._writer.writeBitDoubleWithDefault(line.endPoint.z, line.startPoint.z);
|
|
2058
|
+
}
|
|
2059
|
+
}
|
|
2060
|
+
this._writer.writeBitThickness(line.thickness);
|
|
2061
|
+
this._writer.writeBitExtrusion(line.normal);
|
|
2062
|
+
}
|
|
2063
|
+
writePoint(point) {
|
|
2064
|
+
this._writer.write3BitDouble(point.location);
|
|
2065
|
+
this._writer.writeBitThickness(point.thickness);
|
|
2066
|
+
this._writer.writeBitExtrusion(point.normal);
|
|
2067
|
+
this._writer.writeBitDouble(point.rotation);
|
|
2068
|
+
}
|
|
2069
|
+
writePolyfaceMesh(fm) {
|
|
2070
|
+
this._writer.writeBitShort(fm.vertices.length);
|
|
2071
|
+
this._writer.writeBitShort(fm.faces.length);
|
|
2072
|
+
if (this.R2004Plus) {
|
|
2073
|
+
this._writer.writeBitLong(fm.vertices.length + fm.faces.length);
|
|
2074
|
+
for (const v of fm.vertices) {
|
|
2075
|
+
this._writer.handleReferenceTyped(DwgReferenceType.SoftPointer, v);
|
|
2076
|
+
}
|
|
2077
|
+
for (const f of fm.faces) {
|
|
2078
|
+
this._writer.handleReferenceTyped(DwgReferenceType.SoftPointer, f);
|
|
2079
|
+
}
|
|
2080
|
+
}
|
|
2081
|
+
if (this.R13_15Only) {
|
|
2082
|
+
const child = [...fm.vertices, ...fm.faces];
|
|
2083
|
+
this._writer.handleReferenceTyped(DwgReferenceType.SoftPointer, child.length > 0 ? child[0] : null);
|
|
2084
|
+
this._writer.handleReferenceTyped(DwgReferenceType.SoftPointer, child.length > 0 ? child[child.length - 1] : null);
|
|
2085
|
+
}
|
|
2086
|
+
this._writer.handleReferenceTyped(DwgReferenceType.SoftPointer, fm.vertices.Seqend);
|
|
2087
|
+
}
|
|
2088
|
+
writePolyline2D(pline) {
|
|
2089
|
+
this._writer.writeBitShort(pline.flags);
|
|
2090
|
+
this._writer.writeBitShort(pline.smoothSurface);
|
|
2091
|
+
this._writer.writeBitDouble(pline.startWidth);
|
|
2092
|
+
this._writer.writeBitDouble(pline.endWidth);
|
|
2093
|
+
this._writer.writeBitThickness(pline.thickness);
|
|
2094
|
+
this._writer.writeBitDouble(pline.elevation);
|
|
2095
|
+
this._writer.writeBitExtrusion(pline.normal);
|
|
2096
|
+
if (this.R2004Plus) {
|
|
2097
|
+
this._writer.writeBitLong(pline.vertices.length);
|
|
2098
|
+
for (const v of pline.vertices) {
|
|
2099
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardOwnership, v);
|
|
2100
|
+
}
|
|
2101
|
+
}
|
|
2102
|
+
if (this._version >= ACadVersion.AC1012 && this._version <= ACadVersion.AC1015) {
|
|
2103
|
+
this._writer.handleReferenceTyped(DwgReferenceType.SoftPointer, pline.vertices.length > 0 ? pline.vertices[0] : null);
|
|
2104
|
+
this._writer.handleReferenceTyped(DwgReferenceType.SoftPointer, pline.vertices.length > 0 ? pline.vertices[pline.vertices.length - 1] : null);
|
|
2105
|
+
}
|
|
2106
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardOwnership, pline.vertices.Seqend);
|
|
2107
|
+
}
|
|
2108
|
+
writePolyline3D(pline) {
|
|
2109
|
+
this._writer.writeByte(0);
|
|
2110
|
+
this._writer.writeByte((pline.flags & PolylineFlags.ClosedPolylineOrClosedPolygonMeshInM) !== 0 ? 1 : 0);
|
|
2111
|
+
if (this.R2004Plus) {
|
|
2112
|
+
this._writer.writeBitLong(pline.vertices.length);
|
|
2113
|
+
for (const vertex of pline.vertices) {
|
|
2114
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardOwnership, vertex);
|
|
2115
|
+
}
|
|
2116
|
+
}
|
|
2117
|
+
if (this._version >= ACadVersion.AC1012 && this._version <= ACadVersion.AC1015) {
|
|
2118
|
+
this._writer.handleReferenceTyped(DwgReferenceType.SoftPointer, pline.vertices.length > 0 ? pline.vertices[0] : null);
|
|
2119
|
+
this._writer.handleReferenceTyped(DwgReferenceType.SoftPointer, pline.vertices.length > 0 ? pline.vertices[pline.vertices.length - 1] : null);
|
|
2120
|
+
}
|
|
2121
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardOwnership, pline.vertices.Seqend);
|
|
2122
|
+
}
|
|
2123
|
+
writePolygonMesh(pline) {
|
|
2124
|
+
this._writer.writeBitShort(pline.flags);
|
|
2125
|
+
this._writer.writeBitShort(pline.smoothSurface);
|
|
2126
|
+
this._writer.writeBitShort(pline.mVertexCount);
|
|
2127
|
+
this._writer.writeBitShort(pline.nVertexCount);
|
|
2128
|
+
this._writer.writeBitShort(pline.mSmoothSurfaceDensity);
|
|
2129
|
+
this._writer.writeBitShort(pline.nSmoothSurfaceDensity);
|
|
2130
|
+
if (this._version >= ACadVersion.AC1012 && this._version <= ACadVersion.AC1015) {
|
|
2131
|
+
this._writer.handleReferenceTyped(DwgReferenceType.SoftPointer, pline.vertices.length > 0 ? pline.vertices[0] : null);
|
|
2132
|
+
this._writer.handleReferenceTyped(DwgReferenceType.SoftPointer, pline.vertices.length > 0 ? pline.vertices[pline.vertices.length - 1] : null);
|
|
2133
|
+
}
|
|
2134
|
+
if (this.R2004Plus) {
|
|
2135
|
+
this._writer.writeBitLong(pline.vertices.length);
|
|
2136
|
+
for (const vertex of pline.vertices) {
|
|
2137
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardOwnership, vertex);
|
|
2138
|
+
}
|
|
2139
|
+
}
|
|
2140
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardOwnership, pline.vertices.Seqend);
|
|
2141
|
+
}
|
|
2142
|
+
writeSeqend(seqend) {
|
|
2143
|
+
if (seqend == null)
|
|
2144
|
+
return;
|
|
2145
|
+
const prevHolder = this._prev;
|
|
2146
|
+
const nextHolder = this._next;
|
|
2147
|
+
this._prev = null;
|
|
2148
|
+
this._next = null;
|
|
2149
|
+
this.writeCommonEntityData(seqend);
|
|
2150
|
+
this.registerObject(seqend);
|
|
2151
|
+
this._prev = prevHolder;
|
|
2152
|
+
this._next = nextHolder;
|
|
2153
|
+
}
|
|
2154
|
+
writeShape(shape) {
|
|
2155
|
+
this._writer.write3BitDouble(shape.insertionPoint);
|
|
2156
|
+
this._writer.writeBitDouble(shape.size);
|
|
2157
|
+
this._writer.writeBitDouble(shape.rotation);
|
|
2158
|
+
this._writer.writeBitDouble(shape.relativeXScale);
|
|
2159
|
+
this._writer.writeBitDouble(shape.obliqueAngle);
|
|
2160
|
+
this._writer.writeBitDouble(shape.thickness);
|
|
2161
|
+
this._writer.writeBitShort(shape.shapeIndex);
|
|
2162
|
+
this._writer.write3BitDouble(shape.normal);
|
|
2163
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardPointer, null);
|
|
2164
|
+
}
|
|
2165
|
+
writeSolid(solid) {
|
|
2166
|
+
this._writer.writeBitThickness(solid.thickness);
|
|
2167
|
+
this._writer.writeBitDouble(solid.firstCorner.z);
|
|
2168
|
+
this._writer.writeRawDouble(solid.firstCorner.x);
|
|
2169
|
+
this._writer.writeRawDouble(solid.firstCorner.y);
|
|
2170
|
+
this._writer.writeRawDouble(solid.secondCorner.x);
|
|
2171
|
+
this._writer.writeRawDouble(solid.secondCorner.y);
|
|
2172
|
+
this._writer.writeRawDouble(solid.thirdCorner.x);
|
|
2173
|
+
this._writer.writeRawDouble(solid.thirdCorner.y);
|
|
2174
|
+
this._writer.writeRawDouble(solid.fourthCorner.x);
|
|
2175
|
+
this._writer.writeRawDouble(solid.fourthCorner.y);
|
|
2176
|
+
this._writer.writeBitExtrusion(solid.normal);
|
|
2177
|
+
}
|
|
2178
|
+
writeSolid3D(_solid) {
|
|
2179
|
+
// Empty in C# source
|
|
2180
|
+
}
|
|
2181
|
+
writeCadImage(image) {
|
|
2182
|
+
this._writer.writeBitLong(image.classVersion);
|
|
2183
|
+
this._writer.write3BitDouble(image.insertPoint);
|
|
2184
|
+
this._writer.write3BitDouble(image.uVector);
|
|
2185
|
+
this._writer.write3BitDouble(image.vVector);
|
|
2186
|
+
this._writer.write2RawDouble(image.size);
|
|
2187
|
+
this._writer.writeBitShort(image.flags);
|
|
2188
|
+
this._writer.writeBit(image.clippingState);
|
|
2189
|
+
this._writer.writeByte(image.brightness);
|
|
2190
|
+
this._writer.writeByte(image.contrast);
|
|
2191
|
+
this._writer.writeByte(image.fade);
|
|
2192
|
+
if (this.R2010Plus) {
|
|
2193
|
+
this._writer.writeBit(image.clipMode === ClipMode.Inside);
|
|
2194
|
+
}
|
|
2195
|
+
this._writer.writeBitShort(image.clipType);
|
|
2196
|
+
switch (image.clipType) {
|
|
2197
|
+
case ClipType.Rectangular:
|
|
2198
|
+
this._writer.write2RawDouble(image.clipBoundaryVertices[0]);
|
|
2199
|
+
this._writer.write2RawDouble(image.clipBoundaryVertices[1]);
|
|
2200
|
+
break;
|
|
2201
|
+
case ClipType.Polygonal:
|
|
2202
|
+
this._writer.writeBitLong(image.clipBoundaryVertices.length);
|
|
2203
|
+
for (let i = 0; i < image.clipBoundaryVertices.length; i++) {
|
|
2204
|
+
this._writer.write2RawDouble(image.clipBoundaryVertices[i]);
|
|
2205
|
+
}
|
|
2206
|
+
break;
|
|
2207
|
+
}
|
|
2208
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardPointer, image.definition);
|
|
2209
|
+
this._writer.handleReference(image.definitionReactor);
|
|
2210
|
+
if (image.definitionReactor != null) {
|
|
2211
|
+
this._objects.push(image.definitionReactor);
|
|
2212
|
+
}
|
|
2213
|
+
}
|
|
2214
|
+
writeSpline(spline) {
|
|
2215
|
+
let scenario;
|
|
2216
|
+
if (this.R2013Plus) {
|
|
2217
|
+
if (spline.knotParametrization === KnotParametrization.Custom || spline.fitPoints.length === 0) {
|
|
2218
|
+
scenario = 1;
|
|
2219
|
+
spline.flags1 &= ~SplineFlags1.UseKnotParameter;
|
|
2220
|
+
}
|
|
2221
|
+
else {
|
|
2222
|
+
scenario = 2;
|
|
2223
|
+
spline.flags1 |= SplineFlags1.MethodFitPoints | SplineFlags1.UseKnotParameter;
|
|
2224
|
+
}
|
|
2225
|
+
this._writer.writeBitLong(scenario);
|
|
2226
|
+
this._writer.writeBitLong(spline.flags1);
|
|
2227
|
+
this._writer.writeBitLong(spline.knotParametrization);
|
|
2228
|
+
}
|
|
2229
|
+
else {
|
|
2230
|
+
scenario = spline.fitPoints.length <= 0 ? 1 : 2;
|
|
2231
|
+
if (scenario === 2 && spline.knotParametrization !== 0) {
|
|
2232
|
+
scenario = 1;
|
|
2233
|
+
}
|
|
2234
|
+
this._writer.writeBitLong(scenario);
|
|
2235
|
+
}
|
|
2236
|
+
this._writer.writeBitLong(spline.degree);
|
|
2237
|
+
const flag = spline.weights.length > 0;
|
|
2238
|
+
switch (scenario) {
|
|
2239
|
+
case 1:
|
|
2240
|
+
this._writer.writeBit((spline.flags & SplineFlags.Rational) !== 0);
|
|
2241
|
+
this._writer.writeBit((spline.flags & SplineFlags.Closed) !== 0);
|
|
2242
|
+
this._writer.writeBit((spline.flags & SplineFlags.Periodic) !== 0);
|
|
2243
|
+
this._writer.writeBitDouble(spline.knotTolerance);
|
|
2244
|
+
this._writer.writeBitDouble(spline.controlPointTolerance);
|
|
2245
|
+
this._writer.writeBitLong(spline.knots.length);
|
|
2246
|
+
this._writer.writeBitLong(spline.controlPoints.length);
|
|
2247
|
+
this._writer.writeBit(flag);
|
|
2248
|
+
for (const k of spline.knots) {
|
|
2249
|
+
this._writer.writeBitDouble(k);
|
|
2250
|
+
}
|
|
2251
|
+
for (let i = 0; i < spline.controlPoints.length; i++) {
|
|
2252
|
+
this._writer.write3BitDouble(spline.controlPoints[i]);
|
|
2253
|
+
if (flag) {
|
|
2254
|
+
this._writer.writeBitDouble(spline.weights[i]);
|
|
2255
|
+
}
|
|
2256
|
+
}
|
|
2257
|
+
break;
|
|
2258
|
+
case 2:
|
|
2259
|
+
this._writer.writeBitDouble(spline.fitTolerance);
|
|
2260
|
+
this._writer.write3BitDouble(spline.startTangent);
|
|
2261
|
+
this._writer.write3BitDouble(spline.endTangent);
|
|
2262
|
+
this._writer.writeBitLong(spline.fitPoints.length);
|
|
2263
|
+
for (const fp of spline.fitPoints) {
|
|
2264
|
+
this._writer.write3BitDouble(fp);
|
|
2265
|
+
}
|
|
2266
|
+
break;
|
|
2267
|
+
}
|
|
2268
|
+
}
|
|
2269
|
+
writeRay(ray) {
|
|
2270
|
+
this._writer.write3BitDouble(ray.startPoint);
|
|
2271
|
+
this._writer.write3BitDouble(ray.direction);
|
|
2272
|
+
}
|
|
2273
|
+
writeTextEntity(text) {
|
|
2274
|
+
if (this.R13_14Only) {
|
|
2275
|
+
this._writer.writeBitDouble(text.insertPoint.z);
|
|
2276
|
+
this._writer.writeRawDouble(text.insertPoint.x);
|
|
2277
|
+
this._writer.writeRawDouble(text.insertPoint.y);
|
|
2278
|
+
this._writer.writeRawDouble(text.alignmentPoint.x);
|
|
2279
|
+
this._writer.writeRawDouble(text.alignmentPoint.y);
|
|
2280
|
+
this._writer.write3BitDouble(text.normal);
|
|
2281
|
+
this._writer.writeBitDouble(text.thickness);
|
|
2282
|
+
this._writer.writeBitDouble(text.obliqueAngle);
|
|
2283
|
+
this._writer.writeBitDouble(text.rotation);
|
|
2284
|
+
this._writer.writeBitDouble(text.height);
|
|
2285
|
+
this._writer.writeBitDouble(text.widthFactor);
|
|
2286
|
+
this._writer.writeVariableText(text.value);
|
|
2287
|
+
this._writer.writeBitShort(text.mirror);
|
|
2288
|
+
this._writer.writeBitShort(text.horizontalAlignment);
|
|
2289
|
+
this._writer.writeBitShort(text.verticalAlignment);
|
|
2290
|
+
}
|
|
2291
|
+
else {
|
|
2292
|
+
let dataFlags = 0;
|
|
2293
|
+
if (text.insertPoint.z === 0.0)
|
|
2294
|
+
dataFlags |= 0b1;
|
|
2295
|
+
if (XYZ.equals(text.alignmentPoint, XYZ.Zero))
|
|
2296
|
+
dataFlags |= 0b10;
|
|
2297
|
+
if (text.obliqueAngle === 0.0)
|
|
2298
|
+
dataFlags |= 0b100;
|
|
2299
|
+
if (text.rotation === 0.0)
|
|
2300
|
+
dataFlags |= 0b1000;
|
|
2301
|
+
if (text.widthFactor === 1.0)
|
|
2302
|
+
dataFlags |= 0b10000;
|
|
2303
|
+
if (text.mirror === TextMirrorFlag.None)
|
|
2304
|
+
dataFlags |= 0b100000;
|
|
2305
|
+
if (text.horizontalAlignment === TextHorizontalAlignment.Left)
|
|
2306
|
+
dataFlags |= 0b1000000;
|
|
2307
|
+
if (text.verticalAlignment === TextVerticalAlignmentType.Baseline)
|
|
2308
|
+
dataFlags |= 0b10000000;
|
|
2309
|
+
this._writer.writeByte(dataFlags);
|
|
2310
|
+
if ((dataFlags & 0b1) === 0)
|
|
2311
|
+
this._writer.writeRawDouble(text.insertPoint.z);
|
|
2312
|
+
this._writer.writeRawDouble(text.insertPoint.x);
|
|
2313
|
+
this._writer.writeRawDouble(text.insertPoint.y);
|
|
2314
|
+
if ((dataFlags & 0x2) === 0) {
|
|
2315
|
+
this._writer.writeBitDoubleWithDefault(text.alignmentPoint.x, text.insertPoint.x);
|
|
2316
|
+
this._writer.writeBitDoubleWithDefault(text.alignmentPoint.y, text.insertPoint.y);
|
|
2317
|
+
}
|
|
2318
|
+
this._writer.writeBitExtrusion(text.normal);
|
|
2319
|
+
this._writer.writeBitThickness(text.thickness);
|
|
2320
|
+
if ((dataFlags & 0x4) === 0)
|
|
2321
|
+
this._writer.writeRawDouble(text.obliqueAngle);
|
|
2322
|
+
if ((dataFlags & 0x8) === 0)
|
|
2323
|
+
this._writer.writeRawDouble(text.rotation);
|
|
2324
|
+
this._writer.writeRawDouble(text.height);
|
|
2325
|
+
if ((dataFlags & 0x10) === 0)
|
|
2326
|
+
this._writer.writeRawDouble(text.widthFactor);
|
|
2327
|
+
this._writer.writeVariableText(text.value);
|
|
2328
|
+
if ((dataFlags & 0x20) === 0)
|
|
2329
|
+
this._writer.writeBitShort(text.mirror);
|
|
2330
|
+
if ((dataFlags & 0x40) === 0)
|
|
2331
|
+
this._writer.writeBitShort(text.horizontalAlignment);
|
|
2332
|
+
if ((dataFlags & 0x80) === 0)
|
|
2333
|
+
this._writer.writeBitShort(text.verticalAlignment);
|
|
2334
|
+
}
|
|
2335
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardPointer, text.style);
|
|
2336
|
+
}
|
|
2337
|
+
writeMText(mtext) {
|
|
2338
|
+
this._writer.write3BitDouble(mtext.insertPoint);
|
|
2339
|
+
this._writer.write3BitDouble(mtext.normal);
|
|
2340
|
+
this._writer.write3BitDouble(mtext.alignmentPoint);
|
|
2341
|
+
this._writer.writeBitDouble(mtext.rectangleWidth);
|
|
2342
|
+
if (this.R2007Plus) {
|
|
2343
|
+
this._writer.writeBitDouble(mtext.rectangleHeight);
|
|
2344
|
+
}
|
|
2345
|
+
this._writer.writeBitDouble(mtext.height);
|
|
2346
|
+
this._writer.writeBitShort(mtext.attachmentPoint);
|
|
2347
|
+
this._writer.writeBitShort(mtext.drawingDirection);
|
|
2348
|
+
this._writer.writeBitDouble(0);
|
|
2349
|
+
this._writer.writeBitDouble(0);
|
|
2350
|
+
this._writer.writeVariableText(mtext.value);
|
|
2351
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardPointer, mtext.style);
|
|
2352
|
+
if (this.R2000Plus) {
|
|
2353
|
+
this._writer.writeBitShort(mtext.lineSpacingStyle);
|
|
2354
|
+
this._writer.writeBitDouble(mtext.lineSpacing);
|
|
2355
|
+
this._writer.writeBit(false);
|
|
2356
|
+
}
|
|
2357
|
+
if (this.R2004Plus) {
|
|
2358
|
+
this._writer.writeBitLong(mtext.backgroundFillFlags);
|
|
2359
|
+
if ((mtext.backgroundFillFlags & BackgroundFillFlags.UseBackgroundFillColor) !== BackgroundFillFlags.None
|
|
2360
|
+
|| (this._version > ACadVersion.AC1027 && (mtext.backgroundFillFlags & BackgroundFillFlags.TextFrame) > 0)) {
|
|
2361
|
+
this._writer.writeBitDouble(mtext.backgroundScale);
|
|
2362
|
+
this._writer.writeCmColor(mtext.backgroundColor);
|
|
2363
|
+
this._writer.writeBitLong(mtext.backgroundTransparency);
|
|
2364
|
+
}
|
|
2365
|
+
}
|
|
2366
|
+
if (!this.R2018Plus)
|
|
2367
|
+
return;
|
|
2368
|
+
this._writer.writeBit(!mtext.isAnnotative);
|
|
2369
|
+
if (mtext.isAnnotative)
|
|
2370
|
+
return;
|
|
2371
|
+
this._writer.writeBitShort(4);
|
|
2372
|
+
this._writer.writeBit(true);
|
|
2373
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardPointer, null);
|
|
2374
|
+
this._writer.writeBitLong(mtext.attachmentPoint);
|
|
2375
|
+
this._writer.write3BitDouble(mtext.alignmentPoint);
|
|
2376
|
+
this._writer.write3BitDouble(mtext.insertPoint);
|
|
2377
|
+
this._writer.writeBitDouble(mtext.rectangleWidth);
|
|
2378
|
+
this._writer.writeBitDouble(mtext.rectangleHeight);
|
|
2379
|
+
this._writer.writeBitDouble(mtext.horizontalWidth);
|
|
2380
|
+
this._writer.writeBitDouble(mtext.verticalHeight);
|
|
2381
|
+
}
|
|
2382
|
+
writeFaceRecord(face) {
|
|
2383
|
+
this._writer.writeBitShort(face.index1);
|
|
2384
|
+
this._writer.writeBitShort(face.index2);
|
|
2385
|
+
this._writer.writeBitShort(face.index3);
|
|
2386
|
+
this._writer.writeBitShort(face.index4);
|
|
2387
|
+
}
|
|
2388
|
+
writeVertex2D(vertex) {
|
|
2389
|
+
this._writer.writeByte(vertex.flags);
|
|
2390
|
+
this._writer.writeBitDouble(vertex.location.x);
|
|
2391
|
+
this._writer.writeBitDouble(vertex.location.y);
|
|
2392
|
+
this._writer.writeBitDouble(0.0);
|
|
2393
|
+
if (vertex.startWidth !== 0.0 && vertex.endWidth === vertex.startWidth) {
|
|
2394
|
+
this._writer.writeBitDouble(0.0 - vertex.startWidth);
|
|
2395
|
+
}
|
|
2396
|
+
else {
|
|
2397
|
+
this._writer.writeBitDouble(vertex.startWidth);
|
|
2398
|
+
this._writer.writeBitDouble(vertex.endWidth);
|
|
2399
|
+
}
|
|
2400
|
+
this._writer.writeBitDouble(vertex.bulge);
|
|
2401
|
+
if (this.R2010Plus) {
|
|
2402
|
+
this._writer.writeBitLong(vertex.id);
|
|
2403
|
+
}
|
|
2404
|
+
this._writer.writeBitDouble(vertex.curveTangent);
|
|
2405
|
+
}
|
|
2406
|
+
writeVertex(vertex) {
|
|
2407
|
+
this._writer.writeByte(vertex.flags);
|
|
2408
|
+
this._writer.write3BitDouble(vertex.location);
|
|
2409
|
+
}
|
|
2410
|
+
writeTolerance(tolerance) {
|
|
2411
|
+
if (this.R13_14Only) {
|
|
2412
|
+
this._writer.writeBitShort(0);
|
|
2413
|
+
this._writer.writeBitDouble(0.0);
|
|
2414
|
+
this._writer.writeBitDouble(0.0);
|
|
2415
|
+
}
|
|
2416
|
+
this._writer.write3BitDouble(tolerance.insertionPoint);
|
|
2417
|
+
this._writer.write3BitDouble(tolerance.direction);
|
|
2418
|
+
this._writer.write3BitDouble(tolerance.normal);
|
|
2419
|
+
this._writer.writeVariableText(tolerance.text);
|
|
2420
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardPointer, tolerance.style);
|
|
2421
|
+
}
|
|
2422
|
+
writeViewport(viewport) {
|
|
2423
|
+
this._writer.write3BitDouble(viewport.center);
|
|
2424
|
+
this._writer.writeBitDouble(viewport.width);
|
|
2425
|
+
this._writer.writeBitDouble(viewport.height);
|
|
2426
|
+
if (this.R2000Plus) {
|
|
2427
|
+
this._writer.write3BitDouble(viewport.viewTarget);
|
|
2428
|
+
this._writer.write3BitDouble(viewport.viewDirection);
|
|
2429
|
+
this._writer.writeBitDouble(viewport.twistAngle);
|
|
2430
|
+
this._writer.writeBitDouble(viewport.viewHeight);
|
|
2431
|
+
this._writer.writeBitDouble(viewport.lensLength);
|
|
2432
|
+
this._writer.writeBitDouble(viewport.frontClipPlane);
|
|
2433
|
+
this._writer.writeBitDouble(viewport.backClipPlane);
|
|
2434
|
+
this._writer.writeBitDouble(viewport.snapAngle);
|
|
2435
|
+
this._writer.write2RawDouble(viewport.viewCenter);
|
|
2436
|
+
this._writer.write2RawDouble(viewport.snapBase);
|
|
2437
|
+
this._writer.write2RawDouble(viewport.snapSpacing);
|
|
2438
|
+
this._writer.write2RawDouble(viewport.gridSpacing);
|
|
2439
|
+
this._writer.writeBitShort(viewport.circleZoomPercent);
|
|
2440
|
+
}
|
|
2441
|
+
if (this.R2007Plus) {
|
|
2442
|
+
this._writer.writeBitShort(viewport.majorGridLineFrequency);
|
|
2443
|
+
}
|
|
2444
|
+
if (this.R2000Plus) {
|
|
2445
|
+
this._writer.writeBitLong(viewport.frozenLayers.length);
|
|
2446
|
+
this._writer.writeBitLong(viewport.status);
|
|
2447
|
+
this._writer.writeVariableText('');
|
|
2448
|
+
this._writer.writeByte(viewport.renderMode);
|
|
2449
|
+
this._writer.writeBit(viewport.displayUcsIcon);
|
|
2450
|
+
this._writer.writeBit(viewport.ucsPerViewport);
|
|
2451
|
+
this._writer.write3BitDouble(viewport.ucsOrigin);
|
|
2452
|
+
this._writer.write3BitDouble(viewport.ucsXAxis);
|
|
2453
|
+
this._writer.write3BitDouble(viewport.ucsYAxis);
|
|
2454
|
+
this._writer.writeBitDouble(viewport.elevation);
|
|
2455
|
+
this._writer.writeBitShort(viewport.ucsOrthographicType);
|
|
2456
|
+
}
|
|
2457
|
+
if (this.R2004Plus) {
|
|
2458
|
+
this._writer.writeBitShort(viewport.shadePlotMode);
|
|
2459
|
+
}
|
|
2460
|
+
if (this.R2007Plus) {
|
|
2461
|
+
this._writer.writeBit(viewport.useDefaultLighting);
|
|
2462
|
+
this._writer.writeByte(viewport.defaultLightingType);
|
|
2463
|
+
this._writer.writeBitDouble(viewport.brightness);
|
|
2464
|
+
this._writer.writeBitDouble(viewport.contrast);
|
|
2465
|
+
this._writer.writeCmColor(viewport.ambientLightColor);
|
|
2466
|
+
}
|
|
2467
|
+
if (this.R13_14Only) {
|
|
2468
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardPointer, null);
|
|
2469
|
+
}
|
|
2470
|
+
if (this.R2000Plus) {
|
|
2471
|
+
for (const layer of viewport.frozenLayers) {
|
|
2472
|
+
if (this.R2004Plus) {
|
|
2473
|
+
this._writer.handleReferenceTyped(DwgReferenceType.SoftPointer, layer);
|
|
2474
|
+
}
|
|
2475
|
+
else {
|
|
2476
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardPointer, layer);
|
|
2477
|
+
}
|
|
2478
|
+
}
|
|
2479
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardPointer, viewport.boundary);
|
|
2480
|
+
}
|
|
2481
|
+
if (this._version === ACadVersion.AC1015) {
|
|
2482
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardPointer, null);
|
|
2483
|
+
}
|
|
2484
|
+
if (this.R2000Plus) {
|
|
2485
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardPointer, null);
|
|
2486
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardPointer, null);
|
|
2487
|
+
}
|
|
2488
|
+
if (this.R2007Plus) {
|
|
2489
|
+
this._writer.handleReferenceTyped(DwgReferenceType.SoftPointer, null);
|
|
2490
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardPointer, null);
|
|
2491
|
+
this._writer.handleReferenceTyped(DwgReferenceType.SoftPointer, null);
|
|
2492
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardOwnership, null);
|
|
2493
|
+
}
|
|
2494
|
+
}
|
|
2495
|
+
writeXLine(xline) {
|
|
2496
|
+
this._writer.write3BitDouble(xline.firstPoint);
|
|
2497
|
+
this._writer.write3BitDouble(xline.direction);
|
|
2498
|
+
}
|
|
2499
|
+
writeChildEntities(entities, seqend) {
|
|
2500
|
+
if (entities.length === 0)
|
|
2501
|
+
return;
|
|
2502
|
+
const prevHolder = this._prev;
|
|
2503
|
+
const nextHolder = this._next;
|
|
2504
|
+
this._prev = null;
|
|
2505
|
+
this._next = null;
|
|
2506
|
+
let curr = entities[0];
|
|
2507
|
+
for (let i = 1; i < entities.length; i++) {
|
|
2508
|
+
this._next = entities[i];
|
|
2509
|
+
this.writeEntity(curr);
|
|
2510
|
+
this._prev = curr;
|
|
2511
|
+
curr = this._next;
|
|
2512
|
+
}
|
|
2513
|
+
this._next = null;
|
|
2514
|
+
this.writeEntity(curr);
|
|
2515
|
+
this._prev = prevHolder;
|
|
2516
|
+
this._next = nextHolder;
|
|
2517
|
+
if (seqend != null) {
|
|
2518
|
+
this.writeSeqend(seqend);
|
|
2519
|
+
}
|
|
2520
|
+
}
|
|
2521
|
+
// ==================== Object Writers ====================
|
|
2522
|
+
addEntriesToWriter(dictionary) {
|
|
2523
|
+
for (const e of dictionary) {
|
|
2524
|
+
this._objects.push(e);
|
|
2525
|
+
}
|
|
2526
|
+
}
|
|
2527
|
+
skipEntry(entry) {
|
|
2528
|
+
if (entry instanceof XRecord && !this.WriteXRecords)
|
|
2529
|
+
return { skip: true, notify: false };
|
|
2530
|
+
if (entry instanceof AecWallStyle
|
|
2531
|
+
|| entry instanceof AecCleanupGroup
|
|
2532
|
+
|| entry instanceof AecBinRecord
|
|
2533
|
+
|| entry instanceof DimensionAssociation
|
|
2534
|
+
|| entry instanceof EvaluationGraph
|
|
2535
|
+
|| entry instanceof Material
|
|
2536
|
+
|| entry instanceof UnknownNonGraphicalObject
|
|
2537
|
+
|| entry instanceof VisualStyle
|
|
2538
|
+
|| entry instanceof TableStyle
|
|
2539
|
+
|| entry instanceof ProxyObject
|
|
2540
|
+
|| entry instanceof BlockRepresentationData
|
|
2541
|
+
|| entry instanceof BlockReferenceObjectContextData
|
|
2542
|
+
|| entry instanceof MTextAttributeObjectContextData) {
|
|
2543
|
+
return { skip: true, notify: true };
|
|
2544
|
+
}
|
|
2545
|
+
return { skip: false, notify: false };
|
|
2546
|
+
}
|
|
2547
|
+
write4x3Matrix(matrix) {
|
|
2548
|
+
for (let i = 0; i < 3; i++) {
|
|
2549
|
+
for (let j = 0; j < 4; j++) {
|
|
2550
|
+
this._writer.writeBitDouble(matrix.get(i, j));
|
|
2551
|
+
}
|
|
2552
|
+
}
|
|
2553
|
+
}
|
|
2554
|
+
writeObjects() {
|
|
2555
|
+
while (this._objects.length > 0) {
|
|
2556
|
+
const obj = this._objects.shift();
|
|
2557
|
+
this.writeObject(obj);
|
|
2558
|
+
}
|
|
2559
|
+
}
|
|
2560
|
+
writeObject(obj) {
|
|
2561
|
+
const { skip, notify: shouldNotify } = this.skipEntry(obj);
|
|
2562
|
+
if (skip) {
|
|
2563
|
+
if (shouldNotify) {
|
|
2564
|
+
this.notify(`Object type not implemented ${obj.constructor.name}`, NotificationType.NotImplemented);
|
|
2565
|
+
}
|
|
2566
|
+
return;
|
|
2567
|
+
}
|
|
2568
|
+
this.writeCommonNonEntityData(obj);
|
|
2569
|
+
if (obj instanceof AcdbPlaceHolder) {
|
|
2570
|
+
this.writeAcdbPlaceHolder(obj);
|
|
2571
|
+
}
|
|
2572
|
+
else if (obj instanceof BookColor) {
|
|
2573
|
+
this.writeBookColor(obj);
|
|
2574
|
+
}
|
|
2575
|
+
else if (obj instanceof CadDictionaryWithDefault) {
|
|
2576
|
+
this.writeCadDictionaryWithDefault(obj);
|
|
2577
|
+
}
|
|
2578
|
+
else if (obj instanceof CadDictionary) {
|
|
2579
|
+
this.writeDictionary(obj);
|
|
2580
|
+
}
|
|
2581
|
+
else if (obj instanceof DictionaryVariable) {
|
|
2582
|
+
this.writeDictionaryVariable(obj);
|
|
2583
|
+
}
|
|
2584
|
+
else if (obj instanceof DimensionAssociation) {
|
|
2585
|
+
this.writeDimensionAssociation(obj);
|
|
2586
|
+
}
|
|
2587
|
+
else if (obj instanceof GeoData) {
|
|
2588
|
+
this.writeGeoData(obj);
|
|
2589
|
+
}
|
|
2590
|
+
else if (obj instanceof Group) {
|
|
2591
|
+
this.writeGroup(obj);
|
|
2592
|
+
}
|
|
2593
|
+
else if (obj instanceof ImageDefinitionReactor) {
|
|
2594
|
+
this.writeImageDefinitionReactor(obj);
|
|
2595
|
+
}
|
|
2596
|
+
else if (obj instanceof ImageDefinition) {
|
|
2597
|
+
this.writeImageDefinition(obj);
|
|
2598
|
+
}
|
|
2599
|
+
else if (obj instanceof Layout) {
|
|
2600
|
+
this.writeLayout(obj);
|
|
2601
|
+
}
|
|
2602
|
+
else if (obj instanceof MLineStyle) {
|
|
2603
|
+
this.writeMLineStyle(obj);
|
|
2604
|
+
}
|
|
2605
|
+
else if (obj instanceof MultiLeaderStyle) {
|
|
2606
|
+
this.writeMultiLeaderStyle(obj);
|
|
2607
|
+
}
|
|
2608
|
+
else if (obj instanceof MultiLeaderObjectContextData) {
|
|
2609
|
+
this.writeObjectContextData(obj);
|
|
2610
|
+
this.writeAnnotScaleObjectContextData(obj);
|
|
2611
|
+
this.writeMultiLeaderAnnotContext(obj);
|
|
2612
|
+
}
|
|
2613
|
+
else if (obj instanceof PdfUnderlayDefinition) {
|
|
2614
|
+
this.writePdfDefinition(obj);
|
|
2615
|
+
}
|
|
2616
|
+
else if (obj instanceof PlotSettings) {
|
|
2617
|
+
this.writePlotSettings(obj);
|
|
2618
|
+
}
|
|
2619
|
+
else if (obj instanceof RasterVariables) {
|
|
2620
|
+
this.writeRasterVariables(obj);
|
|
2621
|
+
}
|
|
2622
|
+
else if (obj instanceof Scale) {
|
|
2623
|
+
this.writeScale(obj);
|
|
2624
|
+
}
|
|
2625
|
+
else if (obj instanceof SortEntitiesTable) {
|
|
2626
|
+
this.writeSortEntitiesTable(obj);
|
|
2627
|
+
}
|
|
2628
|
+
else if (obj instanceof SpatialFilter) {
|
|
2629
|
+
this.writeSpatialFilter(obj);
|
|
2630
|
+
}
|
|
2631
|
+
else if (obj instanceof Field) {
|
|
2632
|
+
this.writeField(obj);
|
|
2633
|
+
}
|
|
2634
|
+
else if (obj instanceof FieldList) {
|
|
2635
|
+
this.writeFieldList(obj);
|
|
2636
|
+
}
|
|
2637
|
+
else if (obj instanceof XRecord) {
|
|
2638
|
+
this.writeXRecord(obj);
|
|
2639
|
+
}
|
|
2640
|
+
else {
|
|
2641
|
+
throw new Error(`Object not implemented : ${obj.constructor.name}`);
|
|
2642
|
+
}
|
|
2643
|
+
this.registerObject(obj);
|
|
2644
|
+
}
|
|
2645
|
+
writeAcdbPlaceHolder(_acdbPlaceHolder) {
|
|
2646
|
+
// Empty in C# source
|
|
2647
|
+
}
|
|
2648
|
+
writeAnnotScaleObjectContextData(annotScaleObjectContextData) {
|
|
2649
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardPointer, annotScaleObjectContextData.scale);
|
|
2650
|
+
}
|
|
2651
|
+
writeObjectContextData(objectContextData) {
|
|
2652
|
+
this._writer.writeBitShort(objectContextData.version);
|
|
2653
|
+
this._writer.writeBit(objectContextData.hasFileToExtensionDictionary);
|
|
2654
|
+
this._writer.writeBit(objectContextData.default);
|
|
2655
|
+
}
|
|
2656
|
+
writeBookColor(color) {
|
|
2657
|
+
this._writer.writeBitShort(0);
|
|
2658
|
+
if (this.R2004Plus) {
|
|
2659
|
+
const arr = new Uint8Array([
|
|
2660
|
+
color.color.b,
|
|
2661
|
+
color.color.g,
|
|
2662
|
+
color.color.r,
|
|
2663
|
+
0b11000010
|
|
2664
|
+
]);
|
|
2665
|
+
const rgb = new DataView(arr.buffer).getUint32(0, true);
|
|
2666
|
+
this._writer.writeBitLong(rgb);
|
|
2667
|
+
let flags = 0;
|
|
2668
|
+
if (color.name)
|
|
2669
|
+
flags |= 1;
|
|
2670
|
+
if (color.bookName)
|
|
2671
|
+
flags |= 2;
|
|
2672
|
+
this._writer.writeByte(flags);
|
|
2673
|
+
if (color.colorName)
|
|
2674
|
+
this._writer.writeVariableText(color.colorName);
|
|
2675
|
+
if (color.bookName)
|
|
2676
|
+
this._writer.writeVariableText(color.bookName);
|
|
2677
|
+
}
|
|
2678
|
+
}
|
|
2679
|
+
writeCadDictionaryWithDefault(dictionary) {
|
|
2680
|
+
this.writeDictionary(dictionary);
|
|
2681
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardPointer, dictionary.defaultEntry);
|
|
2682
|
+
}
|
|
2683
|
+
writeDictionary(dictionary) {
|
|
2684
|
+
const entries = [];
|
|
2685
|
+
for (const item of dictionary) {
|
|
2686
|
+
if (this.skipEntry(item).skip)
|
|
2687
|
+
continue;
|
|
2688
|
+
entries.push(item);
|
|
2689
|
+
}
|
|
2690
|
+
this._writer.writeBitLong(entries.length);
|
|
2691
|
+
if (this._version === ACadVersion.AC1014) {
|
|
2692
|
+
this._writer.writeByte(0);
|
|
2693
|
+
}
|
|
2694
|
+
if (this.R2000Plus) {
|
|
2695
|
+
this._writer.writeBitShort(dictionary.clonningFlags);
|
|
2696
|
+
this._writer.writeByte(dictionary.hardOwnerFlag ? 1 : 0);
|
|
2697
|
+
}
|
|
2698
|
+
for (const item of entries) {
|
|
2699
|
+
if (this.skipEntry(item).skip)
|
|
2700
|
+
continue;
|
|
2701
|
+
this._writer.writeVariableText(item.name);
|
|
2702
|
+
this._writer.handleReferenceTyped(DwgReferenceType.SoftOwnership, item.handle);
|
|
2703
|
+
}
|
|
2704
|
+
this.addEntriesToWriter(dictionary);
|
|
2705
|
+
}
|
|
2706
|
+
writeDictionaryVariable(dictionaryVariable) {
|
|
2707
|
+
this._writer.writeByte(0);
|
|
2708
|
+
this._writer.writeVariableText(dictionaryVariable.value);
|
|
2709
|
+
}
|
|
2710
|
+
writeDimensionAssociation(association) {
|
|
2711
|
+
this._writer.handleReferenceTyped(DwgReferenceType.SoftPointer, association.dimension);
|
|
2712
|
+
this._writer.writeBitLong(association.associativityFlags);
|
|
2713
|
+
this._writer.writeBit(association.isTransSpace);
|
|
2714
|
+
this._writer.writeByte(association.rotatedDimensionType);
|
|
2715
|
+
if ((association.associativityFlags & AssociativityFlags.FirstPointReference) !== 0) {
|
|
2716
|
+
this.writeOsnapPointRef(association.firstPointRef);
|
|
2717
|
+
}
|
|
2718
|
+
if ((association.associativityFlags & AssociativityFlags.SecondPointReference) !== 0) {
|
|
2719
|
+
this.writeOsnapPointRef(association.secondPointRef);
|
|
2720
|
+
}
|
|
2721
|
+
if ((association.associativityFlags & AssociativityFlags.ThirdPointReference) !== 0) {
|
|
2722
|
+
this.writeOsnapPointRef(association.thirdPointRef);
|
|
2723
|
+
}
|
|
2724
|
+
if ((association.associativityFlags & AssociativityFlags.FourthPointReference) !== 0) {
|
|
2725
|
+
this.writeOsnapPointRef(association.fourthPointRef);
|
|
2726
|
+
}
|
|
2727
|
+
}
|
|
2728
|
+
writeOsnapPointRef(osnap) {
|
|
2729
|
+
this._writer.writeVariableText(DimensionAssociation.OsnapPointRefClassName);
|
|
2730
|
+
this._writer.writeByte(osnap.objectOsnapType);
|
|
2731
|
+
this._writer.handleReferenceTyped(DwgReferenceType.Undefined, osnap.geometry);
|
|
2732
|
+
}
|
|
2733
|
+
writeField(field) {
|
|
2734
|
+
this._writer.writeVariableText(field.evaluatorId);
|
|
2735
|
+
this._writer.writeVariableText(field.fieldCode);
|
|
2736
|
+
this._writer.writeBitLong(field.children.length);
|
|
2737
|
+
for (const f of field.children) {
|
|
2738
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardOwnership, field);
|
|
2739
|
+
}
|
|
2740
|
+
this._writer.writeBitLong(field.cadObjects.length);
|
|
2741
|
+
for (const cobj of field.cadObjects) {
|
|
2742
|
+
this._writer.handleReferenceTyped(DwgReferenceType.SoftPointer, cobj);
|
|
2743
|
+
}
|
|
2744
|
+
if (this._version < ACadVersion.AC1021) {
|
|
2745
|
+
this._writer.writeVariableText(field.formatString);
|
|
2746
|
+
}
|
|
2747
|
+
this._writer.writeBitLong(field.evaluationOptionFlags);
|
|
2748
|
+
this._writer.writeBitLong(field.filingOptionFlags);
|
|
2749
|
+
this._writer.writeBitLong(field.fieldStateFlags);
|
|
2750
|
+
this._writer.writeBitLong(field.evaluationStatusFlags);
|
|
2751
|
+
this._writer.writeBitLong(field.evaluationErrorCode);
|
|
2752
|
+
this._writer.writeVariableText(field.evaluationErrorMessage);
|
|
2753
|
+
this.writeCadValue(field.value);
|
|
2754
|
+
this._writer.writeVariableText(field.formatString);
|
|
2755
|
+
this._writer.writeBitLong(field.formatString.length);
|
|
2756
|
+
this._writer.writeBitLong(field.values.size);
|
|
2757
|
+
for (const [key, value] of field.values) {
|
|
2758
|
+
this._writer.writeVariableText(key);
|
|
2759
|
+
this.writeCadValue(value);
|
|
2760
|
+
}
|
|
2761
|
+
for (const c of field.children) {
|
|
2762
|
+
this._objects.push(c);
|
|
2763
|
+
}
|
|
2764
|
+
}
|
|
2765
|
+
writeFieldList(fieldList) {
|
|
2766
|
+
this._writer.writeBitLong(fieldList.fields.length);
|
|
2767
|
+
this._writer.writeBit(true);
|
|
2768
|
+
for (const field of fieldList.fields) {
|
|
2769
|
+
this._writer.handleReferenceTyped(DwgReferenceType.SoftPointer, field);
|
|
2770
|
+
}
|
|
2771
|
+
}
|
|
2772
|
+
writeCadValue(value) {
|
|
2773
|
+
if (this.R2007Plus) {
|
|
2774
|
+
this._writer.writeBitLong(value.flags);
|
|
2775
|
+
}
|
|
2776
|
+
this._writer.writeBitLong(value.valueType);
|
|
2777
|
+
if (!this.R2007Plus || !value.isEmpty) {
|
|
2778
|
+
switch (value.valueType) {
|
|
2779
|
+
case CadValueType.Unknown:
|
|
2780
|
+
this._writer.writeBitLong(0);
|
|
2781
|
+
break;
|
|
2782
|
+
case CadValueType.Long:
|
|
2783
|
+
this._writer.writeBitLong(value.value);
|
|
2784
|
+
break;
|
|
2785
|
+
case CadValueType.Double:
|
|
2786
|
+
this._writer.writeBitDouble(value.value);
|
|
2787
|
+
break;
|
|
2788
|
+
case CadValueType.General:
|
|
2789
|
+
case CadValueType.String:
|
|
2790
|
+
this.writeStringCadValue(value.value);
|
|
2791
|
+
break;
|
|
2792
|
+
case CadValueType.Date:
|
|
2793
|
+
this.writeDateCadValue(value.value);
|
|
2794
|
+
break;
|
|
2795
|
+
case CadValueType.Point2D:
|
|
2796
|
+
this.writeCadValueXY(value.value);
|
|
2797
|
+
break;
|
|
2798
|
+
case CadValueType.Point3D:
|
|
2799
|
+
this.writeCadValueXYZ(value.value);
|
|
2800
|
+
break;
|
|
2801
|
+
case CadValueType.Handle:
|
|
2802
|
+
this._writer.handleReferenceTyped(DwgReferenceType.SoftPointer, value.value);
|
|
2803
|
+
break;
|
|
2804
|
+
default:
|
|
2805
|
+
throw new Error('Not implemented');
|
|
2806
|
+
}
|
|
2807
|
+
}
|
|
2808
|
+
if (this.R2007Plus) {
|
|
2809
|
+
this._writer.writeBitLong(value.units);
|
|
2810
|
+
this._writer.writeVariableText(value.format);
|
|
2811
|
+
this._writer.writeVariableText(value.formattedValue);
|
|
2812
|
+
}
|
|
2813
|
+
}
|
|
2814
|
+
writeCadValueXY(xy) {
|
|
2815
|
+
if (xy != null) {
|
|
2816
|
+
this._writer.writeBitLong(16);
|
|
2817
|
+
this._writer.write2RawDouble(xy);
|
|
2818
|
+
}
|
|
2819
|
+
else {
|
|
2820
|
+
this._writer.writeBitLong(0);
|
|
2821
|
+
}
|
|
2822
|
+
}
|
|
2823
|
+
writeCadValueXYZ(xyz) {
|
|
2824
|
+
if (xyz != null) {
|
|
2825
|
+
this._writer.writeBitLong(24);
|
|
2826
|
+
this._writer.writeRawDouble(xyz.X);
|
|
2827
|
+
this._writer.writeRawDouble(xyz.Y);
|
|
2828
|
+
this._writer.writeRawDouble(xyz.Z);
|
|
2829
|
+
}
|
|
2830
|
+
else {
|
|
2831
|
+
this._writer.writeBitLong(0);
|
|
2832
|
+
}
|
|
2833
|
+
}
|
|
2834
|
+
writeDateCadValue(date) {
|
|
2835
|
+
if (date != null) {
|
|
2836
|
+
let array;
|
|
2837
|
+
if (this.R2007Plus) {
|
|
2838
|
+
array = new Uint8Array(16);
|
|
2839
|
+
const dv = new DataView(array.buffer);
|
|
2840
|
+
dv.setInt16(0, date.getFullYear(), true);
|
|
2841
|
+
dv.setInt16(2, date.getMonth() + 1, true);
|
|
2842
|
+
dv.setInt16(4, date.getDay(), true);
|
|
2843
|
+
dv.setInt16(6, date.getDate(), true);
|
|
2844
|
+
dv.setInt16(8, date.getHours(), true);
|
|
2845
|
+
dv.setInt16(10, date.getMinutes(), true);
|
|
2846
|
+
dv.setInt16(12, date.getSeconds(), true);
|
|
2847
|
+
dv.setInt16(14, date.getMilliseconds(), true);
|
|
2848
|
+
}
|
|
2849
|
+
else {
|
|
2850
|
+
const seconds = Math.floor((date.getTime() - new Date(1970, 0, 1).getTime()) / 1000);
|
|
2851
|
+
const high = (seconds >>> 32) | 0;
|
|
2852
|
+
const low = seconds | 0;
|
|
2853
|
+
array = new Uint8Array(8);
|
|
2854
|
+
const dv = new DataView(array.buffer);
|
|
2855
|
+
dv.setInt32(0, high, false);
|
|
2856
|
+
dv.setInt32(4, low, false);
|
|
2857
|
+
}
|
|
2858
|
+
this._writer.writeBitLong(array.length);
|
|
2859
|
+
this._writer.writeBytes(array);
|
|
2860
|
+
}
|
|
2861
|
+
else {
|
|
2862
|
+
this._writer.writeBitLong(0);
|
|
2863
|
+
}
|
|
2864
|
+
}
|
|
2865
|
+
writeStringCadValue(value) {
|
|
2866
|
+
if (!value) {
|
|
2867
|
+
this._writer.writeBitLong(0);
|
|
2868
|
+
}
|
|
2869
|
+
let bytes;
|
|
2870
|
+
if (this.R2007Plus) {
|
|
2871
|
+
bytes = this.encodeUtf16LE(value);
|
|
2872
|
+
this._writer.writeBitLong(bytes.length + 2);
|
|
2873
|
+
this._writer.writeBytes(bytes);
|
|
2874
|
+
this._writer.writeByte(0);
|
|
2875
|
+
this._writer.writeByte(0);
|
|
2876
|
+
}
|
|
2877
|
+
else {
|
|
2878
|
+
bytes = this.encodeText(value);
|
|
2879
|
+
this._writer.writeBitLong(bytes.length + 1);
|
|
2880
|
+
this._writer.writeBytes(bytes);
|
|
2881
|
+
this._writer.writeByte(0);
|
|
2882
|
+
}
|
|
2883
|
+
}
|
|
2884
|
+
writeGeoData(geodata) {
|
|
2885
|
+
this._writer.writeBitLong(geodata.version);
|
|
2886
|
+
this._writer.handleReferenceTyped(DwgReferenceType.SoftPointer, geodata.hostBlock);
|
|
2887
|
+
this._writer.writeBitShort(geodata.coordinatesType);
|
|
2888
|
+
switch (geodata.version) {
|
|
2889
|
+
case GeoDataVersion.R2009:
|
|
2890
|
+
this._writer.write3BitDouble(geodata.referencePoint);
|
|
2891
|
+
this._writer.writeBitLong(geodata.horizontalUnits);
|
|
2892
|
+
this._writer.write3BitDouble(geodata.designPoint);
|
|
2893
|
+
this._writer.write3BitDouble(XYZ.Zero);
|
|
2894
|
+
this._writer.write3BitDouble(geodata.upDirection);
|
|
2895
|
+
this._writer.writeBitDouble(Math.PI / 2.0 - geodata.northDirection.getAngle());
|
|
2896
|
+
this._writer.write3BitDouble(new XYZ(1, 1, 1));
|
|
2897
|
+
this._writer.writeVariableText(geodata.coordinateSystemDefinition);
|
|
2898
|
+
this._writer.writeVariableText(geodata.geoRssTag);
|
|
2899
|
+
this._writer.writeBitDouble(geodata.horizontalUnitScale);
|
|
2900
|
+
geodata.verticalUnitScale = geodata.horizontalUnitScale;
|
|
2901
|
+
this._writer.writeVariableText('');
|
|
2902
|
+
this._writer.writeVariableText('');
|
|
2903
|
+
break;
|
|
2904
|
+
case GeoDataVersion.R2010:
|
|
2905
|
+
case GeoDataVersion.R2013:
|
|
2906
|
+
this._writer.write3BitDouble(geodata.designPoint);
|
|
2907
|
+
this._writer.write3BitDouble(geodata.referencePoint);
|
|
2908
|
+
this._writer.writeBitDouble(geodata.horizontalUnitScale);
|
|
2909
|
+
this._writer.writeBitLong(geodata.horizontalUnits);
|
|
2910
|
+
this._writer.writeBitDouble(geodata.verticalUnitScale);
|
|
2911
|
+
this._writer.writeBitLong(geodata.horizontalUnits);
|
|
2912
|
+
this._writer.write3BitDouble(geodata.upDirection);
|
|
2913
|
+
this._writer.write2RawDouble(geodata.northDirection);
|
|
2914
|
+
this._writer.writeBitLong(geodata.scaleEstimationMethod);
|
|
2915
|
+
this._writer.writeBitDouble(geodata.userSpecifiedScaleFactor);
|
|
2916
|
+
this._writer.writeBit(geodata.enableSeaLevelCorrection);
|
|
2917
|
+
this._writer.writeBitDouble(geodata.seaLevelElevation);
|
|
2918
|
+
this._writer.writeBitDouble(geodata.coordinateProjectionRadius);
|
|
2919
|
+
this._writer.writeVariableText(geodata.coordinateSystemDefinition);
|
|
2920
|
+
this._writer.writeVariableText(geodata.geoRssTag);
|
|
2921
|
+
break;
|
|
2922
|
+
}
|
|
2923
|
+
this._writer.writeVariableText(geodata.observationFromTag);
|
|
2924
|
+
this._writer.writeVariableText(geodata.observationToTag);
|
|
2925
|
+
this._writer.writeVariableText(geodata.observationCoverageTag);
|
|
2926
|
+
this._writer.writeBitLong(geodata.points.length);
|
|
2927
|
+
for (const pt of geodata.points) {
|
|
2928
|
+
this._writer.write2RawDouble(pt.source);
|
|
2929
|
+
this._writer.write2RawDouble(pt.destination);
|
|
2930
|
+
}
|
|
2931
|
+
this._writer.writeBitLong(geodata.faces.length);
|
|
2932
|
+
for (const face of geodata.faces) {
|
|
2933
|
+
this._writer.writeBitLong(face.index1);
|
|
2934
|
+
this._writer.writeBitLong(face.index2);
|
|
2935
|
+
this._writer.writeBitLong(face.index3);
|
|
2936
|
+
}
|
|
2937
|
+
}
|
|
2938
|
+
writeGroup(group) {
|
|
2939
|
+
this._writer.writeVariableText(group.description);
|
|
2940
|
+
this._writer.writeBitShort(group.isUnnamed ? 1 : 0);
|
|
2941
|
+
this._writer.writeBitShort(group.selectable ? 1 : 0);
|
|
2942
|
+
this._writer.writeBitLong(group.entities.length);
|
|
2943
|
+
for (const e of group.entities) {
|
|
2944
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardPointer, e);
|
|
2945
|
+
}
|
|
2946
|
+
}
|
|
2947
|
+
writeImageDefinition(definition) {
|
|
2948
|
+
this._writer.writeBitLong(definition.classVersion);
|
|
2949
|
+
this._writer.write2RawDouble(definition.size);
|
|
2950
|
+
this._writer.writeVariableText(definition.fileName);
|
|
2951
|
+
this._writer.writeBit(definition.isLoaded);
|
|
2952
|
+
this._writer.writeByte(definition.units);
|
|
2953
|
+
this._writer.write2RawDouble(definition.defaultSize);
|
|
2954
|
+
}
|
|
2955
|
+
writeImageDefinitionReactor(definitionReactor) {
|
|
2956
|
+
this._writer.writeBitLong(definitionReactor.classVersion);
|
|
2957
|
+
}
|
|
2958
|
+
writeLayout(layout) {
|
|
2959
|
+
this.writePlotSettings(layout);
|
|
2960
|
+
this._writer.writeVariableText(layout.name);
|
|
2961
|
+
this._writer.writeBitLong(layout.tabOrder);
|
|
2962
|
+
this._writer.writeBitShort(layout.layoutFlags);
|
|
2963
|
+
this._writer.write3BitDouble(layout.origin);
|
|
2964
|
+
this._writer.write2RawDouble(layout.minLimits);
|
|
2965
|
+
this._writer.write2RawDouble(layout.minLimits);
|
|
2966
|
+
this._writer.write3BitDouble(layout.insertionBasePoint);
|
|
2967
|
+
this._writer.write3BitDouble(layout.xAxis);
|
|
2968
|
+
this._writer.write3BitDouble(layout.yAxis);
|
|
2969
|
+
this._writer.writeBitDouble(layout.elevation);
|
|
2970
|
+
this._writer.writeBitShort(layout.ucsOrthographicType);
|
|
2971
|
+
this._writer.write3BitDouble(layout.minExtents);
|
|
2972
|
+
this._writer.write3BitDouble(layout.maxExtents);
|
|
2973
|
+
if (this.R2004Plus) {
|
|
2974
|
+
this._writer.writeBitLong(layout.viewports.length);
|
|
2975
|
+
}
|
|
2976
|
+
this._writer.handleReferenceTyped(DwgReferenceType.SoftPointer, layout.associatedBlock);
|
|
2977
|
+
this._writer.handleReferenceTyped(DwgReferenceType.SoftPointer, layout.lastActiveViewport);
|
|
2978
|
+
if (layout.ucsOrthographicType === OrthographicType.None) {
|
|
2979
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardPointer, null);
|
|
2980
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardPointer, layout.ucs);
|
|
2981
|
+
}
|
|
2982
|
+
else {
|
|
2983
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardPointer, layout.baseUCS);
|
|
2984
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardPointer, null);
|
|
2985
|
+
}
|
|
2986
|
+
if (this.R2004Plus) {
|
|
2987
|
+
for (const viewport of layout.viewports) {
|
|
2988
|
+
this._writer.handleReferenceTyped(DwgReferenceType.SoftPointer, viewport);
|
|
2989
|
+
}
|
|
2990
|
+
}
|
|
2991
|
+
}
|
|
2992
|
+
writeMLineStyle(mlineStyle) {
|
|
2993
|
+
this._writer.writeVariableText(mlineStyle.name);
|
|
2994
|
+
this._writer.writeVariableText(mlineStyle.description);
|
|
2995
|
+
let flags = 0;
|
|
2996
|
+
if ((mlineStyle.flags & MLineStyleFlags.DisplayJoints) !== 0)
|
|
2997
|
+
flags |= 1;
|
|
2998
|
+
if ((mlineStyle.flags & MLineStyleFlags.FillOn) !== 0)
|
|
2999
|
+
flags |= 2;
|
|
3000
|
+
if ((mlineStyle.flags & MLineStyleFlags.StartSquareCap) !== 0)
|
|
3001
|
+
flags |= 16;
|
|
3002
|
+
if ((mlineStyle.flags & MLineStyleFlags.StartRoundCap) !== 0)
|
|
3003
|
+
flags |= 0x20;
|
|
3004
|
+
if ((mlineStyle.flags & MLineStyleFlags.StartInnerArcsCap) !== 0)
|
|
3005
|
+
flags |= 0x40;
|
|
3006
|
+
if ((mlineStyle.flags & MLineStyleFlags.EndSquareCap) !== 0)
|
|
3007
|
+
flags |= 0x100;
|
|
3008
|
+
if ((mlineStyle.flags & MLineStyleFlags.EndRoundCap) !== 0)
|
|
3009
|
+
flags |= 0x200;
|
|
3010
|
+
if ((mlineStyle.flags & MLineStyleFlags.EndInnerArcsCap) !== 0)
|
|
3011
|
+
flags |= 0x400;
|
|
3012
|
+
this._writer.writeBitShort(flags);
|
|
3013
|
+
this._writer.writeCmColor(mlineStyle.fillColor);
|
|
3014
|
+
this._writer.writeBitDouble(mlineStyle.startAngle);
|
|
3015
|
+
this._writer.writeBitDouble(mlineStyle.endAngle);
|
|
3016
|
+
this._writer.writeByte(mlineStyle.elements.length);
|
|
3017
|
+
for (const element of mlineStyle.elements) {
|
|
3018
|
+
this._writer.writeBitDouble(element.offset);
|
|
3019
|
+
this._writer.writeCmColor(element.color);
|
|
3020
|
+
if (this.R2018Plus) {
|
|
3021
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardPointer, element.lineType);
|
|
3022
|
+
}
|
|
3023
|
+
else {
|
|
3024
|
+
this._writer.writeBitShort(0);
|
|
3025
|
+
}
|
|
3026
|
+
}
|
|
3027
|
+
}
|
|
3028
|
+
writeMultiLeaderAnnotContext(multiLeaderAnnotContext) {
|
|
3029
|
+
this.writeMultiLeaderAnnotContextSubObject(false, multiLeaderAnnotContext);
|
|
3030
|
+
}
|
|
3031
|
+
writeMultiLeaderStyle(mLeaderStyle) {
|
|
3032
|
+
if (this.R2010Plus) {
|
|
3033
|
+
this._writer.writeBitShort(2);
|
|
3034
|
+
}
|
|
3035
|
+
this._writer.writeBitShort(mLeaderStyle.contentType);
|
|
3036
|
+
this._writer.writeBitShort(mLeaderStyle.multiLeaderDrawOrder);
|
|
3037
|
+
this._writer.writeBitShort(mLeaderStyle.leaderDrawOrder);
|
|
3038
|
+
this._writer.writeBitLong(mLeaderStyle.maxLeaderSegmentsPoints);
|
|
3039
|
+
this._writer.writeBitDouble(mLeaderStyle.firstSegmentAngleConstraint);
|
|
3040
|
+
this._writer.writeBitDouble(mLeaderStyle.secondSegmentAngleConstraint);
|
|
3041
|
+
this._writer.writeBitShort(mLeaderStyle.pathType);
|
|
3042
|
+
this._writer.writeCmColor(mLeaderStyle.lineColor);
|
|
3043
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardPointer, mLeaderStyle.leaderLineType);
|
|
3044
|
+
this._writer.writeBitLong(mLeaderStyle.leaderLineWeight);
|
|
3045
|
+
this._writer.writeBit(mLeaderStyle.enableLanding);
|
|
3046
|
+
this._writer.writeBitDouble(mLeaderStyle.landingGap);
|
|
3047
|
+
this._writer.writeBit(mLeaderStyle.enableDogleg);
|
|
3048
|
+
this._writer.writeBitDouble(mLeaderStyle.landingDistance);
|
|
3049
|
+
this._writer.writeVariableText(mLeaderStyle.description);
|
|
3050
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardPointer, mLeaderStyle.arrowhead);
|
|
3051
|
+
this._writer.writeBitDouble(mLeaderStyle.arrowheadSize);
|
|
3052
|
+
this._writer.writeVariableText(mLeaderStyle.defaultTextContents);
|
|
3053
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardPointer, mLeaderStyle.textStyle);
|
|
3054
|
+
this._writer.writeBitShort(mLeaderStyle.textLeftAttachment);
|
|
3055
|
+
this._writer.writeBitShort(mLeaderStyle.textRightAttachment);
|
|
3056
|
+
this._writer.writeBitShort(mLeaderStyle.textAngle);
|
|
3057
|
+
this._writer.writeBitShort(mLeaderStyle.textAlignment);
|
|
3058
|
+
this._writer.writeCmColor(mLeaderStyle.textColor);
|
|
3059
|
+
this._writer.writeBitDouble(mLeaderStyle.textHeight);
|
|
3060
|
+
this._writer.writeBit(mLeaderStyle.textFrame);
|
|
3061
|
+
this._writer.writeBit(mLeaderStyle.textAlignAlwaysLeft);
|
|
3062
|
+
this._writer.writeBitDouble(mLeaderStyle.alignSpace);
|
|
3063
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardPointer, mLeaderStyle.blockContent);
|
|
3064
|
+
this._writer.writeCmColor(mLeaderStyle.blockContentColor);
|
|
3065
|
+
this._writer.write3BitDouble(mLeaderStyle.blockContentScale);
|
|
3066
|
+
this._writer.writeBit(mLeaderStyle.enableBlockContentScale);
|
|
3067
|
+
this._writer.writeBitDouble(mLeaderStyle.blockContentRotation);
|
|
3068
|
+
this._writer.writeBit(mLeaderStyle.enableBlockContentRotation);
|
|
3069
|
+
this._writer.writeBitShort(mLeaderStyle.blockContentConnection);
|
|
3070
|
+
this._writer.writeBitDouble(mLeaderStyle.scaleFactor);
|
|
3071
|
+
this._writer.writeBit(mLeaderStyle.overwritePropertyValue);
|
|
3072
|
+
this._writer.writeBit(mLeaderStyle.isAnnotative);
|
|
3073
|
+
this._writer.writeBitDouble(mLeaderStyle.breakGapSize);
|
|
3074
|
+
if (this.R2010Plus) {
|
|
3075
|
+
this._writer.writeBitShort(mLeaderStyle.textAttachmentDirection);
|
|
3076
|
+
this._writer.writeBitShort(mLeaderStyle.textBottomAttachment);
|
|
3077
|
+
this._writer.writeBitShort(mLeaderStyle.textTopAttachment);
|
|
3078
|
+
}
|
|
3079
|
+
if (this.R2013Plus) {
|
|
3080
|
+
this._writer.writeBit(mLeaderStyle.unknownFlag298);
|
|
3081
|
+
}
|
|
3082
|
+
}
|
|
3083
|
+
writePdfDefinition(definition) {
|
|
3084
|
+
this._writer.writeVariableText(definition.file);
|
|
3085
|
+
this._writer.writeVariableText(definition.page);
|
|
3086
|
+
}
|
|
3087
|
+
writePlotSettings(plot) {
|
|
3088
|
+
this._writer.writeVariableText(plot.pageName);
|
|
3089
|
+
this._writer.writeVariableText(plot.systemPrinterName);
|
|
3090
|
+
this._writer.writeBitShort(plot.flags);
|
|
3091
|
+
this._writer.writeBitDouble(plot.unprintableMargin.left);
|
|
3092
|
+
this._writer.writeBitDouble(plot.unprintableMargin.bottom);
|
|
3093
|
+
this._writer.writeBitDouble(plot.unprintableMargin.right);
|
|
3094
|
+
this._writer.writeBitDouble(plot.unprintableMargin.top);
|
|
3095
|
+
this._writer.writeBitDouble(plot.paperWidth);
|
|
3096
|
+
this._writer.writeBitDouble(plot.paperHeight);
|
|
3097
|
+
this._writer.writeVariableText(plot.paperSize);
|
|
3098
|
+
this._writer.writeBitDouble(plot.plotOriginX);
|
|
3099
|
+
this._writer.writeBitDouble(plot.plotOriginY);
|
|
3100
|
+
this._writer.writeBitShort(plot.paperUnits);
|
|
3101
|
+
this._writer.writeBitShort(plot.paperRotation);
|
|
3102
|
+
this._writer.writeBitShort(plot.plotType);
|
|
3103
|
+
this._writer.writeBitDouble(plot.windowLowerLeftX);
|
|
3104
|
+
this._writer.writeBitDouble(plot.windowLowerLeftY);
|
|
3105
|
+
this._writer.writeBitDouble(plot.windowUpperLeftX);
|
|
3106
|
+
this._writer.writeBitDouble(plot.windowUpperLeftY);
|
|
3107
|
+
if (this._version >= ACadVersion.AC1012 && this._version <= ACadVersion.AC1015) {
|
|
3108
|
+
this._writer.writeVariableText(plot.plotViewName);
|
|
3109
|
+
}
|
|
3110
|
+
this._writer.writeBitDouble(plot.numeratorScale);
|
|
3111
|
+
this._writer.writeBitDouble(plot.denominatorScale);
|
|
3112
|
+
this._writer.writeVariableText(plot.styleSheet);
|
|
3113
|
+
this._writer.writeBitShort(plot.scaledFit);
|
|
3114
|
+
this._writer.writeBitDouble(plot.standardScale);
|
|
3115
|
+
this._writer.write2BitDouble(plot.paperImageOrigin);
|
|
3116
|
+
if (this.R2004Plus) {
|
|
3117
|
+
this._writer.writeBitShort(plot.shadePlotMode);
|
|
3118
|
+
this._writer.writeBitShort(plot.shadePlotResolutionMode);
|
|
3119
|
+
this._writer.writeBitShort(plot.shadePlotDPI);
|
|
3120
|
+
this._writer.handleReferenceTyped(DwgReferenceType.HardPointer, null);
|
|
3121
|
+
}
|
|
3122
|
+
if (this.R2007Plus) {
|
|
3123
|
+
this._writer.handleReferenceTyped(DwgReferenceType.SoftPointer, null);
|
|
3124
|
+
}
|
|
3125
|
+
}
|
|
3126
|
+
writeRasterVariables(vars) {
|
|
3127
|
+
this._writer.writeBitLong(vars.classVersion);
|
|
3128
|
+
this._writer.writeBitShort(vars.isDisplayFrameShown ? 1 : 0);
|
|
3129
|
+
this._writer.writeBitShort(vars.displayQuality);
|
|
3130
|
+
this._writer.writeBitShort(vars.units);
|
|
3131
|
+
}
|
|
3132
|
+
writeScale(scale) {
|
|
3133
|
+
this._writer.writeBitShort(0);
|
|
3134
|
+
this._writer.writeVariableText(scale.name);
|
|
3135
|
+
this._writer.writeBitDouble(scale.paperUnits);
|
|
3136
|
+
this._writer.writeBitDouble(scale.drawingUnits);
|
|
3137
|
+
this._writer.writeBit(scale.isUnitScale);
|
|
3138
|
+
}
|
|
3139
|
+
writeSortEntitiesTable(sortEntitiesTable) {
|
|
3140
|
+
this._writer.handleReferenceTyped(DwgReferenceType.SoftPointer, sortEntitiesTable.blockOwner);
|
|
3141
|
+
const sorters = Array.from(sortEntitiesTable);
|
|
3142
|
+
this._writer.writeBitLong(sorters.length);
|
|
3143
|
+
for (const item of sorters) {
|
|
3144
|
+
this._writer.main.handleReference(item.sortHandle);
|
|
3145
|
+
this._writer.handleReferenceTyped(DwgReferenceType.SoftPointer, item.entity);
|
|
3146
|
+
}
|
|
3147
|
+
}
|
|
3148
|
+
writeSpatialFilter(filter) {
|
|
3149
|
+
this._writer.writeBitShort(filter.boundaryPoints.length);
|
|
3150
|
+
for (const pt of filter.boundaryPoints) {
|
|
3151
|
+
this._writer.write2RawDouble(pt);
|
|
3152
|
+
}
|
|
3153
|
+
this._writer.write3BitDouble(filter.normal);
|
|
3154
|
+
this._writer.write3BitDouble(filter.origin);
|
|
3155
|
+
this._writer.writeBitShort(filter.displayBoundary ? 1 : 0);
|
|
3156
|
+
this._writer.writeBitShort(filter.clipFrontPlane ? 1 : 0);
|
|
3157
|
+
if (filter.clipFrontPlane) {
|
|
3158
|
+
this._writer.writeBitDouble(filter.frontDistance);
|
|
3159
|
+
}
|
|
3160
|
+
this._writer.writeBitShort(filter.clipBackPlane ? 1 : 0);
|
|
3161
|
+
if (filter.clipBackPlane) {
|
|
3162
|
+
this._writer.writeBitDouble(filter.backDistance);
|
|
3163
|
+
}
|
|
3164
|
+
this.write4x3Matrix(filter.inverseInsertTransform);
|
|
3165
|
+
this.write4x3Matrix(filter.insertTransform);
|
|
3166
|
+
}
|
|
3167
|
+
writeXRecord(xrecord) {
|
|
3168
|
+
const chunks = [];
|
|
3169
|
+
const pushInt16LE = (v) => {
|
|
3170
|
+
chunks.push(v & 0xFF, (v >> 8) & 0xFF);
|
|
3171
|
+
};
|
|
3172
|
+
const pushInt32LE = (v) => {
|
|
3173
|
+
chunks.push(v & 0xFF, (v >> 8) & 0xFF, (v >> 16) & 0xFF, (v >> 24) & 0xFF);
|
|
3174
|
+
};
|
|
3175
|
+
const pushInt64LE = (v) => {
|
|
3176
|
+
// For handles, write as 8 bytes LE
|
|
3177
|
+
const buf = new ArrayBuffer(8);
|
|
3178
|
+
const dv = new DataView(buf);
|
|
3179
|
+
dv.setFloat64(0, v, true);
|
|
3180
|
+
const bytes = new Uint8Array(buf);
|
|
3181
|
+
for (let i = 0; i < 8; i++)
|
|
3182
|
+
chunks.push(bytes[i]);
|
|
3183
|
+
};
|
|
3184
|
+
const pushFloat64LE = (v) => {
|
|
3185
|
+
const buf = new ArrayBuffer(8);
|
|
3186
|
+
new DataView(buf).setFloat64(0, v, true);
|
|
3187
|
+
const bytes = new Uint8Array(buf);
|
|
3188
|
+
for (let i = 0; i < 8; i++)
|
|
3189
|
+
chunks.push(bytes[i]);
|
|
3190
|
+
};
|
|
3191
|
+
for (const entry of xrecord.entries) {
|
|
3192
|
+
if (entry.value == null)
|
|
3193
|
+
continue;
|
|
3194
|
+
pushInt16LE(entry.code);
|
|
3195
|
+
const groupValueType = GroupCodeValue.transformValue(entry.code);
|
|
3196
|
+
switch (groupValueType) {
|
|
3197
|
+
case GroupCodeValueType.Byte:
|
|
3198
|
+
case GroupCodeValueType.Bool:
|
|
3199
|
+
chunks.push(Number(entry.value) & 0xFF);
|
|
3200
|
+
break;
|
|
3201
|
+
case GroupCodeValueType.Int16:
|
|
3202
|
+
case GroupCodeValueType.ExtendedDataInt16:
|
|
3203
|
+
pushInt16LE(Number(entry.value));
|
|
3204
|
+
break;
|
|
3205
|
+
case GroupCodeValueType.Int32:
|
|
3206
|
+
case GroupCodeValueType.ExtendedDataInt32:
|
|
3207
|
+
pushInt32LE(Number(entry.value));
|
|
3208
|
+
break;
|
|
3209
|
+
case GroupCodeValueType.Int64:
|
|
3210
|
+
pushInt64LE(Number(entry.value));
|
|
3211
|
+
break;
|
|
3212
|
+
case GroupCodeValueType.Double:
|
|
3213
|
+
case GroupCodeValueType.ExtendedDataDouble:
|
|
3214
|
+
pushFloat64LE(Number(entry.value));
|
|
3215
|
+
break;
|
|
3216
|
+
case GroupCodeValueType.Point3D: {
|
|
3217
|
+
const xyz = entry.value;
|
|
3218
|
+
pushFloat64LE(xyz.X);
|
|
3219
|
+
pushFloat64LE(xyz.Y);
|
|
3220
|
+
pushFloat64LE(xyz.Z);
|
|
3221
|
+
break;
|
|
3222
|
+
}
|
|
3223
|
+
case GroupCodeValueType.Chunk:
|
|
3224
|
+
case GroupCodeValueType.ExtendedDataChunk: {
|
|
3225
|
+
const arr = entry.value;
|
|
3226
|
+
chunks.push(arr.length & 0xFF);
|
|
3227
|
+
for (let i = 0; i < arr.length; i++)
|
|
3228
|
+
chunks.push(arr[i]);
|
|
3229
|
+
break;
|
|
3230
|
+
}
|
|
3231
|
+
case GroupCodeValueType.Handle: {
|
|
3232
|
+
const ref = entry.getReference();
|
|
3233
|
+
const text = ref == null ? '' : ref.handle.toString(16).toUpperCase();
|
|
3234
|
+
this.writeStringInChunks(chunks, text);
|
|
3235
|
+
break;
|
|
3236
|
+
}
|
|
3237
|
+
case GroupCodeValueType.String:
|
|
3238
|
+
case GroupCodeValueType.ExtendedDataString:
|
|
3239
|
+
this.writeStringInChunks(chunks, entry.value);
|
|
3240
|
+
break;
|
|
3241
|
+
case GroupCodeValueType.ObjectId:
|
|
3242
|
+
case GroupCodeValueType.ExtendedDataHandle: {
|
|
3243
|
+
const ref2 = entry.getReference();
|
|
3244
|
+
const handle = ref2 == null ? 0 : ref2.handle;
|
|
3245
|
+
pushInt64LE(handle);
|
|
3246
|
+
break;
|
|
3247
|
+
}
|
|
3248
|
+
default:
|
|
3249
|
+
throw new Error('Not supported');
|
|
3250
|
+
}
|
|
3251
|
+
}
|
|
3252
|
+
this._writer.writeBitLong(chunks.length);
|
|
3253
|
+
this._writer.writeBytesOffset(new Uint8Array(chunks), 0, chunks.length);
|
|
3254
|
+
if (this.R2000Plus) {
|
|
3255
|
+
this._writer.writeBitShort(xrecord.cloningFlags);
|
|
3256
|
+
}
|
|
3257
|
+
}
|
|
3258
|
+
// ==================== Utility Methods ====================
|
|
3259
|
+
writeStringInChunks(chunks, text) {
|
|
3260
|
+
if (this.R2007Plus) {
|
|
3261
|
+
if (!text) {
|
|
3262
|
+
chunks.push(0, 0);
|
|
3263
|
+
return;
|
|
3264
|
+
}
|
|
3265
|
+
const len = text.length;
|
|
3266
|
+
chunks.push(len & 0xFF, (len >> 8) & 0xFF);
|
|
3267
|
+
const bytes = this.encodeUtf16LE(text);
|
|
3268
|
+
for (let i = 0; i < bytes.length; i++)
|
|
3269
|
+
chunks.push(bytes[i]);
|
|
3270
|
+
}
|
|
3271
|
+
else if (!text) {
|
|
3272
|
+
chunks.push(0, 0);
|
|
3273
|
+
const codeIndex = CadUtils.getCodeIndex(CadUtils.getCodePage(this._writer.encoding));
|
|
3274
|
+
chunks.push(codeIndex);
|
|
3275
|
+
}
|
|
3276
|
+
else {
|
|
3277
|
+
const len = text.length;
|
|
3278
|
+
chunks.push(len & 0xFF, (len >> 8) & 0xFF);
|
|
3279
|
+
const codeIndex = CadUtils.getCodeIndex(CadUtils.getCodePage(this._writer.encoding));
|
|
3280
|
+
chunks.push(codeIndex);
|
|
3281
|
+
const bytes = this.encodeText(text);
|
|
3282
|
+
for (let i = 0; i < bytes.length; i++)
|
|
3283
|
+
chunks.push(bytes[i]);
|
|
3284
|
+
}
|
|
3285
|
+
}
|
|
3286
|
+
encodeUtf16LE(text) {
|
|
3287
|
+
const buf = new Uint8Array(text.length * 2);
|
|
3288
|
+
for (let i = 0; i < text.length; i++) {
|
|
3289
|
+
const code = text.charCodeAt(i);
|
|
3290
|
+
buf[i * 2] = code & 0xFF;
|
|
3291
|
+
buf[i * 2 + 1] = (code >> 8) & 0xFF;
|
|
3292
|
+
}
|
|
3293
|
+
return buf;
|
|
3294
|
+
}
|
|
3295
|
+
encodeText(text) {
|
|
3296
|
+
// Simple ASCII encoding; for full codepage support, extend as needed
|
|
3297
|
+
const buf = new Uint8Array(text.length);
|
|
3298
|
+
for (let i = 0; i < text.length; i++) {
|
|
3299
|
+
buf[i] = text.charCodeAt(i) & 0xFF;
|
|
3300
|
+
}
|
|
3301
|
+
return buf;
|
|
3302
|
+
}
|
|
3303
|
+
}
|
|
3304
|
+
//# sourceMappingURL=DwgObjectWriter.js.map
|