dxf-json 0.8.4 → 0.9.1

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.
Files changed (32) hide show
  1. package/Readme.md +1 -1
  2. package/dist/bundle.cjs +2 -2
  3. package/dist/bundle.mjs +3 -3
  4. package/dist/types/consts/dimension.d.ts +17 -2
  5. package/dist/types/consts/dimension.d.ts.map +1 -1
  6. package/dist/types/consts/viewport.d.ts +2 -0
  7. package/dist/types/consts/viewport.d.ts.map +1 -1
  8. package/dist/types/parser/entities/dimension/parser.d.ts +6 -0
  9. package/dist/types/parser/entities/dimension/parser.d.ts.map +1 -1
  10. package/dist/types/parser/entities/dimension/types.d.ts +163 -10
  11. package/dist/types/parser/entities/dimension/types.d.ts.map +1 -1
  12. package/dist/types/parser/entities/index.d.ts.map +1 -1
  13. package/dist/types/parser/entities/mline/consts.d.ts +12 -0
  14. package/dist/types/parser/entities/mline/consts.d.ts.map +1 -0
  15. package/dist/types/parser/entities/mline/index.d.ts +4 -0
  16. package/dist/types/parser/entities/mline/index.d.ts.map +1 -0
  17. package/dist/types/parser/entities/mline/parser.d.ts +12 -0
  18. package/dist/types/parser/entities/mline/parser.d.ts.map +1 -0
  19. package/dist/types/parser/entities/mline/types.d.ts +151 -0
  20. package/dist/types/parser/entities/mline/types.d.ts.map +1 -0
  21. package/dist/types/parser/entities/shared.d.ts +15 -0
  22. package/dist/types/parser/entities/shared.d.ts.map +1 -1
  23. package/dist/types/parser/entities/viewport/parser.d.ts +2 -1
  24. package/dist/types/parser/entities/viewport/parser.d.ts.map +1 -1
  25. package/dist/types/parser/entities/viewport/types.d.ts +140 -6
  26. package/dist/types/parser/entities/viewport/types.d.ts.map +1 -1
  27. package/dist/types/parser/tables/dimStyle/consts.d.ts.map +1 -1
  28. package/dist/types/parser/tables/dimStyle/types.d.ts +7 -5
  29. package/dist/types/parser/tables/dimStyle/types.d.ts.map +1 -1
  30. package/package.json +1 -1
  31. package/dist/types/parser/entities/dimension/common.d.ts +0 -7
  32. package/dist/types/parser/entities/dimension/common.d.ts.map +0 -1
@@ -1,53 +1,187 @@
1
1
  import type { Point2D, Point3D } from '../../../types';
2
2
  import type { DefaultLightingType, OrthographicType, RenderMode, UCSPerViewport } from '../../../consts';
3
3
  import type { ShadePlotMode } from '../../../parser/objects';
