fix(annotation): invoke sigature background creation to fix z-index problem
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
async function createAnnotations(document) {
|
async function createAnnotations(document) {
|
||||||
const signatures = [];
|
const signatures = [];
|
||||||
|
|
||||||
for(var element of document.elements) {
|
for (let element of document.elements) {
|
||||||
const annotParams = await getAnnotationParams(element.left, element.top);
|
const annotParams = await getAnnotationParams(element.left, element.top);
|
||||||
const page = element.page - 1
|
const page = element.page - 1
|
||||||
|
|
||||||
@@ -27,13 +27,18 @@ async function createAnnotations(document) {
|
|||||||
name: id_background,
|
name: id_background,
|
||||||
annotationIds: PSPDFKit.Immutable.List([annotation_background.id]),
|
annotationIds: PSPDFKit.Immutable.List([annotation_background.id]),
|
||||||
value: "",
|
value: "",
|
||||||
readOnly: false
|
readOnly: true
|
||||||
});
|
});
|
||||||
|
|
||||||
signatures.push(annotation_background)
|
signatures.push(annotation_background)
|
||||||
signatures.push(formFieldBackground)
|
signatures.push(formFieldBackground)
|
||||||
}
|
}
|
||||||
//#endregion
|
//#endregion
|
||||||
|
}
|
||||||
|
|
||||||
|
for (let element of document.elements) {
|
||||||
|
const annotParams = await getAnnotationParams(element.left, element.top);
|
||||||
|
const page = element.page - 1
|
||||||
|
|
||||||
//#region signatures
|
//#region signatures
|
||||||
const id = PSPDFKit.generateInstantId()
|
const id = PSPDFKit.generateInstantId()
|
||||||
|
|||||||
Reference in New Issue
Block a user