tbfleming / jscut

In-browser CAM package
http://jscut.org
GNU General Public License v3.0
295 stars 136 forks source link

Double click to select/deselect all #54

Closed brantwedel closed 7 years ago

brantwedel commented 7 years ago

As the title suggests, allows selecting all paths by double clicking. Double clicking again will deselect all paths.

I was thinking about a warning if there was an active selection or ability to undo, in case double click is accidental. Or this can be easily tied to a "Select All" button instead.

Also, regarding https://github.com/tbfleming/jscut/issues/19 , it should be about 5 more lines of code to select all of the same color objects in the document if you double click on a path instead of an empty area. If that sounds useful I can whip it up quickly.

tbfleming commented 7 years ago

Use Inkscape's Path->Union command. jscut's successor has color filtering and more flexible selections: https://laserweb.github.io/LaserWeb4/

brantwedel commented 7 years ago

Yep, I looked at it and figured that was the way you were headed. I actually tried it and had some problems. I'll stop PR'ing here 🙃 In the meantime if anyone is still using this, I am using a tampermonkey script to add this code for me when I load jscut.org. https://gist.github.com/brantwedel/d028c1bdf1acb34bb00d702913d948b3

Feel free to close this PR

tbfleming commented 7 years ago

One thing to watch out for: LW4 is Chrome only.

brantwedel commented 7 years ago

What other browser is there ;-D I'll try and figure it out, thanks, and good luck with LW4 development