Rename import

This commit is contained in:
2024-12-07 13:28:19 +01:00
parent 9f11ba1f52
commit 825bd1f3a2

View File

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