@@ -9,37 +9,6 @@ interface TestSvgData {
9
9
shapePath : ShapePathType ;
10
10
sketchJSON : SketchFormat . ShapePath ;
11
11
}
12
- // 可复用的 shapeGroup 信息
13
- const shapeGroupData = {
14
- _class : 'shapeGroup' ,
15
- do_objectID : 'uuid' ,
16
- booleanOperation : - 1 ,
17
- isFixedToViewport : false ,
18
- isFlippedHorizontal : false ,
19
- isFlippedVertical : false ,
20
- isLocked : false ,
21
- isVisible : true ,
22
- layerListExpandedType : 0 ,
23
- name : 'svg' ,
24
- nameIsFixed : false ,
25
- resizingConstraint : 63 ,
26
- resizingType : 0 ,
27
- shouldBreakMaskChain : false ,
28
- exportOptions : defaultExportOptions ,
29
- rotation : 0 ,
30
- frame : {
31
- _class : 'rect' ,
32
- constrainProportions : false ,
33
- height : 814.2161138351329 ,
34
- width : 736.652344 ,
35
- x : - 90 ,
36
- y : 4 ,
37
- } ,
38
- clippingMaskMode : 0 ,
39
- style : new Style ( ) . toSketchJSON ( ) ,
40
- hasClickThrough : false ,
41
- windingRule : 1 ,
42
- } ;
43
12
44
13
// 可复用的 shapePath 信息
45
14
const shapePathData = {
@@ -64,6 +33,15 @@ const shapePathData = {
64
33
pointRadiusBehaviour : 1 ,
65
34
} ;
66
35
36
+ /**
37
+ * SVG 图形如下
38
+ * @see https://svg-path-visualizer.netlify.app/#M73.2226562%2C282.36788%20C517.988281%2C268.985067%20740.371094%2C312.330119%20740.371094%2C412.403036%20C740.371094%2C562.512411%20706.574547%2C689.414193%20665.761719%2C731.926473%20C585.929687%2C815.082723%20381.128906%2C824.973348%20240.128906%2C815.082723%20C193.160156%2C721.491578%20114.450521%2C640.427775%204%2C571.891317%20L73.2226562%2C282.36788%20Z%20M288.371094%2C399.757812%20L569.023438%2C399.757812%20L569.023438%2C629.085937%20L288.371094%2C629.085937%20L288.371094%2C399.757812%20Z%20M460%2C4%20L640.652344%2C4%20C695.880819%2C4%20740.652344%2C48.771525%20740.652344%2C104%20L740.652344%2C233.328125%20L460%2C233.328125%20L460%2C4%20Z%20M68%2C4%20L248.652344%2C4%20C303.880819%2C4%20348.652344%2C48.771525%20348.652344%2C104%20L348.652344%2C233.328125%20L68%2C233.328125
39
+ */
40
+ export const svgPath = {
41
+ path :
42
+ 'M73.2226562,282.36788 C517.988281,268.985067 740.371094,312.330119 740.371094,412.403036 C740.371094,562.512411 706.574547,689.414193 665.761719,731.926473 C585.929687,815.082723 381.128906,824.973348 240.128906,815.082723 C193.160156,721.491578 114.450521,640.427775 4,571.891317 L73.2226562,282.36788 Z M288.371094,399.757812 L569.023438,399.757812 L569.023438,629.085937 L288.371094,629.085937 L288.371094,399.757812 Z M460,4 L640.652344,4 C695.880819,4 740.652344,48.771525 740.652344,104 L740.652344,233.328125 L460,233.328125 L460,4 Z M68,4 L248.652344,4 C303.880819,4 348.652344,48.771525 348.652344,104 L348.652344,233.328125 L68,233.328125' ,
43
+ } ;
44
+
67
45
/**
68
46
* 不规则复杂矩形
69
47
* Path: M73.2226562,282.36788 C517.988281,268.985067 740.371094,312.330119 740.371094,412.403036 C740.371094,562.512411 706.574547,689.414193 665.761719,731.926473 C585.929687,815.082723 381.128906,824.973348 240.128906,815.082723 C193.160156,721.491578 114.450521,640.427775 4,571.891317 L73.2226562,282.36788 Z
@@ -145,7 +123,7 @@ export const compPath: TestSvgData = {
145
123
{
146
124
_class : 'curvePoint' ,
147
125
cornerRadius : 0 ,
148
- curveFrom : '{0.69800170754665725 , -0.020465632616830577 }' ,
126
+ curveFrom : '{0.6980017075466572 , -0.020465632616830685 }' ,
149
127
curveMode : 4 ,
150
128
curveTo : '{0.09400512426958466, 0.004399496208155765}' ,
151
129
hasCurveFrom : true ,
@@ -155,7 +133,7 @@ export const compPath: TestSvgData = {
155
133
{
156
134
_class : 'curvePoint' ,
157
135
cornerRadius : 0 ,
158
- curveFrom : '{1, 0.52490515170303653 }' ,
136
+ curveFrom : '{1, 0.5249051517030365 }' ,
159
137
curveMode : 3 ,
160
138
curveTo : '{1, 0.060069027914235316}' ,
161
139
hasCurveFrom : true ,
@@ -165,7 +143,7 @@ export const compPath: TestSvgData = {
165
143
{
166
144
_class : 'curvePoint' ,
167
145
cornerRadius : 0 ,
168
- curveFrom : '{0.79026688003046464 , 0.99417819207556657 }' ,
146
+ curveFrom : '{0.7902668800304646 , 0.9941781920755667 }' ,
169
147
curveMode : 3 ,
170
148
curveTo : '{0.954103919510996, 0.7606873566513045}' ,
171
149
hasCurveFrom : true ,
@@ -175,8 +153,8 @@ export const compPath: TestSvgData = {
175
153
{
176
154
_class : 'curvePoint' ,
177
155
cornerRadius : 0 ,
178
- curveFrom : '{0.25688156086148595, 0.82028680785739161 }' ,
179
- curveMode : 4 ,
156
+ curveFrom : '{0.25688156086148595, 0.8202868078573917 }' ,
157
+ curveMode : 3 ,
180
158
curveTo : '{0.5121451793435009, 1.0125548715363522}' ,
181
159
hasCurveFrom : true ,
182
160
hasCurveTo : true ,
0 commit comments