ofd-view 0.1.5 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (120) hide show
  1. package/README.md +1 -1
  2. package/lib/demo.html +1 -0
  3. package/{dist → lib}/img/eSignature.86aee100.svg +0 -0
  4. package/{dist → lib}/img/findbarButton-next.0740eb99.svg +0 -0
  5. package/{dist → lib}/img/findbarButton-previous.5969e41b.svg +0 -0
  6. package/{dist → lib}/img/loading-dark.9ab6800b.svg +0 -0
  7. package/{dist → lib}/img/loading.8fadb3c5.svg +0 -0
  8. package/{dist → lib}/img/secondaryToolbarButton-documentProperties.9198b9ac.svg +0 -0
  9. package/{dist → lib}/img/secondaryToolbarButton-firstPage.c1e7992b.svg +0 -0
  10. package/{dist → lib}/img/secondaryToolbarButton-handTool.8cad1a29.svg +0 -0
  11. package/{dist → lib}/img/secondaryToolbarButton-lastPage.4744324d.svg +0 -0
  12. package/{dist → lib}/img/secondaryToolbarButton-rotateCcw.1f447597.svg +0 -0
  13. package/{dist → lib}/img/secondaryToolbarButton-rotateCw.8e62176e.svg +0 -0
  14. package/{dist → lib}/img/secondaryToolbarButton-scrollHorizontal.97f00948.svg +0 -0
  15. package/{dist → lib}/img/secondaryToolbarButton-scrollPage.4f20b324.svg +0 -0
  16. package/{dist → lib}/img/secondaryToolbarButton-scrollVertical.8ba8a663.svg +0 -0
  17. package/{dist → lib}/img/secondaryToolbarButton-scrollWrapped.dd4f56d3.svg +0 -0
  18. package/{dist → lib}/img/secondaryToolbarButton-selectTool.96049ac6.svg +0 -0
  19. package/{dist → lib}/img/secondaryToolbarButton-spreadEven.54796b4a.svg +0 -0
  20. package/{dist → lib}/img/secondaryToolbarButton-spreadNone.c04a2d50.svg +0 -0
  21. package/{dist → lib}/img/secondaryToolbarButton-spreadOdd.82ac8f8d.svg +0 -0
  22. package/{dist → lib}/img/toolbarButton-bookmark.a3661eec.svg +0 -0
  23. package/{dist → lib}/img/toolbarButton-currentOutlineItem.cbb0a073.svg +0 -0
  24. package/{dist → lib}/img/toolbarButton-download.812bc80b.svg +0 -0
  25. package/{dist → lib}/img/toolbarButton-menuArrow.ad107da2.svg +0 -0
  26. package/{dist → lib}/img/toolbarButton-openFile.c29ab05c.svg +0 -0
  27. package/{dist → lib}/img/toolbarButton-pageDown.1133abb1.svg +0 -0
  28. package/{dist → lib}/img/toolbarButton-pageUp.71e1b9d8.svg +0 -0
  29. package/{dist → lib}/img/toolbarButton-presentationMode.5a6e7749.svg +0 -0
  30. package/{dist → lib}/img/toolbarButton-print.f0a8039b.svg +0 -0
  31. package/{dist → lib}/img/toolbarButton-search.043a4a1c.svg +0 -0
  32. package/{dist → lib}/img/toolbarButton-secondaryToolbarToggle.bf252e44.svg +0 -0
  33. package/{dist → lib}/img/toolbarButton-sidebarToggle.c67dc4d4.svg +0 -0
  34. package/{dist → lib}/img/toolbarButton-viewAttachments.51b7b977.svg +0 -0
  35. package/{dist → lib}/img/toolbarButton-viewLayers.f0446ab4.svg +0 -0
  36. package/{dist → lib}/img/toolbarButton-viewOutline.58ce699c.svg +0 -0
  37. package/{dist → lib}/img/toolbarButton-viewSignatures.45f9dd2d.svg +0 -0
  38. package/{dist → lib}/img/toolbarButton-viewThumbnail.0a28d66f.svg +0 -0
  39. package/{dist → lib}/img/toolbarButton-zoomIn.5e7a0a7f.svg +0 -0
  40. package/{dist → lib}/img/toolbarButton-zoomOut.eebe8d8e.svg +0 -0
  41. package/{dist → lib}/img/treeitem-collapsed.6510b623.svg +0 -0
  42. package/{dist → lib}/img/treeitem-expanded.bce9c704.svg +0 -0
  43. package/lib/ofd-view.common.js +2061 -0
  44. package/lib/ofd-view.common.js.map +1 -0
  45. package/lib/ofd-view.umd.js +2072 -0
  46. package/lib/ofd-view.umd.js.map +1 -0
  47. package/lib/ofd-view.umd.min.js +2 -0
  48. package/lib/ofd-view.umd.min.js.map +1 -0
  49. package/package.json +6 -10
  50. package/babel.config.js +0 -5
  51. package/dist/demo.html +0 -1
  52. package/dist/ofd-view.common.js +0 -299
  53. package/dist/ofd-view.common.js.map +0 -1
  54. package/dist/ofd-view.css +0 -19
  55. package/dist/ofd-view.umd.js +0 -317
  56. package/dist/ofd-view.umd.js.map +0 -1
  57. package/dist/ofd-view.umd.min.js +0 -2
  58. package/dist/ofd-view.umd.min.js.map +0 -1
  59. package/jsconfig.json +0 -19
  60. package/public/favicon.ico +0 -0
  61. package/public/index.html +0 -19
  62. package/public/viewer.properties +0 -251
  63. package/src/App.vue +0 -25
  64. package/src/assets/logo.png +0 -0
  65. package/src/components/OfdView.vue +0 -422
  66. package/src/components/images/annotation-check.svg +0 -11
  67. package/src/components/images/annotation-comment.svg +0 -16
  68. package/src/components/images/annotation-help.svg +0 -26
  69. package/src/components/images/annotation-insert.svg +0 -10
  70. package/src/components/images/annotation-key.svg +0 -11
  71. package/src/components/images/annotation-newparagraph.svg +0 -11
  72. package/src/components/images/annotation-noicon.svg +0 -7
  73. package/src/components/images/annotation-note.svg +0 -42
  74. package/src/components/images/annotation-paragraph.svg +0 -16
  75. package/src/components/images/eSignature.svg +0 -1
  76. package/src/components/images/findbarButton-next.svg +0 -4
  77. package/src/components/images/findbarButton-previous.svg +0 -4
  78. package/src/components/images/loading-dark.svg +0 -24
  79. package/src/components/images/loading-icon.gif +0 -0
  80. package/src/components/images/loading.svg +0 -1
  81. package/src/components/images/secondaryToolbarButton-documentProperties.svg +0 -15
  82. package/src/components/images/secondaryToolbarButton-firstPage.svg +0 -1
  83. package/src/components/images/secondaryToolbarButton-handTool.svg +0 -1
  84. package/src/components/images/secondaryToolbarButton-lastPage.svg +0 -1
  85. package/src/components/images/secondaryToolbarButton-rotateCcw.svg +0 -1
  86. package/src/components/images/secondaryToolbarButton-rotateCw.svg +0 -4
  87. package/src/components/images/secondaryToolbarButton-scrollHorizontal.svg +0 -1
  88. package/src/components/images/secondaryToolbarButton-scrollPage.svg +0 -1
  89. package/src/components/images/secondaryToolbarButton-scrollVertical.svg +0 -1
  90. package/src/components/images/secondaryToolbarButton-scrollWrapped.svg +0 -1
  91. package/src/components/images/secondaryToolbarButton-selectTool.svg +0 -4
  92. package/src/components/images/secondaryToolbarButton-spreadEven.svg +0 -1
  93. package/src/components/images/secondaryToolbarButton-spreadNone.svg +0 -1
  94. package/src/components/images/secondaryToolbarButton-spreadOdd.svg +0 -1
  95. package/src/components/images/shadow.png +0 -0
  96. package/src/components/images/toolbarButton-bookmark.svg +0 -1
  97. package/src/components/images/toolbarButton-currentOutlineItem.svg +0 -1
  98. package/src/components/images/toolbarButton-download.svg +0 -4
  99. package/src/components/images/toolbarButton-menuArrow.svg +0 -1
  100. package/src/components/images/toolbarButton-openFile.svg +0 -4
  101. package/src/components/images/toolbarButton-pageDown.svg +0 -7
  102. package/src/components/images/toolbarButton-pageUp.svg +0 -12
  103. package/src/components/images/toolbarButton-presentationMode.svg +0 -1
  104. package/src/components/images/toolbarButton-print.svg +0 -4
  105. package/src/components/images/toolbarButton-search.svg +0 -4
  106. package/src/components/images/toolbarButton-secondaryToolbarToggle.svg +0 -4
  107. package/src/components/images/toolbarButton-sidebarToggle.svg +0 -4
  108. package/src/components/images/toolbarButton-viewAttachments.svg +0 -1
  109. package/src/components/images/toolbarButton-viewLayers.svg +0 -1
  110. package/src/components/images/toolbarButton-viewOutline.svg +0 -1
  111. package/src/components/images/toolbarButton-viewSignatures.svg +0 -1
  112. package/src/components/images/toolbarButton-viewThumbnail.svg +0 -4
  113. package/src/components/images/toolbarButton-zoomIn.svg +0 -4
  114. package/src/components/images/toolbarButton-zoomOut.svg +0 -4
  115. package/src/components/images/treeitem-collapsed.svg +0 -1
  116. package/src/components/images/treeitem-expanded.svg +0 -1
  117. package/src/components/index.js +0 -17
  118. package/src/components/viewer.css +0 -3208
  119. package/src/main.js +0 -4
  120. package/vue.config.js +0 -4
package/jsconfig.json DELETED
@@ -1,19 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "es5",
4
- "module": "esnext",
5
- "baseUrl": "./",
6
- "moduleResolution": "node",
7
- "paths": {
8
- "@/*": [
9
- "src/*"
10
- ]
11
- },
12
- "lib": [
13
- "esnext",
14
- "dom",
15
- "dom.iterable",
16
- "scripthost"
17
- ]
18
- }
19
- }
Binary file
package/public/index.html DELETED
@@ -1,19 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="" dir="ltr">
3
- <head>
4
- <meta charset="utf-8">
5
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
6
- <meta name="viewport" content="width=device-width,initial-scale=1.0">
7
- <link rel="icon" href="<%= BASE_URL %>favicon.ico">
8
- <title><%= htmlWebpackPlugin.options.title %></title>
9
- <link rel="resource" type="application/l10n" href="./viewer.properties"/>
10
-
11
- </head>
12
- <body>
13
- <noscript>
14
- <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
15
- </noscript>
16
- <div id="app"></div>
17
- <!-- built files will be auto injected -->
18
- </body>
19
- </html>
@@ -1,251 +0,0 @@
1
- # Copyright 2012 Mozilla Foundation
2
- #
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
- #
7
- # http://www.apache.org/licenses/LICENSE-2.0
8
- #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
14
-
15
- # Main toolbar buttons (tooltips and alt text for images)
16
- previous.title=上一页
17
- previous_label=上一页
18
- next.title=下一页
19
- next_label=下一页
20
-
21
- # LOCALIZATION NOTE (page.title): The tooltip for the pageNumber input.
22
- page.title=页面
23
- # LOCALIZATION NOTE (of_pages): "{{pagesCount}}" will be replaced by a number
24
- # representing the total number of pages in the document.
25
- of_pages=/ {{pagesCount}}
26
- # LOCALIZATION NOTE (page_of_pages): "{{pageNumber}}" and "{{pagesCount}}"
27
- # will be replaced by a number representing the currently visible page,
28
- # respectively a number representing the total number of pages in the document.
29
- page_of_pages=({{pageNumber}} / {{pagesCount}})
30
-
31
- zoom_out.title=缩小
32
- zoom_out_label=缩小
33
- zoom_in.title=放大
34
- zoom_in_label=放大
35
- zoom.title=缩放
36
- presentation_mode.title=切换到演示模式
37
- presentation_mode_label=演示模式
38
- open_file.title=打开文件
39
- open_file_label=打开
40
- print.title=打印
41
- print_label=打印
42
- download.title=下载
43
- download_label=下载
44
- bookmark.title=当前在看的内容(复制或在新窗口中打开)
45
- bookmark_label=当前在看
46
-
47
- # Secondary toolbar and context menu
48
- tools.title=工具
49
- tools_label=工具
50
- first_page.title=转到第一页
51
- first_page_label=转到第一页
52
- last_page.title=转到最后一页
53
- last_page_label=转到最后一页
54
- page_rotate_cw.title=顺时针旋转
55
- page_rotate_cw_label=顺时针旋转
56
- page_rotate_ccw.title=逆时针旋转
57
- page_rotate_ccw_label=逆时针旋转
58
-
59
- cursor_text_select_tool.title=启用文本选择工具
60
- cursor_text_select_tool_label=文本选择工具
61
- cursor_hand_tool.title=启用手形工具
62
- cursor_hand_tool_label=手形工具
63
-
64
- scroll_page.title=使用页面滚动
65
- scroll_page_label=页面滚动
66
- scroll_vertical.title=使用垂直滚动
67
- scroll_vertical_label=垂直滚动
68
- scroll_horizontal.title=使用水平滚动
69
- scroll_horizontal_label=水平滚动
70
- scroll_wrapped.title=使用平铺滚动
71
- scroll_wrapped_label=平铺滚动
72
-
73
- spread_none.title=不加入衔接页
74
- spread_none_label=单页视图
75
- spread_odd.title=加入衔接页使奇数页作为起始页
76
- spread_odd_label=双页视图
77
- spread_even.title=加入衔接页使偶数页作为起始页
78
- spread_even_label=书籍视图
79
-
80
- # Document properties dialog box
81
- document_properties.title=文档属性…
82
- document_properties_label=文档属性…
83
- document_properties_file_name=文件名:
84
- document_properties_file_size=文件大小:
85
- # LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}"
86
- # will be replaced by the OFD file size in kilobytes, respectively in bytes.
87
- document_properties_kb={{size_kb}} KB ({{size_b}} 字节)
88
- # LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}"
89
- # will be replaced by the OFD file size in megabytes, respectively in bytes.
90
- document_properties_mb={{size_mb}} MB ({{size_b}} 字节)
91
- document_properties_title=标题:
92
- document_properties_author=作者:
93
- document_properties_subject=主题:
94
- document_properties_keywords=关键词:
95
- document_properties_creation_date=创建日期:
96
- document_properties_modification_date=修改日期:
97
- # LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}"
98
- # will be replaced by the creation/modification date, and time, of the OFD file.
99
- document_properties_date_string={{date}}, {{time}}
100
- document_properties_creator=创建者:
101
- document_properties_producer=OFD 生成器:
102
- document_properties_version=OFD 版本:
103
- document_properties_page_count=页数:
104
- document_properties_page_size=页面大小:
105
- document_properties_page_size_unit_inches=英寸
106
- document_properties_page_size_unit_millimeters=毫米
107
- document_properties_page_size_orientation_portrait=纵向
108
- document_properties_page_size_orientation_landscape=横向
109
- document_properties_page_size_name_a3=A3
110
- document_properties_page_size_name_a4=A4
111
- document_properties_page_size_name_letter=文本
112
- document_properties_page_size_name_legal=法律
113
- # LOCALIZATION NOTE (document_properties_page_size_dimension_string):
114
- # "{{width}}", "{{height}}", {{unit}}, and {{orientation}} will be replaced by
115
- # the size, respectively their unit of measurement and orientation, of the (current) page.
116
- document_properties_page_size_dimension_string={{width}} × {{height}} {{unit}}({{orientation}})
117
- # LOCALIZATION NOTE (document_properties_page_size_dimension_name_string):
118
- # "{{width}}", "{{height}}", {{unit}}, {{name}}, and {{orientation}} will be replaced by
119
- # the size, respectively their unit of measurement, name, and orientation, of the (current) page.
120
- document_properties_page_size_dimension_name_string={{width}} × {{height}} {{unit}}({{name}},{{orientation}})
121
- # LOCALIZATION NOTE (document_properties_linearized): The linearization status of
122
- # the document; usually called "Fast Web View" in English locales of Adobe software.
123
- document_properties_linearized=快速 Web 视图:
124
- document_properties_linearized_yes=是
125
- document_properties_linearized_no=否
126
- document_properties_close=关闭
127
-
128
- print_progress_message=正在准备打印文档…
129
- # LOCALIZATION NOTE (print_progress_percent): "{{progress}}" will be replaced by
130
- # a numerical per cent value.
131
- print_progress_percent={{progress}}%
132
- print_progress_close=取消
133
-
134
- # Tooltips and alt text for side panel toolbar buttons
135
- # (the _label strings are alt text for the buttons, the .title strings are
136
- # tooltips)
137
- toggle_sidebar.title=切换侧栏
138
- toggle_sidebar_notification2.title=切换侧栏(文档所含的大纲/附件/图层)
139
- toggle_sidebar_label=切换侧栏
140
- document_outline.title=显示文档大纲(双击展开/折叠所有项)
141
- document_outline_label=文档大纲
142
- attachments.title=显示附件
143
- attachments_label=附件
144
- layers.title=显示图层(双击即可将所有图层重置为默认状态)
145
- layers_label=图层
146
- thumbs.title=显示缩略图
147
- thumbs_label=缩略图
148
- current_outline_item.title=查找当前大纲项目
149
- current_outline_item_label=当前大纲项目
150
- findbar.title=在文档中查找
151
- findbar_label=查找
152
-
153
- additional_layers=其他图层
154
- # LOCALIZATION NOTE (page_landmark): "{{page}}" will be replaced by the page number.
155
- page_landmark=第 {{page}} 页
156
- # Thumbnails panel item (tooltip and alt text for images)
157
- # LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
158
- # number.
159
- thumb_page_title=第 {{page}} 页
160
- # LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
161
- # number.
162
- thumb_page_canvas=页面 {{page}} 的缩略图
163
-
164
- # Find panel button title and messages
165
- find_input.title=查找
166
- find_input.placeholder=在文档中查找…
167
- find_previous.title=查找词语上一次出现的位置
168
- find_previous_label=上一页
169
- find_next.title=查找词语后一次出现的位置
170
- find_next_label=下一页
171
- find_highlight=全部高亮显示
172
- find_match_case_label=区分大小写
173
- find_match_diacritics_label=匹配变音符号
174
- find_entire_word_label=字词匹配
175
- find_reached_top=到达文档开头,从末尾继续
176
- find_reached_bottom=到达文档末尾,从开头继续
177
- # LOCALIZATION NOTE (find_match_count): The supported plural forms are
178
- # [one|two|few|many|other], with [other] as the default value.
179
- # "{{current}}" and "{{total}}" will be replaced by a number representing the
180
- # index of the currently active find result, respectively a number representing
181
- # the total number of matches in the document.
182
- find_match_count={[ plural(total) ]}
183
- find_match_count[one]=第 {{current}} 项,共匹配 {{total}} 项
184
- find_match_count[two]=第 {{current}} 项,共匹配 {{total}} 项
185
- find_match_count[few]=第 {{current}} 项,共匹配 {{total}} 项
186
- find_match_count[many]=第 {{current}} 项,共匹配 {{total}} 项
187
- find_match_count[other]=第 {{current}} 项,共匹配 {{total}} 项
188
- # LOCALIZATION NOTE (find_match_count_limit): The supported plural forms are
189
- # [zero|one|two|few|many|other], with [other] as the default value.
190
- # "{{limit}}" will be replaced by a numerical value.
191
- find_match_count_limit={[ plural(limit) ]}
192
- find_match_count_limit[zero]=超过 {{limit}} 项匹配
193
- find_match_count_limit[one]=超过 {{limit}} 项匹配
194
- find_match_count_limit[two]=超过 {{limit}} 项匹配
195
- find_match_count_limit[few]=超过 {{limit}} 项匹配
196
- find_match_count_limit[many]=超过 {{limit}} 项匹配
197
- find_match_count_limit[other]=超过 {{limit}} 项匹配
198
- find_not_found=找不到指定词语
199
-
200
- # Error panel labels
201
- error_more_info=更多信息
202
- error_less_info=更少信息
203
- error_close=关闭
204
- # LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
205
- # replaced by the OFD.JS version and build ID.
206
- error_version_info=OFD.js v{{version}} (build: {{build}})
207
- # LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
208
- # english string describing the error.
209
- error_message=信息:{{message}}
210
- # LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
211
- # trace.
212
- error_stack=堆栈:{{stack}}
213
- # LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
214
- error_file=文件:{{file}}
215
- # LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
216
- error_line=行号:{{line}}
217
- rendering_error=渲染页面时发生错误。
218
-
219
- # Predefined zoom values
220
- page_scale_width=适合页宽
221
- page_scale_fit=适合页面
222
- page_scale_auto=自动缩放
223
- page_scale_actual=实际大小
224
- # LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a
225
- # numerical scale value.
226
- page_scale_percent={{scale}}%
227
-
228
- # Loading indicator messages
229
- loading=正在载入…
230
- loading_error=载入 OFD 时发生错误。
231
- invalid_file_error=无效或损坏的 OFD 文件。
232
- missing_file_error=缺少 OFD 文件。
233
- unexpected_response_error=意外的服务器响应。
234
-
235
- # LOCALIZATION NOTE (annotation_date_string): "{{date}}" and "{{time}}" will be
236
- # replaced by the modification date, and time, of the annotation.
237
- annotation_date_string={{date}},{{time}}
238
-
239
- # LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
240
- # "{{type}}" will be replaced with an annotation type from a list defined in
241
- # the OFD spec (32000-1:2008 Table 169 – Annotation types).
242
- # Some common types are e.g.: "Check", "Text", "Comment", "Note"
243
- text_annotation_type.alt=[{{type}} 注释]
244
- password_label=输入密码以打开此 OFD 文件。
245
- password_invalid=密码无效。请重试。
246
- password_ok=确定
247
- password_cancel=取消
248
-
249
- printing_not_supported=警告:此浏览器尚未完整支持打印功能。
250
- printing_not_ready=警告:此 OFD 未完成载入,无法打印。
251
- web_fonts_disabled=Web 字体已被禁用:无法使用嵌入的 OFD 字体。
package/src/App.vue DELETED
@@ -1,25 +0,0 @@
1
- <template>
2
- <ofd-view/>
3
- </template>
4
-
5
- <script>
6
- import OfdView from './components/OfdView.vue'
7
-
8
- export default {
9
- name: 'App',
10
- components: {
11
- OfdView
12
- }
13
- }
14
- </script>
15
-
16
- <style>
17
- #app {
18
- font-family: Avenir, Helvetica, Arial, sans-serif;
19
- -webkit-font-smoothing: antialiased;
20
- -moz-osx-font-smoothing: grayscale;
21
- text-align: center;
22
- color: #2c3e50;
23
- margin-top: 60px;
24
- }
25
- </style>
Binary file