We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 548522d commit cb33fc5Copy full SHA for cb33fc5
src/canvas.ts
@@ -60,6 +60,7 @@ export function createCanvas<T extends HTMLCanvasElement | OffscreenCanvas | Can
60
if (!ctx) {
61
throw new Error("Failed to get 2d context");
62
}
63
+ ctx.resetTransform();
64
65
// 应用图像平滑选项
66
if (options.imageSmoothingEnabled !== undefined) {
0 commit comments