We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
if you try to create dynamic QR codes within a loop, it will generate same SVG / results for all different data you pass.
for (let i = 0; i < 5; i++) { const qrCode = new QRCodeStyling({ width: 300, height: 300, type: "svg", data, image: "https://anyImage/pdfs/svg2.svg", backgroundOptions: { color: "#FBFBF5", }, imageOptions: { crossOrigin: "anonymous", imageSize: 0.4, }, }); qrCode.append(document.getElementById("canvas")); }
The text was updated successfully, but these errors were encountered:
@khvip87 from your code it seems like you are using the same data for each iteration
Sorry, something went wrong.
thank you, but this code is not the full code. data is is being updated while looping ,
try use my code above and just pass Math.Random for data
No branches or pull requests
if you try to create dynamic QR codes within a loop, it will generate same SVG / results for all different data you pass.
SAMPLE CODE:
RESULT :
The text was updated successfully, but these errors were encountered: