QRSvgOptions
Defined in: render/dist/matrix-svg.d.ts:11
Properties
Section titled “Properties”background?
Section titled “background?”
optionalbackground?:string
Defined in: render/dist/matrix-svg.d.ts:19
Background colour (set to transparent to omit). Defaults to #fff.
foreground?
Section titled “foreground?”
optionalforeground?:string
Defined in: render/dist/matrix-svg.d.ts:17
Dark module colour. Defaults to #000.
quietZone?
Section titled “quietZone?”
optionalquietZone?:number
Defined in: render/dist/matrix-svg.d.ts:15
Quiet-zone width in modules. EMVCo recommends 4.
rootAttributes?
Section titled “rootAttributes?”
optionalrootAttributes?:Record<string,string>
Defined in: render/dist/matrix-svg.d.ts:21
Additional attributes added verbatim to the root <svg> element.
optionalsize?:number
Defined in: render/dist/matrix-svg.d.ts:13
Output width in user units (px by default). Defaults to module count.