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