@hmcts/media-viewer 3.0.3-RC.3 → 3.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/viewers/pdf-viewer/pdf-viewer.component.mjs +6 -1
- package/fesm2015/hmcts-media-viewer.mjs +5 -0
- package/fesm2015/hmcts-media-viewer.mjs.map +1 -1
- package/fesm2020/hmcts-media-viewer.mjs +5 -0
- package/fesm2020/hmcts-media-viewer.mjs.map +1 -1
- package/lib/viewers/pdf-viewer/pdf-viewer.component.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -5481,7 +5481,12 @@ class PdfViewerComponent {
|
|
|
5481
5481
|
return +newZoomValue.toFixed(2);
|
|
5482
5482
|
}
|
|
5483
5483
|
goToDestination(destination) {
|
|
5484
|
+
const currentRotation = this.rotation;
|
|
5485
|
+
this.rotateDocument(360 - this.rotation);
|
|
5484
5486
|
this.pdfWrapper.navigateTo(destination);
|
|
5487
|
+
setTimeout(() => {
|
|
5488
|
+
this.rotateDocument(currentRotation);
|
|
5489
|
+
}, 10);
|
|
5485
5490
|
}
|
|
5486
5491
|
getCurrentPageNumber() {
|
|
5487
5492
|
return this.pdfWrapper.getPageNumber();
|