diff --git a/src/components/AdminWindow.vue b/src/components/AdminWindow.vue
index 37e85d0..3e3746b 100644
--- a/src/components/AdminWindow.vue
+++ b/src/components/AdminWindow.vue
@@ -70,7 +70,7 @@ onMounted(async () => {
Вечерний детектив - {{ gameState }}
-
+
diff --git a/src/components/EditorWindow.vue b/src/components/EditorWindow.vue
index 581537a..d840663 100644
--- a/src/components/EditorWindow.vue
+++ b/src/components/EditorWindow.vue
@@ -49,6 +49,7 @@ let data = {}
const displayEdges = ref(0)
const allEdges = ref(0)
+const isShowGraph = ref(false)
const onApplicationEdges = ref(true)
async function loadGraph() {
@@ -145,6 +146,9 @@ function selectNode(node: GraphNode) {
selectedNode.value.links = links
net.selectNodes([selectedNode.value.code])
+ if (!isShowGraph.value) {
+ window.document.getElementById(node.code)?.scrollIntoView({ behavior: 'smooth', block: 'center' })
+ }
}
function focusNode(node: GraphNode) {
@@ -196,6 +200,13 @@ async function clearSelectedNode() {
function nodeHeader(node: GraphNode): string {
return "[" + node.code + "] - " + node.name
}
+
+function showGraph(show: boolean) {
+ isShowGraph.value = show
+ if (isShowGraph.value) {
+ loadGraph()
+ }
+}
@@ -205,18 +216,51 @@ function nodeHeader(node: GraphNode): string {
-
+
+
+
+
+
+
+
+
+
+
+ {{ action.text }}
+
+
+
+
+
+
+
+
+
+
Точки
Всего точек: {{ graph.nodes.length }}
+
+ Отображать граф:
+
+
@@ -283,13 +327,31 @@ function nodeHeader(node: GraphNode): string {