Splitting a compound path out into multiple paths

84 views
Skip to first unread message

Geoff Harper

unread,
Jan 8, 2025, 4:57:55 PMJan 8
to Paper.js
Hi I'm trying to figure out the simplest way to split a compound path. 


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