b587e7a6eefdf3d0e361fe93b0073dbefc7805132300b05d14d6e0776c996f1868231bd3f67a328c551ee661eafb1463336a0cb993b64f51a7dc43adae2ea8 409 B

12345678910111213141516171819202122232425
  1. export default class SpriteSymbol {
  2. constructor({ id, viewBox, content }) {
  3. this.id = id;
  4. this.viewBox = viewBox;
  5. this.content = content;
  6. }
  7. /**
  8. * @return {string}
  9. */
  10. stringify() {
  11. return this.content;
  12. }
  13. /**
  14. * @return {string}
  15. */
  16. toString() {
  17. return this.stringify();
  18. }
  19. destroy() {
  20. ['id', 'viewBox', 'content'].forEach(prop => delete this[prop]);
  21. }
  22. }