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

Definition

The TypeScript definition as found in the origam source. Click the copy icon to copy the snippet.

typescript

Resolved value

Ecosystem

Used by

Composables and components that consume this constant.

  • OrigamQrCode

Usage

Examples

Ready-to-paste code snippets using this constant.

Validating overlay ratio before rendering

typescript