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

Extend TextLayerRenderParameters.container type to include HTMLElement. #15015

Merged
merged 1 commit into from
Jun 10, 2022
Merged

Extend TextLayerRenderParameters.container type to include HTMLElement. #15015

merged 1 commit into from
Jun 10, 2022

Conversation

jerry1100
Copy link
Contributor

@jerry1100 jerry1100 commented Jun 9, 2022

In PR #14717, TextLayerRenderParameters.container was changed from a HTMLElement to a DocumentFragment since the prebuilt web viewer uses a fragment.

This type breaks projects that use a HTMLElement for a container.

Screen Shot 2022-06-09 at 9 58 52 AM

To remedy this, we extend the type of container to also include HTMLElement.

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.

Also, please make sure that the commit message contains all of the same information that you've included in the PR title/description since "update type" isn't really sufficient.

src/display/text_layer.js Outdated Show resolved Hide resolved
In PR #14717, the type was changed from a HTMLElement to a DocumentFragment.
This broke TypeScript projects that use a HTMLElement container.

To remedy this, we extend the type of container to also include HTMLElement.
@jerry1100 jerry1100 changed the title Change TextLayerRenderParameters.container type from DocumentFragment to Node Extend TextLayerRenderParameters.container type to include HTMLElement. Jun 10, 2022
@jerry1100 jerry1100 changed the title Extend TextLayerRenderParameters.container type to include HTMLElement. Extend TextLayerRenderParameters.container type to include HTMLElement. Jun 10, 2022
@Snuffleupagus
Copy link
Collaborator

/botio-linux preview

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

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

Live output at: http://54.241.84.105:8877/e4cae86df5e0cd2/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Success

Full output at http://54.241.84.105:8877/e4cae86df5e0cd2/output.txt

Total script time: 2.58 mins

Published

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.

Thank you for the patch!

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