mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
[edition] Add support for saving a newly added FreeText
This commit is contained in:
parent
1816b5e926
commit
7773b3f5be
12 changed files with 409 additions and 23 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue