Skip to content

Commit

Permalink
Update sv-panoid.html
Browse files Browse the repository at this point in the history
  • Loading branch information
freealise authored Apr 23, 2024
1 parent cba097e commit 7947a3b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions examples/basic/sv-panoid.html
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ <h2>GoogleStreetViewLoader.load</h2>

const canvas = document.getElementsByTagName("canvas")[0];
const context = canvas.getContext("2d", {willReadFrequently: true});
context.scale(0.5, 0.5);
const seq = document.getElementById("seq");

const stream = canvas.captureStream(25);
Expand Down Expand Up @@ -228,8 +227,7 @@ <h2>GoogleStreetViewLoader.load</h2>
const ctx = canvases[k].getContext("2d", {willReadFrequently: true});
canvases[0].width = canvases[k].width / 2;
canvases[0].height = canvases[k].height / 2;
//const imgData = ctx.getImageData(0, 0, canvases[k].width, canvases[k].height);
context.drawImage(canvases[k], 0, 0);
context.drawImage(canvases[k], 0, 0, canvases[0].width, canvases[0].height);
k++;
} else if (k == canvases.length) {
context.fillRect(0, 0, canvases[0].width, canvases[0].height);
Expand Down

0 comments on commit 7947a3b

Please sign in to comment.