mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-09 09:45:42 +02:00
JS -- Implement app object
* https://www.adobe.com/content/dam/acom/en/devnet/acrobat/pdfs/AcrobatDC_js_api_reference.pdf * Add color, fullscreen objects + few constants.
This commit is contained in:
parent
c88e805870
commit
283aac4c53
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