mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2024-11-21 16:13:57 +00:00
Routing implemented
This commit is contained in:
parent
3de5dc567f
commit
e27cef29a7
2 changed files with 473 additions and 451 deletions
File diff suppressed because it is too large
Load diff
|
@ -8,6 +8,13 @@
|
|||
:x2="endPosition.x"
|
||||
: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>
|
||||
|
||||
<script setup lang="ts">
|
||||
|
@ -15,7 +22,7 @@ import type { BoardNodeLink } from "features/boards/board";
|
|||
import { computed, toRefs, unref } from "vue";
|
||||
|
||||
const _props = defineProps<{
|
||||
link: BoardNodeLink;
|
||||
link: BoardNodeLink & { weight?: number };
|
||||
}>();
|
||||
const props = toRefs(_props);
|
||||
|
||||
|
|
Loading…
Reference in a new issue