update values
This commit is contained in:
parent
2f2a15b466
commit
9fbb976d00
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue