kazuhikoarase / qrcode-generator

QR Code Generator implementation in JavaScript, Java and more.
https://kazuhikoarase.github.io/qrcode-generator/js/demo/
MIT License
2.1k stars 677 forks source link

add renderTo2dContext()"s optional position params #61

Open Yoomin233 opened 5 years ago

Yoomin233 commented 5 years ago

Added a parameter for function renderTo2dContext() to render the qrcode to designated position in canvas context instead of the left top corner

renderTo2dContext(context: CanvasRenderingContext2D, cellSize?: number, position?: {x: number, y: number}): void;