问题
How can I implement the resizing of width and height of a shape in paper js. just like this : Resizing Objects in Fabric.js ? I am currently basing on this link : Transform bounding box in Paper.js .
回答1:
I have implemented it in Romanesco but it is a bit complicated (I still have to clean the code).
Maybe you would go faster by doing it yourself.
Anyway you can have a look in the source code, in SelectionRectangle.coffee, SelectTool.coffe and Item.coffee.
来源:https://stackoverflow.com/questions/37876892/resize-the-width-and-height-of-shape-not-scaling-in-paperjs