QR_CODE_OVERLAY_MAX_RATIO

const
QR Code

Maximum safe overlay size as a ratio of the QR width — above 0.3 (30%) even error-correction level 'H' cannot reconstruct the obscured codewords and scans start to fail. The composable warns instead of clamping so the consumer keeps artistic control.

TypeScript

Définition

La définition TypeScript telle qu'elle apparaît dans le code source d'origam. Cliquez sur l'icône de copie pour copier l'extrait.

typescript

Valeur résolue

Écosystème

Utilisé par

Composables et composants qui consomment cette constante.

  • OrigamQrCode

Usage

Exemples

Extraits de code prêts à coller utilisant cette constante.

Validating overlay ratio before rendering

typescript