@antv/g-svg 1.8.46 → 1.8.48

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -385,29 +385,27 @@ var SVGContextService = /*#__PURE__*/function () {
385
385
  var _init = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
386
386
  var _this$canvasConfig, container, doc, devicePixelRatio, $namespace, dpr;
387
387
  return _regeneratorRuntime().wrap(function _callee$(_context) {
388
- while (1) {
389
- switch (_context.prev = _context.next) {
390
- case 0:
391
- _this$canvasConfig = this.canvasConfig, container = _this$canvasConfig.container, doc = _this$canvasConfig.document, devicePixelRatio = _this$canvasConfig.devicePixelRatio; // create container
392
- this.$container = isString(container) ? (doc || document).getElementById(container) : container;
393
- if (this.$container) {
394
- if (!this.$container.style.position) {
395
- this.$container.style.position = 'relative';
396
- }
397
- $namespace = createSVGElement('svg', doc);
398
- $namespace.setAttribute('width', "" + this.canvasConfig.width);
399
- $namespace.setAttribute('height', "" + this.canvasConfig.height);
400
- this.$container.appendChild($namespace);
401
- this.$namespace = $namespace;
388
+ while (1) switch (_context.prev = _context.next) {
389
+ case 0:
390
+ _this$canvasConfig = this.canvasConfig, container = _this$canvasConfig.container, doc = _this$canvasConfig.document, devicePixelRatio = _this$canvasConfig.devicePixelRatio; // create container
391
+ this.$container = isString(container) ? (doc || document).getElementById(container) : container;
392
+ if (this.$container) {
393
+ if (!this.$container.style.position) {
394
+ this.$container.style.position = 'relative';
402
395
  }
403
- // use user-defined dpr first
404
- dpr = devicePixelRatio || isBrowser && window.devicePixelRatio || 1;
405
- dpr = dpr >= 1 ? Math.ceil(dpr) : 1;
406
- this.dpr = dpr;
407
- case 6:
408
- case "end":
409
- return _context.stop();
410
- }
396
+ $namespace = createSVGElement('svg', doc);
397
+ $namespace.setAttribute('width', "" + this.canvasConfig.width);
398
+ $namespace.setAttribute('height', "" + this.canvasConfig.height);
399
+ this.$container.appendChild($namespace);
400
+ this.$namespace = $namespace;
401
+ }
402
+ // use user-defined dpr first
403
+ dpr = devicePixelRatio || isBrowser && window.devicePixelRatio || 1;
404
+ dpr = dpr >= 1 ? Math.ceil(dpr) : 1;
405
+ this.dpr = dpr;
406
+ case 6:
407
+ case "end":
408
+ return _context.stop();
411
409
  }
412
410
  }, _callee, this);
413
411
  }));
