Skip to content

Comments

Clipped groups to support clipping of any object#59

Open
obeattie wants to merge 1 commit intopaperjs:masterfrom
obeattie:master
Open

Clipped groups to support clipping of any object#59
obeattie wants to merge 1 commit intopaperjs:masterfrom
obeattie:master

Conversation

@obeattie
Copy link
Contributor

Re-opened from phantom request 56

Changed implementation of clipped groups to support masking from any object

As CanvasNode.clip() does not seem to support clipping to anything other than a path, changed the implementation to instead render to an in-memory canvas, and use globalCompositeOperation to achieve the desired effect.

As discussed on the mailing list, this allows a shape to be clipped within text for example.

…object

As CanvasNode.clip() does not seem to support clipping to anything other than a path, changed the implementation to instead render to an in-memory canvas, and use globalCompositeOperation to achieve the desired effect.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants