Responsiveness and tabs #179

Merged
enes merged 23 commits from 177-sticky-side-columns into staging 2024-09-05 07:30:55 +00:00
Showing only changes of commit c2d065a8a5 - Show all commits

View File

@ -1,12 +1,14 @@
import { PdfPage } from '../types/drawing.ts' import { PdfPage } from '../types/drawing.ts'
import * as PDFJS from 'pdfjs-dist'
import { PDFDocument } from 'pdf-lib' import { PDFDocument } from 'pdf-lib'
import { Mark } from '../types/mark.ts' import { Mark } from '../types/mark.ts'
PDFJS.GlobalWorkerOptions.workerSrc = new URL( import * as PDFJS from 'pdfjs-dist'
'pdfjs-dist/build/pdf.worker.min.mjs', import PDFJSWorker from 'pdfjs-dist/build/pdf.worker.mjs?worker'
import.meta.url if (!PDFJS.GlobalWorkerOptions.workerPort) {
).toString() // Use workerPort and allow worker to be shared between all getDocument calls
const worker = new PDFJSWorker()
PDFJS.GlobalWorkerOptions.workerPort = worker
}
/** /**
* Defined font size used when generating a PDF. Currently it is difficult to fully * Defined font size used when generating a PDF. Currently it is difficult to fully