mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 17:30:09 +02:00
[Editor] Add a basic stamp editor (bug 1790255)
For now it allows to add a stamp annotation with an image selected from the file system.
This commit is contained in:
parent
2a837ba0b5
commit
37bd78c707
19 changed files with 754 additions and 39 deletions
|
@ -81,6 +81,7 @@ class InkEditor extends AnnotationEditor {
|
|||
this.y = 0;
|
||||
}
|
||||
|
||||
/** @inheritdoc */
|
||||
static initialize(l10n) {
|
||||
this._l10nPromise = new Map(
|
||||
["editor_ink_canvas_aria_label", "editor_ink2_aria_label"].map(str => [
|
||||
|
@ -90,6 +91,7 @@ class InkEditor extends AnnotationEditor {
|
|||
);
|
||||
}
|
||||
|
||||
/** @inheritdoc */
|
||||
static updateDefaultParams(type, value) {
|
||||
switch (type) {
|
||||
case AnnotationEditorParamsType.INK_THICKNESS:
|
||||
|
@ -119,6 +121,7 @@ class InkEditor extends AnnotationEditor {
|
|||
}
|
||||
}
|
||||
|
||||
/** @inheritdoc */
|
||||
static get defaultPropertiesToUpdate() {
|
||||
return [
|
||||
[AnnotationEditorParamsType.INK_THICKNESS, InkEditor._defaultThickness],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue