fabric-vectr 6.7.9 → 6.7.10

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.js CHANGED
@@ -366,7 +366,7 @@
366
366
  }
367
367
  const cache = new Cache();
368
368
 
369
- var version = "6.7.9";
369
+ var version = "6.7.10";
370
370
 
371
371
  // use this syntax so babel plugin see this import here
372
372
  const VERSION = version;
@@ -5063,7 +5063,10 @@
5063
5063
  if (clipPath) {
5064
5064
  markup.push(clipPathMarkup);
5065
5065
  }
5066
- markup.push(objectMarkup.join(''));
5066
+ // if use pattern, ignore objectMarkup, because pattern clipPath has been applied in pattern's svg, and objectMarkup is not needed anymore
5067
+ if (!this.clipPathPattern) {
5068
+ markup.push(objectMarkup.join(''));
5069
+ }
5067
5070
  markup.push('</g>\n');
5068
5071
  absoluteClipPath && markup.push('</g>\n');
5069
5072
  return reviver ? reviver(markup.join('')) : markup.join('');