Hi team. Anyone can help with the implementation of the npm package ‘qrcode-with-logos’?
This is the example I found in the documentation (qrcode-with-logos - npm):
import QrCodeWithLogo from “qrcode-with-logos”;
let qrcode = new QrCodeWithLogo({
canvas: document.getElementById(“canvas”),
content: “zxpsuper (suporka) · GitHub”,
width: 380,
// download: true,
image: document.getElementById(“image”),
logo: {
src: “https://avatars1.githubusercontent.com/u/28730619?s=460&v=4”
}
});
I’m trying to implement it to overlaid a logo in a QR code but I’m not sure how to create the document elements ‘canvas’ and ‘image’ in Wix. I have tested different approaches but it did not work.
Any idea will be very appreciated!