mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-05 19:20:12 +08:00
modify quest map
This commit is contained in:
1 parent
76a39add29
commit
f008fb9f60
2 files changed
+7
-6
No files matched your search
@@ -90,7 +90,7 @@ const handleChange = () => {
|
|||||||
class="bg-bg border-8 border-bg-primary flex flex-1 flex-col items-center justify-center rounded-3xl p-10"
|
class="bg-bg border-8 border-bg-primary flex flex-1 flex-col items-center justify-center rounded-3xl p-10"
|
||||||
>
|
>
|
||||||
<h1 class="text-text-primary text-3xl font-black mb-2">{{ title }}</h1>
|
<h1 class="text-text-primary text-3xl font-black mb-2">{{ title }}</h1>
|
||||||
<div class="text-error inline-flex justify-center items-center xl:hidden">
|
<div class="text-error inline-flex justify-center items-center md:hidden">
|
||||||
<font-awesome-icon
|
<font-awesome-icon
|
||||||
:icon="['fas', 'circle-exclamation']"
|
:icon="['fas', 'circle-exclamation']"
|
||||||
class="px-1 text-sm"
|
class="px-1 text-sm"
|
||||||
|
|||||||
@@ -15,8 +15,8 @@ import { DAG } from '@linux-odyssey/utils'
|
|||||||
import api from '../utils/api'
|
import api from '../utils/api'
|
||||||
import { NodeImage } from '../img/svg.js'
|
import { NodeImage } from '../img/svg.js'
|
||||||
|
|
||||||
const marginX = 200
|
const marginX = 500
|
||||||
const marginY = 65
|
const marginY = 300
|
||||||
const chartContainer = ref(null)
|
const chartContainer = ref(null)
|
||||||
let chartInstance = null
|
let chartInstance = null
|
||||||
const fullwidth = window.screen.width
|
const fullwidth = window.screen.width
|
||||||
@@ -71,9 +71,10 @@ const genOption = (nodes, edges) => ({
|
|||||||
symbol: () => {
|
symbol: () => {
|
||||||
return NodeImage
|
return NodeImage
|
||||||
},
|
},
|
||||||
symbolSize: [fullwidth / 10, fullwidth / 25],
|
symbolSize: [fullwidth / 13, fullwidth / 30],
|
||||||
roam: 'move',
|
roam: 'move',
|
||||||
zoom: 1,
|
zoom: 1.5,
|
||||||
|
center: ['150%', '50%'],
|
||||||
label: {
|
label: {
|
||||||
show: true,
|
show: true,
|
||||||
fontSize: fullwidth / 90,
|
fontSize: fullwidth / 90,
|
||||||
@@ -103,7 +104,7 @@ const genOption = (nodes, edges) => ({
|
|||||||
if (unlocked) {
|
if (unlocked) {
|
||||||
return '#ADADB5'
|
return '#ADADB5'
|
||||||
}
|
}
|
||||||
return '454552'
|
return '#505050'
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in new issue
Block a user