@vaadin-component-factory/vcf-pdf-viewer 1.4.2 → 1.5.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 +19 -1
package/package.json
CHANGED
package/src/vcf-pdf-viewer.js
CHANGED
|
@@ -307,7 +307,7 @@ class PdfViewerElement extends
|
|
|
307
307
|
}
|
|
308
308
|
|
|
309
309
|
static get version() {
|
|
310
|
-
return '1.
|
|
310
|
+
return '1.5.0';
|
|
311
311
|
}
|
|
312
312
|
|
|
313
313
|
static get properties() {
|
|
@@ -789,6 +789,24 @@ class PdfViewerElement extends
|
|
|
789
789
|
this.__thumbnailViewer.scrollThumbnailIntoView(this.currentPage);
|
|
790
790
|
}
|
|
791
791
|
}
|
|
792
|
+
|
|
793
|
+
/**
|
|
794
|
+
* Rotates document clockwise.
|
|
795
|
+
*/
|
|
796
|
+
rotateCw() {
|
|
797
|
+
let delta = 90;
|
|
798
|
+
this.__viewer.pagesRotation += delta;
|
|
799
|
+
this.__viewer.forceRendering();
|
|
800
|
+
}
|
|
801
|
+
|
|
802
|
+
/**
|
|
803
|
+
* Rotates document counterclockwise.
|
|
804
|
+
*/
|
|
805
|
+
rotateCcw() {
|
|
806
|
+
let delta = -90;
|
|
807
|
+
this.__viewer.pagesRotation += delta;
|
|
808
|
+
this.__viewer.forceRendering();
|
|
809
|
+
}
|
|
792
810
|
}
|
|
793
811
|
|
|
794
812
|
customElements.define(PdfViewerElement.is, PdfViewerElement);
|