fix: canvas origin is not at 0,0

This commit is contained in:
陈小祥 2023-03-09 11:02:30 +08:00
parent 6020386bbe
commit fd1d595649

View File

@ -906,6 +906,7 @@ export class CanvasRenderer extends Renderer {
await this.renderStack(stack); await this.renderStack(stack);
this.applyEffects([]); this.applyEffects([]);
this.ctx.translate(this.options.x, this.options.y);
return this.canvas; return this.canvas;
} }
} }