Skip to content

Commit

Permalink
Update pdf.js
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenjoezhang committed Apr 21, 2024
1 parent 2376165 commit 135e680
Show file tree
Hide file tree
Showing 8 changed files with 852 additions and 2,110 deletions.
238 changes: 203 additions & 35 deletions build/pdf.mjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/pdf.mjs.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions build/pdf.sandbox.mjs

Large diffs are not rendered by default.

2,391 changes: 479 additions & 1,912 deletions build/pdf.worker.mjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/pdf.worker.mjs.map

Large diffs are not rendered by default.

40 changes: 19 additions & 21 deletions web/viewer.css
Original file line number Diff line number Diff line change
Expand Up @@ -211,13 +211,26 @@
pointer-events:none;
}

.annotationLayer canvas{
.annotationLayer .annotationContent{
position:absolute;
width:100%;
height:100%;
pointer-events:none;
}

.annotationLayer .annotationContent.freetext{
background:transparent;
border:none;
inset:0;
overflow:visible;
white-space:nowrap;
font:10px sans-serif;
line-height:1.35;
-webkit-user-select:none;
-moz-user-select:none;
user-select:none;
}

.annotationLayer section{
position:absolute;
text-align:initial;
Expand All @@ -226,6 +239,10 @@
transform-origin:0 0;
}

.annotationLayer section:has(div.annotationContent) canvas.annotationContent{
display:none;
}

.annotationLayer :is(.linkAnnotation, .buttonWidgetAnnotation.pushButton) > a{
position:absolute;
font-size:1em;
Expand Down Expand Up @@ -1152,7 +1169,7 @@
cursor:var(--editorFreeHighlight-editing-cursor);
}

@media (-webkit-min-device-pixel-ratio: 1.1), (min-resolution: 1.1dppx){
@media (min-resolution: 1.1dppx){
:root{
--editorFreeText-editing-cursor:url(images/cursor-editorFreeText.svg) 0 16, text;
}
Expand Down Expand Up @@ -2987,17 +3004,6 @@ body{
display:none !important;
}

#viewerContainer.pdfPresentationMode:-webkit-full-screen{
top:0;
background-color:rgb(0 0 0);
width:100%;
height:100%;
overflow:hidden;
cursor:none;
-webkit-user-select:none;
user-select:none;
}

#viewerContainer.pdfPresentationMode:fullscreen{
top:0;
background-color:rgb(0 0 0);
Expand All @@ -3010,18 +3016,10 @@ body{
user-select:none;
}

.pdfPresentationMode:-webkit-full-screen section:not([data-internal-link]){
pointer-events:none;
}

.pdfPresentationMode:fullscreen section:not([data-internal-link]){
pointer-events:none;
}

.pdfPresentationMode:-webkit-full-screen .textLayer span{
cursor:none;
}

.pdfPresentationMode:fullscreen .textLayer span{
cursor:none;
}
Expand Down
Loading

0 comments on commit 135e680

Please sign in to comment.