mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-25 10:22:55 +08:00
fix(core): remove extra console log (#7160)
This commit is contained in:
@@ -65,17 +65,6 @@ function drawImageFit(
|
|||||||
const ratio = Math.max(hRatio, vRatio);
|
const ratio = Math.max(hRatio, vRatio);
|
||||||
const centerShift_x = (size - img.width * ratio) / 2;
|
const centerShift_x = (size - img.width * ratio) / 2;
|
||||||
const centerShift_y = (size - img.height * ratio) / 2;
|
const centerShift_y = (size - img.height * ratio) / 2;
|
||||||
console.log(ctx.canvas);
|
|
||||||
ctx.canvas.dataset['drawed'] = 'true';
|
|
||||||
console.log(
|
|
||||||
'drawImageFit',
|
|
||||||
img.width,
|
|
||||||
img.height,
|
|
||||||
size,
|
|
||||||
ratio,
|
|
||||||
centerShift_x,
|
|
||||||
centerShift_y
|
|
||||||
);
|
|
||||||
ctx.drawImage(
|
ctx.drawImage(
|
||||||
img,
|
img,
|
||||||
0,
|
0,
|
||||||
|
|||||||
Reference in New Issue
Block a user