Introduces UMD headers to the web/ folder.
This commit is contained in:
parent
1c253e6e1d
commit
006e8fb59d
39 changed files with 836 additions and 281 deletions
|
@ -12,11 +12,30 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
/* globals RenderingStates, pdfjsLib, DEFAULT_SCALE, CSS_UNITS, getOutputScale,
|
||||
TextLayerBuilder, Promise, approximateFraction, roundToDivide */
|
||||
/* globals pdfjsLib */
|
||||
|
||||
'use strict';
|
||||
|
||||
(function (root, factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
define('pdfjs-web/pdf_page_view', ['exports',
|
||||
'pdfjs-web/ui_utils', 'pdfjs-web/pdf_rendering_queue'], factory);
|
||||
} else if (typeof exports !== 'undefined') {
|
||||
factory(exports, require('./ui_utils.js'),
|
||||
require('./pdf_rendering_queue.js'));
|
||||
} else {
|
||||
factory((root.pdfjsWebPDFPageView = {}), root.pdfjsWebUIUtils,
|
||||
root.pdfjsWebPDFRenderingQueue);
|
||||
}
|
||||
}(this, function (exports, uiUtils, pdfRenderingQueue) {
|
||||
|
||||
var CSS_UNITS = uiUtils.CSS_UNITS;
|
||||
var DEFAULT_SCALE = uiUtils.DEFAULT_SCALE;
|
||||
var getOutputScale = uiUtils.getOutputScale;
|
||||
var approximateFraction = uiUtils.approximateFraction;
|
||||
var roundToDivide = uiUtils.roundToDivide;
|
||||
var RenderingStates = pdfRenderingQueue.RenderingStates;
|
||||
|
||||
var TEXT_LAYER_RENDER_DELAY = 200; // ms
|
||||
|
||||
/**
|
||||
|
@ -582,3 +601,6 @@ var PDFPageView = (function PDFPageViewClosure() {
|
|||
|
||||
return PDFPageView;
|
||||
})();
|
||||
|
||||
exports.PDFPageView = PDFPageView;
|
||||
}));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue