forked from svg/svgo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.svgo.yml
171 lines (145 loc) · 3.03 KB
/
.svgo.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
plugins:
- name: removeDoctype
active: true
type: perItem
- name: removeXMLProcInst
active: true
type: perItem
- name: removeComments
active: true
type: perItem
- name: removeMetadata
active: true
type: perItem
- name: removeEditorsNSData
active: true
type: perItem
- name: cleanupAttrs
active: true
type: perItem
params:
newlines: true
trim: true
spaces: true
- name: convertStyleToAttrs
active: true
type: perItem
- name: removeDefaultPx
active: true
type: perItem
- name: removeUnknownsAndDefaults
active: true
type: perItem
params:
unknownContent: true
unknownAttrs: true
defaultAttrs: true
- name: removeViewBox
active: true
type: perItem
- name: cleanupEnableBackground
active: true
type: perItem
- name: cleanupEnableBackground
active: true
type: perItem
- name: removeHiddenElems
active: true
type: perItem
params:
displayNone: true
opacity0: true
circleR0: true
ellipseRX0: true
ellipseRY0: true
rectWidth0: true
rectHeight0: true
patternWidth0: true
patternHeight0: true
imageWidth0: true
imageHeight0: true
pathEmptyD: true
polylineEmptyPoints: true
polygonEmptyPoints: true
- name: removeEmptyText
active: true
type: perItem
params:
text: true
tspan: true
tref: true
- name: convertColors
active: true
type: perItem
params:
names2hex: true
rgb2hex: true
shorthex: true
- name: convertPathData
active: true
type: perItem
params:
straightCurves: true
lineShorthands: true
curveSmoothShorthands: true
floatPrecision: 3
removeUseless: true
collapseRepeated: true
leadingZero: true
negativeExtraSpace: true
- name: moveElemsAttrsToGroup
active: true
type: perItemReverse
- name: convertTransform
active: true
type: perItem
params:
convertToShorts: true
floatPrecision: 3
matrixToTransform: true
shortTranslateScale: true
shortRotate: true
removeUseless: true
collapseIntoOne: true
leadingZero: true
negativeExtraSpace: false
- name: removeEmptyAttrs
active: true
type: perItem
- name: removeEmptyContainers
active: true
type: perItemReverse
- name: collapseGroups
active: true
type: perItemReverse
- name: removeUnusedNS
active: true
type: full
svg2js:
strict: true
trim: true
normalize: true
lowercase: true
xmlns: true
position: true
js2svg:
doctypeStart: '<!DOCTYPE'
doctypeEnd: '>'
procInstStart: '<?'
procInstEnd: '?>'
tagOpenStart: '<'
tagOpenEnd: '>'
tagCloseStart: '</'
tagCloseEnd: '>'
tagShortStart: '<'
tagShortEnd: '/>'
attrStart: '="'
attrEnd: '"'
commentStart: '<!--'
commentEnd: '-->'
cdataStart: '<![CDATA['
cdataEnd: ']]>'
textStart: ''
textEnd: ''
indent: ' '
pretty: false