-
Notifications
You must be signed in to change notification settings - Fork 10k
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
Expose TextLayerRenderTask
in the TypeScript definitions (issue 15016, PR 14013 follow-up)
#15018
Conversation
TextLayerRenderTask
in TypeScript definitions (issue 15016, PR 14013 follow-up)TextLayerRenderTask
in the TypeScript definitions (issue 15016, PR 14013 follow-up)
520d45a
to
380299e
Compare
/botio unittest |
From: Bot.io (Linux m4)ReceivedCommand cmd_unittest from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.241.84.105:8877/897ec7e3ae60e7b/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_unittest from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.193.163.58:8877/cab6674c01397db/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.241.84.105:8877/897ec7e3ae60e7b/output.txt Total script time: 3.31 mins
|
From: Bot.io (Windows)SuccessFull output at http://54.193.163.58:8877/cab6674c01397db/output.txt Total script time: 6.64 mins
|
380299e
to
e0e8d91
Compare
…16, PR 14013 follow-up) While `TextLayerRenderTask` apparently makes sense in TypeScript environments, given that it's being returned by the `renderTextLayer`-function in the API, we really don't want to extend the *public* API by simply exporting the class directly in `src/pdf.js` since it should never be called/initialized manually. Hence we follow the same pattern as in PR 14013, and add some very basic unit-tests to ensure that `renderTextLayer` always returns a `TextLayerRenderTask`-instance as expected.
e0e8d91
to
e046b81
Compare
Thank you for improving this! |
While
TextLayerRenderTask
apparently makes sense in TypeScript environments, given that it's being returned by therenderTextLayer
-function in the API, we really don't want to extend the public API by simply exporting the class directly insrc/pdf.js
since it should never be called/initialized manually.Hence we follow the same pattern as in PR #14013, and add some very basic unit-tests to ensure that
renderTextLayer
always returns aTextLayerRenderTask
-instance as expected.