We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a255c78 commit 432120dCopy full SHA for 432120d
app/utils/charts.ts
@@ -878,6 +878,12 @@ export function createSeededSvgPattern(
878
const minimumSize = options?.minimumSize ?? 8
879
const maximumSize = options?.maximumSize ?? 20
880
881
+ if (minimumSize <= 0 || maximumSize <= 0 || minimumSize > maximumSize) {
882
+ throw new RangeError(
883
+ 'minimumSize and maximumSize must be positive, and minimumSize must not exceed maximumSize',
884
+ )
885
+ }
886
+
887
const seedNumber = createSeedNumber(normalizedSeed)
888
const generateRandomNumber = createDeterministicRandomGenerator(seedNumber)
889
0 commit comments