Skip to content

Commit

Permalink
Keep empty clip mask in SVG export
Browse files Browse the repository at this point in the history
A path should be exported in SVG if it serves as a clip mask, otherwise all items in the clip group that were hidden by clipping in paper.js become visible in the SVG.
  • Loading branch information
iconexperience committed Feb 15, 2016
1 parent 3d330da commit b5b1aa5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/svg/SvgExport.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ new function() {
var segments = item._segments,
type,
attrs = getTransform(item._matrix);
if (segments.length === 0)
if (segments.length === 0 && !item.isClipMask())
return null;
if (matchShapes && !item.hasHandles()) {
if (segments.length >= 3) {
Expand Down

0 comments on commit b5b1aa5

Please sign in to comment.