I'm aware that I can scale a Raster object in Paper.js, as well as a TextItem and a Path.
However, I'd like to do this on dragging the selection lines or bounding box of a Raster, TextItem, or Path, just as you would when resizing an image in a program like Word. These bounds form a Rectangle object. Can I hook into this, perhaps using the fitBounds
method? Or more broadly, how can I capture a mouse drag event on the selection lines of a Raster, TextItem, or Path? I suppose once I can do that I can use the scale
method to grow/shrink the object.
Here's a Paper.js sketch to get you started and for experimentation, borrowed from @Christoph. See also the documentation for Paper.js.