Skip to content

Commit

Permalink
ws fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaMan123 committed Sep 20, 2022
1 parent e18d5c6 commit 6a868f9
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/shapes/group.class.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1017,12 +1017,11 @@ import { Point } from '../point.class';
_contentToSVG: function (reviver, forClipping) {
const svgOutput = [];
const bg = this._createSVGBgRect(reviver);
bg && svgOutput.push('\t\t', bg);
const ws = forClipping ? '\t' : '\t\t';
const method = forClipping ? 'toClipPathSVG' : 'toSVG';
bg && svgOutput.push(ws, bg);
for (let i = 0; i < this._objects.length; i++) {
svgOutput.push(
'\t\t',
this._objects[i][forClipping ? 'toClipPathSVG' : 'toSVG'](reviver)
);
svgOutput.push(ws, this._objects[i][method](reviver));
}
return svgOutput;
},
Expand Down

0 comments on commit 6a868f9

Please sign in to comment.