Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert the annotation layer builder, presentation mode and rendering queue to ES6 syntax #8324

Conversation

timvandermeij
Copy link
Contributor

@timvandermeij timvandermeij commented Apr 23, 2017

@timvandermeij timvandermeij force-pushed the es6-annotation-presentation-rendering branch from d6331cf to 8c488e8 Compare April 23, 2017 19:34
@timvandermeij
Copy link
Contributor Author

/botio-linux preview

@Snuffleupagus Snuffleupagus self-requested a review April 27, 2017 09:57
Copy link
Collaborator

@Snuffleupagus Snuffleupagus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great, thanks for doing this!

I've got one question though: Shouldn't

pdf.js/web/interfaces.js

Lines 108 to 121 in f4690a3

/**
* @interface
*/
function IPDFAnnotationLayerFactory() {}
IPDFAnnotationLayerFactory.prototype = {
/**
* @param {HTMLDivElement} pageDiv
* @param {PDFPage} pdfPage
* @param {boolean} renderInteractiveForms
* @returns {AnnotationLayerBuilder}
*/
createAnnotationLayerBuilder: function (pageDiv, pdfPage,
renderInteractiveForms) {}
};
be updated too?

/**
* @param {HTMLDivElement} pageDiv
* @param {PDFPage} pdfPage
* @param {boolean} renderInteractiveForms
* @returns {AnnotationLayerBuilder}
*/
createAnnotationLayerBuilder: function (pageDiv, pdfPage,
renderInteractiveForms) {
createAnnotationLayerBuilder(pageDiv, pdfPage, renderInteractiveForms) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Should we use renderInteractiveForms = false here, just to signal what the default value is?

Copy link
Contributor Author

@timvandermeij timvandermeij Apr 27, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in the new commit. I have updated the interface as well. With the new ES6 syntax, ESLint is able to detect that the interface is not used anywhere (expected due to its nature), so we have to disable linting there. Otherwise it's a trivial change.

@timvandermeij timvandermeij force-pushed the es6-annotation-presentation-rendering branch from 8c488e8 to a51311b Compare April 27, 2017 14:17
@timvandermeij
Copy link
Contributor Author

/botio-linux preview

@timvandermeij timvandermeij force-pushed the es6-annotation-presentation-rendering branch from a51311b to 24d44b2 Compare April 27, 2017 14:23
@timvandermeij
Copy link
Contributor Author

/botio-linux preview

@pdfjsbot
Copy link

From: Bot.io (Linux)


Received

Command cmd_preview from @timvandermeij received. Current queue size: 0

Live output at: http://107.21.233.14:8877/40ccd7092a90a6a/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux)


Success

Full output at http://107.21.233.14:8877/40ccd7092a90a6a/output.txt

Total script time: 3.90 mins

Published

@timvandermeij timvandermeij merged commit 32c0ea5 into mozilla:master Apr 27, 2017
@timvandermeij timvandermeij deleted the es6-annotation-presentation-rendering branch April 27, 2017 14:30
movsb pushed a commit to movsb/pdf.js that referenced this pull request Jul 14, 2018
…sentation-rendering

Convert the annotation layer builder, presentation mode and rendering queue to ES6 syntax
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants