Refaktorisierte 'UI'-Funktionen zu statischen Methoden

This commit is contained in:
Developer 02
2024-06-18 19:01:40 +02:00
parent 39cc257466
commit 95958f2a1d
2 changed files with 11 additions and 12 deletions

View File

@@ -14,7 +14,6 @@ class App {
this.container = container ?? `#${this.constructor.name.toLowerCase()}`;
this.envelopeKey = envelopeKey
this.UI = new UI()
this.Network = new Network()
this.Instance = null
@@ -48,8 +47,8 @@ class App {
const arrayBuffer = this.documentBytes
// Load PSPDFKit
this.Instance = await this.UI.loadPSPDFKit(arrayBuffer, this.container, this.licenseKey, this.locale)
this.UI.configurePSPDFKit(this.Instance, this.handleClick.bind(this))
this.Instance = await UI.loadPSPDFKit(arrayBuffer, this.container, this.licenseKey, this.locale)
UI.configurePSPDFKit(this.Instance, this.handleClick.bind(this))
this.Instance.addEventListener(
'annotations.load',