custom-qrcode-browser
Version:
[](https://github.com/CyrilDesch/custom-qrcode-browser/actions/workflows/continuous-integrations.yaml) [![L
29 lines (28 loc) • 1.25 kB
TypeScript
import { type IQrPixelShape } from "./QrPixelShape";
import type { IQrSVGShape } from "../SVGInterfaces";
import type { QrShapesDesigner } from "../QrShapesDesigner";
import { type IQrColor } from "../QrColor";
export declare const alignmentPatternSize = 5;
interface IQrAlignmentPatternShape extends IQrSVGShape {
}
declare abstract class BaseAlignmentPatternShape implements IQrAlignmentPatternShape {
pixelShape: IQrPixelShape;
color: IQrColor;
constructor(pixelShape: IQrPixelShape, color?: IQrColor);
abstract createSvgElement(x: number, y: number, designer: QrShapesDesigner): SVGElement;
protected addAlignmentPatternCoordinates(designer: QrShapesDesigner, x: number, y: number): void;
}
declare class Square extends BaseAlignmentPatternShape {
createSvgElement(x: number, y: number, designer: QrShapesDesigner): SVGElement;
private createPixelPath;
private createSimpleSquarePath;
}
declare class Circle extends BaseAlignmentPatternShape {
createSvgElement(x: number, y: number, designer: QrShapesDesigner): SVGElement;
private createCirclePathData;
}
export declare const QrAlignmentPatternShape: {
Square: typeof Square;
Circle: typeof Circle;
};
export type { IQrAlignmentPatternShape };