[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:
Calixte Denizet 2023-06-22 12:16:07 +02:00
parent 2a837ba0b5
commit 37bd78c707
19 changed files with 754 additions and 39 deletions

View file

@ -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],