@mlightcad/libredwg-web 0.6.6 → 0.6.7
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/libredwg-web.js +22 -3
- package/dist/libredwg-web.umd.cjs +22 -3
- package/lib/converter/converter.js +12 -0
- package/lib/converter/entityConverter.js +1 -3
- package/lib/enums.d.ts +340 -0
- package/lib/enums.js +351 -0
- package/lib/libredwg-web.js +33 -32
- package/lib/svg/ToSVG.d.ts +16 -0
- package/lib/svg/ToSVG.js +235 -0
- package/lib/svg/util/boundingBox.d.ts +9 -0
- package/lib/svg/util/boundingBox.js +19 -0
- package/lib/svg/util/box2d.d.ts +9 -0
- package/lib/svg/util/box2d.js +19 -0
- package/lib/svg/util/denormalise.d.ts +19 -0
- package/lib/svg/util/denormalise.js +24 -0
- package/lib/svg/util/entityToPolyline.d.ts +2 -0
- package/lib/svg/util/entityToPolyline.js +5 -0
- package/lib/svg/util/getRGBForEntity.d.ts +3 -0
- package/lib/svg/util/getRGBForEntity.js +9 -0
- package/lib/svg/util/rgbToColorAttribute.d.ts +6 -0
- package/lib/svg/util/rgbToColorAttribute.js +4 -0
- package/lib/svg/util/rotate.d.ts +6 -0
- package/lib/svg/util/rotate.js +9 -0
- package/lib/svg/util/toPiecewiseBezier.d.ts +9 -0
- package/lib/svg/util/toPiecewiseBezier.js +24 -0
- package/lib/svg/util/transformBoundingBoxAndElement.d.ts +19 -0
- package/lib/svg/util/transformBoundingBoxAndElement.js +20 -0
- package/lib/types/common.d.ts +2 -1
- package/lib/types/database.d.ts +17 -0
- package/lib/types/database.js +2 -0
- package/lib/types/entities/arc.d.ts +12 -0
- package/lib/types/entities/arc.js +2 -0
- package/lib/types/entities/circle.d.ts +10 -0
- package/lib/types/entities/circle.js +2 -0
- package/lib/types/entities/dimension.d.ts +108 -0
- package/lib/types/entities/dimension.js +2 -0
- package/lib/types/entities/ellipse.d.ts +12 -0
- package/lib/types/entities/ellipse.js +2 -0
- package/lib/types/entities/entity.d.ts +25 -0
- package/lib/types/entities/entity.js +2 -0
- package/lib/types/entities/hatch.d.ts +142 -0
- package/lib/types/entities/hatch.js +2 -0
- package/lib/types/entities/image.d.ts +36 -0
- package/lib/types/entities/image.js +2 -0
- package/lib/types/entities/index.d.ts +24 -0
- package/lib/types/entities/index.js +24 -0
- package/lib/types/entities/insert.d.ts +18 -0
- package/lib/types/entities/insert.js +2 -0
- package/lib/types/entities/leader.d.ts +28 -0
- package/lib/types/entities/leader.js +2 -0
- package/lib/types/entities/line.d.ts +10 -0
- package/lib/types/entities/line.js +2 -0
- package/lib/types/entities/lwpolyline.d.ts +19 -0
- package/lib/types/entities/lwpolyline.js +2 -0
- package/lib/types/entities/mtext.d.ts +37 -0
- package/lib/types/entities/mtext.js +2 -0
- package/lib/types/entities/point.d.ts +10 -0
- package/lib/types/entities/point.js +2 -0
- package/lib/types/entities/polyline.d.ts +34 -0
- package/lib/types/entities/polyline.js +2 -0
- package/lib/types/entities/ray.d.ts +8 -0
- package/lib/types/entities/ray.js +2 -0
- package/lib/types/entities/section.d.ts +19 -0
- package/lib/types/entities/section.js +2 -0
- package/lib/types/entities/solid.d.ts +9 -0
- package/lib/types/entities/solid.js +2 -0
- package/lib/types/entities/spline.d.ts +21 -0
- package/lib/types/entities/spline.js +2 -0
- package/lib/types/entities/table.d.ts +52 -0
- package/lib/types/entities/table.js +2 -0
- package/lib/types/entities/text.d.ts +38 -0
- package/lib/types/entities/text.js +2 -0
- package/lib/types/entities/vertex.d.ts +25 -0
- package/lib/types/entities/vertex.js +2 -0
- package/lib/types/entities/viewport.d.ts +105 -0
- package/lib/types/entities/viewport.js +2 -0
- package/lib/types/entities/xline.d.ts +8 -0
- package/lib/types/entities/xline.js +2 -0
- package/lib/types/enums.d.ts +8 -0
- package/lib/types/enums.js +9 -0
- package/lib/types/objects/common.d.ts +5 -0
- package/lib/types/objects/common.js +2 -0
- package/lib/types/objects/imageDef.d.ts +10 -0
- package/lib/types/objects/imageDef.js +2 -0
- package/lib/types/objects/index.d.ts +5 -0
- package/lib/types/objects/index.js +5 -0
- package/lib/types/objects/layout.d.ts +23 -0
- package/lib/types/objects/layout.js +2 -0
- package/lib/types/objects/plotSetting.d.ts +35 -0
- package/lib/types/objects/plotSetting.js +2 -0
- package/lib/types/shared/xdata.d.ts +10 -0
- package/lib/types/shared/xdata.js +2 -0
- package/lib/types/tables/blockRecord.d.ts +12 -0
- package/lib/types/tables/blockRecord.js +2 -0
- package/lib/types/tables/dimStyle.d.ts +84 -0
- package/lib/types/tables/dimStyle.js +2 -0
- package/lib/types/tables/index.d.ts +8 -0
- package/lib/types/tables/index.js +8 -0
- package/lib/types/tables/layer.d.ts +16 -0
- package/lib/types/tables/layer.js +2 -0
- package/lib/types/tables/ltype.d.ts +21 -0
- package/lib/types/tables/ltype.js +2 -0
- package/lib/types/tables/style.d.ts +13 -0
- package/lib/types/tables/style.js +2 -0
- package/lib/types/tables/table.d.ts +9 -0
- package/lib/types/tables/table.js +2 -0
- package/lib/types/tables/vport.d.ts +42 -0
- package/lib/types/tables/vport.js +2 -0
- package/package.json +1 -1
- package/wasm/libredwg-web.d.ts +529 -529
- package/wasm/libredwg-web.js +15 -15
- package/wasm/libredwg-web.wasm +0 -0
- package/lib/converter/stringConverter.d.ts +0 -3
- package/lib/converter/stringConverter.js +0 -7
- package/lib/database/entities/unknown.d.ts +0 -7
- package/lib/database/entities/unknown.js +0 -2
- package/lib/database/objects/unknown.d.ts +0 -7
- package/lib/database/objects/unknown.js +0 -2
- package/lib/utils/common.d.ts +0 -4
- package/lib/utils/common.js +0 -12
- package/lib/utils/index.d.ts +0 -2
- package/lib/utils/index.js +0 -2
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DwgPoint3D } from '../common';
|
|
2
|
+
import { DwgEntity } from './entity';
|
|
3
|
+
export interface DwgEllipseEntity extends DwgEntity {
|
|
4
|
+
type: 'ELLIPSE';
|
|
5
|
+
center: DwgPoint3D;
|
|
6
|
+
majorAxisEndPoint: DwgPoint3D;
|
|
7
|
+
extrusionDirection: DwgPoint3D;
|
|
8
|
+
axisRatio: number;
|
|
9
|
+
startAngle: number;
|
|
10
|
+
endAngle: number;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=ellipse.d.ts.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { DwgXData } from '../shared/xdata';
|
|
2
|
+
export interface DwgEntity {
|
|
3
|
+
type: string;
|
|
4
|
+
handle: number;
|
|
5
|
+
ownerBlockRecordSoftId: number;
|
|
6
|
+
isInPaperSpace?: boolean;
|
|
7
|
+
layer: string;
|
|
8
|
+
lineType?: string;
|
|
9
|
+
materialObjectHardId?: string;
|
|
10
|
+
colorIndex?: number;
|
|
11
|
+
lineweight?: number;
|
|
12
|
+
lineTypeScale?: number;
|
|
13
|
+
isVisible?: boolean;
|
|
14
|
+
proxyByte?: number;
|
|
15
|
+
proxyEntity?: string;
|
|
16
|
+
color?: number;
|
|
17
|
+
colorName?: string;
|
|
18
|
+
transparency?: number;
|
|
19
|
+
plotStyleHardId?: string;
|
|
20
|
+
shadowMode?: number;
|
|
21
|
+
xdata?: DwgXData;
|
|
22
|
+
ownerdictionaryHardId?: string | number | boolean;
|
|
23
|
+
ownerDictionarySoftId?: string | number | boolean;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=entity.d.ts.map
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { DwgPoint2D, DwgPoint3D } from '../common';
|
|
2
|
+
import { DwgEntity } from './entity';
|
|
3
|
+
export declare enum DwgHatchSolidFill {
|
|
4
|
+
PatternFill = 0,
|
|
5
|
+
SolidFill = 1
|
|
6
|
+
}
|
|
7
|
+
export declare enum DwgHatchAssociativity {
|
|
8
|
+
NonAssociative = 0,// For MPolygon LacksSolidFill
|
|
9
|
+
Associative = 1
|
|
10
|
+
}
|
|
11
|
+
export declare enum DwgHatchStyle {
|
|
12
|
+
Normal = 0,// Odd parity area
|
|
13
|
+
Outer = 1,// Outermost area
|
|
14
|
+
Ignore = 2
|
|
15
|
+
}
|
|
16
|
+
export declare enum DwgHatchPatternType {
|
|
17
|
+
UserDefined = 0,
|
|
18
|
+
Predefined = 1,
|
|
19
|
+
Custom = 2
|
|
20
|
+
}
|
|
21
|
+
export declare enum DwgHatchBoundaryAnnotation {
|
|
22
|
+
NotAnnotated = 0,
|
|
23
|
+
Annotated = 1
|
|
24
|
+
}
|
|
25
|
+
export declare enum DwgHatchGradientFlag {
|
|
26
|
+
Solid = 0,
|
|
27
|
+
Gradient = 1
|
|
28
|
+
}
|
|
29
|
+
export declare enum DwgHatchGradientColorFlag {
|
|
30
|
+
TwoColor = 0,
|
|
31
|
+
OneColor = 1
|
|
32
|
+
}
|
|
33
|
+
export declare enum DwgBoundaryPathTypeFlag {
|
|
34
|
+
Default = 0,
|
|
35
|
+
External = 1,
|
|
36
|
+
Polyline = 2,
|
|
37
|
+
Derived = 4,
|
|
38
|
+
Textbox = 8,
|
|
39
|
+
Outermost = 16
|
|
40
|
+
}
|
|
41
|
+
export declare enum DwgBoundaryPathEdgeType {
|
|
42
|
+
Line = 1,
|
|
43
|
+
Circular = 2,
|
|
44
|
+
Elliptic = 3,
|
|
45
|
+
Spline = 4
|
|
46
|
+
}
|
|
47
|
+
interface DwgBoundaryPathBase {
|
|
48
|
+
boundaryPathTypeFlag: number;
|
|
49
|
+
numberOfSourceBoundaryObjects: number;
|
|
50
|
+
sourceBoundaryObjects: string[];
|
|
51
|
+
}
|
|
52
|
+
export interface DwgPolylineBoundaryPath extends DwgBoundaryPathBase {
|
|
53
|
+
hasBulge: boolean;
|
|
54
|
+
isClosed: boolean;
|
|
55
|
+
numberOfVertices: number;
|
|
56
|
+
vertices: (DwgPoint2D & {
|
|
57
|
+
bulge: number;
|
|
58
|
+
})[];
|
|
59
|
+
}
|
|
60
|
+
export interface DwgEdgeBoundaryPath<EdgeType extends DwgBoundaryPathEdge> extends DwgBoundaryPathBase {
|
|
61
|
+
numberOfEdges: number;
|
|
62
|
+
edges: EdgeType[];
|
|
63
|
+
}
|
|
64
|
+
interface DwgBoundaryPathEdgeCommon {
|
|
65
|
+
type: DwgBoundaryPathEdgeType;
|
|
66
|
+
}
|
|
67
|
+
export type DwgBoundaryPath = DwgPolylineBoundaryPath | DwgEdgeBoundaryPath<DwgBoundaryPathEdge>;
|
|
68
|
+
export interface DwgLineEdge extends DwgBoundaryPathEdgeCommon {
|
|
69
|
+
start: DwgPoint2D;
|
|
70
|
+
end: DwgPoint2D;
|
|
71
|
+
}
|
|
72
|
+
export interface DwgArcEdge extends DwgBoundaryPathEdgeCommon {
|
|
73
|
+
center: DwgPoint2D;
|
|
74
|
+
radius: number;
|
|
75
|
+
startAngle: number;
|
|
76
|
+
endAngle: number;
|
|
77
|
+
isCCW?: boolean;
|
|
78
|
+
}
|
|
79
|
+
export interface DwgEllipseEdge extends DwgBoundaryPathEdgeCommon {
|
|
80
|
+
center: DwgPoint2D;
|
|
81
|
+
end: DwgPoint2D;
|
|
82
|
+
lengthOfMinorAxis: number;
|
|
83
|
+
startAngle: number;
|
|
84
|
+
endAngle: number;
|
|
85
|
+
isCCW?: boolean;
|
|
86
|
+
}
|
|
87
|
+
export interface DwgSplineEdge extends DwgBoundaryPathEdgeCommon {
|
|
88
|
+
degree: number;
|
|
89
|
+
splineFlag: number;
|
|
90
|
+
isPeriodic?: boolean;
|
|
91
|
+
numberOfKnots: number;
|
|
92
|
+
numberOfControlPoints: number;
|
|
93
|
+
knots: number[];
|
|
94
|
+
controlPoints: (DwgPoint2D & {
|
|
95
|
+
weight?: number;
|
|
96
|
+
})[];
|
|
97
|
+
numberOfFitData: number;
|
|
98
|
+
fitDatum: DwgPoint2D[];
|
|
99
|
+
startTangent: DwgPoint2D;
|
|
100
|
+
endTangent: DwgPoint2D;
|
|
101
|
+
}
|
|
102
|
+
export type DwgBoundaryPathEdge = DwgLineEdge | DwgArcEdge | DwgEllipseEdge | DwgSplineEdge;
|
|
103
|
+
export interface DwgHatchDefinitionLine {
|
|
104
|
+
angle: number;
|
|
105
|
+
base: DwgPoint2D;
|
|
106
|
+
offset: DwgPoint2D;
|
|
107
|
+
numberOfDashLengths: number;
|
|
108
|
+
dashLengths: number[];
|
|
109
|
+
}
|
|
110
|
+
interface DwgHatchEntityBase extends DwgEntity {
|
|
111
|
+
type: 'HATCH';
|
|
112
|
+
elevationPoint: DwgPoint3D;
|
|
113
|
+
extrusionDirection?: DwgPoint3D;
|
|
114
|
+
patternName: string;
|
|
115
|
+
solidFill: DwgHatchSolidFill;
|
|
116
|
+
patternFillColor: number;
|
|
117
|
+
associativity: DwgHatchAssociativity;
|
|
118
|
+
numberOfBoundaryPaths: number;
|
|
119
|
+
boundaryPaths: DwgBoundaryPath[];
|
|
120
|
+
hatchStyle: DwgHatchStyle;
|
|
121
|
+
patternType: DwgHatchPatternType;
|
|
122
|
+
patternAngle?: number;
|
|
123
|
+
patternScale?: number;
|
|
124
|
+
numberOfDefinitionLines: number;
|
|
125
|
+
definitionLines: DwgHatchDefinitionLine[];
|
|
126
|
+
pixelSize: number;
|
|
127
|
+
numberOfSeedPoints: number;
|
|
128
|
+
offsetVector?: DwgPoint3D;
|
|
129
|
+
seedPoints?: DwgPoint3D[];
|
|
130
|
+
gradientFlag?: DwgHatchGradientFlag;
|
|
131
|
+
}
|
|
132
|
+
export interface DwgGradientHatchEntity extends DwgHatchEntityBase {
|
|
133
|
+
gradientFlag: DwgHatchGradientFlag.Gradient;
|
|
134
|
+
gradientColorFlag: DwgHatchGradientColorFlag;
|
|
135
|
+
numberOfColors: 0 | 2;
|
|
136
|
+
gradientRotation?: number;
|
|
137
|
+
gradientDefinition: number;
|
|
138
|
+
colorTint?: number;
|
|
139
|
+
}
|
|
140
|
+
export type DwgHatchEntity = DwgGradientHatchEntity | DwgHatchEntityBase;
|
|
141
|
+
export {};
|
|
142
|
+
//# sourceMappingURL=hatch.d.ts.map
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { DwgPoint3D } from '../common';
|
|
2
|
+
import { DwgEntity } from './entity';
|
|
3
|
+
export declare enum DwgImageFlags {
|
|
4
|
+
ShowImage = 1,
|
|
5
|
+
ShowImageWhenNotAlignedWithScreen = 2,
|
|
6
|
+
UseClippingBoundary = 4,
|
|
7
|
+
TransparencyIsOn = 8
|
|
8
|
+
}
|
|
9
|
+
export declare enum DwgImageClippingBoundaryType {
|
|
10
|
+
Rectangular = 1,
|
|
11
|
+
Polygonal = 2
|
|
12
|
+
}
|
|
13
|
+
export declare enum DwgImageClipMode {
|
|
14
|
+
Outside = 0,
|
|
15
|
+
Inside = 1
|
|
16
|
+
}
|
|
17
|
+
export interface DwgImageEntity extends DwgEntity {
|
|
18
|
+
type: 'IMAGE';
|
|
19
|
+
version: number;
|
|
20
|
+
position: DwgPoint3D;
|
|
21
|
+
uPixel: DwgPoint3D;
|
|
22
|
+
vPixel: DwgPoint3D;
|
|
23
|
+
imageSize: DwgPoint3D;
|
|
24
|
+
imageDefHandle: string;
|
|
25
|
+
flags: DwgImageFlags;
|
|
26
|
+
clipping: number;
|
|
27
|
+
brightness: number;
|
|
28
|
+
contrast: number;
|
|
29
|
+
fade: number;
|
|
30
|
+
imageDefReactorHandle: string;
|
|
31
|
+
clippingBoundaryType: DwgImageClippingBoundaryType;
|
|
32
|
+
countBoundaryPoints: number;
|
|
33
|
+
clippingBoundaryPath: DwgPoint3D[];
|
|
34
|
+
clipMode: DwgImageClipMode;
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=image.d.ts.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export * from './arc';
|
|
2
|
+
export * from './circle';
|
|
3
|
+
export * from './dimension';
|
|
4
|
+
export * from './ellipse';
|
|
5
|
+
export * from './entity';
|
|
6
|
+
export * from './hatch';
|
|
7
|
+
export * from './image';
|
|
8
|
+
export * from './insert';
|
|
9
|
+
export * from './leader';
|
|
10
|
+
export * from './line';
|
|
11
|
+
export * from './lwpolyline';
|
|
12
|
+
export * from './mtext';
|
|
13
|
+
export * from './point';
|
|
14
|
+
export * from './polyline';
|
|
15
|
+
export * from './ray';
|
|
16
|
+
export * from './section';
|
|
17
|
+
export * from './solid';
|
|
18
|
+
export * from './spline';
|
|
19
|
+
export * from './table';
|
|
20
|
+
export * from './text';
|
|
21
|
+
export * from './vertex';
|
|
22
|
+
export * from './viewport';
|
|
23
|
+
export * from './xline';
|
|
24
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export * from './arc';
|
|
2
|
+
export * from './circle';
|
|
3
|
+
export * from './dimension';
|
|
4
|
+
export * from './ellipse';
|
|
5
|
+
export * from './entity';
|
|
6
|
+
export * from './hatch';
|
|
7
|
+
export * from './image';
|
|
8
|
+
export * from './insert';
|
|
9
|
+
export * from './leader';
|
|
10
|
+
export * from './line';
|
|
11
|
+
export * from './lwpolyline';
|
|
12
|
+
export * from './mtext';
|
|
13
|
+
export * from './point';
|
|
14
|
+
export * from './polyline';
|
|
15
|
+
export * from './ray';
|
|
16
|
+
export * from './section';
|
|
17
|
+
export * from './solid';
|
|
18
|
+
export * from './spline';
|
|
19
|
+
export * from './table';
|
|
20
|
+
export * from './text';
|
|
21
|
+
export * from './vertex';
|
|
22
|
+
export * from './viewport';
|
|
23
|
+
export * from './xline';
|
|
24
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { DwgPoint3D } from '../common';
|
|
2
|
+
import { DwgEntity } from './entity';
|
|
3
|
+
export interface DwgInsertEntity extends DwgEntity {
|
|
4
|
+
type: 'INSERT';
|
|
5
|
+
isVariableAttributes?: boolean;
|
|
6
|
+
name: string;
|
|
7
|
+
insertionPoint: DwgPoint3D;
|
|
8
|
+
xScale: number;
|
|
9
|
+
yScale: number;
|
|
10
|
+
zScale: number;
|
|
11
|
+
rotation: number;
|
|
12
|
+
columnCount: number;
|
|
13
|
+
rowCount: number;
|
|
14
|
+
columnSpacing: number;
|
|
15
|
+
rowSpacing: number;
|
|
16
|
+
extrusionDirection: DwgPoint3D;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=insert.d.ts.map
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { DwgPoint3D } from '../common';
|
|
2
|
+
import { DwgEntity } from './entity';
|
|
3
|
+
export declare enum DwgLeaderCreationFlag {
|
|
4
|
+
TextAnnotation = 0,
|
|
5
|
+
ToleranceAnnotation = 1,
|
|
6
|
+
BlockReferenceAnnotation = 2,
|
|
7
|
+
NoAnnotation = 3
|
|
8
|
+
}
|
|
9
|
+
export interface DwgLeaderEntity extends DwgEntity {
|
|
10
|
+
type: 'LEADER';
|
|
11
|
+
styleName: string;
|
|
12
|
+
isArrowheadEnabled: boolean;
|
|
13
|
+
isSpline: boolean;
|
|
14
|
+
leaderCreationFlag: DwgLeaderCreationFlag;
|
|
15
|
+
isHooklineSameDirection: boolean;
|
|
16
|
+
isHooklineExists: boolean;
|
|
17
|
+
textHeight?: number;
|
|
18
|
+
textWidth?: number;
|
|
19
|
+
numberOfVertices?: number;
|
|
20
|
+
vertices: DwgPoint3D[];
|
|
21
|
+
byBlockColor?: number;
|
|
22
|
+
associatedAnnotation?: string;
|
|
23
|
+
normal?: DwgPoint3D;
|
|
24
|
+
horizontalDirection?: DwgPoint3D;
|
|
25
|
+
offsetFromBlock?: DwgPoint3D;
|
|
26
|
+
offsetFromAnnotation?: DwgPoint3D;
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=leader.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DwgPoint3D } from '../common';
|
|
2
|
+
import { DwgEntity } from './entity';
|
|
3
|
+
export interface DwgLineEntity extends DwgEntity {
|
|
4
|
+
type: 'LINE';
|
|
5
|
+
thickness: number;
|
|
6
|
+
startPoint: DwgPoint3D;
|
|
7
|
+
endPoint: DwgPoint3D;
|
|
8
|
+
extrusionDirection: DwgPoint3D;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=line.d.ts.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { DwgPoint2D, DwgPoint3D } from '../common';
|
|
2
|
+
import { DwgEntity } from './entity';
|
|
3
|
+
export interface DwgLWPolylineEntity extends DwgEntity {
|
|
4
|
+
type: 'LWPOLYLINE';
|
|
5
|
+
numberOfVertices: number;
|
|
6
|
+
flag: number;
|
|
7
|
+
constantWidth?: number;
|
|
8
|
+
elevation: number;
|
|
9
|
+
thickness: number;
|
|
10
|
+
extrusionDirection: DwgPoint3D;
|
|
11
|
+
vertices: DwgLWPolylineVertex[];
|
|
12
|
+
}
|
|
13
|
+
export interface DwgLWPolylineVertex extends DwgPoint2D {
|
|
14
|
+
id: number;
|
|
15
|
+
startWidth?: number;
|
|
16
|
+
endWidth?: number;
|
|
17
|
+
bulge: number;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=lwpolyline.d.ts.map
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { DwgPoint3D } from '../common';
|
|
2
|
+
import { DwgAttachmentPoint } from './dimension';
|
|
3
|
+
import { DwgEntity } from './entity';
|
|
4
|
+
export declare enum DwgMTextDrawingDirection {
|
|
5
|
+
LEFT_TO_RIGHT = 1,
|
|
6
|
+
TOP_TO_BOTTOM = 3,
|
|
7
|
+
BY_STYLE = 5
|
|
8
|
+
}
|
|
9
|
+
export interface DwgMTextEntity extends DwgEntity {
|
|
10
|
+
type: 'MTEXT';
|
|
11
|
+
insertionPoint: DwgPoint3D;
|
|
12
|
+
height: number;
|
|
13
|
+
width: number;
|
|
14
|
+
attachmentPoint: DwgAttachmentPoint;
|
|
15
|
+
drawingDirection: DwgMTextDrawingDirection;
|
|
16
|
+
text: string[];
|
|
17
|
+
styleName: string;
|
|
18
|
+
extrusionDirection: DwgPoint3D;
|
|
19
|
+
direction: DwgPoint3D;
|
|
20
|
+
rotation: number;
|
|
21
|
+
lineSpacingStyle: number;
|
|
22
|
+
lineSpacing: number;
|
|
23
|
+
backgroundFill: number;
|
|
24
|
+
backgroundColor: number;
|
|
25
|
+
fillBoxScale: number;
|
|
26
|
+
backgroundFillColor: number;
|
|
27
|
+
backgroundFillTransparency: number;
|
|
28
|
+
columnType: number;
|
|
29
|
+
columnCount: number;
|
|
30
|
+
columnFlowReversed: number;
|
|
31
|
+
columnAutoHeight: number;
|
|
32
|
+
columnWidth: number;
|
|
33
|
+
columnGutter: number;
|
|
34
|
+
columnHeight: number;
|
|
35
|
+
annotationHeight: number;
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=mtext.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DwgPoint3D } from '../common';
|
|
2
|
+
import { DwgEntity } from './entity';
|
|
3
|
+
export interface DwgPointEntity extends DwgEntity {
|
|
4
|
+
type: 'POINT';
|
|
5
|
+
position: DwgPoint3D;
|
|
6
|
+
thickness: number;
|
|
7
|
+
extrusionDirection: DwgPoint3D;
|
|
8
|
+
angle: number;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=point.d.ts.map
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { DwgPoint3D } from '../common';
|
|
2
|
+
import { DwgEntity } from './entity';
|
|
3
|
+
import { DwgVertexEntity } from './vertex';
|
|
4
|
+
export declare enum DwgPolylineFlag {
|
|
5
|
+
CLOSED_POLYLINE = 1,
|
|
6
|
+
CURVE_FIT = 2,
|
|
7
|
+
SPLINE_FIT = 4,
|
|
8
|
+
POLYLINE_3D = 8,
|
|
9
|
+
POLYGON_3D = 16,
|
|
10
|
+
CLOSED_POLYGON = 32,
|
|
11
|
+
POLYFACE = 64,
|
|
12
|
+
CONTINUOUS = 128
|
|
13
|
+
}
|
|
14
|
+
export declare enum DwgSmoothType {
|
|
15
|
+
NONE = 0,
|
|
16
|
+
QUADRATIC = 5,
|
|
17
|
+
CUBIC = 6,
|
|
18
|
+
BEZIER = 8
|
|
19
|
+
}
|
|
20
|
+
export interface DwgPolylineEntity extends DwgEntity {
|
|
21
|
+
type: 'POLYLINE';
|
|
22
|
+
thickness: number;
|
|
23
|
+
flag: number;
|
|
24
|
+
startWidth: number;
|
|
25
|
+
endWidth: number;
|
|
26
|
+
meshMVertexCount: number;
|
|
27
|
+
meshNVertexCount: number;
|
|
28
|
+
surfaceMDensity: number;
|
|
29
|
+
surfaceNDensity: number;
|
|
30
|
+
smoothType: DwgSmoothType;
|
|
31
|
+
extrusionDirection: DwgPoint3D;
|
|
32
|
+
vertices: DwgVertexEntity[];
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=polyline.d.ts.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { DwgPoint3D } from '../common';
|
|
2
|
+
import { DwgEntity } from './entity';
|
|
3
|
+
export interface DwgSectionEntity extends DwgEntity {
|
|
4
|
+
type: 'SECTION';
|
|
5
|
+
state: number;
|
|
6
|
+
flag: number;
|
|
7
|
+
name: string;
|
|
8
|
+
verticalDirection: DwgPoint3D;
|
|
9
|
+
topHeight: number;
|
|
10
|
+
bottomHeight: number;
|
|
11
|
+
indicatorTransparency: number;
|
|
12
|
+
indicatorColor: number;
|
|
13
|
+
numberOfVertices: number;
|
|
14
|
+
vertices: DwgPoint3D[];
|
|
15
|
+
numberOfBackLineVertices: number;
|
|
16
|
+
backLineVertices: DwgPoint3D[];
|
|
17
|
+
geometrySettingHardId: string;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=section.d.ts.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DwgPoint3D } from '../common';
|
|
2
|
+
import { DwgEntity } from './entity';
|
|
3
|
+
export interface DwgSolidEntity extends DwgEntity {
|
|
4
|
+
type: 'SOLID';
|
|
5
|
+
points: DwgPoint3D[];
|
|
6
|
+
thickness: number;
|
|
7
|
+
extrusionDirection: DwgPoint3D;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=solid.d.ts.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { DwgPoint3D } from '../common';
|
|
2
|
+
import { DwgEntity } from './entity';
|
|
3
|
+
export interface DwgSplineEntity extends DwgEntity {
|
|
4
|
+
type: 'SPLINE';
|
|
5
|
+
normal?: DwgPoint3D;
|
|
6
|
+
flag: number;
|
|
7
|
+
degree: number;
|
|
8
|
+
numberOfKnots: number;
|
|
9
|
+
numberOfControlPoints: number;
|
|
10
|
+
numberOfFitPoints: number;
|
|
11
|
+
knotTolerance: number;
|
|
12
|
+
controlTolerance: number;
|
|
13
|
+
fitTolerance: number;
|
|
14
|
+
startTangent?: DwgPoint3D;
|
|
15
|
+
endTangent?: DwgPoint3D;
|
|
16
|
+
knots: number[];
|
|
17
|
+
weights?: number[];
|
|
18
|
+
controlPoints: DwgPoint3D[];
|
|
19
|
+
fitPoints: number[];
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=spline.d.ts.map
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { DwgPoint3D } from '../common';
|
|
2
|
+
import { DwgAttachmentPoint } from './dimension';
|
|
3
|
+
import { DwgEntity } from './entity';
|
|
4
|
+
export interface DwgTableCell {
|
|
5
|
+
text: string;
|
|
6
|
+
attachmentPoint: DwgAttachmentPoint;
|
|
7
|
+
textStyle?: string;
|
|
8
|
+
rotation?: number;
|
|
9
|
+
cellType: number;
|
|
10
|
+
flagValue?: number;
|
|
11
|
+
mergedValue?: number;
|
|
12
|
+
autoFit?: number;
|
|
13
|
+
borderWidth?: number;
|
|
14
|
+
borderHeight?: number;
|
|
15
|
+
topBorderVisibility: boolean;
|
|
16
|
+
bottomBorderVisibility: boolean;
|
|
17
|
+
leftBorderVisibility: boolean;
|
|
18
|
+
rightBorderVisibility: boolean;
|
|
19
|
+
overrideFlag?: number;
|
|
20
|
+
virtualEdgeFlag?: number;
|
|
21
|
+
fieldObjetId?: string;
|
|
22
|
+
blockTableRecordId?: string;
|
|
23
|
+
blockScale?: number;
|
|
24
|
+
blockAttrNum?: number;
|
|
25
|
+
attrDefineId?: string[];
|
|
26
|
+
attrText?: string;
|
|
27
|
+
textHeight: number;
|
|
28
|
+
extendedCellFlags?: number;
|
|
29
|
+
}
|
|
30
|
+
export interface DwgTableEntity extends DwgEntity {
|
|
31
|
+
type: 'ACAD_TABLE';
|
|
32
|
+
ownerDictionaryId: string;
|
|
33
|
+
name: string;
|
|
34
|
+
version: number;
|
|
35
|
+
startPoint: DwgPoint3D;
|
|
36
|
+
directionVector: DwgPoint3D;
|
|
37
|
+
attachmentPoint: DwgAttachmentPoint;
|
|
38
|
+
tableValue: number;
|
|
39
|
+
rowCount: number;
|
|
40
|
+
columnCount: number;
|
|
41
|
+
overrideFlag?: number;
|
|
42
|
+
borderColorOverrideFlag?: number;
|
|
43
|
+
borderLineWeightOverrideFlag?: number;
|
|
44
|
+
borderVisibilityOverrideFlag?: number;
|
|
45
|
+
rowHeightArr: number[];
|
|
46
|
+
columnWidthArr: number[];
|
|
47
|
+
tableStyleId?: string;
|
|
48
|
+
blockRecordHandle?: string;
|
|
49
|
+
cells: DwgTableCell[];
|
|
50
|
+
bmpPreview: string;
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=table.d.ts.map
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { DwgPoint2D, DwgPoint3D } from '../common';
|
|
2
|
+
import { DwgEntity } from './entity';
|
|
3
|
+
export declare enum DwgTextGenerationFlag {
|
|
4
|
+
NONE = 0,
|
|
5
|
+
MIRRORED_X = 2,
|
|
6
|
+
MIRRORED_Y = 4
|
|
7
|
+
}
|
|
8
|
+
export declare enum DwgTextHorizontalAlign {
|
|
9
|
+
LEFT = 0,
|
|
10
|
+
CENTER = 1,
|
|
11
|
+
RIGHT = 2,
|
|
12
|
+
ALIGNED = 3,
|
|
13
|
+
MIDDLE = 4,
|
|
14
|
+
FIT = 5
|
|
15
|
+
}
|
|
16
|
+
export declare enum DwgTextVerticalAlign {
|
|
17
|
+
BASELINE = 0,
|
|
18
|
+
BOTTOM = 1,
|
|
19
|
+
MIDDLE = 2,
|
|
20
|
+
TOP = 3
|
|
21
|
+
}
|
|
22
|
+
export interface DwgTextEntity extends DwgEntity {
|
|
23
|
+
type: 'TEXT';
|
|
24
|
+
text: string;
|
|
25
|
+
thickness: number;
|
|
26
|
+
startPoint: DwgPoint2D;
|
|
27
|
+
endPoint: DwgPoint2D;
|
|
28
|
+
textHeight: number;
|
|
29
|
+
rotation: number;
|
|
30
|
+
xScale: number;
|
|
31
|
+
obliqueAngle: number;
|
|
32
|
+
styleName: string;
|
|
33
|
+
generationFlag: number;
|
|
34
|
+
halign: DwgTextHorizontalAlign;
|
|
35
|
+
valign: DwgTextVerticalAlign;
|
|
36
|
+
extrusionDirection: DwgPoint3D;
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=text.d.ts.map
|