shift73k/assets_old/node_modules/svg-sprite-loader/lib/utils/stringify-symbol.js

17 lines
302 B
JavaScript
Raw Normal View History

const stringify = require('./stringify');
/**
* @param {SpriteSymbol} symbol
* @return {string}
*/
function stringifySymbol(symbol) {
return stringify({
id: symbol.id,
use: symbol.useId,
viewBox: symbol.viewBox,
content: symbol.render()
});
}
module.exports = stringifySymbol;