ofd-view 0.1.52 → 0.1.54

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. package/README.md +16 -3
  2. package/lib/ofd-view.common.js.map +1 -1
  3. package/package.json +2 -2
  4. package/lib/images/annotation-check.svg +0 -11
  5. package/lib/images/annotation-comment.svg +0 -16
  6. package/lib/images/annotation-help.svg +0 -26
  7. package/lib/images/annotation-insert.svg +0 -10
  8. package/lib/images/annotation-key.svg +0 -11
  9. package/lib/images/annotation-newparagraph.svg +0 -11
  10. package/lib/images/annotation-noicon.svg +0 -7
  11. package/lib/images/annotation-note.svg +0 -42
  12. package/lib/images/annotation-paragraph.svg +0 -16
  13. package/lib/images/eSignature.svg +0 -1
  14. package/lib/images/findbarButton-next.svg +0 -4
  15. package/lib/images/findbarButton-previous.svg +0 -4
  16. package/lib/images/loading-dark.svg +0 -24
  17. package/lib/images/loading-icon.gif +0 -0
  18. package/lib/images/loading.svg +0 -1
  19. package/lib/images/secondaryToolbarButton-documentProperties.svg +0 -15
  20. package/lib/images/secondaryToolbarButton-firstPage.svg +0 -1
  21. package/lib/images/secondaryToolbarButton-handTool.svg +0 -1
  22. package/lib/images/secondaryToolbarButton-lastPage.svg +0 -1
  23. package/lib/images/secondaryToolbarButton-rotateCcw.svg +0 -1
  24. package/lib/images/secondaryToolbarButton-rotateCw.svg +0 -4
  25. package/lib/images/secondaryToolbarButton-scrollHorizontal.svg +0 -1
  26. package/lib/images/secondaryToolbarButton-scrollPage.svg +0 -1
  27. package/lib/images/secondaryToolbarButton-scrollVertical.svg +0 -1
  28. package/lib/images/secondaryToolbarButton-scrollWrapped.svg +0 -1
  29. package/lib/images/secondaryToolbarButton-selectTool.svg +0 -4
  30. package/lib/images/secondaryToolbarButton-spreadEven.svg +0 -1
  31. package/lib/images/secondaryToolbarButton-spreadNone.svg +0 -1
  32. package/lib/images/secondaryToolbarButton-spreadOdd.svg +0 -1
  33. package/lib/images/shadow.png +0 -0
  34. package/lib/images/toolbarButton-bookmark.svg +0 -1
  35. package/lib/images/toolbarButton-currentOutlineItem.svg +0 -1
  36. package/lib/images/toolbarButton-download.svg +0 -4
  37. package/lib/images/toolbarButton-menuArrow.svg +0 -1
  38. package/lib/images/toolbarButton-openFile.svg +0 -4
  39. package/lib/images/toolbarButton-pageDown.svg +0 -7
  40. package/lib/images/toolbarButton-pageUp.svg +0 -12
  41. package/lib/images/toolbarButton-presentationMode.svg +0 -1
  42. package/lib/images/toolbarButton-print.svg +0 -4
  43. package/lib/images/toolbarButton-search.svg +0 -4
  44. package/lib/images/toolbarButton-secondaryToolbarToggle.svg +0 -4
  45. package/lib/images/toolbarButton-sidebarToggle.svg +0 -4
  46. package/lib/images/toolbarButton-viewAttachments.svg +0 -1
  47. package/lib/images/toolbarButton-viewLayers.svg +0 -1
  48. package/lib/images/toolbarButton-viewOutline.svg +0 -1
  49. package/lib/images/toolbarButton-viewSignatures.svg +0 -1
  50. package/lib/images/toolbarButton-viewThumbnail.svg +0 -4
  51. package/lib/images/toolbarButton-zoomIn.svg +0 -4
  52. package/lib/images/toolbarButton-zoomOut.svg +0 -4
  53. package/lib/images/treeitem-collapsed.svg +0 -1
  54. package/lib/images/treeitem-expanded.svg +0 -1
  55. package/lib/viewer.css +0 -3284
package/README.md CHANGED
@@ -73,7 +73,7 @@
73
73
 
74
74
  ```
75
75
 
76
- npm i vue-pdfjs-view -S
76
+ npm i ofd-view -S
77
77
 
78
78
  ```
79
79
 
@@ -83,11 +83,12 @@ npm i vue-pdfjs-view -S
83
83
 
84
84
  ```
85
85
 
86
- import PdfView from "vue-pdfjs-view"
86
+ import OfdView from "ofd-view";
87
+ import 'ofd-view/lib/viewer.css'
87
88
 
88
89
 
89
90
 
90
- Vue.use(PdfView);
91
+ Vue.use(OfdView);
91
92
 
92
93
  ```
93
94
 
@@ -101,3 +102,15 @@ dir="ltr"
101
102
 
102
103
  ```
103
104
 
105
+
106
+ 配置参数
107
+
108
+ | 参数 | 说明 | 类型 | 示例 | 默认值 |
109
+ | --- |---------------------------| --- | --- | --- |
110
+ | file | ofd文件 | url | | [] |
111
+ | mem | parser_x.js变量 | object | | - |
112
+ | secret | | string | | |
113
+ | digest | | string | | |
114
+ | canDownload | 是否可下载 | boolean | | true |
115
+ | canPrint | 是否可打印(打印合脊那边客户看不懂新打开页的意思) | boolean | | true |
116
+ | canOpen | 是否可打开新文档 | boolean | | false |