remove UI class to simplify

This commit is contained in:
2025-09-19 15:22:48 +02:00
parent 80c6b5bc64
commit 925187e294
4 changed files with 161 additions and 169 deletions

View File

@@ -14,8 +14,8 @@ class App {
async init() {
// Load PSPDFKit
this.pdfKit = await UI.loadPSPDFKit(this.documentBytes, this.container, this.licenseKey, this.locale)
UI.addToolbarItems(this.pdfKit, this.handleClick.bind(this))
this.pdfKit = await loadPSPDFKit(this.documentBytes, this.container, this.licenseKey, this.locale)
addToolbarItems(this.pdfKit, this.handleClick.bind(this))
this.pdfKit.addEventListener(
'annotations.load',