Open waterv opened 9 months ago
The function generateImg() uses canvasWidth / 2 - this.textWidthL - paddingX as sourceX where the canvasWidth / 2 should be canvasWidthL since canvas can be extended.
generateImg()
canvasWidth / 2 - this.textWidthL - paddingX
sourceX
canvasWidth / 2
canvasWidthL
The latest updates on your projects. Learn more about Vercel for Git ↗︎
The function
generateImg()
usescanvasWidth / 2 - this.textWidthL - paddingX
assourceX
where thecanvasWidth / 2
should becanvasWidthL
since canvas can be extended.