mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
[api-minor] Move the l10n-translation into the AnnotationLayer
With the changes in PR 16552 we can now move general translation into the `AnnotationLayer` itself, which should improve things ever so slightly in third-party implementations where the default viewer isn't used.
This commit is contained in:
parent
197e806c86
commit
19880fcf9a
3 changed files with 5 additions and 5 deletions
|
@ -235,9 +235,8 @@ class Rasterize {
|
|||
l10n,
|
||||
viewport: annotationViewport,
|
||||
});
|
||||
annotationLayer.render(parameters);
|
||||
await annotationLayer.render(parameters);
|
||||
await annotationLayer.showPopups();
|
||||
await l10n.translate(div);
|
||||
|
||||
// Inline SVG images from text annotations.
|
||||
await inlineImages(div);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue