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)
}
import pkg from 'svg-dom-arrows';
const { LinePath } = pkg;
import svgdomarrows from 'svg-dom-arrows';
const start : Ref<Element | null> = useTemplateRef("start")
const arrows : Array<pkg.LinePath> = []
const arrows : Array<svgdomarrows.LinePath> = []
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: {