Resize the width and height of shape (not scaling) in paperjs

▼魔方 西西 提交于 2019-12-12 03:37:52

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!