UNPKG

@charles-goode/qr-code-styling

Version:

Add a style and an image to your QR code

21 lines (20 loc) 878 B
import { CornerSquareType, DrawArgs, BasicFigureDrawArgs, RotateFigureArgs, Window } from "../../../types"; export default class QRCornerSquare { _element?: SVGElement; _svg: SVGElement; _type: CornerSquareType; _window: Window; constructor({ svg, type, window }: { svg: SVGElement; type: CornerSquareType; window: Window; }); draw(x: number, y: number, size: number, rotation: number): void; _rotateFigure({ x, y, size, rotation, draw }: RotateFigureArgs): void; _basicDot(args: BasicFigureDrawArgs): void; _basicSquare(args: BasicFigureDrawArgs): void; _basicExtraRounded(args: BasicFigureDrawArgs): void; _drawDot({ x, y, size, rotation }: DrawArgs): void; _drawSquare({ x, y, size, rotation }: DrawArgs): void; _drawExtraRounded({ x, y, size, rotation }: DrawArgs): void; }