@vaadin-component-factory/vcf-pdf-viewer 3.0.1 → 3.1.0
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/package.json +1 -1
- package/src/vcf-pdf-viewer.js +20 -1
package/package.json
CHANGED
package/src/vcf-pdf-viewer.js
CHANGED
|
@@ -287,7 +287,7 @@ class PdfViewerElement extends
|
|
|
287
287
|
}
|
|
288
288
|
|
|
289
289
|
static get version() {
|
|
290
|
-
return '3.0
|
|
290
|
+
return '3.1.0';
|
|
291
291
|
}
|
|
292
292
|
|
|
293
293
|
static get properties() {
|
|
@@ -819,6 +819,7 @@ class PdfViewerElement extends
|
|
|
819
819
|
// webcomponents/shadow dom messing with
|
|
820
820
|
// TODO: Fix the issue so that we get rid of the error in log
|
|
821
821
|
this.__viewer.currentScaleValue = value;
|
|
822
|
+
this.__viewer.forceRendering();
|
|
822
823
|
}
|
|
823
824
|
|
|
824
825
|
__pageChange(event) {
|
|
@@ -913,6 +914,24 @@ class PdfViewerElement extends
|
|
|
913
914
|
this.__thumbnailViewer.scrollThumbnailIntoView(this.currentPage);
|
|
914
915
|
}
|
|
915
916
|
}
|
|
917
|
+
|
|
918
|
+
/**
|
|
919
|
+
* Rotates document clockwise.
|
|
920
|
+
*/
|
|
921
|
+
rotateCw() {
|
|
922
|
+
let delta = 90;
|
|
923
|
+
this.__viewer.pagesRotation += delta;
|
|
924
|
+
this.__viewer.forceRendering();
|
|
925
|
+
}
|
|
926
|
+
|
|
927
|
+
/**
|
|
928
|
+
* Rotates document counterclockwise.
|
|
929
|
+
*/
|
|
930
|
+
rotateCcw() {
|
|
931
|
+
let delta = -90;
|
|
932
|
+
this.__viewer.pagesRotation += delta;
|
|
933
|
+
this.__viewer.forceRendering();
|
|
934
|
+
}
|
|
916
935
|
}
|
|
917
936
|
|
|
918
937
|
customElements.define(PdfViewerElement.is, PdfViewerElement);
|