ofd-view 0.1.27 → 0.1.29

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. package/lib/demo.html +1 -1
  2. package/lib/ofd-view.common.js +1345 -925
  3. package/lib/ofd-view.common.js.map +1 -1
  4. package/lib/ofd-view.umd.js +1315 -930
  5. package/lib/ofd-view.umd.js.map +1 -1
  6. package/lib/ofd-view.umd.min.js +1 -1
  7. package/lib/ofd-view.umd.min.js.map +1 -1
  8. package/package.json +6 -22
  9. package/lib/images/annotation-check.svg +0 -11
  10. package/lib/images/annotation-comment.svg +0 -16
  11. package/lib/images/annotation-help.svg +0 -26
  12. package/lib/images/annotation-insert.svg +0 -10
  13. package/lib/images/annotation-key.svg +0 -11
  14. package/lib/images/annotation-newparagraph.svg +0 -11
  15. package/lib/images/annotation-noicon.svg +0 -7
  16. package/lib/images/annotation-note.svg +0 -42
  17. package/lib/images/annotation-paragraph.svg +0 -16
  18. package/lib/images/eSignature.svg +0 -1
  19. package/lib/images/findbarButton-next.svg +0 -4
  20. package/lib/images/findbarButton-previous.svg +0 -4
  21. package/lib/images/loading-dark.svg +0 -24
  22. package/lib/images/loading-icon.gif +0 -0
  23. package/lib/images/loading.svg +0 -1
  24. package/lib/images/secondaryToolbarButton-documentProperties.svg +0 -15
  25. package/lib/images/secondaryToolbarButton-firstPage.svg +0 -1
  26. package/lib/images/secondaryToolbarButton-handTool.svg +0 -1
  27. package/lib/images/secondaryToolbarButton-lastPage.svg +0 -1
  28. package/lib/images/secondaryToolbarButton-rotateCcw.svg +0 -1
  29. package/lib/images/secondaryToolbarButton-rotateCw.svg +0 -4
  30. package/lib/images/secondaryToolbarButton-scrollHorizontal.svg +0 -1
  31. package/lib/images/secondaryToolbarButton-scrollPage.svg +0 -1
  32. package/lib/images/secondaryToolbarButton-scrollVertical.svg +0 -1
  33. package/lib/images/secondaryToolbarButton-scrollWrapped.svg +0 -1
  34. package/lib/images/secondaryToolbarButton-selectTool.svg +0 -4
  35. package/lib/images/secondaryToolbarButton-spreadEven.svg +0 -1
  36. package/lib/images/secondaryToolbarButton-spreadNone.svg +0 -1
  37. package/lib/images/secondaryToolbarButton-spreadOdd.svg +0 -1
  38. package/lib/images/shadow.png +0 -0
  39. package/lib/images/toolbarButton-bookmark.svg +0 -1
  40. package/lib/images/toolbarButton-currentOutlineItem.svg +0 -1
  41. package/lib/images/toolbarButton-download.svg +0 -4
  42. package/lib/images/toolbarButton-menuArrow.svg +0 -1
  43. package/lib/images/toolbarButton-openFile.svg +0 -4
  44. package/lib/images/toolbarButton-pageDown.svg +0 -7
  45. package/lib/images/toolbarButton-pageUp.svg +0 -12
  46. package/lib/images/toolbarButton-presentationMode.svg +0 -1
  47. package/lib/images/toolbarButton-print.svg +0 -4
  48. package/lib/images/toolbarButton-search.svg +0 -4
  49. package/lib/images/toolbarButton-secondaryToolbarToggle.svg +0 -4
  50. package/lib/images/toolbarButton-sidebarToggle.svg +0 -4
  51. package/lib/images/toolbarButton-viewAttachments.svg +0 -1
  52. package/lib/images/toolbarButton-viewLayers.svg +0 -1
  53. package/lib/images/toolbarButton-viewOutline.svg +0 -1
  54. package/lib/images/toolbarButton-viewSignatures.svg +0 -1
  55. package/lib/images/toolbarButton-viewThumbnail.svg +0 -4
  56. package/lib/images/toolbarButton-zoomIn.svg +0 -4
  57. package/lib/images/toolbarButton-zoomOut.svg +0 -4
  58. package/lib/images/treeitem-collapsed.svg +0 -1
  59. package/lib/images/treeitem-expanded.svg +0 -1
  60. package/lib/viewer.css +0 -3208
@@ -1,22 +1,454 @@
1
1
  (function webpackUniversalModuleDefinition(root, factory) {
2
2
  if(typeof exports === 'object' && typeof module === 'object')
3
- module.exports = factory(require("ofd.js"));
3
+ module.exports = factory(require("ofd.js"), require("parser_x.js"));
4
4
  else if(typeof define === 'function' && define.amd)
5
- define([], factory);
5
+ define([, ], factory);
6
6
  else if(typeof exports === 'object')
7
- exports["ofd-view"] = factory(require("ofd.js"));
7
+ exports["ofd-view"] = factory(require("ofd.js"), require("parser_x.js"));
8
8
  else
9
- root["ofd-view"] = factory(root["ofd"]);
10
- })((typeof self !== 'undefined' ? self : this), function(__WEBPACK_EXTERNAL_MODULE__485__) {
9
+ root["ofd-view"] = factory(root["ofd"], root["parser_x"]);
10
+ })((typeof self !== 'undefined' ? self : this), function(__WEBPACK_EXTERNAL_MODULE__485__, __WEBPACK_EXTERNAL_MODULE__700__) {
11
11
  return /******/ (function() { // webpackBootstrap
12
- /******/ "use strict";
13
12
  /******/ var __webpack_modules__ = ({
14
13
 
14
+ /***/ 966:
15
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
16
+
17
+ "use strict";
18
+ __webpack_require__.r(__webpack_exports__);
19
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(81);
20
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
21
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(645);
22
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__);
23
+ // Imports
24
+
25
+
26
+ var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
27
+ // Module
28
+ ___CSS_LOADER_EXPORT___.push([module.id, ".vdr[data-v-6cdf0a0c]{touch-action:none;position:absolute;box-sizing:border-box;border:1px dashed #ddd;cursor:move}.vdr button[data-v-6cdf0a0c]{display:none}.vdr[data-v-6cdf0a0c]:hover{border:1px solid #fd397a;background:rgba(253,57,122,.08)}.vdr:hover button[data-v-6cdf0a0c]{display:block}.handle[data-v-6cdf0a0c]{box-sizing:border-box;display:none;position:absolute;width:10px;height:10px;font-size:1px;background:rgba(253,57,122,.08);border:1px solid #fd397a}.handle-tl[data-v-6cdf0a0c]{top:-10px;left:-10px;cursor:nw-resize}.handle-tm[data-v-6cdf0a0c]{top:-10px;left:50%;margin-left:-5px;cursor:n-resize}.handle-tr[data-v-6cdf0a0c]{top:-10px;right:-10px;cursor:ne-resize}.handle-ml[data-v-6cdf0a0c]{left:-10px;cursor:w-resize}.handle-ml[data-v-6cdf0a0c],.handle-mr[data-v-6cdf0a0c]{top:50%;margin-top:-5px}.handle-mr[data-v-6cdf0a0c]{right:-10px;cursor:e-resize}.handle-bl[data-v-6cdf0a0c]{bottom:-10px;left:-10px;cursor:sw-resize}.handle-bm[data-v-6cdf0a0c]{bottom:-10px;left:50%;margin-left:-5px;cursor:s-resize}.handle-br[data-v-6cdf0a0c]{bottom:-10px;right:-10px;cursor:se-resize}@media only screen and (max-width:768px){[class*=handle-][data-v-6cdf0a0c]:before{content:\"\";left:-10px;right:-10px;bottom:-10px;top:-10px;position:absolute}}.close[data-v-6cdf0a0c]{background:orange;color:red;border-radius:12px;line-height:20px;text-align:center;height:20px;width:20px;font-size:18px;padding:1px}.close[data-v-6cdf0a0c]:before{content:\"\\2716\"}.close[data-v-6cdf0a0c]{top:5px;right:2px;position:absolute}", ""]);
29
+ // Exports
30
+ /* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
31
+
32
+
33
+ /***/ }),
34
+
35
+ /***/ 645:
36
+ /***/ (function(module) {
37
+
38
+ "use strict";
39
+
40
+
41
+ /*
42
+ MIT License http://www.opensource.org/licenses/mit-license.php
43
+ Author Tobias Koppers @sokra
44
+ */
45
+ module.exports = function (cssWithMappingToString) {
46
+ var list = []; // return the list of modules as css string
47
+
48
+ list.toString = function toString() {
49
+ return this.map(function (item) {
50
+ var content = "";
51
+ var needLayer = typeof item[5] !== "undefined";
52
+
53
+ if (item[4]) {
54
+ content += "@supports (".concat(item[4], ") {");
55
+ }
56
+
57
+ if (item[2]) {
58
+ content += "@media ".concat(item[2], " {");
59
+ }
60
+
61
+ if (needLayer) {
62
+ content += "@layer".concat(item[5].length > 0 ? " ".concat(item[5]) : "", " {");
63
+ }
64
+
65
+ content += cssWithMappingToString(item);
66
+
67
+ if (needLayer) {
68
+ content += "}";
69
+ }
70
+
71
+ if (item[2]) {
72
+ content += "}";
73
+ }
74
+
75
+ if (item[4]) {
76
+ content += "}";
77
+ }
78
+
79
+ return content;
80
+ }).join("");
81
+ }; // import a list of modules into the list
82
+
83
+
84
+ list.i = function i(modules, media, dedupe, supports, layer) {
85
+ if (typeof modules === "string") {
86
+ modules = [[null, modules, undefined]];
87
+ }
88
+
89
+ var alreadyImportedModules = {};
90
+
91
+ if (dedupe) {
92
+ for (var k = 0; k < this.length; k++) {
93
+ var id = this[k][0];
94
+
95
+ if (id != null) {
96
+ alreadyImportedModules[id] = true;
97
+ }
98
+ }
99
+ }
100
+
101
+ for (var _k = 0; _k < modules.length; _k++) {
102
+ var item = [].concat(modules[_k]);
103
+
104
+ if (dedupe && alreadyImportedModules[item[0]]) {
105
+ continue;
106
+ }
107
+
108
+ if (typeof layer !== "undefined") {
109
+ if (typeof item[5] === "undefined") {
110
+ item[5] = layer;
111
+ } else {
112
+ item[1] = "@layer".concat(item[5].length > 0 ? " ".concat(item[5]) : "", " {").concat(item[1], "}");
113
+ item[5] = layer;
114
+ }
115
+ }
116
+
117
+ if (media) {
118
+ if (!item[2]) {
119
+ item[2] = media;
120
+ } else {
121
+ item[1] = "@media ".concat(item[2], " {").concat(item[1], "}");
122
+ item[2] = media;
123
+ }
124
+ }
125
+
126
+ if (supports) {
127
+ if (!item[4]) {
128
+ item[4] = "".concat(supports);
129
+ } else {
130
+ item[1] = "@supports (".concat(item[4], ") {").concat(item[1], "}");
131
+ item[4] = supports;
132
+ }
133
+ }
134
+
135
+ list.push(item);
136
+ }
137
+ };
138
+
139
+ return list;
140
+ };
141
+
142
+ /***/ }),
143
+
144
+ /***/ 81:
145
+ /***/ (function(module) {
146
+
147
+ "use strict";
148
+
149
+
150
+ module.exports = function (i) {
151
+ return i[1];
152
+ };
153
+
154
+ /***/ }),
155
+
156
+ /***/ 565:
157
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
158
+
159
+ // style-loader: Adds some css to the DOM by adding a <style> tag
160
+
161
+ // load the styles
162
+ var content = __webpack_require__(966);
163
+ if(content.__esModule) content = content.default;
164
+ if(typeof content === 'string') content = [[module.id, content, '']];
165
+ if(content.locals) module.exports = content.locals;
166
+ // add the styles to the DOM
167
+ var add = (__webpack_require__(402)/* ["default"] */ .Z)
168
+ var update = add("ca85196c", content, true, {"sourceMap":false,"shadowMode":false});
169
+
170
+ /***/ }),
171
+
172
+ /***/ 402:
173
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
174
+
175
+ "use strict";
176
+
177
+ // EXPORTS
178
+ __webpack_require__.d(__webpack_exports__, {
179
+ "Z": function() { return /* binding */ addStylesClient; }
180
+ });
181
+
182
+ ;// CONCATENATED MODULE: ./node_modules/vue-style-loader/lib/listToStyles.js
183
+ /**
184
+ * Translates the list format produced by css-loader into something
185
+ * easier to manipulate.
186
+ */
187
+ function listToStyles (parentId, list) {
188
+ var styles = []
189
+ var newStyles = {}
190
+ for (var i = 0; i < list.length; i++) {
191
+ var item = list[i]
192
+ var id = item[0]
193
+ var css = item[1]
194
+ var media = item[2]
195
+ var sourceMap = item[3]
196
+ var part = {
197
+ id: parentId + ':' + i,
198
+ css: css,
199
+ media: media,
200
+ sourceMap: sourceMap
201
+ }
202
+ if (!newStyles[id]) {
203
+ styles.push(newStyles[id] = { id: id, parts: [part] })
204
+ } else {
205
+ newStyles[id].parts.push(part)
206
+ }
207
+ }
208
+ return styles
209
+ }
210
+
211
+ ;// CONCATENATED MODULE: ./node_modules/vue-style-loader/lib/addStylesClient.js
212
+ /*
213
+ MIT License http://www.opensource.org/licenses/mit-license.php
214
+ Author Tobias Koppers @sokra
215
+ Modified by Evan You @yyx990803
216
+ */
217
+
218
+
219
+
220
+ var hasDocument = typeof document !== 'undefined'
221
+
222
+ if (typeof DEBUG !== 'undefined' && DEBUG) {
223
+ if (!hasDocument) {
224
+ throw new Error(
225
+ 'vue-style-loader cannot be used in a non-browser environment. ' +
226
+ "Use { target: 'node' } in your Webpack config to indicate a server-rendering environment."
227
+ ) }
228
+ }
229
+
230
+ /*
231
+ type StyleObject = {
232
+ id: number;
233
+ parts: Array<StyleObjectPart>
234
+ }
235
+
236
+ type StyleObjectPart = {
237
+ css: string;
238
+ media: string;
239
+ sourceMap: ?string
240
+ }
241
+ */
242
+
243
+ var stylesInDom = {/*
244
+ [id: number]: {
245
+ id: number,
246
+ refs: number,
247
+ parts: Array<(obj?: StyleObjectPart) => void>
248
+ }
249
+ */}
250
+
251
+ var head = hasDocument && (document.head || document.getElementsByTagName('head')[0])
252
+ var singletonElement = null
253
+ var singletonCounter = 0
254
+ var isProduction = false
255
+ var noop = function () {}
256
+ var options = null
257
+ var ssrIdKey = 'data-vue-ssr-id'
258
+
259
+ // Force single-tag solution on IE6-9, which has a hard limit on the # of <style>
260
+ // tags it will allow on a page
261
+ var isOldIE = typeof navigator !== 'undefined' && /msie [6-9]\b/.test(navigator.userAgent.toLowerCase())
262
+
263
+ function addStylesClient (parentId, list, _isProduction, _options) {
264
+ isProduction = _isProduction
265
+
266
+ options = _options || {}
267
+
268
+ var styles = listToStyles(parentId, list)
269
+ addStylesToDom(styles)
270
+
271
+ return function update (newList) {
272
+ var mayRemove = []
273
+ for (var i = 0; i < styles.length; i++) {
274
+ var item = styles[i]
275
+ var domStyle = stylesInDom[item.id]
276
+ domStyle.refs--
277
+ mayRemove.push(domStyle)
278
+ }
279
+ if (newList) {
280
+ styles = listToStyles(parentId, newList)
281
+ addStylesToDom(styles)
282
+ } else {
283
+ styles = []
284
+ }
285
+ for (var i = 0; i < mayRemove.length; i++) {
286
+ var domStyle = mayRemove[i]
287
+ if (domStyle.refs === 0) {
288
+ for (var j = 0; j < domStyle.parts.length; j++) {
289
+ domStyle.parts[j]()
290
+ }
291
+ delete stylesInDom[domStyle.id]
292
+ }
293
+ }
294
+ }
295
+ }
296
+
297
+ function addStylesToDom (styles /* Array<StyleObject> */) {
298
+ for (var i = 0; i < styles.length; i++) {
299
+ var item = styles[i]
300
+ var domStyle = stylesInDom[item.id]
301
+ if (domStyle) {
302
+ domStyle.refs++
303
+ for (var j = 0; j < domStyle.parts.length; j++) {
304
+ domStyle.parts[j](item.parts[j])
305
+ }
306
+ for (; j < item.parts.length; j++) {
307
+ domStyle.parts.push(addStyle(item.parts[j]))
308
+ }
309
+ if (domStyle.parts.length > item.parts.length) {
310
+ domStyle.parts.length = item.parts.length
311
+ }
312
+ } else {
313
+ var parts = []
314
+ for (var j = 0; j < item.parts.length; j++) {
315
+ parts.push(addStyle(item.parts[j]))
316
+ }
317
+ stylesInDom[item.id] = { id: item.id, refs: 1, parts: parts }
318
+ }
319
+ }
320
+ }
321
+
322
+ function createStyleElement () {
323
+ var styleElement = document.createElement('style')
324
+ styleElement.type = 'text/css'
325
+ head.appendChild(styleElement)
326
+ return styleElement
327
+ }
328
+
329
+ function addStyle (obj /* StyleObjectPart */) {
330
+ var update, remove
331
+ var styleElement = document.querySelector('style[' + ssrIdKey + '~="' + obj.id + '"]')
332
+
333
+ if (styleElement) {
334
+ if (isProduction) {
335
+ // has SSR styles and in production mode.
336
+ // simply do nothing.
337
+ return noop
338
+ } else {
339
+ // has SSR styles but in dev mode.
340
+ // for some reason Chrome can't handle source map in server-rendered
341
+ // style tags - source maps in <style> only works if the style tag is
342
+ // created and inserted dynamically. So we remove the server rendered
343
+ // styles and inject new ones.
344
+ styleElement.parentNode.removeChild(styleElement)
345
+ }
346
+ }
347
+
348
+ if (isOldIE) {
349
+ // use singleton mode for IE9.
350
+ var styleIndex = singletonCounter++
351
+ styleElement = singletonElement || (singletonElement = createStyleElement())
352
+ update = applyToSingletonTag.bind(null, styleElement, styleIndex, false)
353
+ remove = applyToSingletonTag.bind(null, styleElement, styleIndex, true)
354
+ } else {
355
+ // use multi-style-tag mode in all other cases
356
+ styleElement = createStyleElement()
357
+ update = applyToTag.bind(null, styleElement)
358
+ remove = function () {
359
+ styleElement.parentNode.removeChild(styleElement)
360
+ }
361
+ }
362
+
363
+ update(obj)
364
+
365
+ return function updateStyle (newObj /* StyleObjectPart */) {
366
+ if (newObj) {
367
+ if (newObj.css === obj.css &&
368
+ newObj.media === obj.media &&
369
+ newObj.sourceMap === obj.sourceMap) {
370
+ return
371
+ }
372
+ update(obj = newObj)
373
+ } else {
374
+ remove()
375
+ }
376
+ }
377
+ }
378
+
379
+ var replaceText = (function () {
380
+ var textStore = []
381
+
382
+ return function (index, replacement) {
383
+ textStore[index] = replacement
384
+ return textStore.filter(Boolean).join('\n')
385
+ }
386
+ })()
387
+
388
+ function applyToSingletonTag (styleElement, index, remove, obj) {
389
+ var css = remove ? '' : obj.css
390
+
391
+ if (styleElement.styleSheet) {
392
+ styleElement.styleSheet.cssText = replaceText(index, css)
393
+ } else {
394
+ var cssNode = document.createTextNode(css)
395
+ var childNodes = styleElement.childNodes
396
+ if (childNodes[index]) styleElement.removeChild(childNodes[index])
397
+ if (childNodes.length) {
398
+ styleElement.insertBefore(cssNode, childNodes[index])
399
+ } else {
400
+ styleElement.appendChild(cssNode)
401
+ }
402
+ }
403
+ }
404
+
405
+ function applyToTag (styleElement, obj) {
406
+ var css = obj.css
407
+ var media = obj.media
408
+ var sourceMap = obj.sourceMap
409
+
410
+ if (media) {
411
+ styleElement.setAttribute('media', media)
412
+ }
413
+ if (options.ssrId) {
414
+ styleElement.setAttribute(ssrIdKey, obj.id)
415
+ }
416
+
417
+ if (sourceMap) {
418
+ // https://developer.chrome.com/devtools/docs/javascript-debugging
419
+ // this makes source maps inside style tags work properly in Chrome
420
+ css += '\n/*# sourceURL=' + sourceMap.sources[0] + ' */'
421
+ // http://stackoverflow.com/a/26603875
422
+ css += '\n/*# sourceMappingURL=data:application/json;base64,' + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + ' */'
423
+ }
424
+
425
+ if (styleElement.styleSheet) {
426
+ styleElement.styleSheet.cssText = css
427
+ } else {
428
+ while (styleElement.firstChild) {
429
+ styleElement.removeChild(styleElement.firstChild)
430
+ }
431
+ styleElement.appendChild(document.createTextNode(css))
432
+ }
433
+ }
434
+
435
+
436
+ /***/ }),
437
+
15
438
  /***/ 485:
