# HG changeset patch # User robcast # Date 1389951231 -3600 # Node ID 0bcc1cd62fc638434c7c195a715187d04aed216b # Parent f9b3620a203e44a96a337adb33781933c4f8c68c start editable shapes. diff -r f9b3620a203e -r 0bcc1cd62fc6 webapp/src/main/webapp/jquery/digilib-vector.html --- a/webapp/src/main/webapp/jquery/digilib-vector.html Thu Jan 16 19:38:36 2014 +0100 +++ b/webapp/src/main/webapp/jquery/digilib-vector.html Fri Jan 17 10:33:51 2014 +0100 @@ -57,8 +57,8 @@ - - + +

digilib doesn't work! Please switch on Javascript or notify the server administrator!

diff -r f9b3620a203e -r 0bcc1cd62fc6 webapp/src/main/webapp/jquery/jquery.digilib.css --- a/webapp/src/main/webapp/jquery/jquery.digilib.css Thu Jan 16 19:38:36 2014 +0100 +++ b/webapp/src/main/webapp/jquery/jquery.digilib.css Fri Jan 17 10:33:51 2014 +0100 @@ -393,6 +393,11 @@ border:none; } +/* SVG */ +div.dl-digilib .dl-svg-handle:hover { + fill: red; +} + /* special definitions for embedded */ div.dl-digilib.dl-embedded { position: relative; diff -r f9b3620a203e -r 0bcc1cd62fc6 webapp/src/main/webapp/jquery/jquery.digilib.vector.js --- a/webapp/src/main/webapp/jquery/jquery.digilib.vector.js Thu Jan 16 19:38:36 2014 +0100 +++ b/webapp/src/main/webapp/jquery/jquery.digilib.vector.js Fri Jan 17 10:33:51 2014 +0100 @@ -166,6 +166,9 @@ //renderShapes(data); }; + /** + * render list of shapes on screen. + */ var renderShapes = function (data) { console.debug("renderShapes shapes:", data.shapes); if (data.shapes == null || data.imgTrafo == null || !data.settings.isVectorActive) @@ -174,11 +177,12 @@ data.$svg.remove(); } var settings = data.settings; + var css = settings.cssPrefix; var trafo = data.imgTrafo; var svg = ''; + style="position:absolute; z-index:10; pointer-events:visiblePainted;">'; for (var i in data.shapes) { var vec = data.shapes[i]; // use given id @@ -201,6 +205,16 @@ x2="'+p2.x+'" y2="'+p2.y+'"\ stroke="'+stroke+'" stroke-width="'+strokeWidth+'"\ />'; + if (props.editable != null) { + svg += ''; + /* svg += ''; */ + } } else if (gt === 'Rectangle') { /* * Rectangle