@linkiez/dxf-renew 7.1.0 → 7.2.3
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/.eslintrc.json +1 -16
- package/.yarn/install-state.gz +0 -0
- package/ARCHITECTURE.md +163 -0
- package/CHANGELOG.md +34 -0
- package/README.md +72 -10
- package/{PLAN.md → ROADMAP.md} +227 -35
- package/build.mjs +28 -0
- package/dist/dxf.js +1090 -344
- package/docs/FIXTURE_VALIDATION_EZDXF.md +1 -1
- package/lib/Helper.cjs +4 -0
- package/lib/Helper.cjs.map +3 -3
- package/lib/Helper.d.ts +19 -0
- package/lib/Helper.d.ts.map +1 -0
- package/lib/Helper.js +4 -0
- package/lib/Helper.js.map +2 -2
- package/lib/applyTransforms.d.ts +12 -0
- package/lib/applyTransforms.d.ts.map +1 -0
- package/lib/cli.cjs +1 -2
- package/lib/cli.cjs.map +1 -1
- package/lib/cli.d.ts +3 -0
- package/lib/cli.d.ts.map +1 -0
- package/lib/config.d.ts +4 -0
- package/lib/config.d.ts.map +1 -0
- package/lib/constants.d.ts +3 -0
- package/lib/constants.d.ts.map +1 -0
- package/lib/denormalise.d.ts +3 -0
- package/lib/denormalise.d.ts.map +1 -0
- package/lib/dimensionToSVG.d.ts +18 -0
- package/lib/dimensionToSVG.d.ts.map +1 -0
- package/lib/entityToPolyline.cjs +95 -0
- package/lib/entityToPolyline.cjs.map +3 -3
- package/lib/entityToPolyline.d.ts +48 -0
- package/lib/entityToPolyline.d.ts.map +1 -0
- package/lib/entityToPolyline.js +95 -0
- package/lib/entityToPolyline.js.map +2 -2
- package/lib/getRGBForEntity.d.ts +5 -0
- package/lib/getRGBForEntity.d.ts.map +1 -0
- package/lib/groupEntitiesByLayer.d.ts +3 -0
- package/lib/groupEntitiesByLayer.d.ts.map +1 -0
- package/lib/handlers/blocks.d.ts +3 -0
- package/lib/handlers/blocks.d.ts.map +1 -0
- package/lib/handlers/entities.cjs +22 -2
- package/lib/handlers/entities.cjs.map +3 -3
- package/lib/handlers/entities.d.ts +4 -0
- package/lib/handlers/entities.d.ts.map +1 -0
- package/lib/handlers/entities.js +22 -2
- package/lib/handlers/entities.js.map +2 -2
- package/lib/handlers/entity/arc.d.ts +20 -0
- package/lib/handlers/entity/arc.d.ts.map +1 -0
- package/lib/handlers/entity/attdef.d.ts +11 -0
- package/lib/handlers/entity/attdef.d.ts.map +1 -0
- package/lib/handlers/entity/attrib.d.ts +9 -0
- package/lib/handlers/entity/attrib.d.ts.map +1 -0
- package/lib/handlers/entity/circle.d.ts +17 -0
- package/lib/handlers/entity/circle.d.ts.map +1 -0
- package/lib/handlers/entity/common.d.ts +3 -0
- package/lib/handlers/entity/common.d.ts.map +1 -0
- package/lib/handlers/entity/dgnUnderlay.d.ts +33 -0
- package/lib/handlers/entity/dgnUnderlay.d.ts.map +1 -0
- package/lib/handlers/entity/dimension.d.ts +35 -0
- package/lib/handlers/entity/dimension.d.ts.map +1 -0
- package/lib/handlers/entity/dwfUnderlay.d.ts +33 -0
- package/lib/handlers/entity/dwfUnderlay.d.ts.map +1 -0
- package/lib/handlers/entity/ellipse.d.ts +10 -0
- package/lib/handlers/entity/ellipse.d.ts.map +1 -0
- package/lib/handlers/entity/hatch.d.ts +9 -0
- package/lib/handlers/entity/hatch.d.ts.map +1 -0
- package/lib/handlers/entity/image.d.ts +26 -0
- package/lib/handlers/entity/image.d.ts.map +1 -0
- package/lib/handlers/entity/insert.d.ts +10 -0
- package/lib/handlers/entity/insert.d.ts.map +1 -0
- package/lib/handlers/entity/leader.d.ts +48 -0
- package/lib/handlers/entity/leader.d.ts.map +1 -0
- package/lib/handlers/entity/line.d.ts +16 -0
- package/lib/handlers/entity/line.d.ts.map +1 -0
- package/lib/handlers/entity/lwpolyline.d.ts +10 -0
- package/lib/handlers/entity/lwpolyline.d.ts.map +1 -0
- package/lib/handlers/entity/mleader.cjs +69 -0
- package/lib/handlers/entity/mleader.cjs.map +7 -0
- package/lib/handlers/entity/mleader.d.ts +15 -0
- package/lib/handlers/entity/mleader.d.ts.map +1 -0
- package/lib/handlers/entity/mleader.js +34 -0
- package/lib/handlers/entity/mleader.js.map +7 -0
- package/lib/handlers/entity/mline.cjs +91 -0
- package/lib/handlers/entity/mline.cjs.map +7 -0
- package/lib/handlers/entity/mline.d.ts +17 -0
- package/lib/handlers/entity/mline.d.ts.map +1 -0
- package/lib/handlers/entity/mline.js +56 -0
- package/lib/handlers/entity/mline.js.map +7 -0
- package/lib/handlers/entity/mtext.d.ts +62 -0
- package/lib/handlers/entity/mtext.d.ts.map +1 -0
- package/lib/handlers/entity/ole2Frame.d.ts +9 -0
- package/lib/handlers/entity/ole2Frame.d.ts.map +1 -0
- package/lib/handlers/entity/oleframe.cjs +98 -0
- package/lib/handlers/entity/oleframe.cjs.map +7 -0
- package/lib/handlers/entity/oleframe.d.ts +9 -0
- package/lib/handlers/entity/oleframe.d.ts.map +1 -0
- package/lib/handlers/entity/oleframe.js +63 -0
- package/lib/handlers/entity/oleframe.js.map +7 -0
- package/lib/handlers/entity/pdfUnderlay.d.ts +33 -0
- package/lib/handlers/entity/pdfUnderlay.d.ts.map +1 -0
- package/lib/handlers/entity/point.d.ts +17 -0
- package/lib/handlers/entity/point.d.ts.map +1 -0
- package/lib/handlers/entity/polyline.d.ts +21 -0
- package/lib/handlers/entity/polyline.d.ts.map +1 -0
- package/lib/handlers/entity/ray.cjs +81 -0
- package/lib/handlers/entity/ray.cjs.map +7 -0
- package/lib/handlers/entity/ray.d.ts +15 -0
- package/lib/handlers/entity/ray.d.ts.map +1 -0
- package/lib/handlers/entity/ray.js +46 -0
- package/lib/handlers/entity/ray.js.map +7 -0
- package/lib/handlers/entity/region.cjs +67 -0
- package/lib/handlers/entity/region.cjs.map +7 -0
- package/lib/handlers/entity/region.d.ts +14 -0
- package/lib/handlers/entity/region.d.ts.map +1 -0
- package/lib/handlers/entity/region.js +32 -0
- package/lib/handlers/entity/region.js.map +7 -0
- package/lib/handlers/entity/shape.cjs +95 -0
- package/lib/handlers/entity/shape.cjs.map +7 -0
- package/lib/handlers/entity/shape.d.ts +22 -0
- package/lib/handlers/entity/shape.d.ts.map +1 -0
- package/lib/handlers/entity/shape.js +60 -0
- package/lib/handlers/entity/shape.js.map +7 -0
- package/lib/handlers/entity/solid.d.ts +15 -0
- package/lib/handlers/entity/solid.d.ts.map +1 -0
- package/lib/handlers/entity/spline.d.ts +30 -0
- package/lib/handlers/entity/spline.d.ts.map +1 -0
- package/lib/handlers/entity/table.cjs +71 -0
- package/lib/handlers/entity/table.cjs.map +7 -0
- package/lib/handlers/entity/table.d.ts +16 -0
- package/lib/handlers/entity/table.d.ts.map +1 -0
- package/lib/handlers/entity/table.js +36 -0
- package/lib/handlers/entity/table.js.map +7 -0
- package/lib/handlers/entity/text.d.ts +31 -0
- package/lib/handlers/entity/text.d.ts.map +1 -0
- package/lib/handlers/entity/threeDFace.d.ts +14 -0
- package/lib/handlers/entity/threeDFace.d.ts.map +1 -0
- package/lib/handlers/entity/tolerance.d.ts +25 -0
- package/lib/handlers/entity/tolerance.d.ts.map +1 -0
- package/lib/handlers/entity/trace.cjs +101 -0
- package/lib/handlers/entity/trace.cjs.map +7 -0
- package/lib/handlers/entity/trace.d.ts +15 -0
- package/lib/handlers/entity/trace.d.ts.map +1 -0
- package/lib/handlers/entity/trace.js +66 -0
- package/lib/handlers/entity/trace.js.map +7 -0
- package/lib/handlers/entity/vertex.d.ts +10 -0
- package/lib/handlers/entity/vertex.d.ts.map +1 -0
- package/lib/handlers/entity/viewport.d.ts +9 -0
- package/lib/handlers/entity/viewport.d.ts.map +1 -0
- package/lib/handlers/entity/wipeout.cjs +122 -0
- package/lib/handlers/entity/wipeout.cjs.map +7 -0
- package/lib/handlers/entity/wipeout.d.ts +28 -0
- package/lib/handlers/entity/wipeout.d.ts.map +1 -0
- package/lib/handlers/entity/wipeout.js +87 -0
- package/lib/handlers/entity/wipeout.js.map +7 -0
- package/lib/handlers/entity/xline.cjs +81 -0
- package/lib/handlers/entity/xline.cjs.map +7 -0
- package/lib/handlers/entity/xline.d.ts +15 -0
- package/lib/handlers/entity/xline.d.ts.map +1 -0
- package/lib/handlers/entity/xline.js +46 -0
- package/lib/handlers/entity/xline.js.map +7 -0
- package/lib/handlers/header.d.ts +3 -0
- package/lib/handlers/header.d.ts.map +1 -0
- package/lib/handlers/objects.cjs +43 -1
- package/lib/handlers/objects.cjs.map +2 -2
- package/lib/handlers/objects.d.ts +3 -0
- package/lib/handlers/objects.d.ts.map +1 -0
- package/lib/handlers/objects.js +43 -1
- package/lib/handlers/objects.js.map +2 -2
- package/lib/handlers/tables.cjs +96 -17
- package/lib/handlers/tables.cjs.map +2 -2
- package/lib/handlers/tables.d.ts +13 -0
- package/lib/handlers/tables.d.ts.map +1 -0
- package/lib/handlers/tables.js +96 -17
- package/lib/handlers/tables.js.map +2 -2
- package/lib/index.cjs +5 -2
- package/lib/index.cjs.map +3 -3
- package/lib/index.d.ts +10 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +18 -16
- package/lib/index.js.map +3 -3
- package/lib/parseString.d.ts +3 -0
- package/lib/parseString.d.ts.map +1 -0
- package/lib/toJson.cjs +29 -0
- package/lib/toJson.cjs.map +7 -0
- package/lib/toJson.d.ts +3 -0
- package/lib/toJson.d.ts.map +1 -0
- package/lib/toJson.js +9 -0
- package/lib/toJson.js.map +7 -0
- package/lib/toPolylines.d.ts +4 -0
- package/lib/toPolylines.d.ts.map +1 -0
- package/lib/toSVG.cjs +34 -3
- package/lib/toSVG.cjs.map +2 -2
- package/lib/toSVG.d.ts +7 -0
- package/lib/toSVG.d.ts.map +1 -0
- package/lib/toSVG.js +34 -3
- package/lib/toSVG.js.map +2 -2
- package/lib/types/arc-entity.d.ts +8 -0
- package/lib/types/arc-entity.d.ts.map +1 -0
- package/lib/types/base-entity.d.ts +22 -0
- package/lib/types/base-entity.d.ts.map +1 -0
- package/lib/types/circle-entity.d.ts +6 -0
- package/lib/types/circle-entity.d.ts.map +1 -0
- package/lib/types/common.d.ts +30 -0
- package/lib/types/common.d.ts.map +1 -0
- package/lib/types/dimension-entity.d.ts +31 -0
- package/lib/types/dimension-entity.d.ts.map +1 -0
- package/lib/types/dxf.d.ts +55 -0
- package/lib/types/dxf.d.ts.map +1 -0
- package/lib/types/ellipse-entity.d.ts +11 -0
- package/lib/types/ellipse-entity.d.ts.map +1 -0
- package/lib/types/entity.cjs.map +1 -1
- package/lib/types/entity.d.ts +30 -0
- package/lib/types/entity.d.ts.map +1 -0
- package/lib/types/handler-internal.d.ts +44 -0
- package/lib/types/handler-internal.d.ts.map +1 -0
- package/lib/types/handler.d.ts +8 -0
- package/lib/types/handler.d.ts.map +1 -0
- package/lib/types/hatch-entity.d.ts +116 -0
- package/lib/types/hatch-entity.d.ts.map +1 -0
- package/lib/types/helper.cjs.map +1 -1
- package/lib/types/helper.d.ts +11 -0
- package/lib/types/helper.d.ts.map +1 -0
- package/lib/types/image-entity.d.ts +25 -0
- package/lib/types/image-entity.d.ts.map +1 -0
- package/lib/types/index.cjs +20 -0
- package/lib/types/index.cjs.map +2 -2
- package/lib/types/index.d.ts +43 -0
- package/lib/types/index.d.ts.map +1 -0
- package/lib/types/index.js +10 -0
- package/lib/types/index.js.map +2 -2
- package/lib/types/insert-entity.d.ts +16 -0
- package/lib/types/insert-entity.d.ts.map +1 -0
- package/lib/types/layer-groups.d.ts +6 -0
- package/lib/types/layer-groups.d.ts.map +1 -0
- package/lib/types/leader-entity.d.ts +28 -0
- package/lib/types/leader-entity.d.ts.map +1 -0
- package/lib/types/line-entity.d.ts +8 -0
- package/lib/types/line-entity.d.ts.map +1 -0
- package/lib/types/mleader-entity.cjs +17 -0
- package/lib/types/mleader-entity.cjs.map +7 -0
- package/lib/types/mleader-entity.d.ts +7 -0
- package/lib/types/mleader-entity.d.ts.map +1 -0
- package/lib/types/mleader-entity.js +1 -0
- package/lib/types/mleader-entity.js.map +7 -0
- package/lib/types/mline-entity.cjs +17 -0
- package/lib/types/mline-entity.cjs.map +7 -0
- package/lib/types/mline-entity.d.ts +10 -0
- package/lib/types/mline-entity.d.ts.map +1 -0
- package/lib/types/mline-entity.js +1 -0
- package/lib/types/mline-entity.js.map +7 -0
- package/lib/types/mtext-entity.d.ts +33 -0
- package/lib/types/mtext-entity.d.ts.map +1 -0
- package/lib/types/ole2frame-entity.d.ts +33 -0
- package/lib/types/ole2frame-entity.d.ts.map +1 -0
- package/lib/types/oleframe-entity.cjs +17 -0
- package/lib/types/oleframe-entity.cjs.map +7 -0
- package/lib/types/oleframe-entity.d.ts +33 -0
- package/lib/types/oleframe-entity.d.ts.map +1 -0
- package/lib/types/oleframe-entity.js +1 -0
- package/lib/types/oleframe-entity.js.map +7 -0
- package/lib/types/options.cjs.map +1 -1
- package/lib/types/options.d.ts +57 -0
- package/lib/types/options.d.ts.map +1 -0
- package/lib/types/point-entity.d.ts +5 -0
- package/lib/types/point-entity.d.ts.map +1 -0
- package/lib/types/polyline-entity.d.ts +17 -0
- package/lib/types/polyline-entity.d.ts.map +1 -0
- package/lib/types/polylines.d.ts +18 -0
- package/lib/types/polylines.d.ts.map +1 -0
- package/lib/types/ray-entity.cjs +17 -0
- package/lib/types/ray-entity.cjs.map +7 -0
- package/lib/types/ray-entity.d.ts +10 -0
- package/lib/types/ray-entity.d.ts.map +1 -0
- package/lib/types/ray-entity.js +1 -0
- package/lib/types/ray-entity.js.map +7 -0
- package/lib/types/region-entity.cjs +17 -0
- package/lib/types/region-entity.cjs.map +7 -0
- package/lib/types/region-entity.d.ts +10 -0
- package/lib/types/region-entity.d.ts.map +1 -0
- package/lib/types/region-entity.js +1 -0
- package/lib/types/region-entity.js.map +7 -0
- package/lib/types/shape-entity.cjs +17 -0
- package/lib/types/shape-entity.cjs.map +7 -0
- package/lib/types/shape-entity.d.ts +17 -0
- package/lib/types/shape-entity.d.ts.map +1 -0
- package/lib/types/shape-entity.js +1 -0
- package/lib/types/shape-entity.js.map +7 -0
- package/lib/types/solid-entity.d.ts +7 -0
- package/lib/types/solid-entity.d.ts.map +1 -0
- package/lib/types/spline-entity.d.ts +10 -0
- package/lib/types/spline-entity.d.ts.map +1 -0
- package/lib/types/svg.d.ts +27 -0
- package/lib/types/svg.d.ts.map +1 -0
- package/lib/types/table-entity.cjs +17 -0
- package/lib/types/table-entity.cjs.map +7 -0
- package/lib/types/table-entity.d.ts +12 -0
- package/lib/types/table-entity.d.ts.map +1 -0
- package/lib/types/table-entity.js +1 -0
- package/lib/types/table-entity.js.map +7 -0
- package/lib/types/tables.cjs.map +1 -1
- package/lib/types/tables.d.ts +549 -0
- package/lib/types/tables.d.ts.map +1 -0
- package/lib/types/text-entity.d.ts +21 -0
- package/lib/types/text-entity.d.ts.map +1 -0
- package/lib/types/tolerance-entity.d.ts +14 -0
- package/lib/types/tolerance-entity.d.ts.map +1 -0
- package/lib/types/trace-entity.cjs +17 -0
- package/lib/types/trace-entity.cjs.map +7 -0
- package/lib/types/trace-entity.d.ts +10 -0
- package/lib/types/trace-entity.d.ts.map +1 -0
- package/lib/types/trace-entity.js +1 -0
- package/lib/types/trace-entity.js.map +7 -0
- package/lib/types/underlay-entity.d.ts +26 -0
- package/lib/types/underlay-entity.d.ts.map +1 -0
- package/lib/types/util-types.d.ts +22 -0
- package/lib/types/util-types.d.ts.map +1 -0
- package/lib/types/viewport-entity.d.ts +79 -0
- package/lib/types/viewport-entity.d.ts.map +1 -0
- package/lib/types/wipeout-entity.cjs +17 -0
- package/lib/types/wipeout-entity.cjs.map +7 -0
- package/lib/types/wipeout-entity.d.ts +18 -0
- package/lib/types/wipeout-entity.d.ts.map +1 -0
- package/lib/types/wipeout-entity.js +1 -0
- package/lib/types/wipeout-entity.js.map +7 -0
- package/lib/types/xline-entity.cjs +17 -0
- package/lib/types/xline-entity.cjs.map +7 -0
- package/lib/types/xline-entity.d.ts +10 -0
- package/lib/types/xline-entity.d.ts.map +1 -0
- package/lib/types/xline-entity.js +1 -0
- package/lib/types/xline-entity.js.map +7 -0
- package/lib/types.d.ts +2 -0
- package/lib/types.d.ts.map +1 -0
- package/lib/util/bSpline.d.ts +8 -0
- package/lib/util/bSpline.d.ts.map +1 -0
- package/lib/util/colors.d.ts +5 -0
- package/lib/util/colors.d.ts.map +1 -0
- package/lib/util/createArcForLWPolyline.d.ts +9 -0
- package/lib/util/createArcForLWPolyline.d.ts.map +1 -0
- package/lib/util/dxfColorToRGB.d.ts +22 -0
- package/lib/util/dxfColorToRGB.d.ts.map +1 -0
- package/lib/util/escapeXmlText.d.ts +2 -0
- package/lib/util/escapeXmlText.d.ts.map +1 -0
- package/lib/util/insertKnot.d.ts +9 -0
- package/lib/util/insertKnot.d.ts.map +1 -0
- package/lib/util/logger.d.ts +10 -0
- package/lib/util/logger.d.ts.map +1 -0
- package/lib/util/rgbToColorAttribute.d.ts +7 -0
- package/lib/util/rgbToColorAttribute.d.ts.map +1 -0
- package/lib/util/rotate.d.ts +9 -0
- package/lib/util/rotate.d.ts.map +1 -0
- package/lib/util/round10.d.ts +2 -0
- package/lib/util/round10.d.ts.map +1 -0
- package/lib/util/toPiecewiseBezier.d.ts +18 -0
- package/lib/util/toPiecewiseBezier.d.ts.map +1 -0
- package/lib/util/transformBoundingBoxAndElement.d.ts +9 -0
- package/lib/util/transformBoundingBoxAndElement.d.ts.map +1 -0
- package/package.json +5 -19
- package/src/Helper.ts +6 -1
- package/src/entityToPolyline.ts +124 -2
- package/src/handlers/entities.ts +21 -1
- package/src/handlers/entity/mleader.ts +46 -0
- package/src/handlers/entity/mline.ts +74 -0
- package/src/handlers/entity/oleframe.ts +62 -0
- package/src/handlers/entity/ray.ts +52 -0
- package/src/handlers/entity/region.ts +42 -0
- package/src/handlers/entity/shape.ts +73 -0
- package/src/handlers/entity/table.ts +49 -0
- package/src/handlers/entity/trace.ts +72 -0
- package/src/handlers/entity/wipeout.ts +114 -0
- package/src/handlers/entity/xline.ts +52 -0
- package/src/handlers/objects.ts +64 -8
- package/src/handlers/tables.ts +134 -21
- package/src/index.ts +9 -18
- package/src/toJson.ts +8 -0
- package/src/toSVG.ts +45 -3
- package/src/types/entity.ts +20 -0
- package/src/types/helper.ts +2 -1
- package/src/types/index.ts +10 -0
- package/src/types/mleader-entity.ts +8 -0
- package/src/types/mline-entity.ts +12 -0
- package/src/types/oleframe-entity.ts +40 -0
- package/src/types/options.ts +7 -0
- package/src/types/ray-entity.ts +12 -0
- package/src/types/region-entity.ts +11 -0
- package/src/types/shape-entity.ts +19 -0
- package/src/types/table-entity.ts +14 -0
- package/src/types/tables.ts +76 -0
- package/src/types/trace-entity.ts +14 -0
- package/src/types/wipeout-entity.ts +20 -0
- package/src/types/xline-entity.ts +12 -0
- package/docs/DIMENSION_SUMMARY.md +0 -254
- package/docs/DXF_VERSION_SUPPORT.md +0 -45
- package/docs/ENTITY_SVG_ROADMAP.md +0 -96
- package/docs/IMPLEMENTED-2D-ENTITIES.md +0 -54
- package/docs/README.md +0 -22
- package/docs/SVG_RENDERING_INTEGRATION_TESTS.md +0 -119
- package/docs/TEXT-MTEXT-DIMENSION-SUPPORT.md +0 -241
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import type { BaseEntity } from './base-entity';
|
|
2
|
+
import type { Point3D } from './common';
|
|
3
|
+
/**
|
|
4
|
+
* Hatch pattern information
|
|
5
|
+
*/
|
|
6
|
+
export interface HatchPattern {
|
|
7
|
+
/** Pattern line count */
|
|
8
|
+
lineCount?: number;
|
|
9
|
+
/** Pattern angle */
|
|
10
|
+
angle?: number;
|
|
11
|
+
/** Pattern X offset */
|
|
12
|
+
x?: number;
|
|
13
|
+
/** Pattern Y offset */
|
|
14
|
+
y?: number;
|
|
15
|
+
/** Pattern X spacing offset */
|
|
16
|
+
offsetX?: number;
|
|
17
|
+
/** Pattern Y spacing offset */
|
|
18
|
+
offsetY?: number;
|
|
19
|
+
/** Dash count */
|
|
20
|
+
dashCount?: number;
|
|
21
|
+
/** Pattern line lengths */
|
|
22
|
+
length: Array<string | number>;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Hatch boundary loop
|
|
26
|
+
*/
|
|
27
|
+
export interface HatchLoop {
|
|
28
|
+
/** Loop type flags */
|
|
29
|
+
type?: number;
|
|
30
|
+
/** Entity count in loop */
|
|
31
|
+
count?: number;
|
|
32
|
+
/** Edge type (for non-polyline) */
|
|
33
|
+
edgeType?: number;
|
|
34
|
+
/** Has bulge flag (for polyline) */
|
|
35
|
+
hasBulge?: number;
|
|
36
|
+
/** Source object count */
|
|
37
|
+
sourceObjects?: number;
|
|
38
|
+
/** Loop entities */
|
|
39
|
+
entities: any[];
|
|
40
|
+
/** Reference handles */
|
|
41
|
+
references: Array<string | number>;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Hatch boundary definition
|
|
45
|
+
*/
|
|
46
|
+
export interface HatchBoundary {
|
|
47
|
+
/** Total boundary loop count */
|
|
48
|
+
count?: number;
|
|
49
|
+
/** Boundary loops */
|
|
50
|
+
loops: HatchLoop[];
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Hatch seed point
|
|
54
|
+
*/
|
|
55
|
+
export interface HatchSeed {
|
|
56
|
+
x: number;
|
|
57
|
+
y: number;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Hatch seeds collection
|
|
61
|
+
*/
|
|
62
|
+
export interface HatchSeeds {
|
|
63
|
+
/** Seed point count */
|
|
64
|
+
count: number;
|
|
65
|
+
/** Seed points */
|
|
66
|
+
seeds: HatchSeed[];
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Hatch color/gradient information
|
|
70
|
+
*/
|
|
71
|
+
export interface HatchColor {
|
|
72
|
+
/** Color count */
|
|
73
|
+
count?: number;
|
|
74
|
+
/** Color rotation */
|
|
75
|
+
rotation?: string | number;
|
|
76
|
+
/** Gradient definition */
|
|
77
|
+
gradient?: string | number;
|
|
78
|
+
/** Color tint value */
|
|
79
|
+
tint?: string | number;
|
|
80
|
+
}
|
|
81
|
+
export interface HatchEntity extends BaseEntity {
|
|
82
|
+
type: 'HATCH';
|
|
83
|
+
/** Pattern name */
|
|
84
|
+
patternName?: string | number;
|
|
85
|
+
/** Elevation point */
|
|
86
|
+
elevation?: Partial<Point3D>;
|
|
87
|
+
/** Extrusion direction vector */
|
|
88
|
+
extrusionDir?: Point3D;
|
|
89
|
+
/** Fill color index */
|
|
90
|
+
fillColor?: string | number;
|
|
91
|
+
/** Fill type (SOLID or PATTERN) */
|
|
92
|
+
fillType?: 'SOLID' | 'PATTERN';
|
|
93
|
+
/** Hatch pattern information */
|
|
94
|
+
pattern?: HatchPattern;
|
|
95
|
+
/** Hatch boundary definition */
|
|
96
|
+
boundary?: HatchBoundary;
|
|
97
|
+
/** Hatch seed points */
|
|
98
|
+
seeds?: HatchSeeds;
|
|
99
|
+
/** Hatch style (0=Normal, 1=Outer, 2=Ignore) */
|
|
100
|
+
style?: number;
|
|
101
|
+
/** Hatch type (0=User-defined, 1=Predefined, 2=Custom) */
|
|
102
|
+
hatchType?: number;
|
|
103
|
+
/** Shadow pattern angle */
|
|
104
|
+
shadowPatternAngle?: number;
|
|
105
|
+
/** Pattern spacing */
|
|
106
|
+
spacing?: number;
|
|
107
|
+
/** Double hatch flag */
|
|
108
|
+
double?: boolean;
|
|
109
|
+
/** Solid or gradient fill type */
|
|
110
|
+
solidOrGradient?: 'SOLID' | 'GRADIENT';
|
|
111
|
+
/** Color/gradient information */
|
|
112
|
+
color?: HatchColor;
|
|
113
|
+
/** Legacy: paths array (kept for compatibility) */
|
|
114
|
+
paths?: any[];
|
|
115
|
+
}
|
|
116
|
+
//# sourceMappingURL=hatch-entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hatch-entity.d.ts","sourceRoot":"","sources":["../../src/types/hatch-entity.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC/C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA;AAEvC;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,yBAAyB;IACzB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,oBAAoB;IACpB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,uBAAuB;IACvB,CAAC,CAAC,EAAE,MAAM,CAAA;IACV,uBAAuB;IACvB,CAAC,CAAC,EAAE,MAAM,CAAA;IACV,+BAA+B;IAC/B,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,+BAA+B;IAC/B,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,iBAAiB;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,2BAA2B;IAC3B,MAAM,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,CAAA;CAC/B;AAED;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,sBAAsB;IACtB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,2BAA2B;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,mCAAmC;IACnC,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,oCAAoC;IACpC,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,0BAA0B;IAC1B,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,oBAAoB;IACpB,QAAQ,EAAE,GAAG,EAAE,CAAA;IACf,wBAAwB;IACxB,UAAU,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,CAAA;CACnC;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,gCAAgC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,qBAAqB;IACrB,KAAK,EAAE,SAAS,EAAE,CAAA;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,CAAC,EAAE,MAAM,CAAA;IACT,CAAC,EAAE,MAAM,CAAA;CACV;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,uBAAuB;IACvB,KAAK,EAAE,MAAM,CAAA;IACb,kBAAkB;IAClB,KAAK,EAAE,SAAS,EAAE,CAAA;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,kBAAkB;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,qBAAqB;IACrB,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAC1B,0BAA0B;IAC1B,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAC1B,uBAAuB;IACvB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;CACvB;AAED,MAAM,WAAW,WAAY,SAAQ,UAAU;IAC7C,IAAI,EAAE,OAAO,CAAA;IACb,mBAAmB;IACnB,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAC7B,sBAAsB;IACtB,SAAS,CAAC,EAAE,OAAO,CAAC,OAAO,CAAC,CAAA;IAC5B,iCAAiC;IACjC,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,uBAAuB;IACvB,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAC3B,mCAAmC;IACnC,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IAC9B,gCAAgC;IAChC,OAAO,CAAC,EAAE,YAAY,CAAA;IACtB,gCAAgC;IAChC,QAAQ,CAAC,EAAE,aAAa,CAAA;IACxB,wBAAwB;IACxB,KAAK,CAAC,EAAE,UAAU,CAAA;IAClB,gDAAgD;IAChD,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,0DAA0D;IAC1D,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,2BAA2B;IAC3B,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,sBAAsB;IACtB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,wBAAwB;IACxB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,kCAAkC;IAClC,eAAe,CAAC,EAAE,OAAO,GAAG,UAAU,CAAA;IACtC,iCAAiC;IACjC,KAAK,CAAC,EAAE,UAAU,CAAA;IAElB,mDAAmD;IACnD,KAAK,CAAC,EAAE,GAAG,EAAE,CAAA;CAGd"}
|
package/lib/types/helper.cjs.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/types/helper.ts"],
|
|
4
|
-
"sourcesContent": ["// Helper class interface\n\nimport type { ParsedDXF } from './dxf'\nimport type { Entity } from './entity'\nimport type { ToPolylinesOptions, ToSVGOptions } from './options'\n\nexport interface HelperInterface {\n parsed: ParsedDXF\n denormalised: Entity[]\n toSVG(options?: ToSVGOptions): string\n toPolylines(options?: ToPolylinesOptions): any[]\n}\n"],
|
|
4
|
+
"sourcesContent": ["// Helper class interface\n\nimport type { ParsedDXF } from './dxf'\nimport type { Entity } from './entity'\nimport type { ToJsonOptions, ToPolylinesOptions, ToSVGOptions } from './options'\n\nexport interface HelperInterface {\n parsed: ParsedDXF\n denormalised: Entity[]\n toSVG(options?: ToSVGOptions): string\n toJson(options?: ToJsonOptions): string\n toPolylines(options?: ToPolylinesOptions): any[]\n}\n"],
|
|
5
5
|
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ParsedDXF } from './dxf';
|
|
2
|
+
import type { Entity } from './entity';
|
|
3
|
+
import type { ToJsonOptions, ToPolylinesOptions, ToSVGOptions } from './options';
|
|
4
|
+
export interface HelperInterface {
|
|
5
|
+
parsed: ParsedDXF;
|
|
6
|
+
denormalised: Entity[];
|
|
7
|
+
toSVG(options?: ToSVGOptions): string;
|
|
8
|
+
toJson(options?: ToJsonOptions): string;
|
|
9
|
+
toPolylines(options?: ToPolylinesOptions): any[];
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=helper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helper.d.ts","sourceRoot":"","sources":["../../src/types/helper.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACtC,OAAO,KAAK,EAAE,aAAa,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAEhF,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,SAAS,CAAA;IACjB,YAAY,EAAE,MAAM,EAAE,CAAA;IACtB,KAAK,CAAC,OAAO,CAAC,EAAE,YAAY,GAAG,MAAM,CAAA;IACrC,MAAM,CAAC,OAAO,CAAC,EAAE,aAAa,GAAG,MAAM,CAAA;IACvC,WAAW,CAAC,OAAO,CAAC,EAAE,kBAAkB,GAAG,GAAG,EAAE,CAAA;CACjD"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { BaseEntity } from './base-entity';
|
|
2
|
+
import type { Point3D } from './common';
|
|
3
|
+
export interface ImageEntity extends BaseEntity {
|
|
4
|
+
type: 'IMAGE';
|
|
5
|
+
insertionPoint: Point3D;
|
|
6
|
+
uVector: Point3D;
|
|
7
|
+
vVector: Point3D;
|
|
8
|
+
/** Image size in pixels. */
|
|
9
|
+
pixelSizeX: number;
|
|
10
|
+
pixelSizeY: number;
|
|
11
|
+
/** Hard reference to IMAGEDEF object. */
|
|
12
|
+
imageDefHandle?: string;
|
|
13
|
+
/** Hard reference to IMAGEDEF_REACTOR object. */
|
|
14
|
+
imageDefReactorHandle?: string;
|
|
15
|
+
/** Image display properties bitmask. */
|
|
16
|
+
displayProperties?: number;
|
|
17
|
+
/** Clipping state: 0 = Off; 1 = On. */
|
|
18
|
+
clippingState?: number;
|
|
19
|
+
brightness?: number;
|
|
20
|
+
contrast?: number;
|
|
21
|
+
fade?: number;
|
|
22
|
+
/** DXF class version. */
|
|
23
|
+
classVersion?: number;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=image-entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"image-entity.d.ts","sourceRoot":"","sources":["../../src/types/image-entity.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC/C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA;AAEvC,MAAM,WAAW,WAAY,SAAQ,UAAU;IAC7C,IAAI,EAAE,OAAO,CAAA;IAEb,cAAc,EAAE,OAAO,CAAA;IACvB,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,EAAE,OAAO,CAAA;IAEhB,4BAA4B;IAC5B,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;IAElB,yCAAyC;IACzC,cAAc,CAAC,EAAE,MAAM,CAAA;IAEvB,iDAAiD;IACjD,qBAAqB,CAAC,EAAE,MAAM,CAAA;IAE9B,wCAAwC;IACxC,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAE1B,uCAAuC;IACvC,aAAa,CAAC,EAAE,MAAM,CAAA;IAEtB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb,yBAAyB;IACzB,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB"}
|
package/lib/types/index.cjs
CHANGED
|
@@ -26,16 +26,26 @@ __reExport(types_exports, require("./image-entity"), module.exports);
|
|
|
26
26
|
__reExport(types_exports, require("./insert-entity"), module.exports);
|
|
27
27
|
__reExport(types_exports, require("./leader-entity"), module.exports);
|
|
28
28
|
__reExport(types_exports, require("./line-entity"), module.exports);
|
|
29
|
+
__reExport(types_exports, require("./mleader-entity"), module.exports);
|
|
30
|
+
__reExport(types_exports, require("./mline-entity"), module.exports);
|
|
29
31
|
__reExport(types_exports, require("./mtext-entity"), module.exports);
|
|
30
32
|
__reExport(types_exports, require("./ole2frame-entity"), module.exports);
|
|
33
|
+
__reExport(types_exports, require("./oleframe-entity"), module.exports);
|
|
31
34
|
__reExport(types_exports, require("./point-entity"), module.exports);
|
|
32
35
|
__reExport(types_exports, require("./polyline-entity"), module.exports);
|
|
36
|
+
__reExport(types_exports, require("./ray-entity"), module.exports);
|
|
37
|
+
__reExport(types_exports, require("./region-entity"), module.exports);
|
|
38
|
+
__reExport(types_exports, require("./shape-entity"), module.exports);
|
|
33
39
|
__reExport(types_exports, require("./solid-entity"), module.exports);
|
|
34
40
|
__reExport(types_exports, require("./spline-entity"), module.exports);
|
|
41
|
+
__reExport(types_exports, require("./table-entity"), module.exports);
|
|
35
42
|
__reExport(types_exports, require("./text-entity"), module.exports);
|
|
36
43
|
__reExport(types_exports, require("./tolerance-entity"), module.exports);
|
|
44
|
+
__reExport(types_exports, require("./trace-entity"), module.exports);
|
|
37
45
|
__reExport(types_exports, require("./underlay-entity"), module.exports);
|
|
38
46
|
__reExport(types_exports, require("./viewport-entity"), module.exports);
|
|
47
|
+
__reExport(types_exports, require("./wipeout-entity"), module.exports);
|
|
48
|
+
__reExport(types_exports, require("./xline-entity"), module.exports);
|
|
39
49
|
__reExport(types_exports, require("./entity"), module.exports);
|
|
40
50
|
__reExport(types_exports, require("./dxf"), module.exports);
|
|
41
51
|
__reExport(types_exports, require("./tables"), module.exports);
|
|
@@ -60,16 +70,26 @@ __reExport(types_exports, require("./handler-internal"), module.exports);
|
|
|
60
70
|
...require("./insert-entity"),
|
|
61
71
|
...require("./leader-entity"),
|
|
62
72
|
...require("./line-entity"),
|
|
73
|
+
...require("./mleader-entity"),
|
|
74
|
+
...require("./mline-entity"),
|
|
63
75
|
...require("./mtext-entity"),
|
|
64
76
|
...require("./ole2frame-entity"),
|
|
77
|
+
...require("./oleframe-entity"),
|
|
65
78
|
...require("./point-entity"),
|
|
66
79
|
...require("./polyline-entity"),
|
|
80
|
+
...require("./ray-entity"),
|
|
81
|
+
...require("./region-entity"),
|
|
82
|
+
...require("./shape-entity"),
|
|
67
83
|
...require("./solid-entity"),
|
|
68
84
|
...require("./spline-entity"),
|
|
85
|
+
...require("./table-entity"),
|
|
69
86
|
...require("./text-entity"),
|
|
70
87
|
...require("./tolerance-entity"),
|
|
88
|
+
...require("./trace-entity"),
|
|
71
89
|
...require("./underlay-entity"),
|
|
72
90
|
...require("./viewport-entity"),
|
|
91
|
+
...require("./wipeout-entity"),
|
|
92
|
+
...require("./xline-entity"),
|
|
73
93
|
...require("./entity"),
|
|
74
94
|
...require("./dxf"),
|
|
75
95
|
...require("./tables"),
|
package/lib/types/index.cjs.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/types/index.ts"],
|
|
4
|
-
"sourcesContent": ["// Barrel export for all DXF types\n\n// Common types\nexport * from './common'\n\n// Base entity\nexport * from './base-entity'\n\n// Entity types\nexport * from './arc-entity'\nexport * from './circle-entity'\nexport * from './dimension-entity'\nexport * from './ellipse-entity'\nexport * from './hatch-entity'\nexport * from './image-entity'\nexport * from './insert-entity'\nexport * from './leader-entity'\nexport * from './line-entity'\nexport * from './mtext-entity'\nexport * from './ole2frame-entity'\nexport * from './point-entity'\nexport * from './polyline-entity'\nexport * from './solid-entity'\nexport * from './spline-entity'\nexport * from './text-entity'\nexport * from './tolerance-entity'\nexport * from './underlay-entity'\nexport * from './viewport-entity'\n\n// Union type\nexport * from './entity'\n\n// DXF structures\nexport * from './dxf'\n\n// Tables\nexport * from './tables'\n\n// Handlers\nexport * from './handler'\n\n// Options\nexport * from './options'\n\n// Helper\nexport * from './helper'\n\n// Conversion types\nexport * from './layer-groups'\nexport * from './polylines'\nexport * from './svg'\n\n// Utility types\nexport * from './util-types'\n\n// Handler internal types\nexport * from './handler-internal'\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAGA,0BAAc,qBAHd;AAMA,0BAAc,0BANd;AASA,0BAAc,yBATd;AAUA,0BAAc,4BAVd;AAWA,0BAAc,+BAXd;AAYA,0BAAc,6BAZd;AAaA,0BAAc,2BAbd;AAcA,0BAAc,2BAdd;AAeA,0BAAc,4BAfd;AAgBA,0BAAc,4BAhBd;AAiBA,0BAAc,0BAjBd;AAkBA,0BAAc,
|
|
4
|
+
"sourcesContent": ["// Barrel export for all DXF types\n\n// Common types\nexport * from './common'\n\n// Base entity\nexport * from './base-entity'\n\n// Entity types\nexport * from './arc-entity'\nexport * from './circle-entity'\nexport * from './dimension-entity'\nexport * from './ellipse-entity'\nexport * from './hatch-entity'\nexport * from './image-entity'\nexport * from './insert-entity'\nexport * from './leader-entity'\nexport * from './line-entity'\nexport * from './mleader-entity'\nexport * from './mline-entity'\nexport * from './mtext-entity'\nexport * from './ole2frame-entity'\nexport * from './oleframe-entity'\nexport * from './point-entity'\nexport * from './polyline-entity'\nexport * from './ray-entity'\nexport * from './region-entity'\nexport * from './shape-entity'\nexport * from './solid-entity'\nexport * from './spline-entity'\nexport * from './table-entity'\nexport * from './text-entity'\nexport * from './tolerance-entity'\nexport * from './trace-entity'\nexport * from './underlay-entity'\nexport * from './viewport-entity'\nexport * from './wipeout-entity'\nexport * from './xline-entity'\n\n// Union type\nexport * from './entity'\n\n// DXF structures\nexport * from './dxf'\n\n// Tables\nexport * from './tables'\n\n// Handlers\nexport * from './handler'\n\n// Options\nexport * from './options'\n\n// Helper\nexport * from './helper'\n\n// Conversion types\nexport * from './layer-groups'\nexport * from './polylines'\nexport * from './svg'\n\n// Utility types\nexport * from './util-types'\n\n// Handler internal types\nexport * from './handler-internal'\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAGA,0BAAc,qBAHd;AAMA,0BAAc,0BANd;AASA,0BAAc,yBATd;AAUA,0BAAc,4BAVd;AAWA,0BAAc,+BAXd;AAYA,0BAAc,6BAZd;AAaA,0BAAc,2BAbd;AAcA,0BAAc,2BAdd;AAeA,0BAAc,4BAfd;AAgBA,0BAAc,4BAhBd;AAiBA,0BAAc,0BAjBd;AAkBA,0BAAc,6BAlBd;AAmBA,0BAAc,2BAnBd;AAoBA,0BAAc,2BApBd;AAqBA,0BAAc,+BArBd;AAsBA,0BAAc,8BAtBd;AAuBA,0BAAc,2BAvBd;AAwBA,0BAAc,8BAxBd;AAyBA,0BAAc,yBAzBd;AA0BA,0BAAc,4BA1Bd;AA2BA,0BAAc,2BA3Bd;AA4BA,0BAAc,2BA5Bd;AA6BA,0BAAc,4BA7Bd;AA8BA,0BAAc,2BA9Bd;AA+BA,0BAAc,0BA/Bd;AAgCA,0BAAc,+BAhCd;AAiCA,0BAAc,2BAjCd;AAkCA,0BAAc,8BAlCd;AAmCA,0BAAc,8BAnCd;AAoCA,0BAAc,6BApCd;AAqCA,0BAAc,2BArCd;AAwCA,0BAAc,qBAxCd;AA2CA,0BAAc,kBA3Cd;AA8CA,0BAAc,qBA9Cd;AAiDA,0BAAc,sBAjDd;AAoDA,0BAAc,sBApDd;AAuDA,0BAAc,qBAvDd;AA0DA,0BAAc,2BA1Dd;AA2DA,0BAAc,wBA3Dd;AA4DA,0BAAc,kBA5Dd;AA+DA,0BAAc,yBA/Dd;AAkEA,0BAAc,+BAlEd;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export * from './common';
|
|
2
|
+
export * from './base-entity';
|
|
3
|
+
export * from './arc-entity';
|
|
4
|
+
export * from './circle-entity';
|
|
5
|
+
export * from './dimension-entity';
|
|
6
|
+
export * from './ellipse-entity';
|
|
7
|
+
export * from './hatch-entity';
|
|
8
|
+
export * from './image-entity';
|
|
9
|
+
export * from './insert-entity';
|
|
10
|
+
export * from './leader-entity';
|
|
11
|
+
export * from './line-entity';
|
|
12
|
+
export * from './mleader-entity';
|
|
13
|
+
export * from './mline-entity';
|
|
14
|
+
export * from './mtext-entity';
|
|
15
|
+
export * from './ole2frame-entity';
|
|
16
|
+
export * from './oleframe-entity';
|
|
17
|
+
export * from './point-entity';
|
|
18
|
+
export * from './polyline-entity';
|
|
19
|
+
export * from './ray-entity';
|
|
20
|
+
export * from './region-entity';
|
|
21
|
+
export * from './shape-entity';
|
|
22
|
+
export * from './solid-entity';
|
|
23
|
+
export * from './spline-entity';
|
|
24
|
+
export * from './table-entity';
|
|
25
|
+
export * from './text-entity';
|
|
26
|
+
export * from './tolerance-entity';
|
|
27
|
+
export * from './trace-entity';
|
|
28
|
+
export * from './underlay-entity';
|
|
29
|
+
export * from './viewport-entity';
|
|
30
|
+
export * from './wipeout-entity';
|
|
31
|
+
export * from './xline-entity';
|
|
32
|
+
export * from './entity';
|
|
33
|
+
export * from './dxf';
|
|
34
|
+
export * from './tables';
|
|
35
|
+
export * from './handler';
|
|
36
|
+
export * from './options';
|
|
37
|
+
export * from './helper';
|
|
38
|
+
export * from './layer-groups';
|
|
39
|
+
export * from './polylines';
|
|
40
|
+
export * from './svg';
|
|
41
|
+
export * from './util-types';
|
|
42
|
+
export * from './handler-internal';
|
|
43
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAGA,cAAc,UAAU,CAAA;AAGxB,cAAc,eAAe,CAAA;AAG7B,cAAc,cAAc,CAAA;AAC5B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,oBAAoB,CAAA;AAClC,cAAc,kBAAkB,CAAA;AAChC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA;AAC7B,cAAc,kBAAkB,CAAA;AAChC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,oBAAoB,CAAA;AAClC,cAAc,mBAAmB,CAAA;AACjC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,mBAAmB,CAAA;AACjC,cAAc,cAAc,CAAA;AAC5B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,eAAe,CAAA;AAC7B,cAAc,oBAAoB,CAAA;AAClC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,mBAAmB,CAAA;AACjC,cAAc,mBAAmB,CAAA;AACjC,cAAc,kBAAkB,CAAA;AAChC,cAAc,gBAAgB,CAAA;AAG9B,cAAc,UAAU,CAAA;AAGxB,cAAc,OAAO,CAAA;AAGrB,cAAc,UAAU,CAAA;AAGxB,cAAc,WAAW,CAAA;AAGzB,cAAc,WAAW,CAAA;AAGzB,cAAc,UAAU,CAAA;AAGxB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,OAAO,CAAA;AAGrB,cAAc,cAAc,CAAA;AAG5B,cAAc,oBAAoB,CAAA"}
|
package/lib/types/index.js
CHANGED
|
@@ -9,16 +9,26 @@ export * from "./image-entity";
|
|
|
9
9
|
export * from "./insert-entity";
|
|
10
10
|
export * from "./leader-entity";
|
|
11
11
|
export * from "./line-entity";
|
|
12
|
+
export * from "./mleader-entity";
|
|
13
|
+
export * from "./mline-entity";
|
|
12
14
|
export * from "./mtext-entity";
|
|
13
15
|
export * from "./ole2frame-entity";
|
|
16
|
+
export * from "./oleframe-entity";
|
|
14
17
|
export * from "./point-entity";
|
|
15
18
|
export * from "./polyline-entity";
|
|
19
|
+
export * from "./ray-entity";
|
|
20
|
+
export * from "./region-entity";
|
|
21
|
+
export * from "./shape-entity";
|
|
16
22
|
export * from "./solid-entity";
|
|
17
23
|
export * from "./spline-entity";
|
|
24
|
+
export * from "./table-entity";
|
|
18
25
|
export * from "./text-entity";
|
|
19
26
|
export * from "./tolerance-entity";
|
|
27
|
+
export * from "./trace-entity";
|
|
20
28
|
export * from "./underlay-entity";
|
|
21
29
|
export * from "./viewport-entity";
|
|
30
|
+
export * from "./wipeout-entity";
|
|
31
|
+
export * from "./xline-entity";
|
|
22
32
|
export * from "./entity";
|
|
23
33
|
export * from "./dxf";
|
|
24
34
|
export * from "./tables";
|
package/lib/types/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/types/index.ts"],
|
|
4
|
-
"sourcesContent": ["// Barrel export for all DXF types\n\n// Common types\nexport * from './common'\n\n// Base entity\nexport * from './base-entity'\n\n// Entity types\nexport * from './arc-entity'\nexport * from './circle-entity'\nexport * from './dimension-entity'\nexport * from './ellipse-entity'\nexport * from './hatch-entity'\nexport * from './image-entity'\nexport * from './insert-entity'\nexport * from './leader-entity'\nexport * from './line-entity'\nexport * from './mtext-entity'\nexport * from './ole2frame-entity'\nexport * from './point-entity'\nexport * from './polyline-entity'\nexport * from './solid-entity'\nexport * from './spline-entity'\nexport * from './text-entity'\nexport * from './tolerance-entity'\nexport * from './underlay-entity'\nexport * from './viewport-entity'\n\n// Union type\nexport * from './entity'\n\n// DXF structures\nexport * from './dxf'\n\n// Tables\nexport * from './tables'\n\n// Handlers\nexport * from './handler'\n\n// Options\nexport * from './options'\n\n// Helper\nexport * from './helper'\n\n// Conversion types\nexport * from './layer-groups'\nexport * from './polylines'\nexport * from './svg'\n\n// Utility types\nexport * from './util-types'\n\n// Handler internal types\nexport * from './handler-internal'\n"],
|
|
5
|
-
"mappings": "AAGA,cAAc;AAGd,cAAc;AAGd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AAGd,cAAc;AAGd,cAAc;AAGd,cAAc;AAGd,cAAc;AAGd,cAAc;AAGd,cAAc;AAGd,cAAc;AACd,cAAc;AACd,cAAc;AAGd,cAAc;AAGd,cAAc;",
|
|
4
|
+
"sourcesContent": ["// Barrel export for all DXF types\n\n// Common types\nexport * from './common'\n\n// Base entity\nexport * from './base-entity'\n\n// Entity types\nexport * from './arc-entity'\nexport * from './circle-entity'\nexport * from './dimension-entity'\nexport * from './ellipse-entity'\nexport * from './hatch-entity'\nexport * from './image-entity'\nexport * from './insert-entity'\nexport * from './leader-entity'\nexport * from './line-entity'\nexport * from './mleader-entity'\nexport * from './mline-entity'\nexport * from './mtext-entity'\nexport * from './ole2frame-entity'\nexport * from './oleframe-entity'\nexport * from './point-entity'\nexport * from './polyline-entity'\nexport * from './ray-entity'\nexport * from './region-entity'\nexport * from './shape-entity'\nexport * from './solid-entity'\nexport * from './spline-entity'\nexport * from './table-entity'\nexport * from './text-entity'\nexport * from './tolerance-entity'\nexport * from './trace-entity'\nexport * from './underlay-entity'\nexport * from './viewport-entity'\nexport * from './wipeout-entity'\nexport * from './xline-entity'\n\n// Union type\nexport * from './entity'\n\n// DXF structures\nexport * from './dxf'\n\n// Tables\nexport * from './tables'\n\n// Handlers\nexport * from './handler'\n\n// Options\nexport * from './options'\n\n// Helper\nexport * from './helper'\n\n// Conversion types\nexport * from './layer-groups'\nexport * from './polylines'\nexport * from './svg'\n\n// Utility types\nexport * from './util-types'\n\n// Handler internal types\nexport * from './handler-internal'\n"],
|
|
5
|
+
"mappings": "AAGA,cAAc;AAGd,cAAc;AAGd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AAGd,cAAc;AAGd,cAAc;AAGd,cAAc;AAGd,cAAc;AAGd,cAAc;AAGd,cAAc;AAGd,cAAc;AACd,cAAc;AACd,cAAc;AAGd,cAAc;AAGd,cAAc;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { PositionalEntity } from './base-entity';
|
|
2
|
+
export interface InsertEntity extends PositionalEntity {
|
|
3
|
+
type: 'INSERT';
|
|
4
|
+
block: string;
|
|
5
|
+
scaleX?: number;
|
|
6
|
+
scaleY?: number;
|
|
7
|
+
scaleZ?: number;
|
|
8
|
+
rotation?: number;
|
|
9
|
+
columnCount?: number;
|
|
10
|
+
rowCount?: number;
|
|
11
|
+
columnSpacing?: number;
|
|
12
|
+
rowSpacing?: number;
|
|
13
|
+
extrusionX?: number;
|
|
14
|
+
extrusionY?: number;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=insert-entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"insert-entity.d.ts","sourceRoot":"","sources":["../../src/types/insert-entity.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAErD,MAAM,WAAW,YAAa,SAAQ,gBAAgB;IACpD,IAAI,EAAE,QAAQ,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,UAAU,CAAC,EAAE,MAAM,CAAA;CAEpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layer-groups.d.ts","sourceRoot":"","sources":["../../src/types/layer-groups.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAEtC,gCAAgC;AAChC,MAAM,WAAW,WAAW;IAC1B,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;CAC9B"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { BaseEntity } from './base-entity';
|
|
2
|
+
import type { Point3D } from './common';
|
|
3
|
+
export interface LeaderEntity extends BaseEntity {
|
|
4
|
+
type: 'LEADER';
|
|
5
|
+
/** Leader vertices, in drawing coordinates. */
|
|
6
|
+
vertices: Point3D[];
|
|
7
|
+
/** Dimension style name. */
|
|
8
|
+
dimensionStyleName?: string;
|
|
9
|
+
/** Arrowhead flag: 0 = Disabled; 1 = Enabled. */
|
|
10
|
+
arrowheadFlag?: number;
|
|
11
|
+
/** Leader path type: 0 = Straight line segments; 1 = Spline. */
|
|
12
|
+
pathType?: number;
|
|
13
|
+
/** Leader creation flag: 0 = text; 1 = tolerance; 2 = insert; 3 = none. */
|
|
14
|
+
creationFlag?: number;
|
|
15
|
+
hooklineDirectionFlag?: number;
|
|
16
|
+
hooklineFlag?: number;
|
|
17
|
+
textHeight?: number;
|
|
18
|
+
textWidth?: number;
|
|
19
|
+
/** Color to use if leader's DIMCLR D = BYBLOCK. */
|
|
20
|
+
color?: number;
|
|
21
|
+
/** Hard reference to associated annotation entity. */
|
|
22
|
+
annotationHandle?: string;
|
|
23
|
+
normal?: Point3D;
|
|
24
|
+
horizontalDirection?: Point3D;
|
|
25
|
+
blockOffset?: Point3D;
|
|
26
|
+
annotationOffset?: Point3D;
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=leader-entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"leader-entity.d.ts","sourceRoot":"","sources":["../../src/types/leader-entity.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC/C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA;AAEvC,MAAM,WAAW,YAAa,SAAQ,UAAU;IAC9C,IAAI,EAAE,QAAQ,CAAA;IAEd,+CAA+C;IAC/C,QAAQ,EAAE,OAAO,EAAE,CAAA;IAEnB,4BAA4B;IAC5B,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAE3B,iDAAiD;IACjD,aAAa,CAAC,EAAE,MAAM,CAAA;IAEtB,gEAAgE;IAChE,QAAQ,CAAC,EAAE,MAAM,CAAA;IAEjB,2EAA2E;IAC3E,YAAY,CAAC,EAAE,MAAM,CAAA;IAErB,qBAAqB,CAAC,EAAE,MAAM,CAAA;IAC9B,YAAY,CAAC,EAAE,MAAM,CAAA;IAErB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB,mDAAmD;IACnD,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd,sDAAsD;IACtD,gBAAgB,CAAC,EAAE,MAAM,CAAA;IAEzB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC3B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"line-entity.d.ts","sourceRoot":"","sources":["../../src/types/line-entity.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC/C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA;AAEvC,MAAM,WAAW,UAAW,SAAQ,UAAU;IAC5C,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,OAAO,CAAA;IACd,GAAG,EAAE,OAAO,CAAA;CACb"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
var mleader_entity_exports = {};
|
|
16
|
+
module.exports = __toCommonJS(mleader_entity_exports);
|
|
17
|
+
//# sourceMappingURL=mleader-entity.cjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/types/mleader-entity.ts"],
|
|
4
|
+
"sourcesContent": ["import type { BaseEntity } from './base-entity'\n\nexport interface MLeaderEntity extends BaseEntity {\n type: 'MLEADER'\n\n styleName?: string\n text?: string\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mleader-entity.d.ts","sourceRoot":"","sources":["../../src/types/mleader-entity.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAE/C,MAAM,WAAW,aAAc,SAAQ,UAAU;IAC/C,IAAI,EAAE,SAAS,CAAA;IAEf,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,IAAI,CAAC,EAAE,MAAM,CAAA;CACd"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=mleader-entity.js.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
var mline_entity_exports = {};
|
|
16
|
+
module.exports = __toCommonJS(mline_entity_exports);
|
|
17
|
+
//# sourceMappingURL=mline-entity.cjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/types/mline-entity.ts"],
|
|
4
|
+
"sourcesContent": ["import type { BaseEntity } from './base-entity'\nimport type { Point3D } from './common'\n\nexport interface MLineEntity extends BaseEntity {\n type: 'MLINE'\n\n startPoint?: Point3D\n endPoint?: Point3D\n\n vertexCount?: number\n styleName?: string\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { BaseEntity } from './base-entity';
|
|
2
|
+
import type { Point3D } from './common';
|
|
3
|
+
export interface MLineEntity extends BaseEntity {
|
|
4
|
+
type: 'MLINE';
|
|
5
|
+
startPoint?: Point3D;
|
|
6
|
+
endPoint?: Point3D;
|
|
7
|
+
vertexCount?: number;
|
|
8
|
+
styleName?: string;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=mline-entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mline-entity.d.ts","sourceRoot":"","sources":["../../src/types/mline-entity.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC/C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA;AAEvC,MAAM,WAAW,WAAY,SAAQ,UAAU;IAC7C,IAAI,EAAE,OAAO,CAAA;IAEb,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=mline-entity.js.map
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { BaseEntity } from './base-entity';
|
|
2
|
+
export interface MTextEntity extends BaseEntity {
|
|
3
|
+
type: 'MTEXT';
|
|
4
|
+
string: string;
|
|
5
|
+
x?: number;
|
|
6
|
+
y?: number;
|
|
7
|
+
z?: number;
|
|
8
|
+
nominalTextHeight?: number;
|
|
9
|
+
textHeight?: number;
|
|
10
|
+
refRectangleWidth?: number;
|
|
11
|
+
attachmentPoint?: number;
|
|
12
|
+
drawingDirection?: number;
|
|
13
|
+
styleName?: string;
|
|
14
|
+
xAxisX?: number;
|
|
15
|
+
xAxisY?: number;
|
|
16
|
+
xAxisZ?: number;
|
|
17
|
+
horizontalWidth?: number;
|
|
18
|
+
verticalHeight?: number;
|
|
19
|
+
lineSpacingStyle?: number;
|
|
20
|
+
lineSpacingFactor?: number;
|
|
21
|
+
backgroundFill?: number;
|
|
22
|
+
fillBoxStyle?: number;
|
|
23
|
+
bgFillColor?: number;
|
|
24
|
+
bgFillTransparency?: number;
|
|
25
|
+
columnType?: number;
|
|
26
|
+
columnCount?: number;
|
|
27
|
+
columnFlowReversed?: boolean;
|
|
28
|
+
columnAutoheight?: boolean;
|
|
29
|
+
columnWidth?: number;
|
|
30
|
+
columnGutter?: number;
|
|
31
|
+
columnHeights?: number;
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=mtext-entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mtext-entity.d.ts","sourceRoot":"","sources":["../../src/types/mtext-entity.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAE/C,MAAM,WAAW,WAAY,SAAQ,UAAU;IAC7C,IAAI,EAAE,OAAO,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,CAAC,CAAC,EAAE,MAAM,CAAA;IACV,CAAC,CAAC,EAAE,MAAM,CAAA;IACV,CAAC,CAAC,EAAE,MAAM,CAAA;IACV,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { BaseEntity } from './base-entity';
|
|
2
|
+
/**
|
|
3
|
+
* OLE2Frame entity
|
|
4
|
+
* Represents an embedded OLE2 object frame
|
|
5
|
+
*/
|
|
6
|
+
export interface Ole2FrameEntity extends BaseEntity {
|
|
7
|
+
type: 'OLE2FRAME';
|
|
8
|
+
/** OLE version number */
|
|
9
|
+
version?: string | number;
|
|
10
|
+
/** End of object name/description */
|
|
11
|
+
name?: string | number;
|
|
12
|
+
/** Upper-left corner X coordinate (WCS) */
|
|
13
|
+
upperLeftX?: string | number;
|
|
14
|
+
/** Upper-left corner Y coordinate (WCS) */
|
|
15
|
+
upperLeftY?: string | number;
|
|
16
|
+
/** Upper-left corner Z coordinate (WCS) */
|
|
17
|
+
upperLeftZ?: string | number;
|
|
18
|
+
/** Lower-right corner X coordinate (WCS) */
|
|
19
|
+
lowerRightX?: string | number;
|
|
20
|
+
/** Lower-right corner Y coordinate (WCS) */
|
|
21
|
+
lowerRightY?: string | number;
|
|
22
|
+
/** Lower-right corner Z coordinate (WCS) */
|
|
23
|
+
lowerRightZ?: string | number;
|
|
24
|
+
/** Object type (1=Link, 2=Embedded, 3=Static) */
|
|
25
|
+
objectType?: string | number;
|
|
26
|
+
/** Tile mode descriptor (0=Model space, 1=Paper space) */
|
|
27
|
+
tile?: string | number;
|
|
28
|
+
/** Length of binary data */
|
|
29
|
+
length?: string | number;
|
|
30
|
+
/** Binary data (concatenated from multiple 310 codes) */
|
|
31
|
+
data: string;
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=ole2frame-entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ole2frame-entity.d.ts","sourceRoot":"","sources":["../../src/types/ole2frame-entity.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAE/C;;;GAGG;AACH,MAAM,WAAW,eAAgB,SAAQ,UAAU;IACjD,IAAI,EAAE,WAAW,CAAA;IACjB,yBAAyB;IACzB,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACzB,qCAAqC;IACrC,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACtB,2CAA2C;IAC3C,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAC5B,2CAA2C;IAC3C,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAC5B,2CAA2C;IAC3C,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAC5B,4CAA4C;IAC5C,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAC7B,4CAA4C;IAC5C,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAC7B,4CAA4C;IAC5C,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAC7B,iDAAiD;IACjD,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAC5B,0DAA0D;IAC1D,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACtB,4BAA4B;IAC5B,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACxB,yDAAyD;IACzD,IAAI,EAAE,MAAM,CAAA;CACb"}
|