mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
More cleanup regarding annotation border styles
This commit is contained in:
parent
4b6e2724ae
commit
465611a2ff
3 changed files with 5 additions and 8 deletions
|
@ -160,7 +160,6 @@ var Annotation = (function AnnotationClosure() {
|
|||
this.borderStyle.setHorizontalCornerRadius(array[0]);
|
||||
this.borderStyle.setVerticalCornerRadius(array[1]);
|
||||
this.borderStyle.setWidth(array[2]);
|
||||
this.borderStyle.setStyle('S');
|
||||
|
||||
if (array.length === 4) { // Dash array available
|
||||
this.borderStyle.setDashArray(array[3]);
|
||||
|
|
|
@ -45,7 +45,7 @@ var AnnotationUtils = (function AnnotationUtilsClosure() {
|
|||
style.fontFamily = fontFamily + fallbackName;
|
||||
}
|
||||
|
||||
function initContainer(item, drawBorder) {
|
||||
function initContainer(item) {
|
||||
var container = document.createElement('section');
|
||||
var cstyle = container.style;
|
||||
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
|
||||
}
|
||||
|
||||
var container = initContainer(item, false);
|
||||
var container = initContainer(item);
|
||||
container.className = 'annotText';
|
||||
|
||||
var image = document.createElement('img');
|
||||
|
@ -256,7 +256,7 @@ var AnnotationUtils = (function AnnotationUtilsClosure() {
|
|||
}
|
||||
|
||||
function getHtmlElementForLinkAnnotation(item) {
|
||||
var container = initContainer(item, true);
|
||||
var container = initContainer(item);
|
||||
container.className = 'annotLink';
|
||||
|
||||
var link = document.createElement('a');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue