'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'],
|
styleSheets: ['/css/site.css'],
|
||||||
container: container,
|
container: container,
|
||||||
document: arrayBuffer,
|
document: arrayBuffer,
|
||||||
annotationPresets: this.getPresets(),
|
annotationPresets: UI.getPresets(),
|
||||||
electronicSignatures: {
|
electronicSignatures: {
|
||||||
creationModes: ['DRAW', 'TYPE', 'IMAGE'],
|
creationModes: ['DRAW', 'TYPE', 'IMAGE'],
|
||||||
},
|
},
|
||||||
@ -40,13 +40,13 @@
|
|||||||
//return !annotation.isSignature;
|
//return !annotation.isSignature;
|
||||||
},
|
},
|
||||||
customRenderers: {
|
customRenderers: {
|
||||||
Annotation: this.annotationRenderer,
|
Annotation: UI.annotationRenderer,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
static configurePSPDFKit(instance, handler) {
|
static configurePSPDFKit(instance, handler) {
|
||||||
const toolbarItems = this.getToolbarItems(instance, handler)
|
const toolbarItems = UI.getToolbarItems(instance, handler)
|
||||||
instance.setToolbarItems(toolbarItems)
|
instance.setToolbarItems(toolbarItems)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -56,8 +56,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
static getToolbarItems(instance, handler) {
|
static getToolbarItems(instance, handler) {
|
||||||
const customItems = this.getCustomItems(handler)
|
const customItems = UI.getCustomItems(handler)
|
||||||
const defaultItems = this.getDefaultItems(instance.toolbarItems)
|
const defaultItems = UI.getDefaultItems(instance.toolbarItems)
|
||||||
return defaultItems.concat(customItems)
|
return defaultItems.concat(customItems)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -109,7 +109,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
static getDefaultItems(items) {
|
static getDefaultItems(items) {
|
||||||
return items.filter((item) => this.allowedToolbarItems.includes(item.type))
|
return items.filter((item) => UI.allowedToolbarItems.includes(item.type))
|
||||||
}
|
}
|
||||||
|
|
||||||
static getPresets() {
|
static getPresets() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user