diff --git a/frontend/components/item/Tree.vue b/frontend/components/item/Tree.vue index e64696f..6e09641 100644 --- a/frontend/components/item/Tree.vue +++ b/frontend/components/item/Tree.vue @@ -15,11 +15,10 @@ for(let item of items.value) { itemMap.set(item.id, item) } -import pkg from 'svg-dom-arrows'; -const { LinePath } = pkg; +import svgdomarrows from 'svg-dom-arrows'; const start : Ref = useTemplateRef("start") -const arrows : Array = [] +const arrows : Array = [] onMounted(() => { refreshArrows() @@ -48,7 +47,7 @@ function drawArrow(start : Element, end : Element) { // console.log("drawArrow(", start, ", ", end, ")") if(start == null || end == null) return; - const arrow = new LinePath({ + const arrow = new svgdomarrows.LinePath({ start: { element: start, position: {