开发者

jQuery plugin to draw, resize and move boxes

I'm developing a page where I can draw boxes, resize them (pulling edges or corners) and move them by dragging (and I also need a zooming function, but this is another problem).

I found individual jQuery plugins to make each task but they do not live together well (e.g. when I try to resize, a new box is drawn...)开发者_JAVA百科.

Is there an all-in-one plugin for my purpose?

EDIT: I use ui.draggable and ui.resizable; this is the drawing plugin: boxer


There is a canvas plugin for this kind of stuff that might help: http://www.websanova.com/plugins/websanova/paint


Check the documentation to see if there is a way to return false on the drawing plugin. Essentially you will want to put an if/else statement in the callback hook of the drawing function that checks to see if you are in a place where you should instead be invoking resize.

Make sense?

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