|
@@ -22,8 +22,8 @@ import AddComboBox from '../form/add_combo_box.js'
|
|
|
import MarkupTextAnnotation from '../markup/text_annotation.js'
|
|
|
import PaintLink from './paint/link'
|
|
|
import Link from './link.js'
|
|
|
-import AddSignField from '../add_sign_field.js'
|
|
|
-import SignField from '../sign_field.js'
|
|
|
+import AddSignatureFields from '../form/add_signature_fields.js'
|
|
|
+import SignatureFields from '../form/signature_fields.js'
|
|
|
|
|
|
// 注释的画布层
|
|
|
class ComPDFAnnotationLayer {
|
|
@@ -687,7 +687,7 @@ class ComPDFAnnotationLayer {
|
|
|
eventBus: this.eventBus,
|
|
|
selectedElementName: this.selectedElementName
|
|
|
})
|
|
|
- } else if (tool === 'signField') {
|
|
|
+ } else if (['signatureFields', 'addDigitalSign', 'addElectronicSign'].includes(tool)) {
|
|
|
document.querySelector('.document').classList.add('annotation-edit')
|
|
|
if (this.annotateManager) {
|
|
|
this.annotateManager.reset()
|
|
@@ -723,7 +723,7 @@ class ComPDFAnnotationLayer {
|
|
|
this.signFieldManager.init()
|
|
|
return
|
|
|
}
|
|
|
- this.signFieldManager = new AddSignField({
|
|
|
+ this.signFieldManager = new AddSignatureFields({
|
|
|
tool,
|
|
|
color,
|
|
|
container: this.pageDiv,
|
|
@@ -978,8 +978,8 @@ class ComPDFAnnotationLayer {
|
|
|
})
|
|
|
this.annotationsArray.push(link)
|
|
|
}
|
|
|
- if (annotation.type === 'signField' && !annotation.isDelete) {
|
|
|
- const signField = new SignField({
|
|
|
+ if (annotation.type === 'signatureFields' && !annotation.isDelete) {
|
|
|
+ const signatureFields = new SignatureFields({
|
|
|
container: this.div,
|
|
|
annotation,
|
|
|
page: this.page,
|
|
@@ -988,7 +988,7 @@ class ComPDFAnnotationLayer {
|
|
|
eventBus: this.eventBus,
|
|
|
layer: this
|
|
|
})
|
|
|
- this.annotationsArray.push(signField)
|
|
|
+ this.annotationsArray.push(signatureFields)
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -1274,8 +1274,8 @@ class ComPDFAnnotationLayer {
|
|
|
show
|
|
|
})
|
|
|
this.annotationsArray.push(link)
|
|
|
- } else if (annotation.type === 'signField' && !annotation.isDelete) {
|
|
|
- const signField = new SignField({
|
|
|
+ } else if (annotation.type === 'signatureFields' && !annotation.isDelete) {
|
|
|
+ const signatureFields = new SignatureFields({
|
|
|
container: this.div,
|
|
|
annotation,
|
|
|
page: this.page,
|
|
@@ -1284,7 +1284,7 @@ class ComPDFAnnotationLayer {
|
|
|
eventBus: this.eventBus,
|
|
|
layer: this
|
|
|
})
|
|
|
- this.annotationsArray.push(signField)
|
|
|
+ this.annotationsArray.push(signatureFields)
|
|
|
}
|
|
|
}
|
|
|
|