Skip to content

hashStr

hashStr(s): number

Defined in: utils/helpers.ts:253

Deterministic FNV-1a-style hash → unsigned 32-bit int. Used to map categorical strings onto palette indices so the same category always lands on the same colour across renders.

string

number