@treinetic/treinetic-epub-reader 1.3.2 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/README.md +126 -155
  2. package/dist/ExternalControls.d.ts +40 -0
  3. package/dist/Keyboard.d.ts +14 -0
  4. package/dist/ModuleConfig.d.ts +14 -0
  5. package/dist/Settings.d.ts +6 -0
  6. package/dist/TOCJsonCreator.d.ts +11 -0
  7. package/dist/ThemeManager.d.ts +20 -0
  8. package/dist/TreineticEpubReader.d.ts +38 -0
  9. package/dist/TreineticHelpers.d.ts +19 -0
  10. package/dist/model/Metadata.d.ts +13 -0
  11. package/dist/model/Package.d.ts +21 -0
  12. package/dist/model/Spine.d.ts +19 -0
  13. package/dist/model/SpineItem.d.ts +34 -0
  14. package/dist/parser/EpubParser.d.ts +6 -0
  15. package/dist/style.css +1 -0
  16. package/dist/treinetic-epub-reader.es.js +3286 -0
  17. package/dist/treinetic-epub-reader.umd.js +38 -0
  18. package/dist/view/ReaderView.d.ts +42 -0
  19. package/license.txt +25 -0
  20. package/package.json +56 -153
  21. package/dist/TreineticEpubReader.css +0 -1324
  22. package/dist/TreineticEpubReader.js +0 -58314
  23. package/dist/TreineticEpubReader.min.css +0 -1
  24. package/dist/TreineticEpubReader.min.js +0 -2
  25. package/dist/TreineticEpubReader.min.js.map +0 -1
  26. package/dist/sample/assets/epub/epub_1.epub +0 -0
  27. package/dist/sample/assets/epub/epub_2/META-INF/container.xml +0 -6
  28. package/dist/sample/assets/epub/epub_2/OEBPS/0.css +0 -101
  29. package/dist/sample/assets/epub/epub_2/OEBPS/1.css +0 -12
  30. package/dist/sample/assets/epub/epub_2/OEBPS/@public@vhost@g@gutenberg@html@files@2852@2852-h@2852-h-0.htm.html +0 -26
  31. package/dist/sample/assets/epub/epub_2/OEBPS/@public@vhost@g@gutenberg@html@files@2852@2852-h@2852-h-1.htm.html +0 -27
  32. package/dist/sample/assets/epub/epub_2/OEBPS/@public@vhost@g@gutenberg@html@files@2852@2852-h@2852-h-10.htm.html +0 -49
  33. package/dist/sample/assets/epub/epub_2/OEBPS/@public@vhost@g@gutenberg@html@files@2852@2852-h@2852-h-11.htm.html +0 -152
  34. package/dist/sample/assets/epub/epub_2/OEBPS/@public@vhost@g@gutenberg@html@files@2852@2852-h@2852-h-12.htm.html +0 -111
  35. package/dist/sample/assets/epub/epub_2/OEBPS/@public@vhost@g@gutenberg@html@files@2852@2852-h@2852-h-13.htm.html +0 -136
  36. package/dist/sample/assets/epub/epub_2/OEBPS/@public@vhost@g@gutenberg@html@files@2852@2852-h@2852-h-14.htm.html +0 -177
  37. package/dist/sample/assets/epub/epub_2/OEBPS/@public@vhost@g@gutenberg@html@files@2852@2852-h@2852-h-15.htm.html +0 -144
  38. package/dist/sample/assets/epub/epub_2/OEBPS/@public@vhost@g@gutenberg@html@files@2852@2852-h@2852-h-16.htm.html +0 -105
  39. package/dist/sample/assets/epub/epub_2/OEBPS/@public@vhost@g@gutenberg@html@files@2852@2852-h@2852-h-17.htm.html +0 -52
  40. package/dist/sample/assets/epub/epub_2/OEBPS/@public@vhost@g@gutenberg@html@files@2852@2852-h@2852-h-2.htm.html +0 -83
  41. package/dist/sample/assets/epub/epub_2/OEBPS/@public@vhost@g@gutenberg@html@files@2852@2852-h@2852-h-3.htm.html +0 -84
  42. package/dist/sample/assets/epub/epub_2/OEBPS/@public@vhost@g@gutenberg@html@files@2852@2852-h@2852-h-4.htm.html +0 -69
  43. package/dist/sample/assets/epub/epub_2/OEBPS/@public@vhost@g@gutenberg@html@files@2852@2852-h@2852-h-5.htm.html +0 -158
  44. package/dist/sample/assets/epub/epub_2/OEBPS/@public@vhost@g@gutenberg@html@files@2852@2852-h@2852-h-6.htm.html +0 -154
  45. package/dist/sample/assets/epub/epub_2/OEBPS/@public@vhost@g@gutenberg@html@files@2852@2852-h@2852-h-7.htm.html +0 -163
  46. package/dist/sample/assets/epub/epub_2/OEBPS/@public@vhost@g@gutenberg@html@files@2852@2852-h@2852-h-8.htm.html +0 -94
  47. package/dist/sample/assets/epub/epub_2/OEBPS/@public@vhost@g@gutenberg@html@files@2852@2852-h@2852-h-9.htm.html +0 -154
  48. package/dist/sample/assets/epub/epub_2/OEBPS/@public@vhost@g@gutenberg@html@files@2852@2852-h@images@cover.jpg +0 -0
  49. package/dist/sample/assets/epub/epub_2/OEBPS/content.opf +0 -91
  50. package/dist/sample/assets/epub/epub_2/OEBPS/pgepub.css +0 -30
  51. package/dist/sample/assets/epub/epub_2/OEBPS/toc.ncx +0 -125
  52. package/dist/sample/assets/epub/epub_2/OEBPS/wrap0000.html +0 -16
  53. package/dist/sample/assets/epub/epub_2/mimetype +0 -1
  54. package/dist/sample/assets/images/horizontal.png +0 -0
  55. package/dist/sample/assets/images/horizontal@2x.png +0 -0
  56. package/dist/sample/assets/images/vertical.png +0 -0
  57. package/dist/sample/assets/images/vertical@2x.png +0 -0
  58. package/dist/sample/assets/workers/deflate.js +0 -2
  59. package/dist/sample/assets/workers/inflate.js +0 -2
  60. package/dist/sample/assets/workers/z-worker.js +0 -2
  61. package/dist/sample/css/TreineticEpubReader.css +0 -1324
  62. package/dist/sample/css/style.css +0 -248
  63. package/dist/sample/index.html +0 -63
  64. package/dist/sample/js/TreineticEpubReader.js +0 -58314
  65. package/dist/sample/js/main.js +0 -218
  66. package/dist/workers/deflate.js +0 -2
  67. package/dist/workers/inflate.js +0 -2
  68. package/dist/workers/z-worker.js +0 -2
@@ -1,248 +0,0 @@
1
- .nav-design {
2
- background: rgb(9,129,130);
3
- background: linear-gradient(305deg, rgba(9,129,130,1) 0%, rgba(134,201,97,1) 47%, rgba(186,134,21,1) 100%);
4
- box-shadow: 0px 7px 10px -1px rgba(0, 0, 0, 0.22) !important;
5
- border-radius: 2;
6
- margin-bottom: 0;
7
- margin-right: -15px;
8
- margin-left: -15px;
9
- min-height: 50px;
10
- }
11
-
12
- .theme-color-block {
13
- width: 26px;
14
- height: 26px;
15
- background: red;
16
- display: inline-block;
17
- vertical-align: middle;
18
- margin-right: 8px;
19
- cursor: pointer;
20
- border-radius: 5px;
21
- }
22
-
23
- .image-buttons {
24
- height: 30px;
25
- display: inline-block;
26
- vertical-align: middle;
27
- margin-left: 6px;
28
- cursor: pointer;
29
- padding: 3px;
30
- }
31
-
32
- .image-buttons img {
33
- height: 100%;
34
- vertical-align: top;
35
- }
36
-
37
-
38
- .page-controls {
39
- width: 100%;
40
- height: 40px;
41
- background: #fbfbfb;
42
- box-shadow: -2px -1px 10px -1px rgba(0, 0, 0, 0.1);
43
- position: absolute;
44
- left: 0;
45
- bottom: -60px;
46
- transition: bottom 0.2s ease-in;
47
- }
48
-
49
- .page-controls.page-c-wrapper {
50
- margin-top: 6px;
51
- }
52
-
53
-
54
- .noPreview .prev-button {
55
- border-color: #d4d4d4;
56
- color: #e2e2e2;
57
- }
58
-
59
- .noNext .next-button {
60
- border-color: #d4d4d4;
61
- color: #e2e2e2;
62
- }
63
-
64
- .next-button, .prev-button {
65
- display: inline-block;
66
- vertical-align: middle;
67
- cursor: pointer;
68
- font-size: 27px;
69
- border-radius: 20px;
70
- border: 1px #b9b9b9 solid;
71
- color: #b9b9b9;
72
- margin-left: 4px;
73
- margin-right: 4px;
74
- -webkit-user-select: none; /* Chrome all / Safari all */
75
- -moz-user-select: none; /* Firefox all */
76
- -ms-user-select: none; /* IE 10+ */
77
- user-select: none; /* Likely future */
78
- }
79
-
80
- #reading-area {
81
- / / transition: margin-bottom 0.3 s ease-in;
82
- }
83
-
84
- .reading-area-margin {
85
- margin-bottom: 40px;
86
- }
87
-
88
- .page-controls-visible {
89
- bottom: 0px !important;
90
- }
91
-
92
- .buttonwrap {
93
- width: 240px;
94
- }
95
-
96
- .font-size-block {
97
- width: 28px;
98
- height: 28px;
99
- /*border: 1px #ff5731 solid;*/
100
- display: inline-block;
101
- vertical-align: middle;
102
- color: white;
103
- margin-right: 5px;
104
- margin-left: 5px;
105
- cursor: pointer;
106
- border-radius: 5px;
107
- text-align: center;
108
- font-size: 21px;
109
- line-height: 1;
110
- padding-top: 2px;
111
- -webkit-user-select: none; /* Chrome all / Safari all */
112
- -moz-user-select: none; /* Firefox all */
113
- -ms-user-select: none; /* IE 10+ */
114
- user-select: none; /* Likely future */
115
- }
116
-
117
- .th-selected {
118
- box-shadow: 0px 0px 14px 1px rgba(0, 0, 0, 0.33);
119
- }
120
-
121
- .sc-selected {
122
- box-shadow: 0px 0px 14px 1px rgba(0, 0, 0, 0.14);
123
- border-radius: 5px;
124
- }
125
-
126
- .font-size-block-size {
127
- width: 36px;
128
- height: 28px;
129
- display: inline-block;
130
- vertical-align: middle;
131
- color: white;
132
- margin-left: 6px;
133
- margin-right: 6px;
134
- text-align: center;
135
- font-size: 16px;
136
- line-height: 1;
137
- padding-top: 6px;
138
- }
139
-
140
- .author-theme {
141
- background-color: #fafafa;
142
- }
143
-
144
- .default-theme {
145
- background-color: #ffffff;
146
- }
147
-
148
- .night-theme {
149
-
150
- background-color: #141414;
151
- }
152
-
153
- .parchment-theme {
154
- background-color: #f7f0cf;
155
- }
156
-
157
- .ballard-theme{
158
- background-color: #576b96;
159
- }
160
-
161
- .vancouver-theme{
162
- background: rgb(87,107,150);
163
- background: linear-gradient(305deg, rgba(87,107,150,1) 0%, rgba(255,255,255,1) 100%);
164
- }
165
-
166
- .image-buttons img {
167
- height: 100%;
168
- }
169
-
170
- .reader-parent {
171
- padding-top: 80px;
172
- }
173
-
174
- body {
175
- /*background: rgb(34, 193, 195);*/
176
- /*background: radial-gradient(circle, rgba(34, 193, 195, 1) 0%, rgba(253, 187, 45, 1) 100%);*/
177
- }
178
-
179
- .reader-section {
180
- -webkit-box-shadow: 0px 13px 38px -9px rgba(0,0,0,0.64);
181
- -moz-box-shadow: 0px 13px 38px -9px rgba(0,0,0,0.64);
182
- box-shadow: 0px 13px 38px -9px rgba(0,0,0,0.64);
183
- }
184
-
185
- .pre-next-wrapper{
186
- margin-top: 5px;
187
- }
188
-
189
- .night-mode-rest{
190
- background: #252424 !important;
191
- }
192
-
193
- .drawer-box{
194
- width: 26px;
195
- height: 26px;
196
- display: inline-block;
197
- margin-right: 25px;
198
- cursor: pointer;
199
- border-radius: 5px;
200
- font-size: 43px;
201
- vertical-align: top;
202
- margin-top: -8px;
203
- color: white;
204
- }
205
-
206
- .drawer-backdrop {
207
- width: 100%;
208
- height: 100%;
209
- background: #00000040;
210
- z-index: 1000000;
211
- position: absolute;
212
- left: 0;
213
- overflow: hidden;
214
- display: none;
215
- }
216
-
217
- .drawer-section{
218
- position: absolute;
219
- left: -400px;
220
- height: 100%;
221
- background: white;
222
- width: 300px;
223
- webkit-box-shadow: 21px 0px 25px -28px rgba(0,0,0,0.64);
224
- -moz-box-shadow: 21px 0px 25px -28px rgba(0,0,0,0.64);
225
- box-shadow: 21px 0px 25px -28px rgba(0,0,0,0.64);
226
- transition: left 0.5s ease;
227
-
228
- }
229
-
230
- .drawer-section-show{
231
- left: 0px;
232
- }
233
-
234
- .toc-item{
235
- cursor: pointer;
236
- }
237
-
238
- .toc-ol{
239
- margin-top: 23px;
240
- font-size: 14px;
241
- }
242
-
243
-
244
- .spinner-holder svg path, svg rect{
245
- fill: #71be68;
246
- }
247
-
248
-
@@ -1,63 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8">
5
- <title>Sample Reader</title>
6
- <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
7
- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css">
8
- <link rel="stylesheet" href="css/TreineticEpubReader.css"/>
9
- <link rel="stylesheet" href="css/style.css"/>
10
- </head>
11
- <body>
12
- <div class="container-fluid" style="overflow: hidden">
13
- <div class="row justify-content-center reader-parent">
14
- <div class="col-md-8 reader-section">
15
- <div class="row">
16
- <div class="col-12">
17
- <nav class="navbar nav-design">
18
- <div class="buttonwrap theme-buttons-section">
19
- <div class="drawer-box material-icons">dehaze</div>
20
- </div>
21
- <div>
22
- <div class="font-size-block decrease-font-size">-</div>
23
- <div class="font-size-block-size font-size-view"></div>
24
- <div class="font-size-block increase-font-size">+</div>
25
- </div>
26
- <div class="buttonwrap text-right">
27
- <div class="image-buttons horizontal-view">
28
- <img src="assets/images/horizontal.png"/>
29
- </div>
30
- <div class="image-buttons vertical-view">
31
- <img src="assets/images/vertical.png"/>
32
- </div>
33
- </div>
34
- </nav>
35
- </div>
36
- <div class="col-12">
37
- <div class="drawer-backdrop">
38
- <div class="drawer-section"></div>
39
- </div>
40
- <div id="app-container" style="min-height: 600px !important;">
41
- <div id="reading-area" role="main">
42
- <div id="epub-reader-container">
43
- <div id="epub-reader-frame">
44
- </div>
45
- </div>
46
- </div>
47
- <div class="col-12 page-controls">
48
- <div class="page-c-wrapper text-center pre-next-wrapper">
49
- <div class="prev-button material-icons">navigate_before</div>
50
- <div class="next-button material-icons">navigate_next</div>
51
- </div>
52
- </div>
53
- </div>
54
- </div>
55
- </div>
56
- </div>
57
- </div>
58
- </div>
59
- <script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
60
- <script type="text/javascript" src="js/TreineticEpubReader.js"></script>
61
- <script type="text/javascript" src="js/main.js"></script>
62
- </body>
63
- </html>