4
- export interface ViewportEntity {
4
+ import type { CommonDxfEntity } from '../shared';
5
+ export interface ViewportEntity extends CommonDxfEntity {
5
6
  type: 'VIEWPORT';
7
+ /** Parsed by group code `100` */
6
8
  subclassMarker: string;
7
- handle?: string;
8
- layer?: string;
9
+ /** Parsed by group code `10`, `20` and `30` (in WCS) */
9
10
  viewportCenter: Point3D;
11
+ /** Parsed by group code `40` (in paper space unit) */
10
12
  width: number;
13
+ /** Parsed by group code `41` (in paper space unit) */
11
14
  height: number;
15
+ /**
16
+ * Viewport status field:
17
+ *
18
+ * - `-1`: On, but is fully off screen, or is one of the viewports that is not active because the $MAXACTVP count is currently being exceeded.
19
+ * - `0`: Off
20
+ * - `<positive>`: On and active. The value indicates the order of stacking for the viewports, where `1` is the active viewport, `2` is the next, and so forth
21
+ *
22
+ * Parsed by group code `68`
23
+ */
12
24
  status: number;
13
- viewportId: string;
25
+ /** Parsed by group code `69` */
26
+ viewportId: number;
27
+ /**
28
+ * Represent the center point of the viewport on the display (in DCS).
29
+ *
30
+ * Parsed by group code `12` and `22`
31
+ * */
14
32
  displayCenter: Point2D;
33
+ /** Parsed by group code `13` and `23` */
15
34
  snapBase: Point2D;
35
+ /** Parsed by group code `14` and `24` */
16
36
  snapSpacing: Point2D;
37
+ /** Parsed by group code `15` and `25` */
17
38
  gridSpacing: Point2D;
39
+ /**
40
+ * View direction vector (in WCS)
41
+ *
42
+ * Parsed by group code `16`, `26` and `36`
43
+ * */
18
44
  viewDirection: Point3D;
45
+ /**
46
+ * View target point (in WCS)
47
+ *
48
+ * Parsed by group code `16`, `26` and `36`
49
+ * */
19
50
  targetPoint: Point3D;
51
+ /** Parsed by group code `42` */
20
52
  perspectiveLensLength: number;
53
+ /** Parsed by group code `43` */
21
54
  frontClipZ: number;
55
+ /** Parsed by group code `44` */
22
56
  backClipZ: number;
57
+ /**
58
+ * View height (in model space units)
59
+ *
60
+ * Parsed by group code `45`
61
+ * */
23
62
  viewHeight: number;
63
+ /** Parsed by group code `50` */
24
64
  snapAngle: number;
65
+ /** Parsed by group code `51` */
25
66
  viewTwistAngle: number;
67
+ /** Parsed by group code `72` */
26
68
  circleZoomPercent: number;
69
+ /** Parsed by group code `331` */
27
70
  frozenLayerIds?: string[];
71
+ /**
72
+ * Viewport status bit-coded flags
73
+ *
74
+ * Parsed by group code `90`
75
+ *
76
+ * @see ViewportStatusFlag
77
+ */
28
78
  statusBitFlags: number;
79
+ /**
80
+ * Hard-pointer ID/handle to entity that serves as the viewport's clipping boundary
81
+ * (only present if viewport is non-rectangular)
82
+ *
83
+ * Parsed by group code `340`
84
+ * */
29
85
  clippingBoundaryId?: string;
86
+ /**
87
+ * Plot style sheet name assigned to this viewport
88
+ *
89
+ * Parsed by group code `1`
90
+ */
30
91
  sheetName: string;
92
+ /** Parsed by group code `281` */
31
93
  renderMode: RenderMode;
94
+ /** Parsed by group code `71` */
32
95
  ucsPerViewport: UCSPerViewport;
96
+ /**
97
+ * Display UCS icon at UCS origin flag: Controls whether UCS icon represents viewport UCS
98
+ * or current UCS (these will be different if UCSVP is `1` and viewport is not active).
99
+ *
100
+ * However, this field is currently being ignored and the icon always represents the viewport UCS
101
+ * in AutoCAD.
102
+ *
103
+ * Parsed by group code `74`.
104
+ */
105
+ iconFlag: 0 | 1;
106
+ /** Parsed by group code `110`, `210` and `310`*/
33
107
  ucsOrigin?: Point3D;
108
+ /** Parsed by group code `120`, `220` and `320`*/
34
109
  ucsXAxis?: Point3D;
110
+ /** Parsed by group code `130`, `230` and `330`*/
35
111
  ucsYAxis?: Point3D;
112
+ /**
113
+ * ID/handle of `AcDbUCSTableRecord`
114
+ *
115
+ * - If UCS is a named UCS
116
+ * - If not present, then UCS is unnamed
117
+ *
118
+ * Parsed by group code `345`.
119
+ */
36
120
  ucsId?: string;
121
+ /**
122
+ * ID/handle of AcDbUCSTableRecord of base UCS
123
+ *
124
+ * - If UCS is orthographic (79 code is non-zero)
125
+ * - If not present and 79 code is non-zero, then base UCS is taken to be WORLD
126
+ *
127
+ * Parsed by group code `346`.
128
+ */
37
129
  ucsBaseId?: string;
130
+ /** Parsed by group code `79`. */
38
131
  orthographicType?: OrthographicType;
132
+ /** Parsed by group code `146`. */
39
133
  elevation: number;
134
+ /** Parsed by group code `170`. */
40
135
  shadePlotMode: ShadePlotMode;
136
+ /**
137
+ * Frequency of major grid lines compared to minor grid lines
138
+ *
139
+ * Parsed by group code `61`.
140
+ */
41
141
  majorGridFrequency: number;
142
+ /** Parsed by group code `332`. */
42
143
  backgroundId?: string;
144
+ /** Parsed by group code `333`. */
43
145
  shadePlotId?: string;
146
+ /** Parsed by group code `348`. */
44
147
  visualStyleId?: string;
148
+ /**
149
+ * Default lighting flag. On when no user lights are specified.
150
+ *
151
+ * Parsed by group code `292`.
152
+ * */
45
153
  isDefaultLighting: boolean;
154
+ /** Parsed by group code `282`. */
46
155
  defaultLightingType?: DefaultLightingType;
156
+ /** Parsed by group code `141`. */
47
157
  brightness: number;
158
+ /** Parsed by group code `142`. */
48
159
  contrast: number;
49
- ambientLightColor?: string;
160
+ /**
161
+ * Only exists if ambient light color is given in 16-bit color index
162
+ *
163
+ * Parsed by group code `63`.
164
+ * */
165
+ ambientLightColorIndex?: number;
166
+ /**
167
+ * Only exists if ambient light color is given in 32-bit color instance
168
+ *
169
+ * Parsed by group code `421`.
170
+ * */
171
+ ambientLightColorInstance?: number;
172
+ /**
173
+ * Only exists if ambient light color is given in string
174
+ *
175
+ * Parsed by group code `431`.
176
+ * */
177
+ ambientLightColorName?: string;
178
+ /** Parsed by group code `361`. */
50
179
  sunId?: string;
51
- softPointer?: string;
180
+ /**
181
+ * Soft pointer reference to viewport object (for layer VP property override)
182
+ *
183
+ * Parsed by group code `335`, `343`, `344` and `91`.
184
+ */
185
+ softPointers?: string[];
52
186
  }
53
187
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/parser/entities/viewport/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AACtD,OAAO,KAAK,EACR,mBAAmB,EACnB,gBAAgB,EAChB,UAAU,EACV,cAAc,EACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAE7D,MAAM,WAAW,cAAc;IAC3B,IAAI,EAAE,UAAU,CAAC;IACjB,cAAc,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,OAAO,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,OAAO,CAAC;IACvB,QAAQ,EAAE,OAAO,CAAC;IAClB,WAAW,EAAE,OAAO,CAAC;IACrB,WAAW,EAAE,OAAO,CAAC;IACrB,aAAa,EAAE,OAAO,CAAC;IACvB,WAAW,EAAE,OAAO,CAAC;IACrB,qBAAqB,EAAE,MAAM,CAAC;IAC9B,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC;IACvB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,cAAc,EAAE,MAAM,CAAC;IACvB,kBAAkB,CAAC,EAAE,MAAM,CAAC;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IACpB,iDAAiD;IACjD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iDAAiD;IACjD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;;;;OAOG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;;;;OAOG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iCAAiC;IACjC,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC,kCAAkC;IAClC,SAAS,EAAE,MAAM,CAAC;IAClB,kCAAkC;IAClC,aAAa,EAAE,aAAa,CAAC;IAC7B;;;;OAIG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAC3B,kCAAkC;IAClC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,kCAAkC;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kCAAkC;IAClC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;SAIK;IACL,iBAAiB,EAAE,OAAO,CAAC;IAC3B,kCAAkC;IAClC,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;IAC1C,kCAAkC;IAClC,UAAU,EAAE,MAAM,CAAC;IACnB,kCAAkC;IAClC,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;SAIK;IACL,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC;;;;SAIK;IACL,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC;;;;SAIK;IACL,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,kCAAkC;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,EAAE,CAAA;CAC1B"}
@@ -1 +1 @@
1
- {"version":3,"file":"consts.d.ts","sourceRoot":"","sources":["../../../../../src/parser/tables/dimStyle/consts.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAEtD,eAAO,MAAM,uBAAuB,0BAkaP,CAAC"}
1
+ {"version":3,"file":"consts.d.ts","sourceRoot":"","sources":["../../../../../src/parser/tables/dimStyle/consts.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAEtD,eAAO,MAAM,uBAAuB,0BAiaP,CAAC"}
@@ -7,9 +7,7 @@ export interface DimStyleVariableSchema {
7
7
  defaultValue?: string | number;
8
8
  defaultValueImperial?: string | number;
9
9
  }
10
- export type DimStylesTableEntry = {
11
- subclassMarker: 'AcDbDimStyleTableRecord';
12
- styleName: string;
10
+ export type DimStyleVariables = {
13
11
  DIMPOST?: string;
14
12
  DIMAPOST?: string;
15
13
  DIMBLK_OBSOLETE?: string;
@@ -61,7 +59,7 @@ export type DimStylesTableEntry = {
61
59
  DIMFRAC: number;
62
60
  DIMLUNIT: number;
63
61
  DIMDSEP: string;
64
- DIMTMOVE: undefined;
62
+ DIMTMOVE: number;
65
63
  DIMJUST: DimensionTextHorizontal;
66
64
  DIMSD1: 0 | 1;
67
65
  DIMSD2: 0 | 1;
@@ -79,5 +77,9 @@ export type DimStylesTableEntry = {
79
77
  DIMBLK2?: string;
80
78
  DIMLWD: number;
81
79
  DIMLWE: number;
82
- } & CommonDxfTableEntry;
80
+ };
81
+ export type DimStylesTableEntry = DimStyleVariables & CommonDxfTableEntry & {
82
+ styleName: string;
83
+ subclassMarker: 'AcDbDimStyleTableRecord';
84
+ };
83
85
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/parser/tables/dimStyle/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,uBAAuB,EACvB,qBAAqB,EACrB,wBAAwB,EACxB,+BAA+B,EAClC,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAGpD,MAAM,MAAM,gBAAgB,GACtB,SAAS,GACT,UAAU,GACV,iBAAiB,GACjB,kBAAk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,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,uBAAuB,CAAC;IACjC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC;IACd,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC;IACd,OAAO,EAAE,qBAAqB,CAAC;IAC/B,OAAO,EAAE,wBAAwB,CAAC;IAClC,OAAO,EAAE,wBAAwB,CAAC;IAClC,QAAQ,EAAE,wBAAwB,CAAC;IACnC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAClB,CAAA;AAED,MAAM,MAAM,mBAAmB,GAAG,iBAAiB,GAAG,mBAAmB,GAAG;IACxE,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,yBAAyB,CAAC;CAC7C,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dxf-json",
3
- "version": "0.8.4",
3
+ "version": "0.9.1",
4
4
  "description": "perfect dxf parser",
5
5
  "type": "module",
6
6
  "main": "./dist/bundle.cjs",
@@ -1,7 +0,0 @@
1
- import type { DxfArrayScanner, ScannerGroup } from '../../DxfArrayScanner';
2
- import type { DimensionEntity } from './types';
3
- /**
4
- * @returns Return `false` if curr is not related to common dimension group
5
- */
6
- export declare function parseDimension(entity: DimensionEntity, curr: ScannerGroup, scanner: DxfArrayScanner): void;
7
- //# sourceMappingURL=common.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../../../src/parser/entities/dimension/common.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAI3E,OAAO,KAAK,EAAkD,eAAe,EAA0D,MAAM,SAAS,CAAC;AAEvJ;;GAEG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,eAAe,EAAE,IAAI,EAAE,YAAY,EAAE,OAAO,EAAE,eAAe,QAwFnG"}