Merge pull request #12631 from calixteman/app

JS -- Implement app object
This commit is contained in:
Brendan Dahl 2020-12-01 16:50:16 -08:00 committed by GitHub
commit 956fcab967
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 1259 additions and 19 deletions

View file

@ -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) {