@linkiez/dxf-renew 5.3.1
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/.eslintignore +17 -0
- package/.eslintrc.json +61 -0
- package/.gitattributes +4 -0
- package/.github/instructions/project-en_US.instructions.md +352 -0
- package/.github/workflows/release.yml +110 -0
- package/.husky/commit-msg +4 -0
- package/.husky/pre-commit +1 -0
- package/.prettierignore +1 -0
- package/.prettierrc.json +6 -0
- package/.releaserc.json +76 -0
- package/.travis.yml +6 -0
- package/.yarn/install-state.gz +0 -0
- package/.yarnrc.yml +1 -0
- package/CHANGELOG.md +134 -0
- package/CONTRIBUTING.md +271 -0
- package/LICENSE +21 -0
- package/PLAN.md +517 -0
- package/README.md +306 -0
- package/build.mjs +66 -0
- package/commitlint.config.js +25 -0
- package/dist/dxf.js +7234 -0
- package/docs/CODE_PATTERNS.md +182 -0
- package/docs/DIMENSION_SUMMARY.md +248 -0
- package/docs/DIMENSION_SUMMARY.pt-BR.md +248 -0
- package/docs/IMPLEMENTED-2D-ENTITIES.md +54 -0
- package/docs/IMPLEMENTED-2D-ENTITIES.pt-BR.md +54 -0
- package/docs/TEXT-MTEXT-DIMENSION-SUPPORT.md +241 -0
- package/docs/TEXT-MTEXT-DIMENSION-SUPPORT.pt-BR.md +169 -0
- package/docs/autocad_2012_pdf_dxf-reference_enu.md +8272 -0
- package/examples/dxf.html +36 -0
- package/examples/example.es5.js +30 -0
- package/examples/example.es6.js +30 -0
- package/examples/text-dimension-viewer.html +133 -0
- package/lib/Helper.cjs +89 -0
- package/lib/Helper.cjs.map +7 -0
- package/lib/Helper.js +59 -0
- package/lib/Helper.js.map +7 -0
- package/lib/applyTransforms.cjs +59 -0
- package/lib/applyTransforms.cjs.map +7 -0
- package/lib/applyTransforms.js +39 -0
- package/lib/applyTransforms.js.map +7 -0
- package/lib/cli.cjs +53 -0
- package/lib/cli.cjs.map +7 -0
- package/lib/cli.js +29 -0
- package/lib/cli.js.map +7 -0
- package/lib/config.cjs +30 -0
- package/lib/config.cjs.map +7 -0
- package/lib/config.js +10 -0
- package/lib/config.js.map +7 -0
- package/lib/constants.cjs +39 -0
- package/lib/constants.cjs.map +7 -0
- package/lib/constants.js +15 -0
- package/lib/constants.js.map +7 -0
- package/lib/denormalise.cjs +148 -0
- package/lib/denormalise.cjs.map +7 -0
- package/lib/denormalise.js +118 -0
- package/lib/denormalise.js.map +7 -0
- package/lib/dimensionToSVG.cjs +307 -0
- package/lib/dimensionToSVG.cjs.map +7 -0
- package/lib/dimensionToSVG.js +273 -0
- package/lib/dimensionToSVG.js.map +7 -0
- package/lib/entityToPolyline.cjs +248 -0
- package/lib/entityToPolyline.cjs.map +7 -0
- package/lib/entityToPolyline.js +213 -0
- package/lib/entityToPolyline.js.map +7 -0
- package/lib/getRGBForEntity.cjs +53 -0
- package/lib/getRGBForEntity.cjs.map +7 -0
- package/lib/getRGBForEntity.js +23 -0
- package/lib/getRGBForEntity.js.map +7 -0
- package/lib/groupEntitiesByLayer.cjs +34 -0
- package/lib/groupEntitiesByLayer.cjs.map +7 -0
- package/lib/groupEntitiesByLayer.js +14 -0
- package/lib/groupEntitiesByLayer.js.map +7 -0
- package/lib/handlers/blocks.cjs +93 -0
- package/lib/handlers/blocks.cjs.map +7 -0
- package/lib/handlers/blocks.js +63 -0
- package/lib/handlers/blocks.js.map +7 -0
- package/lib/handlers/entities.cjs +118 -0
- package/lib/handlers/entities.cjs.map +7 -0
- package/lib/handlers/entities.js +88 -0
- package/lib/handlers/entities.js.map +7 -0
- package/lib/handlers/entity/arc.cjs +82 -0
- package/lib/handlers/entity/arc.cjs.map +7 -0
- package/lib/handlers/entity/arc.js +47 -0
- package/lib/handlers/entity/arc.js.map +7 -0
- package/lib/handlers/entity/attdef.cjs +318 -0
- package/lib/handlers/entity/attdef.cjs.map +7 -0
- package/lib/handlers/entity/attdef.js +282 -0
- package/lib/handlers/entity/attdef.js.map +7 -0
- package/lib/handlers/entity/attrib.cjs +52 -0
- package/lib/handlers/entity/attrib.cjs.map +7 -0
- package/lib/handlers/entity/attrib.js +27 -0
- package/lib/handlers/entity/attrib.js.map +7 -0
- package/lib/handlers/entity/circle.cjs +73 -0
- package/lib/handlers/entity/circle.cjs.map +7 -0
- package/lib/handlers/entity/circle.js +38 -0
- package/lib/handlers/entity/circle.js.map +7 -0
- package/lib/handlers/entity/common.cjs +83 -0
- package/lib/handlers/entity/common.cjs.map +7 -0
- package/lib/handlers/entity/common.js +63 -0
- package/lib/handlers/entity/common.js.map +7 -0
- package/lib/handlers/entity/dimension.cjs +203 -0
- package/lib/handlers/entity/dimension.cjs.map +7 -0
- package/lib/handlers/entity/dimension.js +168 -0
- package/lib/handlers/entity/dimension.js.map +7 -0
- package/lib/handlers/entity/ellipse.cjs +88 -0
- package/lib/handlers/entity/ellipse.cjs.map +7 -0
- package/lib/handlers/entity/ellipse.js +53 -0
- package/lib/handlers/entity/ellipse.js.map +7 -0
- package/lib/handlers/entity/hatch.cjs +470 -0
- package/lib/handlers/entity/hatch.cjs.map +7 -0
- package/lib/handlers/entity/hatch.js +435 -0
- package/lib/handlers/entity/hatch.js.map +7 -0
- package/lib/handlers/entity/insert.cjs +106 -0
- package/lib/handlers/entity/insert.cjs.map +7 -0
- package/lib/handlers/entity/insert.js +71 -0
- package/lib/handlers/entity/insert.js.map +7 -0
- package/lib/handlers/entity/line.cjs +84 -0
- package/lib/handlers/entity/line.cjs.map +7 -0
- package/lib/handlers/entity/line.js +49 -0
- package/lib/handlers/entity/line.js.map +7 -0
- package/lib/handlers/entity/lwpolyline.cjs +82 -0
- package/lib/handlers/entity/lwpolyline.cjs.map +7 -0
- package/lib/handlers/entity/lwpolyline.js +47 -0
- package/lib/handlers/entity/lwpolyline.js.map +7 -0
- package/lib/handlers/entity/mtext.cjs +121 -0
- package/lib/handlers/entity/mtext.cjs.map +7 -0
- package/lib/handlers/entity/mtext.js +85 -0
- package/lib/handlers/entity/mtext.js.map +7 -0
- package/lib/handlers/entity/ole2Frame.cjs +98 -0
- package/lib/handlers/entity/ole2Frame.cjs.map +7 -0
- package/lib/handlers/entity/ole2Frame.js +63 -0
- package/lib/handlers/entity/ole2Frame.js.map +7 -0
- package/lib/handlers/entity/point.cjs +73 -0
- package/lib/handlers/entity/point.cjs.map +7 -0
- package/lib/handlers/entity/point.js +38 -0
- package/lib/handlers/entity/point.js.map +7 -0
- package/lib/handlers/entity/polyline.cjs +70 -0
- package/lib/handlers/entity/polyline.cjs.map +7 -0
- package/lib/handlers/entity/polyline.js +35 -0
- package/lib/handlers/entity/polyline.js.map +7 -0
- package/lib/handlers/entity/solid.cjs +101 -0
- package/lib/handlers/entity/solid.cjs.map +7 -0
- package/lib/handlers/entity/solid.js +66 -0
- package/lib/handlers/entity/solid.js.map +7 -0
- package/lib/handlers/entity/spline.cjs +109 -0
- package/lib/handlers/entity/spline.cjs.map +7 -0
- package/lib/handlers/entity/spline.js +74 -0
- package/lib/handlers/entity/spline.js.map +7 -0
- package/lib/handlers/entity/text.cjs +85 -0
- package/lib/handlers/entity/text.cjs.map +7 -0
- package/lib/handlers/entity/text.js +49 -0
- package/lib/handlers/entity/text.js.map +7 -0
- package/lib/handlers/entity/threeDFace.cjs +98 -0
- package/lib/handlers/entity/threeDFace.cjs.map +7 -0
- package/lib/handlers/entity/threeDFace.js +63 -0
- package/lib/handlers/entity/threeDFace.js.map +7 -0
- package/lib/handlers/entity/vertex.cjs +78 -0
- package/lib/handlers/entity/vertex.cjs.map +7 -0
- package/lib/handlers/entity/vertex.js +53 -0
- package/lib/handlers/entity/vertex.js.map +7 -0
- package/lib/handlers/entity/viewport.cjs +153 -0
- package/lib/handlers/entity/viewport.cjs.map +7 -0
- package/lib/handlers/entity/viewport.js +118 -0
- package/lib/handlers/entity/viewport.js.map +7 -0
- package/lib/handlers/header.cjs +92 -0
- package/lib/handlers/header.cjs.map +7 -0
- package/lib/handlers/header.js +72 -0
- package/lib/handlers/header.js.map +7 -0
- package/lib/handlers/objects.cjs +170 -0
- package/lib/handlers/objects.cjs.map +7 -0
- package/lib/handlers/objects.js +150 -0
- package/lib/handlers/objects.js.map +7 -0
- package/lib/handlers/tables.cjs +587 -0
- package/lib/handlers/tables.cjs.map +7 -0
- package/lib/handlers/tables.js +557 -0
- package/lib/handlers/tables.js.map +7 -0
- package/lib/index.cjs +60 -0
- package/lib/index.cjs.map +7 -0
- package/lib/index.js +19 -0
- package/lib/index.js.map +7 -0
- package/lib/parseString.cjs +118 -0
- package/lib/parseString.cjs.map +7 -0
- package/lib/parseString.js +88 -0
- package/lib/parseString.js.map +7 -0
- package/lib/toPolylines.cjs +69 -0
- package/lib/toPolylines.cjs.map +7 -0
- package/lib/toPolylines.js +39 -0
- package/lib/toPolylines.js.map +7 -0
- package/lib/toSVG.cjs +395 -0
- package/lib/toSVG.cjs.map +7 -0
- package/lib/toSVG.js +361 -0
- package/lib/toSVG.js.map +7 -0
- package/lib/types/arc-entity.cjs +17 -0
- package/lib/types/arc-entity.cjs.map +7 -0
- package/lib/types/arc-entity.js +1 -0
- package/lib/types/arc-entity.js.map +7 -0
- package/lib/types/base-entity.cjs +17 -0
- package/lib/types/base-entity.cjs.map +7 -0
- package/lib/types/base-entity.js +1 -0
- package/lib/types/base-entity.js.map +7 -0
- package/lib/types/circle-entity.cjs +17 -0
- package/lib/types/circle-entity.cjs.map +7 -0
- package/lib/types/circle-entity.js +1 -0
- package/lib/types/circle-entity.js.map +7 -0
- package/lib/types/common.cjs +17 -0
- package/lib/types/common.cjs.map +7 -0
- package/lib/types/common.js +1 -0
- package/lib/types/common.js.map +7 -0
- package/lib/types/dimension-entity.cjs +17 -0
- package/lib/types/dimension-entity.cjs.map +7 -0
- package/lib/types/dimension-entity.js +1 -0
- package/lib/types/dimension-entity.js.map +7 -0
- package/lib/types/dxf.cjs +17 -0
- package/lib/types/dxf.cjs.map +7 -0
- package/lib/types/dxf.js +1 -0
- package/lib/types/dxf.js.map +7 -0
- package/lib/types/ellipse-entity.cjs +17 -0
- package/lib/types/ellipse-entity.cjs.map +7 -0
- package/lib/types/ellipse-entity.js +1 -0
- package/lib/types/ellipse-entity.js.map +7 -0
- package/lib/types/entity.cjs +17 -0
- package/lib/types/entity.cjs.map +7 -0
- package/lib/types/entity.js +1 -0
- package/lib/types/entity.js.map +7 -0
- package/lib/types/handler-internal.cjs +17 -0
- package/lib/types/handler-internal.cjs.map +7 -0
- package/lib/types/handler-internal.js +1 -0
- package/lib/types/handler-internal.js.map +7 -0
- package/lib/types/handler.cjs +17 -0
- package/lib/types/handler.cjs.map +7 -0
- package/lib/types/handler.js +1 -0
- package/lib/types/handler.js.map +7 -0
- package/lib/types/hatch-entity.cjs +17 -0
- package/lib/types/hatch-entity.cjs.map +7 -0
- package/lib/types/hatch-entity.js +1 -0
- package/lib/types/hatch-entity.js.map +7 -0
- package/lib/types/helper.cjs +17 -0
- package/lib/types/helper.cjs.map +7 -0
- package/lib/types/helper.js +1 -0
- package/lib/types/helper.js.map +7 -0
- package/lib/types/index.cjs +77 -0
- package/lib/types/index.cjs.map +7 -0
- package/lib/types/index.js +29 -0
- package/lib/types/index.js.map +7 -0
- package/lib/types/insert-entity.cjs +17 -0
- package/lib/types/insert-entity.cjs.map +7 -0
- package/lib/types/insert-entity.js +1 -0
- package/lib/types/insert-entity.js.map +7 -0
- package/lib/types/layer-groups.cjs +17 -0
- package/lib/types/layer-groups.cjs.map +7 -0
- package/lib/types/layer-groups.js +1 -0
- package/lib/types/layer-groups.js.map +7 -0
- package/lib/types/line-entity.cjs +17 -0
- package/lib/types/line-entity.cjs.map +7 -0
- package/lib/types/line-entity.js +1 -0
- package/lib/types/line-entity.js.map +7 -0
- package/lib/types/mtext-entity.cjs +17 -0
- package/lib/types/mtext-entity.cjs.map +7 -0
- package/lib/types/mtext-entity.js +1 -0
- package/lib/types/mtext-entity.js.map +7 -0
- package/lib/types/ole2frame-entity.cjs +17 -0
- package/lib/types/ole2frame-entity.cjs.map +7 -0
- package/lib/types/ole2frame-entity.js +1 -0
- package/lib/types/ole2frame-entity.js.map +7 -0
- package/lib/types/options.cjs +17 -0
- package/lib/types/options.cjs.map +7 -0
- package/lib/types/options.js +1 -0
- package/lib/types/options.js.map +7 -0
- package/lib/types/point-entity.cjs +17 -0
- package/lib/types/point-entity.cjs.map +7 -0
- package/lib/types/point-entity.js +1 -0
- package/lib/types/point-entity.js.map +7 -0
- package/lib/types/polyline-entity.cjs +17 -0
- package/lib/types/polyline-entity.cjs.map +7 -0
- package/lib/types/polyline-entity.js +1 -0
- package/lib/types/polyline-entity.js.map +7 -0
- package/lib/types/polylines.cjs +17 -0
- package/lib/types/polylines.cjs.map +7 -0
- package/lib/types/polylines.js +1 -0
- package/lib/types/polylines.js.map +7 -0
- package/lib/types/solid-entity.cjs +17 -0
- package/lib/types/solid-entity.cjs.map +7 -0
- package/lib/types/solid-entity.js +1 -0
- package/lib/types/solid-entity.js.map +7 -0
- package/lib/types/spline-entity.cjs +17 -0
- package/lib/types/spline-entity.cjs.map +7 -0
- package/lib/types/spline-entity.js +1 -0
- package/lib/types/spline-entity.js.map +7 -0
- package/lib/types/svg.cjs +17 -0
- package/lib/types/svg.cjs.map +7 -0
- package/lib/types/svg.js +1 -0
- package/lib/types/svg.js.map +7 -0
- package/lib/types/tables.cjs +17 -0
- package/lib/types/tables.cjs.map +7 -0
- package/lib/types/tables.js +1 -0
- package/lib/types/tables.js.map +7 -0
- package/lib/types/text-entity.cjs +17 -0
- package/lib/types/text-entity.cjs.map +7 -0
- package/lib/types/text-entity.js +1 -0
- package/lib/types/text-entity.js.map +7 -0
- package/lib/types/util-types.cjs +17 -0
- package/lib/types/util-types.cjs.map +7 -0
- package/lib/types/util-types.js +1 -0
- package/lib/types/util-types.js.map +7 -0
- package/lib/types/vecks.d.cjs +2 -0
- package/lib/types/vecks.d.cjs.map +7 -0
- package/lib/types/vecks.d.js +1 -0
- package/lib/types/vecks.d.js.map +7 -0
- package/lib/types/viewport-entity.cjs +17 -0
- package/lib/types/viewport-entity.cjs.map +7 -0
- package/lib/types/viewport-entity.js +1 -0
- package/lib/types/viewport-entity.js.map +7 -0
- package/lib/types.cjs +23 -0
- package/lib/types.cjs.map +7 -0
- package/lib/types.js +2 -0
- package/lib/types.js.map +7 -0
- package/lib/util/bSpline.cjs +95 -0
- package/lib/util/bSpline.cjs.map +7 -0
- package/lib/util/bSpline.js +65 -0
- package/lib/util/bSpline.js.map +7 -0
- package/lib/util/colors.cjs +283 -0
- package/lib/util/colors.cjs.map +7 -0
- package/lib/util/colors.js +263 -0
- package/lib/util/colors.js.map +7 -0
- package/lib/util/createArcForLWPolyline.cjs +84 -0
- package/lib/util/createArcForLWPolyline.cjs.map +7 -0
- package/lib/util/createArcForLWPolyline.js +64 -0
- package/lib/util/createArcForLWPolyline.js.map +7 -0
- package/lib/util/dxfColorToRGB.cjs +115 -0
- package/lib/util/dxfColorToRGB.cjs.map +7 -0
- package/lib/util/dxfColorToRGB.js +90 -0
- package/lib/util/dxfColorToRGB.js.map +7 -0
- package/lib/util/insertKnot.cjs +77 -0
- package/lib/util/insertKnot.cjs.map +7 -0
- package/lib/util/insertKnot.js +57 -0
- package/lib/util/insertKnot.js.map +7 -0
- package/lib/util/logger.cjs +53 -0
- package/lib/util/logger.cjs.map +7 -0
- package/lib/util/logger.js +23 -0
- package/lib/util/logger.js.map +7 -0
- package/lib/util/rgbToColorAttribute.cjs +32 -0
- package/lib/util/rgbToColorAttribute.cjs.map +7 -0
- package/lib/util/rgbToColorAttribute.js +12 -0
- package/lib/util/rgbToColorAttribute.js.map +7 -0
- package/lib/util/rotate.cjs +30 -0
- package/lib/util/rotate.cjs.map +7 -0
- package/lib/util/rotate.js +10 -0
- package/lib/util/rotate.js.map +7 -0
- package/lib/util/round10.cjs +38 -0
- package/lib/util/round10.cjs.map +7 -0
- package/lib/util/round10.js +18 -0
- package/lib/util/round10.js.map +7 -0
- package/lib/util/toPiecewiseBezier.cjs +90 -0
- package/lib/util/toPiecewiseBezier.cjs.map +7 -0
- package/lib/util/toPiecewiseBezier.js +54 -0
- package/lib/util/toPiecewiseBezier.js.map +7 -0
- package/lib/util/transformBoundingBoxAndElement.cjs +80 -0
- package/lib/util/transformBoundingBoxAndElement.cjs.map +7 -0
- package/lib/util/transformBoundingBoxAndElement.js +60 -0
- package/lib/util/transformBoundingBoxAndElement.js.map +7 -0
- package/package.json +127 -0
- package/src/Helper.ts +71 -0
- package/src/applyTransforms.ts +54 -0
- package/src/cli.ts +41 -0
- package/src/config.ts +10 -0
- package/src/constants.ts +14 -0
- package/src/denormalise.ts +153 -0
- package/src/dimensionToSVG.ts +427 -0
- package/src/entityToPolyline.ts +338 -0
- package/src/getRGBForEntity.ts +28 -0
- package/src/groupEntitiesByLayer.ts +14 -0
- package/src/handlers/blocks.ts +65 -0
- package/src/handlers/entities.ts +111 -0
- package/src/handlers/entity/arc.ts +61 -0
- package/src/handlers/entity/attdef.ts +284 -0
- package/src/handlers/entity/attrib.ts +29 -0
- package/src/handlers/entity/circle.ts +47 -0
- package/src/handlers/entity/common.ts +79 -0
- package/src/handlers/entity/dimension.ts +217 -0
- package/src/handlers/entity/ellipse.ts +55 -0
- package/src/handlers/entity/hatch.ts +471 -0
- package/src/handlers/entity/insert.ts +73 -0
- package/src/handlers/entity/line.ts +56 -0
- package/src/handlers/entity/lwpolyline.ts +54 -0
- package/src/handlers/entity/mtext.ts +150 -0
- package/src/handlers/entity/ole2Frame.ts +64 -0
- package/src/handlers/entity/point.ts +47 -0
- package/src/handlers/entity/polyline.ts +49 -0
- package/src/handlers/entity/solid.ts +73 -0
- package/src/handlers/entity/spline.ts +103 -0
- package/src/handlers/entity/text.ts +83 -0
- package/src/handlers/entity/threeDFace.ts +69 -0
- package/src/handlers/entity/vertex.ts +55 -0
- package/src/handlers/entity/viewport.ts +119 -0
- package/src/handlers/header.ts +73 -0
- package/src/handlers/objects.ts +152 -0
- package/src/handlers/tables.ts +581 -0
- package/src/index.ts +19 -0
- package/src/parseString.ts +97 -0
- package/src/toPolylines.ts +47 -0
- package/src/toSVG.ts +518 -0
- package/src/types/README.md +91 -0
- package/src/types/arc-entity.ts +10 -0
- package/src/types/base-entity.ts +25 -0
- package/src/types/circle-entity.ts +8 -0
- package/src/types/common.ts +37 -0
- package/src/types/dimension-entity.ts +23 -0
- package/src/types/dxf.ts +64 -0
- package/src/types/ellipse-entity.ts +13 -0
- package/src/types/entity.ts +32 -0
- package/src/types/handler-internal.ts +51 -0
- package/src/types/handler.ts +10 -0
- package/src/types/hatch-entity.ts +127 -0
- package/src/types/helper.ts +12 -0
- package/src/types/index.ts +53 -0
- package/src/types/insert-entity.ts +19 -0
- package/src/types/layer-groups.ts +8 -0
- package/src/types/line-entity.ts +10 -0
- package/src/types/mtext-entity.ts +35 -0
- package/src/types/ole2frame-entity.ts +35 -0
- package/src/types/options.ts +17 -0
- package/src/types/point-entity.ts +7 -0
- package/src/types/polyline-entity.ts +20 -0
- package/src/types/polylines.ts +22 -0
- package/src/types/solid-entity.ts +9 -0
- package/src/types/spline-entity.ts +12 -0
- package/src/types/svg.ts +31 -0
- package/src/types/tables.ts +414 -0
- package/src/types/text-entity.ts +23 -0
- package/src/types/util-types.ts +27 -0
- package/src/types/vecks.d.ts +29 -0
- package/src/types/viewport-entity.ts +81 -0
- package/src/types.ts +5 -0
- package/src/util/bSpline.ts +97 -0
- package/src/util/colors.ts +266 -0
- package/src/util/createArcForLWPolyline.ts +93 -0
- package/src/util/diagram.png +0 -0
- package/src/util/dxfColorToRGB.ts +106 -0
- package/src/util/insertKnot.ts +69 -0
- package/src/util/logger.ts +23 -0
- package/src/util/rgbToColorAttribute.ts +14 -0
- package/src/util/rotate.ts +14 -0
- package/src/util/round10.ts +24 -0
- package/src/util/toPiecewiseBezier.ts +70 -0
- package/src/util/transformBoundingBoxAndElement.ts +74 -0
- package/tsconfig.json +34 -0
|
@@ -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 ellipse_entity_exports = {};
|
|
16
|
+
module.exports = __toCommonJS(ellipse_entity_exports);
|
|
17
|
+
//# sourceMappingURL=ellipse-entity.cjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/types/ellipse-entity.ts"],
|
|
4
|
+
"sourcesContent": ["// ELLIPSE entity type\n\nimport type { PositionalEntity } from './base-entity'\n\nexport interface EllipseEntity extends PositionalEntity {\n type: 'ELLIPSE'\n majorX: number\n majorY: number\n majorZ?: number\n axisRatio: number\n startAngle: number\n endAngle: number\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=ellipse-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 entity_exports = {};
|
|
16
|
+
module.exports = __toCommonJS(entity_exports);
|
|
17
|
+
//# sourceMappingURL=entity.cjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/types/entity.ts"],
|
|
4
|
+
"sourcesContent": ["// Union type for all entity types\n\nimport type { ArcEntity } from './arc-entity'\nimport type { BaseEntity } from './base-entity'\nimport type { CircleEntity } from './circle-entity'\nimport type { DimensionEntity } from './dimension-entity'\nimport type { EllipseEntity } from './ellipse-entity'\nimport type { HatchEntity } from './hatch-entity'\nimport type { InsertEntity } from './insert-entity'\nimport type { LineEntity } from './line-entity'\nimport type { MTextEntity } from './mtext-entity'\nimport type { PointEntity } from './point-entity'\nimport type { PolylineEntity } from './polyline-entity'\nimport type { SolidEntity } from './solid-entity'\nimport type { SplineEntity } from './spline-entity'\nimport type { TextEntity } from './text-entity'\n\nexport type Entity =\n | LineEntity\n | CircleEntity\n | ArcEntity\n | EllipseEntity\n | TextEntity\n | MTextEntity\n | PointEntity\n | PolylineEntity\n | SplineEntity\n | DimensionEntity\n | SolidEntity\n | InsertEntity\n | HatchEntity\n | BaseEntity\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=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 handler_internal_exports = {};
|
|
16
|
+
module.exports = __toCommonJS(handler_internal_exports);
|
|
17
|
+
//# sourceMappingURL=handler-internal.cjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/types/handler-internal.ts"],
|
|
4
|
+
"sourcesContent": ["// Handler-internal types (n\u00E3o exportados na API p\u00FAblica)\n\nimport type { Point2D } from './common'\n\n/** Common properties extracted from DXF tuples */\nexport interface CommonEntityProperties {\n handle?: string\n lineTypeName?: string\n layer?: string\n lineTypeScale?: number\n visible?: boolean\n colorNumber?: number\n paperSpace?: number\n viewportOn?: number\n viewport?: number\n extrusionX?: number\n extrusionY?: number\n extrusionZ?: number\n layout?: string\n}\n\n/** Simple codes extraction result */\nexport interface SimpleCodes {\n [code: number]: string | number\n}\n\n/** Bit combinations result for dimensions */\nexport interface BitCombinationsResult {\n attachmentPoint?: number\n [key: string]: number | undefined\n}\n\n/** Polyline vertex with bulge - extends Point2D */\nexport interface PolylineVertex extends Point2D {\n z?: number\n bulge?: number\n}\n\n/** Control point for splines - extends Point2D */\nexport interface ControlPoint extends Point2D {\n z?: number\n weight?: number\n}\n\n/** Vertex for polylines - internal handler use */\nexport interface HandlerVertex extends Point2D {\n z?: number\n bulge?: number\n startWidth?: number\n endWidth?: number\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=handler-internal.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 handler_exports = {};
|
|
16
|
+
module.exports = __toCommonJS(handler_exports);
|
|
17
|
+
//# sourceMappingURL=handler.cjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/types/handler.ts"],
|
|
4
|
+
"sourcesContent": ["// Handler types for entity processing\n\nimport type { DXFTuple } from './dxf'\nimport type { Entity } from './entity'\n\nexport interface EntityHandler {\n TYPE: string\n process: (tuples: DXFTuple[]) => Entity\n assign?: (entity: any, type: number, value: any) => any\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=handler.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 hatch_entity_exports = {};
|
|
16
|
+
module.exports = __toCommonJS(hatch_entity_exports);
|
|
17
|
+
//# sourceMappingURL=hatch-entity.cjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/types/hatch-entity.ts"],
|
|
4
|
+
"sourcesContent": ["// HATCH entity type\n\nimport type { BaseEntity } from './base-entity'\nimport type { Point3D } from './common'\n\n/**\n * Hatch pattern information\n */\nexport interface HatchPattern {\n /** Pattern line count */\n lineCount?: number\n /** Pattern angle */\n angle?: number\n /** Pattern X offset */\n x?: number\n /** Pattern Y offset */\n y?: number\n /** Pattern X spacing offset */\n offsetX?: number\n /** Pattern Y spacing offset */\n offsetY?: number\n /** Dash count */\n dashCount?: number\n /** Pattern line lengths */\n length: Array<string | number>\n}\n\n/**\n * Hatch boundary loop\n */\nexport interface HatchLoop {\n /** Loop type flags */\n type?: number\n /** Entity count in loop */\n count?: number\n /** Edge type (for non-polyline) */\n edgeType?: number\n /** Has bulge flag (for polyline) */\n hasBulge?: number\n /** Source object count */\n sourceObjects?: number\n /** Loop entities */\n entities: any[]\n /** Reference handles */\n references: Array<string | number>\n}\n\n/**\n * Hatch boundary definition\n */\nexport interface HatchBoundary {\n /** Total boundary loop count */\n count?: number\n /** Boundary loops */\n loops: HatchLoop[]\n}\n\n/**\n * Hatch seed point\n */\nexport interface HatchSeed {\n x: number\n y: number\n}\n\n/**\n * Hatch seeds collection\n */\nexport interface HatchSeeds {\n /** Seed point count */\n count: number\n /** Seed points */\n seeds: HatchSeed[]\n}\n\n/**\n * Hatch color/gradient information\n */\nexport interface HatchColor {\n /** Color count */\n count?: number\n /** Color rotation */\n rotation?: string | number\n /** Gradient definition */\n gradient?: string | number\n /** Color tint value */\n tint?: string | number\n}\n\nexport interface HatchEntity extends BaseEntity {\n type: 'HATCH'\n /** Pattern name */\n patternName?: string | number\n /** Elevation point */\n elevation?: Partial<Point3D>\n /** Extrusion direction vector */\n extrusionDir?: Point3D\n /** Fill color index */\n fillColor?: string | number\n /** Fill type (SOLID or PATTERN) */\n fillType?: 'SOLID' | 'PATTERN'\n /** Hatch pattern information */\n pattern?: HatchPattern\n /** Hatch boundary definition */\n boundary?: HatchBoundary\n /** Hatch seed points */\n seeds?: HatchSeeds\n /** Hatch style (0=Normal, 1=Outer, 2=Ignore) */\n style?: number\n /** Hatch type (0=User-defined, 1=Predefined, 2=Custom) */\n hatchType?: number\n /** Shadow pattern angle */\n shadowPatternAngle?: number\n /** Pattern spacing */\n spacing?: number\n /** Double hatch flag */\n double?: boolean\n /** Solid or gradient fill type */\n solidOrGradient?: 'SOLID' | 'GRADIENT'\n /** Color/gradient information */\n color?: HatchColor\n \n /** Legacy: paths array (kept for compatibility) */\n paths?: any[]\n /** Legacy: fill color RGB (kept for compatibility) */\n // fillColor already defined above with different type\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=hatch-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 helper_exports = {};
|
|
16
|
+
module.exports = __toCommonJS(helper_exports);
|
|
17
|
+
//# sourceMappingURL=helper.cjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 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"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=helper.js.map
|
|
@@ -0,0 +1,77 @@
|
|
|
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 __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
|
+
var types_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(types_exports);
|
|
18
|
+
__reExport(types_exports, require("./common"), module.exports);
|
|
19
|
+
__reExport(types_exports, require("./base-entity"), module.exports);
|
|
20
|
+
__reExport(types_exports, require("./arc-entity"), module.exports);
|
|
21
|
+
__reExport(types_exports, require("./circle-entity"), module.exports);
|
|
22
|
+
__reExport(types_exports, require("./dimension-entity"), module.exports);
|
|
23
|
+
__reExport(types_exports, require("./ellipse-entity"), module.exports);
|
|
24
|
+
__reExport(types_exports, require("./hatch-entity"), module.exports);
|
|
25
|
+
__reExport(types_exports, require("./insert-entity"), module.exports);
|
|
26
|
+
__reExport(types_exports, require("./line-entity"), module.exports);
|
|
27
|
+
__reExport(types_exports, require("./mtext-entity"), module.exports);
|
|
28
|
+
__reExport(types_exports, require("./ole2frame-entity"), module.exports);
|
|
29
|
+
__reExport(types_exports, require("./point-entity"), module.exports);
|
|
30
|
+
__reExport(types_exports, require("./polyline-entity"), module.exports);
|
|
31
|
+
__reExport(types_exports, require("./solid-entity"), module.exports);
|
|
32
|
+
__reExport(types_exports, require("./spline-entity"), module.exports);
|
|
33
|
+
__reExport(types_exports, require("./text-entity"), module.exports);
|
|
34
|
+
__reExport(types_exports, require("./viewport-entity"), module.exports);
|
|
35
|
+
__reExport(types_exports, require("./entity"), module.exports);
|
|
36
|
+
__reExport(types_exports, require("./dxf"), module.exports);
|
|
37
|
+
__reExport(types_exports, require("./tables"), module.exports);
|
|
38
|
+
__reExport(types_exports, require("./handler"), module.exports);
|
|
39
|
+
__reExport(types_exports, require("./options"), module.exports);
|
|
40
|
+
__reExport(types_exports, require("./helper"), module.exports);
|
|
41
|
+
__reExport(types_exports, require("./layer-groups"), module.exports);
|
|
42
|
+
__reExport(types_exports, require("./polylines"), module.exports);
|
|
43
|
+
__reExport(types_exports, require("./svg"), module.exports);
|
|
44
|
+
__reExport(types_exports, require("./util-types"), module.exports);
|
|
45
|
+
__reExport(types_exports, require("./handler-internal"), module.exports);
|
|
46
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
47
|
+
0 && (module.exports = {
|
|
48
|
+
...require("./common"),
|
|
49
|
+
...require("./base-entity"),
|
|
50
|
+
...require("./arc-entity"),
|
|
51
|
+
...require("./circle-entity"),
|
|
52
|
+
...require("./dimension-entity"),
|
|
53
|
+
...require("./ellipse-entity"),
|
|
54
|
+
...require("./hatch-entity"),
|
|
55
|
+
...require("./insert-entity"),
|
|
56
|
+
...require("./line-entity"),
|
|
57
|
+
...require("./mtext-entity"),
|
|
58
|
+
...require("./ole2frame-entity"),
|
|
59
|
+
...require("./point-entity"),
|
|
60
|
+
...require("./polyline-entity"),
|
|
61
|
+
...require("./solid-entity"),
|
|
62
|
+
...require("./spline-entity"),
|
|
63
|
+
...require("./text-entity"),
|
|
64
|
+
...require("./viewport-entity"),
|
|
65
|
+
...require("./entity"),
|
|
66
|
+
...require("./dxf"),
|
|
67
|
+
...require("./tables"),
|
|
68
|
+
...require("./handler"),
|
|
69
|
+
...require("./options"),
|
|
70
|
+
...require("./helper"),
|
|
71
|
+
...require("./layer-groups"),
|
|
72
|
+
...require("./polylines"),
|
|
73
|
+
...require("./svg"),
|
|
74
|
+
...require("./util-types"),
|
|
75
|
+
...require("./handler-internal")
|
|
76
|
+
});
|
|
77
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 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 './insert-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 './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,4BAdd;AAeA,0BAAc,0BAfd;AAgBA,0BAAc,2BAhBd;AAiBA,0BAAc,+BAjBd;AAkBA,0BAAc,2BAlBd;AAmBA,0BAAc,8BAnBd;AAoBA,0BAAc,2BApBd;AAqBA,0BAAc,4BArBd;AAsBA,0BAAc,0BAtBd;AAuBA,0BAAc,8BAvBd;AA0BA,0BAAc,qBA1Bd;AA6BA,0BAAc,kBA7Bd;AAgCA,0BAAc,qBAhCd;AAmCA,0BAAc,sBAnCd;AAsCA,0BAAc,sBAtCd;AAyCA,0BAAc,qBAzCd;AA4CA,0BAAc,2BA5Cd;AA6CA,0BAAc,wBA7Cd;AA8CA,0BAAc,kBA9Cd;AAiDA,0BAAc,yBAjDd;AAoDA,0BAAc,+BApDd;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
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 "./insert-entity";
|
|
9
|
+
export * from "./line-entity";
|
|
10
|
+
export * from "./mtext-entity";
|
|
11
|
+
export * from "./ole2frame-entity";
|
|
12
|
+
export * from "./point-entity";
|
|
13
|
+
export * from "./polyline-entity";
|
|
14
|
+
export * from "./solid-entity";
|
|
15
|
+
export * from "./spline-entity";
|
|
16
|
+
export * from "./text-entity";
|
|
17
|
+
export * from "./viewport-entity";
|
|
18
|
+
export * from "./entity";
|
|
19
|
+
export * from "./dxf";
|
|
20
|
+
export * from "./tables";
|
|
21
|
+
export * from "./handler";
|
|
22
|
+
export * from "./options";
|
|
23
|
+
export * from "./helper";
|
|
24
|
+
export * from "./layer-groups";
|
|
25
|
+
export * from "./polylines";
|
|
26
|
+
export * from "./svg";
|
|
27
|
+
export * from "./util-types";
|
|
28
|
+
export * from "./handler-internal";
|
|
29
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 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 './insert-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 './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;AAGd,cAAc;AAGd,cAAc;AAGd,cAAc;AAGd,cAAc;AAGd,cAAc;AAGd,cAAc;AAGd,cAAc;AACd,cAAc;AACd,cAAc;AAGd,cAAc;AAGd,cAAc;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -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 insert_entity_exports = {};
|
|
16
|
+
module.exports = __toCommonJS(insert_entity_exports);
|
|
17
|
+
//# sourceMappingURL=insert-entity.cjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/types/insert-entity.ts"],
|
|
4
|
+
"sourcesContent": ["// INSERT entity type (block references)\n\nimport type { PositionalEntity } from './base-entity'\n\nexport interface InsertEntity extends PositionalEntity {\n type: 'INSERT'\n block: string\n scaleX?: number\n scaleY?: number\n scaleZ?: number\n rotation?: number\n columnCount?: number\n rowCount?: number\n columnSpacing?: number\n rowSpacing?: number\n extrusionX?: number\n extrusionY?: number\n // extrusionZ inherited from BaseEntity via PositionalEntity\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=insert-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 layer_groups_exports = {};
|
|
16
|
+
module.exports = __toCommonJS(layer_groups_exports);
|
|
17
|
+
//# sourceMappingURL=layer-groups.cjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/types/layer-groups.ts"],
|
|
4
|
+
"sourcesContent": ["// Layer grouping types\n\nimport type { Entity } from './entity'\n\n/** Entities grouped by layer */\nexport interface LayerGroups {\n [layerName: string]: Entity[]\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=layer-groups.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 line_entity_exports = {};
|
|
16
|
+
module.exports = __toCommonJS(line_entity_exports);
|
|
17
|
+
//# sourceMappingURL=line-entity.cjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/types/line-entity.ts"],
|
|
4
|
+
"sourcesContent": ["// LINE entity type\n\nimport type { BaseEntity } from './base-entity'\nimport type { Point3D } from './common'\n\nexport interface LineEntity extends BaseEntity {\n type: 'LINE'\n start: Point3D\n end: Point3D\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=line-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 mtext_entity_exports = {};
|
|
16
|
+
module.exports = __toCommonJS(mtext_entity_exports);
|
|
17
|
+
//# sourceMappingURL=mtext-entity.cjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/types/mtext-entity.ts"],
|
|
4
|
+
"sourcesContent": ["// MTEXT entity type\n\nimport type { BaseEntity } from './base-entity'\n\nexport interface MTextEntity extends BaseEntity {\n type: 'MTEXT'\n string: string\n x?: number\n y?: number\n z?: number\n nominalTextHeight?: number\n textHeight?: number\n refRectangleWidth?: number\n attachmentPoint?: number\n drawingDirection?: number\n styleName?: string\n xAxisX?: number\n xAxisY?: number\n xAxisZ?: number\n horizontalWidth?: number\n verticalHeight?: number\n lineSpacingStyle?: number\n lineSpacingFactor?: number\n backgroundFill?: number\n fillBoxStyle?: number\n bgFillColor?: number\n bgFillTransparency?: number\n columnType?: number\n columnCount?: number\n columnFlowReversed?: boolean\n columnAutoheight?: boolean\n columnWidth?: number\n columnGutter?: number\n columnHeights?: number\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=mtext-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 ole2frame_entity_exports = {};
|
|
16
|
+
module.exports = __toCommonJS(ole2frame_entity_exports);
|
|
17
|
+
//# sourceMappingURL=ole2frame-entity.cjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/types/ole2frame-entity.ts"],
|
|
4
|
+
"sourcesContent": ["// OLE2Frame entity type\n\nimport type { BaseEntity } from './base-entity'\n\n/**\n * OLE2Frame entity\n * Represents an embedded OLE2 object frame\n */\nexport interface Ole2FrameEntity extends BaseEntity {\n type: 'OLE2FRAME'\n /** OLE version number */\n version?: string | number\n /** End of object name/description */\n name?: string | number\n /** Upper-left corner X coordinate (WCS) */\n upperLeftX?: string | number\n /** Upper-left corner Y coordinate (WCS) */\n upperLeftY?: string | number\n /** Upper-left corner Z coordinate (WCS) */\n upperLeftZ?: string | number\n /** Lower-right corner X coordinate (WCS) */\n lowerRightX?: string | number\n /** Lower-right corner Y coordinate (WCS) */\n lowerRightY?: string | number\n /** Lower-right corner Z coordinate (WCS) */\n lowerRightZ?: string | number\n /** Object type (1=Link, 2=Embedded, 3=Static) */\n objectType?: string | number\n /** Tile mode descriptor (0=Model space, 1=Paper space) */\n tile?: string | number\n /** Length of binary data */\n length?: string | number\n /** Binary data (concatenated from multiple 310 codes) */\n data: string\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=ole2frame-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 options_exports = {};
|
|
16
|
+
module.exports = __toCommonJS(options_exports);
|
|
17
|
+
//# sourceMappingURL=options.cjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/types/options.ts"],
|
|
4
|
+
"sourcesContent": ["// Options types for various operations\n\nexport interface ToPolylinesOptions {\n interpolationsPerSplineSegment?: number\n}\n\nexport interface ToSVGOptions {\n width?: number\n height?: number\n}\n\nexport interface Config {\n verbose?: boolean\n interpolationsPerSplineSegment: number\n layers: string[]\n}\n\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=options.js.map
|