Groups
Groups
Sign in
Groups
Groups
Paper.js
Conversations
About
Send feedback
Help
Splitting a compound path out into multiple paths
84 views
Skip to first unread message
Geoff Harper
unread,
Jan 8, 2025, 4:57:55 PM
Jan 8
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Paper.js
Hi I'm trying to figure out the simplest way to split a compound path.
I have a simple case illustrated here
http://sketch.paperjs.org/#V/0.12.18/S/pZHBCsIwEER/JcRDFYqkSi8RD9ofED1aDzFdbWi6W9qooPjvplgVPBVd2MPM4c0Oe+OoSuCSbwpwOuch15S1WhM2jmkqKzphxuYM4cKSTq6Uy4e3FJmfg7E2IUu1ZMFAiEMQfvz1yYK34QxIWRakeB+lmOKTXYN20aIjt8Tx2jsKjxZe7Ioa4wyhZNsoFqHfXUdvzNWTp0J0ulI1oJPvg8M2a/YVtvwrrDX7h016N4t/aeYfta9BFRUZdA2X2939AQ==
.
The ideal result is rect1 becoming its own compound path instance and rect2 becoming a different path instance. I know I could probably sus it out eventually doing a bunch of hit tests and what have you but I'm wondering if there's a simpler way.
Thanks
Reply all
Reply to author
Forward
0 new messages