@internetarchive/bookreader 5.0.0-62 → 5.0.0-63

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 5.0.0-63
2
+ Fix: Don't limit autoFit zoom to real world size @cdrini
3
+ Dev: Update test deps @cdrini
4
+
1
5
  # 5.0.0-62
2
6
  - Fix: Make text selection work in Safari 15.4+ @cdrini
3
7
  - Fix: Rewrite/improvements to text selection UX @cdrini
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@internetarchive/bookreader",
3
- "version": "5.0.0-62",
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.3",
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": "^29.5.0",
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.3",
75
+ "sinon": "15.1.0",
76
76
  "soundmanager2": "2.97.20170602",
77
77
  "svgo": "2.8.0",
78
- "testcafe": "2.4.0",
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 = Math.min(widthScale, 1);
460
+ scale = widthScale;
462
461
  } else if (autoFit == 'height') {
463
- scale = Math.min(heightScale, 1);
462
+ scale = heightScale;
464
463
  } else if (autoFit == 'auto') {
465
- scale = Math.min(widthScale, heightScale, 1);
464
+ scale = Math.min(widthScale, heightScale);
466
465
  } else if (autoFit == 'none') {
467
466
  scale = this.scale;
468
467
  } else {