16
439
  /***/ (function(module) {
17
440
 
441
+ "use strict";
18
442
  module.exports = __WEBPACK_EXTERNAL_MODULE__485__;
19
443
 
444
+ /***/ }),
445
+
446
+ /***/ 700:
447
+ /***/ (function(module) {
448
+
449
+ "use strict";
450
+ module.exports = __WEBPACK_EXTERNAL_MODULE__700__;
451
+
20
452
  /***/ })
21
453
 
22
454
  /******/ });
@@ -33,7 +465,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__485__;
33
465
  /******/ }
34
466
  /******/ // Create a new module (and put it into the cache)
35
467
  /******/ var module = __webpack_module_cache__[moduleId] = {
36
- /******/ // no module.id needed
468
+ /******/ id: moduleId,
37
469
  /******/ // no module.loaded needed
38
470
  /******/ exports: {}
39
471
  /******/ };
@@ -46,6 +478,18 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__485__;
46
478
  /******/ }
47
479
  /******/
48
480
  /************************************************************************/
481
+ /******/ /* webpack/runtime/compat get default export */
482
+ /******/ !function() {
483
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
484
+ /******/ __webpack_require__.n = function(module) {
485
+ /******/ var getter = module && module.__esModule ?
486
+ /******/ function() { return module['default']; } :
487
+ /******/ function() { return module; };
488
+ /******/ __webpack_require__.d(getter, { a: getter });
489
+ /******/ return getter;
490
+ /******/ };
491
+ /******/ }();
492
+ /******/
49
493
  /******/ /* webpack/runtime/define property getters */
