highlight node and edge

This commit is contained in:
Cindy Chang
2024-08-21 14:45:59 +08:00
parent d56ea98780
commit c3c2861a8f
6 changed files with 105 additions and 1 deletions

View File

@@ -411,6 +411,7 @@ export default {
},
setActivityBgImage(mapData) {
const nodes = mapData.nodes;
// 一組有多少個activities
const groupSize = Math.floor(nodes.length / ImgCapsules.length);
let nodeOptionArr = [];
const leveledGroups = []; // 每一個level會使用不同的膠囊圖片
@@ -434,6 +435,7 @@ export default {
curNode.data = {
...curNode.data,
nodeImageUrl: ImgCapsules[level],
level,
};
});
});