Is there any way to allow objects only to move within another objects in a canvas in fabric js?

169 Views Asked by At

I'm new to fabric js, Simply I want to allow some objects (rectangles) to move within a given object(polygon) as in the diagram. Is there any way to do it in fabric js?

diagram

0

There are 0 best solutions below