简体   繁体   中英

Ruby on Rails Ajax rubberband

I want my users to be able to do a rubberband selection in a image for a Ruby on Rails application. Has anyone seen any good plugins that do this or make it easy for me to implement it?

I played around with an image cropper that has that feature, and it uses Prototype , so it should be good to go for ROR. The code is pretty easy to figure out if you just want the elastic band element.

If you want to roll-your-own it's not too hard to glue a Scriptaculous Draggable object to a DIV and resize/move the DIV. See my crappy demo .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM