Skip to content

Commit

Permalink
fix: Rectangle resize
Browse files Browse the repository at this point in the history
  • Loading branch information
gpalsingh committed Oct 4, 2024
1 parent 29eb3d6 commit 801d999
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions packages/react-pdf/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@commutatus/react-pdf",
"version": "8.0.58",
"version": "8.0.59",
"description": "Display PDFs in your React app as easily as if they were images.",
"type": "module",
"sideEffects": [
Expand Down Expand Up @@ -67,7 +67,7 @@
},
"license": "MIT",
"dependencies": {
"@commutatus/pdfjs-dist": "5.0.44",
"@commutatus/pdfjs-dist": "5.0.45",
"clsx": "^2.0.0",
"dequal": "^2.0.3",
"lodash.debounce": "^4.0.8",
Expand Down
2 changes: 2 additions & 0 deletions packages/react-pdf/src/Page/AnnotationEditorLayer.css
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@
.squareEditor {
/* Enables interaction even when annotation editor layer is disabled */
pointer-events: auto;
/* Required for accurate resizing calculations */
box-sizing: content-box;
}

.textEditor {
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -220,10 +220,10 @@
"@babel/helper-validator-identifier" "^7.24.6"
to-fast-properties "^2.0.0"

"@commutatus/pdfjs-dist@5.0.44":
version "5.0.44"
resolved "https://registry.yarnpkg.com/@commutatus/pdfjs-dist/-/pdfjs-dist-5.0.44.tgz#11c6663c90bddf322e6f2041204517dd4fdb2ad6"
integrity sha512-tytO+s10H6QB5U1rEsFC8cvIxVmWgHahZ9qiHOsq9yg4yRlF7ZJXXjT/1gShPp5JkaIInjx0HsKJDBOsMtGtdw==
"@commutatus/pdfjs-dist@5.0.45":
version "5.0.45"
resolved "https://registry.yarnpkg.com/@commutatus/pdfjs-dist/-/pdfjs-dist-5.0.45.tgz#123da21c029698f33c7ed7052bec410548ba11ca"
integrity sha512-ZZBY/CeAm9zerA/KeykS4lCmt1H/dBXOBrXmmc9EfZG3M1Krxzb+wTzGti9ssrkVcJNdqJRPgT1yWco0xsDeog==
optionalDependencies:
canvas "^2.11.2"
path2d-polyfill "^2.0.1"
Expand Down

0 comments on commit 801d999

Please sign in to comment.