16 lines
302 B
JavaScript
16 lines
302 B
JavaScript
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;
|