1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

Merge pull request #14978 from calixteman/editor2

[editor] Add support for saving a newly added FreeText
This commit is contained in:
calixteman 2022-06-08 15:51:03 +02:00 committed by GitHub
commit 2fbf14ace8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 409 additions and 23 deletions

View file

@ -16,6 +16,8 @@
:root {
--focus-outline: solid 2px red;
--hover-outline: dashed 2px blue;
--freetext-line-height: 1.35;
--freetext-padding: 2px;
}
.annotationEditorLayer {
@ -31,7 +33,7 @@
position: absolute;
background: transparent;
border-radius: 3px;
padding: 5px;
padding: calc(var(--freetext-padding) * var(--zoom-factor));
resize: none;
width: auto;
height: auto;
@ -42,10 +44,11 @@
border: none;
top: 0;
left: 0;
min-height: 15px;
overflow: visible;
white-space: nowrap;
resize: none;
font: 10px sans-serif;
line-height: var(--freetext-line-height);
}
.annotationEditorLayer .freeTextEditor .overlay {