@@ -807,10 +807,9 @@ function createDeterministicRandomGenerator(seedNumber: number): () => number {
807807 // Second mixing step:
808808 // - Combine current value with another transformed version of itself
809809 // - Multiply again to increase entropy and spread bits
810- intermediateValue ^= intermediateValue + Math . imul (
811- intermediateValue ^ ( intermediateValue >>> 7 ) ,
812- intermediateValue | 61 ,
813- )
810+ intermediateValue ^=
811+ intermediateValue +
812+ Math . imul ( intermediateValue ^ ( intermediateValue >>> 7 ) , intermediateValue | 61 )
814813
815814 // Final step:
816815 // - Final XOR with shifted value for additional scrambling
@@ -820,10 +819,7 @@ function createDeterministicRandomGenerator(seedNumber: number): () => number {
820819 }
821820}
822821
823- function pickValue < T > (
824- values : NonEmptyReadonlyArray < T > ,
825- generateRandomNumber : ( ) => number ,
826- ) : T {
822+ function pickValue < T > ( values : NonEmptyReadonlyArray < T > , generateRandomNumber : ( ) => number ) : T {
827823 const selectedIndex = Math . floor ( generateRandomNumber ( ) * values . length )
828824 const selectedValue = values [ selectedIndex ]
829825 if ( selectedValue === undefined ) {
@@ -924,15 +920,7 @@ export function createSeededSvgPattern(
924920 opacity ,
925921 ) ,
926922 createLineElement ( 0 , tileSize , tileSize , 0 , foregroundColor , strokeWidth , opacity ) ,
927- createLineElement (
928- 0 ,
929- tileSize * 2 ,
930- tileSize * 2 ,
931- 0 ,
932- foregroundColor ,
933- strokeWidth ,
934- opacity ,
935- ) ,
923+ createLineElement ( 0 , tileSize * 2 , tileSize * 2 , 0 , foregroundColor , strokeWidth , opacity ) ,
936924 ] . join ( '' )
937925 break
938926 }
@@ -973,24 +961,8 @@ export function createSeededSvgPattern(
973961 strokeWidth ,
974962 opacity ,
975963 ) ,
976- createLineElement (
977- 0 ,
978- 0 ,
979- tileSize ,
980- tileSize ,
981- foregroundColor ,
982- strokeWidth * 0.75 ,
983- opacity ,
984- ) ,
985- createLineElement (
986- tileSize ,
987- 0 ,
988- 0 ,
989- tileSize ,
990- foregroundColor ,
991- strokeWidth * 0.75 ,
992- opacity ,
993- ) ,
964+ createLineElement ( 0 , 0 , tileSize , tileSize , foregroundColor , strokeWidth * 0.75 , opacity ) ,
965+ createLineElement ( tileSize , 0 , 0 , tileSize , foregroundColor , strokeWidth * 0.75 , opacity ) ,
994966 ] . join ( '' )
995967 break
996968 }
@@ -1057,4 +1029,4 @@ export function createSeededSvgPattern(
10571029 patternType,
10581030 contentMarkup,
10591031 }
1060- }
1032+ }
0 commit comments