mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
Keep empty clip mask in SVG export
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.
This commit is contained in:
parent
3d330da4fc
commit
b5b1aa57d7
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue