custom-qrcode-browser
Version:
[](https://github.com/CyrilDesch/custom-qrcode-browser/actions/workflows/continuous-integrations.yaml) [![L
29 lines (28 loc) • 938 B
TypeScript
import { QrCodeMatrix } from "../../encode/QrCodeMatrix";
export interface IQrShape {
qrOriginStart: [number, number];
apply(matrix: QrCodeMatrix): QrCodeMatrix;
pixelInShape(i: number, j: number, modifiedByteMatrix: QrCodeMatrix): boolean;
}
export declare class Square implements IQrShape {
qrOriginStart: [number, number];
apply(matrix: QrCodeMatrix): QrCodeMatrix;
pixelInShape(): boolean;
}
export declare class Circle implements IQrShape {
private random;
private addedPoints;
qrOriginStart: [number, number];
constructor(seed?: number);
apply(matrix: QrCodeMatrix): QrCodeMatrix;
pixelInShape(i: number, j: number): boolean;
private fillCircularPixels;
private copyOriginalMatrix;
private isInCircularArea;
private isAdjacentToEyeFrame;
private isPixelAdjacentToEyeFrame;
}
export declare const QrShape: {
Square: typeof Square;
Circle: typeof Circle;
};