feat: render blips on radar

This commit is contained in:
Mathias Schopmans
2024-02-21 10:37:25 +01:00
committed by Mathias Schopmans
parent 1b7634a2ef
commit 16f29cd4d4
9 changed files with 128 additions and 13 deletions

View File

@@ -144,6 +144,8 @@ function postProcessItems(items: Item[]): {
const processedItems = items.map((item) => ({
...item,
// @todo: Maybe we should use a better random number generator to avoid overlapping of blips
random: [Math.sqrt(Math.random()), Math.random()] as [number, number],
flag: getFlag(item, latestRelease),
// only keep revision which ring or body is different
revisions: item.revisions?.filter((revision, index, revisions) => {