dxf-json 0.0.10 → 0.0.14
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/package.json +3 -4
- package/src/index.ts +1 -1
- package/dist/consts/block.d.ts +0 -10
- package/dist/consts/block.js +0 -22
- package/dist/consts/block.js.map +0 -1
- package/dist/consts/color.d.ts +0 -5
- package/dist/consts/color.js +0 -10
- package/dist/consts/color.js.map +0 -1
- package/dist/consts/config.d.ts +0 -2
- package/dist/consts/config.js +0 -6
- package/dist/consts/config.js.map +0 -1
- package/dist/consts/dimension.d.ts +0 -61
- package/dist/consts/dimension.js +0 -74
- package/dist/consts/dimension.js.map +0 -1
- package/dist/consts/hatch.d.ts +0 -44
- package/dist/consts/hatch.js +0 -57
- package/dist/consts/hatch.js.map +0 -1
- package/dist/consts/header.d.ts +0 -9
- package/dist/consts/header.js +0 -13
- package/dist/consts/header.js.map +0 -1
- package/dist/consts/index.d.ts +0 -9
- package/dist/consts/index.js +0 -26
- package/dist/consts/index.js.map +0 -1
- package/dist/consts/lineweight.d.ts +0 -5
- package/dist/consts/lineweight.js +0 -10
- package/dist/consts/lineweight.js.map +0 -1
- package/dist/consts/measurement.d.ts +0 -4
- package/dist/consts/measurement.js +0 -9
- package/dist/consts/measurement.js.map +0 -1
- package/dist/consts/obscuredLineTypes.d.ts +0 -21
- package/dist/consts/obscuredLineTypes.js +0 -26
- package/dist/consts/obscuredLineTypes.js.map +0 -1
- package/dist/consts/scene.d.ts +0 -2
- package/dist/consts/scene.js +0 -6
- package/dist/consts/scene.js.map +0 -1
- package/dist/consts/viewport.d.ts +0 -56
- package/dist/consts/viewport.js +0 -67
- package/dist/consts/viewport.js.map +0 -1
- package/dist/index.d.ts +0 -2
- package/dist/index.js +0 -9
- package/dist/index.js.map +0 -1
- package/dist/parser/AutoCadColorIndex.d.ts +0 -8
- package/dist/parser/AutoCadColorIndex.js +0 -267
- package/dist/parser/AutoCadColorIndex.js.map +0 -1
- package/dist/parser/DxfArrayScanner.d.ts +0 -38
- package/dist/parser/DxfArrayScanner.js +0 -159
- package/dist/parser/DxfArrayScanner.js.map +0 -1
- package/dist/parser/DxfParser.d.ts +0 -11
- package/dist/parser/DxfParser.js +0 -108
- package/dist/parser/DxfParser.js.map +0 -1
- package/dist/parser/ParseHelpers.d.ts +0 -21
- package/dist/parser/ParseHelpers.js +0 -129
- package/dist/parser/ParseHelpers.js.map +0 -1
- package/dist/parser/blocks/blocks.test.d.ts +0 -1
- package/dist/parser/blocks/blocks.test.js +0 -86
- package/dist/parser/blocks/blocks.test.js.map +0 -1
- package/dist/parser/blocks/index.d.ts +0 -4
- package/dist/parser/blocks/index.js +0 -83
- package/dist/parser/blocks/index.js.map +0 -1
- package/dist/parser/blocks/types.d.ts +0 -14
- package/dist/parser/blocks/types.js +0 -3
- package/dist/parser/blocks/types.js.map +0 -1
- package/dist/parser/entities/3dface.js +0 -106
- package/dist/parser/entities/3dface.js.map +0 -1
- package/dist/parser/entities/arc/index.d.ts +0 -2
- package/dist/parser/entities/arc/index.js +0 -19
- package/dist/parser/entities/arc/index.js.map +0 -1
- package/dist/parser/entities/arc/parser.d.ts +0 -7
- package/dist/parser/entities/arc/parser.js +0 -63
- package/dist/parser/entities/arc/parser.js.map +0 -1
- package/dist/parser/entities/arc/types.d.ts +0 -12
- package/dist/parser/entities/arc/types.js +0 -3
- package/dist/parser/entities/arc/types.js.map +0 -1
- package/dist/parser/entities/attdef/consts.d.ts +0 -11
- package/dist/parser/entities/attdef/consts.js +0 -17
- package/dist/parser/entities/attdef/consts.js.map +0 -1
- package/dist/parser/entities/attdef/index.d.ts +0 -3
- package/dist/parser/entities/attdef/index.js +0 -20
- package/dist/parser/entities/attdef/index.js.map +0 -1
- package/dist/parser/entities/attdef/parser.d.ts +0 -8
- package/dist/parser/entities/attdef/parser.js +0 -108
- package/dist/parser/entities/attdef/parser.js.map +0 -1
- package/dist/parser/entities/attdef/types.d.ts +0 -17
- package/dist/parser/entities/attdef/types.js +0 -3
- package/dist/parser/entities/attdef/types.js.map +0 -1
- package/dist/parser/entities/attribute/consts.d.ts +0 -6
- package/dist/parser/entities/attribute/consts.js +0 -11
- package/dist/parser/entities/attribute/consts.js.map +0 -1
- package/dist/parser/entities/attribute/index.d.ts +0 -3
- package/dist/parser/entities/attribute/index.js +0 -20
- package/dist/parser/entities/attribute/index.js.map +0 -1
- package/dist/parser/entities/attribute/parser.d.ts +0 -8
- package/dist/parser/entities/attribute/parser.js +0 -185
- package/dist/parser/entities/attribute/parser.js.map +0 -1
- package/dist/parser/entities/attribute/types.d.ts +0 -30
- package/dist/parser/entities/attribute/types.js +0 -3
- package/dist/parser/entities/attribute/types.js.map +0 -1
- package/dist/parser/entities/circle/index.d.ts +0 -2
- package/dist/parser/entities/circle/index.js +0 -19
- package/dist/parser/entities/circle/index.js.map +0 -1
- package/dist/parser/entities/circle/parser.d.ts +0 -8
- package/dist/parser/entities/circle/parser.js +0 -50
- package/dist/parser/entities/circle/parser.js.map +0 -1
- package/dist/parser/entities/circle/types.d.ts +0 -10
- package/dist/parser/entities/circle/types.js +0 -3
- package/dist/parser/entities/circle/types.js.map +0 -1
- package/dist/parser/entities/dimension/common.d.ts +0 -6
- package/dist/parser/entities/dimension/common.js +0 -122
- package/dist/parser/entities/dimension/common.js.map +0 -1
- package/dist/parser/entities/dimension/index.d.ts +0 -6
- package/dist/parser/entities/dimension/index.js +0 -21
- package/dist/parser/entities/dimension/index.js.map +0 -1
- package/dist/parser/entities/dimension/types.d.ts +0 -48
- package/dist/parser/entities/dimension/types.js +0 -3
- package/dist/parser/entities/dimension/types.js.map +0 -1
- package/dist/parser/entities/ellipse/index.d.ts +0 -2
- package/dist/parser/entities/ellipse/index.js +0 -19
- package/dist/parser/entities/ellipse/index.js.map +0 -1
- package/dist/parser/entities/ellipse/parser.d.ts +0 -7
- package/dist/parser/entities/ellipse/parser.js +0 -59
- package/dist/parser/entities/ellipse/parser.js.map +0 -1
- package/dist/parser/entities/ellipse/types.d.ts +0 -12
- package/dist/parser/entities/ellipse/types.js +0 -3
- package/dist/parser/entities/ellipse/types.js.map +0 -1
- package/dist/parser/entities/entities.test.d.ts +0 -1
- package/dist/parser/entities/entities.test.js +0 -81
- package/dist/parser/entities/entities.test.js.map +0 -1
- package/dist/parser/entities/hatch/boundaryPathData/edge.d.ts +0 -6
- package/dist/parser/entities/hatch/boundaryPathData/edge.js +0 -178
- package/dist/parser/entities/hatch/boundaryPathData/edge.js.map +0 -1
- package/dist/parser/entities/hatch/boundaryPathData/index.d.ts +0 -5
- package/dist/parser/entities/hatch/boundaryPathData/index.js +0 -23
- package/dist/parser/entities/hatch/boundaryPathData/index.js.map +0 -1
- package/dist/parser/entities/hatch/boundaryPathData/polyline.d.ts +0 -2
- package/dist/parser/entities/hatch/boundaryPathData/polyline.js +0 -41
- package/dist/parser/entities/hatch/boundaryPathData/polyline.js.map +0 -1
- package/dist/parser/entities/hatch/boundaryPathData/shared.d.ts +0 -2
- package/dist/parser/entities/hatch/boundaryPathData/shared.js +0 -19
- package/dist/parser/entities/hatch/boundaryPathData/shared.js.map +0 -1
- package/dist/parser/entities/hatch/index.d.ts +0 -8
- package/dist/parser/entities/hatch/index.js +0 -183
- package/dist/parser/entities/hatch/index.js.map +0 -1
- package/dist/parser/entities/hatch/patternData.d.ts +0 -3
- package/dist/parser/entities/hatch/patternData.js +0 -54
- package/dist/parser/entities/hatch/patternData.js.map +0 -1
- package/dist/parser/entities/hatch/types/boundaryPath.d.ts +0 -59
- package/dist/parser/entities/hatch/types/boundaryPath.js +0 -3
- package/dist/parser/entities/hatch/types/boundaryPath.js.map +0 -1
- package/dist/parser/entities/hatch/types/definitionLine.d.ts +0 -8
- package/dist/parser/entities/hatch/types/definitionLine.js +0 -3
- package/dist/parser/entities/hatch/types/definitionLine.js.map +0 -1
- package/dist/parser/entities/hatch/types/hatch.d.ts +0 -38
- package/dist/parser/entities/hatch/types/hatch.js +0 -3
- package/dist/parser/entities/hatch/types/hatch.js.map +0 -1
- package/dist/parser/entities/hatch/types/index.d.ts +0 -3
- package/dist/parser/entities/hatch/types/index.js +0 -20
- package/dist/parser/entities/hatch/types/index.js.map +0 -1
- package/dist/parser/entities/index.d.ts +0 -8
- package/dist/parser/entities/index.js +0 -81
- package/dist/parser/entities/index.js.map +0 -1
- package/dist/parser/entities/insert/index.d.ts +0 -2
- package/dist/parser/entities/insert/index.js +0 -19
- package/dist/parser/entities/insert/index.js.map +0 -1
- package/dist/parser/entities/insert/parser.d.ts +0 -8
- package/dist/parser/entities/insert/parser.js +0 -97
- package/dist/parser/entities/insert/parser.js.map +0 -1
- package/dist/parser/entities/insert/types.d.ts +0 -18
- package/dist/parser/entities/insert/types.js +0 -3
- package/dist/parser/entities/insert/types.js.map +0 -1
- package/dist/parser/entities/leader/consts.d.ts +0 -6
- package/dist/parser/entities/leader/consts.js +0 -11
- package/dist/parser/entities/leader/consts.js.map +0 -1
- package/dist/parser/entities/leader/index.d.ts +0 -3
- package/dist/parser/entities/leader/index.js +0 -20
- package/dist/parser/entities/leader/index.js.map +0 -1
- package/dist/parser/entities/leader/parser.d.ts +0 -8
- package/dist/parser/entities/leader/parser.js +0 -110
- package/dist/parser/entities/leader/parser.js.map +0 -1
- package/dist/parser/entities/leader/types.d.ts +0 -23
- package/dist/parser/entities/leader/types.js +0 -3
- package/dist/parser/entities/leader/types.js.map +0 -1
- package/dist/parser/entities/line/index.d.ts +0 -2
- package/dist/parser/entities/line/index.js +0 -19
- package/dist/parser/entities/line/index.js.map +0 -1
- package/dist/parser/entities/line/parser.d.ts +0 -8
- package/dist/parser/entities/line/parser.js +0 -50
- package/dist/parser/entities/line/parser.js.map +0 -1
- package/dist/parser/entities/line/types.d.ts +0 -10
- package/dist/parser/entities/line/types.js +0 -3
- package/dist/parser/entities/line/types.js.map +0 -1
- package/dist/parser/entities/lwpolyline/consts.d.ts +0 -4
- package/dist/parser/entities/lwpolyline/consts.js +0 -9
- package/dist/parser/entities/lwpolyline/consts.js.map +0 -1
- package/dist/parser/entities/lwpolyline/index.d.ts +0 -3
- package/dist/parser/entities/lwpolyline/index.js +0 -20
- package/dist/parser/entities/lwpolyline/index.js.map +0 -1
- package/dist/parser/entities/lwpolyline/parser.d.ts +0 -7
- package/dist/parser/entities/lwpolyline/parser.js +0 -105
- package/dist/parser/entities/lwpolyline/parser.js.map +0 -1
- package/dist/parser/entities/lwpolyline/types.d.ts +0 -19
- package/dist/parser/entities/lwpolyline/types.js +0 -3
- package/dist/parser/entities/lwpolyline/types.js.map +0 -1
- package/dist/parser/entities/mtext/consts.d.ts +0 -5
- package/dist/parser/entities/mtext/consts.js +0 -10
- package/dist/parser/entities/mtext/consts.js.map +0 -1
- package/dist/parser/entities/mtext/index.d.ts +0 -3
- package/dist/parser/entities/mtext/index.js +0 -20
- package/dist/parser/entities/mtext/index.js.map +0 -1
- package/dist/parser/entities/mtext/parser.d.ts +0 -10
- package/dist/parser/entities/mtext/parser.js +0 -188
- package/dist/parser/entities/mtext/parser.js.map +0 -1
- package/dist/parser/entities/mtext/types.d.ts +0 -33
- package/dist/parser/entities/mtext/types.js +0 -3
- package/dist/parser/entities/mtext/types.js.map +0 -1
- package/dist/parser/entities/point/index.d.ts +0 -2
- package/dist/parser/entities/point/index.js +0 -19
- package/dist/parser/entities/point/index.js.map +0 -1
- package/dist/parser/entities/point/parser.d.ts +0 -6
- package/dist/parser/entities/point/parser.js +0 -54
- package/dist/parser/entities/point/parser.js.map +0 -1
- package/dist/parser/entities/point/types.d.ts +0 -9
- package/dist/parser/entities/point/types.js +0 -3
- package/dist/parser/entities/point/types.js.map +0 -1
- package/dist/parser/entities/polyline/consts.d.ts +0 -16
- package/dist/parser/entities/polyline/consts.js +0 -22
- package/dist/parser/entities/polyline/consts.js.map +0 -1
- package/dist/parser/entities/polyline/index.d.ts +0 -3
- package/dist/parser/entities/polyline/index.js +0 -20
- package/dist/parser/entities/polyline/index.js.map +0 -1
- package/dist/parser/entities/polyline/parser.d.ts +0 -7
- package/dist/parser/entities/polyline/parser.js +0 -118
- package/dist/parser/entities/polyline/parser.js.map +0 -1
- package/dist/parser/entities/polyline/types.d.ts +0 -19
- package/dist/parser/entities/polyline/types.js +0 -3
- package/dist/parser/entities/polyline/types.js.map +0 -1
- package/dist/parser/entities/section/index.d.ts +0 -2
- package/dist/parser/entities/section/index.js +0 -19
- package/dist/parser/entities/section/index.js.map +0 -1
- package/dist/parser/entities/section/parser.d.ts +0 -7
- package/dist/parser/entities/section/parser.js +0 -97
- package/dist/parser/entities/section/parser.js.map +0 -1
- package/dist/parser/entities/section/types.d.ts +0 -19
- package/dist/parser/entities/section/types.js +0 -3
- package/dist/parser/entities/section/types.js.map +0 -1
- package/dist/parser/entities/shared.d.ts +0 -35
- package/dist/parser/entities/shared.js +0 -136
- package/dist/parser/entities/shared.js.map +0 -1
- package/dist/parser/entities/solid/index.d.ts +0 -2
- package/dist/parser/entities/solid/index.js +0 -19
- package/dist/parser/entities/solid/index.js.map +0 -1
- package/dist/parser/entities/solid/parser.d.ts +0 -8
- package/dist/parser/entities/solid/parser.js +0 -48
- package/dist/parser/entities/solid/parser.js.map +0 -1
- package/dist/parser/entities/solid/types.d.ts +0 -9
- package/dist/parser/entities/solid/types.js +0 -3
- package/dist/parser/entities/solid/types.js.map +0 -1
- package/dist/parser/entities/spline/consts.d.ts +0 -8
- package/dist/parser/entities/spline/consts.js +0 -13
- package/dist/parser/entities/spline/consts.js.map +0 -1
- package/dist/parser/entities/spline/index.d.ts +0 -3
- package/dist/parser/entities/spline/index.js +0 -20
- package/dist/parser/entities/spline/index.js.map +0 -1
- package/dist/parser/entities/spline/parser.d.ts +0 -8
- package/dist/parser/entities/spline/parser.js +0 -113
- package/dist/parser/entities/spline/parser.js.map +0 -1
- package/dist/parser/entities/spline/types.d.ts +0 -21
- package/dist/parser/entities/spline/types.js +0 -3
- package/dist/parser/entities/spline/types.js.map +0 -1
- package/dist/parser/entities/text/consts.d.ts +0 -19
- package/dist/parser/entities/text/consts.js +0 -26
- package/dist/parser/entities/text/consts.js.map +0 -1
- package/dist/parser/entities/text/index.d.ts +0 -3
- package/dist/parser/entities/text/index.js +0 -20
- package/dist/parser/entities/text/index.js.map +0 -1
- package/dist/parser/entities/text/parser.d.ts +0 -26
- package/dist/parser/entities/text/parser.js +0 -112
- package/dist/parser/entities/text/parser.js.map +0 -1
- package/dist/parser/entities/text/types.d.ts +0 -20
- package/dist/parser/entities/text/types.js +0 -3
- package/dist/parser/entities/text/types.js.map +0 -1
- package/dist/parser/entities/vertex/consts.d.ts +0 -10
- package/dist/parser/entities/vertex/consts.js +0 -15
- package/dist/parser/entities/vertex/consts.js.map +0 -1
- package/dist/parser/entities/vertex/index.d.ts +0 -3
- package/dist/parser/entities/vertex/index.js +0 -20
- package/dist/parser/entities/vertex/index.js.map +0 -1
- package/dist/parser/entities/vertex/parser.d.ts +0 -8
- package/dist/parser/entities/vertex/parser.js +0 -86
- package/dist/parser/entities/vertex/parser.js.map +0 -1
- package/dist/parser/entities/vertex/types.d.ts +0 -16
- package/dist/parser/entities/vertex/types.js +0 -3
- package/dist/parser/entities/vertex/types.js.map +0 -1
- package/dist/parser/entities/viewport/index.d.ts +0 -5
- package/dist/parser/entities/viewport/index.js +0 -195
- package/dist/parser/entities/viewport/index.js.map +0 -1
- package/dist/parser/entities/viewport/types.d.ts +0 -51
- package/dist/parser/entities/viewport/types.js +0 -3
- package/dist/parser/entities/viewport/types.js.map +0 -1
- package/dist/parser/filterDummyBlocks.d.ts +0 -2
- package/dist/parser/filterDummyBlocks.js +0 -37
- package/dist/parser/filterDummyBlocks.js.map +0 -1
- package/dist/parser/header/index.d.ts +0 -3
- package/dist/parser/header/index.js +0 -32
- package/dist/parser/header/index.js.map +0 -1
- package/dist/parser/objects/common.d.ts +0 -8
- package/dist/parser/objects/common.js +0 -51
- package/dist/parser/objects/common.js.map +0 -1
- package/dist/parser/objects/dictionary.d.ts +0 -20
- package/dist/parser/objects/dictionary.js +0 -50
- package/dist/parser/objects/dictionary.js.map +0 -1
- package/dist/parser/objects/index.d.ts +0 -6
- package/dist/parser/objects/index.js +0 -43
- package/dist/parser/objects/index.js.map +0 -1
- package/dist/parser/objects/layout.d.ts +0 -30
- package/dist/parser/objects/layout.js +0 -110
- package/dist/parser/objects/layout.js.map +0 -1
- package/dist/parser/objects/plotSettings.d.ts +0 -64
- package/dist/parser/objects/plotSettings.js +0 -198
- package/dist/parser/objects/plotSettings.js.map +0 -1
- package/dist/parser/objects/treefy.d.ts +0 -2
- package/dist/parser/objects/treefy.js +0 -37
- package/dist/parser/objects/treefy.js.map +0 -1
- package/dist/parser/objects/types.d.ts +0 -15
- package/dist/parser/objects/types.js +0 -3
- package/dist/parser/objects/types.js.map +0 -1
- package/dist/parser/shared/index.d.ts +0 -7
- package/dist/parser/shared/index.js +0 -22
- package/dist/parser/shared/index.js.map +0 -1
- package/dist/parser/shared/parsePoint.d.ts +0 -7
- package/dist/parser/shared/parsePoint.js +0 -33
- package/dist/parser/shared/parsePoint.js.map +0 -1
- package/dist/parser/shared/parserGenerator.d.ts +0 -15
- package/dist/parser/shared/parserGenerator.js +0 -114
- package/dist/parser/shared/parserGenerator.js.map +0 -1
- package/dist/parser/shared/parserGenerator.test.d.ts +0 -1
- package/dist/parser/shared/parserGenerator.test.js +0 -153
- package/dist/parser/shared/parserGenerator.test.js.map +0 -1
- package/dist/parser/shared/xdata/index.d.ts +0 -3
- package/dist/parser/shared/xdata/index.js +0 -20
- package/dist/parser/shared/xdata/index.js.map +0 -1
- package/dist/parser/shared/xdata/interpreter.d.ts +0 -20
- package/dist/parser/shared/xdata/interpreter.js +0 -43
- package/dist/parser/shared/xdata/interpreter.js.map +0 -1
- package/dist/parser/shared/xdata/interpreter.test.d.ts +0 -1
- package/dist/parser/shared/xdata/interpreter.test.js +0 -83
- package/dist/parser/shared/xdata/interpreter.test.js.map +0 -1
- package/dist/parser/shared/xdata/parser.d.ts +0 -6
- package/dist/parser/shared/xdata/parser.js +0 -133
- package/dist/parser/shared/xdata/parser.js.map +0 -1
- package/dist/parser/shared/xdata/parser.test.d.ts +0 -1
- package/dist/parser/shared/xdata/parser.test.js +0 -64
- package/dist/parser/shared/xdata/parser.test.js.map +0 -1
- package/dist/parser/shared/xdata/types.d.ts +0 -9
- package/dist/parser/shared/xdata/types.js +0 -3
- package/dist/parser/shared/xdata/types.js.map +0 -1
- package/dist/parser/tables/blockRecord/index.d.ts +0 -2
- package/dist/parser/tables/blockRecord/index.js +0 -19
- package/dist/parser/tables/blockRecord/index.js.map +0 -1
- package/dist/parser/tables/blockRecord/parser.d.ts +0 -1
- package/dist/parser/tables/blockRecord/parser.js +0 -45
- package/dist/parser/tables/blockRecord/parser.js.map +0 -1
- package/dist/parser/tables/blockRecord/types.d.ts +0 -10
- package/dist/parser/tables/blockRecord/types.js +0 -3
- package/dist/parser/tables/blockRecord/types.js.map +0 -1
- package/dist/parser/tables/dimStyle/consts.d.ts +0 -2
- package/dist/parser/tables/dimStyle/consts.js +0 -424
- package/dist/parser/tables/dimStyle/consts.js.map +0 -1
- package/dist/parser/tables/dimStyle/index.d.ts +0 -3
- package/dist/parser/tables/dimStyle/index.js +0 -20
- package/dist/parser/tables/dimStyle/index.js.map +0 -1
- package/dist/parser/tables/dimStyle/parser.d.ts +0 -1
- package/dist/parser/tables/dimStyle/parser.js +0 -35
- package/dist/parser/tables/dimStyle/parser.js.map +0 -1
- package/dist/parser/tables/dimStyle/types.d.ts +0 -83
- package/dist/parser/tables/dimStyle/types.js +0 -3
- package/dist/parser/tables/dimStyle/types.js.map +0 -1
- package/dist/parser/tables/index.d.ts +0 -2
- package/dist/parser/tables/index.js +0 -19
- package/dist/parser/tables/index.js.map +0 -1
- package/dist/parser/tables/layer/index.d.ts +0 -2
- package/dist/parser/tables/layer/index.js +0 -19
- package/dist/parser/tables/layer/index.js.map +0 -1
- package/dist/parser/tables/layer/parser.d.ts +0 -1
- package/dist/parser/tables/layer/parser.js +0 -55
- package/dist/parser/tables/layer/parser.js.map +0 -1
- package/dist/parser/tables/layer/types.d.ts +0 -13
- package/dist/parser/tables/layer/types.js +0 -3
- package/dist/parser/tables/layer/types.js.map +0 -1
- package/dist/parser/tables/ltype/consts.d.ts +0 -6
- package/dist/parser/tables/ltype/consts.js +0 -11
- package/dist/parser/tables/ltype/consts.js.map +0 -1
- package/dist/parser/tables/ltype/index.d.ts +0 -3
- package/dist/parser/tables/ltype/index.js +0 -20
- package/dist/parser/tables/ltype/index.js.map +0 -1
- package/dist/parser/tables/ltype/parser.d.ts +0 -1
- package/dist/parser/tables/ltype/parser.js +0 -105
- package/dist/parser/tables/ltype/parser.js.map +0 -1
- package/dist/parser/tables/ltype/types.d.ts +0 -21
- package/dist/parser/tables/ltype/types.js +0 -3
- package/dist/parser/tables/ltype/types.js.map +0 -1
- package/dist/parser/tables/parser.d.ts +0 -2
- package/dist/parser/tables/parser.js +0 -90
- package/dist/parser/tables/parser.js.map +0 -1
- package/dist/parser/tables/shared.d.ts +0 -2
- package/dist/parser/tables/shared.js +0 -32
- package/dist/parser/tables/shared.js.map +0 -1
- package/dist/parser/tables/style/index.d.ts +0 -2
- package/dist/parser/tables/style/index.js +0 -19
- package/dist/parser/tables/style/index.js.map +0 -1
- package/dist/parser/tables/style/parser.d.ts +0 -1
- package/dist/parser/tables/style/parser.js +0 -68
- package/dist/parser/tables/style/parser.js.map +0 -1
- package/dist/parser/tables/style/types.d.ts +0 -14
- package/dist/parser/tables/style/types.js +0 -3
- package/dist/parser/tables/style/types.js.map +0 -1
- package/dist/parser/tables/types.d.ts +0 -14
- package/dist/parser/tables/types.js +0 -3
- package/dist/parser/tables/types.js.map +0 -1
- package/dist/parser/tables/vport/index.d.ts +0 -2
- package/dist/parser/tables/vport/index.js +0 -19
- package/dist/parser/tables/vport/index.js.map +0 -1
- package/dist/parser/tables/vport/parser.d.ts +0 -1
- package/dist/parser/tables/vport/parser.js +0 -201
- package/dist/parser/tables/vport/parser.js.map +0 -1
- package/dist/parser/tables/vport/types.d.ts +0 -43
- package/dist/parser/tables/vport/types.js +0 -3
- package/dist/parser/tables/vport/types.js.map +0 -1
- package/dist/parser/types.d.ts +0 -29
- package/dist/parser/types.js +0 -3
- package/dist/parser/types.js.map +0 -1
- package/dist/types/color.d.ts +0 -3
- package/dist/types/color.js +0 -3
- package/dist/types/color.js.map +0 -1
- package/dist/types/dxfHeader.d.ts +0 -16
- package/dist/types/dxfHeader.js +0 -3
- package/dist/types/dxfHeader.js.map +0 -1
- package/dist/types/entity.d.ts +0 -6
- package/dist/types/entity.js +0 -3
- package/dist/types/entity.js.map +0 -1
- package/dist/types/index.d.ts +0 -24
- package/dist/types/index.js +0 -20
- package/dist/types/index.js.map +0 -1
- package/dist/utils/binarySearch.d.ts +0 -1
- package/dist/utils/binarySearch.js +0 -23
- package/dist/utils/binarySearch.js.map +0 -1
- package/dist/utils/disjointSet.d.ts +0 -6
- package/dist/utils/disjointSet.js +0 -52
- package/dist/utils/disjointSet.js.map +0 -1
- package/dist/utils/flooding.d.ts +0 -8
- package/dist/utils/flooding.js +0 -26
- package/dist/utils/flooding.js.map +0 -1
- package/dist/utils/functional.d.ts +0 -17
- package/dist/utils/functional.js +0 -111
- package/dist/utils/functional.js.map +0 -1
- package/dist/utils/graph.d.ts +0 -19
- package/dist/utils/graph.js +0 -47
- package/dist/utils/graph.js.map +0 -1
- package/dist/utils/index.d.ts +0 -30
- package/dist/utils/index.js +0 -106
- package/dist/utils/index.js.map +0 -1
- package/dist/utils/queue.d.ts +0 -19
- package/dist/utils/queue.js +0 -71
- package/dist/utils/queue.js.map +0 -1
- package/dist/utils/triangle.d.ts +0 -2
- package/dist/utils/triangle.js +0 -19
- package/dist/utils/triangle.js.map +0 -1
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LayoutControlFlag = exports.LayoutSnippets = void 0;
|
|
4
|
-
const parserGenerator_1 = require("../shared/parserGenerator");
|
|
5
|
-
const plotSettings_1 = require("./plotSettings");
|
|
6
|
-
// Snippet이 code별로 스택에 들어가기 때문에 일부로 역순으로 적음
|
|
7
|
-
exports.LayoutSnippets = [
|
|
8
|
-
{
|
|
9
|
-
code: 333,
|
|
10
|
-
name: 'shadePlotId',
|
|
11
|
-
parser: parserGenerator_1.Identity,
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
code: 346,
|
|
15
|
-
name: 'orthographicUcsId',
|
|
16
|
-
parser: parserGenerator_1.Identity,
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
code: 345,
|
|
20
|
-
name: 'namedUcsId',
|
|
21
|
-
parser: parserGenerator_1.Identity,
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
code: 331,
|
|
25
|
-
name: 'viewportId',
|
|
26
|
-
parser: parserGenerator_1.Identity,
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
code: 330,
|
|
30
|
-
name: 'paperSpaceTableId',
|
|
31
|
-
parser: parserGenerator_1.Identity,
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
code: 76,
|
|
35
|
-
name: 'orthographicType',
|
|
36
|
-
parser: parserGenerator_1.Identity,
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
code: 17,
|
|
40
|
-
name: 'ucsYAxis',
|
|
41
|
-
parser: parserGenerator_1.PointParser,
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
code: 16,
|
|
45
|
-
name: 'ucsXAxis',
|
|
46
|
-
parser: parserGenerator_1.PointParser,
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
code: 13,
|
|
50
|
-
name: 'ucsOrigin',
|
|
51
|
-
parser: parserGenerator_1.PointParser,
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
code: 146,
|
|
55
|
-
name: 'elevation',
|
|
56
|
-
parser: parserGenerator_1.Identity,
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
code: 15,
|
|
60
|
-
name: 'maxExtent',
|
|
61
|
-
parser: parserGenerator_1.PointParser,
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
code: 14,
|
|
65
|
-
name: 'minExtent',
|
|
66
|
-
parser: parserGenerator_1.PointParser,
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
code: 12,
|
|
70
|
-
name: 'insertionBase',
|
|
71
|
-
parser: parserGenerator_1.PointParser,
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
code: 11,
|
|
75
|
-
name: 'maxLimit',
|
|
76
|
-
parser: parserGenerator_1.PointParser,
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
code: 10,
|
|
80
|
-
name: 'minLimit',
|
|
81
|
-
parser: parserGenerator_1.PointParser,
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
code: 71,
|
|
85
|
-
name: 'tabOrder',
|
|
86
|
-
parser: parserGenerator_1.Identity,
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
code: 70,
|
|
90
|
-
name: 'controlFlag',
|
|
91
|
-
parser: parserGenerator_1.Identity,
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
code: 1,
|
|
95
|
-
name: 'layoutName',
|
|
96
|
-
parser: parserGenerator_1.Identity,
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
code: 100,
|
|
100
|
-
name: 'subclassMarker',
|
|
101
|
-
parser: parserGenerator_1.Identity,
|
|
102
|
-
},
|
|
103
|
-
...plotSettings_1.PlotSettingsSnippets,
|
|
104
|
-
];
|
|
105
|
-
var LayoutControlFlag;
|
|
106
|
-
(function (LayoutControlFlag) {
|
|
107
|
-
LayoutControlFlag[LayoutControlFlag["PSLTSCALE"] = 1] = "PSLTSCALE";
|
|
108
|
-
LayoutControlFlag[LayoutControlFlag["LIMCHECK"] = 2] = "LIMCHECK";
|
|
109
|
-
})(LayoutControlFlag || (exports.LayoutControlFlag = LayoutControlFlag = {}));
|
|
110
|
-
//# sourceMappingURL=layout.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"layout.js","sourceRoot":"","sources":["../../../src/parser/objects/layout.ts"],"names":[],"mappings":";;;AAEA,+DAImC;AACnC,iDAA4E;AAE5E,2CAA2C;AAC9B,QAAA,cAAc,GAAuB;IAC9C;QACI,IAAI,EAAE,GAAG;QACT,IAAI,EAAE,aAAa;QACnB,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,YAAY;QAClB,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,mBAAmB;QACzB,MAAM,EAAE,0BAAQ;KACnB;IACD;QACI,IAAI,EAAE,EAAE;QACR,IAAI,EAAE,kBAAkB;QACxB,MAAM,EAAE,0BAAQ;KACnB;IACD;QACI,IAAI,EAAE,EAAE;QACR,IAAI,EAAE,UAAU;QAChB,MAAM,EAAE,6BAAW;KACtB;IACD;QACI,IAAI,EAAE,EAAE;QACR,IAAI,EAAE,UAAU;QAChB,MAAM,EAAE,6BAAW;KACtB;IACD;QACI,IAAI,EAAE,EAAE;QACR,IAAI,EAAE,WAAW;QACjB,MAAM,EAAE,6BAAW;KACtB;IACD;QACI,IAAI,EAAE,GAAG;QACT,IAAI,EAAE,WAAW;QACjB,MAAM,EAAE,0BAAQ;KACnB;IACD;QACI,IAAI,EAAE,EAAE;QACR,IAAI,EAAE,WAAW;QACjB,MAAM,EAAE,6BAAW;KACtB;IACD;QACI,IAAI,EAAE,EAAE;QACR,IAAI,EAAE,WAAW;QACjB,MAAM,EAAE,6BAAW;KACtB;IACD;QACI,IAAI,EAAE,EAAE;QACR,IAAI,EAAE,eAAe;QACrB,MAAM,EAAE,6BAAW;KACtB;IACD;QACI,IAAI,EAAE,EAAE;QACR,IAAI,EAAE,UAAU;QAChB,MAAM,EAAE,6BAAW;KACtB;IACD;QACI,IAAI,EAAE,EAAE;QACR,IAAI,EAAE,UAAU;QAChB,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,aAAa;QACnB,MAAM,EAAE,0BAAQ;KACnB;IACD;QACI,IAAI,EAAE,CAAC;QACP,IAAI,EAAE,YAAY;QAClB,MAAM,EAAE,0BAAQ;KACnB;IACD;QACI,IAAI,EAAE,GAAG;QACT,IAAI,EAAE,gBAAgB;QACtB,MAAM,EAAE,0BAAQ;KACnB;IACD,GAAG,mCAAoB;CAC1B,CAAC;AAEF,IAAY,iBAGX;AAHD,WAAY,iBAAiB;IACzB,mEAAa,CAAA;IACb,iEAAY,CAAA;AAChB,CAAC,EAHW,iBAAiB,iCAAjB,iBAAiB,QAG5B"}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { DXFParserSnippet } from '../shared/parserGenerator';
|
|
2
|
-
import type { CommonDXFObject } from './common';
|
|
3
|
-
export declare const PlotSettingsSnippets: DXFParserSnippet[];
|
|
4
|
-
export declare enum PlotPaperUnit {
|
|
5
|
-
INCHES = 0,
|
|
6
|
-
MILLIMETERS = 1,
|
|
7
|
-
PIXELS = 2
|
|
8
|
-
}
|
|
9
|
-
export declare enum PlotType {
|
|
10
|
-
LAST_SCREEN_DISPLAY = 0,
|
|
11
|
-
DRAWING_EXTENTS = 1,
|
|
12
|
-
DRAWING_LIMITS = 2,
|
|
13
|
-
VIEW_SPECIFIED = 3,// specified in plotViewName
|
|
14
|
-
WINDOW_SPECIFIED = 4,// specified in plotViewName
|
|
15
|
-
LAYOUT_INFORMATION = 5
|
|
16
|
-
}
|
|
17
|
-
export declare enum ShadePlotMode {
|
|
18
|
-
AS_DISPLAYED = 0,
|
|
19
|
-
WIREFRAME = 1,
|
|
20
|
-
HIDDEN = 2,
|
|
21
|
-
RENDERED = 3
|
|
22
|
-
}
|
|
23
|
-
export declare enum ShadePlotResolution {
|
|
24
|
-
DRAFT = 0,
|
|
25
|
-
PREVIEW = 1,
|
|
26
|
-
NORMAL = 2,
|
|
27
|
-
PRESENTATION = 3,
|
|
28
|
-
MAXIMUM = 4,
|
|
29
|
-
CUSTOM = 5
|
|
30
|
-
}
|
|
31
|
-
export interface PlotSettingDXFObject extends CommonDXFObject {
|
|
32
|
-
subclassMarker: 'AcDbPlotSettings7';
|
|
33
|
-
pageSetupName: string;
|
|
34
|
-
configName: string;
|
|
35
|
-
paperSize: string;
|
|
36
|
-
plotViewName: string;
|
|
37
|
-
marginLeft: number;
|
|
38
|
-
marginBottom: number;
|
|
39
|
-
marginRight: number;
|
|
40
|
-
marginTop: number;
|
|
41
|
-
paperWidth: number;
|
|
42
|
-
paperHeight: number;
|
|
43
|
-
plotOriginX: number;
|
|
44
|
-
plotOriginY: number;
|
|
45
|
-
windowAreaXMin: number;
|
|
46
|
-
windowAreaYMin: number;
|
|
47
|
-
windowAreaXMax: number;
|
|
48
|
-
windowAreaYMax: number;
|
|
49
|
-
printScaleNominator: number;
|
|
50
|
-
printScaleDenominator: number;
|
|
51
|
-
layoutFlag: number;
|
|
52
|
-
plotPaperUnit: PlotPaperUnit;
|
|
53
|
-
plotRotation: 0 | 1 | 2 | 3;
|
|
54
|
-
plotType: PlotType;
|
|
55
|
-
currentStyleSheet: string;
|
|
56
|
-
standardScaleType: number;
|
|
57
|
-
shadePlotMode: ShadePlotMode;
|
|
58
|
-
shadePlotResolution: ShadePlotResolution;
|
|
59
|
-
shadePlotCustomDPI?: number;
|
|
60
|
-
scaleFactor: number;
|
|
61
|
-
imageOriginX: number;
|
|
62
|
-
imageOriginY: number;
|
|
63
|
-
shadePlotId: string;
|
|
64
|
-
}
|
|
@@ -1,198 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ShadePlotResolution = exports.ShadePlotMode = exports.PlotType = exports.PlotPaperUnit = exports.PlotSettingsSnippets = void 0;
|
|
4
|
-
const parserGenerator_1 = require("../shared/parserGenerator");
|
|
5
|
-
exports.PlotSettingsSnippets = [
|
|
6
|
-
{
|
|
7
|
-
code: 333,
|
|
8
|
-
name: 'shadePlotId',
|
|
9
|
-
parser: parserGenerator_1.Identity,
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
code: 149,
|
|
13
|
-
name: 'imageOriginY',
|
|
14
|
-
parser: parserGenerator_1.Identity,
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
code: 148,
|
|
18
|
-
name: 'imageOriginX',
|
|
19
|
-
parser: parserGenerator_1.Identity,
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
code: 147,
|
|
23
|
-
name: 'scaleFactor',
|
|
24
|
-
parser: parserGenerator_1.Identity,
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
code: 78,
|
|
28
|
-
name: 'shadePlotCustomDPI',
|
|
29
|
-
parser: parserGenerator_1.Identity,
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
code: 77,
|
|
33
|
-
name: 'shadePlotResolution',
|
|
34
|
-
parser: parserGenerator_1.Identity,
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
code: 76,
|
|
38
|
-
name: 'shadePlotMode',
|
|
39
|
-
parser: parserGenerator_1.Identity,
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
code: 75,
|
|
43
|
-
name: 'standardScaleType',
|
|
44
|
-
parser: parserGenerator_1.Identity,
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
code: 7,
|
|
48
|
-
name: 'currentStyleSheet',
|
|
49
|
-
parser: parserGenerator_1.Identity,
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
code: 74,
|
|
53
|
-
name: 'plotType',
|
|
54
|
-
parser: parserGenerator_1.Identity,
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
code: 73,
|
|
58
|
-
name: 'plotRotation',
|
|
59
|
-
parser: parserGenerator_1.Identity,
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
code: 72,
|
|
63
|
-
name: 'paperUnit',
|
|
64
|
-
parser: parserGenerator_1.Identity,
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
code: 70,
|
|
68
|
-
name: 'layoutFlag',
|
|
69
|
-
parser: parserGenerator_1.Identity,
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
code: 143,
|
|
73
|
-
name: 'printScaleDenominator',
|
|
74
|
-
parser: parserGenerator_1.Identity,
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
code: 142,
|
|
78
|
-
name: 'printScaleNominator',
|
|
79
|
-
parser: parserGenerator_1.Identity,
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
code: 141,
|
|
83
|
-
name: 'windowAreaYMax',
|
|
84
|
-
parser: parserGenerator_1.Identity,
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
code: 140,
|
|
88
|
-
name: 'windowAreaYMin',
|
|
89
|
-
parser: parserGenerator_1.Identity,
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
code: 49,
|
|
93
|
-
name: 'windowAreaXMax',
|
|
94
|
-
parser: parserGenerator_1.Identity,
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
code: 48,
|
|
98
|
-
name: 'windowAreaXMin',
|
|
99
|
-
parser: parserGenerator_1.Identity,
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
code: 47,
|
|
103
|
-
name: 'plotOriginY',
|
|
104
|
-
parser: parserGenerator_1.Identity,
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
code: 46,
|
|
108
|
-
name: 'plotOriginX',
|
|
109
|
-
parser: parserGenerator_1.Identity,
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
code: 45,
|
|
113
|
-
name: 'paperHeight',
|
|
114
|
-
parser: parserGenerator_1.Identity,
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
code: 44,
|
|
118
|
-
name: 'paperWidth',
|
|
119
|
-
parser: parserGenerator_1.Identity,
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
code: 43,
|
|
123
|
-
name: 'marginTop',
|
|
124
|
-
parser: parserGenerator_1.Identity,
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
code: 42,
|
|
128
|
-
name: 'marginRight',
|
|
129
|
-
parser: parserGenerator_1.Identity,
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
code: 41,
|
|
133
|
-
name: 'marginBottom',
|
|
134
|
-
parser: parserGenerator_1.Identity,
|
|
135
|
-
},
|
|
136
|
-
{
|
|
137
|
-
code: 40,
|
|
138
|
-
name: 'marginLeft',
|
|
139
|
-
parser: parserGenerator_1.Identity,
|
|
140
|
-
},
|
|
141
|
-
{
|
|
142
|
-
code: 6,
|
|
143
|
-
name: 'plotViewName',
|
|
144
|
-
parser: parserGenerator_1.Identity,
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
code: 4,
|
|
148
|
-
name: 'paperSize',
|
|
149
|
-
parser: parserGenerator_1.Identity,
|
|
150
|
-
},
|
|
151
|
-
{
|
|
152
|
-
code: 2,
|
|
153
|
-
name: 'configName',
|
|
154
|
-
parser: parserGenerator_1.Identity,
|
|
155
|
-
},
|
|
156
|
-
{
|
|
157
|
-
code: 1,
|
|
158
|
-
name: 'pageSetupName',
|
|
159
|
-
parser: parserGenerator_1.Identity,
|
|
160
|
-
},
|
|
161
|
-
{
|
|
162
|
-
code: 100,
|
|
163
|
-
name: 'subclassMarker',
|
|
164
|
-
parser: parserGenerator_1.Identity,
|
|
165
|
-
},
|
|
166
|
-
];
|
|
167
|
-
var PlotPaperUnit;
|
|
168
|
-
(function (PlotPaperUnit) {
|
|
169
|
-
PlotPaperUnit[PlotPaperUnit["INCHES"] = 0] = "INCHES";
|
|
170
|
-
PlotPaperUnit[PlotPaperUnit["MILLIMETERS"] = 1] = "MILLIMETERS";
|
|
171
|
-
PlotPaperUnit[PlotPaperUnit["PIXELS"] = 2] = "PIXELS";
|
|
172
|
-
})(PlotPaperUnit || (exports.PlotPaperUnit = PlotPaperUnit = {}));
|
|
173
|
-
var PlotType;
|
|
174
|
-
(function (PlotType) {
|
|
175
|
-
PlotType[PlotType["LAST_SCREEN_DISPLAY"] = 0] = "LAST_SCREEN_DISPLAY";
|
|
176
|
-
PlotType[PlotType["DRAWING_EXTENTS"] = 1] = "DRAWING_EXTENTS";
|
|
177
|
-
PlotType[PlotType["DRAWING_LIMITS"] = 2] = "DRAWING_LIMITS";
|
|
178
|
-
PlotType[PlotType["VIEW_SPECIFIED"] = 3] = "VIEW_SPECIFIED";
|
|
179
|
-
PlotType[PlotType["WINDOW_SPECIFIED"] = 4] = "WINDOW_SPECIFIED";
|
|
180
|
-
PlotType[PlotType["LAYOUT_INFORMATION"] = 5] = "LAYOUT_INFORMATION";
|
|
181
|
-
})(PlotType || (exports.PlotType = PlotType = {}));
|
|
182
|
-
var ShadePlotMode;
|
|
183
|
-
(function (ShadePlotMode) {
|
|
184
|
-
ShadePlotMode[ShadePlotMode["AS_DISPLAYED"] = 0] = "AS_DISPLAYED";
|
|
185
|
-
ShadePlotMode[ShadePlotMode["WIREFRAME"] = 1] = "WIREFRAME";
|
|
186
|
-
ShadePlotMode[ShadePlotMode["HIDDEN"] = 2] = "HIDDEN";
|
|
187
|
-
ShadePlotMode[ShadePlotMode["RENDERED"] = 3] = "RENDERED";
|
|
188
|
-
})(ShadePlotMode || (exports.ShadePlotMode = ShadePlotMode = {}));
|
|
189
|
-
var ShadePlotResolution;
|
|
190
|
-
(function (ShadePlotResolution) {
|
|
191
|
-
ShadePlotResolution[ShadePlotResolution["DRAFT"] = 0] = "DRAFT";
|
|
192
|
-
ShadePlotResolution[ShadePlotResolution["PREVIEW"] = 1] = "PREVIEW";
|
|
193
|
-
ShadePlotResolution[ShadePlotResolution["NORMAL"] = 2] = "NORMAL";
|
|
194
|
-
ShadePlotResolution[ShadePlotResolution["PRESENTATION"] = 3] = "PRESENTATION";
|
|
195
|
-
ShadePlotResolution[ShadePlotResolution["MAXIMUM"] = 4] = "MAXIMUM";
|
|
196
|
-
ShadePlotResolution[ShadePlotResolution["CUSTOM"] = 5] = "CUSTOM";
|
|
197
|
-
})(ShadePlotResolution || (exports.ShadePlotResolution = ShadePlotResolution = {}));
|
|
198
|
-
//# sourceMappingURL=plotSettings.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"plotSettings.js","sourceRoot":"","sources":["../../../src/parser/objects/plotSettings.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createObjectTree = void 0;
|
|
4
|
-
function createObjectTree(objects) {
|
|
5
|
-
const objectMap = Object.fromEntries(objects.map((object) => [object.handle, object]));
|
|
6
|
-
for (const object of objects) {
|
|
7
|
-
hydrateParent(object, objectMap);
|
|
8
|
-
hydrateDictionary(object, objectMap);
|
|
9
|
-
}
|
|
10
|
-
return objects[0];
|
|
11
|
-
}
|
|
12
|
-
exports.createObjectTree = createObjectTree;
|
|
13
|
-
function hydrateParent(object, objectMap) {
|
|
14
|
-
if (isDictionary(object) && object.ownerDictionaryIdSoft === '0')
|
|
15
|
-
return;
|
|
16
|
-
if (object.ownerDictionaryIdSoft) {
|
|
17
|
-
object.ownerDictionarySoft = objectMap[object.ownerDictionaryIdSoft];
|
|
18
|
-
}
|
|
19
|
-
if (object.ownerDictionaryIdHard) {
|
|
20
|
-
object.ownerDictionaryHard = objectMap[object.ownerDictionaryIdHard];
|
|
21
|
-
}
|
|
22
|
-
if (object.ownerObjectId) {
|
|
23
|
-
object.ownerObject = objectMap[object.ownerObjectId];
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
function hydrateDictionary(object, objectMap) {
|
|
27
|
-
if (!isDictionary(object) || !object.entries)
|
|
28
|
-
return;
|
|
29
|
-
object.entries = Object.fromEntries(object.entries.map(({ name, objectId }) => [
|
|
30
|
-
name,
|
|
31
|
-
objectMap[objectId],
|
|
32
|
-
]));
|
|
33
|
-
}
|
|
34
|
-
function isDictionary(object) {
|
|
35
|
-
return object.subclassMarker === 'AcDbDictionary';
|
|
36
|
-
}
|
|
37
|
-
//# sourceMappingURL=treefy.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"treefy.js","sourceRoot":"","sources":["../../../src/parser/objects/treefy.ts"],"names":[],"mappings":";;;AAEA,SAAgB,gBAAgB,CAAC,OAAoB;IACjD,MAAM,SAAS,GAAG,MAAM,CAAC,WAAW,CAChC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,MAAM,EAAE,MAA2B,CAAC,CAAC,CACxE,CAAC;IAEF,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE,CAAC;QAC3B,aAAa,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;QACjC,iBAAiB,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;IACzC,CAAC;IAED,OAAO,OAAO,CAAC,CAAC,CAAC,CAAC;AACtB,CAAC;AAXD,4CAWC;AAED,SAAS,aAAa,CAClB,MAAyB,EACzB,SAA4C;IAE5C,IAAI,YAAY,CAAC,MAAM,CAAC,IAAI,MAAM,CAAC,qBAAqB,KAAK,GAAG;QAAE,OAAO;IAEzE,IAAI,MAAM,CAAC,qBAAqB,EAAE,CAAC;QAC/B,MAAM,CAAC,mBAAmB,GAAG,SAAS,CAAC,MAAM,CAAC,qBAAqB,CAAC,CAAC;IACzE,CAAC;IAED,IAAI,MAAM,CAAC,qBAAqB,EAAE,CAAC;QAC/B,MAAM,CAAC,mBAAmB,GAAG,SAAS,CAAC,MAAM,CAAC,qBAAqB,CAAC,CAAC;IACzE,CAAC;IAED,IAAI,MAAM,CAAC,aAAa,EAAE,CAAC;QACvB,MAAM,CAAC,WAAW,GAAG,SAAS,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;IACzD,CAAC;AACL,CAAC;AAED,SAAS,iBAAiB,CACtB,MAAyB,EACzB,SAA4C;IAE5C,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO;QAAE,OAAO;IAErD,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC,WAAW,CAC9B,MAAM,CAAC,OAAe,CAAC,GAAG,CACvB,CAAC,EAAE,IAAI,EAAE,QAAQ,EAA0B,EAAE,EAAE,CAAC;QAC5C,IAAI;QACJ,SAAS,CAAC,QAAQ,CAAC;KACtB,CACJ,CACJ,CAAC;AACN,CAAC;AAED,SAAS,YAAY,CAAC,MAAyB;IAC3C,OAAQ,MAAc,CAAC,cAAc,KAAK,gBAAgB,CAAC;AAC/D,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export interface DxfObject {
|
|
2
|
-
name: string;
|
|
3
|
-
handle: string;
|
|
4
|
-
ownerDictionaryIdSoft: string;
|
|
5
|
-
ownerDictionaryIdHard?: string;
|
|
6
|
-
ownerObjectId?: string;
|
|
7
|
-
}
|
|
8
|
-
export interface HydratedDxfObject extends DxfObject {
|
|
9
|
-
ownerDictionarySoft?: HydratedDxfObject;
|
|
10
|
-
ownerDictionaryHard?: HydratedDxfObject;
|
|
11
|
-
ownerObject?: HydratedDxfObject;
|
|
12
|
-
}
|
|
13
|
-
export interface DxfDictionary extends HydratedDxfObject {
|
|
14
|
-
entries?: Record<string, HydratedDxfObject>;
|
|
15
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/parser/objects/types.ts"],"names":[],"mappings":""}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { ScannerGroup } from '../DxfArrayScanner';
|
|
2
|
-
export declare function ensureHandle(entity: any): void;
|
|
3
|
-
/**
|
|
4
|
-
* group이 `code`와 `value`를 갖는지 확인
|
|
5
|
-
* `value`가 `null`이나 `undefined`인 경우 아무거나 다 매칭한다고 가정한다.
|
|
6
|
-
*/
|
|
7
|
-
export declare function isMatched(group: ScannerGroup, code: number, value?: any): boolean;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isMatched = exports.ensureHandle = void 0;
|
|
4
|
-
let lastHandle = 0;
|
|
5
|
-
function ensureHandle(entity) {
|
|
6
|
-
if (!entity) {
|
|
7
|
-
throw new TypeError('entity cannot be undefined or null');
|
|
8
|
-
}
|
|
9
|
-
if (!entity.handle) {
|
|
10
|
-
entity.handle = lastHandle++;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.ensureHandle = ensureHandle;
|
|
14
|
-
/**
|
|
15
|
-
* group이 `code`와 `value`를 갖는지 확인
|
|
16
|
-
* `value`가 `null`이나 `undefined`인 경우 아무거나 다 매칭한다고 가정한다.
|
|
17
|
-
*/
|
|
18
|
-
function isMatched(group, code, value) {
|
|
19
|
-
return group.code === code && (value == null || group.value === value);
|
|
20
|
-
}
|
|
21
|
-
exports.isMatched = isMatched;
|
|
22
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/parser/shared/index.ts"],"names":[],"mappings":";;;AAEA,IAAI,UAAU,GAAG,CAAC,CAAC;AAEnB,SAAgB,YAAY,CAAC,MAAW;IACpC,IAAI,CAAC,MAAM,EAAE,CAAC;QACV,MAAM,IAAI,SAAS,CAAC,oCAAoC,CAAC,CAAC;IAC9D,CAAC;IAED,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC;QACjB,MAAM,CAAC,MAAM,GAAG,UAAU,EAAE,CAAC;IACjC,CAAC;AACL,CAAC;AARD,oCAQC;AAED;;;GAGG;AACH,SAAgB,SAAS,CAAC,KAAmB,EAAE,IAAY,EAAE,KAAW;IACpE,OAAO,KAAK,CAAC,IAAI,KAAK,IAAI,IAAI,CAAC,KAAK,IAAI,IAAI,IAAI,KAAK,CAAC,KAAK,KAAK,KAAK,CAAC,CAAC;AAC3E,CAAC;AAFD,8BAEC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { Point2D, Point3D } from '../../types';
|
|
2
|
-
import type DxfArrayScanner from '../DxfArrayScanner';
|
|
3
|
-
/**
|
|
4
|
-
* Parses the 2D or 3D coordinate, vector, or point. When complete,
|
|
5
|
-
* the scanner remains on the last group of the coordinate.
|
|
6
|
-
*/
|
|
7
|
-
export declare function parsePoint(scanner: DxfArrayScanner): Point3D | Point2D;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.parsePoint = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Parses the 2D or 3D coordinate, vector, or point. When complete,
|
|
6
|
-
* the scanner remains on the last group of the coordinate.
|
|
7
|
-
*/
|
|
8
|
-
function parsePoint(scanner) {
|
|
9
|
-
const point = {};
|
|
10
|
-
// Reread group for the first coordinate
|
|
11
|
-
scanner.rewind();
|
|
12
|
-
let curr = scanner.next();
|
|
13
|
-
const firstCode = curr.code;
|
|
14
|
-
point.x = curr.value;
|
|
15
|
-
curr = scanner.next();
|
|
16
|
-
if (curr.code !== firstCode + 10)
|
|
17
|
-
throw new Error('Expected code for point value to be ' +
|
|
18
|
-
20 +
|
|
19
|
-
' but got ' +
|
|
20
|
-
curr.code +
|
|
21
|
-
'.');
|
|
22
|
-
point.y = curr.value;
|
|
23
|
-
curr = scanner.next();
|
|
24
|
-
if (curr.code !== firstCode + 20) {
|
|
25
|
-
// Only the x and y are specified. Don't read z.
|
|
26
|
-
scanner.rewind(); // Let the calling code advance off the point
|
|
27
|
-
return point;
|
|
28
|
-
}
|
|
29
|
-
point.z = curr.value;
|
|
30
|
-
return point;
|
|
31
|
-
}
|
|
32
|
-
exports.parsePoint = parsePoint;
|
|
33
|
-
//# sourceMappingURL=parsePoint.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"parsePoint.js","sourceRoot":"","sources":["../../../src/parser/shared/parsePoint.ts"],"names":[],"mappings":";;;AAGA;;;GAGG;AACH,SAAgB,UAAU,CAAC,OAAwB;IAC/C,MAAM,KAAK,GAAG,EAAa,CAAC;IAE5B,wCAAwC;IACxC,OAAO,CAAC,MAAM,EAAE,CAAC;IACjB,IAAI,IAAI,GAAG,OAAO,CAAC,IAAI,EAAE,CAAC;IAC1B,MAAM,SAAS,GAAG,IAAI,CAAC,IAAI,CAAC;IAC5B,KAAK,CAAC,CAAC,GAAG,IAAI,CAAC,KAAe,CAAC;IAE/B,IAAI,GAAG,OAAO,CAAC,IAAI,EAAE,CAAC;IACtB,IAAI,IAAI,CAAC,IAAI,KAAK,SAAS,GAAG,EAAE;QAC5B,MAAM,IAAI,KAAK,CACX,sCAAsC;YACtC,EAAE;YACF,WAAW;YACX,IAAI,CAAC,IAAI;YACT,GAAG,CACN,CAAC;IACN,KAAK,CAAC,CAAC,GAAG,IAAI,CAAC,KAAe,CAAC;IAE/B,IAAI,GAAG,OAAO,CAAC,IAAI,EAAE,CAAC;IACtB,IAAI,IAAI,CAAC,IAAI,KAAK,SAAS,GAAG,EAAE,EAAE,CAAC;QAC/B,gDAAgD;QAChD,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC,6CAA6C;QAC/D,OAAO,KAAK,CAAC;IACjB,CAAC;IACD,KAAK,CAAC,CAAC,GAAG,IAAI,CAAC,KAAe,CAAC;IAE/B,OAAO,KAAK,CAAC;AACjB,CAAC;AA7BD,gCA6BC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type DxfArrayScanner from '../DxfArrayScanner';
|
|
2
|
-
import { ScannerGroup } from '../DxfArrayScanner';
|
|
3
|
-
export declare const Abort: unique symbol;
|
|
4
|
-
export interface DXFParserSnippet {
|
|
5
|
-
code: number | number[];
|
|
6
|
-
name?: string;
|
|
7
|
-
parser?(curr: ScannerGroup, scanner: DxfArrayScanner, entity: any): any;
|
|
8
|
-
isMultiple?: boolean;
|
|
9
|
-
pushContext?: boolean;
|
|
10
|
-
}
|
|
11
|
-
export type DXFParser = (curr: ScannerGroup, scanner: DxfArrayScanner, target: any) => boolean;
|
|
12
|
-
export declare function createParser(snippets: DXFParserSnippet[], defaultObject?: any): DXFParser;
|
|
13
|
-
export declare function Identity({ value }: ScannerGroup): any;
|
|
14
|
-
export declare function PointParser(_: any, scanner: DxfArrayScanner): import("../../types").Point2D | import("../../types").Point3D;
|
|
15
|
-
export declare function ToBoolean({ value }: ScannerGroup): boolean;
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ToBoolean = exports.PointParser = exports.Identity = exports.createParser = exports.Abort = void 0;
|
|
4
|
-
const _1 = require(".");
|
|
5
|
-
const parsePoint_1 = require("./parsePoint");
|
|
6
|
-
exports.Abort = Symbol();
|
|
7
|
-
function createParser(snippets, defaultObject) {
|
|
8
|
-
return (curr, scanner, target) => {
|
|
9
|
-
const snippetMaps = createSnippetMaps(snippets);
|
|
10
|
-
let isReadOnce = false;
|
|
11
|
-
let contextIndex = snippetMaps.length - 1;
|
|
12
|
-
while (!(0, _1.isMatched)(curr, 0, 'EOF')) {
|
|
13
|
-
const snippetMap = findSnippetMap(snippetMaps, curr.code, contextIndex);
|
|
14
|
-
const snippet = snippetMap === null || snippetMap === void 0 ? void 0 : snippetMap[curr.code].at(-1);
|
|
15
|
-
if (!snippetMap || !snippet) {
|
|
16
|
-
scanner.rewind();
|
|
17
|
-
break;
|
|
18
|
-
}
|
|
19
|
-
if (!snippet.isMultiple) {
|
|
20
|
-
snippetMap[curr.code].pop();
|
|
21
|
-
}
|
|
22
|
-
const { name, parser, isMultiple } = snippet;
|
|
23
|
-
const parsedValue = parser === null || parser === void 0 ? void 0 : parser(curr, scanner, target);
|
|
24
|
-
if (parsedValue === exports.Abort) {
|
|
25
|
-
scanner.rewind();
|
|
26
|
-
break;
|
|
27
|
-
}
|
|
28
|
-
if (name) {
|
|
29
|
-
const [leaf, fieldName] = getObjectByPath(target, name);
|
|
30
|
-
if (isMultiple) {
|
|
31
|
-
// prototype으로 디폴트값 넣어준 경우 nullish coalescing으로 해결 안됨
|
|
32
|
-
// @ts-ignore
|
|
33
|
-
if (!Object.hasOwn(leaf, fieldName)) {
|
|
34
|
-
leaf[fieldName] = [];
|
|
35
|
-
}
|
|
36
|
-
leaf[fieldName].push(parsedValue);
|
|
37
|
-
}
|
|
38
|
-
else {
|
|
39
|
-
leaf[fieldName] = parsedValue;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
if (snippet.pushContext) {
|
|
43
|
-
contextIndex -= 1;
|
|
44
|
-
}
|
|
45
|
-
isReadOnce = true;
|
|
46
|
-
curr = scanner.next();
|
|
47
|
-
}
|
|
48
|
-
if (defaultObject) {
|
|
49
|
-
Object.setPrototypeOf(target, defaultObject);
|
|
50
|
-
}
|
|
51
|
-
return isReadOnce;
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
exports.createParser = createParser;
|
|
55
|
-
function createSnippetMaps(snippets) {
|
|
56
|
-
return snippets.reduce((acc, snippet) => {
|
|
57
|
-
var _a;
|
|
58
|
-
if (snippet.pushContext) {
|
|
59
|
-
acc.push({});
|
|
60
|
-
}
|
|
61
|
-
const context = acc[acc.length - 1];
|
|
62
|
-
const codes = typeof snippet.code === 'number'
|
|
63
|
-
? [snippet.code]
|
|
64
|
-
: snippet.code;
|
|
65
|
-
for (const code of codes) {
|
|
66
|
-
const bin = ((_a = context[code]) !== null && _a !== void 0 ? _a : (context[code] = []));
|
|
67
|
-
if (snippet.isMultiple && bin.length) {
|
|
68
|
-
console.warn(`Snippet ${bin.at(-1).name} for code(${code}) is shadowed by ${snippet.name}`);
|
|
69
|
-
}
|
|
70
|
-
bin.push(snippet);
|
|
71
|
-
}
|
|
72
|
-
return acc;
|
|
73
|
-
}, [{}]);
|
|
74
|
-
}
|
|
75
|
-
function findSnippetMap(snippetMaps, code, contextIndex) {
|
|
76
|
-
return snippetMaps.find((map, index) => { var _a; return index >= contextIndex && ((_a = map[code]) === null || _a === void 0 ? void 0 : _a.length); });
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* path를 .으로 나누고, 그 서브패스의 값을 설정할 수 있게 함.
|
|
80
|
-
* 값이 없으면 알아서 만듦
|
|
81
|
-
*
|
|
82
|
-
* ex) a.b -> target[a]를 반환하여 b를 대입할 수 있게 함
|
|
83
|
-
* a.b.c -> target[a][b]를 반환하여 c를 대입할 수 있게 함
|
|
84
|
-
*
|
|
85
|
-
* @param target .으로 구분된 경로
|
|
86
|
-
* @param path
|
|
87
|
-
* @return [finalTargetObject, name]
|
|
88
|
-
*/
|
|
89
|
-
function getObjectByPath(target, path) {
|
|
90
|
-
const fragments = path.split('.');
|
|
91
|
-
let currentTarget = target;
|
|
92
|
-
for (let depth = 0; depth < fragments.length - 1; ++depth) {
|
|
93
|
-
const currentName = fragments[depth];
|
|
94
|
-
// @ts-ignore
|
|
95
|
-
if (!Object.hasOwn(currentTarget, currentName)) {
|
|
96
|
-
currentTarget[currentName] = {};
|
|
97
|
-
}
|
|
98
|
-
currentTarget = currentTarget[currentName];
|
|
99
|
-
}
|
|
100
|
-
return [currentTarget, fragments.at(-1)];
|
|
101
|
-
}
|
|
102
|
-
function Identity({ value }) {
|
|
103
|
-
return value;
|
|
104
|
-
}
|
|
105
|
-
exports.Identity = Identity;
|
|
106
|
-
function PointParser(_, scanner) {
|
|
107
|
-
return (0, parsePoint_1.parsePoint)(scanner);
|
|
108
|
-
}
|
|
109
|
-
exports.PointParser = PointParser;
|
|
110
|
-
function ToBoolean({ value }) {
|
|
111
|
-
return !!value;
|
|
112
|
-
}
|
|
113
|
-
exports.ToBoolean = ToBoolean;
|
|
114
|
-
//# sourceMappingURL=parserGenerator.js.map
|