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