dxfview 0.0.2
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/README.md +1 -0
- package/dist/dxfview.esm.min.js +7 -0
- package/dist/types/components/dxf-layout-bar/DxfLayoutBar.d.ts +26 -0
- package/dist/types/components/dxf-layout-bar/index.d.ts +1 -0
- package/dist/types/components/pop-panel/PopPanel.d.ts +14 -0
- package/dist/types/components/pop-panel/index.d.ts +1 -0
- package/dist/types/components/progress-bar/ProgressBar.d.ts +34 -0
- package/dist/types/components/progress-bar/index.d.ts +1 -0
- package/dist/types/components/settings/ProjectSettingsDef.d.ts +44 -0
- package/dist/types/components/settings/index.d.ts +1 -0
- package/dist/types/components/tool-tip/Tooltip.d.ts +20 -0
- package/dist/types/components/tool-tip/index.d.ts +1 -0
- package/dist/types/core/Configs.d.ts +238 -0
- package/dist/types/core/Constants.d.ts +164 -0
- package/dist/types/core/Units.d.ts +16 -0
- package/dist/types/core/VersionManager.d.ts +3 -0
- package/dist/types/core/camera-controls/CameraControls.d.ts +773 -0
- package/dist/types/core/camera-controls/Constants.d.ts +2 -0
- package/dist/types/core/camera-controls/EventDispatcher.d.ts +41 -0
- package/dist/types/core/camera-controls/index.d.ts +2 -0
- package/dist/types/core/camera-controls/types.d.ts +112 -0
- package/dist/types/core/camera-controls/utils/extractClientCoordFromEvent.d.ts +3 -0
- package/dist/types/core/camera-controls/utils/math-utils.d.ts +11 -0
- package/dist/types/core/camera-controls/utils/notSupportedInOrthographicCamera.d.ts +2 -0
- package/dist/types/core/canvas/CanvasRender.d.ts +52 -0
- package/dist/types/core/canvas/Constants.d.ts +28 -0
- package/dist/types/core/canvas/Drawable.d.ts +87 -0
- package/dist/types/core/canvas/DrawableList.d.ts +29 -0
- package/dist/types/core/canvas/index.d.ts +4 -0
- package/dist/types/core/compare/BaseDxfCompareHelper.d.ts +104 -0
- package/dist/types/core/compare/CompareDrawable.d.ts +17 -0
- package/dist/types/core/compare/DxfCompareHelper.d.ts +69 -0
- package/dist/types/core/compare/DxfCompareMarkupManager.d.ts +11 -0
- package/dist/types/core/compare/index.d.ts +4 -0
- package/dist/types/core/controls/CameraControlsEx.d.ts +34 -0
- package/dist/types/core/controls/index.d.ts +1 -0
- package/dist/types/core/dxf/DxfCompare.d.ts +151 -0
- package/dist/types/core/dxf/DxfConstants.d.ts +15 -0
- package/dist/types/core/dxf/DxfLoader.d.ts +526 -0
- package/dist/types/core/dxf/DxfObject.d.ts +32 -0
- package/dist/types/core/dxf/DxfUtils.d.ts +79 -0
- package/dist/types/core/dxf/HatchPatternShaders.d.ts +12 -0
- package/dist/types/core/dxf/LinePatternShaders.d.ts +12 -0
- package/dist/types/core/dxf/bspline.d.ts +8 -0
- package/dist/types/core/dxf/dxfom-mtext.d.ts +46 -0
- package/dist/types/core/dxf/dxfom-text.d.ts +16 -0
- package/dist/types/core/dxf/index.d.ts +10 -0
- package/dist/types/core/dxf/round10.d.ts +2 -0
- package/dist/types/core/dxf-parser/AutoCadColorIndex.d.ts +8 -0
- package/dist/types/core/dxf-parser/DxfBaseReader.d.ts +12 -0
- package/dist/types/core/dxf-parser/DxfBinaryReader.d.ts +14 -0
- package/dist/types/core/dxf-parser/DxfParser.d.ts +327 -0
- package/dist/types/core/dxf-parser/DxfTextReader.d.ts +31 -0
- package/dist/types/core/dxf-parser/ParseHelpers.d.ts +36 -0
- package/dist/types/core/dxf-parser/entities/3dface.d.ts +11 -0
- package/dist/types/core/dxf-parser/entities/arc.d.ts +16 -0
- package/dist/types/core/dxf-parser/entities/attdef.d.ts +31 -0
- package/dist/types/core/dxf-parser/entities/attrib.d.ts +31 -0
- package/dist/types/core/dxf-parser/entities/circle.d.ts +13 -0
- package/dist/types/core/dxf-parser/entities/dimension.d.ts +22 -0
- package/dist/types/core/dxf-parser/entities/ellipse.d.ts +15 -0
- package/dist/types/core/dxf-parser/entities/geomtry.d.ts +40 -0
- package/dist/types/core/dxf-parser/entities/hatch.d.ts +108 -0
- package/dist/types/core/dxf-parser/entities/image.d.ts +37 -0
- package/dist/types/core/dxf-parser/entities/insert.d.ts +20 -0
- package/dist/types/core/dxf-parser/entities/leader.d.ts +23 -0
- package/dist/types/core/dxf-parser/entities/line.d.ts +10 -0
- package/dist/types/core/dxf-parser/entities/lwpolyline.d.ts +21 -0
- package/dist/types/core/dxf-parser/entities/mleader.d.ts +101 -0
- package/dist/types/core/dxf-parser/entities/mtext.d.ts +18 -0
- package/dist/types/core/dxf-parser/entities/ole2frame.d.ts +20 -0
- package/dist/types/core/dxf-parser/entities/point.d.ts +11 -0
- package/dist/types/core/dxf-parser/entities/polyline.d.ts +20 -0
- package/dist/types/core/dxf-parser/entities/ray.d.ts +10 -0
- package/dist/types/core/dxf-parser/entities/region.d.ts +10 -0
- package/dist/types/core/dxf-parser/entities/seqend.d.ts +8 -0
- package/dist/types/core/dxf-parser/entities/solid.d.ts +10 -0
- package/dist/types/core/dxf-parser/entities/spline.d.ts +23 -0
- package/dist/types/core/dxf-parser/entities/table.d.ts +42 -0
- package/dist/types/core/dxf-parser/entities/text.d.ts +18 -0
- package/dist/types/core/dxf-parser/entities/vertex.d.ts +20 -0
- package/dist/types/core/dxf-parser/entities/viewport.d.ts +46 -0
- package/dist/types/core/dxf-parser/entities/xline.d.ts +10 -0
- package/dist/types/core/dxf-parser/index.d.ts +27 -0
- package/dist/types/core/dxf-parser/objects/common.d.ts +15 -0
- package/dist/types/core/dxf-parser/objects/dictionary.d.ts +19 -0
- package/dist/types/core/dxf-parser/objects/imagedef.d.ts +24 -0
- package/dist/types/core/dxf-parser/objects/layout.d.ts +29 -0
- package/dist/types/core/dxf-parser/objects/sortentstable.d.ts +12 -0
- package/dist/types/core/dxf-parser/objects/spatialfilter.d.ts +22 -0
- package/dist/types/core/dxf-parser/objects/xrecord.d.ts +11 -0
- package/dist/types/core/font/BaseFont.d.ts +88 -0
- package/dist/types/core/font/FontManager.d.ts +107 -0
- package/dist/types/core/font/MeshFont.d.ts +44 -0
- package/dist/types/core/font/ShxFont.d.ts +108 -0
- package/dist/types/core/font/index.d.ts +1 -0
- package/dist/types/core/font/shx/ExtraLettersTemplate.d.ts +1 -0
- package/dist/types/core/font/shx/Shx.constants.d.ts +11 -0
- package/dist/types/core/font/shx/ShxParser.d.ts +18 -0
- package/dist/types/core/font/shx/TextShape.d.ts +24 -0
- package/dist/types/core/font/shx/gbk/index.d.ts +4 -0
- package/dist/types/core/font/shx/index.d.ts +1 -0
- package/dist/types/core/font/shx/util/BitConverter.d.ts +18 -0
- package/dist/types/core/geometry-offset/Edge.d.ts +27 -0
- package/dist/types/core/geometry-offset/Offset.d.ts +46 -0
- package/dist/types/core/geometry-offset/index.d.ts +1 -0
- package/dist/types/core/helpers/BinaryReader.d.ts +24 -0
- package/dist/types/core/helpers/BoxSelectHelper.d.ts +44 -0
- package/dist/types/core/helpers/LoadingHelper.d.ts +46 -0
- package/dist/types/core/helpers/MobileTouchHelperDrawable.d.ts +26 -0
- package/dist/types/core/helpers/OSnapHelper.d.ts +167 -0
- package/dist/types/core/helpers/ObjectPixelSizeHelper.d.ts +13 -0
- package/dist/types/core/helpers/PickMarkupHelper.d.ts +29 -0
- package/dist/types/core/helpers/RafHelper.d.ts +18 -0
- package/dist/types/core/helpers/ZoomToRectHelper.d.ts +17 -0
- package/dist/types/core/helpers/index.d.ts +9 -0
- package/dist/types/core/index.d.ts +18 -0
- package/dist/types/core/indexeddb/AnnotationTable.d.ts +14 -0
- package/dist/types/core/indexeddb/BaseTable.d.ts +36 -0
- package/dist/types/core/indexeddb/DxfDataTable.d.ts +22 -0
- package/dist/types/core/indexeddb/FontDataTable.d.ts +32 -0
- package/dist/types/core/indexeddb/IndexedDbManager.d.ts +29 -0
- package/dist/types/core/indexeddb/ViewpointTable.d.ts +14 -0
- package/dist/types/core/indexeddb/index.d.ts +6 -0
- package/dist/types/core/input/InputManager.d.ts +161 -0
- package/dist/types/core/input/index.d.ts +1 -0
- package/dist/types/core/license/AutoConfig.d.ts +17 -0
- package/dist/types/core/license/LicenseManager.d.ts +107 -0
- package/dist/types/core/license/PublicKey.d.ts +1 -0
- package/dist/types/core/license/index.d.ts +1 -0
- package/dist/types/core/markup/ArrowMarkup.d.ts +14 -0
- package/dist/types/core/markup/BaseMarkup.d.ts +28 -0
- package/dist/types/core/markup/CircleMarkup.d.ts +12 -0
- package/dist/types/core/markup/CloudLineMarkup.d.ts +10 -0
- package/dist/types/core/markup/CloudRectMarkup.d.ts +11 -0
- package/dist/types/core/markup/CloudRectWithTextMarkup.d.ts +43 -0
- package/dist/types/core/markup/Constants.d.ts +17 -0
- package/dist/types/core/markup/DotMarkup.d.ts +9 -0
- package/dist/types/core/markup/EllipseMarkup.d.ts +12 -0
- package/dist/types/core/markup/LeaderLineMarkup.d.ts +25 -0
- package/dist/types/core/markup/MarkupManager.d.ts +91 -0
- package/dist/types/core/markup/PolylineMarkup.d.ts +11 -0
- package/dist/types/core/markup/RectMarkup.d.ts +10 -0
- package/dist/types/core/markup/TextMarkup.d.ts +40 -0
- package/dist/types/core/markup/XMarkup.d.ts +10 -0
- package/dist/types/core/markup/index.d.ts +13 -0
- package/dist/types/core/model/Constants.d.ts +51 -0
- package/dist/types/core/model/Model.d.ts +18 -0
- package/dist/types/core/model/Model2d.d.ts +115 -0
- package/dist/types/core/model/index.d.ts +3 -0
- package/dist/types/core/patches/Constants.d.ts +4 -0
- package/dist/types/core/patches/Line.d.ts +2 -0
- package/dist/types/core/patches/Mesh.d.ts +2 -0
- package/dist/types/core/patches/Points.d.ts +2 -0
- package/dist/types/core/patches/index.d.ts +4 -0
- package/dist/types/core/undo-redo/AddAnnotationCommand.d.ts +11 -0
- package/dist/types/core/undo-redo/AddMarkupCommand.d.ts +10 -0
- package/dist/types/core/undo-redo/AddMeasurementCommand.d.ts +9 -0
- package/dist/types/core/undo-redo/Command.d.ts +6 -0
- package/dist/types/core/undo-redo/RemoveAnnotationCommand.d.ts +11 -0
- package/dist/types/core/undo-redo/RemoveMarkupCommand.d.ts +10 -0
- package/dist/types/core/undo-redo/RemoveMeasurementCommand.d.ts +9 -0
- package/dist/types/core/undo-redo/UndoRedoManager.d.ts +21 -0
- package/dist/types/core/undo-redo/UpdateMarkupCommand.d.ts +11 -0
- package/dist/types/core/undo-redo/index.d.ts +9 -0
- package/dist/types/core/utils/CSS2DObjectUtils.d.ts +14 -0
- package/dist/types/core/utils/ColorUtils.d.ts +21 -0
- package/dist/types/core/utils/CommonUtils.d.ts +125 -0
- package/dist/types/core/utils/CoordinateUtils.d.ts +81 -0
- package/dist/types/core/utils/DecimalPrecisionUtils.d.ts +4 -0
- package/dist/types/core/utils/DeviceUtils.d.ts +15 -0
- package/dist/types/core/utils/EdgeUtils.d.ts +14 -0
- package/dist/types/core/utils/Event.d.ts +33 -0
- package/dist/types/core/utils/FpsUtils.d.ts +13 -0
- package/dist/types/core/utils/GeometryUtils.d.ts +111 -0
- package/dist/types/core/utils/Locale.d.ts +190 -0
- package/dist/types/core/utils/LogUtils.d.ts +7 -0
- package/dist/types/core/utils/MaterialUtils.d.ts +40 -0
- package/dist/types/core/utils/MathUtils.d.ts +59 -0
- package/dist/types/core/utils/MergeUtils.d.ts +638 -0
- package/dist/types/core/utils/ObjectUtils.d.ts +87 -0
- package/dist/types/core/utils/PolygonUtils.d.ts +8 -0
- package/dist/types/core/utils/SVGObjectUtils.d.ts +16 -0
- package/dist/types/core/utils/SceneUtils.d.ts +26 -0
- package/dist/types/core/utils/SectionUtils.d.ts +11 -0
- package/dist/types/core/utils/UnitConversionUtils.d.ts +31 -0
- package/dist/types/core/utils/index.d.ts +21 -0
- package/dist/types/core/viewers/BaseViewer.d.ts +265 -0
- package/dist/types/core/viewers/DxfViewer.d.ts +1372 -0
- package/dist/types/core/viewers/Plugin.d.ts +29 -0
- package/dist/types/core/viewers/ViewerEvent.d.ts +178 -0
- package/dist/types/core/viewers/index.d.ts +4 -0
- package/dist/types/export.doc.d.ts +10 -0
- package/dist/types/fetch-polyfill.d.ts +2 -0
- package/dist/types/index.d.ts +8 -0
- package/dist/types/plugins/annotation/AnnotationPlugin.d.ts +139 -0
- package/dist/types/plugins/annotation/AutoDrawAnnotation.d.ts +63 -0
- package/dist/types/plugins/annotation/BaseAnnotation.d.ts +113 -0
- package/dist/types/plugins/annotation/BaseAnnotationDrawable.d.ts +139 -0
- package/dist/types/plugins/annotation/CopyAnnotation.d.ts +36 -0
- package/dist/types/plugins/annotation/CopyDrawable.d.ts +26 -0
- package/dist/types/plugins/annotation/FreeDrawAnnotation.d.ts +59 -0
- package/dist/types/plugins/annotation/RectAnnotation.d.ts +53 -0
- package/dist/types/plugins/annotation/RectDrawable.d.ts +42 -0
- package/dist/types/plugins/annotation/ShapeFinder.d.ts +51 -0
- package/dist/types/plugins/annotation/freeDrawDrawable.d.ts +21 -0
- package/dist/types/plugins/annotation/index.d.ts +8 -0
- package/dist/types/plugins/annotation/type.d.ts +182 -0
- package/dist/types/plugins/axis-gizmo/AxisGizmoPlugin.d.ts +49 -0
- package/dist/types/plugins/axis-gizmo/CoordinateAxes.d.ts +12 -0
- package/dist/types/plugins/axis-gizmo/index.d.ts +1 -0
- package/dist/types/plugins/bottom-bar/BottomBarPlugin.d.ts +44 -0
- package/dist/types/plugins/bottom-bar/index.d.ts +1 -0
- package/dist/types/plugins/divide/CoverLayerManager.d.ts +44 -0
- package/dist/types/plugins/divide/DivGeometryUtils.d.ts +66 -0
- package/dist/types/plugins/divide/DividePlugin.d.ts +181 -0
- package/dist/types/plugins/divide/FrameAnnotation.d.ts +142 -0
- package/dist/types/plugins/divide/FrameDrawable.d.ts +75 -0
- package/dist/types/plugins/divide/index.d.ts +6 -0
- package/dist/types/plugins/divide/types.d.ts +38 -0
- package/dist/types/plugins/hotpoint/HotpointPlugin.d.ts +93 -0
- package/dist/types/plugins/hotpoint/index.d.ts +1 -0
- package/dist/types/plugins/index.d.ts +12 -0
- package/dist/types/plugins/layer-manager/LayerManagerPlugin.d.ts +59 -0
- package/dist/types/plugins/layer-manager/index.d.ts +1 -0
- package/dist/types/plugins/local-model-uploader/IUploader.d.ts +10 -0
- package/dist/types/plugins/local-model-uploader/LocalDxfUploader.d.ts +19 -0
- package/dist/types/plugins/local-model-uploader/index.d.ts +1 -0
- package/dist/types/plugins/measure/AngleMeasureDrawable.d.ts +12 -0
- package/dist/types/plugins/measure/AngleMeasurement.d.ts +16 -0
- package/dist/types/plugins/measure/AreaMeasureDrawable.d.ts +14 -0
- package/dist/types/plugins/measure/AreaMeasurement.d.ts +31 -0
- package/dist/types/plugins/measure/BaseMeasureDrawable.d.ts +35 -0
- package/dist/types/plugins/measure/BaseMeasurement.d.ts +127 -0
- package/dist/types/plugins/measure/CoordinateMeasureDrawable.d.ts +10 -0
- package/dist/types/plugins/measure/CoordinateMeasurement.d.ts +15 -0
- package/dist/types/plugins/measure/DistanceMeasureDrawable.d.ts +15 -0
- package/dist/types/plugins/measure/DistanceMeasurement.d.ts +28 -0
- package/dist/types/plugins/measure/MeasurementPlugin.d.ts +131 -0
- package/dist/types/plugins/measure/index.d.ts +3 -0
- package/dist/types/plugins/overview-map/ImageDrawable.d.ts +41 -0
- package/dist/types/plugins/overview-map/LineDrawable.d.ts +20 -0
- package/dist/types/plugins/overview-map/OverviewMapDrawable.d.ts +24 -0
- package/dist/types/plugins/overview-map/OverviewMapPlugin.d.ts +156 -0
- package/dist/types/plugins/overview-map/TextDrawable.d.ts +50 -0
- package/dist/types/plugins/overview-map/index.d.ts +5 -0
- package/dist/types/plugins/screenshot/ScreenshotPlugin.d.ts +88 -0
- package/dist/types/plugins/screenshot/index.d.ts +1 -0
- package/dist/types/plugins/stats/StatsPlugin.d.ts +20 -0
- package/dist/types/plugins/stats/index.d.ts +1 -0
- package/dist/types/plugins/toolbars/DxfViewerToolbarPlugin.d.ts +67 -0
- package/dist/types/plugins/toolbars/MarkupToolbar.d.ts +33 -0
- package/dist/types/plugins/toolbars/Toolbar.config.d.ts +5 -0
- package/dist/types/plugins/toolbars/Toolbar.constants.d.ts +96 -0
- package/dist/types/plugins/toolbars/Toolbar.d.ts +102 -0
- package/dist/types/plugins/toolbars/index.d.ts +5 -0
- package/dist/types/version.d.ts +2 -0
- package/package.json +90 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { DxfBaseReader, IGroup } from "../DxfBaseReader";
|
|
2
|
+
import IGeometry, { IEntity, IPoint } from "./geomtry";
|
|
3
|
+
export interface IAttdefEntity extends IEntity {
|
|
4
|
+
xScale: number;
|
|
5
|
+
textStyle: "STANDARD" | string;
|
|
6
|
+
text: string;
|
|
7
|
+
tag: string;
|
|
8
|
+
prompt: string;
|
|
9
|
+
startPoint: IPoint;
|
|
10
|
+
endPoint: IPoint;
|
|
11
|
+
thickness: number;
|
|
12
|
+
textHeight: number;
|
|
13
|
+
rotation: number;
|
|
14
|
+
obliqueAngle: number;
|
|
15
|
+
invisible: boolean;
|
|
16
|
+
constant: boolean;
|
|
17
|
+
verificationRequired: boolean;
|
|
18
|
+
preset: boolean;
|
|
19
|
+
backwards: boolean;
|
|
20
|
+
mirrored: boolean;
|
|
21
|
+
horizontalJustification: number;
|
|
22
|
+
fieldLength: number;
|
|
23
|
+
verticalJustification: number;
|
|
24
|
+
extrusionDirectionX: number;
|
|
25
|
+
extrusionDirectionY: number;
|
|
26
|
+
extrusionDirectionZ: number;
|
|
27
|
+
}
|
|
28
|
+
export default class Attdef implements IGeometry {
|
|
29
|
+
ForEntityName: "ATTDEF";
|
|
30
|
+
parseEntity(scanner: DxfBaseReader, curr: IGroup): IAttdefEntity;
|
|
31
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { DxfBaseReader, IGroup } from "../DxfBaseReader";
|
|
2
|
+
import IGeometry, { IEntity, IPoint } from "./geomtry";
|
|
3
|
+
export interface IAttribEntity extends IEntity {
|
|
4
|
+
xScale: number;
|
|
5
|
+
textStyle: "STANDARD" | string;
|
|
6
|
+
text: string;
|
|
7
|
+
tag: string;
|
|
8
|
+
prompt: string;
|
|
9
|
+
startPoint: IPoint;
|
|
10
|
+
endPoint: IPoint;
|
|
11
|
+
thickness: number;
|
|
12
|
+
textHeight: number;
|
|
13
|
+
rotation: number;
|
|
14
|
+
obliqueAngle: number;
|
|
15
|
+
invisible: boolean;
|
|
16
|
+
constant: boolean;
|
|
17
|
+
verificationRequired: boolean;
|
|
18
|
+
preset: boolean;
|
|
19
|
+
backwards: boolean;
|
|
20
|
+
mirrored: boolean;
|
|
21
|
+
horizontalJustification: number;
|
|
22
|
+
fieldLength: number;
|
|
23
|
+
verticalJustification: number;
|
|
24
|
+
extrusionDirectionX: number;
|
|
25
|
+
extrusionDirectionY: number;
|
|
26
|
+
extrusionDirectionZ: number;
|
|
27
|
+
}
|
|
28
|
+
export default class Attrib implements IGeometry {
|
|
29
|
+
ForEntityName: "ATTRIB";
|
|
30
|
+
parseEntity(scanner: DxfBaseReader, curr: IGroup): IAttribEntity;
|
|
31
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DxfBaseReader, IGroup } from "../DxfBaseReader";
|
|
2
|
+
import IGeometry, { IEntity, IPoint } from "./geomtry";
|
|
3
|
+
export interface ICircleEntity extends IEntity {
|
|
4
|
+
center: IPoint;
|
|
5
|
+
radius: number;
|
|
6
|
+
startAngle: number;
|
|
7
|
+
endAngle: number;
|
|
8
|
+
angleLength: number;
|
|
9
|
+
}
|
|
10
|
+
export default class Circle implements IGeometry {
|
|
11
|
+
ForEntityName: "CIRCLE";
|
|
12
|
+
parseEntity(scanner: DxfBaseReader, curr: IGroup): ICircleEntity;
|
|
13
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { DxfBaseReader, IGroup } from "../DxfBaseReader";
|
|
2
|
+
import IGeometry, { IEntity, IPoint } from "./geomtry";
|
|
3
|
+
export interface IDimensionEntity extends IEntity {
|
|
4
|
+
block: string;
|
|
5
|
+
dimStyleName: string;
|
|
6
|
+
anchorPoint: IPoint;
|
|
7
|
+
middleOfText: IPoint;
|
|
8
|
+
insertionPoint: IPoint;
|
|
9
|
+
linearOrAngularPoint1: IPoint;
|
|
10
|
+
linearOrAngularPoint2: IPoint;
|
|
11
|
+
diameterOrRadiusPoint: IPoint;
|
|
12
|
+
arcPoint: IPoint;
|
|
13
|
+
dimensionType: number;
|
|
14
|
+
attachmentPoint: number;
|
|
15
|
+
actualMeasurement: number;
|
|
16
|
+
text: string;
|
|
17
|
+
angle: number;
|
|
18
|
+
}
|
|
19
|
+
export default class Dimension implements IGeometry {
|
|
20
|
+
ForEntityName: "DIMENSION";
|
|
21
|
+
parseEntity(scanner: DxfBaseReader, curr: IGroup): IDimensionEntity;
|
|
22
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { DxfBaseReader, IGroup } from "../DxfBaseReader";
|
|
2
|
+
import IGeometry, { IEntity, IPoint } from "./geomtry";
|
|
3
|
+
export interface IEllipseEntity extends IEntity {
|
|
4
|
+
center: IPoint;
|
|
5
|
+
majorAxisEndPoint: IPoint;
|
|
6
|
+
axisRatio: number;
|
|
7
|
+
startAngle: number;
|
|
8
|
+
endAngle: number;
|
|
9
|
+
name: string;
|
|
10
|
+
extrusionDirection: IPoint;
|
|
11
|
+
}
|
|
12
|
+
export default class Ellipse implements IGeometry {
|
|
13
|
+
ForEntityName: "ELLIPSE";
|
|
14
|
+
parseEntity(scanner: DxfBaseReader, curr: IGroup): IEllipseEntity;
|
|
15
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { DxfBaseReader, IGroup } from "../DxfBaseReader";
|
|
2
|
+
/**
|
|
3
|
+
* @internal
|
|
4
|
+
*/
|
|
5
|
+
export interface IPoint {
|
|
6
|
+
x: number;
|
|
7
|
+
y: number;
|
|
8
|
+
z?: number;
|
|
9
|
+
bulge?: number;
|
|
10
|
+
}
|
|
11
|
+
export interface IEntity {
|
|
12
|
+
lineType: string;
|
|
13
|
+
layer: string;
|
|
14
|
+
lineTypeScale: number;
|
|
15
|
+
visible: boolean;
|
|
16
|
+
colorIndex: number;
|
|
17
|
+
color: number;
|
|
18
|
+
isTrueColor: boolean;
|
|
19
|
+
inPaperSpace: boolean;
|
|
20
|
+
layoutName: string;
|
|
21
|
+
ownerHandle: string;
|
|
22
|
+
materialObjectHandle: number;
|
|
23
|
+
lineweight: 0 | 5 | 9 | 13 | 15 | 18 | 20 | 25 | 30 | 35 | 40 | 50 | 53 | 60 | 70 | 80 | 90 | 100 | 106 | 120 | 140 | 158 | 200 | 211 | -3 | -2 | -1;
|
|
24
|
+
extendedData?: {
|
|
25
|
+
customStrings?: string[];
|
|
26
|
+
applicationName?: string;
|
|
27
|
+
originalHandle?: string;
|
|
28
|
+
originalType?: string;
|
|
29
|
+
outlines?: number[][][];
|
|
30
|
+
};
|
|
31
|
+
type: string;
|
|
32
|
+
handle: string;
|
|
33
|
+
blockPosition?: IPoint;
|
|
34
|
+
attributesFollow?: boolean;
|
|
35
|
+
}
|
|
36
|
+
export declare type EntityName = "POINT" | "3DFACE" | "ARC" | "ATTDEF" | "ATTRIB" | "CIRCLE" | "DIMENSION" | "MULTILEADER" | "ELLIPSE" | "HATCH" | "IMAGE" | "INSERT" | "LEADER" | "LINE" | "LWPOLYLINE" | "MTEXT" | "OLE2FRAME" | "POLYLINE" | "REGION" | "RAY" | "SEQEND" | "SOLID" | "SPLINE" | "ACAD_TABLE" | "TEXT" | "VERTEX" | "VIEWPORT" | "XLINE";
|
|
37
|
+
export default interface IGeometry {
|
|
38
|
+
ForEntityName: EntityName;
|
|
39
|
+
parseEntity(scanner: DxfBaseReader, curr: IGroup): IEntity;
|
|
40
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { DxfBaseReader, IGroup } from "../DxfBaseReader";
|
|
2
|
+
import IGeometry, { IEntity, IPoint } from "./geomtry";
|
|
3
|
+
export declare enum HatchBoundaryPathTypeFlag {
|
|
4
|
+
Default = 0,
|
|
5
|
+
External = 1,
|
|
6
|
+
Polyline = 2,
|
|
7
|
+
Derived = 4,
|
|
8
|
+
Textbox = 8,
|
|
9
|
+
Outermost = 16,
|
|
10
|
+
MaxFlags = 31
|
|
11
|
+
}
|
|
12
|
+
export declare enum HatchEdgeType {
|
|
13
|
+
Polyline = 0,
|
|
14
|
+
Line = 1,
|
|
15
|
+
Arc = 2,
|
|
16
|
+
Ellipse = 3,
|
|
17
|
+
Spline = 4
|
|
18
|
+
}
|
|
19
|
+
export declare abstract class HatchEdge {
|
|
20
|
+
readonly type: HatchEdgeType;
|
|
21
|
+
constructor(type: HatchEdgeType);
|
|
22
|
+
}
|
|
23
|
+
export declare class HatchPolyline extends HatchEdge {
|
|
24
|
+
points: IPoint[];
|
|
25
|
+
isClosed: boolean;
|
|
26
|
+
constructor();
|
|
27
|
+
}
|
|
28
|
+
export declare class HatchLine extends HatchEdge {
|
|
29
|
+
startPoint: IPoint;
|
|
30
|
+
endPoint: IPoint;
|
|
31
|
+
constructor();
|
|
32
|
+
}
|
|
33
|
+
export declare class HatchArc extends HatchEdge {
|
|
34
|
+
center: IPoint;
|
|
35
|
+
radius: number;
|
|
36
|
+
startAngle: number;
|
|
37
|
+
endAngle: number;
|
|
38
|
+
bCounterclockwise: boolean;
|
|
39
|
+
constructor();
|
|
40
|
+
}
|
|
41
|
+
export declare class HatchEllipse extends HatchEdge {
|
|
42
|
+
center: IPoint;
|
|
43
|
+
majorAxisEndPoint: IPoint;
|
|
44
|
+
minorRatio: number;
|
|
45
|
+
startAngle: number;
|
|
46
|
+
endAngle: number;
|
|
47
|
+
bCounterclockwise: boolean;
|
|
48
|
+
constructor();
|
|
49
|
+
}
|
|
50
|
+
export declare class HatchSpline extends HatchEdge {
|
|
51
|
+
controlPoints: IPoint[];
|
|
52
|
+
numControlPoints: number;
|
|
53
|
+
knotValues: number[];
|
|
54
|
+
numKnots: number;
|
|
55
|
+
bPeriodic: boolean;
|
|
56
|
+
bRational: boolean;
|
|
57
|
+
degreeOfSplineCurve: number;
|
|
58
|
+
constructor();
|
|
59
|
+
}
|
|
60
|
+
export interface IHatchBoundaryPath {
|
|
61
|
+
edges: HatchEdge[];
|
|
62
|
+
pathTypeFlag: HatchBoundaryPathTypeFlag;
|
|
63
|
+
}
|
|
64
|
+
export declare enum HatchStyle {
|
|
65
|
+
Normal = 0,
|
|
66
|
+
Outer = 1,
|
|
67
|
+
Ignore = 2
|
|
68
|
+
}
|
|
69
|
+
export declare enum HatchType {
|
|
70
|
+
UserDefined = 0,
|
|
71
|
+
Predefined = 1,
|
|
72
|
+
Custom = 2
|
|
73
|
+
}
|
|
74
|
+
export interface IHatchPatternLine {
|
|
75
|
+
angle: number;
|
|
76
|
+
origin: IPoint;
|
|
77
|
+
delta: IPoint;
|
|
78
|
+
dashPattern: number[];
|
|
79
|
+
}
|
|
80
|
+
export interface IHatchEntity extends IEntity {
|
|
81
|
+
elevationX: number;
|
|
82
|
+
elevationY: number;
|
|
83
|
+
elevationZ: number;
|
|
84
|
+
pixelSize: number;
|
|
85
|
+
associativity: boolean;
|
|
86
|
+
annotatedBoundary: boolean;
|
|
87
|
+
boundaryPathsCount: number;
|
|
88
|
+
boundaryPaths: IHatchBoundaryPath[];
|
|
89
|
+
seedPointsCount: number;
|
|
90
|
+
extrusionDirectionX: number;
|
|
91
|
+
extrusionDirectionY: number;
|
|
92
|
+
extrusionDirectionZ: number;
|
|
93
|
+
patternName: string;
|
|
94
|
+
solidFill: boolean;
|
|
95
|
+
patternFillColor: number;
|
|
96
|
+
style: HatchStyle;
|
|
97
|
+
patternType: HatchType;
|
|
98
|
+
patternAngle: number;
|
|
99
|
+
patternScale: number;
|
|
100
|
+
patternLines?: IHatchPatternLine[];
|
|
101
|
+
isGradientColor?: boolean;
|
|
102
|
+
gradientColorCount?: number;
|
|
103
|
+
gradientColors?: number[];
|
|
104
|
+
}
|
|
105
|
+
export default class Hatch implements IGeometry {
|
|
106
|
+
readonly ForEntityName = "HATCH";
|
|
107
|
+
parseEntity(scanner: DxfBaseReader, curr: IGroup): IHatchEntity;
|
|
108
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { DxfBaseReader, IGroup } from "../DxfBaseReader";
|
|
2
|
+
import IGeometry, { IEntity, IPoint } from "./geomtry";
|
|
3
|
+
export declare enum ImageFlags {
|
|
4
|
+
ShowImage = 1,
|
|
5
|
+
ShowImageWhenNotAlignedWithScreen = 2,
|
|
6
|
+
UseClippingBoundary = 4,
|
|
7
|
+
TransparencyIsOn = 8
|
|
8
|
+
}
|
|
9
|
+
export declare enum ImageClippingBoundaryType {
|
|
10
|
+
Rectangular = 1,
|
|
11
|
+
Polygonal = 2
|
|
12
|
+
}
|
|
13
|
+
export declare enum ImageClipMode {
|
|
14
|
+
Outside = 0,
|
|
15
|
+
Inside = 1
|
|
16
|
+
}
|
|
17
|
+
export interface IImageEntity extends IEntity {
|
|
18
|
+
position: IPoint;
|
|
19
|
+
uPixel: IPoint;
|
|
20
|
+
vPixel: IPoint;
|
|
21
|
+
imageSize: IPoint;
|
|
22
|
+
imageDefHandle: string;
|
|
23
|
+
flags: ImageFlags;
|
|
24
|
+
clipping: number;
|
|
25
|
+
brightness: number;
|
|
26
|
+
contrast: number;
|
|
27
|
+
fade: number;
|
|
28
|
+
imageDefReactorHandle: string;
|
|
29
|
+
clippingBoundaryType: ImageClippingBoundaryType;
|
|
30
|
+
countBoundaryPoints: number;
|
|
31
|
+
clippingBoundaryPath: IPoint[];
|
|
32
|
+
clipMode: ImageClipMode;
|
|
33
|
+
}
|
|
34
|
+
export default class Image implements IGeometry {
|
|
35
|
+
ForEntityName: "IMAGE";
|
|
36
|
+
parseEntity(scanner: DxfBaseReader, curr: IGroup): IImageEntity;
|
|
37
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { DxfBaseReader, IGroup } from "../DxfBaseReader";
|
|
2
|
+
import IGeometry, { IEntity, IPoint } from "./geomtry";
|
|
3
|
+
export interface IInsertEntity extends IEntity {
|
|
4
|
+
block: string;
|
|
5
|
+
attributesFollow: boolean;
|
|
6
|
+
xScale: number;
|
|
7
|
+
yScale: number;
|
|
8
|
+
zScale: number;
|
|
9
|
+
position: IPoint;
|
|
10
|
+
rotation: number;
|
|
11
|
+
columnCount: number;
|
|
12
|
+
rowCount: number;
|
|
13
|
+
columnSpacing: number;
|
|
14
|
+
rowSpacing: number;
|
|
15
|
+
extrusionDirection: IPoint;
|
|
16
|
+
}
|
|
17
|
+
export default class Insert implements IGeometry {
|
|
18
|
+
ForEntityName: "INSERT";
|
|
19
|
+
parseEntity(scanner: DxfBaseReader, curr: IGroup): IInsertEntity;
|
|
20
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { DxfBaseReader, IGroup } from "../DxfBaseReader";
|
|
2
|
+
import IGeometry, { IEntity, IPoint } from "./geomtry";
|
|
3
|
+
export interface ILeaderEntity extends IEntity {
|
|
4
|
+
dimensionStyle: string;
|
|
5
|
+
position: IPoint;
|
|
6
|
+
textHeight: number;
|
|
7
|
+
textWidth: number;
|
|
8
|
+
rotation: number;
|
|
9
|
+
arrowFlag: number;
|
|
10
|
+
pathType: number;
|
|
11
|
+
arrowHeight: number;
|
|
12
|
+
arrowHeadScale: number;
|
|
13
|
+
creationFlag: number;
|
|
14
|
+
direction: number;
|
|
15
|
+
hasHookline: boolean;
|
|
16
|
+
block: string;
|
|
17
|
+
arrowHeadBlockHandle: string;
|
|
18
|
+
vertices: IPoint[];
|
|
19
|
+
}
|
|
20
|
+
export default class Leader implements IGeometry {
|
|
21
|
+
ForEntityName: "LEADER";
|
|
22
|
+
parseEntity(scanner: DxfBaseReader, curr: IGroup): ILeaderEntity;
|
|
23
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DxfBaseReader, IGroup } from "../DxfBaseReader";
|
|
2
|
+
import IGeometry, { IEntity, IPoint } from './geomtry';
|
|
3
|
+
export interface ILineEntity extends IEntity {
|
|
4
|
+
vertices: IPoint[];
|
|
5
|
+
extrusionDirection: IPoint;
|
|
6
|
+
}
|
|
7
|
+
export default class Line implements IGeometry {
|
|
8
|
+
ForEntityName: "LINE";
|
|
9
|
+
parseEntity(scanner: DxfBaseReader, curr: IGroup): ILineEntity;
|
|
10
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { DxfBaseReader, IGroup } from "../DxfBaseReader";
|
|
2
|
+
import IGeometry, { IEntity, IPoint } from "./geomtry";
|
|
3
|
+
export interface IVertex extends IPoint {
|
|
4
|
+
startWidth?: number;
|
|
5
|
+
endWidth?: number;
|
|
6
|
+
}
|
|
7
|
+
export interface ILwpolylineEntity extends IEntity {
|
|
8
|
+
vertices: IVertex[];
|
|
9
|
+
elevation?: number;
|
|
10
|
+
thickness?: number;
|
|
11
|
+
shape: boolean;
|
|
12
|
+
hasContinuousLinetypePattern: boolean;
|
|
13
|
+
constantWidth?: number;
|
|
14
|
+
extrusionDirectionX?: number;
|
|
15
|
+
extrusionDirectionY?: number;
|
|
16
|
+
extrusionDirectionZ?: number;
|
|
17
|
+
}
|
|
18
|
+
export default class Lwpolyline implements IGeometry {
|
|
19
|
+
ForEntityName: "LWPOLYLINE";
|
|
20
|
+
parseEntity(scanner: DxfBaseReader, curr: IGroup): ILwpolylineEntity;
|
|
21
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { DxfBaseReader, IGroup } from "../DxfBaseReader";
|
|
2
|
+
import IGeometry, { IEntity, IPoint } from "./geomtry";
|
|
3
|
+
export interface ILeaderEntity extends IEntity {
|
|
4
|
+
leaderStyleId: number;
|
|
5
|
+
leaderLineType: number;
|
|
6
|
+
leaderLineColor: number;
|
|
7
|
+
leaderLineTypeId: number;
|
|
8
|
+
leaderLineWeight: number;
|
|
9
|
+
enableLanding: boolean;
|
|
10
|
+
enableDogLeg: boolean;
|
|
11
|
+
doglegLength: number;
|
|
12
|
+
arrowHeadId: number;
|
|
13
|
+
arrowHeadSize: number;
|
|
14
|
+
contentType: number;
|
|
15
|
+
textStyleId: number;
|
|
16
|
+
textLeftAttachmentType: number;
|
|
17
|
+
textRightAttachmentType: number;
|
|
18
|
+
textAngleType: number;
|
|
19
|
+
textAlignmentType: number;
|
|
20
|
+
textColor: number;
|
|
21
|
+
enableFrameText: boolean;
|
|
22
|
+
blockContentId: number;
|
|
23
|
+
blockContentColor: number;
|
|
24
|
+
blockContentScale: IPoint;
|
|
25
|
+
blockContentRotation: number;
|
|
26
|
+
blockContentConnectionType: number;
|
|
27
|
+
enableAnotationScale: boolean;
|
|
28
|
+
arrowHeadIndex: number;
|
|
29
|
+
blockAttributeId: number;
|
|
30
|
+
blockAttributeIndex: number;
|
|
31
|
+
blockAttributeWidth: number;
|
|
32
|
+
blockAttributeTextString: string;
|
|
33
|
+
textDirectionNegative: boolean;
|
|
34
|
+
textAlignInIPE: number;
|
|
35
|
+
textAttachmentPoint: number;
|
|
36
|
+
textAttachmentDirectionMText: number;
|
|
37
|
+
textAttachmentDirectionBottom: number;
|
|
38
|
+
textAttachmentDirectionTop: number;
|
|
39
|
+
contextData: IMLeaderContextData;
|
|
40
|
+
}
|
|
41
|
+
export interface IMLeaderContextData {
|
|
42
|
+
contentScale: number;
|
|
43
|
+
contentBasePosition: IPoint;
|
|
44
|
+
textHeight: number;
|
|
45
|
+
arrowHeadSize: number;
|
|
46
|
+
landingGap: number;
|
|
47
|
+
hasMText: boolean;
|
|
48
|
+
defaultTextContents: string;
|
|
49
|
+
textNormalDirection: IPoint;
|
|
50
|
+
textLocation: IPoint;
|
|
51
|
+
textDirection: IPoint;
|
|
52
|
+
textRotation: number;
|
|
53
|
+
textWidth: number;
|
|
54
|
+
textLineSpacingFactor: number;
|
|
55
|
+
textLineSpacingStyle: number;
|
|
56
|
+
textColor: number;
|
|
57
|
+
textAttachment: number;
|
|
58
|
+
textFlowDirection: number;
|
|
59
|
+
textBackgroundColor: number;
|
|
60
|
+
textBackgroundScaleFactor: number;
|
|
61
|
+
textBackgroundTransparency: number;
|
|
62
|
+
textBackgroundColorOn: boolean;
|
|
63
|
+
textBackgroundFillOn: boolean;
|
|
64
|
+
textColumnType: number;
|
|
65
|
+
textUseAutoHeight: boolean;
|
|
66
|
+
textColumnWidth: number;
|
|
67
|
+
textColumnGutterWidth: number;
|
|
68
|
+
textColumnFlowReversed: boolean;
|
|
69
|
+
textColumnHeight: number;
|
|
70
|
+
textUseWordBreak: boolean;
|
|
71
|
+
hasBlock: boolean;
|
|
72
|
+
blockContentId: number;
|
|
73
|
+
blockContentNormalDirection: IPoint;
|
|
74
|
+
blockContentPosition: IPoint;
|
|
75
|
+
blockContentScale: number;
|
|
76
|
+
blockContentRotation: number;
|
|
77
|
+
blockContentColor: number;
|
|
78
|
+
blockTransformationMatrix: number[];
|
|
79
|
+
planeOriginPoint: IPoint;
|
|
80
|
+
planeXAxisDirection: IPoint;
|
|
81
|
+
planeYAxisDirection: IPoint;
|
|
82
|
+
planeNormalReversed: boolean;
|
|
83
|
+
leaders: IMLeaderLeader[];
|
|
84
|
+
}
|
|
85
|
+
export interface IMLeaderLeader {
|
|
86
|
+
hasSetLastLeaderLinePoint: boolean;
|
|
87
|
+
hasSetDoglegVector: boolean;
|
|
88
|
+
lastLeaderLinePoint: IPoint;
|
|
89
|
+
doglegVector: IPoint;
|
|
90
|
+
leaderBranchIndex: number;
|
|
91
|
+
doglegLength: number;
|
|
92
|
+
leaderLines: IMLeaderLine[];
|
|
93
|
+
}
|
|
94
|
+
export interface IMLeaderLine {
|
|
95
|
+
vertices: IPoint[][];
|
|
96
|
+
leaderLineIndex: number;
|
|
97
|
+
}
|
|
98
|
+
export default class MLeader implements IGeometry {
|
|
99
|
+
ForEntityName: "MULTILEADER";
|
|
100
|
+
parseEntity(scanner: DxfBaseReader, curr: IGroup): ILeaderEntity;
|
|
101
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { DxfBaseReader, IGroup } from "../DxfBaseReader";
|
|
2
|
+
import IGeometry, { IEntity, IPoint } from "./geomtry";
|
|
3
|
+
export interface IMtextEntity extends IEntity {
|
|
4
|
+
text: string;
|
|
5
|
+
position: IPoint;
|
|
6
|
+
directionVector?: IPoint;
|
|
7
|
+
height: number;
|
|
8
|
+
width: number;
|
|
9
|
+
rotation?: number;
|
|
10
|
+
attachmentPoint: number;
|
|
11
|
+
drawingDirection: number;
|
|
12
|
+
textStyle?: string;
|
|
13
|
+
lineSpaceFactor?: number;
|
|
14
|
+
}
|
|
15
|
+
export default class Mtext implements IGeometry {
|
|
16
|
+
ForEntityName: "MTEXT";
|
|
17
|
+
parseEntity(scanner: DxfBaseReader, curr: IGroup): IMtextEntity;
|
|
18
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { DxfBaseReader, IGroup } from "../DxfBaseReader";
|
|
2
|
+
import IGeometry, { IEntity } from "./geomtry";
|
|
3
|
+
export interface IOleEntity extends IEntity {
|
|
4
|
+
documentType: string;
|
|
5
|
+
version: number;
|
|
6
|
+
leftUpX: number;
|
|
7
|
+
leftUpY: number;
|
|
8
|
+
leftUpZ: number;
|
|
9
|
+
rightDownX: number;
|
|
10
|
+
rightDownY: number;
|
|
11
|
+
rightDownZ: number;
|
|
12
|
+
type: string;
|
|
13
|
+
tileModeDescriptor: number;
|
|
14
|
+
binaryData: string;
|
|
15
|
+
lengthOfBinaryData: number;
|
|
16
|
+
}
|
|
17
|
+
export default class Ole implements IGeometry {
|
|
18
|
+
readonly ForEntityName = "OLE2FRAME";
|
|
19
|
+
parseEntity(scanner: DxfBaseReader, curr: IGroup): IOleEntity;
|
|
20
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { DxfBaseReader, IGroup } from "../DxfBaseReader";
|
|
2
|
+
import IGeometry, { IEntity, IPoint } from './geomtry';
|
|
3
|
+
export interface IPointEntity extends IEntity {
|
|
4
|
+
position: IPoint;
|
|
5
|
+
thickness: number;
|
|
6
|
+
extrusionDirection: IPoint;
|
|
7
|
+
}
|
|
8
|
+
export default class Point implements IGeometry {
|
|
9
|
+
ForEntityName: "POINT";
|
|
10
|
+
parseEntity(scanner: DxfBaseReader, curr: IGroup): IPointEntity;
|
|
11
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { DxfBaseReader, IGroup } from "../DxfBaseReader";
|
|
2
|
+
import IGeometry, { IEntity, IPoint } from "./geomtry";
|
|
3
|
+
import { IVertexEntity } from "./vertex";
|
|
4
|
+
export interface IPolylineEntity extends IEntity {
|
|
5
|
+
vertices: IVertexEntity[];
|
|
6
|
+
thickness: number;
|
|
7
|
+
shape: boolean;
|
|
8
|
+
includesCurveFitVertices: boolean;
|
|
9
|
+
includesSplineFitVertices: boolean;
|
|
10
|
+
is3dPolyline: boolean;
|
|
11
|
+
is3dPolygonMesh: boolean;
|
|
12
|
+
is3dPolygonMeshClosed: boolean;
|
|
13
|
+
isPolyfaceMesh: boolean;
|
|
14
|
+
hasContinuousLinetypePattern: boolean;
|
|
15
|
+
extrusionDirection: IPoint;
|
|
16
|
+
}
|
|
17
|
+
export default class Polyline implements IGeometry {
|
|
18
|
+
ForEntityName: "POLYLINE";
|
|
19
|
+
parseEntity(scanner: DxfBaseReader, curr: IGroup): IPolylineEntity;
|
|
20
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DxfBaseReader, IGroup } from "../DxfBaseReader";
|
|
2
|
+
import IGeometry, { IEntity, IPoint } from './geomtry';
|
|
3
|
+
export interface IRayEntity extends IEntity {
|
|
4
|
+
vertices: IPoint[];
|
|
5
|
+
directionVector: IPoint;
|
|
6
|
+
}
|
|
7
|
+
export default class Ray implements IGeometry {
|
|
8
|
+
ForEntityName: "RAY";
|
|
9
|
+
parseEntity(scanner: DxfBaseReader, curr: IGroup): IRayEntity;
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DxfBaseReader, IGroup } from "../DxfBaseReader";
|
|
2
|
+
import IGeometry, { IEntity } from "./geomtry";
|
|
3
|
+
export interface IRegionEntity extends IEntity {
|
|
4
|
+
modelerVersion?: number;
|
|
5
|
+
proprietaryData?: string;
|
|
6
|
+
}
|
|
7
|
+
export default class Region implements IGeometry {
|
|
8
|
+
ForEntityName: "REGION";
|
|
9
|
+
parseEntity(scanner: DxfBaseReader, curr: IGroup): IRegionEntity;
|
|
10
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { DxfBaseReader, IGroup } from "../DxfBaseReader";
|
|
2
|
+
import IGeometry, { IEntity } from './geomtry';
|
|
3
|
+
export interface ISeqendEntity extends IEntity {
|
|
4
|
+
}
|
|
5
|
+
export default class Seqend implements IGeometry {
|
|
6
|
+
ForEntityName: "SEQEND";
|
|
7
|
+
parseEntity(scanner: DxfBaseReader, curr: IGroup): ISeqendEntity;
|
|
8
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DxfBaseReader, IGroup } from "../DxfBaseReader";
|
|
2
|
+
import IGeometry, { IEntity, IPoint } from "./geomtry";
|
|
3
|
+
export interface ISolidEntity extends IEntity {
|
|
4
|
+
points: IPoint[];
|
|
5
|
+
extrusionDirection: IPoint;
|
|
6
|
+
}
|
|
7
|
+
export default class Solid implements IGeometry {
|
|
8
|
+
ForEntityName: "SOLID";
|
|
9
|
+
parseEntity(scanner: DxfBaseReader, curr: IGroup): ISolidEntity;
|
|
10
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { DxfBaseReader, IGroup } from "../DxfBaseReader";
|
|
2
|
+
import IGeometry, { IEntity, IPoint } from "./geomtry";
|
|
3
|
+
export interface ISplineEntity extends IEntity {
|
|
4
|
+
controlPoints?: IPoint[];
|
|
5
|
+
fitPoints?: IPoint[];
|
|
6
|
+
startTangent: IPoint;
|
|
7
|
+
endTangent: IPoint;
|
|
8
|
+
knotValues: number[];
|
|
9
|
+
closed: boolean;
|
|
10
|
+
periodic: boolean;
|
|
11
|
+
rational: boolean;
|
|
12
|
+
planar: boolean;
|
|
13
|
+
linear: boolean;
|
|
14
|
+
degreeOfSplineCurve: number;
|
|
15
|
+
numberOfKnots: number;
|
|
16
|
+
numberOfControlPoints: number;
|
|
17
|
+
numberOfFitPoints: number;
|
|
18
|
+
normalVector: IPoint;
|
|
19
|
+
}
|
|
20
|
+
export default class Spline implements IGeometry {
|
|
21
|
+
ForEntityName: "SPLINE";
|
|
22
|
+
parseEntity(scanner: DxfBaseReader, curr: IGroup): ISplineEntity;
|
|
23
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { DxfBaseReader, IGroup } from "../DxfBaseReader";
|
|
2
|
+
import IGeometry, { IEntity, IPoint } from "./geomtry";
|
|
3
|
+
import { IMtextEntity } from "./mtext";
|
|
4
|
+
export interface ITableEntity extends IEntity {
|
|
5
|
+
version: number;
|
|
6
|
+
startPoint: IPoint;
|
|
7
|
+
directionVector: IPoint;
|
|
8
|
+
tableValue: number;
|
|
9
|
+
rowCount: number;
|
|
10
|
+
columnCount: number;
|
|
11
|
+
overrideFlag?: number;
|
|
12
|
+
borderColorOverrideFlag?: number;
|
|
13
|
+
borderLineWeightOverrideFlag?: number;
|
|
14
|
+
borderVisibilityOverrideFlag?: number;
|
|
15
|
+
rowHeightArr: number[];
|
|
16
|
+
columnWidthArr: number[];
|
|
17
|
+
tableStyleId?: string;
|
|
18
|
+
blockRecordHandle?: string;
|
|
19
|
+
cells: TableCell[];
|
|
20
|
+
}
|
|
21
|
+
export interface TableCell extends IMtextEntity {
|
|
22
|
+
cellType: number;
|
|
23
|
+
flagValue?: number;
|
|
24
|
+
mergedValue?: number;
|
|
25
|
+
autoFit?: number;
|
|
26
|
+
borderWidth?: number;
|
|
27
|
+
borderHeight?: number;
|
|
28
|
+
overrideFlag?: number;
|
|
29
|
+
virtualEdgeFlag?: number;
|
|
30
|
+
fieldObjetId?: string;
|
|
31
|
+
blockTableRecordId?: string;
|
|
32
|
+
blockScale?: number;
|
|
33
|
+
blockAttrNum?: number;
|
|
34
|
+
attrDefineId?: string[];
|
|
35
|
+
attrText?: string;
|
|
36
|
+
textHeight: number;
|
|
37
|
+
extendedCellFlags?: number;
|
|
38
|
+
}
|
|
39
|
+
export default class Table implements IGeometry {
|
|
40
|
+
ForEntityName: "ACAD_TABLE";
|
|
41
|
+
parseEntity(scanner: DxfBaseReader, curr: IGroup): ITableEntity;
|
|
42
|
+
}
|