dxf-json 0.0.20 → 0.0.22
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 +5 -2
- package/.github/FUNDING.yml +0 -1
- package/.github/ISSUE_TEMPLATE/bug_report.md +0 -38
- package/.github/ISSUE_TEMPLATE/custom.md +0 -10
- package/.github/ISSUE_TEMPLATE/feature_request.md +0 -20
- package/.github/pull_request_template.md +0 -23
- package/.github/workflows/npm-publish.yml +0 -55
- package/.swcrc +0 -8
- package/jest.config.js +0 -20
- package/src/consts/block.ts +0 -22
- package/src/consts/color.ts +0 -6
- package/src/consts/config.ts +0 -2
- package/src/consts/dimension.ts +0 -69
- package/src/consts/hatch.ts +0 -52
- package/src/consts/header.ts +0 -10
- package/src/consts/index.ts +0 -9
- package/src/consts/lineweight.ts +0 -5
- package/src/consts/measurement.ts +0 -4
- package/src/consts/obscuredLineTypes.ts +0 -21
- package/src/consts/scene.ts +0 -2
- package/src/consts/viewport.ts +0 -62
- package/src/index.ts +0 -3
- package/src/parser/AutoCadColorIndex.ts +0 -265
- package/src/parser/DxfArrayScanner.ts +0 -161
- package/src/parser/DxfParser.ts +0 -109
- package/src/parser/ParseHelpers.ts +0 -124
- package/src/parser/blocks/blocks.test.ts +0 -97
- package/src/parser/blocks/index.ts +0 -88
- package/src/parser/blocks/types.ts +0 -15
- package/src/parser/entities/arc/index.ts +0 -2
- package/src/parser/entities/arc/parser.ts +0 -67
- package/src/parser/entities/arc/types.ts +0 -13
- package/src/parser/entities/attdef/consts.ts +0 -12
- package/src/parser/entities/attdef/index.ts +0 -3
- package/src/parser/entities/attdef/parser.ts +0 -119
- package/src/parser/entities/attdef/types.ts +0 -19
- package/src/parser/entities/attribute/consts.ts +0 -6
- package/src/parser/entities/attribute/index.ts +0 -3
- package/src/parser/entities/attribute/parser.ts +0 -198
- package/src/parser/entities/attribute/types.ts +0 -31
- package/src/parser/entities/circle/index.ts +0 -2
- package/src/parser/entities/circle/parser.ts +0 -58
- package/src/parser/entities/circle/types.ts +0 -11
- package/src/parser/entities/dimension/common.ts +0 -98
- package/src/parser/entities/dimension/index.ts +0 -24
- package/src/parser/entities/dimension/types.ts +0 -65
- package/src/parser/entities/ellipse/index.ts +0 -2
- package/src/parser/entities/ellipse/parser.ts +0 -66
- package/src/parser/entities/ellipse/types.ts +0 -13
- package/src/parser/entities/entities.test.ts +0 -86
- package/src/parser/entities/hatch/boundaryPathData/edge.ts +0 -190
- package/src/parser/entities/hatch/boundaryPathData/index.ts +0 -27
- package/src/parser/entities/hatch/boundaryPathData/polyline.ts +0 -43
- package/src/parser/entities/hatch/boundaryPathData/shared.ts +0 -16
- package/src/parser/entities/hatch/index.ts +0 -189
- package/src/parser/entities/hatch/patternData.ts +0 -57
- package/src/parser/entities/hatch/types/boundaryPath.ts +0 -72
- package/src/parser/entities/hatch/types/definitionLine.ts +0 -14
- package/src/parser/entities/hatch/types/hatch.ts +0 -47
- package/src/parser/entities/hatch/types/index.ts +0 -3
- package/src/parser/entities/index.ts +0 -87
- package/src/parser/entities/insert/index.ts +0 -2
- package/src/parser/entities/insert/parser.ts +0 -106
- package/src/parser/entities/insert/types.ts +0 -19
- package/src/parser/entities/leader/consts.ts +0 -6
- package/src/parser/entities/leader/index.ts +0 -3
- package/src/parser/entities/leader/parser.ts +0 -119
- package/src/parser/entities/leader/types.ts +0 -24
- package/src/parser/entities/line/index.ts +0 -2
- package/src/parser/entities/line/parser.ts +0 -55
- package/src/parser/entities/line/types.ts +0 -11
- package/src/parser/entities/lwpolyline/consts.ts +0 -4
- package/src/parser/entities/lwpolyline/index.ts +0 -3
- package/src/parser/entities/lwpolyline/parser.ts +0 -122
- package/src/parser/entities/lwpolyline/types.ts +0 -21
- package/src/parser/entities/mtext/consts.ts +0 -5
- package/src/parser/entities/mtext/index.ts +0 -3
- package/src/parser/entities/mtext/parser.ts +0 -195
- package/src/parser/entities/mtext/types.ts +0 -34
- package/src/parser/entities/point/index.ts +0 -2
- package/src/parser/entities/point/parser.ts +0 -60
- package/src/parser/entities/point/types.ts +0 -10
- package/src/parser/entities/polyline/consts.ts +0 -17
- package/src/parser/entities/polyline/index.ts +0 -3
- package/src/parser/entities/polyline/parser.ts +0 -126
- package/src/parser/entities/polyline/types.ts +0 -20
- package/src/parser/entities/section/index.ts +0 -2
- package/src/parser/entities/section/parser.ts +0 -104
- package/src/parser/entities/section/types.ts +0 -20
- package/src/parser/entities/shared.ts +0 -166
- package/src/parser/entities/solid/index.ts +0 -2
- package/src/parser/entities/solid/parser.ts +0 -56
- package/src/parser/entities/solid/types.ts +0 -10
- package/src/parser/entities/spline/consts.ts +0 -8
- package/src/parser/entities/spline/index.ts +0 -3
- package/src/parser/entities/spline/parser.ts +0 -121
- package/src/parser/entities/spline/types.ts +0 -22
- package/src/parser/entities/text/consts.ts +0 -21
- package/src/parser/entities/text/index.ts +0 -3
- package/src/parser/entities/text/parser.ts +0 -117
- package/src/parser/entities/text/types.ts +0 -21
- package/src/parser/entities/vertex/consts.ts +0 -10
- package/src/parser/entities/vertex/index.ts +0 -3
- package/src/parser/entities/vertex/parser.ts +0 -90
- package/src/parser/entities/vertex/types.ts +0 -17
- package/src/parser/entities/viewport/index.ts +0 -178
- package/src/parser/entities/viewport/types.ts +0 -58
- package/src/parser/filterDummyBlocks.ts +0 -49
- package/src/parser/header/index.ts +0 -30
- package/src/parser/objects/common.ts +0 -55
- package/src/parser/objects/dictionary.ts +0 -61
- package/src/parser/objects/index.ts +0 -45
- package/src/parser/objects/layout.ts +0 -136
- package/src/parser/objects/plotSettings.ts +0 -231
- package/src/parser/objects/treefy.ts +0 -53
- package/src/parser/objects/types.ts +0 -17
- package/src/parser/shared/index.ts +0 -21
- package/src/parser/shared/parsePoint.ts +0 -37
- package/src/parser/shared/parserGenerator.test.ts +0 -164
- package/src/parser/shared/parserGenerator.ts +0 -180
- package/src/parser/shared/xdata/index.ts +0 -3
- package/src/parser/shared/xdata/interpreter.test.ts +0 -85
- package/src/parser/shared/xdata/interpreter.ts +0 -65
- package/src/parser/shared/xdata/parser.test.ts +0 -66
- package/src/parser/shared/xdata/parser.ts +0 -140
- package/src/parser/shared/xdata/types.ts +0 -22
- package/src/parser/tables/blockRecord/index.ts +0 -2
- package/src/parser/tables/blockRecord/parser.ts +0 -49
- package/src/parser/tables/blockRecord/types.ts +0 -11
- package/src/parser/tables/dimStyle/consts.ts +0 -428
- package/src/parser/tables/dimStyle/index.ts +0 -3
- package/src/parser/tables/dimStyle/parser.ts +0 -37
- package/src/parser/tables/dimStyle/types.ts +0 -164
- package/src/parser/tables/index.ts +0 -2
- package/src/parser/tables/layer/index.ts +0 -2
- package/src/parser/tables/layer/parser.ts +0 -58
- package/src/parser/tables/layer/types.ts +0 -14
- package/src/parser/tables/ltype/consts.ts +0 -6
- package/src/parser/tables/ltype/index.ts +0 -3
- package/src/parser/tables/ltype/parser.ts +0 -110
- package/src/parser/tables/ltype/types.ts +0 -23
- package/src/parser/tables/parser.ts +0 -100
- package/src/parser/tables/shared.ts +0 -32
- package/src/parser/tables/style/index.ts +0 -2
- package/src/parser/tables/style/parser.ts +0 -70
- package/src/parser/tables/style/types.ts +0 -15
- package/src/parser/tables/types.ts +0 -15
- package/src/parser/tables/vport/index.ts +0 -2
- package/src/parser/tables/vport/parser.ts +0 -205
- package/src/parser/tables/vport/types.ts +0 -48
- package/src/parser/types.ts +0 -30
- package/src/types/color.ts +0 -5
- package/src/types/dxfHeader.ts +0 -21
- package/src/types/entity.ts +0 -7
- package/src/types/index.ts +0 -30
- package/src/utils/binarySearch.ts +0 -20
- package/src/utils/disjointSet.ts +0 -52
- package/src/utils/flooding.ts +0 -37
- package/src/utils/functional.ts +0 -124
- package/src/utils/graph.ts +0 -53
- package/src/utils/index.ts +0 -102
- package/src/utils/queue.ts +0 -77
- package/src/utils/triangle.ts +0 -28
- package/tsconfig.json +0 -37
- package/webpack.config.js +0 -53
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dxf-json",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.22",
|
|
4
4
|
"description": "perfect dxf parser",
|
|
5
5
|
"main": "./dist/bundle.js",
|
|
6
6
|
"type": "module",
|
|
@@ -54,5 +54,8 @@
|
|
|
54
54
|
"jest": "^29.7.0",
|
|
55
55
|
"ts-jest": "^29.1.1",
|
|
56
56
|
"typescript": "^5.3.3"
|
|
57
|
-
}
|
|
57
|
+
},
|
|
58
|
+
"files": [
|
|
59
|
+
"dist"
|
|
60
|
+
]
|
|
58
61
|
}
|
package/.github/FUNDING.yml
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
github: [dotoritos-kim]
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: Bug report
|
|
3
|
-
about: Create a report to help us improve
|
|
4
|
-
title: ''
|
|
5
|
-
labels: ''
|
|
6
|
-
assignees: ''
|
|
7
|
-
|
|
8
|
-
---
|
|
9
|
-
|
|
10
|
-
**Describe the bug**
|
|
11
|
-
A clear and concise description of what the bug is.
|
|
12
|
-
|
|
13
|
-
**To Reproduce**
|
|
14
|
-
Steps to reproduce the behavior:
|
|
15
|
-
1. Go to '...'
|
|
16
|
-
2. Click on '....'
|
|
17
|
-
3. Scroll down to '....'
|
|
18
|
-
4. See error
|
|
19
|
-
|
|
20
|
-
**Expected behavior**
|
|
21
|
-
A clear and concise description of what you expected to happen.
|
|
22
|
-
|
|
23
|
-
**Screenshots**
|
|
24
|
-
If applicable, add screenshots to help explain your problem.
|
|
25
|
-
|
|
26
|
-
**Desktop (please complete the following information):**
|
|
27
|
-
- OS: [e.g. iOS]
|
|
28
|
-
- Browser [e.g. chrome, safari]
|
|
29
|
-
- Version [e.g. 22]
|
|
30
|
-
|
|
31
|
-
**Smartphone (please complete the following information):**
|
|
32
|
-
- Device: [e.g. iPhone6]
|
|
33
|
-
- OS: [e.g. iOS8.1]
|
|
34
|
-
- Browser [e.g. stock browser, safari]
|
|
35
|
-
- Version [e.g. 22]
|
|
36
|
-
|
|
37
|
-
**Additional context**
|
|
38
|
-
Add any other context about the problem here.
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: Feature request
|
|
3
|
-
about: Suggest an idea for this project
|
|
4
|
-
title: ''
|
|
5
|
-
labels: ''
|
|
6
|
-
assignees: ''
|
|
7
|
-
|
|
8
|
-
---
|
|
9
|
-
|
|
10
|
-
**Is your feature request related to a problem? Please describe.**
|
|
11
|
-
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
|
12
|
-
|
|
13
|
-
**Describe the solution you'd like**
|
|
14
|
-
A clear and concise description of what you want to happen.
|
|
15
|
-
|
|
16
|
-
**Describe alternatives you've considered**
|
|
17
|
-
A clear and concise description of any alternative solutions or features you've considered.
|
|
18
|
-
|
|
19
|
-
**Additional context**
|
|
20
|
-
Add any other context or screenshots about the feature request here.
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
## Overview
|
|
2
|
-
<!---- Please briefly describe the changes and related issues. Please explain what and why you modified it rather than how. -->
|
|
3
|
-
|
|
4
|
-
<!---- Resolves: #(Isuue Number) -->
|
|
5
|
-
|
|
6
|
-
## PR category
|
|
7
|
-
What changes?
|
|
8
|
-
|
|
9
|
-
- [ ] Add new features
|
|
10
|
-
- [ ] Bug fix
|
|
11
|
-
- [ ] Changes that do not affect the code (correct typos, change tab size, change variable names)
|
|
12
|
-
- [ ] Code refactoring
|
|
13
|
-
- [ ] Add and edit comments
|
|
14
|
-
- [ ] Edit document
|
|
15
|
-
- [ ] Add tests, refactor tests
|
|
16
|
-
- [ ] Edit the build part or package manager
|
|
17
|
-
- [ ] Edit file or folder name
|
|
18
|
-
- [ ] Delete file or folder
|
|
19
|
-
|
|
20
|
-
## PR Checklist
|
|
21
|
-
Make sure your PR meets the following requirements:
|
|
22
|
-
|
|
23
|
-
- [ ] Tested the changes (bug fixes/tested features).
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
|
|
2
|
-
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
|
|
3
|
-
|
|
4
|
-
name: dxf-json package
|
|
5
|
-
|
|
6
|
-
on:
|
|
7
|
-
push:
|
|
8
|
-
branches:
|
|
9
|
-
- main
|
|
10
|
-
|
|
11
|
-
jobs:
|
|
12
|
-
build:
|
|
13
|
-
runs-on: ubuntu-latest
|
|
14
|
-
steps:
|
|
15
|
-
- uses: actions/checkout@v3
|
|
16
|
-
- uses: actions/setup-node@v3
|
|
17
|
-
with:
|
|
18
|
-
node-version: 18
|
|
19
|
-
- run: npm ci
|
|
20
|
-
- run: npm run test:parser
|
|
21
|
-
setup-build-deploy:
|
|
22
|
-
needs: build
|
|
23
|
-
name: Setup, Build, and Deploy
|
|
24
|
-
runs-on: ubuntu-latest
|
|
25
|
-
permissions:
|
|
26
|
-
packages: write
|
|
27
|
-
contents: write
|
|
28
|
-
id-token: write
|
|
29
|
-
|
|
30
|
-
steps:
|
|
31
|
-
- name: Bump version and push tag
|
|
32
|
-
id: tag_version
|
|
33
|
-
uses: mathieudutour/github-tag-action@v6.1
|
|
34
|
-
with:
|
|
35
|
-
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
36
|
-
|
|
37
|
-
- name: Create a GitHub release
|
|
38
|
-
uses: ncipollo/release-action@v1
|
|
39
|
-
with:
|
|
40
|
-
tag: ${{ steps.tag_version.outputs.new_tag }}
|
|
41
|
-
name: Release ${{ steps.tag_version.outputs.new_tag }}
|
|
42
|
-
body: ${{ steps.tag_version.outputs.changelog }}
|
|
43
|
-
- uses: actions/checkout@v3
|
|
44
|
-
- uses: actions/setup-node@v3
|
|
45
|
-
with:
|
|
46
|
-
node-version: 18
|
|
47
|
-
registry-url: https://registry.npmjs.org
|
|
48
|
-
- run: npm ci
|
|
49
|
-
- run: git config --global user.name "${{ github.actor }}"
|
|
50
|
-
- run: git config --global user.email "github-action-${{ github.actor }}@users.noreply.github.com"
|
|
51
|
-
- run: npm run build
|
|
52
|
-
- run: npm version ${{ steps.tag_version.outputs.new_tag }} --force
|
|
53
|
-
- run: npm publish
|
|
54
|
-
env:
|
|
55
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
package/.swcrc
DELETED
package/jest.config.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/** @type {import('ts-jest').JestConfigWithTsJest} */
|
|
2
|
-
export default {
|
|
3
|
-
preset: 'ts-jest/presets/js-with-ts-esm',
|
|
4
|
-
extensionsToTreatAsEsm: ['.ts', '.tsx'],
|
|
5
|
-
moduleNameMapper: {
|
|
6
|
-
'^(\\.{1,2}/.*)\\.js$': '$1',
|
|
7
|
-
'^@src/(.*)$': '<rootDir>/src/$1',
|
|
8
|
-
},
|
|
9
|
-
transform: {
|
|
10
|
-
'^.+\\.[tj]sx?$': [
|
|
11
|
-
'ts-jest',
|
|
12
|
-
{
|
|
13
|
-
useESM: true,
|
|
14
|
-
isolatedModules: true,
|
|
15
|
-
},
|
|
16
|
-
],
|
|
17
|
-
},
|
|
18
|
-
testEnvironment: 'node',
|
|
19
|
-
transformIgnorePatterns: [],
|
|
20
|
-
};
|
package/src/consts/block.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export enum BlockTypeFlag {
|
|
2
|
-
None = 0,
|
|
3
|
-
|
|
4
|
-
// anonymous block generated by hatching, associative dimensioning,
|
|
5
|
-
// other internal operations, or an application
|
|
6
|
-
Anonymous = 1,
|
|
7
|
-
|
|
8
|
-
// this bit is not set if the block has any attribute definitions that
|
|
9
|
-
// are constant, or has no attribute definitions at all
|
|
10
|
-
NonConstant = 2,
|
|
11
|
-
|
|
12
|
-
// external referenced
|
|
13
|
-
Xref = 4,
|
|
14
|
-
XrefOverlay = 8,
|
|
15
|
-
ExternallyDependent = 16,
|
|
16
|
-
|
|
17
|
-
// resolved external reference, or dependent of an external reference
|
|
18
|
-
ResolvedOrDependent = 32,
|
|
19
|
-
|
|
20
|
-
// referenced external reference
|
|
21
|
-
ReferencedXref = 64,
|
|
22
|
-
}
|
package/src/consts/color.ts
DELETED
package/src/consts/config.ts
DELETED
package/src/consts/dimension.ts
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
// https://help.autodesk.com/view/OARX/2023/ENU/?guid=GUID-EDD54EAC-A339-4EBA-AEA6-EC8066505E2B
|
|
2
|
-
export enum DimensionType {
|
|
3
|
-
Rotated = 0,
|
|
4
|
-
Aligned = 1,
|
|
5
|
-
Angular = 2,
|
|
6
|
-
Diameter = 3,
|
|
7
|
-
Radius = 4,
|
|
8
|
-
Angular3Point = 5,
|
|
9
|
-
Ordinate = 6,
|
|
10
|
-
ReferenceIsExclusive = 32,
|
|
11
|
-
IsOrdinateXTypeFlag = 64,
|
|
12
|
-
IsCustomTextPositionFlag = 128,
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export enum AttachmentPoint {
|
|
16
|
-
TopLeft = 1,
|
|
17
|
-
TopCenter = 2,
|
|
18
|
-
TopRight = 3,
|
|
19
|
-
MiddleLeft = 4,
|
|
20
|
-
MiddleCenter = 5,
|
|
21
|
-
MiddleRight = 6,
|
|
22
|
-
BottomLeft = 7,
|
|
23
|
-
BottomCenter = 8,
|
|
24
|
-
BottomRight = 9,
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export enum DimensionTextLineSpacing {
|
|
28
|
-
AtLeast = 1,
|
|
29
|
-
Exact = 2,
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export enum DimensionTextVertical {
|
|
33
|
-
Center = 0,
|
|
34
|
-
Above = 1,
|
|
35
|
-
Outside = 2,
|
|
36
|
-
JIS = 3,
|
|
37
|
-
Below = 4,
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export enum DimensionZeroSuppression {
|
|
41
|
-
Feet = 0,
|
|
42
|
-
None = 1,
|
|
43
|
-
Inch = 2,
|
|
44
|
-
FeetAndInch = 3,
|
|
45
|
-
Leading = 4,
|
|
46
|
-
Trailing = 8,
|
|
47
|
-
LeadingAndTrailing = 12,
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
export enum DimensionZeroSuppressionAngular {
|
|
51
|
-
None = 0,
|
|
52
|
-
Leading = 1,
|
|
53
|
-
Trailing = 2,
|
|
54
|
-
LeadingAndTrailing = 3,
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
export enum DimensionTextHorizontal {
|
|
58
|
-
Center = 0,
|
|
59
|
-
Left = 1,
|
|
60
|
-
Right = 2,
|
|
61
|
-
OverFirst = 3,
|
|
62
|
-
OverSecond = 4,
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
export enum DimensionToleranceTextVertical {
|
|
66
|
-
Bottom = 0,
|
|
67
|
-
Center = 1,
|
|
68
|
-
Top = 2,
|
|
69
|
-
}
|
package/src/consts/hatch.ts
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
export enum HatchSolidFill {
|
|
2
|
-
PatternFill = 0,
|
|
3
|
-
SolidFill = 1,
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
export enum HatchAssociativity {
|
|
7
|
-
NonAssociative = 0, // For MPolygon LacksSolidFill
|
|
8
|
-
Associative = 1, // For MPolygon HasSolidFill
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export enum HatchStyle {
|
|
12
|
-
Normal = 0, // Odd parity area
|
|
13
|
-
Outer = 1, // Outermost area
|
|
14
|
-
Ignore = 2, // Entire area
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export enum HatchPatternType {
|
|
18
|
-
UserDefined = 0,
|
|
19
|
-
Predefined = 1,
|
|
20
|
-
Custom = 2, // ?
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export enum HatchBoundaryAnnotation {
|
|
24
|
-
NotAnnotated = 0,
|
|
25
|
-
Annotated = 1,
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export enum HatchGradientFlag {
|
|
29
|
-
Solid = 0,
|
|
30
|
-
Gradient = 1,
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export enum HatchGradientColorFlag {
|
|
34
|
-
TwoColor = 0,
|
|
35
|
-
OneColor = 1,
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export enum BoundaryPathTypeFlag {
|
|
39
|
-
Default = 0,
|
|
40
|
-
External = 1,
|
|
41
|
-
Polyline = 2,
|
|
42
|
-
Derived = 4,
|
|
43
|
-
Textbox = 8,
|
|
44
|
-
Outermost = 16,
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export enum BoundaryPathEdgeType {
|
|
48
|
-
Line = 1,
|
|
49
|
-
Circular = 2,
|
|
50
|
-
Elliptic = 3,
|
|
51
|
-
Spline = 4,
|
|
52
|
-
}
|
package/src/consts/header.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ObscuredLineTypes } from './obscuredLineTypes';
|
|
2
|
-
|
|
3
|
-
export const DefaultDxfHeaderVariables = {
|
|
4
|
-
DRAGVS: 'NULL',
|
|
5
|
-
INTERFERECOLOR: 1,
|
|
6
|
-
INTERFEREOBJVS: 'Conceptual',
|
|
7
|
-
INTERFEREVPVS: '3d Wireframe',
|
|
8
|
-
OBSLTYPE: ObscuredLineTypes.Off,
|
|
9
|
-
SHADEDIF: 70,
|
|
10
|
-
};
|
package/src/consts/index.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export * from './color';
|
|
2
|
-
export * from './config';
|
|
3
|
-
export * from './dimension';
|
|
4
|
-
export * from './hatch';
|
|
5
|
-
export * from './measurement';
|
|
6
|
-
export * from './obscuredLineTypes';
|
|
7
|
-
export * from './lineweight';
|
|
8
|
-
export * from './scene';
|
|
9
|
-
export * from './viewport';
|
package/src/consts/lineweight.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Specifies the linetype of obscured lines.
|
|
3
|
-
* Obscured linetypes are independent of zoom level,
|
|
4
|
-
* unlike standard object linetypes.
|
|
5
|
-
*
|
|
6
|
-
* Value 0 turns off display of obscured lines and is the default
|
|
7
|
-
* */
|
|
8
|
-
export enum ObscuredLineTypes {
|
|
9
|
-
Off = 0,
|
|
10
|
-
Solid = 1,
|
|
11
|
-
Dashed = 2,
|
|
12
|
-
Dotted = 3,
|
|
13
|
-
ShotDash = 4,
|
|
14
|
-
MediumDash = 5,
|
|
15
|
-
LongDash = 6,
|
|
16
|
-
DoubleShortDash = 7,
|
|
17
|
-
DoubleMediumDash = 8,
|
|
18
|
-
DoubleLongDash = 9,
|
|
19
|
-
DoubleMediumLongDash = 10,
|
|
20
|
-
SparseDot = 11,
|
|
21
|
-
}
|
package/src/consts/scene.ts
DELETED
package/src/consts/viewport.ts
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
export enum ViewportStatusFlag {
|
|
2
|
-
PERSPECTIVE_MODE = 0x1,
|
|
3
|
-
FRONT_CLIPPING = 0x2,
|
|
4
|
-
BACK_CLIPPING = 0x4,
|
|
5
|
-
UCS_FOLLOW = 0x8,
|
|
6
|
-
FRONT_CLIP_NOT_AT_EYE = 0x10,
|
|
7
|
-
UCS_ICON_VISIBILITY = 0x20,
|
|
8
|
-
UCS_ICON_AT_ORIGIN = 0x40,
|
|
9
|
-
FAST_ZOOM = 0x80,
|
|
10
|
-
SNAP_MODE = 0x100,
|
|
11
|
-
GRID_MODE = 0x200,
|
|
12
|
-
ISOMETRIC_SNAP_STYLE = 0x400,
|
|
13
|
-
HIDE_PLOT_MODE = 0x800,
|
|
14
|
-
K_ISO_PAIR_TOP = 0x1000,
|
|
15
|
-
K_ISO_PAIR_RIGHT = 0x2000,
|
|
16
|
-
VIEWPORT_ZOOM_LOCKING = 0x4000,
|
|
17
|
-
UNUSED = 0x8000,
|
|
18
|
-
NON_RECTANGULAR_CLIPPING = 0x10000,
|
|
19
|
-
VIEWPORT_OFF = 0x20000,
|
|
20
|
-
GRID_BEYOND_DRAWING_LIMITS = 0x40000,
|
|
21
|
-
ADAPTIVE_GRID_DISPLAY = 0x80000,
|
|
22
|
-
SUBDIVISION_BELOW_SPACING = 0x100000,
|
|
23
|
-
GRID_FOLLOWS_WORKPLANE = 0x200000,
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export enum RenderMode {
|
|
27
|
-
OPTIMIZED_2D = 0, // classic 2D
|
|
28
|
-
WIREFRAME = 1,
|
|
29
|
-
HIDDEN_LINE = 2,
|
|
30
|
-
FLAT_SHADED = 3,
|
|
31
|
-
GOURAUD_SHADED = 4,
|
|
32
|
-
FLAT_SHADED_WITH_WIREFRAME = 5,
|
|
33
|
-
GOURAUD_SHADED_WITH_WIREFRAME = 6,
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
// viewport가 개별 ucs를 가지고 있는지 여부
|
|
37
|
-
export enum UCSPerViewport {
|
|
38
|
-
UCS_UNCHANGED = 0,
|
|
39
|
-
HAS_OWN_UCS = 1,
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export enum OrthographicType {
|
|
43
|
-
NON_ORTHOGRAPHIC = 0,
|
|
44
|
-
TOP = 1,
|
|
45
|
-
BOTTOM = 2,
|
|
46
|
-
FRONT = 3,
|
|
47
|
-
BACK = 4,
|
|
48
|
-
LEFT = 5,
|
|
49
|
-
RIGHT = 6,
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export enum ShadePlotMode {
|
|
53
|
-
AS_DISPLAYED = 0,
|
|
54
|
-
WIREFRAME = 1,
|
|
55
|
-
HIDDEN = 2,
|
|
56
|
-
RENDERED = 3,
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export enum DefaultLightingType {
|
|
60
|
-
ONE_DISTANT_LIGHT = 0,
|
|
61
|
-
TWO_DISTANT_LIGHTS = 1,
|
|
62
|
-
}
|
package/src/index.ts
DELETED