mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 01:10: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
|
@ -134,7 +134,7 @@ class AnnotationLayerBuilder {
|
|||
viewport: viewport.clone({ dontFlip: true }),
|
||||
});
|
||||
|
||||
this.annotationLayer.render({
|
||||
await this.annotationLayer.render({
|
||||
annotations,
|
||||
imageResourcesPath: this.imageResourcesPath,
|
||||
renderForms: this.renderForms,
|
||||
|
@ -145,7 +145,6 @@ class AnnotationLayerBuilder {
|
|||
hasJSActions,
|
||||
fieldObjects,
|
||||
});
|
||||
this.l10n.translate(div);
|
||||
|
||||
// Ensure that interactive form elements in the annotationLayer are
|
||||
// disabled while PresentationMode is active (see issue 12232).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue