UNPKG

@solana/qr-code-styling

Version:

Add a style and an image to your QR code

17 lines (16 loc) 660 B
import { CornerDotType, RotateFigureArgs, BasicFigureDrawArgs, DrawArgs } from "../../types"; export default class QRCornerDot { _element?: SVGElement; _svg: SVGElement; _type: CornerDotType; constructor({ svg, type }: { svg: SVGElement; type: CornerDotType; }); 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; _drawDot({ x, y, size, rotation }: DrawArgs): void; _drawSquare({ x, y, size, rotation }: DrawArgs): void; }