abstract-image 3.3.2 → 3.3.3
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/CHANGELOG.md +44 -38
- package/LICENSE +21 -21
- package/README.md +73 -73
- package/lib/exporters/__tests__/dxf2d-export-image/test-defs/dxf2d-ellipse.js +379 -379
- package/lib/exporters/__tests__/dxf2d-export-image/test-defs/dxf2d-group.js +123 -123
- package/lib/exporters/__tests__/dxf2d-export-image/test-defs/dxf2d-line.js +55 -55
- package/lib/exporters/__tests__/dxf2d-export-image/test-defs/dxf2d-polygon.js +89 -89
- package/lib/exporters/__tests__/dxf2d-export-image/test-defs/dxf2d-polyline.js +79 -79
- package/lib/exporters/__tests__/dxf2d-export-image/test-defs/dxf2d-rectangle.js +99 -99
- package/lib/exporters/__tests__/dxf2d-export-image/test-defs/dxf2d-text-growth-directions.js +135 -135
- package/lib/exporters/__tests__/dxf2d-export-image/test-defs/dxf2d-text.js +63 -63
- package/lib/exporters/__tests__/eps-export-image/test-defs/eps-ellipse.js +24 -24
- package/lib/exporters/__tests__/eps-export-image/test-defs/eps-empty-text.js +26 -26
- package/lib/exporters/__tests__/eps-export-image/test-defs/eps-group.js +31 -31
- package/lib/exporters/__tests__/eps-export-image/test-defs/eps-line.js +20 -20
- package/lib/exporters/__tests__/eps-export-image/test-defs/eps-polygon.js +34 -34
- package/lib/exporters/__tests__/eps-export-image/test-defs/eps-polyline.js +26 -26
- package/lib/exporters/__tests__/eps-export-image/test-defs/eps-rectangle.js +20 -20
- package/lib/exporters/__tests__/eps-export-image/test-defs/eps-text-growth-directions.js +59 -59
- package/lib/exporters/__tests__/eps-export-image/test-defs/eps-text.js +26 -26
- package/package.json +4 -2
- package/src/__stories__/react-svg-export/example-1.stories.tsx +54 -54
- package/src/__stories__/svg-export/example-1.stories.tsx +42 -42
- package/src/exporters/__tests__/dxf2d-export-image/export-test-def.ts +11 -11
- package/src/exporters/__tests__/dxf2d-export-image/export.test.tsx +13 -13
- package/src/exporters/__tests__/dxf2d-export-image/test-defs/dxf2d-ellipse.ts +405 -405
- package/src/exporters/__tests__/dxf2d-export-image/test-defs/dxf2d-group.ts +166 -166
- package/src/exporters/__tests__/dxf2d-export-image/test-defs/dxf2d-line.ts +80 -80
- package/src/exporters/__tests__/dxf2d-export-image/test-defs/dxf2d-polygon.ts +114 -114
- package/src/exporters/__tests__/dxf2d-export-image/test-defs/dxf2d-polyline.ts +103 -103
- package/src/exporters/__tests__/dxf2d-export-image/test-defs/dxf2d-rectangle.ts +125 -125
- package/src/exporters/__tests__/dxf2d-export-image/test-defs/dxf2d-text-growth-directions.ts +214 -214
- package/src/exporters/__tests__/dxf2d-export-image/test-defs/dxf2d-text.ts +97 -97
- package/src/exporters/__tests__/eps-export-image/export-test-def.ts +11 -11
- package/src/exporters/__tests__/eps-export-image/export.test.tsx +13 -13
- package/src/exporters/__tests__/eps-export-image/test-defs/eps-ellipse.ts +50 -50
- package/src/exporters/__tests__/eps-export-image/test-defs/eps-empty-text.ts +60 -60
- package/src/exporters/__tests__/eps-export-image/test-defs/eps-group.ts +74 -74
- package/src/exporters/__tests__/eps-export-image/test-defs/eps-line.ts +45 -45
- package/src/exporters/__tests__/eps-export-image/test-defs/eps-polygon.ts +65 -65
- package/src/exporters/__tests__/eps-export-image/test-defs/eps-polyline.ts +58 -58
- package/src/exporters/__tests__/eps-export-image/test-defs/eps-rectangle.ts +46 -46
- package/src/exporters/__tests__/eps-export-image/test-defs/eps-text-growth-directions.ts +138 -138
- package/src/exporters/__tests__/eps-export-image/test-defs/eps-text.ts +60 -60
- package/src/exporters/__tests__/exception/png-unsupported.test.tsx +25 -25
- package/src/exporters/__tests__/exception/react-svg-direction-exception.test.tsx +65 -65
- package/src/exporters/__tests__/exception/svg-direction-exception.test.tsx +65 -65
- package/src/exporters/__tests__/png-export-image/export-test-def.ts +11 -11
- package/src/exporters/__tests__/png-export-image/export.test.tsx +13 -13
- package/src/exporters/__tests__/png-export-image/test-defs/png-createPNG.tsx +26 -26
- package/src/exporters/__tests__/react-svg-export-image/export-test-def.tsx +13 -13
- package/src/exporters/__tests__/react-svg-export-image/export.test.tsx +13 -13
- package/src/exporters/__tests__/react-svg-export-image/test-defs/react-svg-binary-png.tsx +26 -26
- package/src/exporters/__tests__/react-svg-export-image/test-defs/react-svg-binary-url.tsx +26 -26
- package/src/exporters/__tests__/react-svg-export-image/test-defs/react-svg-binary.tsx +25 -25
- package/src/exporters/__tests__/react-svg-export-image/test-defs/react-svg-callback.tsx +60 -60
- package/src/exporters/__tests__/react-svg-export-image/test-defs/react-svg-ellipse.tsx +28 -28
- package/src/exporters/__tests__/react-svg-export-image/test-defs/react-svg-empty-text.tsx +35 -35
- package/src/exporters/__tests__/react-svg-export-image/test-defs/react-svg-group.tsx +44 -44
- package/src/exporters/__tests__/react-svg-export-image/test-defs/react-svg-line.tsx +26 -26
- package/src/exporters/__tests__/react-svg-export-image/test-defs/react-svg-polygon.tsx +32 -32
- package/src/exporters/__tests__/react-svg-export-image/test-defs/react-svg-polyline.tsx +33 -33
- package/src/exporters/__tests__/react-svg-export-image/test-defs/react-svg-rectangle.tsx +27 -27
- package/src/exporters/__tests__/react-svg-export-image/test-defs/react-svg-subimage.tsx +36 -36
- package/src/exporters/__tests__/react-svg-export-image/test-defs/react-svg-text-bold.tsx +50 -50
- package/src/exporters/__tests__/react-svg-export-image/test-defs/react-svg-text-growth-directions.tsx +80 -80
- package/src/exporters/__tests__/react-svg-export-image/test-defs/react-svg-text-italic.tsx +65 -65
- package/src/exporters/__tests__/react-svg-export-image/test-defs/react-svg-text-sub.tsx +35 -35
- package/src/exporters/__tests__/react-svg-export-image/test-defs/react-svg-text.tsx +35 -35
- package/src/exporters/__tests__/svg-export-image/export-test-def.ts +11 -11
- package/src/exporters/__tests__/svg-export-image/export.test.tsx +13 -13
- package/src/exporters/__tests__/svg-export-image/test-defs/svg-binary.tsx +25 -25
- package/src/exporters/__tests__/svg-export-image/test-defs/svg-ellipse.ts +27 -27
- package/src/exporters/__tests__/svg-export-image/test-defs/svg-empty-text.ts +34 -34
- package/src/exporters/__tests__/svg-export-image/test-defs/svg-group.ts +44 -44
- package/src/exporters/__tests__/svg-export-image/test-defs/svg-line.ts +26 -26
- package/src/exporters/__tests__/svg-export-image/test-defs/svg-polygon.ts +32 -32
- package/src/exporters/__tests__/svg-export-image/test-defs/svg-polyline.ts +33 -33
- package/src/exporters/__tests__/svg-export-image/test-defs/svg-rectangle.ts +27 -27
- package/src/exporters/__tests__/svg-export-image/test-defs/svg-text-bold.ts +50 -50
- package/src/exporters/__tests__/svg-export-image/test-defs/svg-text-growth-directions.ts +80 -80
- package/src/exporters/__tests__/svg-export-image/test-defs/svg-text-italic.ts +65 -65
- package/src/exporters/__tests__/svg-export-image/test-defs/svg-text.ts +35 -35
- package/src/exporters/dxf2d-export-image.ts +218 -218
- package/src/exporters/eps-export-image.ts +154 -154
- package/src/exporters/index.ts +3 -3
- package/src/exporters/png-export-image.ts +12 -12
- package/src/exporters/react-svg-export-image.tsx +315 -315
- package/src/exporters/svg-export-image.ts +309 -309
- package/src/index.ts +11 -11
- package/src/model/__tests__/color/export-test-def.ts +13 -13
- package/src/model/__tests__/color/export.test.tsx +14 -14
- package/src/model/__tests__/color/test-defs/color-from-string.ts +46 -46
- package/src/model/__tests__/color/test-defs/color-to-string.ts +35 -35
- package/src/model/__tests__/color/test-defs/color-undefined-2.ts +8 -8
- package/src/model/__tests__/color/test-defs/color-undefined.ts +8 -8
- package/src/model/abstract-image.ts +25 -25
- package/src/model/color.ts +52 -52
- package/src/model/component.ts +279 -279
- package/src/model/index.ts +5 -5
- package/src/model/point.ts +11 -11
- package/src/model/size.ts +11 -11
- package/lib/exporters/__tests__/svg-export-image.test.d.ts +0 -2
- package/lib/exporters/__tests__/svg-export-image.test.d.ts.map +0 -1
- package/lib/exporters/__tests__/svg-export-image.test.js +0 -35
- package/lib/exporters/__tests__/svg-export-image.test.js.map +0 -1
|
@@ -32,129 +32,129 @@ const dxf = AbstractImage.dxf2dExportImage(image);
|
|
|
32
32
|
exports.test = {
|
|
33
33
|
name: "dxf2d group",
|
|
34
34
|
abstractImage: dxf,
|
|
35
|
-
expectedImage: `999
|
|
36
|
-
ELIGO DXF GENERATOR
|
|
37
|
-
0
|
|
38
|
-
SECTION
|
|
39
|
-
2
|
|
40
|
-
HEADER
|
|
41
|
-
9
|
|
42
|
-
$ACADVER
|
|
43
|
-
1
|
|
44
|
-
AC1009
|
|
45
|
-
9
|
|
46
|
-
$INSBASE
|
|
47
|
-
10
|
|
48
|
-
0.0
|
|
49
|
-
20
|
|
50
|
-
0.0
|
|
51
|
-
30
|
|
52
|
-
0.0
|
|
53
|
-
9
|
|
54
|
-
$EXTMIN
|
|
55
|
-
10
|
|
56
|
-
0.0
|
|
57
|
-
20
|
|
58
|
-
0.0
|
|
59
|
-
9
|
|
60
|
-
$EXTMAX
|
|
61
|
-
10
|
|
62
|
-
400
|
|
63
|
-
20
|
|
64
|
-
400
|
|
65
|
-
0
|
|
66
|
-
ENDSEC
|
|
67
|
-
0
|
|
68
|
-
SECTION
|
|
69
|
-
2
|
|
70
|
-
ENTITIES
|
|
71
|
-
0
|
|
72
|
-
TEXT
|
|
73
|
-
8
|
|
74
|
-
Text
|
|
75
|
-
10
|
|
76
|
-
200
|
|
77
|
-
20
|
|
78
|
-
200
|
|
79
|
-
30
|
|
80
|
-
0.0
|
|
81
|
-
11
|
|
82
|
-
200
|
|
83
|
-
21
|
|
84
|
-
200
|
|
85
|
-
31
|
|
86
|
-
0.0
|
|
87
|
-
40
|
|
88
|
-
10
|
|
89
|
-
1
|
|
90
|
-
Test
|
|
91
|
-
72
|
|
92
|
-
1
|
|
93
|
-
73
|
|
94
|
-
2
|
|
95
|
-
0
|
|
96
|
-
POLYLINE
|
|
97
|
-
8
|
|
98
|
-
0
|
|
99
|
-
66
|
|
100
|
-
1
|
|
101
|
-
0
|
|
102
|
-
VERTEX
|
|
103
|
-
8
|
|
104
|
-
0
|
|
105
|
-
10
|
|
106
|
-
10
|
|
107
|
-
20
|
|
108
|
-
350
|
|
109
|
-
30
|
|
110
|
-
0.0
|
|
111
|
-
0
|
|
112
|
-
VERTEX
|
|
113
|
-
8
|
|
114
|
-
0
|
|
115
|
-
10
|
|
116
|
-
50
|
|
117
|
-
20
|
|
118
|
-
350
|
|
119
|
-
30
|
|
120
|
-
0.0
|
|
121
|
-
0
|
|
122
|
-
VERTEX
|
|
123
|
-
8
|
|
124
|
-
0
|
|
125
|
-
10
|
|
126
|
-
50
|
|
127
|
-
20
|
|
128
|
-
340
|
|
129
|
-
30
|
|
130
|
-
0.0
|
|
131
|
-
0
|
|
132
|
-
VERTEX
|
|
133
|
-
8
|
|
134
|
-
0
|
|
135
|
-
10
|
|
136
|
-
10
|
|
137
|
-
20
|
|
138
|
-
340
|
|
139
|
-
30
|
|
140
|
-
0.0
|
|
141
|
-
0
|
|
142
|
-
VERTEX
|
|
143
|
-
8
|
|
144
|
-
0
|
|
145
|
-
10
|
|
146
|
-
10
|
|
147
|
-
20
|
|
148
|
-
350
|
|
149
|
-
30
|
|
150
|
-
0.0
|
|
151
|
-
0
|
|
152
|
-
SEQEND
|
|
153
|
-
8
|
|
154
|
-
0
|
|
155
|
-
0
|
|
156
|
-
ENDSEC
|
|
157
|
-
0
|
|
35
|
+
expectedImage: `999
|
|
36
|
+
ELIGO DXF GENERATOR
|
|
37
|
+
0
|
|
38
|
+
SECTION
|
|
39
|
+
2
|
|
40
|
+
HEADER
|
|
41
|
+
9
|
|
42
|
+
$ACADVER
|
|
43
|
+
1
|
|
44
|
+
AC1009
|
|
45
|
+
9
|
|
46
|
+
$INSBASE
|
|
47
|
+
10
|
|
48
|
+
0.0
|
|
49
|
+
20
|
|
50
|
+
0.0
|
|
51
|
+
30
|
|
52
|
+
0.0
|
|
53
|
+
9
|
|
54
|
+
$EXTMIN
|
|
55
|
+
10
|
|
56
|
+
0.0
|
|
57
|
+
20
|
|
58
|
+
0.0
|
|
59
|
+
9
|
|
60
|
+
$EXTMAX
|
|
61
|
+
10
|
|
62
|
+
400
|
|
63
|
+
20
|
|
64
|
+
400
|
|
65
|
+
0
|
|
66
|
+
ENDSEC
|
|
67
|
+
0
|
|
68
|
+
SECTION
|
|
69
|
+
2
|
|
70
|
+
ENTITIES
|
|
71
|
+
0
|
|
72
|
+
TEXT
|
|
73
|
+
8
|
|
74
|
+
Text
|
|
75
|
+
10
|
|
76
|
+
200
|
|
77
|
+
20
|
|
78
|
+
200
|
|
79
|
+
30
|
|
80
|
+
0.0
|
|
81
|
+
11
|
|
82
|
+
200
|
|
83
|
+
21
|
|
84
|
+
200
|
|
85
|
+
31
|
|
86
|
+
0.0
|
|
87
|
+
40
|
|
88
|
+
10
|
|
89
|
+
1
|
|
90
|
+
Test
|
|
91
|
+
72
|
|
92
|
+
1
|
|
93
|
+
73
|
|
94
|
+
2
|
|
95
|
+
0
|
|
96
|
+
POLYLINE
|
|
97
|
+
8
|
|
98
|
+
0
|
|
99
|
+
66
|
|
100
|
+
1
|
|
101
|
+
0
|
|
102
|
+
VERTEX
|
|
103
|
+
8
|
|
104
|
+
0
|
|
105
|
+
10
|
|
106
|
+
10
|
|
107
|
+
20
|
|
108
|
+
350
|
|
109
|
+
30
|
|
110
|
+
0.0
|
|
111
|
+
0
|
|
112
|
+
VERTEX
|
|
113
|
+
8
|
|
114
|
+
0
|
|
115
|
+
10
|
|
116
|
+
50
|
|
117
|
+
20
|
|
118
|
+
350
|
|
119
|
+
30
|
|
120
|
+
0.0
|
|
121
|
+
0
|
|
122
|
+
VERTEX
|
|
123
|
+
8
|
|
124
|
+
0
|
|
125
|
+
10
|
|
126
|
+
50
|
|
127
|
+
20
|
|
128
|
+
340
|
|
129
|
+
30
|
|
130
|
+
0.0
|
|
131
|
+
0
|
|
132
|
+
VERTEX
|
|
133
|
+
8
|
|
134
|
+
0
|
|
135
|
+
10
|
|
136
|
+
10
|
|
137
|
+
20
|
|
138
|
+
340
|
|
139
|
+
30
|
|
140
|
+
0.0
|
|
141
|
+
0
|
|
142
|
+
VERTEX
|
|
143
|
+
8
|
|
144
|
+
0
|
|
145
|
+
10
|
|
146
|
+
10
|
|
147
|
+
20
|
|
148
|
+
350
|
|
149
|
+
30
|
|
150
|
+
0.0
|
|
151
|
+
0
|
|
152
|
+
SEQEND
|
|
153
|
+
8
|
|
154
|
+
0
|
|
155
|
+
0
|
|
156
|
+
ENDSEC
|
|
157
|
+
0
|
|
158
158
|
EOF`,
|
|
159
159
|
};
|
|
160
160
|
//# sourceMappingURL=dxf2d-group.js.map
|
|
@@ -29,61 +29,61 @@ const dxf = AbstractImage.dxf2dExportImage(image);
|
|
|
29
29
|
exports.test = {
|
|
30
30
|
name: "dxf2d line",
|
|
31
31
|
abstractImage: dxf,
|
|
32
|
-
expectedImage: `999
|
|
33
|
-
ELIGO DXF GENERATOR
|
|
34
|
-
0
|
|
35
|
-
SECTION
|
|
36
|
-
2
|
|
37
|
-
HEADER
|
|
38
|
-
9
|
|
39
|
-
$ACADVER
|
|
40
|
-
1
|
|
41
|
-
AC1009
|
|
42
|
-
9
|
|
43
|
-
$INSBASE
|
|
44
|
-
10
|
|
45
|
-
0.0
|
|
46
|
-
20
|
|
47
|
-
0.0
|
|
48
|
-
30
|
|
49
|
-
0.0
|
|
50
|
-
9
|
|
51
|
-
$EXTMIN
|
|
52
|
-
10
|
|
53
|
-
0.0
|
|
54
|
-
20
|
|
55
|
-
0.0
|
|
56
|
-
9
|
|
57
|
-
$EXTMAX
|
|
58
|
-
10
|
|
59
|
-
400
|
|
60
|
-
20
|
|
61
|
-
400
|
|
62
|
-
0
|
|
63
|
-
ENDSEC
|
|
64
|
-
0
|
|
65
|
-
SECTION
|
|
66
|
-
2
|
|
67
|
-
ENTITIES
|
|
68
|
-
0
|
|
69
|
-
LINE
|
|
70
|
-
8
|
|
71
|
-
Lines
|
|
72
|
-
10
|
|
73
|
-
200
|
|
74
|
-
20
|
|
75
|
-
400
|
|
76
|
-
30
|
|
77
|
-
0.0
|
|
78
|
-
11
|
|
79
|
-
200
|
|
80
|
-
21
|
|
81
|
-
0
|
|
82
|
-
31
|
|
83
|
-
0.0
|
|
84
|
-
0
|
|
85
|
-
ENDSEC
|
|
86
|
-
0
|
|
32
|
+
expectedImage: `999
|
|
33
|
+
ELIGO DXF GENERATOR
|
|
34
|
+
0
|
|
35
|
+
SECTION
|
|
36
|
+
2
|
|
37
|
+
HEADER
|
|
38
|
+
9
|
|
39
|
+
$ACADVER
|
|
40
|
+
1
|
|
41
|
+
AC1009
|
|
42
|
+
9
|
|
43
|
+
$INSBASE
|
|
44
|
+
10
|
|
45
|
+
0.0
|
|
46
|
+
20
|
|
47
|
+
0.0
|
|
48
|
+
30
|
|
49
|
+
0.0
|
|
50
|
+
9
|
|
51
|
+
$EXTMIN
|
|
52
|
+
10
|
|
53
|
+
0.0
|
|
54
|
+
20
|
|
55
|
+
0.0
|
|
56
|
+
9
|
|
57
|
+
$EXTMAX
|
|
58
|
+
10
|
|
59
|
+
400
|
|
60
|
+
20
|
|
61
|
+
400
|
|
62
|
+
0
|
|
63
|
+
ENDSEC
|
|
64
|
+
0
|
|
65
|
+
SECTION
|
|
66
|
+
2
|
|
67
|
+
ENTITIES
|
|
68
|
+
0
|
|
69
|
+
LINE
|
|
70
|
+
8
|
|
71
|
+
Lines
|
|
72
|
+
10
|
|
73
|
+
200
|
|
74
|
+
20
|
|
75
|
+
400
|
|
76
|
+
30
|
|
77
|
+
0.0
|
|
78
|
+
11
|
|
79
|
+
200
|
|
80
|
+
21
|
|
81
|
+
0
|
|
82
|
+
31
|
|
83
|
+
0.0
|
|
84
|
+
0
|
|
85
|
+
ENDSEC
|
|
86
|
+
0
|
|
87
87
|
EOF`,
|
|
88
88
|
};
|
|
89
89
|
//# sourceMappingURL=dxf2d-line.js.map
|
|
@@ -29,95 +29,95 @@ const dxf = AbstractImage.dxf2dExportImage(image);
|
|
|
29
29
|
exports.test = {
|
|
30
30
|
name: "dxf2d polygon",
|
|
31
31
|
abstractImage: dxf,
|
|
32
|
-
expectedImage: `999
|
|
33
|
-
ELIGO DXF GENERATOR
|
|
34
|
-
0
|
|
35
|
-
SECTION
|
|
36
|
-
2
|
|
37
|
-
HEADER
|
|
38
|
-
9
|
|
39
|
-
$ACADVER
|
|
40
|
-
1
|
|
41
|
-
AC1009
|
|
42
|
-
9
|
|
43
|
-
$INSBASE
|
|
44
|
-
10
|
|
45
|
-
0.0
|
|
46
|
-
20
|
|
47
|
-
0.0
|
|
48
|
-
30
|
|
49
|
-
0.0
|
|
50
|
-
9
|
|
51
|
-
$EXTMIN
|
|
52
|
-
10
|
|
53
|
-
0.0
|
|
54
|
-
20
|
|
55
|
-
0.0
|
|
56
|
-
9
|
|
57
|
-
$EXTMAX
|
|
58
|
-
10
|
|
59
|
-
400
|
|
60
|
-
20
|
|
61
|
-
400
|
|
62
|
-
0
|
|
63
|
-
ENDSEC
|
|
64
|
-
0
|
|
65
|
-
SECTION
|
|
66
|
-
2
|
|
67
|
-
ENTITIES
|
|
68
|
-
0
|
|
69
|
-
POLYLINE
|
|
70
|
-
8
|
|
71
|
-
0
|
|
72
|
-
66
|
|
73
|
-
1
|
|
74
|
-
0
|
|
75
|
-
VERTEX
|
|
76
|
-
8
|
|
77
|
-
0
|
|
78
|
-
10
|
|
79
|
-
200
|
|
80
|
-
20
|
|
81
|
-
150
|
|
82
|
-
30
|
|
83
|
-
0.0
|
|
84
|
-
0
|
|
85
|
-
VERTEX
|
|
86
|
-
8
|
|
87
|
-
0
|
|
88
|
-
10
|
|
89
|
-
250
|
|
90
|
-
20
|
|
91
|
-
150
|
|
92
|
-
30
|
|
93
|
-
0.0
|
|
94
|
-
0
|
|
95
|
-
VERTEX
|
|
96
|
-
8
|
|
97
|
-
0
|
|
98
|
-
10
|
|
99
|
-
200
|
|
100
|
-
20
|
|
101
|
-
200
|
|
102
|
-
30
|
|
103
|
-
0.0
|
|
104
|
-
0
|
|
105
|
-
VERTEX
|
|
106
|
-
8
|
|
107
|
-
0
|
|
108
|
-
10
|
|
109
|
-
200
|
|
110
|
-
20
|
|
111
|
-
150
|
|
112
|
-
30
|
|
113
|
-
0.0
|
|
114
|
-
0
|
|
115
|
-
SEQEND
|
|
116
|
-
8
|
|
117
|
-
0
|
|
118
|
-
0
|
|
119
|
-
ENDSEC
|
|
120
|
-
0
|
|
32
|
+
expectedImage: `999
|
|
33
|
+
ELIGO DXF GENERATOR
|
|
34
|
+
0
|
|
35
|
+
SECTION
|
|
36
|
+
2
|
|
37
|
+
HEADER
|
|
38
|
+
9
|
|
39
|
+
$ACADVER
|
|
40
|
+
1
|
|
41
|
+
AC1009
|
|
42
|
+
9
|
|
43
|
+
$INSBASE
|
|
44
|
+
10
|
|
45
|
+
0.0
|
|
46
|
+
20
|
|
47
|
+
0.0
|
|
48
|
+
30
|
|
49
|
+
0.0
|
|
50
|
+
9
|
|
51
|
+
$EXTMIN
|
|
52
|
+
10
|
|
53
|
+
0.0
|
|
54
|
+
20
|
|
55
|
+
0.0
|
|
56
|
+
9
|
|
57
|
+
$EXTMAX
|
|
58
|
+
10
|
|
59
|
+
400
|
|
60
|
+
20
|
|
61
|
+
400
|
|
62
|
+
0
|
|
63
|
+
ENDSEC
|
|
64
|
+
0
|
|
65
|
+
SECTION
|
|
66
|
+
2
|
|
67
|
+
ENTITIES
|
|
68
|
+
0
|
|
69
|
+
POLYLINE
|
|
70
|
+
8
|
|
71
|
+
0
|
|
72
|
+
66
|
|
73
|
+
1
|
|
74
|
+
0
|
|
75
|
+
VERTEX
|
|
76
|
+
8
|
|
77
|
+
0
|
|
78
|
+
10
|
|
79
|
+
200
|
|
80
|
+
20
|
|
81
|
+
150
|
|
82
|
+
30
|
|
83
|
+
0.0
|
|
84
|
+
0
|
|
85
|
+
VERTEX
|
|
86
|
+
8
|
|
87
|
+
0
|
|
88
|
+
10
|
|
89
|
+
250
|
|
90
|
+
20
|
|
91
|
+
150
|
|
92
|
+
30
|
|
93
|
+
0.0
|
|
94
|
+
0
|
|
95
|
+
VERTEX
|
|
96
|
+
8
|
|
97
|
+
0
|
|
98
|
+
10
|
|
99
|
+
200
|
|
100
|
+
20
|
|
101
|
+
200
|
|
102
|
+
30
|
|
103
|
+
0.0
|
|
104
|
+
0
|
|
105
|
+
VERTEX
|
|
106
|
+
8
|
|
107
|
+
0
|
|
108
|
+
10
|
|
109
|
+
200
|
|
110
|
+
20
|
|
111
|
+
150
|
|
112
|
+
30
|
|
113
|
+
0.0
|
|
114
|
+
0
|
|
115
|
+
SEQEND
|
|
116
|
+
8
|
|
117
|
+
0
|
|
118
|
+
0
|
|
119
|
+
ENDSEC
|
|
120
|
+
0
|
|
121
121
|
EOF`,
|
|
122
122
|
};
|
|
123
123
|
//# sourceMappingURL=dxf2d-polygon.js.map
|
|
@@ -29,85 +29,85 @@ const dxf = AbstractImage.dxf2dExportImage(image);
|
|
|
29
29
|
exports.test = {
|
|
30
30
|
name: "dxf2d polyline",
|
|
31
31
|
abstractImage: dxf,
|
|
32
|
-
expectedImage: `999
|
|
33
|
-
ELIGO DXF GENERATOR
|
|
34
|
-
0
|
|
35
|
-
SECTION
|
|
36
|
-
2
|
|
37
|
-
HEADER
|
|
38
|
-
9
|
|
39
|
-
$ACADVER
|
|
40
|
-
1
|
|
41
|
-
AC1009
|
|
42
|
-
9
|
|
43
|
-
$INSBASE
|
|
44
|
-
10
|
|
45
|
-
0.0
|
|
46
|
-
20
|
|
47
|
-
0.0
|
|
48
|
-
30
|
|
49
|
-
0.0
|
|
50
|
-
9
|
|
51
|
-
$EXTMIN
|
|
52
|
-
10
|
|
53
|
-
0.0
|
|
54
|
-
20
|
|
55
|
-
0.0
|
|
56
|
-
9
|
|
57
|
-
$EXTMAX
|
|
58
|
-
10
|
|
59
|
-
400
|
|
60
|
-
20
|
|
61
|
-
400
|
|
62
|
-
0
|
|
63
|
-
ENDSEC
|
|
64
|
-
0
|
|
65
|
-
SECTION
|
|
66
|
-
2
|
|
67
|
-
ENTITIES
|
|
68
|
-
0
|
|
69
|
-
POLYLINE
|
|
70
|
-
8
|
|
71
|
-
0
|
|
72
|
-
66
|
|
73
|
-
1
|
|
74
|
-
0
|
|
75
|
-
VERTEX
|
|
76
|
-
8
|
|
77
|
-
0
|
|
78
|
-
10
|
|
79
|
-
10
|
|
80
|
-
20
|
|
81
|
-
390
|
|
82
|
-
30
|
|
83
|
-
0.0
|
|
84
|
-
0
|
|
85
|
-
VERTEX
|
|
86
|
-
8
|
|
87
|
-
0
|
|
88
|
-
10
|
|
89
|
-
390
|
|
90
|
-
20
|
|
91
|
-
10
|
|
92
|
-
30
|
|
93
|
-
0.0
|
|
94
|
-
0
|
|
95
|
-
VERTEX
|
|
96
|
-
8
|
|
97
|
-
0
|
|
98
|
-
10
|
|
99
|
-
390
|
|
100
|
-
20
|
|
101
|
-
390
|
|
102
|
-
30
|
|
103
|
-
0.0
|
|
104
|
-
0
|
|
105
|
-
SEQEND
|
|
106
|
-
8
|
|
107
|
-
0
|
|
108
|
-
0
|
|
109
|
-
ENDSEC
|
|
110
|
-
0
|
|
32
|
+
expectedImage: `999
|
|
33
|
+
ELIGO DXF GENERATOR
|
|
34
|
+
0
|
|
35
|
+
SECTION
|
|
36
|
+
2
|
|
37
|
+
HEADER
|
|
38
|
+
9
|
|
39
|
+
$ACADVER
|
|
40
|
+
1
|
|
41
|
+
AC1009
|
|
42
|
+
9
|
|
43
|
+
$INSBASE
|
|
44
|
+
10
|
|
45
|
+
0.0
|
|
46
|
+
20
|
|
47
|
+
0.0
|
|
48
|
+
30
|
|
49
|
+
0.0
|
|
50
|
+
9
|
|
51
|
+
$EXTMIN
|
|
52
|
+
10
|
|
53
|
+
0.0
|
|
54
|
+
20
|
|
55
|
+
0.0
|
|
56
|
+
9
|
|
57
|
+
$EXTMAX
|
|
58
|
+
10
|
|
59
|
+
400
|
|
60
|
+
20
|
|
61
|
+
400
|
|
62
|
+
0
|
|
63
|
+
ENDSEC
|
|
64
|
+
0
|
|
65
|
+
SECTION
|
|
66
|
+
2
|
|
67
|
+
ENTITIES
|
|
68
|
+
0
|
|
69
|
+
POLYLINE
|
|
70
|
+
8
|
|
71
|
+
0
|
|
72
|
+
66
|
|
73
|
+
1
|
|
74
|
+
0
|
|
75
|
+
VERTEX
|
|
76
|
+
8
|
|
77
|
+
0
|
|
78
|
+
10
|
|
79
|
+
10
|
|
80
|
+
20
|
|
81
|
+
390
|
|
82
|
+
30
|
|
83
|
+
0.0
|
|
84
|
+
0
|
|
85
|
+
VERTEX
|
|
86
|
+
8
|
|
87
|
+
0
|
|
88
|
+
10
|
|
89
|
+
390
|
|
90
|
+
20
|
|
91
|
+
10
|
|
92
|
+
30
|
|
93
|
+
0.0
|
|
94
|
+
0
|
|
95
|
+
VERTEX
|
|
96
|
+
8
|
|
97
|
+
0
|
|
98
|
+
10
|
|
99
|
+
390
|
|
100
|
+
20
|
|
101
|
+
390
|
|
102
|
+
30
|
|
103
|
+
0.0
|
|
104
|
+
0
|
|
105
|
+
SEQEND
|
|
106
|
+
8
|
|
107
|
+
0
|
|
108
|
+
0
|
|
109
|
+
ENDSEC
|
|
110
|
+
0
|
|
111
111
|
EOF`,
|
|
112
112
|
};
|
|
113
113
|
//# sourceMappingURL=dxf2d-polyline.js.map
|