mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-09 09:45:42 +02:00
Adds UMD headers to core, display and shared files.
This commit is contained in:
parent
1b5940edd2
commit
6b60c8f4db
54 changed files with 1876 additions and 572 deletions
|
@ -12,10 +12,23 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
/* globals PDFJS, createPromiseCapability */
|
||||
/* globals PDFJS */
|
||||
|
||||
'use strict';
|
||||
|
||||
(function (root, factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
define('pdfjs/display/text_layer', ['exports', 'pdfjs/shared/util'],
|
||||
factory);
|
||||
} else if (typeof exports !== 'undefined') {
|
||||
factory(exports, require('../shared/util.js'));
|
||||
} else {
|
||||
factory((root.pdfjsDisplayTextLayer = {}), root.pdfjsSharedUtil);
|
||||
}
|
||||
}(this, function (exports, sharedUtil) {
|
||||
|
||||
var createPromiseCapability = sharedUtil.createPromiseCapability;
|
||||
|
||||
/**
|
||||
* Text layer render parameters.
|
||||
*
|
||||
|
@ -235,3 +248,6 @@ var renderTextLayer = (function renderTextLayerClosure() {
|
|||
})();
|
||||
|
||||
PDFJS.renderTextLayer = renderTextLayer;
|
||||
|
||||
exports.renderTextLayer = renderTextLayer;
|
||||
}));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue