diff --git a/src/__test__/__snapshots__/index.test.tsx.snap b/src/__test__/__snapshots__/index.test.tsx.snap index 5dc1730..b8047db 100644 --- a/src/__test__/__snapshots__/index.test.tsx.snap +++ b/src/__test__/__snapshots__/index.test.tsx.snap @@ -337,6 +337,17 @@ exports[`Canvas rendering renders Canvas variation ({ marginSize: -10 }) correct ] `; +exports[`Canvas rendering renders Canvas variation ({ maskPattern: 1 }) correctly 1`] = ` +[ + , +] +`; + exports[`Canvas rendering renders Canvas variation ({ minVersion: 22 }) correctly 1`] = ` [ `; +exports[`SVG rendering renders SVG variation ({ maskPattern: 1 }) correctly 1`] = ` + + + + +`; + exports[`SVG rendering renders SVG variation ({ minVersion: 22 }) correctly 1`] = ` { @@ -297,10 +305,10 @@ function useQRCode({ ERROR_LEVEL_MAP[level], minVersion, undefined, - undefined, + maskPattern, boostLevel ); - }, [value, level, minVersion, boostLevel]); + }, [value, level, minVersion, maskPattern, boostLevel]); const {cells, margin, numCells, calculatedImageSettings} = React.useMemo(() => { @@ -355,6 +363,7 @@ const QRCodeCanvas = React.forwardRef( fgColor = DEFAULT_FGCOLOR, includeMargin = DEFAULT_INCLUDEMARGIN, minVersion = DEFAULT_MINVERSION, + maskPattern, boostLevel, marginSize, imageSettings, @@ -388,6 +397,7 @@ const QRCodeCanvas = React.forwardRef( value, level, minVersion, + maskPattern, boostLevel, includeMargin, marginSize, @@ -516,6 +526,7 @@ const QRCodeSVG = React.forwardRef( fgColor = DEFAULT_FGCOLOR, includeMargin = DEFAULT_INCLUDEMARGIN, minVersion = DEFAULT_MINVERSION, + maskPattern, boostLevel, title, marginSize, @@ -527,6 +538,7 @@ const QRCodeSVG = React.forwardRef( value, level, minVersion, + maskPattern, boostLevel, includeMargin, marginSize,