Autoarrow.js is a project mainly written in JavaScript, it's free.
Point an arrow from any element to a rectangle in image.
autoarrow.js is a simple piece of JavaScript code that can draw an arrow from any element to a rectangle in an image. When describing an image, it can be used conveniently to point to objects in the image from the words mentioning it.
This script has not been well tested but it runs well in current versions of Firefox/Chrome.
jQuery (I don't know the lowest version needed)
Please see sample.html for its usage. Basically follow these steps:
new ArrowContainer()
with this element as parameter, and a color
string for the arrows.container.addArrow()
to add arrows
into the canvas. The arguments:There is a sample.html included.
I applied this script to my blog and here are some posts: