@ -17,7 +17,7 @@
@@ -17,7 +17,7 @@
'use strict' ;
/ * *
* @ typedef { Object } Annotations LayerBuilderOptions
* @ typedef { Object } AnnotationLayerBuilderOptions
* @ property { HTMLDivElement } pageDiv
* @ property { PDFPage } pdfPage
* @ property { IPDFLinkService } linkService
@ -26,12 +26,12 @@
@@ -26,12 +26,12 @@
/ * *
* @ class
* /
var Annotations LayerBuilder = ( function Annotations LayerBuilderClosure ( ) {
var AnnotationLayerBuilder = ( function AnnotationLayerBuilderClosure ( ) {
/ * *
* @ param { Annotations LayerBuilderOptions } options
* @ constructs Annotations LayerBuilder
* @ param { AnnotationLayerBuilderOptions } options
* @ constructs AnnotationLayerBuilder
* /
function Annotations LayerBuilder ( options ) {
function AnnotationLayerBuilder ( options ) {
this . pageDiv = options . pageDiv ;
this . pdfPage = options . pdfPage ;
this . linkService = options . linkService ;
@ -39,14 +39,14 @@ var AnnotationsLayerBuilder = (function AnnotationsLayerBuilderClosure() {
@@ -39,14 +39,14 @@ var AnnotationsLayerBuilder = (function AnnotationsLayerBuilderClosure() {
this . div = null ;
}
Annotations LayerBuilder . prototype =
/** @lends Annotations LayerBuilder.prototype */ {
AnnotationLayerBuilder . prototype =
/** @lends AnnotationLayerBuilder.prototype */ {
/ * *
* @ param { PageViewport } viewport
* @ param { string } intent ( default value is 'display' )
* /
render : function Annotations LayerBuilder _render ( viewport , intent ) {
render : function AnnotationLayerBuilder _render ( viewport , intent ) {
var self = this ;
var parameters = {
intent : ( intent === undefined ? 'display' : intent ) ,
@ -79,7 +79,7 @@ var AnnotationsLayerBuilder = (function AnnotationsLayerBuilderClosure() {
@@ -79,7 +79,7 @@ var AnnotationsLayerBuilder = (function AnnotationsLayerBuilderClosure() {
} ) ;
} ,
hide : function Annotations LayerBuilder _hide ( ) {
hide : function AnnotationLayerBuilder _hide ( ) {
if ( ! this . div ) {
return ;
}
@ -87,22 +87,22 @@ var AnnotationsLayerBuilder = (function AnnotationsLayerBuilderClosure() {
@@ -87,22 +87,22 @@ var AnnotationsLayerBuilder = (function AnnotationsLayerBuilderClosure() {
}
} ;
return Annotations LayerBuilder ;
return AnnotationLayerBuilder ;
} ) ( ) ;
/ * *
* @ constructor
* @ implements IPDFAnnotations LayerFactory
* @ implements IPDFAnnotationLayerFactory
* /
function DefaultAnnotations LayerFactory ( ) { }
DefaultAnnotations LayerFactory . prototype = {
function DefaultAnnotationLayerFactory ( ) { }
DefaultAnnotationLayerFactory . prototype = {
/ * *
* @ param { HTMLDivElement } pageDiv
* @ param { PDFPage } pdfPage
* @ returns { Annotations LayerBuilder }
* @ returns { AnnotationLayerBuilder }
* /
createAnnotations LayerBuilder : function ( pageDiv , pdfPage ) {
return new Annotations LayerBuilder ( {
createAnnotationLayerBuilder : function ( pageDiv , pdfPage ) {
return new AnnotationLayerBuilder ( {
pageDiv : pageDiv ,
pdfPage : pdfPage ,
linkService : new SimpleLinkService ( ) ,