Skip to main content

Type Alias: QrSvgStringOptions

type QrSvgStringOptions = object;

Defined in: svgString.ts:20

Properties​

backgroundColor?​

backgroundColor?: string;

Defined in: svgString.ts:32


color?​

color?: string | SvgGradient;

Defined in: svgString.ts:31

Module color or gradient.


errorCorrectionLevel?​

errorCorrectionLevel?: ErrorCorrectionLevel;

Defined in: svgString.ts:24


finderPattern?​

finderPattern?:
| false
| {
color?: string;
inner?: FinderShape;
innerColor?: string;
outer?: FinderShape;
};

Defined in: svgString.ts:38

Solid finder patterns ("eyes"); false draws them with the module shape. Defaults like the component: solid for dots, triangle and separated.

Union Members​

false


Type Literal​
{
color?: string;
inner?: FinderShape;
innerColor?: string;
outer?: FinderShape;
}
color?​
color?: string;

Color of the outer rings; defaults to color.

inner?​
inner?: FinderShape;
innerColor?​
innerColor?: string;

Color of the centers; defaults to the outer rings' color.

outer?​
outer?: FinderShape;

gap?​

gap?: number;

Defined in: svgString.ts:26


logoCells?​

logoCells?: number;

Defined in: svgString.ts:49

Clear a centered square of this many modules for a logo drawn on top.


quietZone?​

quietZone?: number;

Defined in: svgString.ts:29

Light margin around the code, in modules. Scanners expect 4.


separated?​

separated?: boolean;

Defined in: svgString.ts:27


shape?​

shape?: QrShapeName | CustomRenderer;

Defined in: svgString.ts:25


size?​

size?: number;

Defined in: svgString.ts:23

Width and height of the SVG in pixels; omit for a scalable SVG (100%).


value​

value: string;

Defined in: svgString.ts:21