mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2024-11-25 01:41:48 +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"
|
: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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue