1
0
Fork 0
management/front/dkha-web-sz-main/node_modules/svg-baker-runtime/src/symbol.js

26 lines
409 B
JavaScript
Raw Normal View History

2023-12-18 13:12:25 +08:00
export default class SpriteSymbol {
constructor({ id, viewBox, content }) {
this.id = id;
this.viewBox = viewBox;
this.content = content;
}
/**
* @return {string}
*/
stringify() {
return this.content;
}
/**
* @return {string}
*/
toString() {
return this.stringify();
}
destroy() {
['id', 'viewBox', 'content'].forEach(prop => delete this[prop]);
}
}