mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-09 17:55:37 +02:00
Merge pull request #12631 from calixteman/app
JS -- Implement app object
This commit is contained in:
commit
956fcab967
12 changed files with 1259 additions and 19 deletions
|
@ -15,6 +15,7 @@
|
|||
|
||||
import {
|
||||
addLinkAttributes,
|
||||
ColorConverters,
|
||||
DOMSVGFactory,
|
||||
getFilenameFromUrl,
|
||||
LinkTarget,
|
||||
|
@ -567,6 +568,12 @@ class TextWidgetAnnotationElement extends WidgetAnnotationElement {
|
|||
event.target.setSelectionRange(selStart, selEnd);
|
||||
}
|
||||
},
|
||||
strokeColor() {
|
||||
const color = detail.strokeColor;
|
||||
event.target.style.color = ColorConverters[`${color[0]}_HTML`](
|
||||
color.slice(1)
|
||||
);
|
||||
},
|
||||
};
|
||||
for (const name of Object.keys(detail)) {
|
||||
if (name in actions) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue