SVGStyleData.js 403 B

12345678910111213141516171819
  1. import createNS from '../../../utils/helpers/svg_elements';
  2. function SVGStyleData(data, level) {
  3. this.data = data;
  4. this.type = data.ty;
  5. this.d = '';
  6. this.lvl = level;
  7. this._mdf = false;
  8. this.closed = data.hd === true;
  9. this.pElem = createNS('path');
  10. this.msElem = null;
  11. }
  12. SVGStyleData.prototype.reset = function () {
  13. this.d = '';
  14. this._mdf = false;
  15. };
  16. export default SVGStyleData;