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

Remove src/core/annotation.js from the gulp jsdoc build target #10713

Merged
merged 1 commit into from
Apr 4, 2019

Conversation

Snuffleupagus
Copy link
Collaborator

Note how at https://mozilla.github.io/pdf.js/api/ it's being described as API docs, however src/core/annotation.js is not part of the public API.
Furthermore, given that the code residing in the src/core/ folder is run in a worker-thread, it's not even accessible on the main-thread (since postMessage is being used to transfer the data).
Hence the different API methods simply returns a "proxy" to the underlying data, but not actually the same objects and data structures as in the worker-thread itself; thus it doesn't make a whole lot of sense to expose this in API docs as far as I'm concerned.

Finally, the patch fixes a small JSDoc related typo in src/display/api.js when referring to the TextStyle typedef.

Note how at https://mozilla.github.io/pdf.js/api/ it's being described as API docs, however `src/core/annotation.js` is not part of the public API.
Furthermore, given that the code residing in the `src/core/` folder is run in a worker-thread, it's not even accessible on the main-thread (since `postMessage` is being used to transfer the data).
Hence the different API methods simply returns a "proxy" to the underlying data, but not actually the same objects and data structures as in the worker-thread itself; thus it doesn't make a whole lot of sense to expose this in API docs as far as I'm concerned.

Finally, the patch fixes a small JSDoc related typo in `src/display/api.js` when referring to the `TextStyle` typedef.
@timvandermeij
Copy link
Contributor

/botio-linux preview

@pdfjsbot
Copy link

pdfjsbot commented Apr 4, 2019

From: Bot.io (Linux m4)


Received

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

Live output at: http://54.67.70.0:8877/4ca2a3bfc407b69/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Apr 4, 2019

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/4ca2a3bfc407b69/output.txt

Total script time: 1.87 mins

Published

@timvandermeij timvandermeij merged commit 57abddc into mozilla:master Apr 4, 2019
@timvandermeij
Copy link
Contributor

Makes sense. Thanks!

@Snuffleupagus Snuffleupagus deleted the rm-JSDoc-annotation branch April 5, 2019 09:30
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