From fd1d595649cb735aa9d3a53b3b71ad32d775a9ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=B0=8F=E7=A5=A5?= Date: Thu, 9 Mar 2023 11:02:30 +0800 Subject: [PATCH] fix: canvas origin is not at 0,0 --- src/render/canvas/canvas-renderer.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/render/canvas/canvas-renderer.ts b/src/render/canvas/canvas-renderer.ts index 6efb648..22450ee 100644 --- a/src/render/canvas/canvas-renderer.ts +++ b/src/render/canvas/canvas-renderer.ts @@ -906,6 +906,7 @@ export class CanvasRenderer extends Renderer { await this.renderStack(stack); this.applyEffects([]); + this.ctx.translate(this.options.x, this.options.y); return this.canvas; } }