Skip to content

Masking using the imperative API? #810

Discussion options

You must be logged in to vote

For others: this solves my problem :)
The Drawing component doesn't draw outside the clip set by the group.

<Group clip={rect(0, 0, someWidth, someHeight)}>
    <Drawing drawing={({canvas}) => {
       canvas.drawPath(somePath, somePaint);
    } } />
</Group>

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@wcandillon
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by RCNNT-Industries
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants