Has anyone successfully created a "drop zone" similar to interact.js using fabric.js?
I haven't had the chance to experiment with it myself. I have some ideas on how I could potentially implement it, but before diving in, I wanted to see if anyone else has done something similar. My Google searches so far haven't turned up anything useful.
*Note: I'd prefer not to add another library just for this specific functionality. While I know I could use interact.js, I'm hoping to avoid adding unnecessary dependencies if possible.
Answer:
For those seeking a solution... You could potentially achieve this using isContainedWithinObject(other, absoluteopt, calculateopt) → {Boolean} method in fabric.js. After going through the fabric.js documentation, I realized that drawing 9 rectangles (top left, top center, top right, middle left, middle center, middle right, bottom left, bottom center, and bottom right) and running the method on the appropriate objects might do the trick.