allenai / pdf-component-library

44 stars 4 forks source link

show text layer until background image is finished loading #192

Closed ericmarsh995 closed 2 years ago

ericmarsh995 commented 2 years ago

Description

Previously, we showed the TextLayer until the background image was loaded. Upgrading to react-pdf v6 broke this so that the textLayer was always transparent. This PR changes that so that the textLayer is shown until the background image is loaded.