50
494
  /******/ !function() {
51
495
  /******/ // define getter functions for harmony exports
@@ -81,8 +525,9 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__485__;
81
525
  /******/
82
526
  /************************************************************************/
83
527
  var __webpack_exports__ = {};
84
- // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
528
+ // This entry need to be wrapped in an IIFE because it need to be in strict mode.
85
529
  !function() {
530
+ "use strict";
86
531
  // ESM COMPAT FLAG
87
532
  __webpack_require__.r(__webpack_exports__);
88
533
 
@@ -108,900 +553,618 @@ if (typeof window !== 'undefined') {
108
553
  // Indicate to webpack that this file can be concatenated
109
554
  /* harmony default export */ var setPublicPath = (null);
110
555
 
111
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ofdView/src/index.vue?vue&type=template&id=6f77318f&scoped=true&
112
- var render = function render() {
113
- var _vm = this,
114
- _c = _vm._self._c;
115
- return _vm._m(0);
116
- };
117
- var staticRenderFns = [function () {
118
- var _vm = this,
119
- _c = _vm._self._c;
120
- return _c('div', {
121
- attrs: {
122
- "id": "outerContainer"
123
- }
124
- }, [_c('div', {
125
- attrs: {
126
- "id": "mainContainer"
127
- }
128
- }, [_c('div', {
129
- staticClass: "secondaryToolbar hidden doorHangerRight",
130
- attrs: {
131
- "id": "secondaryToolbar"
132
- }
133
- }, [_c('div', {
134
- attrs: {
135
- "id": "secondaryToolbarButtonContainer"
136
- }
137
- }, [_c('button', {
138
- staticClass: "secondaryToolbarButton openFile visibleLargeView",
139
- attrs: {
140
- "id": "secondaryOpenFile",
141
- "title": "打开文件",
142
- "tabindex": "52",
143
- "data-l10n-id": "open_file"
144
- }
145
- }, [_c('span', {
146
- attrs: {
147
- "data-l10n-id": "open_file_label"
148
- }
149
- }, [_vm._v("打开")])]), _c('button', {
150
- staticClass: "secondaryToolbarButton print visibleMediumView",
151
- attrs: {
152
- "id": "secondaryPrint",
153
- "title": "打印",
154
- "tabindex": "53",
155
- "data-l10n-id": "print"
156
- }
157
- }, [_c('span', {
158
- attrs: {
159
- "data-l10n-id": "print_label"
160
- }
161
- }, [_vm._v("打印")])]), _c('button', {
162
- staticClass: "secondaryToolbarButton documentProperties",
163
- attrs: {
164
- "id": "documentProperties",
165
- "title": "文档属性…",
166
- "tabindex": "69",
167
- "data-l10n-id": "document_properties",
168
- "aria-controls": "documentPropertiesDialog"
169
- }
170
- }, [_c('span', {
171
- attrs: {
172
- "data-l10n-id": "document_properties_label"
173
- }
174
- }, [_vm._v("文档属性…")])])])]), _vm._v(" "), _c('div', {
175
- staticClass: "toolbar"
176
- }, [_c('div', {
177
- attrs: {
178
- "id": "toolbarContainer"
179
- }
180
- }, [_c('div', {
181
- attrs: {
182
- "id": "toolbarViewer"
183
- }
184
- }, [_c('div', {
185
- attrs: {
186
- "id": "toolbarViewerLeft"
187
- }
188
- }, [_c('div', {
189
- staticClass: "splitToolbarButton hiddenSmallView"
190
- }, [_c('button', {
191
- staticClass: "toolbarButton pageUp",
192
- attrs: {
193
- "title": "上一页",
194
- "id": "previous",
195
- "tabindex": "13",
196
- "data-l10n-id": "previous"
197
- }
198
- }, [_c('span', {
199
- attrs: {
200
- "data-l10n-id": "previous_label"
201
- }
202
- }, [_vm._v("上一页")])]), _c('div', {
203
- staticClass: "splitToolbarButtonSeparator"
204
- }), _c('button', {
205
- staticClass: "toolbarButton pageDown",
206
- attrs: {
207
- "title": "下一页",
208
- "id": "next",
209
- "tabindex": "14",
210
- "data-l10n-id": "next"
211
- }
212
- }, [_c('span', {
213
- attrs: {
214
- "data-l10n-id": "next_label"
215
- }
216
- }, [_vm._v("下一页")])])]), _c('input', {
217
- staticClass: "toolbarField pageNumber",
218
- attrs: {
219
- "type": "number",
220
- "id": "pageNumber",
221
- "title": "页面",
222
- "value": "1",
223
- "size": "4",
224
- "min": "1",
225
- "tabindex": "15",
226
- "data-l10n-id": "page",
227
- "autocomplete": "off"
228
- }
229
- }), _c('span', {
230
- staticClass: "toolbarLabel",
231
- attrs: {
232
- "id": "numPages"
233
- }
234
- })]), _c('div', {
235
- attrs: {
236
- "id": "toolbarViewerRight"
237
- }
238
- }, [_c('button', {
239
- staticClass: "toolbarButton openFile hiddenLargeView",
240
- attrs: {
241
- "id": "openFile",
242
- "title": "打开文件",
243
- "tabindex": "32",
244
- "data-l10n-id": "open_file"
245
- }
246
- }, [_c('span', {
247
- attrs: {
248
- "data-l10n-id": "open_file_label"
249
- }
250
- }, [_vm._v("打开")])]), _c('button', {
251
- staticClass: "toolbarButton print hiddenMediumView",
252
- attrs: {
253
- "id": "print",
254
- "title": "打印",
255
- "tabindex": "33",
256
- "data-l10n-id": "print"
257
- }
258
- }, [_c('span', {
259
- attrs: {
260
- "data-l10n-id": "print_label"
261
- }
262
- }, [_vm._v("打印")])]), _c('div', {
263
- staticClass: "verticalToolbarSeparator hiddenSmallView"
264
- }), _c('button', {
265
- staticClass: "toolbarButton",
266
- attrs: {
267
- "id": "secondaryToolbarToggle",
268
- "title": "工具",
269
- "tabindex": "36",
270
- "data-l10n-id": "tools",
271
- "aria-expanded": "false",
272
- "aria-controls": "secondaryToolbar"
273
- }
274
- }, [_c('span', {
275
- attrs: {
276
- "data-l10n-id": "tools_label"
277
- }
278
- }, [_vm._v("工具")])])]), _c('div', {
279
- attrs: {
280
- "id": "toolbarViewerMiddle"
281
- }
282
- }, [_c('div', {
283
- staticClass: "splitToolbarButton"
284
- }, [_c('button', {
285
- staticClass: "toolbarButton zoomOut",
286
- attrs: {
287
- "id": "zoomOut",
288
- "title": "缩小",
289
- "tabindex": "21",
290
- "data-l10n-id": "zoom_out"
291
- }
292
- }, [_c('span', {
293
- attrs: {
294
- "data-l10n-id": "zoom_out_label"
295
- }
296
- }, [_vm._v("缩小")])]), _c('div', {
297
- staticClass: "splitToolbarButtonSeparator"
298
- }), _c('button', {
299
- staticClass: "toolbarButton zoomIn",
300
- attrs: {
301
- "id": "zoomIn",
302
- "title": "放大",
303
- "tabindex": "22",
304
- "data-l10n-id": "zoom_in"
305
- }
306
- }, [_c('span', {
307
- attrs: {
308
- "data-l10n-id": "zoom_in_label"
309
- }
310
- }, [_vm._v("放大")])])]), _c('span', {
311
- staticClass: "dropdownToolbarButton",
312
- attrs: {
313
- "id": "scaleSelectContainer"
314
- }
315
- }, [_c('select', {
316
- attrs: {
317
- "id": "scaleSelect",
318
- "title": "缩放",
319
- "tabindex": "23",
320
- "data-l10n-id": "zoom"
321
- }
322
- }, [_c('option', {
323
- attrs: {
324
- "id": "pageAutoOption",
325
- "title": "",
326
- "value": "auto",
327
- "selected": "selected",
328
- "data-l10n-id": "page_scale_auto"
329
- }
330
- }, [_vm._v("自动缩放")]), _c('option', {
331
- attrs: {
332
- "id": "pageActualOption",
333
- "title": "",
334
- "value": "page-actual",
335
- "data-l10n-id": "page_scale_actual"
336
- }
337
- }, [_vm._v("实际大小")]), _c('option', {
338
- attrs: {
339
- "id": "pageFitOption",
340
- "title": "",
341
- "value": "page-fit",
342
- "data-l10n-id": "page_scale_fit"
343
- }
344
- }, [_vm._v("适合页面")]), _c('option', {
345
- attrs: {
346
- "id": "pageWidthOption",
347
- "title": "",
348
- "value": "page-width",
349
- "data-l10n-id": "page_scale_width"
350
- }
351
- }, [_vm._v("适合页宽")]), _c('option', {
352
- attrs: {
353
- "id": "customScaleOption",
354
- "title": "",
355
- "value": "custom",
356
- "disabled": "disabled",
357
- "hidden": "true"
358
- }
359
- }), _c('option', {
360
- attrs: {
361
- "title": "",
362
- "value": "0.5",
363
- "data-l10n-id": "page_scale_percent",
364
- "data-l10n-args": "{ \"scale\": 50 }"
365
- }
366
- }, [_vm._v("50%")]), _c('option', {
367
- attrs: {
368
- "title": "",
369
- "value": "0.75",
370
- "data-l10n-id": "page_scale_percent",
371
- "data-l10n-args": "{ \"scale\": 75 }"
372
- }
373
- }, [_vm._v("75%")]), _c('option', {
374
- attrs: {
375
- "title": "",
376
- "value": "1",
377
- "data-l10n-id": "page_scale_percent",
378
- "data-l10n-args": "{ \"scale\": 100 }"
379
- }
380
- }, [_vm._v("100%")]), _c('option', {
381
- attrs: {
382
- "title": "",
383
- "value": "1.25",
384
- "data-l10n-id": "page_scale_percent",
385
- "data-l10n-args": "{ \"scale\": 125 }"
386
- }
387
- }, [_vm._v("125%")]), _c('option', {
388
- attrs: {
389
- "title": "",
390
- "value": "1.5",
391
- "data-l10n-id": "page_scale_percent",
392
- "data-l10n-args": "{ \"scale\": 150 }"
393
- }
394
- }, [_vm._v("150%")]), _c('option', {
395
- attrs: {
396
- "title": "",
397
- "value": "2",
398
- "data-l10n-id": "page_scale_percent",
399
- "data-l10n-args": "{ \"scale\": 200 }"
400
- }
401
- }, [_vm._v("200%")]), _c('option', {
402
- attrs: {
403
- "title": "",
404
- "value": "3",
405
- "data-l10n-id": "page_scale_percent",
406
- "data-l10n-args": "{ \"scale\": 300 }"
407
- }
408
- }, [_vm._v("300%")]), _c('option', {
409
- attrs: {
410
- "title": "",
411
- "value": "4",
412
- "data-l10n-id": "page_scale_percent",
413
- "data-l10n-args": "{ \"scale\": 400 }"
414
- }
415
- }, [_vm._v("400%")])])])])])])]), _c('div', {
416
- attrs: {
417
- "id": "viewerContainer",
418
- "tabindex": "0"
419
- }
420
- }, [_c('div', {
421
- staticClass: "pdfViewer",
422
- attrs: {
423
- "id": "viewer"
424
- }
425
- })]), _c('div', {
426
- attrs: {
427
- "id": "errorWrapper",
428
- "hidden": "true"
429
- }
430
- }, [_c('div', {
431
- attrs: {
432
- "id": "errorMessageLeft"
433
- }
434
- }, [_c('span', {
435
- attrs: {
436
- "id": "errorMessage"
437
- }
438
- }), _c('button', {
439
- attrs: {
440
- "id": "errorShowMore",
441
- "data-l10n-id": "error_more_info"
442
- }
443
- }, [_vm._v(" More Information ")]), _c('button', {
444
- attrs: {
445
- "id": "errorShowLess",
446
- "data-l10n-id": "error_less_info",
447
- "hidden": "true"
448
- }
449
- }, [_vm._v(" Less Information ")])]), _c('div', {
450
- attrs: {
451
- "id": "errorMessageRight"
452
- }
453
- }, [_c('button', {
454
- attrs: {
455
- "id": "errorClose",
456
- "data-l10n-id": "error_close"
457
- }
458
- }, [_vm._v(" Close ")])]), _c('div', {
459
- staticClass: "clearBoth"
460
- }), _c('textarea', {
461
- attrs: {
462
- "id": "errorMoreInfo",
463
- "hidden": "true",
464
- "readonly": "readonly"
465
- }
466
- })])]), _vm._v(" "), _c('div', {
467
- attrs: {
468
- "id": "dialogContainer"
469
- }
470
- }, [_c('dialog', {
471
- attrs: {
472
- "id": "documentPropertiesDialog"
473
- }
474
- }, [_c('div', {
475
- staticClass: "row"
476
- }, [_c('span', {
477
- attrs: {
478
- "id": "fileNameLabel",
479
- "data-l10n-id": "document_properties_file_name"
480
- }
481
- }, [_vm._v("文件名:")]), _c('p', {
482
- attrs: {
483
- "id": "fileNameField",
484
- "aria-labelledby": "fileNameLabel"
485
- }
486
- }, [_vm._v("-")])]), _c('div', {
487
- staticClass: "row"
488
- }, [_c('span', {
489
- attrs: {
490
- "id": "fileSizeLabel",
491
- "data-l10n-id": "document_properties_file_size"
492
- }
493
- }, [_vm._v("文件大小:")]), _c('p', {
494
- attrs: {
495
- "id": "fileSizeField",
496
- "aria-labelledby": "fileSizeLabel"
497
- }
498
- }, [_vm._v("-")])]), _c('div', {
499
- staticClass: "separator"
500
- }), _c('div', {
501
- staticClass: "row"
502
- }, [_c('span', {
503
- attrs: {
504
- "id": "titleLabel",
505
- "data-l10n-id": "document_properties_title"
506
- }
507
- }, [_vm._v("标题:")]), _c('p', {
508
- attrs: {
509
- "id": "titleField",
510
- "aria-labelledby": "titleLabel"
511
- }
512
- }, [_vm._v("-")])]), _c('div', {
513
- staticClass: "row"
514
- }, [_c('span', {
515
- attrs: {
516
- "id": "authorLabel",
517
- "data-l10n-id": "document_properties_author"
518
- }
519
- }, [_vm._v("作者:")]), _c('p', {
520
- attrs: {
521
- "id": "authorField",
522
- "aria-labelledby": "authorLabel"
523
- }
524
- }, [_vm._v("-")])]), _c('div', {
525
- staticClass: "row"
526
- }, [_c('span', {
527
- attrs: {
528
- "id": "subjectLabel",
529
- "data-l10n-id": "document_properties_subject"
530
- }
531
- }, [_vm._v("主题:")]), _c('p', {
532
- attrs: {
533
- "id": "subjectField",
534
- "aria-labelledby": "subjectLabel"
535
- }
536
- }, [_vm._v("-")])]), _c('div', {
537
- staticClass: "row"
538
- }, [_c('span', {
539
- attrs: {
540
- "id": "keywordsLabel",
541
- "data-l10n-id": "document_properties_keywords"
542
- }
543
- }, [_vm._v("关键词:")]), _c('p', {
544
- attrs: {
545
- "id": "keywordsField",
546
- "aria-labelledby": "keywordsLabel"
547
- }
548
- }, [_vm._v("-")])]), _c('div', {
549
- staticClass: "row"
550
- }, [_c('span', {
551
- attrs: {
552
- "id": "creationDateLabel",
553
- "data-l10n-id": "document_properties_creation_date"
554
- }
555
- }, [_vm._v("创建日期:")]), _c('p', {
556
- attrs: {
557
- "id": "creationDateField",
558
- "aria-labelledby": "creationDateLabel"
559
- }
560
- }, [_vm._v("-")])]), _c('div', {
561
- staticClass: "row"
562
- }, [_c('span', {
563
- attrs: {
564
- "id": "modificationDateLabel",
565
- "data-l10n-id": "document_properties_modification_date"
566
- }
567
- }, [_vm._v("修改日期:")]), _c('p', {
568
- attrs: {
569
- "id": "modificationDateField",
570
- "aria-labelledby": "modificationDateLabel"
571
- }
572
- }, [_vm._v("-")])]), _c('div', {
573
- staticClass: "row"
574
- }, [_c('span', {
575
- attrs: {
576
- "id": "creatorLabel",
577
- "data-l10n-id": "document_properties_creator"
578
- }
579
- }, [_vm._v("创建者:")]), _c('p', {
580
- attrs: {
581
- "id": "creatorField",
582
- "aria-labelledby": "creatorLabel"
583
- }
584
- }, [_vm._v("-")])]), _c('div', {
585
- staticClass: "separator"
586
- }), _c('div', {
587
- staticClass: "row"
588
- }, [_c('span', {
589
- attrs: {
590
- "id": "producerLabel",
591
- "data-l10n-id": "document_properties_producer"
592
- }
593
- }, [_vm._v("OFD 生成器:")]), _c('p', {
594
- attrs: {
595
- "id": "producerField",
596
- "aria-labelledby": "producerLabel"
597
- }
598
- }, [_vm._v("-")])]), _c('div', {
599
- staticClass: "row"
600
- }, [_c('span', {
601
- attrs: {
602
- "id": "versionLabel",
603
- "data-l10n-id": "document_properties_version"
604
- }
605
- }, [_vm._v("OFD 版本:")]), _c('p', {
606
- attrs: {
607
- "id": "versionField",
608
- "aria-labelledby": "versionLabel"
609
- }
610
- }, [_vm._v("-")])]), _c('div', {
611
- staticClass: "row"
612
- }, [_c('span', {
613
- attrs: {
614
- "id": "pageCountLabel",
615
- "data-l10n-id": "document_properties_page_count"
616
- }
617
- }, [_vm._v("页数:")]), _c('p', {
618
- attrs: {
619
- "id": "pageCountField",
620
- "aria-labelledby": "pageCountLabel"
621
- }
622
- }, [_vm._v("-")])]), _c('div', {
623
- staticClass: "row"
624
- }, [_c('span', {
625
- attrs: {
626
- "id": "pageSizeLabel",
627
- "data-l10n-id": "document_properties_page_size"
628
- }
629
- }, [_vm._v("页面大小:")]), _c('p', {
630
- attrs: {
631
- "id": "pageSizeField",
632
- "aria-labelledby": "pageSizeLabel"
633
- }
634
- }, [_vm._v("-")])]), _c('div', {
635
- staticClass: "separator"
636
- }), _c('div', {
637
- staticClass: "row",
638
- attrs: {
639
- "hidden": "hidden"
640
- }
641
- }, [_c('span', {
642
- attrs: {
643
- "id": "linearizedLabel",
644
- "data-l10n-id": "document_properties_linearized"
645
- }
646
- }, [_vm._v("快速 Web 视图:")]), _c('p', {
647
- attrs: {
648
- "id": "linearizedField",
649
- "aria-labelledby": "linearizedLabel"
650
- }
651
- }, [_vm._v("-")])]), _c('div', {
652
- staticClass: "buttonRow"
653
- }, [_c('button', {
654
- staticClass: "dialogButton",
655
- attrs: {
656
- "id": "documentPropertiesClose"
657
- }
658
- }, [_c('span', {
659
- attrs: {
660
- "data-l10n-id": "document_properties_close"
661
- }
662
- }, [_vm._v("关闭")])])])]), _c('dialog', {
663
- staticStyle: {
664
- "min-width": "200px"
665
- },
666
- attrs: {
667
- "id": "printServiceDialog"
668
- }
669
- }, [_c('div', {
670
- staticClass: "row"
671
- }, [_c('span', {
672
- attrs: {
673
- "data-l10n-id": "print_progress_message"
674
- }
675
- }, [_vm._v("正在准备打印文档…")])]), _c('div', {
676
- staticClass: "row"
677
- }, [_c('progress', {
678
- attrs: {
679
- "id": "printProgress",
680
- "value": "0",
681
- "max": "100"
682
- }
683
- }), _c('span', {
684
- staticClass: "relative-progress",
685
- attrs: {
686
- "data-l10n-id": "print_progress_percent",
687
- "data-l10n-args": "{ \"progress\": 0 }"
688
- }
689
- }, [_vm._v("0%")])]), _c('div', {
690
- staticClass: "buttonRow"
691
- }, [_c('button', {
692
- staticClass: "dialogButton",
693
- attrs: {
694
- "id": "printCancel"
695
- }
696
- }, [_c('span', {
697
- attrs: {
698
- "data-l10n-id": "print_progress_close"
699
- }
700
- }, [_vm._v("取消")])])])]), _c('dialog', {
701
- attrs: {
702
- "id": "signaturePropertiesDialog"
703
- }
704
- }, [_c('div', {
705
- staticClass: "row"
706
- }, [_c('span', {
707
- attrs: {
708
- "id": "signerLabel"
709
- }
710
- }, [_vm._v("签章人:")]), _c('p', {
711
- attrs: {
712
- "id": "signerField",
713
- "aria-labelledby": "fileNameLabel"
714
- }
715
- }, [_vm._v("-")])]), _c('div', {
716
- staticClass: "row"
717
- }, [_c('span', {
718
- attrs: {
719
- "id": "providerLabel"
720
- }
721
- }, [_vm._v("签章提供者:")]), _c('p', {
722
- attrs: {
723
- "id": "providerField",
724
- "aria-labelledby": "fileNameLabel"
725
- }
726
- }, [_vm._v("-")])]), _c('div', {
727
- staticClass: "row"
728
- }, [_c('span', {
729
- attrs: {
730
- "id": "hashedValueLabel"
731
- }
732
- }, [_vm._v("原文摘要值:")]), _c('p', {
733
- attrs: {
734
- "id": "hashedValueField",
735
- "aria-labelledby": "fileNameLabel"
736
- }
737
- }, [_vm._v("-")])]), _c('div', {
738
- staticClass: "row"
739
- }, [_c('span', {
740
- attrs: {
741
- "id": "signedValueLabel"
742
- }
743
- }, [_vm._v("签名值:")]), _c('p', {
744
- attrs: {
745
- "id": "signedValueField",
746
- "aria-labelledby": "fileNameLabel"
747
- }
748
- }, [_vm._v("-")])]), _c('div', {
749
- staticClass: "row"
750
- }, [_c('span', {
751
- attrs: {
752
- "id": "signMethodLabel"
753
- }
754
- }, [_vm._v("签名算法:")]), _c('p', {
755
- attrs: {
756
- "id": "signMethodField",
757
- "aria-labelledby": "fileNameLabel"
758
- }
759
- }, [_vm._v("-")])]), _c('div', {
760
- staticClass: "row"
761
- }, [_c('span', {
762
- attrs: {
763
- "id": "signVersionLabel"
764
- }
765
- }, [_vm._v("版本号:")]), _c('p', {
766
- attrs: {
767
- "id": "signVersionField",
768
- "aria-labelledby": "fileNameLabel"
769
- }
770
- }, [_vm._v("-")])]), _c('div', {
771
- staticClass: "row"
772
- }, [_c('span', {
773
- attrs: {
774
- "id": "verifyLabel"
775
- }
776
- }, [_vm._v("验签结果:")]), _c('p', {
777
- attrs: {
778
- "id": "verifyField",
779
- "aria-labelledby": "fileNameLabel"
780
- }
781
- }, [_vm._v("-")])]), _c('div', {
782
- staticClass: "separator"
783
- }), _c('div', {
784
- staticClass: "row"
785
- }, [_c('span', {
786
- attrs: {
787
- "id": "sealIDLabel"
788
- }
789
- }, [_vm._v("印章标识:")]), _c('p', {
790
- attrs: {
791
- "id": "sealIDField",
792
- "aria-labelledby": "fileNameLabel"
793
- }
794
- }, [_vm._v("-")])]), _c('div', {
795
- staticClass: "row"
796
- }, [_c('span', {
797
- attrs: {
798
- "id": "sealNameLabel"
799
- }
800
- }, [_vm._v("印章名称:")]), _c('p', {
801
- attrs: {
802
- "id": "sealNameField",
803
- "aria-labelledby": "fileNameLabel"
804
- }
805
- }, [_vm._v("-")])]), _c('div', {
806
- staticClass: "row"
807
- }, [_c('span', {
808
- attrs: {
809
- "id": "sealTypeLabel"
810
- }
811
- }, [_vm._v("印章类型:")]), _c('p', {
812
- attrs: {
813
- "id": "sealTypeField",
814
- "aria-labelledby": "fileNameLabel"
815
- }
816
- }, [_vm._v("-")])]), _c('div', {
817
- staticClass: "row"
818
- }, [_c('span', {
819
- attrs: {
820
- "id": "sealAuthTimeLabel"
821
- }
822
- }, [_vm._v("有效时间:")]), _c('p', {
823
- attrs: {
824
- "id": "sealAuthTimeField",
825
- "aria-labelledby": "fileNameLabel"
826
- }
827
- }, [_vm._v("-")])]), _c('div', {
828
- staticClass: "row"
829
- }, [_c('span', {
830
- attrs: {
831
- "id": "sealMakeTimeLabel"
832
- }
833
- }, [_vm._v("制章日期:")]), _c('p', {
834
- attrs: {
835
- "id": "sealMakeTimeField",
836
- "aria-labelledby": "fileNameLabel"
837
- }
838
- }, [_vm._v("-")])]), _c('div', {
839
- staticClass: "row"
840
- }, [_c('span', {
841
- attrs: {
842
- "id": "sealVersionLabel"
843
- }
844
- }, [_vm._v("印章版本:")]), _c('p', {
845
- attrs: {
846
- "id": "sealVersionField",
847
- "aria-labelledby": "fileNameLabel"
848
- }
849
- }, [_vm._v("-")])]), _c('div', {
850
- staticClass: "buttonRow"
851
- }, [_c('button', {
852
- staticClass: "dialogButton",
853
- attrs: {
854
- "id": "signaturePropertiesClose"
855
- }
856
- }, [_c('span', {
857
- attrs: {
858
- "data-l10n-id": "document_properties_close"
859
- }
860
- }, [_vm._v("关闭")])])])])])]);
861
- }];
556
+ ;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ofdView/src/index.vue?vue&type=template&id=4f83f1c8&scoped=true&
557
+ var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{attrs:{"id":"outerContainer"}},[_c('div',{attrs:{"id":"mainContainer"}},[_vm._m(0),_vm._v(" "),_vm._m(1),_c('div',{attrs:{"id":"viewerContainer","tabindex":"0"}},[_c('div',{staticClass:"pdfViewer",attrs:{"id":"viewer"}},_vm._l((_vm.stamps),function(stamp,index){return (_vm.viewVisible)?_c('vue-draggable-resizable',{key:stamp.key,attrs:{"w":stamp.w ? stamp.w : 174,"h":stamp.h ? stamp.h : 174,"parent":_vm.config.viewerContainer,"customForStamp":true,"eventBus":_vm.eventBus,"handles":['tl', 'tr', 'bl', 'br'],"index":index,"x":stamp.x,"y":stamp.located ? stamp.y : stamp.y + _vm.config.mainContainer.scrollTop,"pages":_vm.pdfViewer._pages,"currentPage":_vm.sp,"stampId":stamp.source.stampId,"draggable":_vm.draggable,"resizable":_vm.resizable,"editable":_vm.editable},on:{"dropitem":_vm.removeStamp,"dragstop":_vm.onStampDragStop,"placed":_vm.placed}},[_c('div',{staticClass:"stamp",style:({backgroundImage : 'url(data:image/png;base64,' + stamp.source.stampBase64 + ')'})})]):_vm._e()}),1)]),_vm._m(2)]),_vm._v(" "),_vm._m(3)])
558
+ }
559
+ var staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:"secondaryToolbar hidden doorHangerRight",attrs:{"id":"secondaryToolbar"}},[_c('div',{attrs:{"id":"secondaryToolbarButtonContainer"}},[_c('button',{staticClass:"secondaryToolbarButton openFile visibleLargeView",attrs:{"id":"secondaryOpenFile","title":"打开文件","tabindex":"52","data-l10n-id":"open_file"}},[_c('span',{attrs:{"data-l10n-id":"open_file_label"}},[_vm._v("打开")])]),_c('button',{staticClass:"secondaryToolbarButton print visibleMediumView",attrs:{"id":"secondaryPrint","title":"打印","tabindex":"53","data-l10n-id":"print"}},[_c('span',{attrs:{"data-l10n-id":"print_label"}},[_vm._v("打印")])]),_c('button',{staticClass:"secondaryToolbarButton documentProperties",attrs:{"id":"documentProperties","title":"文档属性…","tabindex":"69","data-l10n-id":"document_properties","aria-controls":"documentPropertiesDialog"}},[_c('span',{attrs:{"data-l10n-id":"document_properties_label"}},[_vm._v("文档属性…")])])])])
560
+ },function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:"toolbar"},[_c('div',{attrs:{"id":"toolbarContainer"}},[_c('div',{attrs:{"id":"toolbarViewer"}},[_c('div',{attrs:{"id":"toolbarViewerLeft"}},[_c('div',{staticClass:"splitToolbarButton hiddenSmallView"},[_c('button',{staticClass:"toolbarButton pageUp",attrs:{"title":"上一页","id":"previous","tabindex":"13","data-l10n-id":"previous"}},[_c('span',{attrs:{"data-l10n-id":"previous_label"}},[_vm._v("上一页")])]),_c('div',{staticClass:"splitToolbarButtonSeparator"}),_c('button',{staticClass:"toolbarButton pageDown",attrs:{"title":"下一页","id":"next","tabindex":"14","data-l10n-id":"next"}},[_c('span',{attrs:{"data-l10n-id":"next_label"}},[_vm._v("下一页")])])]),_c('input',{staticClass:"toolbarField pageNumber",attrs:{"type":"number","id":"pageNumber","title":"页面","value":"1","size":"4","min":"1","tabindex":"15","data-l10n-id":"page","autocomplete":"off"}}),_c('span',{staticClass:"toolbarLabel",attrs:{"id":"numPages"}})]),_c('div',{attrs:{"id":"toolbarViewerRight"}},[_c('button',{staticClass:"toolbarButton openFile hiddenLargeView",attrs:{"id":"openFile","title":"打开文件","tabindex":"32","data-l10n-id":"open_file"}},[_c('span',{attrs:{"data-l10n-id":"open_file_label"}},[_vm._v("打开")])]),_c('button',{staticClass:"toolbarButton print hiddenMediumView",attrs:{"id":"print","title":"打印","tabindex":"33","data-l10n-id":"print"}},[_c('span',{attrs:{"data-l10n-id":"print_label"}},[_vm._v("打印")])]),_c('div',{staticClass:"verticalToolbarSeparator hiddenSmallView"}),_c('button',{staticClass:"toolbarButton",attrs:{"id":"secondaryToolbarToggle","title":"工具","tabindex":"36","data-l10n-id":"tools","aria-expanded":"false","aria-controls":"secondaryToolbar"}},[_c('span',{attrs:{"data-l10n-id":"tools_label"}},[_vm._v("工具")])])]),_c('div',{attrs:{"id":"toolbarViewerMiddle"}},[_c('div',{staticClass:"splitToolbarButton"},[_c('button',{staticClass:"toolbarButton zoomOut",attrs:{"id":"zoomOut","title":"缩小","tabindex":"21","data-l10n-id":"zoom_out"}},[_c('span',{attrs:{"data-l10n-id":"zoom_out_label"}},[_vm._v("缩小")])]),_c('div',{staticClass:"splitToolbarButtonSeparator"}),_c('button',{staticClass:"toolbarButton zoomIn",attrs:{"id":"zoomIn","title":"放大","tabindex":"22","data-l10n-id":"zoom_in"}},[_c('span',{attrs:{"data-l10n-id":"zoom_in_label"}},[_vm._v("放大")])])]),_c('span',{staticClass:"dropdownToolbarButton",attrs:{"id":"scaleSelectContainer"}},[_c('select',{attrs:{"id":"scaleSelect","title":"缩放","tabindex":"23","data-l10n-id":"zoom"}},[_c('option',{attrs:{"id":"pageAutoOption","title":"","value":"auto","selected":"selected","data-l10n-id":"page_scale_auto"}},[_vm._v("自动缩放")]),_c('option',{attrs:{"id":"pageActualOption","title":"","value":"page-actual","data-l10n-id":"page_scale_actual"}},[_vm._v("实际大小")]),_c('option',{attrs:{"id":"pageFitOption","title":"","value":"page-fit","data-l10n-id":"page_scale_fit"}},[_vm._v("适合页面")]),_c('option',{attrs:{"id":"pageWidthOption","title":"","value":"page-width","data-l10n-id":"page_scale_width"}},[_vm._v("适合页宽")]),_c('option',{attrs:{"id":"customScaleOption","title":"","value":"custom","disabled":"disabled","hidden":"true"}}),_c('option',{attrs:{"title":"","value":"0.5","data-l10n-id":"page_scale_percent","data-l10n-args":"{ \"scale\": 50 }"}},[_vm._v("50%")]),_c('option',{attrs:{"title":"","value":"0.75","data-l10n-id":"page_scale_percent","data-l10n-args":"{ \"scale\": 75 }"}},[_vm._v("75%")]),_c('option',{attrs:{"title":"","value":"1","data-l10n-id":"page_scale_percent","data-l10n-args":"{ \"scale\": 100 }"}},[_vm._v("100%")]),_c('option',{attrs:{"title":"","value":"1.25","data-l10n-id":"page_scale_percent","data-l10n-args":"{ \"scale\": 125 }"}},[_vm._v("125%")]),_c('option',{attrs:{"title":"","value":"1.5","data-l10n-id":"page_scale_percent","data-l10n-args":"{ \"scale\": 150 }"}},[_vm._v("150%")]),_c('option',{attrs:{"title":"","value":"2","data-l10n-id":"page_scale_percent","data-l10n-args":"{ \"scale\": 200 }"}},[_vm._v("200%")]),_c('option',{attrs:{"title":"","value":"3","data-l10n-id":"page_scale_percent","data-l10n-args":"{ \"scale\": 300 }"}},[_vm._v("300%")]),_c('option',{attrs:{"title":"","value":"4","data-l10n-id":"page_scale_percent","data-l10n-args":"{ \"scale\": 400 }"}},[_vm._v("400%")])])])])])])])
561
+ },function (){var _vm=this,_c=_vm._self._c;return _c('div',{attrs:{"id":"errorWrapper","hidden":"true"}},[_c('div',{attrs:{"id":"errorMessageLeft"}},[_c('span',{attrs:{"id":"errorMessage"}}),_c('button',{attrs:{"id":"errorShowMore","data-l10n-id":"error_more_info"}},[_vm._v(" More Information ")]),_c('button',{attrs:{"id":"errorShowLess","data-l10n-id":"error_less_info","hidden":"true"}},[_vm._v(" Less Information ")])]),_c('div',{attrs:{"id":"errorMessageRight"}},[_c('button',{attrs:{"id":"errorClose","data-l10n-id":"error_close"}},[_vm._v(" Close ")])]),_c('div',{staticClass:"clearBoth"}),_c('textarea',{attrs:{"id":"errorMoreInfo","hidden":"true","readonly":"readonly"}})])
562
+ },function (){var _vm=this,_c=_vm._self._c;return _c('div',{attrs:{"id":"dialogContainer"}},[_c('dialog',{attrs:{"id":"documentPropertiesDialog"}},[_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"fileNameLabel","data-l10n-id":"document_properties_file_name"}},[_vm._v("文件名:")]),_c('p',{attrs:{"id":"fileNameField","aria-labelledby":"fileNameLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"fileSizeLabel","data-l10n-id":"document_properties_file_size"}},[_vm._v("文件大小:")]),_c('p',{attrs:{"id":"fileSizeField","aria-labelledby":"fileSizeLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"separator"}),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"titleLabel","data-l10n-id":"document_properties_title"}},[_vm._v("标题:")]),_c('p',{attrs:{"id":"titleField","aria-labelledby":"titleLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"authorLabel","data-l10n-id":"document_properties_author"}},[_vm._v("作者:")]),_c('p',{attrs:{"id":"authorField","aria-labelledby":"authorLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"subjectLabel","data-l10n-id":"document_properties_subject"}},[_vm._v("主题:")]),_c('p',{attrs:{"id":"subjectField","aria-labelledby":"subjectLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"keywordsLabel","data-l10n-id":"document_properties_keywords"}},[_vm._v("关键词:")]),_c('p',{attrs:{"id":"keywordsField","aria-labelledby":"keywordsLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"creationDateLabel","data-l10n-id":"document_properties_creation_date"}},[_vm._v("创建日期:")]),_c('p',{attrs:{"id":"creationDateField","aria-labelledby":"creationDateLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"modificationDateLabel","data-l10n-id":"document_properties_modification_date"}},[_vm._v("修改日期:")]),_c('p',{attrs:{"id":"modificationDateField","aria-labelledby":"modificationDateLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"creatorLabel","data-l10n-id":"document_properties_creator"}},[_vm._v("创建者:")]),_c('p',{attrs:{"id":"creatorField","aria-labelledby":"creatorLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"separator"}),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"producerLabel","data-l10n-id":"document_properties_producer"}},[_vm._v("OFD 生成器:")]),_c('p',{attrs:{"id":"producerField","aria-labelledby":"producerLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"versionLabel","data-l10n-id":"document_properties_version"}},[_vm._v("OFD 版本:")]),_c('p',{attrs:{"id":"versionField","aria-labelledby":"versionLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"pageCountLabel","data-l10n-id":"document_properties_page_count"}},[_vm._v("页数:")]),_c('p',{attrs:{"id":"pageCountField","aria-labelledby":"pageCountLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"pageSizeLabel","data-l10n-id":"document_properties_page_size"}},[_vm._v("页面大小:")]),_c('p',{attrs:{"id":"pageSizeField","aria-labelledby":"pageSizeLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"separator"}),_c('div',{staticClass:"row",attrs:{"hidden":"hidden"}},[_c('span',{attrs:{"id":"linearizedLabel","data-l10n-id":"document_properties_linearized"}},[_vm._v("快速 Web 视图:")]),_c('p',{attrs:{"id":"linearizedField","aria-labelledby":"linearizedLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"buttonRow"},[_c('button',{staticClass:"dialogButton",attrs:{"id":"documentPropertiesClose"}},[_c('span',{attrs:{"data-l10n-id":"document_properties_close"}},[_vm._v("关闭")])])])]),_c('dialog',{staticStyle:{"min-width":"200px"},attrs:{"id":"printServiceDialog"}},[_c('div',{staticClass:"row"},[_c('span',{attrs:{"data-l10n-id":"print_progress_message"}},[_vm._v("正在准备打印文档…")])]),_c('div',{staticClass:"row"},[_c('progress',{attrs:{"id":"printProgress","value":"0","max":"100"}}),_c('span',{staticClass:"relative-progress",attrs:{"data-l10n-id":"print_progress_percent","data-l10n-args":"{ \"progress\": 0 }"}},[_vm._v("0%")])]),_c('div',{staticClass:"buttonRow"},[_c('button',{staticClass:"dialogButton",attrs:{"id":"printCancel"}},[_c('span',{attrs:{"data-l10n-id":"print_progress_close"}},[_vm._v("取消")])])])]),_c('dialog',{attrs:{"id":"signaturePropertiesDialog"}},[_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"signerLabel"}},[_vm._v("签章人:")]),_c('p',{attrs:{"id":"signerField","aria-labelledby":"fileNameLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"providerLabel"}},[_vm._v("签章提供者:")]),_c('p',{attrs:{"id":"providerField","aria-labelledby":"fileNameLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"hashedValueLabel"}},[_vm._v("原文摘要值:")]),_c('p',{attrs:{"id":"hashedValueField","aria-labelledby":"fileNameLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"signedValueLabel"}},[_vm._v("签名值:")]),_c('p',{attrs:{"id":"signedValueField","aria-labelledby":"fileNameLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"signMethodLabel"}},[_vm._v("签名算法:")]),_c('p',{attrs:{"id":"signMethodField","aria-labelledby":"fileNameLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"signVersionLabel"}},[_vm._v("版本号:")]),_c('p',{attrs:{"id":"signVersionField","aria-labelledby":"fileNameLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"verifyLabel"}},[_vm._v("验签结果:")]),_c('p',{attrs:{"id":"verifyField","aria-labelledby":"fileNameLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"separator"}),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"sealIDLabel"}},[_vm._v("印章标识:")]),_c('p',{attrs:{"id":"sealIDField","aria-labelledby":"fileNameLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"sealNameLabel"}},[_vm._v("印章名称:")]),_c('p',{attrs:{"id":"sealNameField","aria-labelledby":"fileNameLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"sealTypeLabel"}},[_vm._v("印章类型:")]),_c('p',{attrs:{"id":"sealTypeField","aria-labelledby":"fileNameLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"sealAuthTimeLabel"}},[_vm._v("有效时间:")]),_c('p',{attrs:{"id":"sealAuthTimeField","aria-labelledby":"fileNameLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"sealMakeTimeLabel"}},[_vm._v("制章日期:")]),_c('p',{attrs:{"id":"sealMakeTimeField","aria-labelledby":"fileNameLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"sealVersionLabel"}},[_vm._v("印章版本:")]),_c('p',{attrs:{"id":"sealVersionField","aria-labelledby":"fileNameLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"buttonRow"},[_c('button',{staticClass:"dialogButton",attrs:{"id":"signaturePropertiesClose"}},[_c('span',{attrs:{"data-l10n-id":"document_properties_close"}},[_vm._v("关闭")])])])])])
563
+ }]
862
564
 
863
- ;// CONCATENATED MODULE: ./packages/ofdView/src/index.vue?vue&type=template&id=6f77318f&scoped=true&
864
565
 
865
- // EXTERNAL MODULE: external {"commonjs":"ofd.js","commonjs2":"ofd.js","root":"ofd"}
866
- var external_commonjs_ofd_js_commonjs2_ofd_js_root_ofd_ = __webpack_require__(485);
867
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ofdView/src/index.vue?vue&type=script&lang=js&
566
+ ;// CONCATENATED MODULE: ./packages/ofdView/src/index.vue?vue&type=template&id=4f83f1c8&scoped=true&
567
+
568
+ ;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/draggable-resizable/draggable-resizable.vue?vue&type=template&id=6cdf0a0c&scoped=true&
569
+ var draggable_resizablevue_type_template_id_6cdf0a0c_scoped_true_render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:"vdr",class:{
570
+ draggable: _vm.draggable,
571
+ resizable: _vm.resizable,
572
+ active: _vm.enabled,
573
+ dragging: _vm.dragging,
574
+ resizing: _vm.resizing
575
+ },style:(_vm.style),on:{"mousedown":_vm.elmDown,"touchstart":_vm.elmDown}},[(_vm.editable)?_c('button',{staticClass:"btn btn-danger btn-elevate btn-pill btn-icon btn-elevate-air btn-sm",staticStyle:{"position":"absolute","right":"5px","top":"-20px"},attrs:{"type":"button"},on:{"click":function($event){$event.stopPropagation();return _vm.dropItem.apply(null, arguments)}}},[_c('span',{staticClass:"close"})]):_vm._e(),_vm._l((_vm.handles),function(handle){return (_vm.resizable)?_c('div',{key:handle,staticClass:"handle",class:'handle-' + handle,style:({ display: _vm.enabled ? 'block' : 'none'}),on:{"mousedown":function($event){return _vm.handleDown(handle, $event)},"touchstart":function($event){return _vm.handleDown(handle, $event)}}}):_vm._e()}),_vm._t("default")],2)
576
+ }
577
+ var draggable_resizablevue_type_template_id_6cdf0a0c_scoped_true_staticRenderFns = []
578
+
579
+
580
+ ;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/draggable-resizable/draggable-resizable.vue?vue&type=script&lang=js&
581
+
582
+ function isFunction (func) {
583
+ return typeof func === 'function' || Object.prototype.toString.call(func) === '[object Function]'
584
+ }
585
+
586
+ function matchesSelectorToParentElements (el, selector, baseNode) {
587
+ let node = el;
588
+ const matchesSelectorFunc = [
589
+ 'matches',
590
+ 'webkitMatchesSelector',
591
+ 'mozMatchesSelector',
592
+ 'msMatchesSelector',
593
+ 'oMatchesSelector'
594
+ ].find(func => isFunction(node[func]));
595
+
596
+ if (!isFunction(node[matchesSelectorFunc])) return false;
597
+
598
+ do {
599
+ if (node[matchesSelectorFunc](selector)) return true;
600
+ if (node === baseNode) return false;
601
+ node = node.parentNode
602
+ } while (node);
603
+
604
+ return false
605
+ }
606
+
607
+ /* harmony default export */ var draggable_resizablevue_type_script_lang_js_ = ({
608
+ replace: true,
609
+ name: 'VueDraggableResizable',
610
+ props: {
611
+ active: {
612
+ type: Boolean, default: false
613
+ },
614
+ draggable: {
615
+ type: Boolean, default: true
616
+ },
617
+ resizable: {
618
+ type: Boolean, default: true
619
+ },
620
+ editable: {
621
+ type: Boolean, default: true
622
+ },
623
+ w: {
624
+ type: Number,
625
+ default: 200,
626
+ validator: function (val) {
627
+ return val > 0
628
+ }
629
+ },
630
+ h: {
631
+ type: Number,
632
+ default: 200,
633
+ validator: function (val) {
634
+ return val > 0
635
+ }
636
+ },
637
+ minw: {
638
+ type: Number,
639
+ default: 50,
640
+ validator: function (val) {
641
+ return val >= 0
642
+ }
643
+ },
644
+ minh: {
645
+ type: Number,
646
+ default: 50,
647
+ validator: function (val) {
648
+ return val >= 0
649
+ }
650
+ },
651
+ x: {
652
+ type: Number,
653
+ default: 0,
654
+ validator: function (val) {
655
+ return typeof val === 'number'
656
+ }
657
+ },
658
+ y: {
659
+ type: Number,
660
+ default: 0,
661
+ validator: function (val) {
662
+ return typeof val === 'number'
663
+ }
664
+ },
665
+ z: {
666
+ type: [ String, Number ],
667
+ default: 'auto',
668
+ validator: function (val) {
669
+ return (typeof val === 'string') ? val === 'auto' : val >= 0;
670
+ }
671
+ },
672
+ handles: {
673
+ type: Array,
674
+ default: function () {
675
+ return ['tl', 'tm', 'tr', 'mr', 'br', 'bm', 'bl', 'ml']
676
+ },
677
+ validator: function (val) {
678
+ let s = new Set(['tl', 'tm', 'tr', 'mr', 'br', 'bm', 'bl', 'ml']);
679
+ return new Set(val.filter(h => s.has(h))).size === val.length
680
+ }
681
+ },
682
+ dragHandle: {
683
+ type: String,
684
+ default: null
685
+ },
686
+ dragCancel: {
687
+ type: String,
688
+ default: null
689
+ },
690
+ axis: {
691
+ type: String,
692
+ default: 'both',
693
+ validator: function (val) {
694
+ return ['x', 'y', 'both'].indexOf(val) !== -1
695
+ }
696
+ },
697
+ grid: {
698
+ type: Array,
699
+ default: function () {
700
+ return [1, 1]
701
+ }
702
+ },
703
+ parent: {
704
+ type: Element, default: null
705
+ },
706
+ maximize: {
707
+ type: Boolean, default: false
708
+ },
709
+ pages:{
710
+ type: Array, required: false, default: null
711
+ },
712
+ eventBus: {
713
+ type: Object, default: null
714
+ },
715
+ index: {
716
+ type: Number, required: false, default: 0
717
+ },
718
+ currentPage: {
719
+ type: Number, required: false, default: 0
720
+ },
721
+ stampId: {
722
+ type: String, required: false, default: null
723
+ }
724
+ },
725
+ created: function () {
726
+ this.parentX = 0;
727
+ this.parentW = 9999;
728
+ this.parentY = 0;
729
+ this.parentH = 9999;
730
+ this.mouseX = 0;
731
+ this.mouseY = 0;
732
+ this.lastMouseX = 0;
733
+ this.lastMouseY = 0;
734
+ this.mouseOffX = 0;
735
+ this.mouseOffY = 0;
736
+ this.elmX = 0;
737
+ this.elmY = 0;
738
+ this.elmW = 0;
739
+ this.elmH = 0;
740
+ this.scrollPosition = 0;
741
+ this.scrollDist = 0;
742
+ this.pagesCount = this.pages ? this.pages.length : 0;
743
+ this.section = [];
744
+ this.scale = null;
745
+ },
746
+ mounted: function () {
747
+ this.parent.addEventListener('mousemove', this.handleMove, false);
748
+ this.parent.addEventListener('mousedown', this.deselect, false);
749
+ this.parent.addEventListener('mouseup', this.handleUp, false);
750
+ // touch events bindings
751
+ this.parent.addEventListener('touchmove', this.handleMove, false);
752
+ this.parent.addEventListener('touchend', this.handleUp, false);
753
+ // this.parent.addEventListener('touchstart', this.handleUp, false);
754
+ this.parent.addEventListener('touchstart', this.deselect, false);
755
+ if(this.parent){
756
+ this.parent.parentNode.addEventListener('scroll', this.handleScrollMove, false);
757
+ }
758
+ //resize
759
+ if(this.eventBus){
760
+ this.eventBus.on('stampResize', this.stampResize);
761
+ }
762
+ this.elmX = parseInt(this.$el.style.left);
763
+ this.elmY = parseInt(this.$el.style.top);
764
+ this.elmW = this.$el.offsetWidth || this.$el.clientWidth;
765
+ this.elmH = this.$el.offsetHeight || this.$el.clientHeight;
766
+ this._reviewDimensions();
767
+ if(this.pages){
768
+ if(!this.scale){
769
+ this.scale = this.pages[0].viewport.scale;
770
+ }
771
+ this.updateSection();
772
+ this.top = this.y + 10 < 0 ? 10 : this.y + 10;
773
+ if(this.top < 10){
774
+ this.top = 10;
775
+ }
776
+ let pageIndex = this.adjust(this.section, this.top, this.currentPage - 1, this.pagesCount - 1);
777
+ this.elmY = this.top;
778
+ let placed = this.pages[pageIndex];
779
+ if(placed && this.x - placed.div.offsetLeft - 9 > 0){
780
+ //nothing
781
+ }else if(placed){
782
+ this.left = placed.div.offsetLeft + 9;
783
+ }
784
+ this.elmX = this.left;
785
+ this._emitPlaced(pageIndex);
786
+ }
787
+ },
788
+ beforeUnmount: function () {
789
+ this.parent.removeEventListener('mousemove', this.handleMove, false);
790
+ this.parent.removeEventListener('mousedown', this.deselect, false);
791
+ this.parent.removeEventListener('mouseup', this.handleUp, false);
792
+ if(this.parent){
793
+ this.parent.parentNode.removeEventListener('scroll', this.handleScrollMove, false);
794
+ }
795
+ if(this.eventBus){
796
+ this.eventBus.off('stampResize', this.stampResize);
797
+ }
798
+ // touch events bindings removed
799
+ this.parent.removeEventListener('touchmove', this.handleMove, false);
800
+ this.parent.removeEventListener('touchend', this.handleUp, false);
801
+ // this.parent.removeEventListener('touchstart', this.handleUp, false);
802
+ this.parent.removeEventListener('touchstart', this.deselect, false);
803
+ },
804
+ data: function () {
805
+ return {
806
+ top: this.y,
807
+ left: this.x,
808
+ width: this.w,
809
+ height: this.h,
810
+ resizing: false,
811
+ dragging: false,
812
+ enabled: this.active,
813
+ handle: null,
814
+ zIndex: this.z
815
+ }
816
+ },
817
+ methods: {
818
+ adjust(arr, val, leftIndex, rightIndex){
819
+ let pageIndex = this.binarySearch(arr, val, leftIndex, rightIndex);
820
+ if(pageIndex < 0 || pageIndex > this.pagesCount - 1){
821
+ pageIndex = 0;
822
+ }
823
+ pageIndex = this.adjustBoundary(pageIndex);
824
+ return pageIndex;
825
+ },
826
+ handleScrollMove(e){
827
+ if(this.dragging){
828
+ this.scrollDist = e.currentTarget.scrollTop - this.scrollPosition;
829
+ this.top = this.top + this.scrollDist;
830
+ this.elmY = this.top;
831
+ }
832
+ this.scrollPosition = e.currentTarget.scrollTop;
833
+ },
834
+ stampAreaUpdate(sp){
835
+ //update sp-1 and sp area
836
+ for(let i = sp-1; i < sp+1; i++){
837
+ if(i - 1 > 0 && i < this.pagesCount){
838
+ this.section[i].t = this.section[i -1].t + this.pages[i - 1].viewport.height + 11;
839
+ this.section[i].o = this.pages[i -1].div.offsetLeft + 9;
840
+ }
841
+ }
842
+ },
843
+ adjustBoundary(pageIndex){
844
+ if(this.pages[pageIndex] && this.top + this.elmH - this.section[pageIndex].t - this.pages[pageIndex].viewport.height > 0){
845
+ if(this.top + this.elmH - this.section[pageIndex].t - this.pages[pageIndex].viewport.height - this.elmH / 2 > 0) {
846
+ this.top = this.section[pageIndex+1].t;
847
+ pageIndex++;
848
+ }else{
849
+ this.top = this.section[pageIndex+1].t - this.elmH - 9 - 2;
850
+ }
851
+ }
852
+ return pageIndex;
853
+ },
854
+ //二分查找
855
+ binarySearch(arr, val, leftIndex, rightIndex){
856
+ if(leftIndex > rightIndex){
857
+ return leftIndex - 1;
858
+ }
859
+ let midIndex = Math.floor((leftIndex + rightIndex) / 2);
860
+ let midVal = arr[midIndex].t;
861
+ if(midVal > val){
862
+ return this.binarySearch(arr, val, leftIndex, midIndex - 1);
863
+ }else if(midVal < val){
864
+ return this.binarySearch(arr, val, midIndex+1, rightIndex);
865
+ }else{
866
+ return midIndex;
867
+ }
868
+ },
869
+ updateSection(){
870
+ this.section.length = 0;
871
+ let t = 10;
872
+ for(let i = 0; i < this.pagesCount; i++){
873
+ t = t + (i > 0 ? this.pages[i].viewport.height : 0) + (i > 0 ? 9+2 : 0);
874
+ this.section.push({
875
+ t,
876
+ o: this.pages[i].div.offsetLeft + 9
877
+ });
878
+ }
879
+ },
880
+ stampResize(){
881
+ if(this.scale != null){
882
+ const section = [].concat(this.section);
883
+ this.updateSection();
884
+ const TOP = this.top;
885
+ let pageIndex = this.binarySearch(section, TOP, this.currentPage - 1, this.pagesCount - 1);
886
+ if(pageIndex < 0){
887
+ pageIndex = 0;
888
+ }
889
+ const currentScale = this.pages[0].viewport.scale;
890
+ const WIDTH = this.width;
891
+ const HEIGHT = this.height;
892
+ this.width = (WIDTH * currentScale) / this.scale;
893
+ this.height = (HEIGHT * currentScale) / this.scale;
894
+ const LEFT = this.left;
895
+ this.top = ((TOP - 10) * currentScale) / this.scale + 10;
896
+ this.left = this.pages[pageIndex].div.offsetLeft + (((LEFT - section[pageIndex].o) * currentScale) / this.scale) + 9;
897
+ this.elmW = this.width;
898
+ this.elmH = this.height;
899
+ this.elmX = this.left;
900
+ this.elmY = this.top;
901
+ this.scale = currentScale;
902
+ this._emitPlaced(pageIndex);
903
+ }
904
+ },
905
+
906
+ _emitPlaced(pageIndex){
907
+ this.$emit('placed', pageIndex, this.index, {
908
+ x : (this.left - this.section[pageIndex].o) / this.pages[pageIndex].viewport.width,
909
+ y: (this.pages[pageIndex].viewport.height - (this.top + this.elmH - this.section[pageIndex].t)) / this.pages[pageIndex].viewport.height,
910
+ w: this.elmW / this.pages[pageIndex].viewport.width,
911
+ h: this.elmH / this.pages[pageIndex].viewport.height
912
+ }, this.stampId);
913
+ },
914
+ _reviewDimensions(){
915
+ if (this.minw > this.w) this.width = this.minw;
916
+ if (this.minh > this.h) this.height = this.minh;
917
+ if (this.parent) {
918
+ const parentW = parseInt(this.parent.scrollWidth, 10);
919
+ const parentH = parseInt(this.parent.scrollHeight, 10);
920
+ this.parentW = parentW;
921
+ this.parentH = parentH;
922
+ if (this.w > this.parentW) this.width = parentW;
923
+ if (this.h > this.parentH) this.height = parentH;
924
+ if ((this.x + this.w) > this.parentW) this.width = parentW - this.x;
925
+ if ((this.y + this.h) > this.parentH) this.height = parentH - this.y;
926
+ }
927
+ this.elmW = this.width;
928
+ this.elmH = this.height;
929
+ },
930
+ reviewDimensions: function () {
931
+ this._reviewDimensions();
932
+ this.$emit('resizing', this.left, this.top, this.width, this.height)
933
+ },
934
+ elmDown: function (e) {
935
+ const target = e.target || e.srcElement;
936
+ if (this.$el.contains(target)) {
937
+ if (
938
+ (this.dragHandle && !matchesSelectorToParentElements(target, this.dragHandle, this.$el)) ||
939
+ (this.dragCancel && matchesSelectorToParentElements(target, this.dragCancel, this.$el))) {
940
+ return
941
+ }
942
+ this.reviewDimensions();
943
+ if (!this.enabled) {
944
+ this.enabled = true
945
+ this.$emit('activated')
946
+ this.$emit('update:active', true)
947
+ }
948
+ if (this.draggable) {
949
+ this.dragging = true
950
+ }
951
+ }
952
+ },
953
+ deselect: function (e) {
954
+ if (e.type.indexOf('touch') !== -1) {
955
+ this.mouseX = e.changedTouches[0].clientX
956
+ this.mouseY = e.changedTouches[0].clientY
957
+ } else {
958
+ this.mouseX = e.pageX || e.clientX + this.parent.scrollLeft
959
+ this.mouseY = e.pageY || e.clientY + this.parent.scrollTop
960
+ }
961
+ this.lastMouseX = this.mouseX
962
+ this.lastMouseY = this.mouseY
963
+ const target = e.target || e.srcElement
964
+ const regex = new RegExp('handle-([trmbl]{2})', '')
965
+ if (!this.$el.contains(target) && !regex.test(target.className)) {
966
+ if (this.enabled) {
967
+ this.enabled = false
968
+ this.$emit('deactivated')
969
+ this.$emit('update:active', false)
970
+ }
971
+ }
972
+ },
973
+ handleDown: function (handle, e) {
974
+ this.handle = handle;
975
+ if (e.cancelable) {
976
+ e.stopPropagation();
977
+ e.preventDefault();
978
+ }
979
+ this.resizing = true;
980
+ },
981
+ // fillParent: function (e) {
982
+ // if (!this.parent || !this.resizable || !this.maximize) return
983
+ // let done = false
984
+ // const animate = () => {
985
+ // if (!done) {
986
+ // window.requestAnimationFrame(animate)
987
+ // }
988
+ // if (this.axis === 'x') {
989
+ // if (
990
+ // this.width === this.parentW && this.left === this.parentX
991
+ // ) done = true
992
+ // } else if (this.axis === 'y') {
993
+ // if (
994
+ // this.height === this.parentH && this.top === this.parentY
995
+ // ) done = true
996
+ // } else if (this.axis === 'both') {
997
+ // if (
998
+ // this.width === this.parentW &&
999
+ // this.height === this.parentH &&
1000
+ // this.top === this.parentY &&
1001
+ // this.left === this.parentX
1002
+ // ) done = true
1003
+ // }
1004
+ // if (this.axis === 'x' || this.axis === 'both') {
1005
+ // if (this.width < this.parentW) {
1006
+ // this.width++
1007
+ // this.elmW++
1008
+ // }
1009
+ // if (this.left > this.parentX) {
1010
+ // this.left--
1011
+ // this.elmX--
1012
+ // }
1013
+ // }
1014
+ // if (this.axis === 'y' || this.axis === 'both') {
1015
+ // if (this.height < this.parentH) {
1016
+ // this.height++
1017
+ // this.elmH++
1018
+ // }
1019
+ // if (this.top > this.parentY) {
1020
+ // this.top--
1021
+ // this.elmY--
1022
+ // }
1023
+ // }
1024
+ // this.$emit('resizing', this.left, this.top, this.width, this.height)
1025
+ // }
1026
+ // window.requestAnimationFrame(animate)
1027
+ // },
1028
+ handleMove: function (e) {
1029
+ const isTouchMove = e.type.indexOf('touchmove') !== -1
1030
+ this.mouseX = isTouchMove
1031
+ ? e.touches[0].clientX
1032
+ : e.pageX || e.clientX + document.documentElement.scrollLeft;
1033
+ this.mouseY = isTouchMove
1034
+ ? e.touches[0].clientY
1035
+ : e.pageY || e.clientY + document.documentElement.scrollTop;
1036
+ let diffX = this.mouseX - this.lastMouseX + this.mouseOffX;
1037
+ let diffY = this.mouseY - this.lastMouseY + this.mouseOffY;
1038
+ this.mouseOffX = this.mouseOffY = 0;
1039
+ this.lastMouseX = this.mouseX;
1040
+ this.lastMouseY = this.mouseY;
1041
+ let dX = diffX;
1042
+ let dY = diffY;
1043
+ if (this.resizing) {
1044
+ if (this.handle.indexOf('t') >= 0) {
1045
+ if (this.elmH - dY < this.minh) this.mouseOffY = (dY - (diffY = this.elmH - this.minh));
1046
+ else if (this.parent && this.elmY + dY < this.parentY) this.mouseOffY = (dY - (diffY = this.parentY - this.elmY));
1047
+ this.elmY += diffY
1048
+ this.elmH -= diffY
1049
+ }
1050
+ if (this.handle.indexOf('b') >= 0) {
1051
+ if (this.elmH + dY < this.minh) this.mouseOffY = (dY - (diffY = this.minh - this.elmH));
1052
+ else if (this.parent && this.elmY + this.elmH + dY > this.parentH) this.mouseOffY = (dY - (diffY = this.parentH - this.elmY - this.elmH));
1053
+ this.elmH += diffY
1054
+ }
1055
+ if (this.handle.indexOf('l') >= 0) {
1056
+ if (this.elmW - dX < this.minw) this.mouseOffX = (dX - (diffX = this.elmW - this.minw));
1057
+ else if (this.parent && this.elmX + dX < this.parentX) this.mouseOffX = (dX - (diffX = this.parentX - this.elmX));
1058
+ this.elmX += diffX
1059
+ this.elmW -= diffX
1060
+ }
1061
+ if (this.handle.indexOf('r') >= 0) {
1062
+ if (this.elmW + dX < this.minw) this.mouseOffX = (dX - (diffX = this.minw - this.elmW))
1063
+ else if (this.parent && this.elmX + this.elmW + dX > this.parentW) this.mouseOffX = (dX - (diffX = this.parentW - this.elmX - this.elmW));
1064
+ this.elmW += diffX
1065
+ }
1066
+ this.left = (Math.round(this.elmX / this.grid[0]) * this.grid[0]);
1067
+ this.top = (Math.round(this.elmY / this.grid[1]) * this.grid[1]);
1068
+ this.width = (Math.round(this.elmW / this.grid[0]) * this.grid[0]);
1069
+ this.height = (Math.round(this.elmH / this.grid[1]) * this.grid[1]);
1070
+ this.$emit('resizing', this.left, this.top, this.width, this.height);
1071
+ } else if (this.dragging) {
1072
+ if (this.parent) {
1073
+ this._reviewDimensions();
1074
+ let [_x, _y] = [0, 10];
1075
+ if(this.pages){
1076
+ let pageIndex = this.binarySearch(this.section, this.elmY+ diffY, this.currentPage - 1, this.pagesCount - 1);
1077
+ if(pageIndex < 0){
1078
+ pageIndex = 0;
1079
+ }
1080
+ if(this.elmY+ diffY + this.elmH - this.section[pageIndex].t - this.pages[pageIndex].viewport.height > 0){
1081
+ if(this.elmY+ diffY + this.elmH - this.section[pageIndex].t - this.pages[pageIndex].viewport.height - (this.elmH * 0.9) - 11 > 0){
1082
+ pageIndex++;
1083
+ }
1084
+ }
1085
+ _x = this.pages[pageIndex].div.offsetLeft + 9;
1086
+ }
1087
+ if (this.elmX + dX < this.parentX + _x){
1088
+ this.mouseOffX = (dX - (diffX = this.parentX + _x - this.elmX))
1089
+ } else if (this.elmX + this.elmW + dX > (this.parentW - _x)){
1090
+ this.mouseOffX = (dX - (diffX = (this.parentW - _x) - this.elmX - this.elmW))
1091
+ }
1092
+ if (this.elmY + dY < this.parentY + _y){
1093
+ this.mouseOffY = (dY - (diffY = this.parentY + _y - this.elmY))
1094
+ } else if (this.elmY + this.elmH + dY > this.parentH) {
1095
+ this.mouseOffY = (dY - (diffY = this.parentH - this.elmY - this.elmH))
1096
+ }
1097
+ }
1098
+ this.elmX += diffX;
1099
+ this.elmY += diffY;
1100
+ if (this.axis === 'x' || this.axis === 'both') {
1101
+ this.left = (Math.round(this.elmX / this.grid[0]) * this.grid[0])
1102
+ }
1103
+ if (this.axis === 'y' || this.axis === 'both') {
1104
+ this.top = (Math.round(this.elmY / this.grid[1]) * this.grid[1])
1105
+ }
1106
+ this.$emit('dragging', this.left, this.top)
1107
+ }
1108
+ },
1109
+ handleUp: function (e) {
1110
+ if (e.type.indexOf('touch') !== -1) {
1111
+ this.lastMouseX = e.changedTouches[0].clientX;
1112
+ this.lastMouseY = e.changedTouches[0].clientY;
1113
+ }
1114
+ this.handle = null;
1115
+ //this.enabled = false;
1116
+ if (this.resizing) {
1117
+ this.resizing = false;
1118
+ this.$emit('resizestop', this.left, this.top, this.width, this.height)
1119
+ }
1120
+ if (this.dragging) {
1121
+ this.dragging = false;
1122
+ let pageIndex = 0;
1123
+ if(this.pages){
1124
+ pageIndex = this.adjust(this.section, this.top, this.currentPage - 1, this.pagesCount - 1);
1125
+ }
1126
+ this._emitPlaced(pageIndex);
1127
+ this.$emit('dragstop', this.left, this.top);
1128
+ }
1129
+ this.elmX = this.left;
1130
+ this.elmY = this.top;
1131
+ },
1132
+ dropItem(){
1133
+ this.$emit('dropitem', this.index);
1134
+ }
1135
+ },
1136
+ computed: {
1137
+ style: function () {
1138
+ return {
1139
+ top: this.top + 'px',
1140
+ left: this.left + 'px',
1141
+ width: this.width + 'px',
1142
+ height: this.height + 'px',
1143
+ zIndex: this.zIndex
1144
+ }
1145
+ }
1146
+ },
1147
+ watch: {
1148
+ active: function (val) {
1149
+ this.enabled = val
1150
+ },
1151
+ z: function (val) {
1152
+ if (val >= 0 || val === 'auto') {
1153
+ this.zIndex = val
1154
+ }
1155
+ },
1156
+ currentPage: function(newVal){
1157
+ this.stampAreaUpdate(newVal);
1158
+ }
1159
+ }
1160
+ });
1161
+
1162
+ ;// CONCATENATED MODULE: ./packages/draggable-resizable/draggable-resizable.vue?vue&type=script&lang=js&
1163
+ /* harmony default export */ var draggable_resizable_draggable_resizablevue_type_script_lang_js_ = (draggable_resizablevue_type_script_lang_js_);
1164
+ // EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-54.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-54.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-54.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-54.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/draggable-resizable/draggable-resizable.vue?vue&type=style&index=0&id=6cdf0a0c&prod&scoped=true&lang=css&
1165
+ var draggable_resizablevue_type_style_index_0_id_6cdf0a0c_prod_scoped_true_lang_css_ = __webpack_require__(565);
1166
+ ;// CONCATENATED MODULE: ./packages/draggable-resizable/draggable-resizable.vue?vue&type=style&index=0&id=6cdf0a0c&prod&scoped=true&lang=css&
868
1167
 
