diff --git a/app/src/components/QuestMap.vue b/app/src/components/QuestMap.vue index ff87f13..94d87cb 100644 --- a/app/src/components/QuestMap.vue +++ b/app/src/components/QuestMap.vue @@ -1,7 +1,37 @@ @@ -17,8 +47,8 @@ import { DAG } from '@linux-odyssey/utils' import api from '../utils/api' const marginX = 100 -const marginY = 100 - +const marginY = 70 +const rectImage = '../img/rectImg.png' const chartContainer = ref(null) let chartInstance = null @@ -45,7 +75,7 @@ async function getProgress() { } const genOption = (nodes, edges) => ({ - rendener: 'svg', + render: 'svg', tooltip: {}, animationDurationUpdate: 1500, animationEasingUpdate: 'quinticInOut', @@ -53,22 +83,23 @@ const genOption = (nodes, edges) => ({ { type: 'graph', layout: 'none', - symbolSize: 50, + Symbol: `image://${rectImage}`, + symbolSize: [100, 50], roam: true, label: { show: true, }, edgeSymbol: ['circle', 'arrow'], - edgeSymbolSize: [4, 10], + edgeSymbolSize: [5, 12], edgeLabel: { - fontSize: 20, + fontSize: 25, }, data: nodes, // links: [], links: edges, lineStyle: { - opacity: 0.9, - width: 2, + opacity: 4, + width: 3, curveness: 0, }, }, diff --git a/app/src/views/QuestMapPage.vue b/app/src/views/QuestMapPage.vue index 7799b90..2ad05ab 100644 --- a/app/src/views/QuestMapPage.vue +++ b/app/src/views/QuestMapPage.vue @@ -1,7 +1,11 @@