dxf-json 0.0.8 → 0.0.9
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/.github/workflows/npm-publish.yml +1 -1
- package/dist/bundle.js +2 -0
- package/dist/bundle.js.LICENSE.txt +5 -0
- package/dist/consts/block.d.ts +10 -0
- package/dist/consts/block.js +22 -0
- package/dist/consts/block.js.map +1 -0
- package/dist/consts/color.d.ts +5 -0
- package/dist/consts/color.js +10 -0
- package/dist/consts/color.js.map +1 -0
- package/dist/consts/config.d.ts +2 -0
- package/dist/consts/config.js +6 -0
- package/dist/consts/config.js.map +1 -0
- package/dist/consts/dimension.d.ts +61 -0
- package/dist/consts/dimension.js +74 -0
- package/dist/consts/dimension.js.map +1 -0
- package/dist/consts/hatch.d.ts +44 -0
- package/dist/consts/hatch.js +57 -0
- package/dist/consts/hatch.js.map +1 -0
- package/dist/consts/header.d.ts +9 -0
- package/dist/consts/header.js +13 -0
- package/dist/consts/header.js.map +1 -0
- package/dist/consts/index.d.ts +9 -0
- package/dist/consts/index.js +26 -0
- package/dist/consts/index.js.map +1 -0
- package/dist/consts/lineweight.d.ts +5 -0
- package/dist/consts/lineweight.js +10 -0
- package/dist/consts/lineweight.js.map +1 -0
- package/dist/consts/measurement.d.ts +4 -0
- package/dist/consts/measurement.js +9 -0
- package/dist/consts/measurement.js.map +1 -0
- package/dist/consts/obscuredLineTypes.d.ts +21 -0
- package/dist/consts/obscuredLineTypes.js +26 -0
- package/dist/consts/obscuredLineTypes.js.map +1 -0
- package/dist/consts/scene.d.ts +2 -0
- package/dist/consts/scene.js +6 -0
- package/dist/consts/scene.js.map +1 -0
- package/dist/consts/viewport.d.ts +56 -0
- package/dist/consts/viewport.js +67 -0
- package/dist/consts/viewport.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -0
- package/dist/parser/AutoCadColorIndex.d.ts +8 -0
- package/dist/parser/AutoCadColorIndex.js +267 -0
- package/dist/parser/AutoCadColorIndex.js.map +1 -0
- package/dist/parser/DxfArrayScanner.d.ts +38 -0
- package/dist/parser/DxfArrayScanner.js +159 -0
- package/dist/parser/DxfArrayScanner.js.map +1 -0
- package/dist/parser/DxfParser.d.ts +9 -0
- package/dist/parser/DxfParser.js +108 -0
- package/dist/parser/DxfParser.js.map +1 -0
- package/dist/parser/ParseHelpers.d.ts +21 -0
- package/dist/parser/ParseHelpers.js +129 -0
- package/dist/parser/ParseHelpers.js.map +1 -0
- package/dist/parser/blocks/blocks.test.d.ts +1 -0
- package/dist/parser/blocks/blocks.test.js +86 -0
- package/dist/parser/blocks/blocks.test.js.map +1 -0
- package/dist/parser/blocks/index.d.ts +4 -0
- package/dist/parser/blocks/index.js +83 -0
- package/dist/parser/blocks/index.js.map +1 -0
- package/dist/parser/blocks/types.d.ts +14 -0
- package/dist/parser/blocks/types.js +3 -0
- package/dist/parser/blocks/types.js.map +1 -0
- package/dist/parser/entities/3dface.js +106 -0
- package/dist/parser/entities/3dface.js.map +1 -0
- package/dist/parser/entities/arc/index.d.ts +2 -0
- package/dist/parser/entities/arc/index.js +19 -0
- package/dist/parser/entities/arc/index.js.map +1 -0
- package/dist/parser/entities/arc/parser.d.ts +7 -0
- package/dist/parser/entities/arc/parser.js +63 -0
- package/dist/parser/entities/arc/parser.js.map +1 -0
- package/dist/parser/entities/arc/types.d.ts +12 -0
- package/dist/parser/entities/arc/types.js +3 -0
- package/dist/parser/entities/arc/types.js.map +1 -0
- package/dist/parser/entities/attdef/consts.d.ts +11 -0
- package/dist/parser/entities/attdef/consts.js +17 -0
- package/dist/parser/entities/attdef/consts.js.map +1 -0
- package/dist/parser/entities/attdef/index.d.ts +3 -0
- package/dist/parser/entities/attdef/index.js +20 -0
- package/dist/parser/entities/attdef/index.js.map +1 -0
- package/dist/parser/entities/attdef/parser.d.ts +8 -0
- package/dist/parser/entities/attdef/parser.js +108 -0
- package/dist/parser/entities/attdef/parser.js.map +1 -0
- package/dist/parser/entities/attdef/types.d.ts +17 -0
- package/dist/parser/entities/attdef/types.js +3 -0
- package/dist/parser/entities/attdef/types.js.map +1 -0
- package/dist/parser/entities/attribute/consts.d.ts +6 -0
- package/dist/parser/entities/attribute/consts.js +11 -0
- package/dist/parser/entities/attribute/consts.js.map +1 -0
- package/dist/parser/entities/attribute/index.d.ts +3 -0
- package/dist/parser/entities/attribute/index.js +20 -0
- package/dist/parser/entities/attribute/index.js.map +1 -0
- package/dist/parser/entities/attribute/parser.d.ts +8 -0
- package/dist/parser/entities/attribute/parser.js +185 -0
- package/dist/parser/entities/attribute/parser.js.map +1 -0
- package/dist/parser/entities/attribute/types.d.ts +30 -0
- package/dist/parser/entities/attribute/types.js +3 -0
- package/dist/parser/entities/attribute/types.js.map +1 -0
- package/dist/parser/entities/circle/index.d.ts +2 -0
- package/dist/parser/entities/circle/index.js +19 -0
- package/dist/parser/entities/circle/index.js.map +1 -0
- package/dist/parser/entities/circle/parser.d.ts +8 -0
- package/dist/parser/entities/circle/parser.js +50 -0
- package/dist/parser/entities/circle/parser.js.map +1 -0
- package/dist/parser/entities/circle/types.d.ts +10 -0
- package/dist/parser/entities/circle/types.js +3 -0
- package/dist/parser/entities/circle/types.js.map +1 -0
- package/dist/parser/entities/dimension/common.d.ts +6 -0
- package/dist/parser/entities/dimension/common.js +122 -0
- package/dist/parser/entities/dimension/common.js.map +1 -0
- package/dist/parser/entities/dimension/index.d.ts +6 -0
- package/dist/parser/entities/dimension/index.js +21 -0
- package/dist/parser/entities/dimension/index.js.map +1 -0
- package/dist/parser/entities/dimension/types.d.ts +48 -0
- package/dist/parser/entities/dimension/types.js +3 -0
- package/dist/parser/entities/dimension/types.js.map +1 -0
- package/dist/parser/entities/ellipse/index.d.ts +2 -0
- package/dist/parser/entities/ellipse/index.js +19 -0
- package/dist/parser/entities/ellipse/index.js.map +1 -0
- package/dist/parser/entities/ellipse/parser.d.ts +7 -0
- package/dist/parser/entities/ellipse/parser.js +59 -0
- package/dist/parser/entities/ellipse/parser.js.map +1 -0
- package/dist/parser/entities/ellipse/types.d.ts +12 -0
- package/dist/parser/entities/ellipse/types.js +3 -0
- package/dist/parser/entities/ellipse/types.js.map +1 -0
- package/dist/parser/entities/entities.test.d.ts +1 -0
- package/dist/parser/entities/entities.test.js +81 -0
- package/dist/parser/entities/entities.test.js.map +1 -0
- package/dist/parser/entities/hatch/boundaryPathData/edge.d.ts +6 -0
- package/dist/parser/entities/hatch/boundaryPathData/edge.js +178 -0
- package/dist/parser/entities/hatch/boundaryPathData/edge.js.map +1 -0
- package/dist/parser/entities/hatch/boundaryPathData/index.d.ts +5 -0
- package/dist/parser/entities/hatch/boundaryPathData/index.js +23 -0
- package/dist/parser/entities/hatch/boundaryPathData/index.js.map +1 -0
- package/dist/parser/entities/hatch/boundaryPathData/polyline.d.ts +2 -0
- package/dist/parser/entities/hatch/boundaryPathData/polyline.js +41 -0
- package/dist/parser/entities/hatch/boundaryPathData/polyline.js.map +1 -0
- package/dist/parser/entities/hatch/boundaryPathData/shared.d.ts +2 -0
- package/dist/parser/entities/hatch/boundaryPathData/shared.js +19 -0
- package/dist/parser/entities/hatch/boundaryPathData/shared.js.map +1 -0
- package/dist/parser/entities/hatch/index.d.ts +8 -0
- package/dist/parser/entities/hatch/index.js +183 -0
- package/dist/parser/entities/hatch/index.js.map +1 -0
- package/dist/parser/entities/hatch/patternData.d.ts +3 -0
- package/dist/parser/entities/hatch/patternData.js +54 -0
- package/dist/parser/entities/hatch/patternData.js.map +1 -0
- package/dist/parser/entities/hatch/types/boundaryPath.d.ts +59 -0
- package/dist/parser/entities/hatch/types/boundaryPath.js +3 -0
- package/dist/parser/entities/hatch/types/boundaryPath.js.map +1 -0
- package/dist/parser/entities/hatch/types/definitionLine.d.ts +8 -0
- package/dist/parser/entities/hatch/types/definitionLine.js +3 -0
- package/dist/parser/entities/hatch/types/definitionLine.js.map +1 -0
- package/dist/parser/entities/hatch/types/hatch.d.ts +38 -0
- package/dist/parser/entities/hatch/types/hatch.js +3 -0
- package/dist/parser/entities/hatch/types/hatch.js.map +1 -0
- package/dist/parser/entities/hatch/types/index.d.ts +3 -0
- package/dist/parser/entities/hatch/types/index.js +20 -0
- package/dist/parser/entities/hatch/types/index.js.map +1 -0
- package/dist/parser/entities/index.d.ts +8 -0
- package/dist/parser/entities/index.js +81 -0
- package/dist/parser/entities/index.js.map +1 -0
- package/dist/parser/entities/insert/index.d.ts +2 -0
- package/dist/parser/entities/insert/index.js +19 -0
- package/dist/parser/entities/insert/index.js.map +1 -0
- package/dist/parser/entities/insert/parser.d.ts +8 -0
- package/dist/parser/entities/insert/parser.js +97 -0
- package/dist/parser/entities/insert/parser.js.map +1 -0
- package/dist/parser/entities/insert/types.d.ts +18 -0
- package/dist/parser/entities/insert/types.js +3 -0
- package/dist/parser/entities/insert/types.js.map +1 -0
- package/dist/parser/entities/leader/consts.d.ts +6 -0
- package/dist/parser/entities/leader/consts.js +11 -0
- package/dist/parser/entities/leader/consts.js.map +1 -0
- package/dist/parser/entities/leader/index.d.ts +3 -0
- package/dist/parser/entities/leader/index.js +20 -0
- package/dist/parser/entities/leader/index.js.map +1 -0
- package/dist/parser/entities/leader/parser.d.ts +8 -0
- package/dist/parser/entities/leader/parser.js +110 -0
- package/dist/parser/entities/leader/parser.js.map +1 -0
- package/dist/parser/entities/leader/types.d.ts +23 -0
- package/dist/parser/entities/leader/types.js +3 -0
- package/dist/parser/entities/leader/types.js.map +1 -0
- package/dist/parser/entities/line/index.d.ts +2 -0
- package/dist/parser/entities/line/index.js +19 -0
- package/dist/parser/entities/line/index.js.map +1 -0
- package/dist/parser/entities/line/parser.d.ts +8 -0
- package/dist/parser/entities/line/parser.js +50 -0
- package/dist/parser/entities/line/parser.js.map +1 -0
- package/dist/parser/entities/line/types.d.ts +10 -0
- package/dist/parser/entities/line/types.js +3 -0
- package/dist/parser/entities/line/types.js.map +1 -0
- package/dist/parser/entities/lwpolyline/consts.d.ts +4 -0
- package/dist/parser/entities/lwpolyline/consts.js +9 -0
- package/dist/parser/entities/lwpolyline/consts.js.map +1 -0
- package/dist/parser/entities/lwpolyline/index.d.ts +3 -0
- package/dist/parser/entities/lwpolyline/index.js +20 -0
- package/dist/parser/entities/lwpolyline/index.js.map +1 -0
- package/dist/parser/entities/lwpolyline/parser.d.ts +7 -0
- package/dist/parser/entities/lwpolyline/parser.js +105 -0
- package/dist/parser/entities/lwpolyline/parser.js.map +1 -0
- package/dist/parser/entities/lwpolyline/types.d.ts +19 -0
- package/dist/parser/entities/lwpolyline/types.js +3 -0
- package/dist/parser/entities/lwpolyline/types.js.map +1 -0
- package/dist/parser/entities/mtext/consts.d.ts +5 -0
- package/dist/parser/entities/mtext/consts.js +10 -0
- package/dist/parser/entities/mtext/consts.js.map +1 -0
- package/dist/parser/entities/mtext/index.d.ts +3 -0
- package/dist/parser/entities/mtext/index.js +20 -0
- package/dist/parser/entities/mtext/index.js.map +1 -0
- package/dist/parser/entities/mtext/parser.d.ts +10 -0
- package/dist/parser/entities/mtext/parser.js +188 -0
- package/dist/parser/entities/mtext/parser.js.map +1 -0
- package/dist/parser/entities/mtext/types.d.ts +33 -0
- package/dist/parser/entities/mtext/types.js +3 -0
- package/dist/parser/entities/mtext/types.js.map +1 -0
- package/dist/parser/entities/point/index.d.ts +2 -0
- package/dist/parser/entities/point/index.js +19 -0
- package/dist/parser/entities/point/index.js.map +1 -0
- package/dist/parser/entities/point/parser.d.ts +6 -0
- package/dist/parser/entities/point/parser.js +54 -0
- package/dist/parser/entities/point/parser.js.map +1 -0
- package/dist/parser/entities/point/types.d.ts +9 -0
- package/dist/parser/entities/point/types.js +3 -0
- package/dist/parser/entities/point/types.js.map +1 -0
- package/dist/parser/entities/polyline/consts.d.ts +16 -0
- package/dist/parser/entities/polyline/consts.js +22 -0
- package/dist/parser/entities/polyline/consts.js.map +1 -0
- package/dist/parser/entities/polyline/index.d.ts +3 -0
- package/dist/parser/entities/polyline/index.js +20 -0
- package/dist/parser/entities/polyline/index.js.map +1 -0
- package/dist/parser/entities/polyline/parser.d.ts +7 -0
- package/dist/parser/entities/polyline/parser.js +118 -0
- package/dist/parser/entities/polyline/parser.js.map +1 -0
- package/dist/parser/entities/polyline/types.d.ts +19 -0
- package/dist/parser/entities/polyline/types.js +3 -0
- package/dist/parser/entities/polyline/types.js.map +1 -0
- package/dist/parser/entities/section/index.d.ts +2 -0
- package/dist/parser/entities/section/index.js +19 -0
- package/dist/parser/entities/section/index.js.map +1 -0
- package/dist/parser/entities/section/parser.d.ts +7 -0
- package/dist/parser/entities/section/parser.js +97 -0
- package/dist/parser/entities/section/parser.js.map +1 -0
- package/dist/parser/entities/section/types.d.ts +19 -0
- package/dist/parser/entities/section/types.js +3 -0
- package/dist/parser/entities/section/types.js.map +1 -0
- package/dist/parser/entities/shared.d.ts +35 -0
- package/dist/parser/entities/shared.js +136 -0
- package/dist/parser/entities/shared.js.map +1 -0
- package/dist/parser/entities/solid/index.d.ts +2 -0
- package/dist/parser/entities/solid/index.js +19 -0
- package/dist/parser/entities/solid/index.js.map +1 -0
- package/dist/parser/entities/solid/parser.d.ts +8 -0
- package/dist/parser/entities/solid/parser.js +48 -0
- package/dist/parser/entities/solid/parser.js.map +1 -0
- package/dist/parser/entities/solid/types.d.ts +9 -0
- package/dist/parser/entities/solid/types.js +3 -0
- package/dist/parser/entities/solid/types.js.map +1 -0
- package/dist/parser/entities/spline/consts.d.ts +8 -0
- package/dist/parser/entities/spline/consts.js +13 -0
- package/dist/parser/entities/spline/consts.js.map +1 -0
- package/dist/parser/entities/spline/index.d.ts +3 -0
- package/dist/parser/entities/spline/index.js +20 -0
- package/dist/parser/entities/spline/index.js.map +1 -0
- package/dist/parser/entities/spline/parser.d.ts +8 -0
- package/dist/parser/entities/spline/parser.js +113 -0
- package/dist/parser/entities/spline/parser.js.map +1 -0
- package/dist/parser/entities/spline/types.d.ts +21 -0
- package/dist/parser/entities/spline/types.js +3 -0
- package/dist/parser/entities/spline/types.js.map +1 -0
- package/dist/parser/entities/text/consts.d.ts +19 -0
- package/dist/parser/entities/text/consts.js +26 -0
- package/dist/parser/entities/text/consts.js.map +1 -0
- package/dist/parser/entities/text/index.d.ts +3 -0
- package/dist/parser/entities/text/index.js +20 -0
- package/dist/parser/entities/text/index.js.map +1 -0
- package/dist/parser/entities/text/parser.d.ts +26 -0
- package/dist/parser/entities/text/parser.js +112 -0
- package/dist/parser/entities/text/parser.js.map +1 -0
- package/dist/parser/entities/text/types.d.ts +20 -0
- package/dist/parser/entities/text/types.js +3 -0
- package/dist/parser/entities/text/types.js.map +1 -0
- package/dist/parser/entities/vertex/consts.d.ts +10 -0
- package/dist/parser/entities/vertex/consts.js +15 -0
- package/dist/parser/entities/vertex/consts.js.map +1 -0
- package/dist/parser/entities/vertex/index.d.ts +3 -0
- package/dist/parser/entities/vertex/index.js +20 -0
- package/dist/parser/entities/vertex/index.js.map +1 -0
- package/dist/parser/entities/vertex/parser.d.ts +8 -0
- package/dist/parser/entities/vertex/parser.js +86 -0
- package/dist/parser/entities/vertex/parser.js.map +1 -0
- package/dist/parser/entities/vertex/types.d.ts +16 -0
- package/dist/parser/entities/vertex/types.js +3 -0
- package/dist/parser/entities/vertex/types.js.map +1 -0
- package/dist/parser/entities/viewport/index.d.ts +5 -0
- package/dist/parser/entities/viewport/index.js +195 -0
- package/dist/parser/entities/viewport/index.js.map +1 -0
- package/dist/parser/entities/viewport/types.d.ts +51 -0
- package/dist/parser/entities/viewport/types.js +3 -0
- package/dist/parser/entities/viewport/types.js.map +1 -0
- package/dist/parser/filterDummyBlocks.d.ts +2 -0
- package/dist/parser/filterDummyBlocks.js +37 -0
- package/dist/parser/filterDummyBlocks.js.map +1 -0
- package/dist/parser/header/index.d.ts +3 -0
- package/dist/parser/header/index.js +32 -0
- package/dist/parser/header/index.js.map +1 -0
- package/dist/parser/objects/common.d.ts +8 -0
- package/dist/parser/objects/common.js +51 -0
- package/dist/parser/objects/common.js.map +1 -0
- package/dist/parser/objects/dictionary.d.ts +20 -0
- package/dist/parser/objects/dictionary.js +50 -0
- package/dist/parser/objects/dictionary.js.map +1 -0
- package/dist/parser/objects/index.d.ts +6 -0
- package/dist/parser/objects/index.js +43 -0
- package/dist/parser/objects/index.js.map +1 -0
- package/dist/parser/objects/layout.d.ts +30 -0
- package/dist/parser/objects/layout.js +110 -0
- package/dist/parser/objects/layout.js.map +1 -0
- package/dist/parser/objects/plotSettings.d.ts +64 -0
- package/dist/parser/objects/plotSettings.js +198 -0
- package/dist/parser/objects/plotSettings.js.map +1 -0
- package/dist/parser/objects/treefy.d.ts +2 -0
- package/dist/parser/objects/treefy.js +37 -0
- package/dist/parser/objects/treefy.js.map +1 -0
- package/dist/parser/objects/types.d.ts +15 -0
- package/dist/parser/objects/types.js +3 -0
- package/dist/parser/objects/types.js.map +1 -0
- package/dist/parser/shared/index.d.ts +7 -0
- package/dist/parser/shared/index.js +22 -0
- package/dist/parser/shared/index.js.map +1 -0
- package/dist/parser/shared/parsePoint.d.ts +7 -0
- package/dist/parser/shared/parsePoint.js +33 -0
- package/dist/parser/shared/parsePoint.js.map +1 -0
- package/dist/parser/shared/parserGenerator.d.ts +15 -0
- package/dist/parser/shared/parserGenerator.js +114 -0
- package/dist/parser/shared/parserGenerator.js.map +1 -0
- package/dist/parser/shared/parserGenerator.test.d.ts +1 -0
- package/dist/parser/shared/parserGenerator.test.js +153 -0
- package/dist/parser/shared/parserGenerator.test.js.map +1 -0
- package/dist/parser/shared/xdata/index.d.ts +3 -0
- package/dist/parser/shared/xdata/index.js +20 -0
- package/dist/parser/shared/xdata/index.js.map +1 -0
- package/dist/parser/shared/xdata/interpreter.d.ts +20 -0
- package/dist/parser/shared/xdata/interpreter.js +43 -0
- package/dist/parser/shared/xdata/interpreter.js.map +1 -0
- package/dist/parser/shared/xdata/interpreter.test.d.ts +1 -0
- package/dist/parser/shared/xdata/interpreter.test.js +83 -0
- package/dist/parser/shared/xdata/interpreter.test.js.map +1 -0
- package/dist/parser/shared/xdata/parser.d.ts +6 -0
- package/dist/parser/shared/xdata/parser.js +133 -0
- package/dist/parser/shared/xdata/parser.js.map +1 -0
- package/dist/parser/shared/xdata/parser.test.d.ts +1 -0
- package/dist/parser/shared/xdata/parser.test.js +64 -0
- package/dist/parser/shared/xdata/parser.test.js.map +1 -0
- package/dist/parser/shared/xdata/types.d.ts +9 -0
- package/dist/parser/shared/xdata/types.js +3 -0
- package/dist/parser/shared/xdata/types.js.map +1 -0
- package/dist/parser/tables/blockRecord/index.d.ts +2 -0
- package/dist/parser/tables/blockRecord/index.js +19 -0
- package/dist/parser/tables/blockRecord/index.js.map +1 -0
- package/dist/parser/tables/blockRecord/parser.d.ts +1 -0
- package/dist/parser/tables/blockRecord/parser.js +45 -0
- package/dist/parser/tables/blockRecord/parser.js.map +1 -0
- package/dist/parser/tables/blockRecord/types.d.ts +10 -0
- package/dist/parser/tables/blockRecord/types.js +3 -0
- package/dist/parser/tables/blockRecord/types.js.map +1 -0
- package/dist/parser/tables/dimStyle/consts.d.ts +2 -0
- package/dist/parser/tables/dimStyle/consts.js +424 -0
- package/dist/parser/tables/dimStyle/consts.js.map +1 -0
- package/dist/parser/tables/dimStyle/index.d.ts +3 -0
- package/dist/parser/tables/dimStyle/index.js +20 -0
- package/dist/parser/tables/dimStyle/index.js.map +1 -0
- package/dist/parser/tables/dimStyle/parser.d.ts +1 -0
- package/dist/parser/tables/dimStyle/parser.js +35 -0
- package/dist/parser/tables/dimStyle/parser.js.map +1 -0
- package/dist/parser/tables/dimStyle/types.d.ts +83 -0
- package/dist/parser/tables/dimStyle/types.js +3 -0
- package/dist/parser/tables/dimStyle/types.js.map +1 -0
- package/dist/parser/tables/index.d.ts +2 -0
- package/dist/parser/tables/index.js +19 -0
- package/dist/parser/tables/index.js.map +1 -0
- package/dist/parser/tables/layer/index.d.ts +2 -0
- package/dist/parser/tables/layer/index.js +19 -0
- package/dist/parser/tables/layer/index.js.map +1 -0
- package/dist/parser/tables/layer/parser.d.ts +1 -0
- package/dist/parser/tables/layer/parser.js +55 -0
- package/dist/parser/tables/layer/parser.js.map +1 -0
- package/dist/parser/tables/layer/types.d.ts +13 -0
- package/dist/parser/tables/layer/types.js +3 -0
- package/dist/parser/tables/layer/types.js.map +1 -0
- package/dist/parser/tables/ltype/consts.d.ts +6 -0
- package/dist/parser/tables/ltype/consts.js +11 -0
- package/dist/parser/tables/ltype/consts.js.map +1 -0
- package/dist/parser/tables/ltype/index.d.ts +3 -0
- package/dist/parser/tables/ltype/index.js +20 -0
- package/dist/parser/tables/ltype/index.js.map +1 -0
- package/dist/parser/tables/ltype/parser.d.ts +1 -0
- package/dist/parser/tables/ltype/parser.js +105 -0
- package/dist/parser/tables/ltype/parser.js.map +1 -0
- package/dist/parser/tables/ltype/types.d.ts +21 -0
- package/dist/parser/tables/ltype/types.js +3 -0
- package/dist/parser/tables/ltype/types.js.map +1 -0
- package/dist/parser/tables/parser.d.ts +2 -0
- package/dist/parser/tables/parser.js +90 -0
- package/dist/parser/tables/parser.js.map +1 -0
- package/dist/parser/tables/shared.d.ts +2 -0
- package/dist/parser/tables/shared.js +32 -0
- package/dist/parser/tables/shared.js.map +1 -0
- package/dist/parser/tables/style/index.d.ts +2 -0
- package/dist/parser/tables/style/index.js +19 -0
- package/dist/parser/tables/style/index.js.map +1 -0
- package/dist/parser/tables/style/parser.d.ts +1 -0
- package/dist/parser/tables/style/parser.js +68 -0
- package/dist/parser/tables/style/parser.js.map +1 -0
- package/dist/parser/tables/style/types.d.ts +14 -0
- package/dist/parser/tables/style/types.js +3 -0
- package/dist/parser/tables/style/types.js.map +1 -0
- package/dist/parser/tables/types.d.ts +14 -0
- package/dist/parser/tables/types.js +3 -0
- package/dist/parser/tables/types.js.map +1 -0
- package/dist/parser/tables/vport/index.d.ts +2 -0
- package/dist/parser/tables/vport/index.js +19 -0
- package/dist/parser/tables/vport/index.js.map +1 -0
- package/dist/parser/tables/vport/parser.d.ts +1 -0
- package/dist/parser/tables/vport/parser.js +201 -0
- package/dist/parser/tables/vport/parser.js.map +1 -0
- package/dist/parser/tables/vport/types.d.ts +43 -0
- package/dist/parser/tables/vport/types.js +3 -0
- package/dist/parser/tables/vport/types.js.map +1 -0
- package/dist/parser/types.d.ts +29 -0
- package/dist/parser/types.js +3 -0
- package/dist/parser/types.js.map +1 -0
- package/dist/types/color.d.ts +3 -0
- package/dist/types/color.js +3 -0
- package/dist/types/color.js.map +1 -0
- package/dist/types/dxfHeader.d.ts +16 -0
- package/dist/types/dxfHeader.js +3 -0
- package/dist/types/dxfHeader.js.map +1 -0
- package/dist/types/entity.d.ts +6 -0
- package/dist/types/entity.js +3 -0
- package/dist/types/entity.js.map +1 -0
- package/dist/types/index.d.ts +24 -0
- package/dist/types/index.js +20 -0
- package/dist/types/index.js.map +1 -0
- package/dist/utils/binarySearch.d.ts +1 -0
- package/dist/utils/binarySearch.js +23 -0
- package/dist/utils/binarySearch.js.map +1 -0
- package/dist/utils/disjointSet.d.ts +6 -0
- package/dist/utils/disjointSet.js +52 -0
- package/dist/utils/disjointSet.js.map +1 -0
- package/dist/utils/flooding.d.ts +8 -0
- package/dist/utils/flooding.js +26 -0
- package/dist/utils/flooding.js.map +1 -0
- package/dist/utils/functional.d.ts +17 -0
- package/dist/utils/functional.js +111 -0
- package/dist/utils/functional.js.map +1 -0
- package/dist/utils/graph.d.ts +19 -0
- package/dist/utils/graph.js +47 -0
- package/dist/utils/graph.js.map +1 -0
- package/dist/utils/index.d.ts +30 -0
- package/dist/utils/index.js +106 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/queue.d.ts +19 -0
- package/dist/utils/queue.js +71 -0
- package/dist/utils/queue.js.map +1 -0
- package/dist/utils/triangle.d.ts +2 -0
- package/dist/utils/triangle.js +19 -0
- package/dist/utils/triangle.js.map +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ArcEntityParser = void 0;
|
|
4
|
+
const parserGenerator_1 = require("../../shared/parserGenerator");
|
|
5
|
+
const shared_1 = require("../shared");
|
|
6
|
+
const DefaultArcEntity = {
|
|
7
|
+
extrusionDirection: { x: 0, y: 0, z: 1 },
|
|
8
|
+
};
|
|
9
|
+
const ArcEntityParserSnippets = [
|
|
10
|
+
{
|
|
11
|
+
code: 210,
|
|
12
|
+
name: 'extrusionDirection',
|
|
13
|
+
parser: parserGenerator_1.PointParser,
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
code: 51,
|
|
17
|
+
name: 'endAngle',
|
|
18
|
+
parser: parserGenerator_1.Identity,
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
code: 50,
|
|
22
|
+
name: 'startAngle',
|
|
23
|
+
parser: parserGenerator_1.Identity,
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
code: 100,
|
|
27
|
+
name: 'subclassMarker',
|
|
28
|
+
parser: parserGenerator_1.Identity,
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
code: 40,
|
|
32
|
+
name: 'radius',
|
|
33
|
+
parser: parserGenerator_1.Identity,
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
code: 10,
|
|
37
|
+
name: 'center',
|
|
38
|
+
parser: parserGenerator_1.PointParser,
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
code: 39,
|
|
42
|
+
name: 'thickness',
|
|
43
|
+
parser: parserGenerator_1.Identity,
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
// skip for AcDbCircle
|
|
47
|
+
code: 100,
|
|
48
|
+
},
|
|
49
|
+
...shared_1.CommonEntitySnippets,
|
|
50
|
+
];
|
|
51
|
+
class ArcEntityParser {
|
|
52
|
+
constructor() {
|
|
53
|
+
this.parser = (0, parserGenerator_1.createParser)(ArcEntityParserSnippets, DefaultArcEntity);
|
|
54
|
+
}
|
|
55
|
+
parseEntity(scanner, curr) {
|
|
56
|
+
const entity = {};
|
|
57
|
+
this.parser(curr, scanner, entity);
|
|
58
|
+
return entity;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
exports.ArcEntityParser = ArcEntityParser;
|
|
62
|
+
ArcEntityParser.ForEntityName = 'ARC';
|
|
63
|
+
//# sourceMappingURL=parser.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parser.js","sourceRoot":"","sources":["../../../../src/parser/entities/arc/parser.ts"],"names":[],"mappings":";;;AAEA,kEAKsC;AACtC,sCAAiD;AAEjD,MAAM,gBAAgB,GAAG;IACrB,kBAAkB,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE;CAC3C,CAAC;AAEF,MAAM,uBAAuB,GAAuB;IAChD;QACI,IAAI,EAAE,GAAG;QACT,IAAI,EAAE,oBAAoB;QAC1B,MAAM,EAAE,6BAAW;KACtB;IACD;QACI,IAAI,EAAE,EAAE;QACR,IAAI,EAAE,UAAU;QAChB,MAAM,EAAE,0BAAQ;KACnB;IACD;QACI,IAAI,EAAE,EAAE;QACR,IAAI,EAAE,YAAY;QAClB,MAAM,EAAE,0BAAQ;KACnB;IACD;QACI,IAAI,EAAE,GAAG;QACT,IAAI,EAAE,gBAAgB;QACtB,MAAM,EAAE,0BAAQ;KACnB;IACD;QACI,IAAI,EAAE,EAAE;QACR,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,0BAAQ;KACnB;IACD;QACI,IAAI,EAAE,EAAE;QACR,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,6BAAW;KACtB;IACD;QACI,IAAI,EAAE,EAAE;QACR,IAAI,EAAE,WAAW;QACjB,MAAM,EAAE,0BAAQ;KACnB;IACD;QACI,sBAAsB;QACtB,IAAI,EAAE,GAAG;KACZ;IACD,GAAG,6BAAoB;CAC1B,CAAC;AAEF,MAAa,eAAe;IAA5B;QAEY,WAAM,GAAG,IAAA,8BAAY,EAAC,uBAAuB,EAAE,gBAAgB,CAAC,CAAC;IAO7E,CAAC;IALG,WAAW,CAAC,OAAwB,EAAE,IAAkB;QACpD,MAAM,MAAM,GAAG,EAAS,CAAC;QACzB,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;QACnC,OAAO,MAAM,CAAC;IAClB,CAAC;;AARL,0CASC;AARU,6BAAa,GAAG,KAAK,AAAR,CAAS"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Point3D } from '../../../types';
|
|
2
|
+
import type { CommonDxfEntity } from '../shared';
|
|
3
|
+
export interface ArcEntity extends CommonDxfEntity {
|
|
4
|
+
type: 'ARC';
|
|
5
|
+
subclassMarker: 'AcDbArc';
|
|
6
|
+
thickness: number;
|
|
7
|
+
center: Point3D;
|
|
8
|
+
radius: number;
|
|
9
|
+
startAngle: number;
|
|
10
|
+
endAngle: number;
|
|
11
|
+
extrusionDirection: Point3D;
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/parser/entities/arc/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AttDefMTextFlag = exports.AttributeFlag = void 0;
|
|
4
|
+
var AttributeFlag;
|
|
5
|
+
(function (AttributeFlag) {
|
|
6
|
+
AttributeFlag[AttributeFlag["NONE"] = 0] = "NONE";
|
|
7
|
+
AttributeFlag[AttributeFlag["INVISIBLE"] = 1] = "INVISIBLE";
|
|
8
|
+
AttributeFlag[AttributeFlag["CONSTANT"] = 2] = "CONSTANT";
|
|
9
|
+
AttributeFlag[AttributeFlag["VERIFICATION_REQUIRED"] = 4] = "VERIFICATION_REQUIRED";
|
|
10
|
+
AttributeFlag[AttributeFlag["PRESET"] = 8] = "PRESET";
|
|
11
|
+
})(AttributeFlag || (exports.AttributeFlag = AttributeFlag = {}));
|
|
12
|
+
var AttDefMTextFlag;
|
|
13
|
+
(function (AttDefMTextFlag) {
|
|
14
|
+
AttDefMTextFlag[AttDefMTextFlag["MULTILINE"] = 2] = "MULTILINE";
|
|
15
|
+
AttDefMTextFlag[AttDefMTextFlag["CONSTANT_MULTILINE"] = 4] = "CONSTANT_MULTILINE";
|
|
16
|
+
})(AttDefMTextFlag || (exports.AttDefMTextFlag = AttDefMTextFlag = {}));
|
|
17
|
+
//# sourceMappingURL=consts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consts.js","sourceRoot":"","sources":["../../../../src/parser/entities/attdef/consts.ts"],"names":[],"mappings":";;;AAAA,IAAY,aAMX;AAND,WAAY,aAAa;IACrB,iDAAQ,CAAA;IACR,2DAAa,CAAA;IACb,yDAAY,CAAA;IACZ,mFAAyB,CAAA;IACzB,qDAAU,CAAA;AACd,CAAC,EANW,aAAa,6BAAb,aAAa,QAMxB;AAED,IAAY,eAGX;AAHD,WAAY,eAAe;IACvB,+DAAa,CAAA;IACb,iFAAsB,CAAA;AAC1B,CAAC,EAHW,eAAe,+BAAf,eAAe,QAG1B"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./types"), exports);
|
|
18
|
+
__exportStar(require("./consts"), exports);
|
|
19
|
+
__exportStar(require("./parser"), exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/parser/entities/attdef/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,2CAAyB;AACzB,2CAAyB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type DxfArrayScanner from '../../DxfArrayScanner';
|
|
2
|
+
import type { ScannerGroup } from '../../DxfArrayScanner';
|
|
3
|
+
import type { AttdefEntity } from './types';
|
|
4
|
+
export declare class AttDefEntityParser {
|
|
5
|
+
static ForEntityName: string;
|
|
6
|
+
private parser;
|
|
7
|
+
parseEntity(scanner: DxfArrayScanner, curr: ScannerGroup): AttdefEntity;
|
|
8
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AttDefEntityParser = void 0;
|
|
4
|
+
const parserGenerator_1 = require("../../shared/parserGenerator");
|
|
5
|
+
const text_1 = require("../text");
|
|
6
|
+
const DefaultAttDefEntity = {
|
|
7
|
+
...text_1.DefaultTextEntity,
|
|
8
|
+
};
|
|
9
|
+
const AttDefEntityParserSnippets = [
|
|
10
|
+
{
|
|
11
|
+
code: 2, // tag. 왜 다시 나오는지 모르겠음
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
code: 40,
|
|
15
|
+
name: 'annotationScale',
|
|
16
|
+
parser: parserGenerator_1.Identity,
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
code: 10,
|
|
20
|
+
name: 'alignmentPoint',
|
|
21
|
+
parser: parserGenerator_1.PointParser,
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
code: 340,
|
|
25
|
+
name: 'secondaryAttributesHardIds',
|
|
26
|
+
isMultiple: true,
|
|
27
|
+
parser: parserGenerator_1.Identity,
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
code: 70,
|
|
31
|
+
name: 'numberOfSecondaryAttributes',
|
|
32
|
+
parser: parserGenerator_1.Identity,
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
code: 70,
|
|
36
|
+
name: 'isReallyLocked',
|
|
37
|
+
parser: parserGenerator_1.ToBoolean,
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
code: 70,
|
|
41
|
+
name: 'mtextFlag',
|
|
42
|
+
parser: parserGenerator_1.Identity,
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
code: 280,
|
|
46
|
+
name: 'isDuplicatedRecord',
|
|
47
|
+
parser: parserGenerator_1.ToBoolean,
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
code: 100, // AcDbXrecord, skip
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
code: 280,
|
|
54
|
+
name: 'isLocked',
|
|
55
|
+
parser: parserGenerator_1.ToBoolean,
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
code: 74,
|
|
59
|
+
name: 'valign',
|
|
60
|
+
parser: parserGenerator_1.Identity,
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
code: 73, // field length, useless
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
code: 70,
|
|
67
|
+
name: 'attributeFlag',
|
|
68
|
+
parser: parserGenerator_1.Identity,
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
code: 2,
|
|
72
|
+
name: 'tag',
|
|
73
|
+
parser: parserGenerator_1.Identity,
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
code: 3,
|
|
77
|
+
name: 'prompt',
|
|
78
|
+
parser: parserGenerator_1.Identity,
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
code: 280, // version number, always 0, useless
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
code: 100,
|
|
85
|
+
name: 'subclassMarker',
|
|
86
|
+
parser: parserGenerator_1.Identity,
|
|
87
|
+
},
|
|
88
|
+
...text_1.TextEntityParserSnippets.slice(2),
|
|
89
|
+
];
|
|
90
|
+
class AttDefEntityParser {
|
|
91
|
+
constructor() {
|
|
92
|
+
this.parser = (0, parserGenerator_1.createParser)(AttDefEntityParserSnippets, DefaultAttDefEntity);
|
|
93
|
+
}
|
|
94
|
+
parseEntity(scanner, curr) {
|
|
95
|
+
const entity = {};
|
|
96
|
+
this.parser(curr, scanner, entity);
|
|
97
|
+
return entity;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
exports.AttDefEntityParser = AttDefEntityParser;
|
|
101
|
+
AttDefEntityParser.ForEntityName = 'ATTDEF';
|
|
102
|
+
// entity.invisible = !!(curr.value & 0x01);
|
|
103
|
+
// entity.constant = !!(curr.value & 0x02);
|
|
104
|
+
// entity.verificationRequired = !!(curr.value & 0x04);
|
|
105
|
+
// entity.preset = !!(curr.value & 0x08);
|
|
106
|
+
// entity.backwards = !!(curr.value & 0x02);
|
|
107
|
+
// entity.mirrored = !!(curr.value & 0x04);
|
|
108
|
+
//# sourceMappingURL=parser.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parser.js","sourceRoot":"","sources":["../../../../src/parser/entities/attdef/parser.ts"],"names":[],"mappings":";;;AAEA,kEAMsC;AACtC,kCAAsE;AAGtE,MAAM,mBAAmB,GAAG;IACxB,GAAG,wBAAiB;CACvB,CAAC;AAEF,MAAM,0BAA0B,GAAuB;IACnD;QACI,IAAI,EAAE,CAAC,EAAE,sBAAsB;KAClC;IACD;QACI,IAAI,EAAE,EAAE;QACR,IAAI,EAAE,iBAAiB;QACvB,MAAM,EAAE,0BAAQ;KACnB;IACD;QACI,IAAI,EAAE,EAAE;QACR,IAAI,EAAE,gBAAgB;QACtB,MAAM,EAAE,6BAAW;KACtB;IACD;QACI,IAAI,EAAE,GAAG;QACT,IAAI,EAAE,4BAA4B;QAClC,UAAU,EAAE,IAAI;QAChB,MAAM,EAAE,0BAAQ;KACnB;IACD;QACI,IAAI,EAAE,EAAE;QACR,IAAI,EAAE,6BAA6B;QACnC,MAAM,EAAE,0BAAQ;KACnB;IACD;QACI,IAAI,EAAE,EAAE;QACR,IAAI,EAAE,gBAAgB;QACtB,MAAM,EAAE,2BAAS;KACpB;IACD;QACI,IAAI,EAAE,EAAE;QACR,IAAI,EAAE,WAAW;QACjB,MAAM,EAAE,0BAAQ;KACnB;IACD;QACI,IAAI,EAAE,GAAG;QACT,IAAI,EAAE,oBAAoB;QAC1B,MAAM,EAAE,2BAAS;KACpB;IACD;QACI,IAAI,EAAE,GAAG,EAAE,oBAAoB;KAClC;IACD;QACI,IAAI,EAAE,GAAG;QACT,IAAI,EAAE,UAAU;QAChB,MAAM,EAAE,2BAAS;KACpB;IACD;QACI,IAAI,EAAE,EAAE;QACR,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,0BAAQ;KACnB;IACD;QACI,IAAI,EAAE,EAAE,EAAE,wBAAwB;KACrC;IACD;QACI,IAAI,EAAE,EAAE;QACR,IAAI,EAAE,eAAe;QACrB,MAAM,EAAE,0BAAQ;KACnB;IACD;QACI,IAAI,EAAE,CAAC;QACP,IAAI,EAAE,KAAK;QACX,MAAM,EAAE,0BAAQ;KACnB;IACD;QACI,IAAI,EAAE,CAAC;QACP,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,0BAAQ;KACnB;IACD;QACI,IAAI,EAAE,GAAG,EAAE,oCAAoC;KAClD;IACD;QACI,IAAI,EAAE,GAAG;QACT,IAAI,EAAE,gBAAgB;QACtB,MAAM,EAAE,0BAAQ;KACnB;IACD,GAAG,+BAAwB,CAAC,KAAK,CAAC,CAAC,CAAC;CACvC,CAAC;AAEF,MAAa,kBAAkB;IAA/B;QAEY,WAAM,GAAG,IAAA,8BAAY,EACzB,0BAA0B,EAC1B,mBAAmB,CACtB,CAAC;IAON,CAAC;IALG,WAAW,CAAC,OAAwB,EAAE,IAAkB;QACpD,MAAM,MAAM,GAAG,EAAS,CAAC;QACzB,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;QACnC,OAAO,MAAsB,CAAC;IAClC,CAAC;;AAXL,gDAYC;AAXU,gCAAa,GAAG,QAAQ,AAAX,CAAY;AAapC,4CAA4C;AAC5C,2CAA2C;AAC3C,uDAAuD;AACvD,yCAAyC;AAEzC,4CAA4C;AAC5C,2CAA2C"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { Point3D } from '../../../types';
|
|
2
|
+
import type { TextEntity } from '../text';
|
|
3
|
+
export interface AttdefEntity extends Omit<TextEntity, 'type' | 'subclassMarker'> {
|
|
4
|
+
type: 'ATTDEF';
|
|
5
|
+
subclassMarker: 'AcDbAttributeDefinition';
|
|
6
|
+
prompt: string;
|
|
7
|
+
tag: string;
|
|
8
|
+
attributeFlag: number;
|
|
9
|
+
isLocked: boolean;
|
|
10
|
+
isDuplicatedRecord: boolean;
|
|
11
|
+
mtextFlag: number;
|
|
12
|
+
isReallyLocked: boolean;
|
|
13
|
+
numberOfSecondaryAttributes: number;
|
|
14
|
+
secondaryAttributesHardIds: string[];
|
|
15
|
+
alignmentPoint: Point3D;
|
|
16
|
+
annotationScale: number;
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/parser/entities/attdef/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AttributeFlag = void 0;
|
|
4
|
+
var AttributeFlag;
|
|
5
|
+
(function (AttributeFlag) {
|
|
6
|
+
AttributeFlag[AttributeFlag["INVISIBLE"] = 1] = "INVISIBLE";
|
|
7
|
+
AttributeFlag[AttributeFlag["CONSTANT"] = 2] = "CONSTANT";
|
|
8
|
+
AttributeFlag[AttributeFlag["REQUIRE_VERIFICATION"] = 4] = "REQUIRE_VERIFICATION";
|
|
9
|
+
AttributeFlag[AttributeFlag["PRESET"] = 8] = "PRESET";
|
|
10
|
+
})(AttributeFlag || (exports.AttributeFlag = AttributeFlag = {}));
|
|
11
|
+
//# sourceMappingURL=consts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consts.js","sourceRoot":"","sources":["../../../../src/parser/entities/attribute/consts.ts"],"names":[],"mappings":";;;AAAA,IAAY,aAKX;AALD,WAAY,aAAa;IACrB,2DAAa,CAAA;IACb,yDAAY,CAAA;IACZ,iFAAwB,CAAA;IACxB,qDAAU,CAAA;AACd,CAAC,EALW,aAAa,6BAAb,aAAa,QAKxB"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./types"), exports);
|
|
18
|
+
__exportStar(require("./consts"), exports);
|
|
19
|
+
__exportStar(require("./parser"), exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/parser/entities/attribute/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,2CAAyB;AACzB,2CAAyB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type DxfArrayScanner from '../../DxfArrayScanner';
|
|
2
|
+
import type { ScannerGroup } from '../../DxfArrayScanner';
|
|
3
|
+
import { AttributeEntity } from './types';
|
|
4
|
+
export declare class AttributeEntityParser {
|
|
5
|
+
static ForEntityName: string;
|
|
6
|
+
private parser;
|
|
7
|
+
parseEntity(scanner: DxfArrayScanner, curr: ScannerGroup): AttributeEntity;
|
|
8
|
+
}
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AttributeEntityParser = void 0;
|
|
4
|
+
const parserGenerator_1 = require("../../shared/parserGenerator");
|
|
5
|
+
const shared_1 = require("../../shared");
|
|
6
|
+
const shared_2 = require("../shared");
|
|
7
|
+
const mtext_1 = require("../mtext");
|
|
8
|
+
const DefaultAttributeEntity = {
|
|
9
|
+
thickness: 0,
|
|
10
|
+
rotation: 0,
|
|
11
|
+
scale: 1,
|
|
12
|
+
obliqueAngle: 0,
|
|
13
|
+
textStyle: 'STANDARD',
|
|
14
|
+
textGenerationFlag: 0,
|
|
15
|
+
horizontalJustification: 0,
|
|
16
|
+
verticalJustification: 0,
|
|
17
|
+
extrusionDirection: { x: 0, y: 0, z: 1 },
|
|
18
|
+
};
|
|
19
|
+
const AttributeSnippets = [
|
|
20
|
+
...mtext_1.MTextEntityParserSnippets.slice(mtext_1.MTextEntityParserSnippets.findIndex(({ name }) => name === 'columnType'), mtext_1.MTextEntityParserSnippets.findIndex(({ name }) => name === 'subclassMarker') + 1),
|
|
21
|
+
// 67, 8은 common에 있음
|
|
22
|
+
{
|
|
23
|
+
code: 100, // AcDbEntity
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
// MTEXT가 필수로 따라오지 않는 경우도 있기 때문에 이 경우 탈출 필요
|
|
27
|
+
code: 0,
|
|
28
|
+
parser(curr) {
|
|
29
|
+
if (!(0, shared_1.isMatched)(curr, 0, 'MTEXT'))
|
|
30
|
+
return parserGenerator_1.Abort;
|
|
31
|
+
return undefined;
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
code: 2,
|
|
36
|
+
name: 'definitionTag',
|
|
37
|
+
parser: parserGenerator_1.Identity,
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
code: 40,
|
|
41
|
+
name: 'annotationScale',
|
|
42
|
+
parser: parserGenerator_1.Identity,
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
code: 10,
|
|
46
|
+
name: 'alignmentPoint',
|
|
47
|
+
parser: parserGenerator_1.PointParser,
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
code: 340,
|
|
51
|
+
name: 'secondaryAttributesHardId',
|
|
52
|
+
parser: parserGenerator_1.Identity,
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
code: 70,
|
|
56
|
+
name: 'numberOfSecondaryAttributes',
|
|
57
|
+
parser: parserGenerator_1.Identity,
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
code: 70,
|
|
61
|
+
name: 'isReallyLocked',
|
|
62
|
+
parser: parserGenerator_1.ToBoolean,
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
code: 70,
|
|
66
|
+
name: 'mtextFlag',
|
|
67
|
+
parser: parserGenerator_1.Identity,
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
code: 280,
|
|
71
|
+
name: 'isDuplicatedEntriesKeep',
|
|
72
|
+
parser: parserGenerator_1.ToBoolean,
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
code: 100, // AcDbXRecord
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
code: 280,
|
|
79
|
+
name: 'lockPositionFlag',
|
|
80
|
+
parser: parserGenerator_1.ToBoolean,
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
code: 210,
|
|
84
|
+
name: 'extrusionDirection',
|
|
85
|
+
parser: parserGenerator_1.PointParser,
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
code: 11,
|
|
89
|
+
name: 'alignmentPoint',
|
|
90
|
+
parser: parserGenerator_1.PointParser,
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
code: 74,
|
|
94
|
+
name: 'verticalJustification',
|
|
95
|
+
parser: parserGenerator_1.Identity,
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
code: 72,
|
|
99
|
+
name: 'horizontalJustification',
|
|
100
|
+
parser: parserGenerator_1.Identity,
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
code: 71,
|
|
104
|
+
name: 'textGenerationFlag', // attachmentPoint
|
|
105
|
+
parser: parserGenerator_1.Identity,
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
code: 7,
|
|
109
|
+
name: 'textStyle',
|
|
110
|
+
parser: parserGenerator_1.Identity,
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
code: 51,
|
|
114
|
+
name: 'obliqueAngle',
|
|
115
|
+
parser: parserGenerator_1.Identity,
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
code: 41,
|
|
119
|
+
name: 'scale',
|
|
120
|
+
parser: parserGenerator_1.Identity,
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
code: 50,
|
|
124
|
+
name: 'rotation',
|
|
125
|
+
parser: parserGenerator_1.Identity,
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
code: 73, // 미사용
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
code: 70,
|
|
132
|
+
name: 'attributeFlag',
|
|
133
|
+
parser: parserGenerator_1.Identity,
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
code: 2,
|
|
137
|
+
name: 'tag',
|
|
138
|
+
parser: parserGenerator_1.Identity,
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
code: 280, // version number, 미사용
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
code: 100, // AcDbAttribute
|
|
145
|
+
name: 'subclassMarker',
|
|
146
|
+
parser: parserGenerator_1.Identity,
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
code: 1,
|
|
150
|
+
name: 'text',
|
|
151
|
+
parser: parserGenerator_1.Identity,
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
code: 40,
|
|
155
|
+
name: 'textHeight',
|
|
156
|
+
parser: parserGenerator_1.Identity,
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
code: 10,
|
|
160
|
+
name: 'startPoint',
|
|
161
|
+
parser: parserGenerator_1.PointParser,
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
code: 39,
|
|
165
|
+
name: 'thickness',
|
|
166
|
+
parser: parserGenerator_1.Identity,
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
code: 100, // AcDbText
|
|
170
|
+
},
|
|
171
|
+
...shared_2.CommonEntitySnippets,
|
|
172
|
+
];
|
|
173
|
+
class AttributeEntityParser {
|
|
174
|
+
constructor() {
|
|
175
|
+
this.parser = (0, parserGenerator_1.createParser)(AttributeSnippets, DefaultAttributeEntity);
|
|
176
|
+
}
|
|
177
|
+
parseEntity(scanner, curr) {
|
|
178
|
+
const entity = {};
|
|
179
|
+
this.parser(curr, scanner, entity);
|
|
180
|
+
return entity;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
exports.AttributeEntityParser = AttributeEntityParser;
|
|
184
|
+
AttributeEntityParser.ForEntityName = 'ATTRIB';
|
|
185
|
+
//# sourceMappingURL=parser.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parser.js","sourceRoot":"","sources":["../../../../src/parser/entities/attribute/parser.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { Point3D } from '../../../types';
|
|
2
|
+
import type { CommonDxfEntity } from '../shared';
|
|
3
|
+
export interface AttributeEntity extends CommonDxfEntity {
|
|
4
|
+
type: 'ATTRIB';
|
|
5
|
+
subclassMarker: 'AcDbAttribute';
|
|
6
|
+
thickness: number;
|
|
7
|
+
startPoint: Point3D;
|
|
8
|
+
textHeight: number;
|
|
9
|
+
text: string;
|
|
10
|
+
tag: string;
|
|
11
|
+
attributeFlag: number;
|
|
12
|
+
lineSpacing?: number;
|
|
13
|
+
rotation: number;
|
|
14
|
+
scale: number;
|
|
15
|
+
obliqueAngle: number;
|
|
16
|
+
textStyle: string;
|
|
17
|
+
textGenerationFlag: number;
|
|
18
|
+
horizontalJustification: number;
|
|
19
|
+
verticalJustification: number;
|
|
20
|
+
extrusionDirection: Point3D;
|
|
21
|
+
lockPositionFlag: boolean;
|
|
22
|
+
isDuplicatedEntriesKeep?: boolean;
|
|
23
|
+
mtextFlag: 2 | 4;
|
|
24
|
+
isReallyLocked?: boolean;
|
|
25
|
+
numberOfSecondaryAttributes?: number;
|
|
26
|
+
secondaryAttributesHardId?: string;
|
|
27
|
+
alignmentPoint: Point3D;
|
|
28
|
+
annotationScale?: number;
|
|
29
|
+
definitionTag?: string;
|
|
30
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/parser/entities/attribute/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./types"), exports);
|
|
18
|
+
__exportStar(require("./parser"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/parser/entities/circle/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,2CAAyB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type DxfArrayScanner from '../../DxfArrayScanner';
|
|
2
|
+
import type { ScannerGroup } from '../../DxfArrayScanner';
|
|
3
|
+
import type { CircleEntity } from './types';
|
|
4
|
+
export declare class CircleEntityParser {
|
|
5
|
+
static ForEntityName: string;
|
|
6
|
+
private parser;
|
|
7
|
+
parseEntity(scanner: DxfArrayScanner, curr: ScannerGroup): CircleEntity;
|
|
8
|
+
}
|