|
|
@ -72,6 +72,9 @@ AnnotationElementFactory.prototype = |
|
|
|
case AnnotationType.POPUP: |
|
|
|
case AnnotationType.POPUP: |
|
|
|
return new PopupAnnotationElement(parameters); |
|
|
|
return new PopupAnnotationElement(parameters); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
case AnnotationType.UNDERLINE: |
|
|
|
|
|
|
|
return new UnderlineAnnotationElement(parameters); |
|
|
|
|
|
|
|
|
|
|
|
default: |
|
|
|
default: |
|
|
|
throw new Error('Unimplemented annotation type "' + subtype + '"'); |
|
|
|
throw new Error('Unimplemented annotation type "' + subtype + '"'); |
|
|
|
} |
|
|
|
} |
|
|
@ -600,6 +603,33 @@ var PopupElement = (function PopupElementClosure() { |
|
|
|
return PopupElement; |
|
|
|
return PopupElement; |
|
|
|
})(); |
|
|
|
})(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* @class |
|
|
|
|
|
|
|
* @alias UnderlineAnnotationElement |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
var UnderlineAnnotationElement = ( |
|
|
|
|
|
|
|
function UnderlineAnnotationElementClosure() { |
|
|
|
|
|
|
|
function UnderlineAnnotationElement(parameters) { |
|
|
|
|
|
|
|
AnnotationElement.call(this, parameters); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Util.inherit(UnderlineAnnotationElement, AnnotationElement, { |
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* Render the underline annotation's HTML element in the empty container. |
|
|
|
|
|
|
|
* |
|
|
|
|
|
|
|
* @public |
|
|
|
|
|
|
|
* @memberof UnderlineAnnotationElement |
|
|
|
|
|
|
|
* @returns {HTMLSectionElement} |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
render: function UnderlineAnnotationElement_render() { |
|
|
|
|
|
|
|
this.container.className = 'underlineAnnotation'; |
|
|
|
|
|
|
|
return this.container; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return UnderlineAnnotationElement; |
|
|
|
|
|
|
|
})(); |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* @typedef {Object} AnnotationLayerParameters |
|
|
|
* @typedef {Object} AnnotationLayerParameters |
|
|
|
* @property {PageViewport} viewport |
|
|
|
* @property {PageViewport} viewport |
|
|
|