rendering with pdf.js working
This commit is contained in:
parent
0e1e7c359b
commit
692bba7c8f
@ -11,7 +11,6 @@ export default class Document {
|
||||
}
|
||||
|
||||
public async render_page(num: number, canvas: HTMLCanvasElement) {
|
||||
console.log("render");
|
||||
let doc = await this.doc;
|
||||
let page = await doc.getPage(num);
|
||||
const outputScale = window.devicePixelRatio || 1;
|
||||
|
||||
@ -27,7 +27,6 @@ export class PageViewState {
|
||||
|
||||
|
||||
public async load(page_num: number) {
|
||||
console.log("load", page_num)
|
||||
this.render();
|
||||
|
||||
invoke<ContentModel>("get_contents", {id: this.file_id, path: "Page" + page_num})
|
||||
@ -38,7 +37,6 @@ export class PageViewState {
|
||||
}
|
||||
|
||||
public async loadImage(display: HTMLCanvasElement) {
|
||||
console.log("load", display)
|
||||
this.display_lock.acquire().then(release => {
|
||||
try {
|
||||
let page_num = this.fState.getCurrentPageNumber();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user