update values

This commit is contained in:
Kseninia Mikhaylova 2024-06-26 14:04:57 +03:00
parent 2f2a15b466
commit 9fbb976d00
1 changed files with 4 additions and 5 deletions

View File

@ -81,11 +81,10 @@ onMounted(async () => {
}
if (document.querySelector('.pin')) {
setTimeout(() => {
const rect = (document.querySelector('.pin') as HTMLElement).getBoundingClientRect()
circles[circles.length - 1] = { x: rect.x + rect.width, y: rect.y + rect.height }
circles[circles.length - 2] = { x: rect.x, y: rect.y }
}, 300)
update()
}
})
</script>