869
- /* harmony default export */ var srcvue_type_script_lang_js_ = ({
870
- name: "OfdView",
871
- props: {
872
- url: {
873
- type: String,
874
- required: true
875
- }
876
- },
877
- watch: {},
878
- data() {
879
- return {
880
- config: null
881
- };
882
- },
883
- mounted() {
884
- if (!this.config) {
885
- this.config = this.getViewerConfiguration();
886
- //vue下viewerContainer必须设置height
887
- // this.containerHeight = `${window.innerHeight - 100}px`
888
- let img = new Image();
889
- img.style.position = 'absolute';
890
- img.style.left = 0;
891
- img.style.right = 0;
892
- img.style.margin = 'auto';
893
- img.style.top = 0;
894
- img.style.bottom = 0;
895
- img.src = 'data:image/gif;base64,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';
896
- img.draggable = false;
897
- this.config.loadingContainer = img;
898
-
899
- // config.onPageChanging = pageNumber => {
900
- // // console.log(pageNumber)
901
- // }
902
- // config.parserOFDSuccess = core => {
903
- // // console.log(core)
904
- // }
905
- // config.onPageScale = scale => {
906
- // // console.log(scale)
907
- // }
908
- (0,external_commonjs_ofd_js_commonjs2_ofd_js_root_ofd_.initOFDViewer)(this.config);
909
- }
910
- (0,external_commonjs_ofd_js_commonjs2_ofd_js_root_ofd_.openOFD)(this.url);
911
- this.$emit('ofdViewReady', this.config);
912
- },
913
- methods: {
914
- getViewerConfiguration() {
915
- let errorWrapper = null;
916
- errorWrapper = {
917
- container: document.getElementById('errorWrapper'),
918
- errorMessage: document.getElementById('errorMessage'),
919
- closeButton: document.getElementById('errorClose'),
920
- errorMoreInfo: document.getElementById('errorMoreInfo'),
921
- moreInfoButton: document.getElementById('errorShowMore'),
922
- lessInfoButton: document.getElementById('errorShowLess')
923
- };
924
- return {
925
- appContainer: document.body,
926
- mainContainer: document.getElementById('viewerContainer'),
927
- viewerContainer: document.getElementById('viewer'),
928
- toolbar: {
929
- container: document.getElementById('toolbarViewer'),
930
- numPages: document.getElementById('numPages'),
931
- pageNumber: document.getElementById('pageNumber'),
932
- scaleSelect: document.getElementById('scaleSelect'),
933
- customScaleOption: document.getElementById('customScaleOption'),
934
- previous: document.getElementById('previous'),
935
- next: document.getElementById('next'),
936
- zoomIn: document.getElementById('zoomIn'),
937
- zoomOut: document.getElementById('zoomOut'),
938
- openFile: document.getElementById('openFile'),
939
- print: document.getElementById('print')
940
- },
941
- secondaryToolbar: {
942
- toolbar: document.getElementById('secondaryToolbar'),
943
- toggleButton: document.getElementById('secondaryToolbarToggle'),
944
- toolbarButtonContainer: document.getElementById('secondaryToolbarButtonContainer'),
945
- openFileButton: document.getElementById('secondaryOpenFile'),
946
- printButton: document.getElementById('secondaryPrint'),
947
- documentPropertiesButton: document.getElementById('documentProperties')
948
- },
949
- sidebar: {
950
- // Divs (and sidebar button)
951
- outerContainer: document.getElementById('outerContainer'),
952
- viewerContainer: document.getElementById('viewerContainer')
953
- },
954
- sidebarResizer: {
955
- outerContainer: document.getElementById('outerContainer')
956
- },
957
- documentProperties: {
958
- dialog: document.getElementById('documentPropertiesDialog'),
959
- closeButton: document.getElementById('documentPropertiesClose'),
960
- fields: {
961
- fileName: document.getElementById('fileNameField'),
962
- fileSize: document.getElementById('fileSizeField'),
963
- title: document.getElementById('titleField'),
964
- author: document.getElementById('authorField'),
965
- subject: document.getElementById('subjectField'),
966
- keywords: document.getElementById('keywordsField'),
967
- creationDate: document.getElementById('creationDateField'),
968
- modificationDate: document.getElementById('modificationDateField'),
969
- creator: document.getElementById('creatorField'),
970
- producer: document.getElementById('producerField'),
971
- version: document.getElementById('versionField'),
972
- pageCount: document.getElementById('pageCountField'),
973
- pageSize: document.getElementById('pageSizeField'),
974
- linearized: document.getElementById('linearizedField')
975
- }
976
- },
977
- signatureProperties: {
978
- dialog: document.getElementById('signaturePropertiesDialog'),
979
- closeButton: document.getElementById('signaturePropertiesClose'),
980
- fields: {
981
- signer: document.getElementById('signerField'),
982
- provider: document.getElementById('providerField'),
983
- hashedValue: document.getElementById('hashedValueField'),
984
- signedValue: document.getElementById('signedValueField'),
985
- signMethod: document.getElementById('signMethodField'),
986
- signVersion: document.getElementById('signVersionField'),
987
- verify: document.getElementById('verifyField'),
988
- sealID: document.getElementById('sealIDField'),
989
- sealName: document.getElementById('sealNameField'),
990
- sealType: document.getElementById('sealTypeField'),
991
- sealAuthTime: document.getElementById('sealAuthTimeField'),
992
- sealMakeTime: document.getElementById('sealMakeTimeField'),
993
- sealVersion: document.getElementById('sealVersionField')
994
- }
995
- },
996
- errorWrapper,
997
- printContainer: document.getElementById('printContainer'),
998
- openFileInputName: 'fileInput'
999
- };
1000
- }
1001
- }
1002
- });
1003
- ;// CONCATENATED MODULE: ./packages/ofdView/src/index.vue?vue&type=script&lang=js&
1004
- /* harmony default export */ var ofdView_srcvue_type_script_lang_js_ = (srcvue_type_script_lang_js_);
1005
1168
  ;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
