Mercurial > hg > digilib
changeset 1334:08296a1ef2d5
fixed typo.
author | robcast |
---|---|
date | Tue, 27 Jan 2015 11:46:07 +0100 |
parents | 1e94680cbc51 |
children | 175a0f223737 |
files | webapp/src/main/webapp/jquery/jquery.digilib.annotator.js |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/webapp/src/main/webapp/jquery/jquery.digilib.annotator.js Tue Jan 27 11:45:37 2015 +0100 +++ b/webapp/src/main/webapp/jquery/jquery.digilib.annotator.js Tue Jan 27 11:46:07 2015 +0100 @@ -278,24 +278,24 @@ pos = geom.position(newshape.geometry.coordinates[0]); // create annotation shape annoShape = {'type': 'point', 'geometry': pos}; - annoshape.geometry['units'] = 'fraction'; + annoShape.geometry['units'] = 'fraction'; } else if (type === 'Rectangle') { pos = geom.position(newshape.geometry.coordinates[0]); var pt2 = geom.position(newshape.geometry.coordinates[1]); var rect = geom.rectangle(pos, pt2); // create annotation shape annoShape = {'type': 'rectangle', 'geometry': rect}; - annoshape.geometry['units'] = 'fraction'; + annoShape.geometry['units'] = 'fraction'; } else if (type === 'Polygon') { pos = geom.position(newshape.geometry.coordinates[0]); // create annotation shape annoShape = {'type': 'polygon', 'geometry': {'coordinates': newshape.geometry.coordinates}}; - annoshape.geometry['units'] = 'fraction'; + annoShape.geometry['units'] = 'fraction'; } else if (type === 'LineString') { pos = geom.position(newshape.geometry.coordinates[0]); // create annotation shape annoShape = {'type': 'linestring', 'geometry': {'coordinates': newshape.geometry.coordinates}}; - annoshape.geometry['units'] = 'fraction'; + annoShape.geometry['units'] = 'fraction'; } else { console.error("Unsupported annotation shape="+type); return; @@ -399,7 +399,7 @@ }, 'properties' : { 'stroke' : 'yellow', - 'cssclass' : cssPrefix+'svg-annotationregion annotator-hl', + 'cssclass' : cssPrefix+'svg-annotation annotator-hl', 'style' : 'pointer-events:all' }, 'annotation': annotation