Fixup svg-dom-arrows in dev env
All checks were successful
pipeline / lint-and-format (push) Successful in 5m16s
pipeline / build-and-push-images (push) Successful in 1m47s

This commit is contained in:
2026-01-23 21:38:57 +01:00
parent 653b0c41d7
commit 82bb01c039

View File

@@ -1,5 +1,5 @@
<script setup lang="ts">
import svgdomarrows from 'svg-dom-arrows'
import { LinePath as svgdomarrowsLinePath } from 'svg-dom-arrows'
defineProps<{
tree: ItemTree
@@ -20,7 +20,7 @@ for (const item of items.value) {
}
const start: Ref<Element | null> = useTemplateRef('start')
const arrows: Array<svgdomarrows.LinePath> = []
const arrows: Array<svgdomarrowsLinePath> = []
onMounted(() => {
refreshArrows()
@@ -49,7 +49,7 @@ function drawArrow(start: Element, end: Element) {
// console.log("drawArrow(", start, ", ", end, ")")
if (start == null || end == null) return
const arrow = new svgdomarrows.LinePath({
const arrow = new svgdomarrowsLinePath({
start: {
element: start,
position: {