@vaadin-component-factory/vcf-pdf-viewer 3.0.2 → 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 +19 -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() {
|
|
@@ -914,6 +914,24 @@ class PdfViewerElement extends
|
|
|
914
914
|
this.__thumbnailViewer.scrollThumbnailIntoView(this.currentPage);
|
|
915
915
|
}
|
|
916
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
|
+
}
|
|
917
935
|
}
|
|
918
936
|
|
|
919
937
|
customElements.define(PdfViewerElement.is, PdfViewerElement);
|