1006
1169
  /* globals __VUE_SSR_CONTEXT__ */
1007
1170
 
@@ -1100,6 +1263,222 @@ function normalizeComponent(
1100
1263
  }
1101
1264
  }
1102
1265
 
1266
+ ;// CONCATENATED MODULE: ./packages/draggable-resizable/draggable-resizable.vue
1267
+
1268
+
1269
+
1270
+ ;
1271
+
1272
+
1273
+ /* normalize component */
1274
+
1275
+ var component = normalizeComponent(
1276
+ draggable_resizable_draggable_resizablevue_type_script_lang_js_,
1277
+ draggable_resizablevue_type_template_id_6cdf0a0c_scoped_true_render,
1278
+ draggable_resizablevue_type_template_id_6cdf0a0c_scoped_true_staticRenderFns,
1279
+ false,
1280
+ null,
1281
+ "6cdf0a0c",
1282
+ null
1283
+
1284
+ )
1285
+
1286
+ /* harmony default export */ var draggable_resizable = (component.exports);
1287
+ ;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ofdView/src/index.vue?vue&type=script&lang=js&
1288
+
1289
+
1290
+
1291
+ /* harmony default export */ var srcvue_type_script_lang_js_ = ({
1292
+ name: "OfdView",
1293
+ components:{
1294
+ VueDraggableResizable: draggable_resizable
1295
+ },
1296
+ props: {
1297
+ url: {
1298
+ type: String,
1299
+ required: true
1300
+ },
1301
+ mem: {
1302
+ type: Boolean, required: false, default: true
1303
+ },
1304
+ draggable: {
1305
+ type: Boolean, required: false, default: true
1306
+ },
1307
+ resizable: {
1308
+ type: Boolean, required: false, default: false
1309
+ },
1310
+ editable: {
1311
+ type: Boolean, required: false, default: true
1312
+ },
1313
+ stamps: {
1314
+ type: Array,
1315
+ required: false,
1316
+ default: () => []
1317
+ }
1318
+ },
1319
+
1320
+ watch: {
1321
+
1322
+ },
1323
+
1324
+
1325
+ data() {
1326
+ return {
1327
+ viewVisible: false,
1328
+ config: null,
1329
+ eventBus: null,
1330
+ sp: 1,
1331
+ }
1332
+ },
1333
+
1334
+ mounted() {
1335
+ let ofd;
1336
+ if (this.mem) {
1337
+ ofd = __webpack_require__(485)
1338
+ } else {
1339
+ ofd = __webpack_require__(700)
1340
+ }
1341
+ if (!this.config) {
1342
+ this.config = this.getViewerConfiguration()
1343
+ //vue下viewerContainer必须设置height
1344
+ // this.containerHeight = `${window.innerHeight - 100}px`
1345
+ let img = new Image();
1346
+ img.style.position = 'absolute';
1347
+ img.style.left = 0;
1348
+ img.style.right = 0;
1349
+ img.style.margin = 'auto';
1350
+ img.style.top = 0;
1351
+ img.style.bottom = 0;
1352
+ img.src = 'data:image/gif;base64,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';
1353
+ img.draggable = false;
1354
+ this.config.loadingContainer = img
1355
+
1356
+ this.config.onPageChanging = pageNumber => {
1357
+ this.sp = pageNumber
1358
+ }
1359
+ // config.parserOFDSuccess = core => {
1360
+ // // console.log(core)
1361
+ // }
1362
+ // config.onPageScale = scale => {
1363
+ // // console.log(scale)
1364
+ // }
1365
+ ofd.initOFDViewer(this.config)
1366
+ }
1367
+ ofd.openOFD(this.url)
1368
+ this.$emit('viewready', this.config)
1369
+ },
1370
+
1371
+ methods: {
1372
+ getViewerConfiguration() {
1373
+ let errorWrapper = null
1374
+ errorWrapper = {
1375
+ container: document.getElementById('errorWrapper'),
1376
+ errorMessage: document.getElementById('errorMessage'),
1377
+ closeButton: document.getElementById('errorClose'),
1378
+ errorMoreInfo: document.getElementById('errorMoreInfo'),
1379
+ moreInfoButton: document.getElementById('errorShowMore'),
1380
+ lessInfoButton: document.getElementById('errorShowLess'),
1381
+ }
1382
+
1383
+ return {
1384
+ appContainer: document.body,
1385
+ mainContainer: document.getElementById('viewerContainer'),
1386
+ viewerContainer: document.getElementById('viewer'),
1387
+ toolbar: {
1388
+ container: document.getElementById('toolbarViewer'),
1389
+ numPages: document.getElementById('numPages'),
1390
+ pageNumber: document.getElementById('pageNumber'),
1391
+ scaleSelect: document.getElementById('scaleSelect'),
1392
+ customScaleOption: document.getElementById('customScaleOption'),
1393
+ previous: document.getElementById('previous'),
1394
+ next: document.getElementById('next'),
1395
+ zoomIn: document.getElementById('zoomIn'),
1396
+ zoomOut: document.getElementById('zoomOut'),
1397
+ openFile: document.getElementById('openFile'),
1398
+ print: document.getElementById('print'),
1399
+ },
1400
+ secondaryToolbar: {
1401
+ toolbar: document.getElementById('secondaryToolbar'),
1402
+ toggleButton: document.getElementById('secondaryToolbarToggle'),
1403
+ toolbarButtonContainer: document.getElementById(
1404
+ 'secondaryToolbarButtonContainer'
1405
+ ),
1406
+ openFileButton: document.getElementById('secondaryOpenFile'),
1407
+ printButton: document.getElementById('secondaryPrint'),
1408
+ documentPropertiesButton: document.getElementById('documentProperties'),
1409
+ },
1410
+ sidebar: {
1411
+ // Divs (and sidebar button)
1412
+ outerContainer: document.getElementById('outerContainer'),
1413
+ viewerContainer: document.getElementById('viewerContainer'),
1414
+ },
1415
+ sidebarResizer: {
1416
+ outerContainer: document.getElementById('outerContainer'),
1417
+ },
1418
+ documentProperties: {
1419
+ dialog: document.getElementById('documentPropertiesDialog'),
1420
+ closeButton: document.getElementById('documentPropertiesClose'),
1421
+ fields: {
1422
+ fileName: document.getElementById('fileNameField'),
1423
+ fileSize: document.getElementById('fileSizeField'),
1424
+ title: document.getElementById('titleField'),
1425
+ author: document.getElementById('authorField'),
1426
+ subject: document.getElementById('subjectField'),
1427
+ keywords: document.getElementById('keywordsField'),
1428
+ creationDate: document.getElementById('creationDateField'),
1429
+ modificationDate: document.getElementById('modificationDateField'),
1430
+ creator: document.getElementById('creatorField'),
1431
+ producer: document.getElementById('producerField'),
1432
+ version: document.getElementById('versionField'),
1433
+ pageCount: document.getElementById('pageCountField'),
1434
+ pageSize: document.getElementById('pageSizeField'),
1435
+ linearized: document.getElementById('linearizedField'),
1436
+ },
1437
+ },
1438
+ signatureProperties: {
1439
+ dialog: document.getElementById('signaturePropertiesDialog'),
1440
+ closeButton: document.getElementById('signaturePropertiesClose'),
1441
+ fields: {
1442
+ signer: document.getElementById('signerField'),
1443
+ provider: document.getElementById('providerField'),
1444
+ hashedValue: document.getElementById('hashedValueField'),
1445
+ signedValue: document.getElementById('signedValueField'),
1446
+ signMethod: document.getElementById('signMethodField'),
1447
+ signVersion: document.getElementById('signVersionField'),
1448
+ verify: document.getElementById('verifyField'),
1449
+
1450
+ sealID: document.getElementById('sealIDField'),
1451
+ sealName: document.getElementById('sealNameField'),
1452
+ sealType: document.getElementById('sealTypeField'),
1453
+ sealAuthTime: document.getElementById('sealAuthTimeField'),
1454
+ sealMakeTime: document.getElementById('sealMakeTimeField'),
1455
+ sealVersion: document.getElementById('sealVersionField'),
1456
+ },
1457
+ },
1458
+ errorWrapper,
1459
+ printContainer: document.getElementById('printContainer'),
1460
+ openFileInputName: 'fileInput',
1461
+ }
1462
+ },
1463
+
1464
+ onStampDragOver(e) {
1465
+ e.dataTransfer.dropEffect = 'move';
1466
+ },
1467
+ removeStamp(index){
1468
+ this.$emit('removePos', index);
1469
+ },
1470
+ // eslint-disable-next-line no-unused-vars
1471
+ onStampDragStop(ctx){
1472
+
1473
+ },
1474
+ placed(pageNum, index, params, stampId){
1475
+ this.$emit('itemDropped', index, pageNum, params, stampId);
1476
+ },
1477
+ }
1478
+ });
1479
+
1480
+ ;// CONCATENATED MODULE: ./packages/ofdView/src/index.vue?vue&type=script&lang=js&
1481
+ /* harmony default export */ var ofdView_srcvue_type_script_lang_js_ = (srcvue_type_script_lang_js_);
1103
1482
  ;// CONCATENATED MODULE: ./packages/ofdView/src/index.vue
