mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-10 10:15:37 +02:00
Adds types definitions (jsdoc) for the PDFViewer code.
This commit is contained in:
parent
3773972dce
commit
a89bba35b2
7 changed files with 200 additions and 6 deletions
|
@ -21,6 +21,17 @@
|
|||
|
||||
var THUMBNAIL_SCROLL_MARGIN = -19;
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @param container
|
||||
* @param id
|
||||
* @param defaultViewport
|
||||
* @param linkService
|
||||
* @param renderingQueue
|
||||
* @param pageSource
|
||||
*
|
||||
* @implements {IRenderableView}
|
||||
*/
|
||||
var ThumbnailView = function thumbnailView(container, id, defaultViewport,
|
||||
linkService, renderingQueue,
|
||||
pageSource) {
|
||||
|
@ -241,7 +252,22 @@ var ThumbnailView = function thumbnailView(container, id, defaultViewport,
|
|||
|
||||
ThumbnailView.tempImageCache = null;
|
||||
|
||||
/**
|
||||
* @typedef {Object} PDFThumbnailViewerOptions
|
||||
* @property {HTMLDivElement} container - The container for the thumbs elements.
|
||||
* @property {IPDFLinkService} linkService - The navigation/linking service.
|
||||
* @property {PDFRenderingQueue} renderingQueue - The rendering queue object.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Simple viewer control to display thumbs for pages.
|
||||
* @class
|
||||
*/
|
||||
var PDFThumbnailViewer = (function pdfThumbnailViewer() {
|
||||
/**
|
||||
* @constructs
|
||||
* @param {PDFThumbnailViewerOptions} options
|
||||
*/
|
||||
function PDFThumbnailViewer(options) {
|
||||
this.container = options.container;
|
||||
this.renderingQueue = options.renderingQueue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue