mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-08 03:20:12 +08:00
quest map modify
This commit is contained in:
1 parent
639a7d06d9
commit
c6e49a10be
1 file changed
+3
-3
@@ -71,7 +71,7 @@ const genOption = (nodes, edges) => ({
|
|||||||
},
|
},
|
||||||
symbolSize: [fullwidth / 10, fullwidth / 25],
|
symbolSize: [fullwidth / 10, fullwidth / 25],
|
||||||
roam: 'move',
|
roam: 'move',
|
||||||
zoom: 2,
|
zoom: 1,
|
||||||
label: {
|
label: {
|
||||||
show: true,
|
show: true,
|
||||||
fontSize: fullwidth / 90,
|
fontSize: fullwidth / 90,
|
||||||
@@ -108,8 +108,8 @@ function getOption(quests, progress) {
|
|||||||
const nodes = dag.getNodes().map((node) => ({
|
const nodes = dag.getNodes().map((node) => ({
|
||||||
id: node._id,
|
id: node._id,
|
||||||
name: node.title,
|
name: node.title,
|
||||||
x: marginX * node.index - (marginX * dag.getLayer(node._id)) / 2,
|
y: marginX * node.index - (marginX * dag.getLayer(node._id)) / 2,
|
||||||
y: marginY * node.layer,
|
x: marginY * node.layer * 2,
|
||||||
completed: progress[node._id]?.completed || false,
|
completed: progress[node._id]?.completed || false,
|
||||||
unlocked: node.requirements.every((req) => progress[req]?.completed),
|
unlocked: node.requirements.every((req) => progress[req]?.completed),
|
||||||
}))
|
}))
|
||||||
|
|||||||
Reference in new issue
Block a user