changeset 1248:56f0dfaf10cd

vector plugin uses screen coordinates in SVG now.
author robcast
date Thu, 16 Jan 2014 19:17:47 +0100
parents 032dfc2515e9
children 20fe79f8f432
files webapp/src/main/webapp/jquery/digilib-vector.html
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/webapp/src/main/webapp/jquery/digilib-vector.html	Thu Jan 16 15:10:17 2014 +0100
+++ b/webapp/src/main/webapp/jquery/digilib-vector.html	Thu Jan 16 19:17:47 2014 +0100
@@ -39,8 +39,11 @@
                     'geometry' : {
                         'type' : 'Line',
                         'coordinates' : [[0.1, 0.1], [0.2, 0.2]]
+                    },
+                    'properties' : {
+                    	'editable' : true
                     }
-                    },{
+                },{
                     'geometry' : {
                         'type' : 'Rectangle',
                         'coordinates' : [[0.2, 0.2], [0.3, 0.3]]
@@ -54,7 +57,8 @@
         </script>
     </head>
 
-    <body>
+    <body onload="$('#digilib').digilib('addShape', {'geometry':{'type':'Rectangle','coordinates':null}})"> 
+    <!-- <body> -->
         <div id="digilib">
             <p>digilib doesn't work! Please switch on Javascript or notify the server administrator!</p>
             <img src="http://digilib.berlios.de/images/digilib-logo-big.png" />