pdfjs-dist 2.1.266 → 2.2.228
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.
Potentially problematic release.
This version of pdfjs-dist might be problematic. Click here for more details.
- package/CODE_OF_CONDUCT.md +15 -0
- package/bower.json +1 -1
- package/build/pdf.js +3349 -2324
- package/build/pdf.js.map +1 -1
- package/build/pdf.min.js +1 -1
- package/build/pdf.worker.js +2804 -1975
- package/build/pdf.worker.js.map +1 -1
- package/build/pdf.worker.min.js +1 -1
- package/image_decoders/pdf.image_decoders.js +431 -511
- package/image_decoders/pdf.image_decoders.js.map +1 -1
- package/image_decoders/pdf.image_decoders.min.js +1 -1
- package/lib/core/annotation.js +294 -224
- package/lib/core/arithmetic_decoder.js +1 -1
- package/lib/core/bidi.js +1 -1
- package/lib/core/ccitt.js +1 -1
- package/lib/core/ccitt_stream.js +1 -1
- package/lib/core/cff_parser.js +61 -12
- package/lib/core/charsets.js +1 -1
- package/lib/core/chunked_stream.js +24 -14
- package/lib/core/cmap.js +17 -13
- package/lib/core/colorspace.js +1 -1
- package/lib/core/core_utils.js +147 -0
- package/lib/core/crypto.js +1 -1
- package/lib/core/document.js +47 -40
- package/lib/core/encodings.js +1 -1
- package/lib/core/evaluator.js +346 -279
- package/lib/core/font_renderer.js +1 -1
- package/lib/core/fonts.js +23 -11
- package/lib/core/function.js +1 -1
- package/lib/core/glyphlist.js +2 -2
- package/lib/core/image.js +2 -2
- package/lib/core/image_utils.js +111 -0
- package/lib/core/jbig2.js +1 -1
- package/lib/core/jbig2_stream.js +1 -1
- package/lib/core/jpeg_stream.js +1 -1
- package/lib/core/jpg.js +2 -1
- package/lib/core/jpx.js +1 -1
- package/lib/core/jpx_stream.js +1 -1
- package/lib/core/metrics.js +13 -13
- package/lib/core/murmurhash3.js +37 -33
- package/lib/core/obj.js +245 -41
- package/lib/core/operator_list.js +43 -32
- package/lib/core/parser.js +228 -133
- package/lib/core/pattern.js +4 -2
- package/lib/core/pdf_manager.js +17 -15
- package/lib/core/primitives.js +40 -6
- package/lib/core/ps_parser.js +1 -1
- package/lib/core/standard_fonts.js +9 -9
- package/lib/core/stream.js +1 -1
- package/lib/core/type1_parser.js +1 -1
- package/lib/core/unicode.js +2 -2
- package/lib/core/worker.js +54 -171
- package/lib/core/worker_stream.js +277 -0
- package/lib/display/annotation_layer.js +112 -33
- package/lib/display/api.js +211 -123
- package/lib/display/api_compatibility.js +1 -1
- package/lib/display/canvas.js +40 -19
- package/lib/display/content_disposition.js +1 -1
- package/lib/display/display_utils.js +747 -0
- package/lib/display/fetch_stream.js +19 -12
- package/lib/display/font_loader.js +11 -8
- package/lib/display/metadata.js +1 -1
- package/lib/display/network.js +563 -521
- package/lib/display/network_utils.js +1 -1
- package/lib/display/node_stream.js +21 -12
- package/lib/display/pattern_helper.js +24 -25
- package/lib/display/svg.js +1068 -565
- package/lib/display/text_layer.js +24 -14
- package/lib/display/transport_stream.js +192 -70
- package/lib/display/webgl.js +1 -1
- package/lib/display/worker_options.js +1 -1
- package/lib/display/xml_parser.js +1 -1
- package/lib/examples/node/domstubs.js +4 -1
- package/lib/pdf.js +20 -15
- package/lib/pdf.worker.js +3 -3
- package/lib/shared/compatibility.js +6 -6
- package/lib/shared/global_scope.js +1 -1
- package/lib/shared/is_node.js +2 -2
- package/lib/shared/message_handler.js +7 -7
- package/lib/shared/streams_polyfill.js +1 -1
- package/lib/shared/url_polyfill.js +1 -1
- package/lib/shared/util.js +13 -125
- package/lib/test/unit/annotation_spec.js +278 -93
- package/lib/test/unit/api_spec.js +198 -188
- package/lib/test/unit/bidi_spec.js +1 -1
- package/lib/test/unit/cff_parser_spec.js +15 -1
- package/lib/test/unit/clitests_helper.js +3 -3
- package/lib/test/unit/cmap_spec.js +20 -20
- package/lib/test/unit/colorspace_spec.js +17 -12
- package/lib/test/unit/core_utils_spec.js +191 -0
- package/lib/test/unit/crypto_spec.js +1 -1
- package/lib/test/unit/custom_spec.js +8 -8
- package/lib/test/unit/display_svg_spec.js +8 -8
- package/lib/test/unit/display_utils_spec.js +273 -0
- package/lib/test/unit/document_spec.js +7 -12
- package/lib/test/unit/encodings_spec.js +5 -5
- package/lib/test/unit/evaluator_spec.js +8 -10
- package/lib/test/unit/fetch_stream_spec.js +109 -0
- package/lib/test/unit/function_spec.js +1 -1
- package/lib/test/unit/jasmine-boot.js +4 -4
- package/lib/test/unit/message_handler_spec.js +1 -1
- package/lib/test/unit/metadata_spec.js +1 -1
- package/lib/test/unit/murmurhash3_spec.js +1 -1
- package/lib/test/unit/network_spec.js +5 -55
- package/lib/test/unit/network_utils_spec.js +51 -1
- package/lib/test/unit/node_stream_spec.js +8 -8
- package/lib/test/unit/parser_spec.js +150 -86
- package/lib/test/unit/pdf_find_controller_spec.js +1 -1
- package/lib/test/unit/pdf_find_utils_spec.js +1 -1
- package/lib/test/unit/pdf_history_spec.js +1 -1
- package/lib/test/unit/primitives_spec.js +30 -17
- package/lib/test/unit/stream_spec.js +1 -1
- package/lib/test/unit/test_utils.js +197 -43
- package/lib/test/unit/testreporter.js +1 -1
- package/lib/test/unit/type1_parser_spec.js +1 -1
- package/lib/test/unit/ui_utils_spec.js +20 -20
- package/lib/test/unit/unicode_spec.js +5 -5
- package/lib/test/unit/util_spec.js +1 -164
- package/lib/web/annotation_layer_builder.js +1 -1
- package/lib/web/app.js +104 -60
- package/lib/web/app_options.js +45 -37
- package/lib/web/base_viewer.js +7 -7
- package/lib/web/chromecom.js +8 -8
- package/lib/web/debugger.js +7 -7
- package/lib/web/download_manager.js +3 -2
- package/lib/web/firefox_print_service.js +4 -2
- package/lib/web/firefoxcom.js +50 -19
- package/lib/web/genericcom.js +8 -8
- package/lib/web/genericl10n.js +10 -10
- package/lib/web/grab_to_pan.js +3 -1
- package/lib/web/interfaces.js +13 -13
- package/lib/web/overlay_manager.js +10 -10
- package/lib/web/password_prompt.js +2 -2
- package/lib/web/pdf_attachment_viewer.js +1 -1
- package/lib/web/pdf_cursor_tools.js +1 -1
- package/lib/web/pdf_document_properties.js +188 -119
- package/lib/web/pdf_find_bar.js +1 -1
- package/lib/web/pdf_find_controller.js +3 -3
- package/lib/web/pdf_find_utils.js +1 -1
- package/lib/web/pdf_history.js +1 -1
- package/lib/web/pdf_link_service.js +2 -2
- package/lib/web/pdf_outline_viewer.js +53 -28
- package/lib/web/pdf_page_view.js +9 -18
- package/lib/web/pdf_presentation_mode.js +1 -1
- package/lib/web/pdf_print_service.js +5 -3
- package/lib/web/pdf_rendering_queue.js +4 -7
- package/lib/web/pdf_sidebar.js +24 -17
- package/lib/web/pdf_sidebar_resizer.js +1 -1
- package/lib/web/pdf_single_page_viewer.js +1 -1
- package/lib/web/pdf_thumbnail_view.js +2 -2
- package/lib/web/pdf_thumbnail_viewer.js +3 -3
- package/lib/web/pdf_viewer.component.js +3 -3
- package/lib/web/pdf_viewer.js +3 -3
- package/lib/web/preferences.js +30 -30
- package/lib/web/secondary_toolbar.js +1 -1
- package/lib/web/text_layer_builder.js +23 -45
- package/lib/web/toolbar.js +1 -1
- package/lib/web/ui_utils.js +14 -14
- package/lib/web/view_history.js +15 -15
- package/lib/web/viewer_compatibility.js +1 -1
- package/package.json +1 -1
- package/web/pdf_viewer.css +21 -10
- package/web/pdf_viewer.js +126 -194
- package/web/pdf_viewer.js.map +1 -1
- package/lib/display/dom_utils.js +0 -494
- package/lib/test/unit/dom_utils_spec.js +0 -89
@@ -2,7 +2,7 @@
|
|
2
2
|
* @licstart The following is the entire license notice for the
|
3
3
|
* Javascript code in this page
|
4
4
|
*
|
5
|
-
* Copyright
|
5
|
+
* Copyright 2019 Mozilla Foundation
|
6
6
|
*
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
8
8
|
* you may not use this file except in compliance with the License.
|
@@ -67,9 +67,7 @@ function () {
|
|
67
67
|
this.findController = findController;
|
68
68
|
this.textLayerRenderTask = null;
|
69
69
|
this.enhanceTextSelection = enhanceTextSelection;
|
70
|
-
this.
|
71
|
-
|
72
|
-
this._bindEvents();
|
70
|
+
this._onUpdateTextLayerMatches = null;
|
73
71
|
|
74
72
|
this._bindMouse();
|
75
73
|
}
|
@@ -122,6 +120,16 @@ function () {
|
|
122
120
|
|
123
121
|
_this._updateMatches();
|
124
122
|
}, function (reason) {});
|
123
|
+
|
124
|
+
if (!this._onUpdateTextLayerMatches) {
|
125
|
+
this._onUpdateTextLayerMatches = function (evt) {
|
126
|
+
if (evt.pageIndex === _this.pageIdx || evt.pageIndex === -1) {
|
127
|
+
_this._updateMatches();
|
128
|
+
}
|
129
|
+
};
|
130
|
+
|
131
|
+
this.eventBus.on('updatetextlayermatches', this._onUpdateTextLayerMatches);
|
132
|
+
}
|
125
133
|
}
|
126
134
|
}, {
|
127
135
|
key: "cancel",
|
@@ -130,6 +138,11 @@ function () {
|
|
130
138
|
this.textLayerRenderTask.cancel();
|
131
139
|
this.textLayerRenderTask = null;
|
132
140
|
}
|
141
|
+
|
142
|
+
if (this._onUpdateTextLayerMatches) {
|
143
|
+
this.eventBus.off('updatetextlayermatches', this._onUpdateTextLayerMatches);
|
144
|
+
this._onUpdateTextLayerMatches = null;
|
145
|
+
}
|
133
146
|
}
|
134
147
|
}, {
|
135
148
|
key: "setTextContentStream",
|
@@ -330,51 +343,16 @@ function () {
|
|
330
343
|
|
331
344
|
this._renderMatches(this.matches);
|
332
345
|
}
|
333
|
-
}, {
|
334
|
-
key: "_bindEvents",
|
335
|
-
value: function _bindEvents() {
|
336
|
-
var _this2 = this;
|
337
|
-
|
338
|
-
var eventBus = this.eventBus,
|
339
|
-
_boundEvents = this._boundEvents;
|
340
|
-
|
341
|
-
_boundEvents.pageCancelled = function (evt) {
|
342
|
-
if (evt.pageNumber !== _this2.pageNumber) {
|
343
|
-
return;
|
344
|
-
}
|
345
|
-
|
346
|
-
if (_this2.textLayerRenderTask) {
|
347
|
-
console.error('TextLayerBuilder._bindEvents: `this.cancel()` should ' + 'have been called when the page was reset, or rendering cancelled.');
|
348
|
-
return;
|
349
|
-
}
|
350
|
-
|
351
|
-
for (var name in _boundEvents) {
|
352
|
-
eventBus.off(name.toLowerCase(), _boundEvents[name]);
|
353
|
-
delete _boundEvents[name];
|
354
|
-
}
|
355
|
-
};
|
356
|
-
|
357
|
-
_boundEvents.updateTextLayerMatches = function (evt) {
|
358
|
-
if (evt.pageIndex !== _this2.pageIdx && evt.pageIndex !== -1) {
|
359
|
-
return;
|
360
|
-
}
|
361
|
-
|
362
|
-
_this2._updateMatches();
|
363
|
-
};
|
364
|
-
|
365
|
-
eventBus.on('pagecancelled', _boundEvents.pageCancelled);
|
366
|
-
eventBus.on('updatetextlayermatches', _boundEvents.updateTextLayerMatches);
|
367
|
-
}
|
368
346
|
}, {
|
369
347
|
key: "_bindMouse",
|
370
348
|
value: function _bindMouse() {
|
371
|
-
var
|
349
|
+
var _this2 = this;
|
372
350
|
|
373
351
|
var div = this.textLayerDiv;
|
374
352
|
var expandDivsTimer = null;
|
375
353
|
div.addEventListener('mousedown', function (evt) {
|
376
|
-
if (
|
377
|
-
|
354
|
+
if (_this2.enhanceTextSelection && _this2.textLayerRenderTask) {
|
355
|
+
_this2.textLayerRenderTask.expandTextDivs(true);
|
378
356
|
|
379
357
|
if (expandDivsTimer) {
|
380
358
|
clearTimeout(expandDivsTimer);
|
@@ -402,10 +380,10 @@ function () {
|
|
402
380
|
end.classList.add('active');
|
403
381
|
});
|
404
382
|
div.addEventListener('mouseup', function () {
|
405
|
-
if (
|
383
|
+
if (_this2.enhanceTextSelection && _this2.textLayerRenderTask) {
|
406
384
|
expandDivsTimer = setTimeout(function () {
|
407
|
-
if (
|
408
|
-
|
385
|
+
if (_this2.textLayerRenderTask) {
|
386
|
+
_this2.textLayerRenderTask.expandTextDivs(false);
|
409
387
|
}
|
410
388
|
|
411
389
|
expandDivsTimer = null;
|
package/lib/web/toolbar.js
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
* @licstart The following is the entire license notice for the
|
3
3
|
* Javascript code in this page
|
4
4
|
*
|
5
|
-
* Copyright
|
5
|
+
* Copyright 2019 Mozilla Foundation
|
6
6
|
*
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
8
8
|
* you may not use this file except in compliance with the License.
|
package/lib/web/ui_utils.js
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
* @licstart The following is the entire license notice for the
|
3
3
|
* Javascript code in this page
|
4
4
|
*
|
5
|
-
* Copyright
|
5
|
+
* Copyright 2019 Mozilla Foundation
|
6
6
|
*
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
8
8
|
* you may not use this file except in compliance with the License.
|
@@ -48,7 +48,7 @@ exports.WaitOnType = exports.animationStarted = exports.ProgressBar = exports.Ev
|
|
48
48
|
|
49
49
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
50
50
|
|
51
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
51
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
52
52
|
|
53
53
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
54
54
|
|
@@ -135,8 +135,8 @@ var NullL10n = {
|
|
135
135
|
getLanguage: function () {
|
136
136
|
var _getLanguage = _asyncToGenerator(
|
137
137
|
/*#__PURE__*/
|
138
|
-
_regenerator
|
139
|
-
return _regenerator
|
138
|
+
_regenerator["default"].mark(function _callee() {
|
139
|
+
return _regenerator["default"].wrap(function _callee$(_context) {
|
140
140
|
while (1) {
|
141
141
|
switch (_context.prev = _context.next) {
|
142
142
|
case 0:
|
@@ -147,7 +147,7 @@ var NullL10n = {
|
|
147
147
|
return _context.stop();
|
148
148
|
}
|
149
149
|
}
|
150
|
-
}, _callee
|
150
|
+
}, _callee);
|
151
151
|
}));
|
152
152
|
|
153
153
|
function getLanguage() {
|
@@ -159,8 +159,8 @@ var NullL10n = {
|
|
159
159
|
getDirection: function () {
|
160
160
|
var _getDirection = _asyncToGenerator(
|
161
161
|
/*#__PURE__*/
|
162
|
-
_regenerator
|
163
|
-
return _regenerator
|
162
|
+
_regenerator["default"].mark(function _callee2() {
|
163
|
+
return _regenerator["default"].wrap(function _callee2$(_context2) {
|
164
164
|
while (1) {
|
165
165
|
switch (_context2.prev = _context2.next) {
|
166
166
|
case 0:
|
@@ -171,7 +171,7 @@ var NullL10n = {
|
|
171
171
|
return _context2.stop();
|
172
172
|
}
|
173
173
|
}
|
174
|
-
}, _callee2
|
174
|
+
}, _callee2);
|
175
175
|
}));
|
176
176
|
|
177
177
|
function getDirection() {
|
@@ -183,8 +183,8 @@ var NullL10n = {
|
|
183
183
|
get: function () {
|
184
184
|
var _get = _asyncToGenerator(
|
185
185
|
/*#__PURE__*/
|
186
|
-
_regenerator
|
187
|
-
return _regenerator
|
186
|
+
_regenerator["default"].mark(function _callee3(property, args, fallback) {
|
187
|
+
return _regenerator["default"].wrap(function _callee3$(_context3) {
|
188
188
|
while (1) {
|
189
189
|
switch (_context3.prev = _context3.next) {
|
190
190
|
case 0:
|
@@ -195,7 +195,7 @@ var NullL10n = {
|
|
195
195
|
return _context3.stop();
|
196
196
|
}
|
197
197
|
}
|
198
|
-
}, _callee3
|
198
|
+
}, _callee3);
|
199
199
|
}));
|
200
200
|
|
201
201
|
function get(_x, _x2, _x3) {
|
@@ -207,8 +207,8 @@ var NullL10n = {
|
|
207
207
|
translate: function () {
|
208
208
|
var _translate = _asyncToGenerator(
|
209
209
|
/*#__PURE__*/
|
210
|
-
_regenerator
|
211
|
-
return _regenerator
|
210
|
+
_regenerator["default"].mark(function _callee4(element) {
|
211
|
+
return _regenerator["default"].wrap(function _callee4$(_context4) {
|
212
212
|
while (1) {
|
213
213
|
switch (_context4.prev = _context4.next) {
|
214
214
|
case 0:
|
@@ -216,7 +216,7 @@ var NullL10n = {
|
|
216
216
|
return _context4.stop();
|
217
217
|
}
|
218
218
|
}
|
219
|
-
}, _callee4
|
219
|
+
}, _callee4);
|
220
220
|
}));
|
221
221
|
|
222
222
|
function translate(_x4) {
|
package/lib/web/view_history.js
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
* @licstart The following is the entire license notice for the
|
3
3
|
* Javascript code in this page
|
4
4
|
*
|
5
|
-
* Copyright
|
5
|
+
* Copyright 2019 Mozilla Foundation
|
6
6
|
*
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
8
8
|
* you may not use this file except in compliance with the License.
|
@@ -28,7 +28,7 @@ exports.ViewHistory = void 0;
|
|
28
28
|
|
29
29
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
30
30
|
|
31
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
31
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
32
32
|
|
33
33
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
34
34
|
|
@@ -92,9 +92,9 @@ function () {
|
|
92
92
|
value: function () {
|
93
93
|
var _writeToStorage2 = _asyncToGenerator(
|
94
94
|
/*#__PURE__*/
|
95
|
-
_regenerator
|
95
|
+
_regenerator["default"].mark(function _callee() {
|
96
96
|
var databaseStr;
|
97
|
-
return _regenerator
|
97
|
+
return _regenerator["default"].wrap(function _callee$(_context) {
|
98
98
|
while (1) {
|
99
99
|
switch (_context.prev = _context.next) {
|
100
100
|
case 0:
|
@@ -120,8 +120,8 @@ function () {
|
|
120
120
|
value: function () {
|
121
121
|
var _readFromStorage2 = _asyncToGenerator(
|
122
122
|
/*#__PURE__*/
|
123
|
-
_regenerator
|
124
|
-
return _regenerator
|
123
|
+
_regenerator["default"].mark(function _callee2() {
|
124
|
+
return _regenerator["default"].wrap(function _callee2$(_context2) {
|
125
125
|
while (1) {
|
126
126
|
switch (_context2.prev = _context2.next) {
|
127
127
|
case 0:
|
@@ -132,7 +132,7 @@ function () {
|
|
132
132
|
return _context2.stop();
|
133
133
|
}
|
134
134
|
}
|
135
|
-
}, _callee2
|
135
|
+
}, _callee2);
|
136
136
|
}));
|
137
137
|
|
138
138
|
function _readFromStorage() {
|
@@ -146,8 +146,8 @@ function () {
|
|
146
146
|
value: function () {
|
147
147
|
var _set = _asyncToGenerator(
|
148
148
|
/*#__PURE__*/
|
149
|
-
_regenerator
|
150
|
-
return _regenerator
|
149
|
+
_regenerator["default"].mark(function _callee3(name, val) {
|
150
|
+
return _regenerator["default"].wrap(function _callee3$(_context3) {
|
151
151
|
while (1) {
|
152
152
|
switch (_context3.prev = _context3.next) {
|
153
153
|
case 0:
|
@@ -177,9 +177,9 @@ function () {
|
|
177
177
|
value: function () {
|
178
178
|
var _setMultiple = _asyncToGenerator(
|
179
179
|
/*#__PURE__*/
|
180
|
-
_regenerator
|
180
|
+
_regenerator["default"].mark(function _callee4(properties) {
|
181
181
|
var name;
|
182
|
-
return _regenerator
|
182
|
+
return _regenerator["default"].wrap(function _callee4$(_context4) {
|
183
183
|
while (1) {
|
184
184
|
switch (_context4.prev = _context4.next) {
|
185
185
|
case 0:
|
@@ -212,9 +212,9 @@ function () {
|
|
212
212
|
value: function () {
|
213
213
|
var _get = _asyncToGenerator(
|
214
214
|
/*#__PURE__*/
|
215
|
-
_regenerator
|
215
|
+
_regenerator["default"].mark(function _callee5(name, defaultValue) {
|
216
216
|
var val;
|
217
|
-
return _regenerator
|
217
|
+
return _regenerator["default"].wrap(function _callee5$(_context5) {
|
218
218
|
while (1) {
|
219
219
|
switch (_context5.prev = _context5.next) {
|
220
220
|
case 0:
|
@@ -244,9 +244,9 @@ function () {
|
|
244
244
|
value: function () {
|
245
245
|
var _getMultiple = _asyncToGenerator(
|
246
246
|
/*#__PURE__*/
|
247
|
-
_regenerator
|
247
|
+
_regenerator["default"].mark(function _callee6(properties) {
|
248
248
|
var values, name, val;
|
249
|
-
return _regenerator
|
249
|
+
return _regenerator["default"].wrap(function _callee6$(_context6) {
|
250
250
|
while (1) {
|
251
251
|
switch (_context6.prev = _context6.next) {
|
252
252
|
case 0:
|
@@ -2,7 +2,7 @@
|
|
2
2
|
* @licstart The following is the entire license notice for the
|
3
3
|
* Javascript code in this page
|
4
4
|
*
|
5
|
-
* Copyright
|
5
|
+
* Copyright 2019 Mozilla Foundation
|
6
6
|
*
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
8
8
|
* you may not use this file except in compliance with the License.
|
package/package.json
CHANGED
package/web/pdf_viewer.css
CHANGED
@@ -230,36 +230,46 @@
|
|
230
230
|
z-index: 200;
|
231
231
|
max-width: 20em;
|
232
232
|
background-color: #FFFF99;
|
233
|
-
box-shadow: 0px 2px 5px #
|
233
|
+
box-shadow: 0px 2px 5px #888;
|
234
234
|
border-radius: 2px;
|
235
|
-
padding:
|
235
|
+
padding: 6px;
|
236
236
|
margin-left: 5px;
|
237
237
|
cursor: pointer;
|
238
238
|
font: message-box;
|
239
|
+
font-size: 9px;
|
239
240
|
word-wrap: break-word;
|
240
241
|
}
|
241
242
|
|
243
|
+
.annotationLayer .popup > * {
|
244
|
+
font-size: 9px;
|
245
|
+
}
|
246
|
+
|
242
247
|
.annotationLayer .popup h1 {
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
248
|
+
display: inline-block;
|
249
|
+
}
|
250
|
+
|
251
|
+
.annotationLayer .popup span {
|
252
|
+
display: inline-block;
|
253
|
+
margin-left: 5px;
|
247
254
|
}
|
248
255
|
|
249
256
|
.annotationLayer .popup p {
|
250
|
-
|
251
|
-
|
257
|
+
border-top: 1px solid #333;
|
258
|
+
margin-top: 2px;
|
259
|
+
padding-top: 2px;
|
252
260
|
}
|
253
261
|
|
254
262
|
.annotationLayer .highlightAnnotation,
|
255
263
|
.annotationLayer .underlineAnnotation,
|
256
264
|
.annotationLayer .squigglyAnnotation,
|
257
265
|
.annotationLayer .strikeoutAnnotation,
|
266
|
+
.annotationLayer .freeTextAnnotation,
|
258
267
|
.annotationLayer .lineAnnotation svg line,
|
259
268
|
.annotationLayer .squareAnnotation svg rect,
|
260
269
|
.annotationLayer .circleAnnotation svg ellipse,
|
261
270
|
.annotationLayer .polylineAnnotation svg polyline,
|
262
271
|
.annotationLayer .polygonAnnotation svg polygon,
|
272
|
+
.annotationLayer .caretAnnotation,
|
263
273
|
.annotationLayer .inkAnnotation svg polyline,
|
264
274
|
.annotationLayer .stampAnnotation,
|
265
275
|
.annotationLayer .fileAttachmentAnnotation {
|
@@ -279,8 +289,9 @@
|
|
279
289
|
overflow: visible;
|
280
290
|
border: 9px solid transparent;
|
281
291
|
background-clip: content-box;
|
282
|
-
-
|
283
|
-
|
292
|
+
-webkit-border-image: url(images/shadow.png) 9 9 repeat;
|
293
|
+
-o-border-image: url(images/shadow.png) 9 9 repeat;
|
294
|
+
border-image: url(images/shadow.png) 9 9 repeat;
|
284
295
|
background-color: white;
|
285
296
|
}
|
286
297
|
|