fix jsdoc

This commit is contained in:
Eugenio Romano 2016-06-27 11:43:38 +01:00
parent 0e000b147b
commit d267d1812a

View File

@ -77,6 +77,7 @@ export class PdfViewerComponent {
/** /**
* return the PDFJS global object (exist to facilitate the mock of PDFJS in the test) * return the PDFJS global object (exist to facilitate the mock of PDFJS in the test)
*
* @returns {PDFJS} * @returns {PDFJS}
*/ */
getPDFJS() { getPDFJS() {
@ -101,6 +102,7 @@ export class PdfViewerComponent {
/** /**
* Method to scale the page current support implementation * Method to scale the page current support implementation
*
* @param {string} scaleMode - new scale mode * @param {string} scaleMode - new scale mode
*/ */
scalePage(scaleMode) { scalePage(scaleMode) {
@ -150,6 +152,7 @@ export class PdfViewerComponent {
/** /**
* Update all the pages with the newScale scale * Update all the pages with the newScale scale
*
* @param {number} newScale - new scale page * @param {number} newScale - new scale page
*/ */
setScaleUpdatePages(newScale: number) { setScaleUpdatePages(newScale: number) {
@ -169,6 +172,8 @@ export class PdfViewerComponent {
* *
* @param {number} oldScale - old scale page * @param {number} oldScale - old scale page
* @param {number} newScale - new scale page * @param {number} newScale - new scale page
*
* @returns {boolean}
*/ */
isSameScale(oldScale: number, newScale: number) { isSameScale(oldScale: number, newScale: number) {
return (newScale === oldScale); return (newScale === oldScale);
@ -180,6 +185,8 @@ export class PdfViewerComponent {
* *
* @param {number} width * @param {number} width
* @param {number} height * @param {number} height
*
* @returns {boolean}
*/ */
isLandscape(width: number, height: number) { isLandscape(width: number, height: number) {
return (width > height); return (width > height);
@ -205,8 +212,10 @@ export class PdfViewerComponent {
/** /**
* zoom in page pdf * zoom in page pdf
*
* @param {number} ticks
*/ */
zoomIn(ticks) { zoomIn(ticks: number) {
let newScale = this.currentScale; let newScale = this.currentScale;
do { do {
newScale = (newScale * this.DEFAULT_SCALE_DELTA).toFixed(2); newScale = (newScale * this.DEFAULT_SCALE_DELTA).toFixed(2);
@ -219,8 +228,10 @@ export class PdfViewerComponent {
/** /**
* zoom out page pdf * zoom out page pdf
*
* @param {number} ticks
*/ */
zoomOut(ticks) { zoomOut(ticks: number) {
let newScale = this.currentScale; let newScale = this.currentScale;
do { do {
newScale = (newScale / this.DEFAULT_SCALE_DELTA).toFixed(2); newScale = (newScale / this.DEFAULT_SCALE_DELTA).toFixed(2);