On 27/10/06, Stephen Woodbridge <[EMAIL PROTECTED]> wrote:
> <snip> Since a lot of what I
> do it maps and building apps on top of maps, I would really be able to
> use some generic tools for drawing that are fast, cross browser and
> capable of handling more than a few dozen points or objects.</snip>
So I guess what you want a a shape drawing plugin? That could be
useful and I could imaging a syntax similar to this:
// draw a circle in the centre of #container
$("#container").drawShape("circle", { origin: "centre", radius: "30px"})
// draw a circle in the 5px from the left and 8px from the top,
cropped when it reaches the edge (so you get a partial circle)
$("#container").drawShape("circle", { origin: {left: "5px", top:
"8px"}, radius: "30px" })
// draw a rectangle in the centre
$("#container").drawShape("rectangle", { origin: "center", width:
"30px", height: "35px" })
Other shapes could perhaps be added as well (triangles, trapezoids
etc). Some shapes are under several categories (a square is a
rectangle and a rohmbus). However, I have no idea how to implement
something like this.
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/