# HG changeset patch # User robcast # Date 1389881417 -3600 # Node ID 032dfc2515e94fd1785534b4305e8c395e61e46d # Parent 778c099c6b4c763a97af4c1257bdd257b69ccebc more doc. diff -r 778c099c6b4c -r 032dfc2515e9 webapp/src/main/webapp/jquery/jquery.digilib.vector.js --- a/webapp/src/main/webapp/jquery/jquery.digilib.vector.js Thu Jan 16 14:19:46 2014 +0100 +++ b/webapp/src/main/webapp/jquery/jquery.digilib.vector.js Thu Jan 16 15:10:17 2014 +0100 @@ -79,7 +79,11 @@ }, /** - * add vector object (shape) or create by clicking. + * add vector object (shape) or create one by clicking. + * + * For interactive use shape has to be initialized with a shape object with + * type but no coordinates, e.g {'geometry':{'type':'Line'}}. The onComplete + * function will be called with data and the new shape object as parameters. * * @param data * @param shape @@ -232,8 +236,8 @@ } }; - /** define a shape by click and drag - * + /** + * define a shape by click and drag. */ var defineShape = function(data, shape, onComplete) { var shapeType = shape.geometry.type;