fixes
All checks were successful
deploy to production / deploy (push) Successful in 36s

This commit is contained in:
2023-09-01 12:09:35 +00:00
parent 769fd1296c
commit 157e667227
13 changed files with 56 additions and 23 deletions

View File

@@ -13,12 +13,12 @@
onMount(() => {
for (let i = 0; i < count; i++) {
let angle = angleStep * i * (Math.PI / 180) // Convert to radians
let angle = (angleStep * i - 90) * (Math.PI / 180) // Convert to radians
circles.push({
x: radius * Math.cos(angle),
y: radius * Math.sin(angle),
rotation: angleStep * i - 90, // subtract 90 to point towards the circle
rotation: angleStep * i + 180, // subtract 90 to point towards the circle
})
}
circles = circles
@@ -51,9 +51,10 @@
<svg
id="mySvgObject{i}"
stroke="{i == focused ? 'white' : 'black'}"
fill="{i == focused ? 'white' : 'black'}"
data-src="{apiBaseURL}page/{pageId}/{col.iconCycleCircle?.boxes[i]?.icon?.src}"></svg>
</div>
<div class="text">
<div class="text" style="text-align: center;">
{col.iconCycleCircle?.boxes[i]?.text}
</div>
</div>