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
package/dist/utils/functional.js
DELETED
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.groupPairs = exports.findLast = exports.separate = exports.reverseIterator = exports.subIterator = exports.argmin = exports.adjacentPairs = void 0;
|
|
4
|
-
function* adjacentPairs(itr, n, isClosed) {
|
|
5
|
-
const first = new Array(n - 1);
|
|
6
|
-
const buffer = new Array(n);
|
|
7
|
-
let count = 0;
|
|
8
|
-
for (const value of itr) {
|
|
9
|
-
pull(buffer, value);
|
|
10
|
-
if (++count >= n) {
|
|
11
|
-
yield [...buffer];
|
|
12
|
-
}
|
|
13
|
-
else if (count < n) {
|
|
14
|
-
first[count - 1] = value;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
if (count >= n && isClosed) {
|
|
18
|
-
for (const value of first) {
|
|
19
|
-
pull(buffer, value);
|
|
20
|
-
yield [...buffer];
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
exports.adjacentPairs = adjacentPairs;
|
|
25
|
-
function pull(values, newValue) {
|
|
26
|
-
for (let i = 0; i < values.length - 1; ++i) {
|
|
27
|
-
values[i] = values[i + 1];
|
|
28
|
-
}
|
|
29
|
-
values[values.length - 1] = newValue;
|
|
30
|
-
}
|
|
31
|
-
function argmin(itr, evaluator) {
|
|
32
|
-
let score = Infinity;
|
|
33
|
-
let target = null;
|
|
34
|
-
let index = -1;
|
|
35
|
-
let count = 0;
|
|
36
|
-
for (const value of itr) {
|
|
37
|
-
const newScore = evaluator(value);
|
|
38
|
-
if (score > newScore) {
|
|
39
|
-
score = newScore;
|
|
40
|
-
target = value;
|
|
41
|
-
index = count;
|
|
42
|
-
}
|
|
43
|
-
++count;
|
|
44
|
-
}
|
|
45
|
-
return { target, score, index };
|
|
46
|
-
}
|
|
47
|
-
exports.argmin = argmin;
|
|
48
|
-
function* subIterator(array, start, end) {
|
|
49
|
-
for (let i = start; i <= end; ++i) {
|
|
50
|
-
yield array[i];
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
exports.subIterator = subIterator;
|
|
54
|
-
function* reverseIterator(array) {
|
|
55
|
-
for (let i = array.length - 1; i >= 0; --i) {
|
|
56
|
-
yield array[i];
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
exports.reverseIterator = reverseIterator;
|
|
60
|
-
function separate(predicate, itr) {
|
|
61
|
-
const truthy = [];
|
|
62
|
-
const falsy = [];
|
|
63
|
-
for (const value of itr) {
|
|
64
|
-
if (predicate(value)) {
|
|
65
|
-
truthy.push(value);
|
|
66
|
-
}
|
|
67
|
-
else {
|
|
68
|
-
falsy.push(value);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
return [truthy, falsy];
|
|
72
|
-
}
|
|
73
|
-
exports.separate = separate;
|
|
74
|
-
function findLast(predicate, isIncremental, // true일 경우, predicate가 실패하는 즉시 종료
|
|
75
|
-
itr) {
|
|
76
|
-
let lastSatisfyingIndex = -1;
|
|
77
|
-
let lastSatisfying = undefined;
|
|
78
|
-
let index = 0;
|
|
79
|
-
for (const value of itr) {
|
|
80
|
-
if (predicate(value)) {
|
|
81
|
-
lastSatisfyingIndex = index;
|
|
82
|
-
lastSatisfying = value;
|
|
83
|
-
}
|
|
84
|
-
else if (isIncremental) {
|
|
85
|
-
break;
|
|
86
|
-
}
|
|
87
|
-
index += 1;
|
|
88
|
-
}
|
|
89
|
-
return [lastSatisfying, lastSatisfyingIndex];
|
|
90
|
-
}
|
|
91
|
-
exports.findLast = findLast;
|
|
92
|
-
/**
|
|
93
|
-
* size개씩 자른 것을 생성한다. 만약 마지막에 size개가 안되면 그냥 되는대로 준다.
|
|
94
|
-
* @param size
|
|
95
|
-
* @param iterable
|
|
96
|
-
*/
|
|
97
|
-
function* groupPairs(size, iterable) {
|
|
98
|
-
let pairs = [];
|
|
99
|
-
for (const value of iterable) {
|
|
100
|
-
pairs.push(value);
|
|
101
|
-
if (pairs.length >= size) {
|
|
102
|
-
yield pairs;
|
|
103
|
-
pairs = [];
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
if (pairs.length) {
|
|
107
|
-
yield pairs;
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
exports.groupPairs = groupPairs;
|
|
111
|
-
//# sourceMappingURL=funct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package/dist/utils/graph.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export interface Edge<E> {
|
|
2
|
-
index: number;
|
|
3
|
-
values: E[];
|
|
4
|
-
}
|
|
5
|
-
/**
|
|
6
|
-
* 정수로 표현하는 무향 비단순 그래프
|
|
7
|
-
* 두 정점 사이에 간선이 여러 개 존재할 수 있음
|
|
8
|
-
* 인접 리스트를 사용
|
|
9
|
-
* 간선에 값을 할당할 수 있음
|
|
10
|
-
*/
|
|
11
|
-
export declare class UndirectedMultiGraph<T> {
|
|
12
|
-
vertices: Set<number>;
|
|
13
|
-
edges: Edge<T>[][];
|
|
14
|
-
addEdge(u: number, v: number, value: T): void;
|
|
15
|
-
getDegree(v: number): number;
|
|
16
|
-
getEdgeCount(u: number, v: number): number;
|
|
17
|
-
getNeighbors(u: number): Generator<Edge<T>, void, undefined>;
|
|
18
|
-
private connectDirected;
|
|
19
|
-
}
|
package/dist/utils/graph.js
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UndirectedMultiGraph = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* 정수로 표현하는 무향 비단순 그래프
|
|
6
|
-
* 두 정점 사이에 간선이 여러 개 존재할 수 있음
|
|
7
|
-
* 인접 리스트를 사용
|
|
8
|
-
* 간선에 값을 할당할 수 있음
|
|
9
|
-
*/
|
|
10
|
-
class UndirectedMultiGraph {
|
|
11
|
-
constructor() {
|
|
12
|
-
this.vertices = new Set();
|
|
13
|
-
this.edges = [];
|
|
14
|
-
}
|
|
15
|
-
addEdge(u, v, value) {
|
|
16
|
-
this.vertices.add(u);
|
|
17
|
-
this.vertices.add(v);
|
|
18
|
-
this.connectDirected(u, v, value);
|
|
19
|
-
this.connectDirected(v, u, value);
|
|
20
|
-
}
|
|
21
|
-
getDegree(v) {
|
|
22
|
-
return this.edges[v].reduce((acc, neighbor) => neighbor.values.length + acc, 0);
|
|
23
|
-
}
|
|
24
|
-
getEdgeCount(u, v) {
|
|
25
|
-
var _a, _b, _c;
|
|
26
|
-
return ((_c = (_b = (_a = this.edges[u]) === null || _a === void 0 ? void 0 : _a.find(({ index }) => index === v)) === null || _b === void 0 ? void 0 : _b.values.length) !== null && _c !== void 0 ? _c : 0);
|
|
27
|
-
}
|
|
28
|
-
*getNeighbors(u) {
|
|
29
|
-
var _a;
|
|
30
|
-
if ((_a = this.edges[u]) === null || _a === void 0 ? void 0 : _a.length) {
|
|
31
|
-
yield* this.edges[u][Symbol.iterator]();
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
connectDirected(u, v, value) {
|
|
35
|
-
var _a;
|
|
36
|
-
var _b;
|
|
37
|
-
(_a = (_b = this.edges)[u]) !== null && _a !== void 0 ? _a : (_b[u] = []);
|
|
38
|
-
let neighbor = this.edges[u].find(({ index }) => index === v);
|
|
39
|
-
if (!neighbor) {
|
|
40
|
-
neighbor = { index: v, values: [] };
|
|
41
|
-
this.edges[u].push(neighbor);
|
|
42
|
-
}
|
|
43
|
-
neighbor.values.push(value);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
exports.UndirectedMultiGraph = UndirectedMultiGraph;
|
|
47
|
-
//# sourceMappingURL=graph.js.map
|
package/dist/utils/graph.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"graph.js","sourceRoot":"","sources":["../../src/utils/graph.ts"],"names":[],"mappings":";;;AAMA;;;;;GAKG;AACH,MAAa,oBAAoB;IAAjC;QACI,aAAQ,GAAG,IAAI,GAAG,EAAU,CAAC;QAC7B,UAAK,GAAG,EAAiB,CAAC;IAsC9B,CAAC;IApCG,OAAO,CAAC,CAAS,EAAE,CAAS,EAAE,KAAQ;QAClC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;QACrB,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;QAC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,EAAE,EAAE,CAAC;YACpC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACjC,CAAC;QACD,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAChC,CAAC;CACJ;AAxCD,oDAwCC"}
|
package/dist/utils/index.d.ts
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
export * from './binarySearch';
|
|
2
|
-
export * from './disjointSet';
|
|
3
|
-
export * from './graph';
|
|
4
|
-
export * from './functional';
|
|
5
|
-
export * from './flooding';
|
|
6
|
-
export * from './triangle';
|
|
7
|
-
export * from './queue';
|
|
8
|
-
import { Vector2, Vector3 } from 'three';
|
|
9
|
-
import type { Bound, Point2D, Point3D } from '../types';
|
|
10
|
-
export declare function pointToVector2(point: Point3D | Point2D): Vector2;
|
|
11
|
-
export declare function pointToVector3(point: Point3D | Point2D): Vector3;
|
|
12
|
-
export declare function swapVector(v1: Vector2, v2: Vector2): void;
|
|
13
|
-
export declare function classify<T>(iterable: Iterable<T>, keySelector: (value: T) => string | undefined): Record<string, T[]>;
|
|
14
|
-
export declare function updateBounds(v: Point2D, bounds?: Bound): Bound;
|
|
15
|
-
export declare function getBoundBox(vertices: Iterable<Point2D>): {
|
|
16
|
-
minX: number;
|
|
17
|
-
maxX: number;
|
|
18
|
-
minY: number;
|
|
19
|
-
maxY: number;
|
|
20
|
-
};
|
|
21
|
-
/**
|
|
22
|
-
* 정수 생성기
|
|
23
|
-
*
|
|
24
|
-
* @param start Inclusive
|
|
25
|
-
* @param end Exclusive
|
|
26
|
-
* @param increment Default = 1
|
|
27
|
-
*/
|
|
28
|
-
export declare function generateIntegers(start: number, end?: number, increment?: number): Generator<number, void, unknown>;
|
|
29
|
-
export declare function swap<T>(list: T[], i1: number, i2: number): void;
|
|
30
|
-
export declare function pushIfNotEqual(v: Vector2, vertices: Vector2[]): void;
|
package/dist/utils/index.js
DELETED
|
@@ -1,106 +0,0 @@
|
|
|
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
|
-
exports.pushIfNotEqual = exports.swap = exports.generateIntegers = exports.getBoundBox = exports.updateBounds = exports.classify = exports.swapVector = exports.pointToVector3 = exports.pointToVector2 = void 0;
|
|
18
|
-
__exportStar(require("./binarySearch"), exports);
|
|
19
|
-
__exportStar(require("./disjointSet"), exports);
|
|
20
|
-
__exportStar(require("./graph"), exports);
|
|
21
|
-
__exportStar(require("./functional"), exports);
|
|
22
|
-
__exportStar(require("./flooding"), exports);
|
|
23
|
-
__exportStar(require("./triangle"), exports);
|
|
24
|
-
__exportStar(require("./queue"), exports);
|
|
25
|
-
const core_1 = require("@fxts/core");
|
|
26
|
-
const three_1 = require("three");
|
|
27
|
-
function pointToVector2(point) {
|
|
28
|
-
return new three_1.Vector2(point.x, point.y);
|
|
29
|
-
}
|
|
30
|
-
exports.pointToVector2 = pointToVector2;
|
|
31
|
-
function pointToVector3(point) {
|
|
32
|
-
var _a;
|
|
33
|
-
return new three_1.Vector3(point.x, point.y, (_a = point.z) !== null && _a !== void 0 ? _a : 0);
|
|
34
|
-
}
|
|
35
|
-
exports.pointToVector3 = pointToVector3;
|
|
36
|
-
function swapVector(v1, v2) {
|
|
37
|
-
let temp = v1.x;
|
|
38
|
-
v1.x = v2.x;
|
|
39
|
-
v2.x = temp;
|
|
40
|
-
temp = v1.y;
|
|
41
|
-
v1.y = v2.y;
|
|
42
|
-
v2.y = temp;
|
|
43
|
-
}
|
|
44
|
-
exports.swapVector = swapVector;
|
|
45
|
-
function classify(iterable, keySelector) {
|
|
46
|
-
var _a;
|
|
47
|
-
const result = {};
|
|
48
|
-
for (const value of iterable) {
|
|
49
|
-
const key = keySelector(value);
|
|
50
|
-
if (key != null) {
|
|
51
|
-
(_a = result[key]) !== null && _a !== void 0 ? _a : (result[key] = []);
|
|
52
|
-
result[key].push(value);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
return result;
|
|
56
|
-
}
|
|
57
|
-
exports.classify = classify;
|
|
58
|
-
function updateBounds(v, bounds) {
|
|
59
|
-
bounds !== null && bounds !== void 0 ? bounds : (bounds = { minX: v.x, maxX: v.x, minY: v.y, maxY: v.y });
|
|
60
|
-
bounds.minX = Math.min(bounds.minX, v.x);
|
|
61
|
-
bounds.maxX = Math.max(bounds.maxX, v.x);
|
|
62
|
-
bounds.minY = Math.min(bounds.minY, v.y);
|
|
63
|
-
bounds.maxY = Math.max(bounds.maxY, v.y);
|
|
64
|
-
return bounds;
|
|
65
|
-
}
|
|
66
|
-
exports.updateBounds = updateBounds;
|
|
67
|
-
function getBoundBox(vertices) {
|
|
68
|
-
return (0, core_1.reduce)((bound, v) => updateBounds(v, bound), {
|
|
69
|
-
minX: Infinity,
|
|
70
|
-
maxX: -Infinity,
|
|
71
|
-
minY: Infinity,
|
|
72
|
-
maxY: -Infinity,
|
|
73
|
-
}, vertices);
|
|
74
|
-
}
|
|
75
|
-
exports.getBoundBox = getBoundBox;
|
|
76
|
-
/**
|
|
77
|
-
* 정수 생성기
|
|
78
|
-
*
|
|
79
|
-
* @param start Inclusive
|
|
80
|
-
* @param end Exclusive
|
|
81
|
-
* @param increment Default = 1
|
|
82
|
-
*/
|
|
83
|
-
function* generateIntegers(start, end = Infinity, increment = 1) {
|
|
84
|
-
for (let n = start; n !== end; n += increment) {
|
|
85
|
-
yield n;
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
exports.generateIntegers = generateIntegers;
|
|
89
|
-
function swap(list, i1, i2) {
|
|
90
|
-
const temp = list[i1];
|
|
91
|
-
list[i1] = list[i2];
|
|
92
|
-
list[i2] = temp;
|
|
93
|
-
}
|
|
94
|
-
exports.swap = swap;
|
|
95
|
-
function pushIfNotEqual(v, vertices) {
|
|
96
|
-
if (!vertices.length) {
|
|
97
|
-
vertices.push(v);
|
|
98
|
-
return;
|
|
99
|
-
}
|
|
100
|
-
const u = vertices.at(-1);
|
|
101
|
-
if (v.x !== u.x || v.y !== u.y) {
|
|
102
|
-
vertices.push(v);
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
exports.pushIfNotEqual = pushIfNotEqual;
|
|
106
|
-
//# sourceMappingURL=index.js.map
|
package/dist/utils/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,gDAA8B;AAC9B,0CAAwB;AACxB,+CAA6B;AAC7B,6CAA2B;AAC3B,6CAA2B;AAC3B,0CAAwB;AAExB,qCAAoC;AACpC,iCAAyC;AAGzC,SAAgB,cAAc,CAAC,KAAwB;IACnD,OAAO,IAAI,eAAO,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC;AACzC,CAAC;AAFD,wCAEC;AAED,SAAgB,cAAc,CAAC,KAAwB;;IACnD,OAAO,IAAI,eAAO,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,EAAE,MAAC,KAAiB,CAAC,CAAC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AC,MAAM,EAAE,CAAC;QACnB,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACjB,OAAO;IACX,CAAC;IAED,MAAM,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC,CAAE,CAAC;IAE3B,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC;QAC7B,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACrB,CAAC;AACL,CAAC;AAXD,wCAWC"}
|
package/dist/utils/queue.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export declare class Queue<T> implements Iterable<T> {
|
|
2
|
-
readonly growthRate: number;
|
|
3
|
-
private data;
|
|
4
|
-
private head;
|
|
5
|
-
private tail;
|
|
6
|
-
private _size;
|
|
7
|
-
constructor(growthRate?: number);
|
|
8
|
-
private grow;
|
|
9
|
-
push(el: T): T;
|
|
10
|
-
pop(): T | undefined;
|
|
11
|
-
front(): T | undefined;
|
|
12
|
-
size(): number;
|
|
13
|
-
[Symbol.iterator](): IterableIterator<T>;
|
|
14
|
-
isNotEmpty(): this is NonEmptyQueue<T>;
|
|
15
|
-
}
|
|
16
|
-
interface NonEmptyQueue<T> extends Queue<T> {
|
|
17
|
-
pop(): T;
|
|
18
|
-
}
|
|
19
|
-
export {};
|
package/dist/utils/queue.js
DELETED
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Queue = void 0;
|
|
4
|
-
class Queue {
|
|
5
|
-
constructor(growthRate = 2) {
|
|
6
|
-
this.growthRate = growthRate;
|
|
7
|
-
this.data = new Array(4);
|
|
8
|
-
this.head = 0;
|
|
9
|
-
this.tail = 0;
|
|
10
|
-
this._size = 0;
|
|
11
|
-
}
|
|
12
|
-
grow() {
|
|
13
|
-
const length = this.data.length;
|
|
14
|
-
this.data = this.data
|
|
15
|
-
.slice(this.head, length)
|
|
16
|
-
.concat(this.data.slice(0, this.head))
|
|
17
|
-
.concat(new Array(Math.max(1, Math.floor(length * this.growthRate))));
|
|
18
|
-
this.head = 0;
|
|
19
|
-
this.tail = length;
|
|
20
|
-
}
|
|
21
|
-
push(el) {
|
|
22
|
-
this.data[this.tail] = el;
|
|
23
|
-
this.tail = (this.tail + 1) % this.data.length;
|
|
24
|
-
if (this.tail === this.head) {
|
|
25
|
-
this.grow();
|
|
26
|
-
}
|
|
27
|
-
this._size += 1;
|
|
28
|
-
return el;
|
|
29
|
-
}
|
|
30
|
-
pop() {
|
|
31
|
-
if (this._size <= 0)
|
|
32
|
-
return undefined;
|
|
33
|
-
const result = this.data[this.head];
|
|
34
|
-
this.head = (this.head + 1) % this.data.length;
|
|
35
|
-
this._size -= 1;
|
|
36
|
-
return result;
|
|
37
|
-
}
|
|
38
|
-
front() {
|
|
39
|
-
if (this._size <= 0)
|
|
40
|
-
return undefined;
|
|
41
|
-
return this.data[this.head];
|
|
42
|
-
}
|
|
43
|
-
size() {
|
|
44
|
-
return this._size;
|
|
45
|
-
}
|
|
46
|
-
[Symbol.iterator]() {
|
|
47
|
-
const data = [...this.data];
|
|
48
|
-
const tail = this.tail;
|
|
49
|
-
let currentIndex = this.head;
|
|
50
|
-
return {
|
|
51
|
-
next() {
|
|
52
|
-
if (currentIndex === tail)
|
|
53
|
-
return { value: undefined, done: true };
|
|
54
|
-
const oldIndex = currentIndex;
|
|
55
|
-
currentIndex = (currentIndex + 1) % data.length;
|
|
56
|
-
return {
|
|
57
|
-
value: data[oldIndex],
|
|
58
|
-
done: false,
|
|
59
|
-
};
|
|
60
|
-
},
|
|
61
|
-
[Symbol.iterator]() {
|
|
62
|
-
return this;
|
|
63
|
-
},
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
isNotEmpty() {
|
|
67
|
-
return this._size > 0;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
exports.Queue = Queue;
|
|
71
|
-
//# sourceMappingURL=queue.js.map
|
package/dist/utils/queue.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"queue.js","sourceRoot":"","sources":["../../src/utils/queue.ts"],"names":[],"mappings":";;;AAAA,MAAa,KAAK;IAMd,YAA4B,aAAqB,CAAC;QAAtB,eAAU,GAAV,UAAU,CAAY;QAL1C,SAAI,GAAQ,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC;QACzB,SAAI,GAAW,CAAC,CAAC;QACjB,SAAI,GAAW,CAAC,CAAC;QACjB,UAAK,GAAW,CAAC,CAAC;IAE2B,CAAC;IAE9C,IAAI;QACR,MAAM,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC;QAChC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI;aAChB,KAAK,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC;aACxB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;aACrC,MAAM,CACH,IAAI,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAC/D,CAAC;QACN,IAAI,CAAC,IAAI,GAAG,CAAC,CAAC;QACd,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC;IACvB,CAAC;IAEM,IAAI,CAAC,EAAK;QACb,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC;QAC1B,IAAI,CAAC,IAAI,GAAG,CAAC,IAAI,CAAC,IAAI,GAAG,CAAC,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC;QAC/C,IAAI,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,IAAI,EAAE,CAAC;YAC1B,IAA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ACD,CAAC,MAAM,CAAC,QAAQ,CAAC;gBACb,OAAO,IAAI,CAAC;YAChB,CAAC;SACJ,CAAC;IACN,CAAC;IAEM,UAAU;QACb,OAAO,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC;IAC1B,CAAC;CACJ;AAxED,sBAwEC"}
|
package/dist/utils/triangle.d.ts
DELETED
package/dist/utils/triangle.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createTriangle = void 0;
|
|
4
|
-
const three_1 = require("three");
|
|
5
|
-
const ZeroVector = new three_1.Vector2();
|
|
6
|
-
// 끝점을 position을 가리키도록 설정
|
|
7
|
-
function createTriangle(position, angle, width, height) {
|
|
8
|
-
return [
|
|
9
|
-
position.clone(),
|
|
10
|
-
position
|
|
11
|
-
.clone()
|
|
12
|
-
.add(new three_1.Vector2(-width, height / 2).rotateAround(ZeroVector, angle)),
|
|
13
|
-
position
|
|
14
|
-
.clone()
|
|
15
|
-
.add(new three_1.Vector2(-width, -height / 2).rotateAround(ZeroVector, angle)),
|
|
16
|
-
];
|
|
17
|
-
}
|
|
18
|
-
exports.createTriangle = createTriangle;
|
|
19
|
-
//# sourceMappingURL=triangle.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"triangle.js","sourceRoot":"","sources":["../../src/utils/triangle.ts"],"names":[],"mappings":";;;AAAA,iCAAgC;AAEhC,MAAM,UAAU,GAAG,IAAI,eAAO,EAAE,CAAC;AAEjC,yBAAyB;AACzB,SAAgB,cAAc,CAC1B,QAAiB,EACjB,KAAa,EACb,KAAa,EACb,MAAc;IAEd,OAAO;QACH,QAAQ,CAAC,KAAK,EAAE;QAChB,QAAQ;aACH,KAAK,EAAE;aACP,GAAG,CACA,IAAI,eAAO,CAAC,CAAC,KAAK,EAAE,MAAM,GAAG,CAAC,CAAC,CAAC,YAAY,CAAC,UAAU,EAAE,KAAK,CAAC,CAClE;QACL,QAAQ;aACH,KAAK,EAAE;aACP,GAAG,CACA,IAAI,eAAO,CAAC,CAAC,KAAK,EAAE,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,YAAY,CACzC,UAAU,EACV,KAAK,CACR,CACJ;KACR,CAAC;AACN,CAAC;AAtBD,wCAsBC"}
|