paperjs select items and delete on mouse click
问题 I want to create select an item and delete it when its needed. For example:- I have a line and a rectangle on a canvas, If the user wants to delete it how can I do it? I can track the click event but what happens if there is a overlap with other items. HTML jquery/paperjs $(document).ready(function(){ paper.install(window) paper.setup('myCanvas') var tool = new Tool(); tool.minDistance = 10 project.currentStyle = { strokeColor: 'red', fillColor: '#ff0000', strokeWidth: 3 }; var from = new