Skip to content

Commit 2ed370b

Browse files
committed
Bump pdfjs-dist to 2.2.228 (#487)
* Bump pdfjs-dist to 2.2.228 * Add styling for FreeTextAnnotation, CaretAnnotation, InkAnnotation
1 parent fffb77b commit 2ed370b

File tree

3 files changed

+24
-24
lines changed

3 files changed

+24
-24
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
"make-cancellable-promise": "^1.0.0",
8686
"make-event-props": "^1.1.0",
8787
"merge-class-names": "^1.1.1",
88-
"pdfjs-dist": "2.1.266",
88+
"pdfjs-dist": "2.2.228",
8989
"prop-types": "^15.6.2"
9090
},
9191
"devDependencies": {

src/Page/AnnotationLayer.css

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,6 @@
2727
height: 100%;
2828
}
2929

30-
.annotationLayer .linkAnnotation > a /* -ms-a */ {
31-
background: url("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7") 0 0 repeat;
32-
}
33-
34-
.annotationLayer .buttonWidgetAnnotation.pushButton > a /* -ms-a */ {
35-
background: url("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7") 0 0 repeat;
36-
}
37-
3830
.annotationLayer .linkAnnotation > a:hover,
3931
.annotationLayer .buttonWidgetAnnotation.pushButton > a:hover {
4032
opacity: 0.2;
@@ -152,9 +144,6 @@
152144

153145
.annotationLayer .buttonWidgetAnnotation.checkBox input,
154146
.annotationLayer .buttonWidgetAnnotation.radioButton input {
155-
-webkit-appearance: none;
156-
-moz-appearance: none;
157-
-ms-appearance: none;
158147
appearance: none;
159148
padding: 0;
160149
}
@@ -169,36 +158,47 @@
169158
z-index: 200;
170159
max-width: 20em;
171160
background-color: #FFFF99;
172-
box-shadow: 0px 2px 5px #333;
161+
box-shadow: 0px 2px 5px #888;
173162
border-radius: 2px;
174-
padding: 0.6em;
163+
padding: 6px;
175164
margin-left: 5px;
176165
cursor: pointer;
177166
font: message-box;
167+
font-size: 9px;
178168
word-wrap: break-word;
179169
}
180170

171+
.annotationLayer .popup > * {
172+
font-size: 9px;
173+
}
174+
181175
.annotationLayer .popup h1 {
182-
font-size: 1em;
183-
border-bottom: 1px solid #000000;
184-
margin: 0;
185-
padding-bottom: 0.2em;
176+
display: inline-block;
177+
}
178+
179+
.annotationLayer .popup span {
180+
display: inline-block;
181+
margin-left: 5px;
186182
}
187183

188184
.annotationLayer .popup p {
189-
margin: 0;
190-
padding-top: 0.2em;
185+
border-top: 1px solid #333;
186+
margin-top: 2px;
187+
padding-top: 2px;
191188
}
192189

193190
.annotationLayer .highlightAnnotation,
194191
.annotationLayer .underlineAnnotation,
195192
.annotationLayer .squigglyAnnotation,
196193
.annotationLayer .strikeoutAnnotation,
194+
.annotationLayer .freeTextAnnotation,
197195
.annotationLayer .lineAnnotation svg line,
198196
.annotationLayer .squareAnnotation svg rect,
199197
.annotationLayer .circleAnnotation svg ellipse,
200198
.annotationLayer .polylineAnnotation svg polyline,
201199
.annotationLayer .polygonAnnotation svg polygon,
200+
.annotationLayer .caretAnnotation,
201+
.annotationLayer .inkAnnotation svg polyline,
202202
.annotationLayer .stampAnnotation,
203203
.annotationLayer .fileAttachmentAnnotation {
204204
cursor: pointer;

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5269,10 +5269,10 @@ pbkdf2@^3.0.3:
52695269
safe-buffer "^5.0.1"
52705270
sha.js "^2.4.8"
52715271

5272-
pdfjs-dist@2.1.266:
5273-
version "2.1.266"
5274-
resolved "https://registry.yarnpkg.com/pdfjs-dist/-/pdfjs-dist-2.1.266.tgz#cded02268b389559e807f410d2a729db62160026"
5275-
integrity sha512-Jy7o1wE3NezPxozexSbq4ltuLT0Z21ew/qrEiAEeUZzHxMHGk4DUV1D7RuCXg5vJDvHmjX1YssN+we9QfRRgXQ==
5272+
pdfjs-dist@2.2.228:
5273+
version "2.2.228"
5274+
resolved "https://registry.yarnpkg.com/pdfjs-dist/-/pdfjs-dist-2.2.228.tgz#777b068a0a16c96418433303807c183058b47aaa"
5275+
integrity sha512-W5LhYPMS2UKX0ELIa4u+CFCMoox5qQNQElt0bAK2mwz1V8jZL0rvLao+0tBujce84PK6PvWG36Nwr7agCCWFGQ==
52765276
dependencies:
52775277
node-ensure "^0.0.0"
52785278
worker-loader "^2.0.0"

0 commit comments

Comments
 (0)