@internetarchive/bookreader 5.0.0-30-b → 5.0.0-30-c
Sign up to get free protection for your applications and to get access to all the features.
- package/BookReader/BookReader.js +32267 -2
- package/BookReader/BookReader.js.map +1 -1
- package/BookReader/ia-bookreader-bundle.js +14903 -1129
- package/BookReader/ia-bookreader-bundle.js.map +1 -1
- package/BookReader/jquery-1.10.1.js +108 -2
- package/BookReader/plugins/plugin.archive_analytics.js +170 -1
- package/BookReader/plugins/plugin.archive_analytics.js.map +1 -1
- package/BookReader/plugins/plugin.autoplay.js +163 -1
- package/BookReader/plugins/plugin.autoplay.js.map +1 -1
- package/BookReader/plugins/plugin.chapters.js +333 -1
- package/BookReader/plugins/plugin.chapters.js.map +1 -1
- package/BookReader/plugins/plugin.iframe.js +72 -1
- package/BookReader/plugins/plugin.iframe.js.map +1 -1
- package/BookReader/plugins/plugin.mobile_nav.js +332 -1
- package/BookReader/plugins/plugin.mobile_nav.js.map +1 -1
- package/BookReader/plugins/plugin.resume.js +241 -1
- package/BookReader/plugins/plugin.resume.js.map +1 -1
- package/BookReader/plugins/plugin.search.js +1261 -1
- package/BookReader/plugins/plugin.search.js.map +1 -1
- package/BookReader/plugins/plugin.text_selection.js +839 -1
- package/BookReader/plugins/plugin.text_selection.js.map +1 -1
- package/BookReader/plugins/plugin.tts.js +9115 -2
- package/BookReader/plugins/plugin.tts.js.map +1 -1
- package/BookReader/plugins/plugin.url.js +811 -1
- package/BookReader/plugins/plugin.url.js.map +1 -1
- package/BookReader/plugins/plugin.vendor-fullscreen.js +326 -1
- package/BookReader/plugins/plugin.vendor-fullscreen.js.map +1 -1
- package/BookReader/webcomponents-bundle.js +411 -2
- package/BookReader/webcomponents-bundle.js.map +1 -1
- package/package.json +1 -1
- package/src/BookReader/Mode1Up.js +1 -0
- package/src/BookReader/Mode1UpLit.js +5 -1
- package/webpack.config.js +1 -1
- package/BookReader/BookReader.js.LICENSE.txt +0 -117
- package/BookReader/ia-bookreader-bundle.js.LICENSE.txt +0 -39
- package/BookReader/jquery-1.10.1.js.LICENSE.txt +0 -24
- package/BookReader/plugins/plugin.tts.js.LICENSE.txt +0 -27
- package/BookReader/webcomponents-bundle.js.LICENSE.txt +0 -9
package/package.json
CHANGED
@@ -44,6 +44,7 @@ export class Mode1Up {
|
|
44
44
|
// appended the element to the DOM
|
45
45
|
setTimeout(async () => {
|
46
46
|
if (!this.everShown) {
|
47
|
+
console.log('!this.everShown', startLeaf);
|
47
48
|
this.mode1UpLit.initFirstRender(startLeaf);
|
48
49
|
this.everShown = true;
|
49
50
|
await this.mode1UpLit.requestUpdate();
|
@@ -170,6 +170,7 @@ export class Mode1UpLit extends LitElement {
|
|
170
170
|
|
171
171
|
/** @override */
|
172
172
|
firstUpdated(changedProps) {
|
173
|
+
console.log('firstUpdatedfirstUpdatedfirstUpdated');
|
173
174
|
super.firstUpdated(changedProps);
|
174
175
|
this.htmlDimensionsCacher.updateClientSizes();
|
175
176
|
this.smoothZoomer.attach();
|
@@ -181,6 +182,7 @@ export class Mode1UpLit extends LitElement {
|
|
181
182
|
initFirstRender(startIndex) {
|
182
183
|
const page = this.book.getPage(startIndex);
|
183
184
|
this.scale = this.computeDefaultScale(page);
|
185
|
+
console.log('1uplit init first render', page, startIndex);
|
184
186
|
}
|
185
187
|
|
186
188
|
/** @override */
|
@@ -323,6 +325,8 @@ export class Mode1UpLit extends LitElement {
|
|
323
325
|
left: vToW(scrollLeft),
|
324
326
|
width: vToW(clientWidth),
|
325
327
|
};
|
328
|
+
|
329
|
+
console.log('**** updateVisibleRegion this.visibleRegion', this.visibleRegion);
|
326
330
|
}
|
327
331
|
|
328
332
|
/**
|
@@ -368,7 +372,7 @@ export class Mode1UpLit extends LitElement {
|
|
368
372
|
computeDefaultScale(page) {
|
369
373
|
// Default to real size if it fits, otherwise default to full width
|
370
374
|
const containerWidthIn = this.visiblePixelsToWorldUnits(this.htmlDimensionsCacher.clientWidth);
|
371
|
-
return Math.min(1, containerWidthIn / (page.widthInches + 2 * this.SPACING_IN));
|
375
|
+
return Math.min(1, containerWidthIn / (page.widthInches + 2 * this.SPACING_IN)) || 1;
|
372
376
|
}
|
373
377
|
|
374
378
|
computeWorldDimensions() {
|
package/webpack.config.js
CHANGED
@@ -1,117 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
Colorbox 1.6.4
|
3
|
-
license: MIT
|
4
|
-
http://www.jacklmoore.com/colorbox
|
5
|
-
*/
|
6
|
-
|
7
|
-
/*!
|
8
|
-
* jQuery Color Animations v2.1.2
|
9
|
-
* https://github.com/jquery/jquery-color
|
10
|
-
*
|
11
|
-
* Copyright 2014 jQuery Foundation and other contributors
|
12
|
-
* Released under the MIT license.
|
13
|
-
* http://jquery.org/license
|
14
|
-
*
|
15
|
-
* Date: Wed Jan 16 08:47:09 2013 -0600
|
16
|
-
*/
|
17
|
-
|
18
|
-
/*!
|
19
|
-
* jQuery UI Effects 1.12.1
|
20
|
-
* http://jqueryui.com
|
21
|
-
*
|
22
|
-
* Copyright jQuery Foundation and other contributors
|
23
|
-
* Released under the MIT license.
|
24
|
-
* http://jquery.org/license
|
25
|
-
*/
|
26
|
-
|
27
|
-
/*!
|
28
|
-
* jQuery UI Keycode 1.12.1
|
29
|
-
* http://jqueryui.com
|
30
|
-
*
|
31
|
-
* Copyright jQuery Foundation and other contributors
|
32
|
-
* Released under the MIT license.
|
33
|
-
* http://jquery.org/license
|
34
|
-
*/
|
35
|
-
|
36
|
-
/*!
|
37
|
-
* jQuery UI Mouse 1.12.1
|
38
|
-
* http://jqueryui.com
|
39
|
-
*
|
40
|
-
* Copyright jQuery Foundation and other contributors
|
41
|
-
* Released under the MIT license.
|
42
|
-
* http://jquery.org/license
|
43
|
-
*/
|
44
|
-
|
45
|
-
/*!
|
46
|
-
* jQuery UI Slider 1.12.1
|
47
|
-
* http://jqueryui.com
|
48
|
-
*
|
49
|
-
* Copyright jQuery Foundation and other contributors
|
50
|
-
* Released under the MIT license.
|
51
|
-
* http://jquery.org/license
|
52
|
-
*/
|
53
|
-
|
54
|
-
/*!
|
55
|
-
* jQuery UI Touch Punch 0.2.3
|
56
|
-
*
|
57
|
-
* Copyright 2011–2014, Dave Furfero
|
58
|
-
* Dual licensed under the MIT or GPL Version 2 licenses.
|
59
|
-
*
|
60
|
-
* Depends:
|
61
|
-
* jquery.ui.widget.js
|
62
|
-
* jquery.ui.mouse.js
|
63
|
-
*/
|
64
|
-
|
65
|
-
/*!
|
66
|
-
* jQuery UI Widget 1.12.1
|
67
|
-
* http://jqueryui.com
|
68
|
-
*
|
69
|
-
* Copyright jQuery Foundation and other contributors
|
70
|
-
* Released under the MIT license.
|
71
|
-
* http://jquery.org/license
|
72
|
-
*/
|
73
|
-
|
74
|
-
/*! Hammer.JS - v2.0.7 - 2016-04-22
|
75
|
-
* http://hammerjs.github.io/
|
76
|
-
*
|
77
|
-
* Copyright (c) 2016 Jorik Tangelder;
|
78
|
-
* Licensed under the MIT license */
|
79
|
-
|
80
|
-
/**
|
81
|
-
* @license
|
82
|
-
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
83
|
-
* This code may only be used under the BSD style license found at
|
84
|
-
* http://polymer.github.io/LICENSE.txt
|
85
|
-
* The complete set of authors may be found at
|
86
|
-
* http://polymer.github.io/AUTHORS.txt
|
87
|
-
* The complete set of contributors may be found at
|
88
|
-
* http://polymer.github.io/CONTRIBUTORS.txt
|
89
|
-
* Code distributed by Google as part of the polymer project is also
|
90
|
-
* subject to an additional IP rights grant found at
|
91
|
-
* http://polymer.github.io/PATENTS.txt
|
92
|
-
*/
|
93
|
-
|
94
|
-
/**
|
95
|
-
* @license
|
96
|
-
* Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
|
97
|
-
* This code may only be used under the BSD style license found at
|
98
|
-
* http://polymer.github.io/LICENSE.txt
|
99
|
-
* The complete set of authors may be found at
|
100
|
-
* http://polymer.github.io/AUTHORS.txt
|
101
|
-
* The complete set of contributors may be found at
|
102
|
-
* http://polymer.github.io/CONTRIBUTORS.txt
|
103
|
-
* Code distributed by Google as part of the polymer project is also
|
104
|
-
* subject to an additional IP rights grant found at
|
105
|
-
* http://polymer.github.io/PATENTS.txt
|
106
|
-
*/
|
107
|
-
|
108
|
-
/**
|
109
|
-
@license
|
110
|
-
Copyright (c) 2019 The Polymer Project Authors. All rights reserved.
|
111
|
-
This code may only be used under the BSD style license found at
|
112
|
-
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
|
113
|
-
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
|
114
|
-
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
|
115
|
-
part of the polymer project is also subject to an additional IP rights grant
|
116
|
-
found at http://polymer.github.io/PATENTS.txt
|
117
|
-
*/
|
@@ -1,39 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @license
|
3
|
-
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
4
|
-
* This code may only be used under the BSD style license found at
|
5
|
-
* http://polymer.github.io/LICENSE.txt
|
6
|
-
* The complete set of authors may be found at
|
7
|
-
* http://polymer.github.io/AUTHORS.txt
|
8
|
-
* The complete set of contributors may be found at
|
9
|
-
* http://polymer.github.io/CONTRIBUTORS.txt
|
10
|
-
* Code distributed by Google as part of the polymer project is also
|
11
|
-
* subject to an additional IP rights grant found at
|
12
|
-
* http://polymer.github.io/PATENTS.txt
|
13
|
-
*/
|
14
|
-
|
15
|
-
/**
|
16
|
-
* @license
|
17
|
-
* Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
|
18
|
-
* This code may only be used under the BSD style license found at
|
19
|
-
* http://polymer.github.io/LICENSE.txt
|
20
|
-
* The complete set of authors may be found at
|
21
|
-
* http://polymer.github.io/AUTHORS.txt
|
22
|
-
* The complete set of contributors may be found at
|
23
|
-
* http://polymer.github.io/CONTRIBUTORS.txt
|
24
|
-
* Code distributed by Google as part of the polymer project is also
|
25
|
-
* subject to an additional IP rights grant found at
|
26
|
-
* http://polymer.github.io/PATENTS.txt
|
27
|
-
*/
|
28
|
-
|
29
|
-
/**
|
30
|
-
* @license
|
31
|
-
* Copyright 2017 Google LLC
|
32
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
33
|
-
*/
|
34
|
-
|
35
|
-
/**
|
36
|
-
* @license
|
37
|
-
* Copyright 2019 Google LLC
|
38
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
39
|
-
*/
|
@@ -1,24 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* Sizzle CSS Selector Engine v2.2.0-pre
|
3
|
-
* http://sizzlejs.com/
|
4
|
-
*
|
5
|
-
* Copyright 2008, 2014 jQuery Foundation, Inc. and other contributors
|
6
|
-
* Released under the MIT license
|
7
|
-
* http://jquery.org/license
|
8
|
-
*
|
9
|
-
* Date: 2014-12-16
|
10
|
-
*/
|
11
|
-
|
12
|
-
/*!
|
13
|
-
* jQuery JavaScript Library v1.11.3
|
14
|
-
* http://jquery.com/
|
15
|
-
*
|
16
|
-
* Includes Sizzle.js
|
17
|
-
* http://sizzlejs.com/
|
18
|
-
*
|
19
|
-
* Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors
|
20
|
-
* Released under the MIT license
|
21
|
-
* http://jquery.org/license
|
22
|
-
*
|
23
|
-
* Date: 2015-04-28T16:19Z
|
24
|
-
*/
|
@@ -1,27 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* jQuery Browser Plugin 0.1.0
|
3
|
-
* https://github.com/gabceb/jquery-browser-plugin
|
4
|
-
*
|
5
|
-
* Original jquery-browser code Copyright 2005, 2015 jQuery Foundation, Inc. and other contributors
|
6
|
-
* http://jquery.org/license
|
7
|
-
*
|
8
|
-
* Modifications Copyright 2015 Gabriel Cebrian
|
9
|
-
* https://github.com/gabceb
|
10
|
-
*
|
11
|
-
* Released under the MIT license
|
12
|
-
*
|
13
|
-
* Date: 05-07-2015
|
14
|
-
*/
|
15
|
-
|
16
|
-
/** @license
|
17
|
-
*
|
18
|
-
* SoundManager 2: JavaScript Sound for the Web
|
19
|
-
* ----------------------------------------------
|
20
|
-
* http://schillmania.com/projects/soundmanager2/
|
21
|
-
*
|
22
|
-
* Copyright (c) 2007, Scott Schiller. All rights reserved.
|
23
|
-
* Code provided under the BSD License:
|
24
|
-
* http://schillmania.com/projects/soundmanager2/license.txt
|
25
|
-
*
|
26
|
-
* V2.97a.20170601
|
27
|
-
*/
|
@@ -1,9 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
@license @nocompile
|
3
|
-
Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
|
4
|
-
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
5
|
-
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
6
|
-
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
7
|
-
Code distributed by Google as part of the polymer project is also
|
8
|
-
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
9
|
-
*/
|