dxf-json 0.11.0 → 0.14.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.
- package/dist/cjs/bundle.cjs +2 -2
- package/dist/cjs/types/index.d.ts +22 -0
- package/dist/cjs/types/index.d.ts.map +1 -1
- package/dist/cjs/types/parser/DxfArrayScanner.d.ts.map +1 -1
- package/dist/cjs/types/parser/DxfParser.d.ts +8 -2
- package/dist/cjs/types/parser/DxfParser.d.ts.map +1 -1
- package/dist/cjs/types/parser/entities/acadProxyEntity/consts.d.ts +11 -0
- package/dist/cjs/types/parser/entities/acadProxyEntity/consts.d.ts.map +1 -0
- package/dist/cjs/types/parser/entities/acadProxyEntity/parser.d.ts +7 -0
- package/dist/cjs/types/parser/entities/acadProxyEntity/parser.d.ts.map +1 -0
- package/dist/cjs/types/parser/entities/acadProxyEntity/types.d.ts +34 -0
- package/dist/cjs/types/parser/entities/acadProxyEntity/types.d.ts.map +1 -0
- package/dist/cjs/types/parser/entities/multileader/parser.d.ts.map +1 -1
- package/dist/cjs/types/parser/entities/multileader/types.d.ts +437 -14
- package/dist/cjs/types/parser/entities/multileader/types.d.ts.map +1 -1
- package/dist/cjs/types/parser/entities/parser.d.ts.map +1 -1
- package/dist/cjs/types/parser/entities/shape/parser.d.ts +21 -0
- package/dist/cjs/types/parser/entities/shape/parser.d.ts.map +1 -0
- package/dist/cjs/types/parser/entities/shape/types.d.ts +15 -0
- package/dist/cjs/types/parser/entities/shape/types.d.ts.map +1 -0
- package/dist/cjs/types/parser/entities/shared.d.ts +2 -0
- package/dist/cjs/types/parser/entities/shared.d.ts.map +1 -1
- package/dist/cjs/types/parser/entities/spline/types.d.ts +1 -1
- package/dist/cjs/types/parser/entities/spline/types.d.ts.map +1 -1
- package/dist/cjs/types/parser/entities/vertex/parser.d.ts.map +1 -1
- package/dist/cjs/types/parser/entities/vertex/types.d.ts +61 -5
- package/dist/cjs/types/parser/entities/vertex/types.d.ts.map +1 -1
- package/dist/cjs/types/parser/objects/dimassoc/parser.d.ts +3 -0
- package/dist/cjs/types/parser/objects/dimassoc/parser.d.ts.map +1 -0
- package/dist/cjs/types/parser/objects/dimassoc/types.d.ts +105 -0
- package/dist/cjs/types/parser/objects/dimassoc/types.d.ts.map +1 -0
- package/dist/cjs/types/parser/objects/group/parser.d.ts +3 -0
- package/dist/cjs/types/parser/objects/group/parser.d.ts.map +1 -0
- package/dist/cjs/types/parser/objects/group/types.d.ts +34 -0
- package/dist/cjs/types/parser/objects/group/types.d.ts.map +1 -0
- package/dist/cjs/types/parser/objects/imageDef/consts.d.ts +6 -0
- package/dist/cjs/types/parser/objects/imageDef/consts.d.ts.map +1 -0
- package/dist/cjs/types/parser/objects/imageDef/parser.d.ts +3 -0
- package/dist/cjs/types/parser/objects/imageDef/parser.d.ts.map +1 -0
- package/dist/cjs/types/parser/objects/imageDef/types.d.ts +13 -0
- package/dist/cjs/types/parser/objects/imageDef/types.d.ts.map +1 -0
- package/dist/cjs/types/parser/objects/layer_filter/parser.d.ts +3 -0
- package/dist/cjs/types/parser/objects/layer_filter/parser.d.ts.map +1 -0
- package/dist/cjs/types/parser/objects/layer_filter/types.d.ts +25 -0
- package/dist/cjs/types/parser/objects/layer_filter/types.d.ts.map +1 -0
- package/dist/cjs/types/parser/objects/layer_index/parser.d.ts +3 -0
- package/dist/cjs/types/parser/objects/layer_index/parser.d.ts.map +1 -0
- package/dist/cjs/types/parser/objects/layer_index/types.d.ts +39 -0
- package/dist/cjs/types/parser/objects/layer_index/types.d.ts.map +1 -0
- package/dist/cjs/types/parser/objects/mleaderStyle/parser.d.ts +3 -0
- package/dist/cjs/types/parser/objects/mleaderStyle/parser.d.ts.map +1 -0
- package/dist/cjs/types/parser/objects/mleaderStyle/types.d.ts +206 -0
- package/dist/cjs/types/parser/objects/mleaderStyle/types.d.ts.map +1 -0
- package/dist/cjs/types/parser/objects/mlineStyle/parser.d.ts +10 -0
- package/dist/cjs/types/parser/objects/mlineStyle/parser.d.ts.map +1 -0
- package/dist/cjs/types/parser/objects/mlineStyle/types.d.ts +89 -0
- package/dist/cjs/types/parser/objects/mlineStyle/types.d.ts.map +1 -0
- package/dist/cjs/types/parser/objects/parser.d.ts.map +1 -1
- package/dist/cjs/types/parser/shared/asciiDxf.d.ts +6 -0
- package/dist/cjs/types/parser/shared/asciiDxf.d.ts.map +1 -0
- package/dist/cjs/types/parser/shared/binaryDxf.d.ts +18 -0
- package/dist/cjs/types/parser/shared/binaryDxf.d.ts.map +1 -0
- package/dist/cjs/types/parser/shared/dxfInput.d.ts +13 -0
- package/dist/cjs/types/parser/shared/dxfInput.d.ts.map +1 -0
- package/dist/cjs/types/parser/shared/parserGenerator.d.ts.map +1 -1
- package/dist/cjs/types/parser/tables/blockRecord/types.d.ts +28 -1
- package/dist/cjs/types/parser/tables/blockRecord/types.d.ts.map +1 -1
- package/dist/cjs/types/parser/tables/shared.d.ts.map +1 -1
- package/dist/cjs/types/parser/tables/vport/parser.d.ts.map +1 -1
- package/dist/cjs/types/parser/tables/vport/types.d.ts +6 -0
- package/dist/cjs/types/parser/tables/vport/types.d.ts.map +1 -1
- package/dist/esm/bundle.mjs +2 -2
- package/dist/esm/types/index.d.ts +22 -0
- package/dist/esm/types/index.d.ts.map +1 -1
- package/dist/esm/types/parser/DxfArrayScanner.d.ts.map +1 -1
- package/dist/esm/types/parser/DxfParser.d.ts +8 -2
- package/dist/esm/types/parser/DxfParser.d.ts.map +1 -1
- package/dist/esm/types/parser/entities/acadProxyEntity/consts.d.ts +11 -0
- package/dist/esm/types/parser/entities/acadProxyEntity/consts.d.ts.map +1 -0
- package/dist/esm/types/parser/entities/acadProxyEntity/parser.d.ts +7 -0
- package/dist/esm/types/parser/entities/acadProxyEntity/parser.d.ts.map +1 -0
- package/dist/esm/types/parser/entities/acadProxyEntity/types.d.ts +34 -0
- package/dist/esm/types/parser/entities/acadProxyEntity/types.d.ts.map +1 -0
- package/dist/esm/types/parser/entities/multileader/parser.d.ts.map +1 -1
- package/dist/esm/types/parser/entities/multileader/types.d.ts +437 -14
- package/dist/esm/types/parser/entities/multileader/types.d.ts.map +1 -1
- package/dist/esm/types/parser/entities/parser.d.ts.map +1 -1
- package/dist/esm/types/parser/entities/shape/parser.d.ts +21 -0
- package/dist/esm/types/parser/entities/shape/parser.d.ts.map +1 -0
- package/dist/esm/types/parser/entities/shape/types.d.ts +15 -0
- package/dist/esm/types/parser/entities/shape/types.d.ts.map +1 -0
- package/dist/esm/types/parser/entities/shared.d.ts +2 -0
- package/dist/esm/types/parser/entities/shared.d.ts.map +1 -1
- package/dist/esm/types/parser/entities/spline/types.d.ts +1 -1
- package/dist/esm/types/parser/entities/spline/types.d.ts.map +1 -1
- package/dist/esm/types/parser/entities/vertex/parser.d.ts.map +1 -1
- package/dist/esm/types/parser/entities/vertex/types.d.ts +61 -5
- package/dist/esm/types/parser/entities/vertex/types.d.ts.map +1 -1
- package/dist/esm/types/parser/objects/dimassoc/parser.d.ts +3 -0
- package/dist/esm/types/parser/objects/dimassoc/parser.d.ts.map +1 -0
- package/dist/esm/types/parser/objects/dimassoc/types.d.ts +105 -0
- package/dist/esm/types/parser/objects/dimassoc/types.d.ts.map +1 -0
- package/dist/esm/types/parser/objects/group/parser.d.ts +3 -0
- package/dist/esm/types/parser/objects/group/parser.d.ts.map +1 -0
- package/dist/esm/types/parser/objects/group/types.d.ts +34 -0
- package/dist/esm/types/parser/objects/group/types.d.ts.map +1 -0
- package/dist/esm/types/parser/objects/imageDef/consts.d.ts +6 -0
- package/dist/esm/types/parser/objects/imageDef/consts.d.ts.map +1 -0
- package/dist/esm/types/parser/objects/imageDef/parser.d.ts +3 -0
- package/dist/esm/types/parser/objects/imageDef/parser.d.ts.map +1 -0
- package/dist/esm/types/parser/objects/imageDef/types.d.ts +13 -0
- package/dist/esm/types/parser/objects/imageDef/types.d.ts.map +1 -0
- package/dist/esm/types/parser/objects/layer_filter/parser.d.ts +3 -0
- package/dist/esm/types/parser/objects/layer_filter/parser.d.ts.map +1 -0
- package/dist/esm/types/parser/objects/layer_filter/types.d.ts +25 -0
- package/dist/esm/types/parser/objects/layer_filter/types.d.ts.map +1 -0
- package/dist/esm/types/parser/objects/layer_index/parser.d.ts +3 -0
- package/dist/esm/types/parser/objects/layer_index/parser.d.ts.map +1 -0
- package/dist/esm/types/parser/objects/layer_index/types.d.ts +39 -0
- package/dist/esm/types/parser/objects/layer_index/types.d.ts.map +1 -0
- package/dist/esm/types/parser/objects/mleaderStyle/parser.d.ts +3 -0
- package/dist/esm/types/parser/objects/mleaderStyle/parser.d.ts.map +1 -0
- package/dist/esm/types/parser/objects/mleaderStyle/types.d.ts +206 -0
- package/dist/esm/types/parser/objects/mleaderStyle/types.d.ts.map +1 -0
- package/dist/esm/types/parser/objects/mlineStyle/parser.d.ts +10 -0
- package/dist/esm/types/parser/objects/mlineStyle/parser.d.ts.map +1 -0
- package/dist/esm/types/parser/objects/mlineStyle/types.d.ts +89 -0
- package/dist/esm/types/parser/objects/mlineStyle/types.d.ts.map +1 -0
- package/dist/esm/types/parser/objects/parser.d.ts.map +1 -1
- package/dist/esm/types/parser/shared/asciiDxf.d.ts +6 -0
- package/dist/esm/types/parser/shared/asciiDxf.d.ts.map +1 -0
- package/dist/esm/types/parser/shared/binaryDxf.d.ts +18 -0
- package/dist/esm/types/parser/shared/binaryDxf.d.ts.map +1 -0
- package/dist/esm/types/parser/shared/dxfInput.d.ts +13 -0
- package/dist/esm/types/parser/shared/dxfInput.d.ts.map +1 -0
- package/dist/esm/types/parser/shared/parserGenerator.d.ts.map +1 -1
- package/dist/esm/types/parser/tables/blockRecord/types.d.ts +28 -1
- package/dist/esm/types/parser/tables/blockRecord/types.d.ts.map +1 -1
- package/dist/esm/types/parser/tables/shared.d.ts.map +1 -1
- package/dist/esm/types/parser/tables/vport/parser.d.ts.map +1 -1
- package/dist/esm/types/parser/tables/vport/types.d.ts +6 -0
- package/dist/esm/types/parser/tables/vport/types.d.ts.map +1 -1
- package/package.json +80 -79
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DxfParser.d.ts","sourceRoot":"","sources":["../../../../src/parser/DxfParser.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;
|
|
1
|
+
{"version":3,"file":"DxfParser.d.ts","sourceRoot":"","sources":["../../../../src/parser/DxfParser.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AAE3C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAE/C,kDAAkD;AAClD,qBAAa,gBAAgB;IAC3B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAU;IAC1B;;OAEG;IACH,oBAAoB,EAAE,OAAO,CAAQ;IACrC;;;;OAIG;IACH,oBAAoB,EAAE,QAAQ,GAAG,KAAK,GAAG,QAAQ,CAAW;CAC7D;AAED,qBAAa,SAAU,SAAQ,WAAW;IACxC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAkB;gBAE/B,OAAO,GAAE,OAAO,CAAC,gBAAgB,CAAM;IAKnD,SAAS,CAAC,SAAS,EAAE,MAAM,EAAE,WAAW,UAAQ,GAAG,SAAS;IAI5D,WAAW,CAAC,IAAI,EAAE,UAAU,EAAE,WAAW,UAAQ,GAAG,SAAS;IAU7D,WAAW,CAAC,MAAM,EAAE,QAAQ;IA+B5B;;;;OAIG;IACG,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,WAAW,GAAG,SAAS;IAe9D,OAAO,CAAC,UAAU;IASlB,OAAO,CAAC,QAAQ;CA6CjB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @see https://help.autodesk.com/view/OARX/2024/ENU/?guid=GUID-89A690F9-E859-4D57-89EA-750F3FB76C6B
|
|
3
|
+
*/
|
|
4
|
+
export declare enum AcadProxyEntityClassId {
|
|
5
|
+
ProxyEntity = 498
|
|
6
|
+
}
|
|
7
|
+
export declare enum AcadProxyOriginalDataFormat {
|
|
8
|
+
Dwg = 0,
|
|
9
|
+
Dxf = 1
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=consts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consts.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/entities/acadProxyEntity/consts.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,sBAAsB;IAChC,WAAW,MAAM;CAClB;AAED,oBAAY,2BAA2B;IACrC,GAAG,IAAI;IACP,GAAG,IAAI;CACR"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { DxfArrayScanner, ScannerGroup } from '../../DxfArrayScanner.ts';
|
|
2
|
+
import type { AcadProxyEntity } from './types.ts';
|
|
3
|
+
export declare class AcadProxyEntityParser {
|
|
4
|
+
static ForEntityName: string;
|
|
5
|
+
parseEntity(scanner: DxfArrayScanner, curr: ScannerGroup): AcadProxyEntity;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=parser.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parser.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/entities/acadProxyEntity/parser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAI7E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAIjD,qBAAa,qBAAqB;IAChC,MAAM,CAAC,aAAa,SAAsB;IAE1C,WAAW,CAAC,OAAO,EAAE,eAAe,EAAE,IAAI,EAAE,YAAY,GAAG,eAAe;CAyI3E"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { CommonDxfEntity } from '../shared.ts';
|
|
2
|
+
import type { AcadProxyOriginalDataFormat } from './consts.ts';
|
|
3
|
+
/**
|
|
4
|
+
* @see https://help.autodesk.com/view/OARX/2024/ENU/?guid=GUID-89A690F9-E859-4D57-89EA-750F3FB76C6B
|
|
5
|
+
*/
|
|
6
|
+
export interface AcadProxyEntity extends CommonDxfEntity {
|
|
7
|
+
type: 'ACAD_PROXY_ENTITY';
|
|
8
|
+
subclassMarker: 'AcDbProxyEntity';
|
|
9
|
+
/** Proxy entity class ID (always 498) */
|
|
10
|
+
proxyEntityClassId: number;
|
|
11
|
+
/** Application entity class ID from CLASSES section order (500+) */
|
|
12
|
+
applicationEntityClassId: number;
|
|
13
|
+
/** Original DXF entity name (group 1) */
|
|
14
|
+
originalDxfName?: string;
|
|
15
|
+
/** Size of graphics data in bytes */
|
|
16
|
+
graphicsDataSize?: number;
|
|
17
|
+
/** Binary graphics data as hex string */
|
|
18
|
+
graphicsData?: string;
|
|
19
|
+
/** Size of entity data in bits */
|
|
20
|
+
entityDataSize?: number;
|
|
21
|
+
/** Binary entity data as hex string */
|
|
22
|
+
entityData?: string;
|
|
23
|
+
/** Size of unknown binary data in bytes (R2010+: group 162) */
|
|
24
|
+
unknownDataSize?: number;
|
|
25
|
+
/** Unknown binary data as hex string (group 311) */
|
|
26
|
+
unknownData?: string;
|
|
27
|
+
/** Linked object IDs from the proxy entity */
|
|
28
|
+
linkedObjectIds?: string[];
|
|
29
|
+
/** Object drawing format when it becomes a proxy */
|
|
30
|
+
objectDrawingFormat?: number;
|
|
31
|
+
/** Original custom object data format */
|
|
32
|
+
originalDataFormat?: AcadProxyOriginalDataFormat;
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/entities/acadProxyEntity/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AACnD,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,aAAa,CAAA;AAE9D;;GAEG;AACH,MAAM,WAAW,eAAgB,SAAQ,eAAe;IACtD,IAAI,EAAE,mBAAmB,CAAA;IACzB,cAAc,EAAE,iBAAiB,CAAA;IACjC,yCAAyC;IACzC,kBAAkB,EAAE,MAAM,CAAA;IAC1B,oEAAoE;IACpE,wBAAwB,EAAE,MAAM,CAAA;IAChC,yCAAyC;IACzC,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,qCAAqC;IACrC,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,yCAAyC;IACzC,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,kCAAkC;IAClC,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,uCAAuC;IACvC,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,+DAA+D;IAC/D,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,oDAAoD;IACpD,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,8CAA8C;IAC9C,eAAe,CAAC,EAAE,MAAM,EAAE,CAAA;IAC1B,oDAAoD;IACpD,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,yCAAyC;IACzC,kBAAkB,CAAC,EAAE,2BAA2B,CAAA;CACjD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parser.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/entities/multileader/parser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;
|
|
1
|
+
{"version":3,"file":"parser.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/entities/multileader/parser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAU7E,OAAO,KAAK,EAGV,iBAAiB,EAElB,MAAM,YAAY,CAAA;AA6iBnB,qBAAa,uBAAuB;IAClC,MAAM,CAAC,aAAa,SAAgB;IACpC,OAAO,CAAC,MAAM,CAGb;IAED,WAAW,CAAC,OAAO,EAAE,eAAe,EAAE,IAAI,EAAE,YAAY,GAGrC,iBAAiB;CAErC"}
|
|
@@ -1,35 +1,458 @@
|
|
|
1
1
|
import type { Point3D } from '../../../types/shared.ts';
|
|
2
2
|
import type { CommonDxfEntity } from '../shared.ts';
|
|
3
|
+
/**
|
|
4
|
+
* MULTILEADER entity fields mapped from AutoCAD DXF MLEADER group codes.
|
|
5
|
+
*
|
|
6
|
+
* References:
|
|
7
|
+
* - https://help.autodesk.com/cloudhelp/2023/ENU/AutoCAD-DXF/files/GUID-69B9139A-48B4-48A5-B3CF-A3233ABFBE49.htm
|
|
8
|
+
* - https://documentation.help/AutoCAD-DXF/WS1a9193826455f5ffc751fd10f4618e369-5bdf.htm
|
|
9
|
+
*/
|
|
3
10
|
export interface MultiLeaderEntity extends CommonDxfEntity {
|
|
11
|
+
/**
|
|
12
|
+
* Group code 0: entity type.
|
|
13
|
+
* Expected value: `MULTILEADER`.
|
|
14
|
+
*/
|
|
4
15
|
type: 'MULTILEADER';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
16
|
+
/**
|
|
17
|
+
* Group code 100: subclass marker for this entity.
|
|
18
|
+
* Expected value: `AcDbMLeader`.
|
|
19
|
+
*/
|
|
20
|
+
subclassMarker?: 'AcDbMLeader';
|
|
21
|
+
/**
|
|
22
|
+
* Group code 270: MLeader version.
|
|
23
|
+
*/
|
|
24
|
+
version?: number;
|
|
25
|
+
/**
|
|
26
|
+
* Group code 340: leader style ID (handle reference).
|
|
27
|
+
*/
|
|
28
|
+
leaderStyleId?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Group code 90: property override bit flags.
|
|
31
|
+
*/
|
|
32
|
+
propertyOverrideFlag?: number;
|
|
33
|
+
/**
|
|
34
|
+
* Group code 170: leader line type.
|
|
35
|
+
*/
|
|
36
|
+
leaderLineType?: number;
|
|
37
|
+
/**
|
|
38
|
+
* Group code 91: leader line color.
|
|
39
|
+
*/
|
|
40
|
+
leaderLineColor?: number;
|
|
41
|
+
/**
|
|
42
|
+
* Group code 341: leader line type ID (handle reference to linetype).
|
|
43
|
+
*/
|
|
44
|
+
leaderLineTypeId?: string;
|
|
45
|
+
/**
|
|
46
|
+
* Group code 171: leader line weight.
|
|
47
|
+
*/
|
|
48
|
+
leaderLineWeight?: number;
|
|
49
|
+
/**
|
|
50
|
+
* Group code 290: enable landing.
|
|
51
|
+
* 0 = disabled, 1 = enabled.
|
|
52
|
+
*/
|
|
53
|
+
landingEnabled?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Group code 291: enable dogleg.
|
|
56
|
+
* 0 = disabled, 1 = enabled.
|
|
57
|
+
*/
|
|
58
|
+
doglegEnabled?: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Group code 41 (common MLeader code set): dogleg length.
|
|
61
|
+
* Some files may also emit code 40 for dogleg-related length/constraint values.
|
|
62
|
+
*/
|
|
63
|
+
doglegLength?: number;
|
|
64
|
+
/**
|
|
65
|
+
* Group code 342: arrowhead ID (handle reference).
|
|
66
|
+
*/
|
|
67
|
+
arrowheadId?: string;
|
|
68
|
+
/**
|
|
69
|
+
* Group code 42: arrowhead size.
|
|
70
|
+
*/
|
|
71
|
+
arrowheadSize?: number;
|
|
72
|
+
/**
|
|
73
|
+
* Group code 172: content type (none / MText / block).
|
|
74
|
+
*/
|
|
75
|
+
contentType?: number;
|
|
76
|
+
/**
|
|
77
|
+
* Group code 343: text style ID (handle reference).
|
|
78
|
+
*/
|
|
79
|
+
textStyleId?: string;
|
|
80
|
+
/**
|
|
81
|
+
* Group code 173: text left attachment type.
|
|
82
|
+
*/
|
|
83
|
+
textLeftAttachmentType?: number;
|
|
84
|
+
/**
|
|
85
|
+
* Group code 95: text right attachment type.
|
|
86
|
+
*/
|
|
87
|
+
textRightAttachmentType?: number;
|
|
88
|
+
/**
|
|
89
|
+
* Group code 174: text angle type.
|
|
90
|
+
*/
|
|
91
|
+
textAngleType?: number;
|
|
92
|
+
/**
|
|
93
|
+
* Group code 175: text alignment type.
|
|
94
|
+
*/
|
|
95
|
+
textAlignmentType?: number;
|
|
96
|
+
/**
|
|
97
|
+
* Group code 92: text color in common MLeader data.
|
|
98
|
+
* In CONTEXT_DATA, text color is stored as group code 90.
|
|
99
|
+
*/
|
|
100
|
+
textColor?: number;
|
|
101
|
+
/**
|
|
102
|
+
* Group code 292: enable text frame.
|
|
103
|
+
* 0 = disabled, 1 = enabled.
|
|
104
|
+
*/
|
|
105
|
+
textFrameEnabled?: boolean;
|
|
106
|
+
/**
|
|
107
|
+
* Group code 145 in CONTEXT_DATA: landing gap.
|
|
108
|
+
*/
|
|
109
|
+
landingGap?: number;
|
|
110
|
+
/**
|
|
111
|
+
* Group code 171 in CONTEXT_DATA: text attachment mode.
|
|
112
|
+
*/
|
|
113
|
+
textAttachment?: number;
|
|
114
|
+
/**
|
|
115
|
+
* Group code 172 in CONTEXT_DATA: text flow direction.
|
|
116
|
+
*/
|
|
117
|
+
textFlowDirection?: number;
|
|
118
|
+
/**
|
|
119
|
+
* Group code 344 (common) / 341 (CONTEXT_DATA): block content ID.
|
|
120
|
+
* Both are handle references to block definition/content.
|
|
121
|
+
*/
|
|
122
|
+
blockContentId?: string;
|
|
123
|
+
/**
|
|
124
|
+
* Group code 93: block content color.
|
|
125
|
+
*/
|
|
126
|
+
blockContentColor?: number;
|
|
127
|
+
/**
|
|
128
|
+
* Group code 10 (common MLeader code set): block content scale.
|
|
129
|
+
* Parsed as Point3D by this project for XYZ scale components.
|
|
130
|
+
*/
|
|
131
|
+
blockContentScale?: Point3D;
|
|
132
|
+
/**
|
|
133
|
+
* Group code 43 (common MLeader code set): block content rotation.
|
|
134
|
+
*/
|
|
135
|
+
blockContentRotation?: number;
|
|
136
|
+
/**
|
|
137
|
+
* Group code 176: block content connection type.
|
|
138
|
+
*/
|
|
139
|
+
blockContentConnectionType?: number;
|
|
140
|
+
/**
|
|
141
|
+
* Group code 293: enable annotation scale.
|
|
142
|
+
* 0 = disabled, 1 = enabled.
|
|
143
|
+
*/
|
|
144
|
+
annotativeScaleEnabled?: boolean;
|
|
145
|
+
/**
|
|
146
|
+
* Group code pair 94 + 345 (repeated):
|
|
147
|
+
* 94 = arrowhead override index, 345 = arrowhead override handle.
|
|
148
|
+
*/
|
|
149
|
+
arrowheadOverrides?: MultiLeaderIndexedHandle[];
|
|
150
|
+
/**
|
|
151
|
+
* Repeated block attribute override entries:
|
|
152
|
+
* 330 = attribute ID handle, 177 = attribute index,
|
|
153
|
+
* 44 = attribute width, 302 = attribute text.
|
|
154
|
+
*/
|
|
155
|
+
blockAttributes?: MultiLeaderBlockAttribute[];
|
|
156
|
+
/**
|
|
157
|
+
* Group code 294: text direction negative flag.
|
|
158
|
+
* 0 = false, 1 = true.
|
|
159
|
+
*/
|
|
160
|
+
textDirectionNegative?: boolean;
|
|
161
|
+
/**
|
|
162
|
+
* Group code 178: text align in IPE flag/value.
|
|
163
|
+
*/
|
|
164
|
+
textAlignInIPE?: number;
|
|
165
|
+
/**
|
|
166
|
+
* Group code 179: text attachment point.
|
|
167
|
+
*/
|
|
168
|
+
textAttachmentPoint?: number;
|
|
169
|
+
/**
|
|
170
|
+
* Group code 271: text attachment direction for MText content.
|
|
171
|
+
* 0 = horizontal, 1 = vertical.
|
|
172
|
+
*/
|
|
173
|
+
textAttachmentDirection?: number;
|
|
174
|
+
/**
|
|
175
|
+
* Group code 272: bottom text attachment direction.
|
|
176
|
+
* 9 = center, 10 = underline + center.
|
|
177
|
+
*/
|
|
178
|
+
bottomTextAttachmentDirection?: number;
|
|
179
|
+
/**
|
|
180
|
+
* Group code 273: top text attachment direction.
|
|
181
|
+
* 9 = center, 10 = overline + center.
|
|
182
|
+
*/
|
|
183
|
+
topTextAttachmentDirection?: number;
|
|
184
|
+
/**
|
|
185
|
+
* CONTEXT_DATA group code 40: content scale.
|
|
186
|
+
*/
|
|
187
|
+
contentScale?: number;
|
|
188
|
+
/**
|
|
189
|
+
* CONTEXT_DATA group codes 10/20/30: content base position (X/Y/Z).
|
|
190
|
+
*/
|
|
191
|
+
contentBasePosition?: Point3D;
|
|
192
|
+
/**
|
|
193
|
+
* CONTEXT_DATA group codes 11/21/31: text normal direction vector.
|
|
194
|
+
*/
|
|
195
|
+
normal?: Point3D;
|
|
196
|
+
/**
|
|
197
|
+
* CONTEXT_DATA group codes 41 and 44 are both used for text height
|
|
198
|
+
* in different MText layouts/variants.
|
|
199
|
+
*/
|
|
200
|
+
textHeight?: number;
|
|
201
|
+
/**
|
|
202
|
+
* CONTEXT_DATA group code 42: text rotation.
|
|
203
|
+
*/
|
|
204
|
+
textRotation?: number;
|
|
205
|
+
/**
|
|
206
|
+
* CONTEXT_DATA group code 43: text width.
|
|
207
|
+
*/
|
|
208
|
+
textWidth?: number;
|
|
209
|
+
/**
|
|
210
|
+
* CONTEXT_DATA group code 45: text line spacing factor.
|
|
211
|
+
*/
|
|
212
|
+
textLineSpacingFactor?: number;
|
|
213
|
+
/**
|
|
214
|
+
* CONTEXT_DATA group code 170: text line spacing style.
|
|
215
|
+
*/
|
|
216
|
+
textLineSpacingStyle?: number;
|
|
217
|
+
/**
|
|
218
|
+
* CONTEXT_DATA group codes 12/22/32: text location (anchor point).
|
|
219
|
+
*/
|
|
220
|
+
textAnchor?: Point3D;
|
|
221
|
+
/**
|
|
222
|
+
* CONTEXT_DATA group codes 13/23/33: text direction vector.
|
|
223
|
+
*/
|
|
224
|
+
textDirection?: Point3D;
|
|
225
|
+
/**
|
|
226
|
+
* CONTEXT_DATA group code 91: text background color.
|
|
227
|
+
*/
|
|
228
|
+
textBackgroundColor?: number;
|
|
229
|
+
/**
|
|
230
|
+
* CONTEXT_DATA group code 141: text background scale factor.
|
|
231
|
+
*/
|
|
232
|
+
textBackgroundScaleFactor?: number;
|
|
233
|
+
/**
|
|
234
|
+
* CONTEXT_DATA group code 92: text background transparency.
|
|
235
|
+
*/
|
|
236
|
+
textBackgroundTransparency?: number;
|
|
237
|
+
/**
|
|
238
|
+
* CONTEXT_DATA group code 291: text background color on/off.
|
|
239
|
+
* 0 = false, 1 = true.
|
|
240
|
+
*/
|
|
241
|
+
textBackgroundColorOn?: boolean;
|
|
242
|
+
/**
|
|
243
|
+
* CONTEXT_DATA group code 292: text background fill on/off.
|
|
244
|
+
* 0 = false, 1 = true.
|
|
245
|
+
*/
|
|
246
|
+
textFillOn?: boolean;
|
|
247
|
+
/**
|
|
248
|
+
* CONTEXT_DATA group code 173: text column type.
|
|
249
|
+
*/
|
|
250
|
+
textColumnType?: number;
|
|
251
|
+
/**
|
|
252
|
+
* CONTEXT_DATA group code 293: use text auto height.
|
|
253
|
+
* 0 = false, 1 = true.
|
|
254
|
+
*/
|
|
255
|
+
textUseAutoHeight?: boolean;
|
|
256
|
+
/**
|
|
257
|
+
* CONTEXT_DATA group code 142: text column width.
|
|
258
|
+
*/
|
|
259
|
+
textColumnWidth?: number;
|
|
260
|
+
/**
|
|
261
|
+
* CONTEXT_DATA group code 143: text column gutter width.
|
|
262
|
+
*/
|
|
263
|
+
textColumnGutterWidth?: number;
|
|
264
|
+
/**
|
|
265
|
+
* CONTEXT_DATA group code 294: text column flow reversed.
|
|
266
|
+
* 0 = false, 1 = true.
|
|
267
|
+
*/
|
|
268
|
+
textColumnFlowReversed?: boolean;
|
|
269
|
+
/**
|
|
270
|
+
* CONTEXT_DATA group code 144: text column height.
|
|
271
|
+
*/
|
|
272
|
+
textColumnHeight?: number;
|
|
273
|
+
/**
|
|
274
|
+
* CONTEXT_DATA group code 295: use word break for text columns.
|
|
275
|
+
* 0 = false, 1 = true.
|
|
276
|
+
*/
|
|
277
|
+
textUseWordBreak?: boolean;
|
|
278
|
+
/**
|
|
279
|
+
* CONTEXT_DATA group code 304: default/actual text content.
|
|
280
|
+
*/
|
|
281
|
+
textContent?: string;
|
|
282
|
+
/**
|
|
283
|
+
* CONTEXT_DATA group code 290: has MText content flag.
|
|
284
|
+
* 0 = false, 1 = true.
|
|
285
|
+
*/
|
|
286
|
+
hasMText?: boolean;
|
|
287
|
+
/**
|
|
288
|
+
* CONTEXT_DATA group code 296: has block content flag.
|
|
289
|
+
* 0 = false, 1 = true.
|
|
290
|
+
*/
|
|
291
|
+
hasBlock?: boolean;
|
|
292
|
+
/**
|
|
293
|
+
* CONTEXT_DATA block content bundle:
|
|
294
|
+
* - 341 block content ID
|
|
295
|
+
* - 14/24/34 normal
|
|
296
|
+
* - 15/25/35 position
|
|
297
|
+
* - 16 scale
|
|
298
|
+
* - 46 rotation
|
|
299
|
+
* - 93 color
|
|
300
|
+
* - 47 transformation matrix (repeated)
|
|
301
|
+
*/
|
|
15
302
|
blockContent?: {
|
|
16
|
-
|
|
17
|
-
|
|
303
|
+
/**
|
|
304
|
+
* CONTEXT_DATA group code 341: block content ID (handle reference).
|
|
305
|
+
*/
|
|
306
|
+
blockContentId?: string;
|
|
307
|
+
/**
|
|
308
|
+
* CONTEXT_DATA group codes 14/24/34: block content normal direction.
|
|
309
|
+
*/
|
|
310
|
+
normal?: Point3D;
|
|
311
|
+
/**
|
|
312
|
+
* CONTEXT_DATA group codes 15/25/35: block content position.
|
|
313
|
+
*/
|
|
314
|
+
position?: Point3D;
|
|
315
|
+
/**
|
|
316
|
+
* CONTEXT_DATA group code 16 (+ implied 26/36): block content scale.
|
|
317
|
+
*/
|
|
318
|
+
scale?: Point3D;
|
|
319
|
+
/**
|
|
320
|
+
* CONTEXT_DATA group code 46: block content rotation.
|
|
321
|
+
*/
|
|
322
|
+
rotation?: number;
|
|
323
|
+
/**
|
|
324
|
+
* CONTEXT_DATA group code 93: block content color.
|
|
325
|
+
*/
|
|
326
|
+
color?: number;
|
|
327
|
+
/**
|
|
328
|
+
* CONTEXT_DATA group code 47 (repeated): block transformation matrix data.
|
|
329
|
+
*/
|
|
330
|
+
transformationMatrix?: number[];
|
|
18
331
|
};
|
|
19
|
-
|
|
332
|
+
/**
|
|
333
|
+
* CONTEXT_DATA group codes 110/120/130: MLeader plane origin point.
|
|
334
|
+
*/
|
|
335
|
+
planeOrigin?: Point3D;
|
|
336
|
+
/**
|
|
337
|
+
* CONTEXT_DATA group codes 111/121/131: MLeader plane X-axis direction.
|
|
338
|
+
*/
|
|
339
|
+
planeXAxisDirection?: Point3D;
|
|
340
|
+
/**
|
|
341
|
+
* CONTEXT_DATA group codes 112/122/132: MLeader plane Y-axis direction.
|
|
342
|
+
*/
|
|
343
|
+
planeYAxisDirection?: Point3D;
|
|
344
|
+
/**
|
|
345
|
+
* CONTEXT_DATA group code 297: plane normal reversed flag.
|
|
346
|
+
* 0 = false, 1 = true.
|
|
347
|
+
*/
|
|
348
|
+
planeNormalReversed?: boolean;
|
|
349
|
+
/**
|
|
350
|
+
* CONTEXT_DATA nested LEADER sections.
|
|
351
|
+
* Starts at code 302 = "LEADER{" and ends at code 303 = "}".
|
|
352
|
+
*/
|
|
353
|
+
leaderSections?: MultiLeaderLeaderSection[];
|
|
20
354
|
}
|
|
21
355
|
export interface MultiLeaderLeaderSection {
|
|
22
|
-
|
|
356
|
+
/**
|
|
357
|
+
* Leader Node group codes 10/20/30: last leader line point.
|
|
358
|
+
*/
|
|
359
|
+
lastLeaderLinePoint?: Point3D;
|
|
360
|
+
/**
|
|
361
|
+
* Leader Node group code 290: whether last leader line point is set.
|
|
362
|
+
* 0 = false, 1 = true.
|
|
363
|
+
*/
|
|
364
|
+
lastLeaderLinePointSet?: boolean;
|
|
365
|
+
/**
|
|
366
|
+
* Leader Node group codes 11/21/31: dogleg vector.
|
|
367
|
+
*/
|
|
23
368
|
doglegVector?: Point3D;
|
|
369
|
+
/**
|
|
370
|
+
* Leader Node group code 291: whether dogleg vector is set.
|
|
371
|
+
* 0 = false, 1 = true.
|
|
372
|
+
*/
|
|
373
|
+
doglegVectorSet?: boolean;
|
|
374
|
+
/**
|
|
375
|
+
* Leader Node group code 40: dogleg length.
|
|
376
|
+
*/
|
|
24
377
|
doglegLength?: number;
|
|
378
|
+
/**
|
|
379
|
+
* Leader Node break segments:
|
|
380
|
+
* 12/22/32 = break start point, 13/23/33 = break end point.
|
|
381
|
+
*/
|
|
382
|
+
breaks?: MultiLeaderBreak[];
|
|
383
|
+
/**
|
|
384
|
+
* Leader Node group code 90: leader branch index.
|
|
385
|
+
*/
|
|
386
|
+
leaderBranchIndex?: number;
|
|
387
|
+
/**
|
|
388
|
+
* Nested LEADER_LINE blocks in this leader section.
|
|
389
|
+
* Starts at code 304 = "LEADER_LINE{" and ends at code 305 = "}".
|
|
390
|
+
*/
|
|
25
391
|
leaderLines: MultiLeaderLeaderLine[];
|
|
26
392
|
}
|
|
27
393
|
export interface MultiLeaderLeaderLine {
|
|
394
|
+
/**
|
|
395
|
+
* Leader Line group codes 10/20/30 (repeated): vertex coordinates.
|
|
396
|
+
*/
|
|
28
397
|
vertices: Point3D[];
|
|
398
|
+
/**
|
|
399
|
+
* Leader Line group code 90 (repeated): break point index list.
|
|
400
|
+
*/
|
|
401
|
+
breakPointIndexes?: number[];
|
|
402
|
+
/**
|
|
403
|
+
* Leader Line group code 91: leader line index.
|
|
404
|
+
*/
|
|
405
|
+
leaderLineIndex?: number;
|
|
406
|
+
/**
|
|
407
|
+
* Leader Line break segments:
|
|
408
|
+
* 11/21/31 = break start point, 12/22/32 = break end point.
|
|
409
|
+
*/
|
|
29
410
|
breaks?: MultiLeaderBreak[];
|
|
30
411
|
}
|
|
31
412
|
export interface MultiLeaderBreak {
|
|
413
|
+
/**
|
|
414
|
+
* Group code 90 in LEADER_LINE context: break point index.
|
|
415
|
+
*/
|
|
416
|
+
index?: number;
|
|
417
|
+
/**
|
|
418
|
+
* Break start point:
|
|
419
|
+
* - Leader Node: group codes 12/22/32
|
|
420
|
+
* - Leader Line: group codes 11/21/31
|
|
421
|
+
*/
|
|
32
422
|
start: Point3D;
|
|
423
|
+
/**
|
|
424
|
+
* Break end point:
|
|
425
|
+
* - Leader Node: group codes 13/23/33
|
|
426
|
+
* - Leader Line: group codes 12/22/32
|
|
427
|
+
*/
|
|
33
428
|
end: Point3D;
|
|
34
429
|
}
|
|
430
|
+
export interface MultiLeaderIndexedHandle {
|
|
431
|
+
/**
|
|
432
|
+
* Group code 94: override entry index.
|
|
433
|
+
*/
|
|
434
|
+
index: number;
|
|
435
|
+
/**
|
|
436
|
+
* Group code 345: override handle reference.
|
|
437
|
+
*/
|
|
438
|
+
handle: string;
|
|
439
|
+
}
|
|
440
|
+
export interface MultiLeaderBlockAttribute {
|
|
441
|
+
/**
|
|
442
|
+
* Group code 330: block attribute ID handle.
|
|
443
|
+
*/
|
|
444
|
+
id?: string;
|
|
445
|
+
/**
|
|
446
|
+
* Group code 177: block attribute index.
|
|
447
|
+
*/
|
|
448
|
+
index?: number;
|
|
449
|
+
/**
|
|
450
|
+
* Group code 44: block attribute width.
|
|
451
|
+
*/
|
|
452
|
+
width?: number;
|
|
453
|
+
/**
|
|
454
|
+
* Group code 302: block attribute text string.
|
|
455
|
+
*/
|
|
456
|
+
text?: string;
|
|
457
|
+
}
|
|
35
458
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/entities/multileader/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAA;AACvD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAEnD,MAAM,WAAW,iBAAkB,SAAQ,eAAe;IACxD,IAAI,EAAE,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/entities/multileader/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAA;AACvD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAEnD;;;;;;GAMG;AACH,MAAM,WAAW,iBAAkB,SAAQ,eAAe;IACxD;;;OAGG;IACH,IAAI,EAAE,aAAa,CAAA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E,MAAM,CAAA;IAEX;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;CACd"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parser.d.ts","sourceRoot":"","sources":["../../../../../src/parser/entities/parser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;
|
|
1
|
+
{"version":3,"file":"parser.d.ts","sourceRoot":"","sources":["../../../../../src/parser/entities/parser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAyC1E,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AA4C7C;;;GAGG;AACH,wBAAgB,aAAa,CAC3B,IAAI,EAAE,YAAY,EAClB,OAAO,EAAE,eAAe,GACvB,eAAe,EAAE,CA8BnB"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { DxfArrayScanner, ScannerGroup } from '../../DxfArrayScanner.ts';
|
|
2
|
+
import { DXFParserSnippet } from '../../shared/parserGenerator.ts';
|
|
3
|
+
import type { ShapeEntity } from './types.ts';
|
|
4
|
+
export declare const DefaultShapeEntity: {
|
|
5
|
+
thickness: number;
|
|
6
|
+
rotation: number;
|
|
7
|
+
xScale: number;
|
|
8
|
+
obliqueAngle: number;
|
|
9
|
+
extrusionDirection: {
|
|
10
|
+
x: number;
|
|
11
|
+
y: number;
|
|
12
|
+
z: number;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export declare const ShapeEntityParserSnippets: DXFParserSnippet[];
|
|
16
|
+
export declare class ShapeEntityParser {
|
|
17
|
+
static ForEntityName: string;
|
|
18
|
+
private parser;
|
|
19
|
+
parseEntity(scanner: DxfArrayScanner, curr: ScannerGroup): ShapeEntity;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=parser.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parser.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/entities/shape/parser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAC7E,OAAO,EAEL,gBAAgB,EAGjB,MAAM,iCAAiC,CAAA;AAExC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAE7C,eAAO,MAAM,kBAAkB;;;;;;;;;;CAM9B,CAAA;AAED,eAAO,MAAM,yBAAyB,EAAE,gBAAgB,EA+CvD,CAAA;AAED,qBAAa,iBAAiB;IAC5B,MAAM,CAAC,aAAa,SAAU;IAC9B,OAAO,CAAC,MAAM,CAA8D;IAE5E,WAAW,CAAC,OAAO,EAAE,eAAe,EAAE,IAAI,EAAE,YAAY,GAGrC,WAAW;CAE/B"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Point3D } from '../../../types/shared.ts';
|
|
2
|
+
import type { CommonDxfEntity } from '../shared.ts';
|
|
3
|
+
export interface ShapeEntity extends CommonDxfEntity {
|
|
4
|
+
type: 'SHAPE';
|
|
5
|
+
subclassMarker: 'AcDbShape';
|
|
6
|
+
thickness: number;
|
|
7
|
+
insertionPoint: Point3D;
|
|
8
|
+
size: number;
|
|
9
|
+
shapeName: string;
|
|
10
|
+
rotation: number;
|
|
11
|
+
xScale: number;
|
|
12
|
+
obliqueAngle: number;
|
|
13
|
+
extrusionDirection: Point3D;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/entities/shape/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAA;AACvD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAEnD,MAAM,WAAW,WAAY,SAAQ,eAAe;IAClD,IAAI,EAAE,OAAO,CAAA;IACb,cAAc,EAAE,WAAW,CAAA;IAC3B,SAAS,EAAE,MAAM,CAAA;IACjB,cAAc,EAAE,OAAO,CAAA;IACvB,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,MAAM,CAAA;IACjB,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,MAAM,CAAA;IACd,YAAY,EAAE,MAAM,CAAA;IACpB,kBAAkB,EAAE,OAAO,CAAA;CAC5B"}
|
|
@@ -9,6 +9,8 @@ export interface CommonDxfEntity {
|
|
|
9
9
|
ownerBlockRecordSoftId?: string;
|
|
10
10
|
isInPaperSpace?: boolean;
|
|
11
11
|
layer: string;
|
|
12
|
+
/** Layout tab name (group 410) */
|
|
13
|
+
layoutTabName?: string;
|
|
12
14
|
lineType?: string;
|
|
13
15
|
materialObjectHardId?: string;
|
|
14
16
|
colorIndex?: ColorIndex;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../../../src/parser/entities/shared.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAEzD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAA;AAClE,OAAO,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACrE,OAAO,EACL,KAAK,gBAAgB,EAGtB,MAAM,8BAA8B,CAAA;AAErC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAA;AAErD,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;IACd,sBAAsB,CAAC,EAAE,MAAM,CAAA;IAC/B,cAAc,CAAC,EAAE,OAAO,CAA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AO,MAAM,oBAAoB,EAAE,gBAAgB,EAkHlD,CAAA;AAED;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CAAC,SAAS,EAAE,MAAM,GAAG,gBAAgB,EAAE,CAqB7E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/entities/spline/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAA;AACvD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAEnD,MAAM,WAAW,YAAa,SAAQ,eAAe;IACnD,IAAI,EAAE,QAAQ,CAAA;IACd,cAAc,EAAE,YAAY,CAAA;IAC5B,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;IACd,aAAa,EAAE,MAAM,CAAA;IACrB,qBAAqB,EAAE,MAAM,CAAA;IAC7B,iBAAiB,EAAE,MAAM,CAAA;IACzB,aAAa,EAAE,MAAM,CAAA;IACrB,gBAAgB,EAAE,MAAM,CAAA;IACxB,YAAY,EAAE,MAAM,CAAA;IACpB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,KAAK,EAAE,MAAM,EAAE,CAAA;IACf,OAAO,CAAC,EAAE,MAAM,EAAE,CAAA;IAClB,aAAa,EAAE,OAAO,EAAE,CAAA;IACxB,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/entities/spline/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAA;AACvD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAEnD,MAAM,WAAW,YAAa,SAAQ,eAAe;IACnD,IAAI,EAAE,QAAQ,CAAA;IACd,cAAc,EAAE,YAAY,CAAA;IAC5B,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;IACd,aAAa,EAAE,MAAM,CAAA;IACrB,qBAAqB,EAAE,MAAM,CAAA;IAC7B,iBAAiB,EAAE,MAAM,CAAA;IACzB,aAAa,EAAE,MAAM,CAAA;IACrB,gBAAgB,EAAE,MAAM,CAAA;IACxB,YAAY,EAAE,MAAM,CAAA;IACpB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,KAAK,EAAE,MAAM,EAAE,CAAA;IACf,OAAO,CAAC,EAAE,MAAM,EAAE,CAAA;IAClB,aAAa,EAAE,OAAO,EAAE,CAAA;IACxB,SAAS,EAAE,OAAO,EAAE,CAAA;CACrB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parser.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/entities/vertex/parser.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAO7E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;
|
|
1
|
+
{"version":3,"file":"parser.d.ts","sourceRoot":"","sources":["../../../../../../src/parser/entities/vertex/parser.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAO7E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAwE9C,qBAAa,YAAY;IACvB,MAAM,CAAC,aAAa,SAAW;IAC/B,OAAO,CAAC,MAAM,CAA2D;IAEzE,WAAW,CAAC,OAAO,EAAE,eAAe,EAAE,IAAI,EAAE,YAAY,GAGrC,YAAY;CAEhC"}
|