Put first mandala symbol at front of z-order.

pull/63/head
Atul Varma 2021-03-28 08:50:04 -04:00
rodzic 50eeb9a25b
commit a5c4bd737b
1 zmienionych plików z 9 dodań i 7 usunięć

Wyświetl plik

@ -106,13 +106,15 @@ const MandalaCircle: React.FC<MandalaCircleParams & SvgSymbolContext> = (
</SvgTransform>
);
const symbols = range(props.numSymbols).map((i) => (
<SvgTransform
key={i}
transform={svgRotate(degreesPerItem * i)}
children={symbol}
/>
));
const symbols = range(props.numSymbols)
.reverse()
.map((i) => (
<SvgTransform
key={i}
transform={svgRotate(degreesPerItem * i)}
children={symbol}
/>
));
return <>{symbols}</>;
};