'this'-Schlüsselwort in 'UI' durch 'UI' ersetzt, da dieser Schlüsselwort statisch ist.
This commit is contained in:
parent
56df8234c7
commit
6464a591a8
@ -21,7 +21,7 @@
|
||||
styleSheets: ['/css/site.css'],
|
||||
container: container,
|
||||
document: arrayBuffer,
|
||||
annotationPresets: this.getPresets(),
|
||||
annotationPresets: UI.getPresets(),
|
||||
electronicSignatures: {
|
||||
creationModes: ['DRAW', 'TYPE', 'IMAGE'],
|
||||
},
|
||||
@ -40,13 +40,13 @@
|
||||
//return !annotation.isSignature;
|
||||
},
|
||||
customRenderers: {
|
||||
Annotation: this.annotationRenderer,
|
||||
Annotation: UI.annotationRenderer,
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
static configurePSPDFKit(instance, handler) {
|
||||
const toolbarItems = this.getToolbarItems(instance, handler)
|
||||
const toolbarItems = UI.getToolbarItems(instance, handler)
|
||||
instance.setToolbarItems(toolbarItems)
|
||||
}
|
||||
|
||||
@ -56,8 +56,8 @@
|
||||
}
|
||||
|
||||
static getToolbarItems(instance, handler) {
|
||||
const customItems = this.getCustomItems(handler)
|
||||
const defaultItems = this.getDefaultItems(instance.toolbarItems)
|
||||
const customItems = UI.getCustomItems(handler)
|
||||
const defaultItems = UI.getDefaultItems(instance.toolbarItems)
|
||||
return defaultItems.concat(customItems)
|
||||
}
|
||||
|
||||
@ -109,7 +109,7 @@
|
||||
}
|
||||
|
||||
static getDefaultItems(items) {
|
||||
return items.filter((item) => this.allowedToolbarItems.includes(item.type))
|
||||
return items.filter((item) => UI.allowedToolbarItems.includes(item.type))
|
||||
}
|
||||
|
||||
static getPresets() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user