@gamechanger-finance/gc
Version:
Official GameChanger Wallet library and CLI for integrating with Cardano dapps and solve other tasks (https://gamechanger.finance/)
65 lines (64 loc) • 2.16 kB
TypeScript
export declare const QRCodeCorrectLevel: {
readonly L: 1;
readonly M: 0;
readonly Q: 3;
readonly H: 2;
};
export declare const size = 1024;
export declare const QR_FOOTER_TEXT = "Review details in wallet";
export declare const QR_FONT_FAMILY = "system-ui, -apple-system, \"Segoe UI Variable\", \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, \"Noto Sans\", \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Noto Color Emoji\", sans-serif";
export declare const QR_TITLE_FONT_SIZE_PX = 30;
export declare const QR_SUBTITLE_FONT_SIZE_PX = 24;
export declare const QR_FOOTER_FONT_SIZE_PX: number;
export declare const QR_TITLE_MAX_LEN = 57;
export declare const QR_SUBTITLE_MAX_LEN = 80;
export declare const QR_FOOTER_MAX_LEN = 70;
export declare const QR_TITLE_TOP = -30;
export declare const QR_SUBTITLE_TOP = -9;
export declare const QR_FOOTER_BOTTOM = 18;
export declare const QR_TEXT_PADDING_PX = 26;
export declare const QR_QUIET_ZONE = 65;
export declare const QR_FONT_SIZE_FACTOR = 1.1;
type StyleType = {
[name: string]: {
[name: string]: string | undefined | number | boolean;
};
};
export declare const truncateQRText: (value: any, maxLen: number) => string;
export declare const getQRFontScale: (qrDimension?: number) => number;
export declare const getQRFontSizePx: (basePx: number, qrDimension?: number) => number;
export declare const getQRFont: (fontSizePx: number, weight?: string) => string;
export declare const resolveQRStyle: (style: {
[name: string]: any;
}, gcscript?: {
title?: string;
description?: string;
}) => {
width: number;
height: number;
quietZone: number;
title: string;
subTitle: string;
titleTop: number;
subTitleTop: number;
titleFont: string;
subTitleFont: string;
footer: string;
footerBottom: number;
footerFont: string;
footerColor: string;
footerTextPadding: number;
titleColor: string;
subTitleColor: string;
correctLevel: 3;
};
declare const _default: () => {
styles: StyleType;
fonts: {
file: string;
def: {
family: string;
};
}[];
};
export default _default;