You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Output an XML declaration at the very beginning of each compiled sprite.
159
+
* If you provide a non-empty string here, it will be used one-to-one as declaration (e.g. <?xml version="1.0" encoding="utf-8"?>).
160
+
* If you set this to TRUE, *svg-sprite* will look at the registered shapes for an XML declaration and use the first one it can find.
161
+
* @default true
162
+
*/
163
+
xmlDeclaration: boolean|string;
164
+
/**
165
+
* Include a <DOCTYPE> declaration in each compiled sprite. If you provide a non-empty string here,
166
+
* it will be used one-to-one as declaration (e.g. <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Basic//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-basic.dtd">).
167
+
* If you set this to TRUE, *svg-sprite* will look at the registered shapes for a DOCTYPE declaration and use the first one it can find.
168
+
* @default true
169
+
*/
170
+
doctypeDeclaration: boolean|string;
171
+
/**
172
+
* In order to avoid ID clashes, the default behavior is to namespace all IDs in the source SVGs before compiling them into a sprite.
173
+
* Each ID is prepended with a unique string. In some situations, it might be desirable to disable ID namespacing, e.g. when you want to script the resulting sprite.
174
+
* Just set svg.namespaceIDs to FALSE then and be aware that you might also want to disable SVGO's ID minification (shape.transform.svgo.plugins: [{cleanupIDs: false}]).
175
+
* @default true
176
+
*/
177
+
namespaceIDs?: boolean;
178
+
/**
179
+
* In order to avoid CSS class name ambiguities, the default behavior is to namespace CSS class names in the source SVGs before compiling them into a sprite.
180
+
* Each class name is prepended with a unique string. Disable this option to keep the class names untouched.
181
+
* @default true
182
+
*/
183
+
namespaceClassnames?: boolean;
184
+
/**
185
+
* If truthy, width and height attributes will be set on the sprite's <svg> element (where applicable).
186
+
* @default true
187
+
*/
188
+
dimensionAttributes?: boolean;
189
+
/**
190
+
* Shorthand for applying custom attributes to the outermost <svg> element.
191
+
* Please be aware that certain attributes (e.g. viewBox) will be calculated dynamically and override custom rootAttributes in any case.
192
+
*/
193
+
rootAttributes?: any;
194
+
/**
195
+
* Floating point precision for CSS positioning values (defaults to -1 meaning highest possible precision).
196
+
*/
197
+
precision?: number;
198
+
/**
199
+
* Callback (or list of callbacks) that will be applied to the resulting SVG sprites as global [post-processing transformation](#svg-sprite-customization).
0 commit comments