This commit is contained in:
Jonathan Jenne 2023-11-28 15:54:44 +01:00
parent 80246b8964
commit eb6d149333

View File

@ -68,8 +68,8 @@ class App {
this.Instance = await this.UI.loadPSPDFKit(arrayBuffer, this.container)
this.UI.configurePSPDFKit(this.Instance, this.handleClick.bind(this))
this.Instance.addEventListener('annotations.load', this.handleAnnotationsLoad)
this.Instance.addEventListener('annotations.change', this.handleAnnotationsChange)
this.Instance.addEventListener('annotations.load', this.handleAnnotationsLoad.bind(this))
this.Instance.addEventListener('annotations.change', this.handleAnnotationsChange.bind(this))
this.Instance.addEventListener('annotations.create', this.handleAnnotationsCreate.bind(this))
// Load annotations into PSPDFKit