()
| 7637 | ]; |
| 7638 | let _colorSeq = 0; |
| 7639 | function nextBoxColor() { |
| 7640 | const c = BOX_PALETTE[_colorSeq % BOX_PALETTE.length]; |
| 7641 | _colorSeq += 1; |
| 7642 | return c; |
| 7643 | } |
| 7644 | function groupColor(groupId) { |
| 7645 | let h2 = 0; |
| 7646 | for (let i = 0; i < groupId.length; i++) h2 = h2 * 31 + groupId.charCodeAt(i) >>> 0; |