开发者

jQuery drawing and modifying lines and positions

开发者 https://www.devze.com 2022-12-23 23:08 出处:网络
I want to a开发者_开发问答llow people to select a feature region on an image using jQuery. This should work similarly to the Facebook tagger except once someone \"tags\" an area of the image an ellips

I want to a开发者_开发问答llow people to select a feature region on an image using jQuery. This should work similarly to the Facebook tagger except once someone "tags" an area of the image an ellipse should appear with the ability for the user to rotate and scale it.

How can I achieve this using jQuery?


In terms of image rotation, take a look at Raphaël -- specifically this demo. Raphaël plays nicely with jQuery.


I'm not sure about the rotating part, but I've used this in the past for the selection piece:

imgAreaSelect jQuery Plugin

Makes it very easy to grab the coordinates of the selection (and very clear to the user what they're selecting), when rendering later you could do whatever you desire with the defined area.


I would start by looking at jQuery.animate() and also look at animate plugin/patch

0

精彩评论

暂无评论...
验证码 换一张
取 消