Routing implemented

This commit is contained in:
thepaperpilot 2022-12-23 14:59:16 -06:00
parent 3de5dc567f
commit e27cef29a7
2 changed files with 473 additions and 451 deletions

File diff suppressed because it is too large Load diff

View file

@ -8,6 +8,13 @@
:x2="endPosition.x" :x2="endPosition.x"
:y2="endPosition.y" :y2="endPosition.y"
/> />
<text
v-if="link.weight"
:x="(startPosition.x + endPosition.x) / 2"
:y="(startPosition.y + endPosition.y) / 2 + 4"
style="text-anchor: middle"
>{{ link.weight }}</text
>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
@ -15,7 +22,7 @@ import type { BoardNodeLink } from "features/boards/board";
import { computed, toRefs, unref } from "vue"; import { computed, toRefs, unref } from "vue";
const _props = defineProps<{ const _props = defineProps<{
link: BoardNodeLink; link: BoardNodeLink & { weight?: number };
}>(); }>();
const props = toRefs(_props); const props = toRefs(_props);