refactor(edges)!: simplify edge paths and center calculations

This commit is contained in:
braks
2022-10-08 23:25:34 +02:00
committed by Braks
parent 47d837aac0
commit 2d76bf345d
22 changed files with 206 additions and 270 deletions
@@ -34,7 +34,7 @@ const d = computed(() =>
<template>
<g>
<path fill="none" stroke="#222" :stroke-width="1.5" class="animated" :d="d" />
<path fill="none" stroke="#222" :stroke-width="1.5" class="animated" :d="d[0]" />
<circle :cx="props.targetX" :cy="props.targetY" fill="#fff" :r="3" stroke="#222" :stroke-width="1.5" />
</g>
</template>