|
|
@ -45,7 +45,7 @@ var AnnotationUtils = (function AnnotationUtilsClosure() { |
|
|
|
style.fontFamily = fontFamily + fallbackName; |
|
|
|
style.fontFamily = fontFamily + fallbackName; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function initContainer(item, drawBorder) { |
|
|
|
function initContainer(item) { |
|
|
|
var container = document.createElement('section'); |
|
|
|
var container = document.createElement('section'); |
|
|
|
var cstyle = container.style; |
|
|
|
var cstyle = container.style; |
|
|
|
var width = item.rect[2] - item.rect[0]; |
|
|
|
var width = item.rect[2] - item.rect[0]; |
|
|
@ -149,7 +149,7 @@ var AnnotationUtils = (function AnnotationUtilsClosure() { |
|
|
|
rect[2] = rect[0] + (rect[3] - rect[1]); // make it square
|
|
|
|
rect[2] = rect[0] + (rect[3] - rect[1]); // make it square
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
var container = initContainer(item, false); |
|
|
|
var container = initContainer(item); |
|
|
|
container.className = 'annotText'; |
|
|
|
container.className = 'annotText'; |
|
|
|
|
|
|
|
|
|
|
|
var image = document.createElement('img'); |
|
|
|
var image = document.createElement('img'); |
|
|
@ -256,7 +256,7 @@ var AnnotationUtils = (function AnnotationUtilsClosure() { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function getHtmlElementForLinkAnnotation(item) { |
|
|
|
function getHtmlElementForLinkAnnotation(item) { |
|
|
|
var container = initContainer(item, true); |
|
|
|
var container = initContainer(item); |
|
|
|
container.className = 'annotLink'; |
|
|
|
container.className = 'annotLink'; |
|
|
|
|
|
|
|
|
|
|
|
var link = document.createElement('a'); |
|
|
|
var link = document.createElement('a'); |
|
|
|