You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a Group has an empty path as the clip mask, the other child items are not visible. This is the expected behaviour, because the visible area is zero.
But if the Group is exported as SVG, the empty clip mask will be removed and no clipping will be applied at all in the SVG, so all previously hidden child nodes become visible.
If a
Group
has an empty path as the clip mask, the other child items are not visible. This is the expected behaviour, because the visible area is zero.But if the
Group
is exported as SVG, the empty clip mask will be removed and no clipping will be applied at all in the SVG, so all previously hidden child nodes become visible.Here is a little example:
And here is the Sketch
If you open the SVG output in a browser, you will see that the red circle is displayed. The SVG output is here:
As you can see, the clip mask is gone.
In detail this happens because in SvgExport.js line 72 the function
exportSVG()
returnsnull
.To fix this a check if the path is a clip mask could be added in SvgExport.js line 113 like this:
The text was updated successfully, but these errors were encountered: