@e-group/material-lab
Version:
EGroup Team Lab - Incubator for EGroup Team experimental React components.
36 lines (35 loc) • 942 B
TypeScript
import React, { CSSProperties } from 'react';
declare type Modules = Array<Array<boolean>>;
declare type Excavation = {
x: number;
y: number;
w: number;
h: number;
} | null;
export declare type ImageSettings = {
src: string;
height: number;
width: number;
excavate: boolean;
x?: number;
y?: number;
};
export interface QRCodeProps {
value: string;
size?: number;
level?: 'L' | 'M' | 'Q' | 'H';
bgColor?: string;
fgColor?: string;
style?: CSSProperties;
includeMargin?: boolean;
imageSettings?: ImageSettings;
}
export declare function getImageSettings(size: number, includeMargin: boolean, cells: Modules, imageSettings?: ImageSettings): null | {
x: number;
y: number;
h: number;
w: number;
excavation: Excavation;
};
declare const QRCode: React.ForwardRefExoticComponent<QRCodeProps & React.RefAttributes<HTMLCanvasElement>>;
export default QRCode;