Skip to content

Commit ab043b8

Browse files
committed
🐛 fix: 修复伪类解析问题
1 parent 4a43438 commit ab043b8

File tree

1 file changed

+1
-192
lines changed

1 file changed

+1
-192
lines changed

tests/utils/json/pseudo-radio.json

Lines changed: 1 addition & 192 deletions
Original file line numberDiff line numberDiff line change
@@ -1,192 +1 @@
1-
{
2-
"_class": "rectangle",
3-
"name": "radio",
4-
"resizingConstraint": 63,
5-
"frame": {
6-
"_class": "rect",
7-
"constrainProportions": false,
8-
"height": 0,
9-
"width": 1008,
10-
"x": 8,
11-
"y": 8
12-
},
13-
"do_objectID": "UUID",
14-
"hasConvertedToNewRoundCorners": true,
15-
"needsConvertionToNewRoundCorners": false,
16-
"fixedRadius": 0,
17-
"style": {
18-
"_class": "style",
19-
"do_objectID": "UUID",
20-
"endMarkerType": 0,
21-
"miterLimit": 10,
22-
"startMarkerType": 0,
23-
"windingRule": 1,
24-
"borderOptions": {
25-
"_class": "borderOptions",
26-
"isEnabled": true,
27-
"dashPattern": [],
28-
"lineCapStyle": 0,
29-
"lineJoinStyle": 0
30-
},
31-
"colorControls": {
32-
"_class": "colorControls",
33-
"isEnabled": false,
34-
"brightness": 0,
35-
"contrast": 1,
36-
"hue": 0,
37-
"saturation": 1
38-
},
39-
"fills": [
40-
{
41-
"_class": "fill",
42-
"isEnabled": true,
43-
"fillType": 0,
44-
"color": {
45-
"_class": "color",
46-
"red": 1,
47-
"green": 1,
48-
"blue": 1,
49-
"alpha": 1
50-
},
51-
"contextSettings": {
52-
"_class": "graphicsContextSettings",
53-
"blendMode": 0,
54-
"opacity": 1
55-
},
56-
"gradient": {
57-
"_class": "gradient",
58-
"elipseLength": 0,
59-
"from": "{0, 0}",
60-
"gradientType": 0,
61-
"to": "{1, 0}",
62-
"stops": []
63-
},
64-
"noiseIndex": 0,
65-
"noiseIntensity": 0,
66-
"patternFillType": 1,
67-
"patternTileScale": 1
68-
}
69-
],
70-
"borders": [
71-
{
72-
"_class": "border",
73-
"isEnabled": true,
74-
"fillType": 0,
75-
"color": {
76-
"_class": "color",
77-
"red": 0,
78-
"green": 0,
79-
"blue": 0,
80-
"alpha": 1
81-
},
82-
"contextSettings": {
83-
"_class": "graphicsContextSettings",
84-
"blendMode": 0,
85-
"opacity": 1
86-
},
87-
"gradient": {
88-
"_class": "gradient",
89-
"elipseLength": 0,
90-
"from": "{0, 0}",
91-
"gradientType": 0,
92-
"to": "{1, 0}",
93-
"stops": []
94-
},
95-
"position": 1,
96-
"thickness": 0
97-
}
98-
],
99-
"shadows": [
100-
{
101-
"_class": "shadow",
102-
"isEnabled": true,
103-
"blurRadius": 4,
104-
"color": {
105-
"_class": "color",
106-
"red": 0,
107-
"green": 0.13725490196078433,
108-
"blue": 0.043137254901960784,
109-
"alpha": 0.2
110-
},
111-
"contextSettings": {
112-
"_class": "graphicsContextSettings",
113-
"blendMode": 0,
114-
"opacity": 1
115-
},
116-
"offsetX": 0,
117-
"offsetY": 2,
118-
"spread": 0
119-
}
120-
],
121-
"innerShadows": [],
122-
"contextSettings": {
123-
"_class": "graphicsContextSettings",
124-
"blendMode": 0,
125-
"opacity": 1
126-
}
127-
},
128-
"edited": false,
129-
"pointRadiusBehaviour": 1,
130-
"points": [
131-
{
132-
"_class": "curvePoint",
133-
"cornerRadius": 9,
134-
"curveFrom": "{0, 0}",
135-
"curveMode": 1,
136-
"curveTo": "{0, 0}",
137-
"hasCurveFrom": false,
138-
"hasCurveTo": false,
139-
"point": "{0, 0}"
140-
},
141-
{
142-
"_class": "curvePoint",
143-
"cornerRadius": 9,
144-
"curveFrom": "{1, 0}",
145-
"curveMode": 1,
146-
"curveTo": "{1, 0}",
147-
"hasCurveFrom": false,
148-
"hasCurveTo": false,
149-
"point": "{1, 0}"
150-
},
151-
{
152-
"_class": "curvePoint",
153-
"cornerRadius": 9,
154-
"curveFrom": "{1, 1}",
155-
"curveMode": 1,
156-
"curveTo": "{1, 1}",
157-
"hasCurveFrom": false,
158-
"hasCurveTo": false,
159-
"point": "{1, 1}"
160-
},
161-
{
162-
"_class": "curvePoint",
163-
"cornerRadius": 9,
164-
"curveFrom": "{0, 1}",
165-
"curveMode": 1,
166-
"curveTo": "{0, 1}",
167-
"hasCurveFrom": false,
168-
"hasCurveTo": false,
169-
"point": "{0, 1}"
170-
}
171-
],
172-
"isClosed": true,
173-
"booleanOperation": -1,
174-
"exportOptions": {
175-
"_class": "exportOptions",
176-
"includedLayerIds": [],
177-
"layerOptions": 0,
178-
"shouldTrim": false,
179-
"exportFormats": []
180-
},
181-
"isVisible": true,
182-
"isFixedToViewport": false,
183-
"isFlippedHorizontal": false,
184-
"isFlippedVertical": false,
185-
"layerListExpandedType": 0,
186-
"nameIsFixed": false,
187-
"resizingType": 0,
188-
"rotation": 0,
189-
"shouldBreakMaskChain": false,
190-
"clippingMaskMode": 0,
191-
"isLocked": false
192-
}
1+
{"_class":"rectangle","name":"radio","resizingConstraint":63,"frame":{"_class":"rect","constrainProportions":false,"height":0,"width":1008,"x":8,"y":8},"do_objectID":"UUID","hasConvertedToNewRoundCorners":true,"needsConvertionToNewRoundCorners":false,"fixedRadius":0,"style":{"_class":"style","do_objectID":"UUID","endMarkerType":0,"miterLimit":10,"startMarkerType":0,"windingRule":1,"borderOptions":{"_class":"borderOptions","isEnabled":true,"dashPattern":[],"lineCapStyle":0,"lineJoinStyle":0},"colorControls":{"_class":"colorControls","isEnabled":false,"brightness":0,"contrast":1,"hue":0,"saturation":1},"fills":[{"_class":"fill","isEnabled":true,"fillType":0,"color":{"_class":"color","red":1,"green":1,"blue":1,"alpha":1},"contextSettings":{"_class":"graphicsContextSettings","blendMode":0,"opacity":1},"gradient":{"_class":"gradient","elipseLength":0,"from":"{0, 0}","gradientType":0,"to":"{1, 0}","stops":[]},"noiseIndex":0,"noiseIntensity":0,"patternFillType":1,"patternTileScale":1}],"borders":[{"_class":"border","isEnabled":true,"fillType":0,"color":{"_class":"color","red":0,"green":0,"blue":0,"alpha":1},"contextSettings":{"_class":"graphicsContextSettings","blendMode":0,"opacity":1},"gradient":{"_class":"gradient","elipseLength":0,"from":"{0, 0}","gradientType":0,"to":"{1, 0}","stops":[]},"position":1,"thickness":0}],"shadows":[{"_class":"shadow","isEnabled":true,"blurRadius":4,"color":{"_class":"color","red":0,"green":0.13725490196078433,"blue":0.043137254901960784,"alpha":0.2},"contextSettings":{"_class":"graphicsContextSettings","blendMode":0,"opacity":1},"offsetX":0,"offsetY":2,"spread":0}],"innerShadows":[],"contextSettings":{"_class":"graphicsContextSettings","blendMode":0,"opacity":1}},"edited":false,"pointRadiusBehaviour":1,"points":[{"_class":"curvePoint","cornerRadius":9,"curveFrom":"{0, 0}","curveMode":1,"curveTo":"{0, 0}","hasCurveFrom":false,"hasCurveTo":false,"point":"{0, 0}"},{"_class":"curvePoint","cornerRadius":9,"curveFrom":"{1, 0}","curveMode":1,"curveTo":"{1, 0}","hasCurveFrom":false,"hasCurveTo":false,"point":"{1, 0}"},{"_class":"curvePoint","cornerRadius":9,"curveFrom":"{1, 1}","curveMode":1,"curveTo":"{1, 1}","hasCurveFrom":false,"hasCurveTo":false,"point":"{1, 1}"},{"_class":"curvePoint","cornerRadius":9,"curveFrom":"{0, 1}","curveMode":1,"curveTo":"{0, 1}","hasCurveFrom":false,"hasCurveTo":false,"point":"{0, 1}"}],"isClosed":true,"booleanOperation":-1,"exportOptions":{"_class":"exportOptions","includedLayerIds":[],"layerOptions":0,"shouldTrim":false,"exportFormats":[]},"isVisible":true,"isFixedToViewport":false,"isFlippedHorizontal":false,"isFlippedVertical":false,"layerListExpandedType":0,"nameIsFixed":false,"resizingType":0,"rotation":0,"shouldBreakMaskChain":false,"clippingMaskMode":0,"isLocked":false}

0 commit comments

Comments
 (0)