styled-qr-code icon indicating copy to clipboard operation
styled-qr-code copied to clipboard

Shape isn't an option

Open Loschcode opened this issue 7 months ago • 0 comments

One quite important option in QR Code Styling is shape which helps define whether you want the QR Code to be a circle or a square.

type Options = {
    width?: number;
    height?: number;
    margin?: number;
    data?: string;
    image?: string | Buffer | Image;
    qrOptions?: {
        typeNumber?: TypeNumber;
        mode?: Mode;
        errorCorrectionLevel?: ErrorCorrectionLevel;
    };
    imageOptions?: {
        hideBackgroundDots?: boolean;
        imageSize?: number;
        crossOrigin?: string;
        margin?: number;
    };
    dotsOptions?: {
        type?: DotType;
        color?: string;
        gradient?: Gradient;
    };
    cornersSquareOptions?: {
        type?: CornerSquareType;
        color?: string;
        gradient?: Gradient;
    };
    cornersDotOptions?: {
        type?: CornerDotType;
        color?: string;
        gradient?: Gradient;
    };
    backgroundOptions?: {
        color?: string;
        gradient?: Gradient;
    };
};

I can't see it anywhere in the types you provide, was that forgotten?

Loschcode avatar May 26 '25 00:05 Loschcode