mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Merge pull request #19534 from calixteman/signature_description_test
[Editor] Add a test for copy & paste a signature editor
This commit is contained in:
commit
c2e616dfc9
3 changed files with 58 additions and 2 deletions
|
@ -552,7 +552,7 @@ class InkDrawOutline extends Outline {
|
|||
});
|
||||
}
|
||||
|
||||
const outlines = new InkDrawOutline();
|
||||
const outlines = new this.prototype.constructor();
|
||||
outlines.build(
|
||||
newLines,
|
||||
pageWidth,
|
||||
|
|
|
@ -391,7 +391,7 @@ class SignatureEditor extends DrawingEditor {
|
|||
static async deserialize(data, parent, uiManager) {
|
||||
const editor = await super.deserialize(data, parent, uiManager);
|
||||
editor.#isExtracted = data.areContours;
|
||||
editor.description = data.accessibilityData?.alt || "";
|
||||
editor.#description = data.accessibilityData?.alt || "";
|
||||
editor.#signatureUUID = data.uuid;
|
||||
return editor;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue