@internetarchive/bookreader 5.0.0-62 → 5.0.0-63
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.
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@internetarchive/bookreader",
|
|
3
|
-
"version": "5.0.0-
|
|
3
|
+
"version": "5.0.0-63",
|
|
4
4
|
"description": "The Internet Archive BookReader.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -42,12 +42,12 @@
|
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@babel/core": "7.17.9",
|
|
45
|
-
"@babel/eslint-parser": "7.21.
|
|
45
|
+
"@babel/eslint-parser": "7.21.8",
|
|
46
46
|
"@babel/plugin-proposal-class-properties": "7.16.7",
|
|
47
47
|
"@babel/plugin-proposal-decorators": "7.17.9",
|
|
48
48
|
"@babel/preset-env": "7.16.11",
|
|
49
49
|
"@open-wc/testing-helpers": "^2.2.1",
|
|
50
|
-
"@types/jest": "
|
|
50
|
+
"@types/jest": "29.5.2",
|
|
51
51
|
"@webcomponents/webcomponentsjs": "^2.6.0",
|
|
52
52
|
"babel-loader": "8.2.5",
|
|
53
53
|
"codecov": "^3.8.3",
|
|
@@ -72,10 +72,10 @@
|
|
|
72
72
|
"node-fetch": "3.2.10",
|
|
73
73
|
"regenerator-runtime": "0.13.9",
|
|
74
74
|
"sass": "1.52.1",
|
|
75
|
-
"sinon": "15.0
|
|
75
|
+
"sinon": "15.1.0",
|
|
76
76
|
"soundmanager2": "2.97.20170602",
|
|
77
77
|
"svgo": "2.8.0",
|
|
78
|
-
"testcafe": "2.
|
|
78
|
+
"testcafe": "2.6.2",
|
|
79
79
|
"testcafe-browser-provider-browserstack": "^1.13.2-alpha.1",
|
|
80
80
|
"webpack": "5.51.1",
|
|
81
81
|
"webpack-cli": "4.9.2"
|
|
@@ -445,7 +445,6 @@ export class Mode2UpLit extends LitElement {
|
|
|
445
445
|
computeScale(page, autoFit) {
|
|
446
446
|
if (!page) return 1;
|
|
447
447
|
const spread = page.spread;
|
|
448
|
-
// Default to real size if it fits, otherwise default to full height
|
|
449
448
|
const bookWidth = this.computePositions(spread.left, spread.right).bookWidth;
|
|
450
449
|
const bookHeight = this.computePageHeight(spread.left || spread.right);
|
|
451
450
|
const BOOK_PADDING_PX = 10;
|
|
@@ -458,11 +457,11 @@ export class Mode2UpLit extends LitElement {
|
|
|
458
457
|
|
|
459
458
|
let scale = realScale;
|
|
460
459
|
if (autoFit == 'width') {
|
|
461
|
-
scale =
|
|
460
|
+
scale = widthScale;
|
|
462
461
|
} else if (autoFit == 'height') {
|
|
463
|
-
scale =
|
|
462
|
+
scale = heightScale;
|
|
464
463
|
} else if (autoFit == 'auto') {
|
|
465
|
-
scale = Math.min(widthScale, heightScale
|
|
464
|
+
scale = Math.min(widthScale, heightScale);
|
|
466
465
|
} else if (autoFit == 'none') {
|
|
467
466
|
scale = this.scale;
|
|
468
467
|
} else {
|