dxf-json 0.0.8 → 0.0.10
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 +11 -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
- package/src/parser/DxfParser.ts +2 -1
|
@@ -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/tables/vport/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,2CAAyB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const parseVPortTable: import("../../shared/parserGenerator").DXFParser;
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.parseVPortTable = void 0;
|
|
4
|
+
const parserGenerator_1 = require("../../shared/parserGenerator");
|
|
5
|
+
const shared_1 = require("../shared");
|
|
6
|
+
const VPortTableParserSnippets = [
|
|
7
|
+
{
|
|
8
|
+
code: [63, 421, 431],
|
|
9
|
+
name: 'ambientColor',
|
|
10
|
+
parser: parserGenerator_1.Identity,
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
code: 142,
|
|
14
|
+
name: 'contrast',
|
|
15
|
+
parser: parserGenerator_1.Identity,
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
code: 141,
|
|
19
|
+
name: 'brightness',
|
|
20
|
+
parser: parserGenerator_1.Identity,
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
code: 282,
|
|
24
|
+
name: 'defaultLightingType',
|
|
25
|
+
parser: parserGenerator_1.Identity,
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
code: 292,
|
|
29
|
+
name: 'isDefaultLightingOn',
|
|
30
|
+
parser: parserGenerator_1.ToBoolean,
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
code: 348,
|
|
34
|
+
name: 'visualStyleObjectId',
|
|
35
|
+
parser: parserGenerator_1.Identity,
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
code: 333,
|
|
39
|
+
name: 'shadePlotObjectId',
|
|
40
|
+
parser: parserGenerator_1.Identity,
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
code: 332,
|
|
44
|
+
name: 'backgroundObjectId',
|
|
45
|
+
parser: parserGenerator_1.Identity,
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
code: 61,
|
|
49
|
+
name: 'majorGridLines',
|
|
50
|
+
parser: parserGenerator_1.Identity,
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
code: 170,
|
|
54
|
+
name: 'shadePlotSetting',
|
|
55
|
+
parser: parserGenerator_1.Identity,
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
code: 146,
|
|
59
|
+
name: 'elevation',
|
|
60
|
+
parser: parserGenerator_1.Identity,
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
code: 79,
|
|
64
|
+
name: 'orthographicType',
|
|
65
|
+
parser: parserGenerator_1.Identity,
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
code: 112,
|
|
69
|
+
name: 'ucsYAxis',
|
|
70
|
+
parser: parserGenerator_1.PointParser,
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
code: 111,
|
|
74
|
+
name: 'ucsXAxis',
|
|
75
|
+
parser: parserGenerator_1.PointParser,
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
code: 110,
|
|
79
|
+
name: 'ucsOrigin',
|
|
80
|
+
parser: parserGenerator_1.PointParser,
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
code: 74,
|
|
84
|
+
name: 'ucsIconSetting',
|
|
85
|
+
parser: parserGenerator_1.Identity,
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
code: 71,
|
|
89
|
+
name: 'viewMode',
|
|
90
|
+
parser: parserGenerator_1.Identity,
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
code: 281,
|
|
94
|
+
name: 'renderMode',
|
|
95
|
+
parser: parserGenerator_1.Identity,
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
code: 1,
|
|
99
|
+
name: 'styleSheet',
|
|
100
|
+
parser: parserGenerator_1.Identity,
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
code: [331, 441],
|
|
104
|
+
name: 'frozenLayers',
|
|
105
|
+
parser: parserGenerator_1.Identity,
|
|
106
|
+
isMultiple: true,
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
code: 72,
|
|
110
|
+
name: 'circleSides',
|
|
111
|
+
parser: parserGenerator_1.Identity,
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
code: 51,
|
|
115
|
+
name: 'viewTwistAngle',
|
|
116
|
+
parser: parserGenerator_1.Identity,
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
code: 50,
|
|
120
|
+
name: 'snapRotationAngle',
|
|
121
|
+
parser: parserGenerator_1.Identity,
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
code: 45,
|
|
125
|
+
name: 'viewHeight',
|
|
126
|
+
parser: parserGenerator_1.Identity,
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
code: 44,
|
|
130
|
+
name: 'backClippingPlane',
|
|
131
|
+
parser: parserGenerator_1.Identity,
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
code: 43,
|
|
135
|
+
name: 'frontClippingPlane',
|
|
136
|
+
parser: parserGenerator_1.Identity,
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
code: 42,
|
|
140
|
+
name: 'lensLength',
|
|
141
|
+
parser: parserGenerator_1.Identity,
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
code: 17,
|
|
145
|
+
name: 'viewTarget',
|
|
146
|
+
parser: parserGenerator_1.PointParser,
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
code: 16,
|
|
150
|
+
name: 'viewDirectionFromTarget',
|
|
151
|
+
parser: parserGenerator_1.PointParser,
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
code: 15,
|
|
155
|
+
name: 'gridSpacing',
|
|
156
|
+
parser: parserGenerator_1.PointParser,
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
code: 14,
|
|
160
|
+
name: 'snapSpacing',
|
|
161
|
+
parser: parserGenerator_1.PointParser,
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
code: 13,
|
|
165
|
+
name: 'snapBasePoint',
|
|
166
|
+
parser: parserGenerator_1.PointParser,
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
code: 12,
|
|
170
|
+
name: 'center',
|
|
171
|
+
parser: parserGenerator_1.PointParser,
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
code: 11,
|
|
175
|
+
name: 'upperRightCorner',
|
|
176
|
+
parser: parserGenerator_1.PointParser,
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
code: 10,
|
|
180
|
+
name: 'lowerLeftCorner',
|
|
181
|
+
parser: parserGenerator_1.PointParser,
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
code: 70,
|
|
185
|
+
name: 'standardFlag',
|
|
186
|
+
parser: parserGenerator_1.Identity,
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
code: 2,
|
|
190
|
+
name: 'name',
|
|
191
|
+
parser: parserGenerator_1.Identity,
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
code: 100,
|
|
195
|
+
name: 'subclassMarker',
|
|
196
|
+
parser: parserGenerator_1.Identity,
|
|
197
|
+
},
|
|
198
|
+
...shared_1.CommonTableEntryParserSnippets,
|
|
199
|
+
];
|
|
200
|
+
exports.parseVPortTable = (0, parserGenerator_1.createParser)(VPortTableParserSnippets);
|
|
201
|
+
//# sourceMappingURL=parser.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parser.js","sourceRoot":"","sources":["../../../../src/parser/tables/vport/parser.ts"],"names":[],"mappings":";;;AAAA,kEAMsC;AACtC,sCAA2D;AAE3D,MAAM,wBAAwB,GAAuB;IACjD;QACI,IAAI,EAAE,CAAC,EAAE,EAAE,GAAG,EAAE,GAAG,CAAC;QACpB,IAAI,EAAE,cAAc;QACpB,MAAM,EAAE,0BAAQ;KACnB;IACD;QACI,IAAI,EAAE,GAAG;QACT,IAAI,EAAE,UAAU;QAChB,MAAM,EAAE,0BAAQ;KACnB;IACD;QACI,IAAI,EAAE,GAAG;QACT,IAAI,EAAE,YAAY;QAClB,MAAM,EAAE,0BAAQ;KACnB;IACD;QACI,IAAI,EAAE,GAAG;QACT,IAAI,EAAE,qBAAqB;QAC3B,MAAM,EAAE,0BAAQ;KACnB;IACD;QACI,IAAI,EAAE,GAAG;QACT,IAAI,EAAE,qBAAqB;QAC3B,MAAM,EAAE,2BAAS;KACpB;IACD;QACI,IAAI,EAAE,GAAG;QACT,IAAI,EAAE,qBAAqB;QAC3B,MAAM,EAAE,0BAAQ;KACnB;IACD;QACI,IAAI,EAAE,GAAG;QACT,IAAI,EAAE,mBAAmB;QACzB,MAAM,EAAE,0BAAQ;KACnB;IACD;QACI,IAAI,EAAE,GAAG;QACT,IAAI,EAAE,oB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AI,EAAE,MAAM;QACZ,MAAM,EAAE,0BAAQ;KACnB;IACD;QACI,IAAI,EAAE,GAAG;QACT,IAAI,EAAE,gBAAgB;QACtB,MAAM,EAAE,0BAAQ;KACnB;IACD,GAAG,uCAA8B;CACpC,CAAC;AAEW,QAAA,eAAe,GAAG,IAAA,8BAAY,EAAC,wBAAwB,CAAC,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { RenderMode, OrthographicType, DefaultLightingType } from '../../../consts';
|
|
2
|
+
import type { Point2D, Point3D } from '../../../types';
|
|
3
|
+
import type { CommonDxfTableEntry } from '../types';
|
|
4
|
+
export interface VPortTableEntry extends CommonDxfTableEntry {
|
|
5
|
+
subclassMarker: 'AcDbViewportTableRecord';
|
|
6
|
+
name: string;
|
|
7
|
+
standardFlag: number;
|
|
8
|
+
lowerLeftCorner: Point2D;
|
|
9
|
+
upperRightCorner: Point2D;
|
|
10
|
+
center: Point2D;
|
|
11
|
+
snapBasePoint: Point2D;
|
|
12
|
+
snapSpacing: Point2D;
|
|
13
|
+
gridSpacing: Point2D;
|
|
14
|
+
viewDirectionFromTarget: Point3D;
|
|
15
|
+
viewTarget: Point3D;
|
|
16
|
+
lensLength: number;
|
|
17
|
+
frontClippingPlane: number;
|
|
18
|
+
backClippingPlane: number;
|
|
19
|
+
viewHeight: number;
|
|
20
|
+
snapRotationAngle: number;
|
|
21
|
+
viewTwistAngle: number;
|
|
22
|
+
circleSides: number;
|
|
23
|
+
frozenLayers: string[];
|
|
24
|
+
styleSheet: string;
|
|
25
|
+
renderMode: RenderMode;
|
|
26
|
+
viewMode: number;
|
|
27
|
+
ucsIconSetting: number;
|
|
28
|
+
ucsOrigin: Point3D;
|
|
29
|
+
ucsXAxis: Point3D;
|
|
30
|
+
ucsYAxis: Point3D;
|
|
31
|
+
orthographicType: OrthographicType;
|
|
32
|
+
elevation: number;
|
|
33
|
+
shadePlotSetting: number;
|
|
34
|
+
majorGridLines: number;
|
|
35
|
+
backgroundObjectId?: string;
|
|
36
|
+
shadePlotObjectId?: string;
|
|
37
|
+
visualStyleObjectId?: string;
|
|
38
|
+
isDefaultLightingOn: boolean;
|
|
39
|
+
defaultLightingType: DefaultLightingType;
|
|
40
|
+
brightness: number;
|
|
41
|
+
contrast: number;
|
|
42
|
+
ambientColor?: number;
|
|
43
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/parser/tables/vport/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { DxfHeader } from '../types/dxfHeader';
|
|
2
|
+
import type { DxfBlock } from './blocks/types';
|
|
3
|
+
import type { CommonDxfEntity } from './entities/shared';
|
|
4
|
+
import type { CommonDXFObject } from './objects/common';
|
|
5
|
+
import type { DxfObject } from './objects/types';
|
|
6
|
+
import { BlockRecordTableEntry } from './tables/blockRecord';
|
|
7
|
+
import { DimStylesTableEntry } from './tables/dimStyle';
|
|
8
|
+
import { LayerTableEntry } from './tables/layer';
|
|
9
|
+
import { LTypeTableEntry } from './tables/ltype';
|
|
10
|
+
import { StyleTableEntry } from './tables/style';
|
|
11
|
+
import { DxfTable } from './tables/types';
|
|
12
|
+
import { VPortTableEntry } from './tables/vport';
|
|
13
|
+
export interface ParsedDxf {
|
|
14
|
+
header: DxfHeader;
|
|
15
|
+
blocks: Record<string, DxfBlock>;
|
|
16
|
+
entities: CommonDxfEntity[];
|
|
17
|
+
tables: {
|
|
18
|
+
BLOCK_RECORD?: DxfTable<BlockRecordTableEntry>;
|
|
19
|
+
DIMSTYLE?: DxfTable<DimStylesTableEntry>;
|
|
20
|
+
STYLE?: DxfTable<StyleTableEntry>;
|
|
21
|
+
LAYER?: DxfTable<LayerTableEntry>;
|
|
22
|
+
LTYPE?: DxfTable<LTypeTableEntry>;
|
|
23
|
+
VPORT?: DxfTable<VPortTableEntry>;
|
|
24
|
+
};
|
|
25
|
+
objects: {
|
|
26
|
+
byName: Record<string, CommonDXFObject[]>;
|
|
27
|
+
byTree?: DxfObject;
|
|
28
|
+
};
|
|
29
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/parser/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"color.js","sourceRoot":"","sources":["../../src/types/color.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Measurement } from '../consts';
|
|
2
|
+
import type { DefaultDxfHeaderVariables } from '../consts/header';
|
|
3
|
+
export type DxfHeaderVariable =
|
|
4
|
+
/** Hard-pointer ID to visual style while creating 3D solid primitives */
|
|
5
|
+
'DRAGVS'
|
|
6
|
+
/** Represents the ACI color index of the "interference objects" created during the INTERFERE command */
|
|
7
|
+
| 'INTERFERECOLOR'
|
|
8
|
+
/** Hard-pointer ID to the visual style for interference objects */
|
|
9
|
+
| 'INTERFEREOBJVS'
|
|
10
|
+
/** Hard-pointer ID to the visual style for the viewport during interference checking */
|
|
11
|
+
| 'INTERFEREVPVS' | 'OBSLTYPE'
|
|
12
|
+
/** Percent ambient/diffuse light; range 1-100 */
|
|
13
|
+
| 'SHADEDIF' | 'MEASUREMENT';
|
|
14
|
+
export type DxfHeader = typeof DefaultDxfHeaderVariables & {
|
|
15
|
+
MEASUREMENT: Measurement;
|
|
16
|
+
} & Record<string, any>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dxfHeader.js","sourceRoot":"","sources":["../../src/types/dxfHeader.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity.js","sourceRoot":"","sources":["../../src/types/entity.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export * from './color';
|
|
2
|
+
export * from './dxfHeader';
|
|
3
|
+
export * from './entity';
|
|
4
|
+
export interface Point2D {
|
|
5
|
+
x: number;
|
|
6
|
+
y: number;
|
|
7
|
+
}
|
|
8
|
+
export interface Point3D {
|
|
9
|
+
x: number;
|
|
10
|
+
y: number;
|
|
11
|
+
z: number;
|
|
12
|
+
}
|
|
13
|
+
export interface Bound {
|
|
14
|
+
minX: number;
|
|
15
|
+
minY: number;
|
|
16
|
+
maxX: number;
|
|
17
|
+
maxY: number;
|
|
18
|
+
}
|
|
19
|
+
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
|
|
20
|
+
export type Indexed<T, P extends string> = {
|
|
21
|
+
[key in P]: T;
|
|
22
|
+
} & {
|
|
23
|
+
index: number;
|
|
24
|
+
};
|
|
@@ -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("./color"), exports);
|
|
18
|
+
__exportStar(require("./dxfHeader"), exports);
|
|
19
|
+
__exportStar(require("./entity"), exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,8CAA4B;AAC5B,2CAAyB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function createMaxLessOrEqualFinder<T>(comp: (a: T, b: T) => number): (list: T[], target: T) => number;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createMaxLessOrEqualFinder = void 0;
|
|
4
|
+
function createMaxLessOrEqualFinder(comp) {
|
|
5
|
+
return (list, target) => {
|
|
6
|
+
let l = 0;
|
|
7
|
+
let r = list.length - 1;
|
|
8
|
+
while (l < r) {
|
|
9
|
+
const m = Math.ceil((l + r) / 2);
|
|
10
|
+
if (comp(list[m], target) > 0) {
|
|
11
|
+
r = m - 1;
|
|
12
|
+
}
|
|
13
|
+
else {
|
|
14
|
+
l = m;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
if (comp(list[r], target) > 0)
|
|
18
|
+
return -1;
|
|
19
|
+
return r;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
exports.createMaxLessOrEqualFinder = createMaxLessOrEqualFinder;
|
|
23
|
+
//# sourceMappingURL=binarySearch.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"binarySearch.js","sourceRoot":"","sources":["../../src/utils/binarySearch.ts"],"names":[],"mappings":";;;AAAA,SAAgB,0BAA0B,CAAI,IAA4B;IACtE,OAAO,CAAC,IAAS,EAAE,MAAS,EAAE,EAAE;QAC5B,IAAI,CAAC,GAAG,CAAC,CAAC;QACV,IAAI,CAAC,GAAG,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC;QAExB,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC;YACX,MAAM,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;YAEjC,IAAI,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC;gBAC5B,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;YACd,CAAC;iBAAM,CAAC;gBACJ,CAAC,GAAG,CAAC,CAAC;YACV,CAAC;QACL,CAAC;QAED,IAAI,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,GAAG,CAAC;YAAE,OAAO,CAAC,CAAC,CAAC;QAEzC,OAAO,CAAC,CAAC;IACb,CAAC,CAAC;AACN,CAAC;AAnBD,gEAmBC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createDisjointSet = void 0;
|
|
4
|
+
function createDisjointSet(initialSize) {
|
|
5
|
+
const roots = Array.from(new Array(initialSize), (_, index) => index);
|
|
6
|
+
const sizes = roots.map(() => 1);
|
|
7
|
+
let groups = initialSize;
|
|
8
|
+
// return the id of the set which given index-th element exists.
|
|
9
|
+
// but set id may changes if further union operations are done.
|
|
10
|
+
function find(index) {
|
|
11
|
+
if (roots[index] === index)
|
|
12
|
+
return index;
|
|
13
|
+
return (roots[index] = find(roots[index]));
|
|
14
|
+
}
|
|
15
|
+
function union(ia, ib) {
|
|
16
|
+
let ra = find(ia);
|
|
17
|
+
let rb = find(ib);
|
|
18
|
+
if (ra === rb)
|
|
19
|
+
return;
|
|
20
|
+
if (sizes[ra] < sizes[rb]) {
|
|
21
|
+
[ra, rb] = [rb, ra];
|
|
22
|
+
}
|
|
23
|
+
roots[rb] = ra;
|
|
24
|
+
sizes[ra] += sizes[rb];
|
|
25
|
+
groups -= 1;
|
|
26
|
+
}
|
|
27
|
+
// return the size of the set which has index-th element.
|
|
28
|
+
// if index is not given, return the number of dijoint sets.
|
|
29
|
+
function size(index) {
|
|
30
|
+
if (index === undefined)
|
|
31
|
+
return groups;
|
|
32
|
+
return sizes[find(index)];
|
|
33
|
+
}
|
|
34
|
+
function getSets() {
|
|
35
|
+
var _a;
|
|
36
|
+
const map = {};
|
|
37
|
+
for (let i = 0; i < roots.length; ++i) {
|
|
38
|
+
const rootIndex = find(i);
|
|
39
|
+
(_a = map[rootIndex]) !== null && _a !== void 0 ? _a : (map[rootIndex] = []);
|
|
40
|
+
map[rootIndex].push(i);
|
|
41
|
+
}
|
|
42
|
+
return map;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
find,
|
|
46
|
+
union,
|
|
47
|
+
size,
|
|
48
|
+
getSets,
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
exports.createDisjointSet = createDisjointSet;
|
|
52
|
+
//# sourceMappingURL=disjointSet.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"disjointSet.js","sourceRoot":"","sources":["../../src/utils/disjointSet.ts"],"names":[],"mappings":";;;AAAA,SAAgB,iBAAiB,CAAC,WAAmB;IACjD,MAAM,KAAK,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,KAAK,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,CAAC;IACtE,MAAM,KAAK,GAAG,KAAK,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC;IACjC,IAAI,MAAM,GAAG,WAAW,CAAC;IAEzB,gEAAgE;IAChE,+DAA+D;IAC/D,SAAS,IAAI,CAAC,KAAa;QACvB,IAAI,KAAK,CAAC,KAAK,CAAC,KAAK,KAAK;YAAE,OAAO,KAAK,CAAC;QACzC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAC/C,CAAC;IAED,SAAS,KAAK,CAAC,EAAU,EAAE,EAAU;QACjC,IAAI,EAAE,GAAG,IAAI,CAAC,EAAE,CAAC,CAAC;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;
|
|
5
|
+
iterationLimit?: number;
|
|
6
|
+
}
|
|
7
|
+
export declare function flooding<T>({ seeds, spanner, serializer, iterationLimit, }: FloodingParams<T>): T[][];
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.flooding = void 0;
|
|
4
|
+
function flooding({ seeds, spanner, serializer, iterationLimit = Infinity, }) {
|
|
5
|
+
const memo = new Set();
|
|
6
|
+
let iterations = 0;
|
|
7
|
+
return seeds
|
|
8
|
+
.map((seed) => {
|
|
9
|
+
const group = [];
|
|
10
|
+
const stack = [[seed, serializer(seed)]];
|
|
11
|
+
while (stack.length && iterations++ < iterationLimit) {
|
|
12
|
+
const [current, key] = stack.pop();
|
|
13
|
+
if (memo.has(key))
|
|
14
|
+
continue;
|
|
15
|
+
memo.add(key);
|
|
16
|
+
group.push(current);
|
|
17
|
+
for (const next of spanner(current)) {
|
|
18
|
+
stack.push([next, serializer(next)]);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
return group;
|
|
22
|
+
})
|
|
23
|
+
.filter((group) => group.length);
|
|
24
|
+
}
|
|
25
|
+
exports.flooding = flooding;
|
|
26
|
+
//# sourceMappingURL=flooding.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flooding.js","sourceRoot":"","sources":["../../src/utils/flooding.ts"],"names":[],"mappings":";;;AAOA,SAAgB,QAAQ,CAAI,EACxB,KAAK,EACL,OAAO,EACP,UAAU,EACV,cAAc,GAAG,QAAQ,GACT;IAChB,MAAM,IAAI,GAAG,IAAI,GAAG,EAAmB,CAAC;IACxC,IAAI,UAAU,GAAG,CAAC,CAAC;IAEnB,OAAO,KAAK;SACP,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QACV,MAAM,KAAK,GAAQ,EAAE,CAAC;QACtB,MAAM,KAAK,GAA2B,CAAC,CAAC,IAAI,EAAE,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAEjE,OAAO,KAAK,CAAC,MAAM,IAAI,UAAU,EAAE,GAAG,cAAc,EAAE,CAAC;YACnD,MAAM,CAAC,OAAO,EAAE,GAAG,CAAC,GAAG,KAAK,CAAC,GAAG,EAAG,CAAC;YAEpC,IAAI,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC;gBAAE,SAAS;YAC5B,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;YACd,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YAEpB,KAAK,MAAM,IAAI,IAAI,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC;gBAClC,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;YACzC,CAAC;QACL,CAAC;QAED,OAAO,KAAK,CAAC;IACjB,CAAC,CAAC;SACD,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;AACzC,CAAC;AA7BD,4BA6BC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare function adjacentPairs<T>(itr: Iterable<T>, n: number, isClosed?: boolean): Generator<T[], void, unknown>;
|
|
2
|
+
export declare function argmin<T>(itr: Iterable<T>, evaluator: (value: T) => number): {
|
|
3
|
+
target: T;
|
|
4
|
+
score: number;
|
|
5
|
+
index: number;
|
|
6
|
+
};
|
|
7
|
+
export declare function subIterator<T>(array: T[], start: number, end: number): Generator<T, void, unknown>;
|
|
8
|
+
export declare function reverseIterator<T>(array: T[]): Generator<T, void, unknown>;
|
|
9
|
+
export declare function separate<T>(predicate: (value: T) => boolean, itr: Iterable<T>): T[][];
|
|
10
|
+
export declare function findLast<T>(predicate: (value: T) => boolean, isIncremental: boolean, // true일 경우, predicate가 실패하는 즉시 종료
|
|
11
|
+
itr: Iterable<T>): [T | undefined, number];
|
|
12
|
+
/**
|
|
13
|
+
* size개씩 자른 것을 생성한다. 만약 마지막에 size개가 안되면 그냥 되는대로 준다.
|
|
14
|
+
* @param size
|
|
15
|
+
* @param iterable
|
|
16
|
+
*/
|
|
17
|
+
export declare function groupPairs<T>(size: number, iterable: Iterable<T>): Generator<T[], void, unknown>;
|