Currently, I am utilizing Raphael along with Elberts FreeTransform Plugin. You can view my progress so far by visiting MyWork
The issue arises when I attempt to translate or rotate the set of rectangles within my clip path. Once rotated or translated, it no longer functions correctly. My goal is to keep those rectangles inside the boundary of the path; if they go outside, they should disappear. The reason why I am manually using JavaScript instead of relying on Raphael for clip path is that Raphael only supports clip rect. I would greatly appreciate any guidance you can provide to resolve this issue.
Thank you in advance!
Update:1 My Work 2 I managed to solve the translation case, but the rotation case still causes disturbance to the entire set.