ข้ามไปยังเนื้อหา

QRSvgOptions

Defined in: render/dist/matrix-svg.d.ts:11

optional background?: string

Defined in: render/dist/matrix-svg.d.ts:19

Background colour (set to transparent to omit). Defaults to #fff.


optional foreground?: string

Defined in: render/dist/matrix-svg.d.ts:17

Dark module colour. Defaults to #000.


optional quietZone?: number

Defined in: render/dist/matrix-svg.d.ts:15

Quiet-zone width in modules. EMVCo recommends 4.


optional rootAttributes?: Record<string, string>

Defined in: render/dist/matrix-svg.d.ts:21

Additional attributes added verbatim to the root <svg> element.


optional size?: number

Defined in: render/dist/matrix-svg.d.ts:13

Output width in user units (px by default). Defaults to module count.