mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-10 02:05:37 +02:00
Convert the annotation layer builder to ES6 syntax
This commit is contained in:
parent
99d35a1039
commit
3554a93c2b
2 changed files with 53 additions and 72 deletions
|
@ -108,14 +108,13 @@ IPDFTextLayerFactory.prototype = {
|
|||
/**
|
||||
* @interface
|
||||
*/
|
||||
function IPDFAnnotationLayerFactory() {}
|
||||
IPDFAnnotationLayerFactory.prototype = {
|
||||
class IPDFAnnotationLayerFactory { // eslint-disable-line no-unused-vars
|
||||
/**
|
||||
* @param {HTMLDivElement} pageDiv
|
||||
* @param {PDFPage} pdfPage
|
||||
* @param {boolean} renderInteractiveForms
|
||||
* @returns {AnnotationLayerBuilder}
|
||||
*/
|
||||
createAnnotationLayerBuilder: function (pageDiv, pdfPage,
|
||||
renderInteractiveForms) {}
|
||||
};
|
||||
createAnnotationLayerBuilder(pageDiv, pdfPage,
|
||||
renderInteractiveForms = false) {}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue