Rename import
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user