Skip to content

Commit

Permalink
[ve] Remove thumbs draw for debug
Browse files Browse the repository at this point in the history
  • Loading branch information
fedek1324 committed Sep 16, 2024
1 parent a34340c commit 2d27d50
Showing 1 changed file with 18 additions and 13 deletions.
31 changes: 18 additions & 13 deletions draw/model/VisioDocument.js
Original file line number Diff line number Diff line change
Expand Up @@ -672,20 +672,25 @@
let documentCanvas = api.canvas;
let panelThumbnails = api.HtmlElement.querySelector("#id_panel_thumbnails");
panelThumbnails.innerHTML = "";
for (let thumbPageIndex = 0; thumbPageIndex < this.pages.page.length; thumbPageIndex++) {
// var thumbnailCanvas = document.createElement("<canvas id=\"id_thumbnails\" class=\"block_elem\" style=\"user-select: none; z-index: 2; left: 0px; top: 0px; width: 100%; height:100%; cursor: default;\"></canvas>");
let thumbnailCanvas = document.createElement("canvas");
thumbnailCanvas.style.width = "70%";
thumbnailCanvas.style.height = "30%";
let thisContext = this;
thumbnailCanvas.onclick = function () {
// Zoom = 100;
thisContext.draw(Zoom, pGraphics, thumbPageIndex);
thisContext.pageIndex = thumbPageIndex;
}
panelThumbnails.appendChild(thumbnailCanvas);

drawOnCanvas(thumbPageIndex, this, thumbnailCanvas, true);
let drawThumbnails = false;

if (drawThumbnails) {
for (let thumbPageIndex = 0; thumbPageIndex < this.pages.page.length; thumbPageIndex++) {
// var thumbnailCanvas = document.createElement("<canvas id=\"id_thumbnails\" class=\"block_elem\" style=\"user-select: none; z-index: 2; left: 0px; top: 0px; width: 100%; height:100%; cursor: default;\"></canvas>");
let thumbnailCanvas = document.createElement("canvas");
thumbnailCanvas.style.width = "70%";
thumbnailCanvas.style.height = "30%";
let thisContext = this;
thumbnailCanvas.onclick = function () {
// Zoom = 100;
thisContext.draw(Zoom, pGraphics, thumbPageIndex);
thisContext.pageIndex = thumbPageIndex;
}
panelThumbnails.appendChild(thumbnailCanvas);

drawOnCanvas(thumbPageIndex, this, thumbnailCanvas, true);
}
}

drawOnCanvas(pageIndex, this, documentCanvas, false);
Expand Down

0 comments on commit 2d27d50

Please sign in to comment.