1104
1483
 
1105
1484
 
@@ -1108,50 +1487,56 @@ function normalizeComponent(
1108
1487
 
1109
1488
  /* normalize component */
1110
1489
  ;
1111
- var component = normalizeComponent(
1490
+ var src_component = normalizeComponent(
1112
1491
  ofdView_srcvue_type_script_lang_js_,
1113
1492
  render,
1114
1493
  staticRenderFns,
1115
1494
  false,
1116
1495
  null,
1117
- "6f77318f",
1496
+ "4f83f1c8",
1118
1497
  null
1119
1498
 
1120
1499
  )
1121
1500
 
1122
- /* harmony default export */ var ofdView_src = (component.exports);
1501
+ /* harmony default export */ var ofdView_src = (src_component.exports);
1123
1502
  ;// CONCATENATED MODULE: ./packages/ofdView/index.js
1503
+
1504
+
1505
+ ofdView_src.install = Vue => Vue.component(ofdView_src.name, ofdView_src);//注册组件
1506
+
1507
+ /* harmony default export */ var ofdView = (ofdView_src);
1124
1508
 
1125
- ofdView_src.install = Vue => Vue.component(ofdView_src.name, ofdView_src); //注册组件
1126
-
1127
- /* harmony default export */ var ofdView = (ofdView_src);
1128
1509
  ;// CONCATENATED MODULE: ./packages/index.js
1510
+
1511
+ // import PdvView from './pdfView'
1512
+
1513
+ const components = [
1514
+ ofdView,
1515
+ // PdvView
1516
+ ]
1517
+
1518
+ // 定义 install 方法,接收 Vue 作为参数。如果使用 use 注册插件,则所有的组件都将被注册
1519
+ const install = function (Vue) {
1520
+
1521
+ // 判断是否安装
1522
+ if (install.installed) return
1523
+ // 遍历注册全局组件
1524
+ components.map(component => Vue.component(component.name, component))
1525
+ }
1526
+
1527
+ // 判断是否是直接引入文件
1528
+ if (typeof window !== 'undefined' && window.Vue) {
1529
+ install(window.Vue)
1530
+ }
1531
+
1532
+ /* harmony default export */ var packages_0 = ({
1533
+ // 导出的对象必须具有 install,才能被 Vue.use() 方法安装
1534
+ install,
1535
+ // 以下是具体的组件列表
1536
+ OfdView: ofdView,
1537
+ // PdvView
1538
+ });
1129
1539
 
1130
- // import PdvView from './pdfView'
1131
-
1132
- const components = [ofdView
1133
- // PdvView
1134
- ];
1135
-
1136
- // 定义 install 方法,接收 Vue 作为参数。如果使用 use 注册插件,则所有的组件都将被注册
1137
- const install = function (Vue) {
1138
- // 判断是否安装
1139
- if (install.installed) return;
1140
- // 遍历注册全局组件
1141
- components.map(component => Vue.component(component.name, component));
1142
- };
1143
-
1144
- // 判断是否是直接引入文件
1145
- if (typeof window !== 'undefined' && window.Vue) {
1146
- install(window.Vue);
1147
- }
1148
- /* harmony default export */ var packages_0 = ({
1149
- // 导出的对象必须具有 install,才能被 Vue.use() 方法安装
1150
- install,
1151
- // 以下是具体的组件列表
1152
- OfdView: ofdView
1153
- // PdvView
1154
- });
1155
1540
  ;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
1156
1541
 
1157
1542