UNPKG

qr-code-styling

Version:

Add a style and an image to your QR code

16 lines (15 loc) 751 B
import { CornerDotType, RotateFigureArgsCanvas, BasicFigureDrawArgsCanvas, DrawArgsCanvas } from "../../../types"; export default class QRCornerDot { _context: CanvasRenderingContext2D; _type: CornerDotType; constructor({ context, type }: { context: CanvasRenderingContext2D; type: CornerDotType; }); draw(x: number, y: number, size: number, rotation: number): void; _rotateFigure({ x, y, size, context, rotation, draw }: RotateFigureArgsCanvas): void; _basicDot(args: BasicFigureDrawArgsCanvas): void; _basicSquare(args: BasicFigureDrawArgsCanvas): void; _drawDot({ x, y, size, context, rotation }: DrawArgsCanvas): void; _drawSquare({ x, y, size, context, rotation }: DrawArgsCanvas): void; }