I wish to interactively move handles or points in a path with the mouse. I think I can manage to program a scan in all points and handles and compute the one at mouse position. But is there a more simple way to select them?
相关问题
- How to pan using paperjs
- How to install and import paperjs for Angular 2?
- Paper.js won't resize the canvas correctly
- Is it possible to create a paper.js PointText obje
- Paper.js Interoperability
相关文章
- Paper.js won't resize the canvas correctly
- Is it possible to create a paper.js PointText obje
- Paper.js Interoperability
- 我可以用JavaScript连接对象?(Can I connect objects with jav
- 在Paper.js,有一个简单的方法来选择的最近点(相对于鼠标)?(In Paper.js, is
- Paperscope和paperjs(Paperscope and paperjs)
- 动态加载脚本改变其行为(Dynamically loading a script changes i
- How to divide the path into several segments?
You can use
getNearestPoint(cursorPoint)
method which can be invoked fromPath
itemLink to the documentation with an example: http://paperjs.org/reference/path/#getnearestpoint-point