@qr-platform/qr-code.js
Version:
QRCode.js is a professional JavaScript/TypeScript library for creating customized QR codes, offering a blend of simplicity and sophistication. With versatile styling options—dot shapes, colors, gradients, embedded images, borders, and text—it enables you
17 lines (16 loc) • 477 B
TypeScript
interface ImageSizeOptions {
originalHeight: number;
originalWidth: number;
maxHiddenDots: number;
maxHiddenAxisDots?: number;
dotSize: number;
margin: number;
}
interface ImageSizeResult {
height: number;
width: number;
hideYDots: number;
hideXDots: number;
}
export declare function calculateImageSize({ originalHeight, originalWidth, maxHiddenDots, maxHiddenAxisDots, dotSize, margin }: ImageSizeOptions): ImageSizeResult;
export {};