Fabric.js demos · Intersection

Note that intersection is checked against bounding boxes, not actual shapes