@@ -475,113 +473,111 @@ var SVGContextService = /*#__PURE__*/function () {
475
473
  var _this = this;
476
474
  var cloneNode, doc, animationCounter, $style, svgDocType, svgDoc;
477
475
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
478
- while (1) {
479
- switch (_context2.prev = _context2.next) {
480
- case 0:
481
- cloneNode = this.$namespace.cloneNode(true);
482
- doc = this.canvasConfig.document;
483
- animationCounter = 0;
484
- $style = null;
485
- this.context.renderingContext.root.forEach(function (object) {
486
- var animations = object.getAnimations();
487
- if (animations.length) {
488
- if (!$style) {
489
- // export animations to <style>, using CSS Transformation
490
- $style = (doc || document).createElement('style');
491
- cloneNode.appendChild($style);
492
- }
493
- // @ts-ignore
494
- var svgElement = object.elementSVG;
495
- var selfSelector = "#" + svgElement.$el.id;
496
- var groupSelector = "#" + svgElement.$groupEl.id;
497
- var selfCssText = '';
498
- var groupCssText = '';
499
- animations.forEach(function (animation) {
500
- var keyframes = animation.effect.getKeyframes();
501
- // split attributes into self and group
502
- if (keyframes.length) {
503
- var selfAttributes = [];
504
- var groupAttributes = [];
505
- var _keyframes$ = keyframes[0],
506
- offset = _keyframes$.offset,
507
- composite = _keyframes$.composite,
508
- computedOffset = _keyframes$.computedOffset,
509
- easing = _keyframes$.easing,
510
- transformOrigin = _keyframes$.transformOrigin,
511
- rest = _objectWithoutPropertiesLoose(_keyframes$, _excluded2);
512
- Object.keys(rest).forEach(function (attributeName) {
513
- var _propertyMetadataCach;
514
- if (attributeName === 'transform') {
515
- groupAttributes.push(attributeName);
516
- }
517
- var inherited = !!((_propertyMetadataCach = propertyMetadataCache[attributeName]) === null || _propertyMetadataCach === void 0 ? void 0 : _propertyMetadataCach.inh);
518
- if (inherited) {
519
- groupAttributes.push(attributeName);
520
- } else if (attributeName !== 'transform') {
521
- selfAttributes.push(attributeName);
522
- }
523
- });
524
- if (groupAttributes.length) {
525
- var keyframesWithGroup = keyframes.map(function (keyframe) {
526
- var offset = keyframe.offset,
527
- composite = keyframe.composite,
528
- computedOffset = keyframe.computedOffset,
529
- easing = keyframe.easing,
530
- transformOrigin = keyframe.transformOrigin,
531
- rest = _objectWithoutPropertiesLoose(keyframe, _excluded3);
532
- var ret = {
533
- offset: offset,
534
- composite: composite,
535
- computedOffset: computedOffset,
536
- easing: easing
537
- };
538
- Object.keys(rest).forEach(function (attributeName) {
539
- if (groupAttributes.includes(attributeName)) {
540
- ret[attributeName] = keyframe[attributeName];
541
- }
542
- });
543
- return ret;
544
- });
545
- groupCssText += _this.generateCSSText("a" + animationCounter++, groupSelector, keyframesWithGroup, animation.effect.getComputedTiming(), {
546
- transform: svgElement.$groupEl.getAttribute('transform')
547
- });
476
+ while (1) switch (_context2.prev = _context2.next) {
477
+ case 0:
478
+ cloneNode = this.$namespace.cloneNode(true);
479
+ doc = this.canvasConfig.document;
480
+ animationCounter = 0;
481
+ $style = null;
482
+ this.context.renderingContext.root.forEach(function (object) {
483
+ var animations = object.getAnimations();
484
+ if (animations.length) {
485
+ if (!$style) {
486
+ // export animations to <style>, using CSS Transformation
487
+ $style = (doc || document).createElement('style');
488
+ cloneNode.appendChild($style);
489
+ }
490
+ // @ts-ignore
491
+ var svgElement = object.elementSVG;
492
+ var selfSelector = "#" + svgElement.$el.id;
493
+ var groupSelector = "#" + svgElement.$groupEl.id;
494
+ var selfCssText = '';
495
+ var groupCssText = '';
496
+ animations.forEach(function (animation) {
497
+ var keyframes = animation.effect.getKeyframes();
498
+ // split attributes into self and group
499
+ if (keyframes.length) {
500
+ var selfAttributes = [];
501
+ var groupAttributes = [];
502
+ var _keyframes$ = keyframes[0],
503
+ offset = _keyframes$.offset,
504
+ composite = _keyframes$.composite,
505
+ computedOffset = _keyframes$.computedOffset,
506
+ easing = _keyframes$.easing,
507
+ transformOrigin = _keyframes$.transformOrigin,
508
+ rest = _objectWithoutPropertiesLoose(_keyframes$, _excluded2);
509
+ Object.keys(rest).forEach(function (attributeName) {
510
+ var _propertyMetadataCach;
511
+ if (attributeName === 'transform') {
512
+ groupAttributes.push(attributeName);
548
513
  }
549
- if (selfAttributes.length) {
550
- var keyframesWithSelf = keyframes.map(function (keyframe) {
551
- var offset = keyframe.offset,
552
- composite = keyframe.composite,
553
- computedOffset = keyframe.computedOffset,
554
- easing = keyframe.easing,
555
- transformOrigin = keyframe.transformOrigin,
556
- rest = _objectWithoutPropertiesLoose(keyframe, _excluded4);
557
- var ret = {
558
- offset: offset,
559
- composite: composite,
560
- computedOffset: computedOffset,
561
- easing: easing
562
- };
563
- Object.keys(rest).forEach(function (attributeName) {
564
- if (selfAttributes.includes(attributeName)) {
565
- ret[attributeName] = keyframe[attributeName];
566
- }
567
- });
568
- return ret;
569
- });
570
- selfCssText += _this.generateCSSText("a" + animationCounter++, selfSelector, keyframesWithSelf, animation.effect.getComputedTiming());
514
+ var inherited = !!((_propertyMetadataCach = propertyMetadataCache[attributeName]) === null || _propertyMetadataCach === void 0 ? void 0 : _propertyMetadataCach.inh);
515
+ if (inherited) {
516
+ groupAttributes.push(attributeName);
517
+ } else if (attributeName !== 'transform') {
518
+ selfAttributes.push(attributeName);
571
519
  }
520
+ });
521
+ if (groupAttributes.length) {
522
+ var keyframesWithGroup = keyframes.map(function (keyframe) {
523
+ var offset = keyframe.offset,
524
+ composite = keyframe.composite,
525
+ computedOffset = keyframe.computedOffset,
526
+ easing = keyframe.easing,
527
+ transformOrigin = keyframe.transformOrigin,
528
+ rest = _objectWithoutPropertiesLoose(keyframe, _excluded3);
529
+ var ret = {
530
+ offset: offset,
531
+ composite: composite,
532
+ computedOffset: computedOffset,
533
+ easing: easing
534
+ };
535
+ Object.keys(rest).forEach(function (attributeName) {
536
+ if (groupAttributes.includes(attributeName)) {
537
+ ret[attributeName] = keyframe[attributeName];
538
+ }
539
+ });
540
+ return ret;
541
+ });
542
+ groupCssText += _this.generateCSSText("a" + animationCounter++, groupSelector, keyframesWithGroup, animation.effect.getComputedTiming(), {
543
+ transform: svgElement.$groupEl.getAttribute('transform')
544
+ });
572
545
  }
573
- });
574
- $style.textContent += selfCssText + groupCssText;
575
- }
576
- });
577
- svgDocType = document.implementation.createDocumentType('svg', '-//W3C//DTD SVG 1.1//EN', 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd');
578
- svgDoc = document.implementation.createDocument('http://www.w3.org/2000/svg', 'svg', svgDocType);
579
- svgDoc.replaceChild(cloneNode, svgDoc.documentElement);
580
- return _context2.abrupt("return", "data:image/svg+xml;charset=utf8," + encodeURIComponent(new XMLSerializer().serializeToString(svgDoc)));
581
- case 10:
582
- case "end":
583
- return _context2.stop();
584
- }
546
+ if (selfAttributes.length) {
547
+ var keyframesWithSelf = keyframes.map(function (keyframe) {
548
+ var offset = keyframe.offset,
549
+ composite = keyframe.composite,
550
+ computedOffset = keyframe.computedOffset,
551
+ easing = keyframe.easing,
552
+ transformOrigin = keyframe.transformOrigin,
553
+ rest = _objectWithoutPropertiesLoose(keyframe, _excluded4);
554
+ var ret = {
555
+ offset: offset,
556
+ composite: composite,
557
+ computedOffset: computedOffset,
558
+ easing: easing
559
+ };
560
+ Object.keys(rest).forEach(function (attributeName) {
561
+ if (selfAttributes.includes(attributeName)) {
562
+ ret[attributeName] = keyframe[attributeName];
563
+ }
564
+ });
565
+ return ret;
566
+ });
567
+ selfCssText += _this.generateCSSText("a" + animationCounter++, selfSelector, keyframesWithSelf, animation.effect.getComputedTiming());
568
+ }
569
+ }
570
+ });
571
+ $style.textContent += selfCssText + groupCssText;
572
+ }
573
+ });
574
+ svgDocType = document.implementation.createDocumentType('svg', '-//W3C//DTD SVG 1.1//EN', 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd');
575
+ svgDoc = document.implementation.createDocument('http://www.w3.org/2000/svg', 'svg', svgDocType);
576
+ svgDoc.replaceChild(cloneNode, svgDoc.documentElement);
577
+ return _context2.abrupt("return", "data:image/svg+xml;charset=utf8," + encodeURIComponent(new XMLSerializer().serializeToString(svgDoc)));
578
+ case 10:
579
+ case "end":
580
+ return _context2.stop();
585
581
  }
586
582
  }, _callee2, this);
587
583
  }));
package/dist/index.js CHANGED
@@ -407,29 +407,27 @@ var SVGContextService = /*#__PURE__*/function () {
407
407
  var _init = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
408
408
  var _this$canvasConfig, container, doc, devicePixelRatio, $namespace, dpr;
409
409
  return _regeneratorRuntime().wrap(function _callee$(_context) {
410
- while (1) {
411
- switch (_context.prev = _context.next) {
412
- case 0:
413
- _this$canvasConfig = this.canvasConfig, container = _this$canvasConfig.container, doc = _this$canvasConfig.document, devicePixelRatio = _this$canvasConfig.devicePixelRatio; // create container
414
- this.$container = util.isString(container) ? (doc || document).getElementById(container) : container;
415
- if (this.$container) {
416
- if (!this.$container.style.position) {
417
- this.$container.style.position = 'relative';
418
- }
419
- $namespace = SVGRenderer.createSVGElement('svg', doc);
420
- $namespace.setAttribute('width', "" + this.canvasConfig.width);
421
- $namespace.setAttribute('height', "" + this.canvasConfig.height);
422
- this.$container.appendChild($namespace);
423
- this.$namespace = $namespace;
410
+ while (1) switch (_context.prev = _context.next) {
411
+ case 0:
412
+ _this$canvasConfig = this.canvasConfig, container = _this$canvasConfig.container, doc = _this$canvasConfig.document, devicePixelRatio = _this$canvasConfig.devicePixelRatio; // create container
413
+ this.$container = util.isString(container) ? (doc || document).getElementById(container) : container;
414
+ if (this.$container) {
415
+ if (!this.$container.style.position) {
416
+ this.$container.style.position = 'relative';
424
417
  }
425
- // use user-defined dpr first
426
- dpr = devicePixelRatio || gLite.isBrowser && window.devicePixelRatio || 1;
427
- dpr = dpr >= 1 ? Math.ceil(dpr) : 1;
428
- this.dpr = dpr;
429
- case 6:
430
- case "end":
431
- return _context.stop();
432
- }
418
+ $namespace = SVGRenderer.createSVGElement('svg', doc);
419
+ $namespace.setAttribute('width', "" + this.canvasConfig.width);
420
+ $namespace.setAttribute('height', "" + this.canvasConfig.height);
421
+ this.$container.appendChild($namespace);
422
+ this.$namespace = $namespace;
423
+ }
424
+ // use user-defined dpr first
425
+ dpr = devicePixelRatio || gLite.isBrowser && window.devicePixelRatio || 1;
426
+ dpr = dpr >= 1 ? Math.ceil(dpr) : 1;
427
+ this.dpr = dpr;
428
+ case 6:
429
+ case "end":
430
+ return _context.stop();
433
431
  }
434
432
  }, _callee, this);
435
433
  }));
@@ -497,113 +495,111 @@ var SVGContextService = /*#__PURE__*/function () {
497
495
  var _this = this;
498
496
  var cloneNode, doc, animationCounter, $style, svgDocType, svgDoc;
499
497
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
500
- while (1) {
501
- switch (_context2.prev = _context2.next) {
502
- case 0:
503
- cloneNode = this.$namespace.cloneNode(true);
504
- doc = this.canvasConfig.document;
505
- animationCounter = 0;
506
- $style = null;
507
- this.context.renderingContext.root.forEach(function (object) {
508
- var animations = object.getAnimations();
509
- if (animations.length) {
510
- if (!$style) {
511
- // export animations to <style>, using CSS Transformation
512
- $style = (doc || document).createElement('style');
513
- cloneNode.appendChild($style);
514
- }
515
- // @ts-ignore
516
- var svgElement = object.elementSVG;
517
- var selfSelector = "#" + svgElement.$el.id;
518
- var groupSelector = "#" + svgElement.$groupEl.id;
519
- var selfCssText = '';
520
- var groupCssText = '';
521
- animations.forEach(function (animation) {
522
- var keyframes = animation.effect.getKeyframes();
523
- // split attributes into self and group
524
- if (keyframes.length) {
525
- var selfAttributes = [];
526
- var groupAttributes = [];
527
- var _keyframes$ = keyframes[0],
528
- offset = _keyframes$.offset,
529
- composite = _keyframes$.composite,
530
- computedOffset = _keyframes$.computedOffset,
531
- easing = _keyframes$.easing,
532
- transformOrigin = _keyframes$.transformOrigin,
533
- rest = _objectWithoutPropertiesLoose(_keyframes$, _excluded2);
534
- Object.keys(rest).forEach(function (attributeName) {
535
- var _propertyMetadataCach;
536
- if (attributeName === 'transform') {
537
- groupAttributes.push(attributeName);
538
- }
539
- var inherited = !!((_propertyMetadataCach = gLite.propertyMetadataCache[attributeName]) === null || _propertyMetadataCach === void 0 ? void 0 : _propertyMetadataCach.inh);
540
- if (inherited) {
541
- groupAttributes.push(attributeName);
542
- } else if (attributeName !== 'transform') {
543
- selfAttributes.push(attributeName);
544
- }
545
- });
546
- if (groupAttributes.length) {
547
- var keyframesWithGroup = keyframes.map(function (keyframe) {
548
- var offset = keyframe.offset,
549
- composite = keyframe.composite,
550
- computedOffset = keyframe.computedOffset,
551
- easing = keyframe.easing,
552
- transformOrigin = keyframe.transformOrigin,
553
- rest = _objectWithoutPropertiesLoose(keyframe, _excluded3);
554
- var ret = {
555
- offset: offset,
556
- composite: composite,
557
- computedOffset: computedOffset,
558
- easing: easing
559
- };
560
- Object.keys(rest).forEach(function (attributeName) {
561
- if (groupAttributes.includes(attributeName)) {
562
- ret[attributeName] = keyframe[attributeName];
563
- }
564
- });
565
- return ret;
566
- });
567
- groupCssText += _this.generateCSSText("a" + animationCounter++, groupSelector, keyframesWithGroup, animation.effect.getComputedTiming(), {
568
- transform: svgElement.$groupEl.getAttribute('transform')
569
- });
498
+ while (1) switch (_context2.prev = _context2.next) {
499
+ case 0:
500
+ cloneNode = this.$namespace.cloneNode(true);
501
+ doc = this.canvasConfig.document;
502
+ animationCounter = 0;
503
+ $style = null;
504
+ this.context.renderingContext.root.forEach(function (object) {
505
+ var animations = object.getAnimations();
506
+ if (animations.length) {
507
+ if (!$style) {
508
+ // export animations to <style>, using CSS Transformation
509
+ $style = (doc || document).createElement('style');
510
+ cloneNode.appendChild($style);
511
+ }
512
+ // @ts-ignore
513
+ var svgElement = object.elementSVG;
514
+ var selfSelector = "#" + svgElement.$el.id;
515
+ var groupSelector = "#" + svgElement.$groupEl.id;
516
+ var selfCssText = '';
517
+ var groupCssText = '';
518
+ animations.forEach(function (animation) {
519
+ var keyframes = animation.effect.getKeyframes();
520
+ // split attributes into self and group
521
+ if (keyframes.length) {
522
+ var selfAttributes = [];
523
+ var groupAttributes = [];
524
+ var _keyframes$ = keyframes[0],
525
+ offset = _keyframes$.offset,
526
+ composite = _keyframes$.composite,
527
+ computedOffset = _keyframes$.computedOffset,
528
+ easing = _keyframes$.easing,
529
+ transformOrigin = _keyframes$.transformOrigin,
530
+ rest = _objectWithoutPropertiesLoose(_keyframes$, _excluded2);
531
+ Object.keys(rest).forEach(function (attributeName) {
532
+ var _propertyMetadataCach;
533
+ if (attributeName === 'transform') {
534
+ groupAttributes.push(attributeName);
570
535
  }
571
- if (selfAttributes.length) {
572
- var keyframesWithSelf = keyframes.map(function (keyframe) {
573
- var offset = keyframe.offset,
574
- composite = keyframe.composite,
575
- computedOffset = keyframe.computedOffset,
576
- easing = keyframe.easing,
577
- transformOrigin = keyframe.transformOrigin,
578
- rest = _objectWithoutPropertiesLoose(keyframe, _excluded4);
579
- var ret = {
580
- offset: offset,
581
- composite: composite,
582
- computedOffset: computedOffset,
583
- easing: easing
584
- };
585
- Object.keys(rest).forEach(function (attributeName) {
586
- if (selfAttributes.includes(attributeName)) {
587
- ret[attributeName] = keyframe[attributeName];
588
- }
589
- });
590
- return ret;
591
- });
592
- selfCssText += _this.generateCSSText("a" + animationCounter++, selfSelector, keyframesWithSelf, animation.effect.getComputedTiming());
536
+ var inherited = !!((_propertyMetadataCach = gLite.propertyMetadataCache[attributeName]) === null || _propertyMetadataCach === void 0 ? void 0 : _propertyMetadataCach.inh);
537
+ if (inherited) {
538
+ groupAttributes.push(attributeName);
539
+ } else if (attributeName !== 'transform') {
540
+ selfAttributes.push(attributeName);
593
541
  }
542
+ });
543
+ if (groupAttributes.length) {
544
+ var keyframesWithGroup = keyframes.map(function (keyframe) {
545
+ var offset = keyframe.offset,
546
+ composite = keyframe.composite,
547
+ computedOffset = keyframe.computedOffset,
548
+ easing = keyframe.easing,
549
+ transformOrigin = keyframe.transformOrigin,
550
+ rest = _objectWithoutPropertiesLoose(keyframe, _excluded3);
551
+ var ret = {
552
+ offset: offset,
553
+ composite: composite,
554
+ computedOffset: computedOffset,
555
+ easing: easing
556
+ };
557
+ Object.keys(rest).forEach(function (attributeName) {
558
+ if (groupAttributes.includes(attributeName)) {
559
+ ret[attributeName] = keyframe[attributeName];
560
+ }
561
+ });
562
+ return ret;
563
+ });
564
+ groupCssText += _this.generateCSSText("a" + animationCounter++, groupSelector, keyframesWithGroup, animation.effect.getComputedTiming(), {
565
+ transform: svgElement.$groupEl.getAttribute('transform')
566
+ });
594
567
  }
595
- });
596
- $style.textContent += selfCssText + groupCssText;
597
- }
598
- });
599
- svgDocType = document.implementation.createDocumentType('svg', '-//W3C//DTD SVG 1.1//EN', 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd');
600
- svgDoc = document.implementation.createDocument('http://www.w3.org/2000/svg', 'svg', svgDocType);
601
- svgDoc.replaceChild(cloneNode, svgDoc.documentElement);
602
- return _context2.abrupt("return", "data:image/svg+xml;charset=utf8," + encodeURIComponent(new XMLSerializer().serializeToString(svgDoc)));
603
- case 10:
604
- case "end":
605
- return _context2.stop();
606
- }
568
+ if (selfAttributes.length) {
569
+ var keyframesWithSelf = keyframes.map(function (keyframe) {
570
+ var offset = keyframe.offset,
571
+ composite = keyframe.composite,
572
+ computedOffset = keyframe.computedOffset,
573
+ easing = keyframe.easing,
574
+ transformOrigin = keyframe.transformOrigin,
575
+ rest = _objectWithoutPropertiesLoose(keyframe, _excluded4);
576
+ var ret = {
577
+ offset: offset,
578
+ composite: composite,
579
+ computedOffset: computedOffset,
580
+ easing: easing
581
+ };
582
+ Object.keys(rest).forEach(function (attributeName) {
583
+ if (selfAttributes.includes(attributeName)) {
584
+ ret[attributeName] = keyframe[attributeName];
585
+ }
586
+ });
587
+ return ret;
588
+ });
589
+ selfCssText += _this.generateCSSText("a" + animationCounter++, selfSelector, keyframesWithSelf, animation.effect.getComputedTiming());
590
+ }
591
+ }
592
+ });
593
+ $style.textContent += selfCssText + groupCssText;
594
+ }
595
+ });
596
+ svgDocType = document.implementation.createDocumentType('svg', '-//W3C//DTD SVG 1.1//EN', 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd');
597
+ svgDoc = document.implementation.createDocument('http://www.w3.org/2000/svg', 'svg', svgDocType);
598
+ svgDoc.replaceChild(cloneNode, svgDoc.documentElement);
599
+ return _context2.abrupt("return", "data:image/svg+xml;charset=utf8," + encodeURIComponent(new XMLSerializer().serializeToString(svgDoc)));
600
+ case 10:
601
+ case "end":
602
+ return _context2.stop();
607
603
  }
608
604
  }, _callee2, this);
609
605
  }));