aboutsummaryrefslogtreecommitdiffstats
path: root/subprojects/frontend/src/graph/GraphStore.ts
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <kristof@marussy.com>2023-09-03 18:04:05 +0200
committerLibravatar Kristóf Marussy <kristof@marussy.com>2023-09-03 18:05:27 +0200
commit983fea3d1aa238fd1fb6df66187248e31379a31d (patch)
tree7a47b0ca33dcf7fe8aa88cb46947a9d7df8c37c9 /subprojects/frontend/src/graph/GraphStore.ts
parentchore: prefer Prolog-style comments (diff)
downloadrefinery-983fea3d1aa238fd1fb6df66187248e31379a31d.tar.gz
refinery-983fea3d1aa238fd1fb6df66187248e31379a31d.tar.zst
refinery-983fea3d1aa238fd1fb6df66187248e31379a31d.zip
feat(frontend): hide object scopes by default
Diffstat (limited to 'subprojects/frontend/src/graph/GraphStore.ts')
-rw-r--r--subprojects/frontend/src/graph/GraphStore.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/subprojects/frontend/src/graph/GraphStore.ts b/subprojects/frontend/src/graph/GraphStore.ts
index 50cb8c19..ecb016b5 100644
--- a/subprojects/frontend/src/graph/GraphStore.ts
+++ b/subprojects/frontend/src/graph/GraphStore.ts
@@ -61,6 +61,8 @@ export default class GraphStore {
61 61
62 abbreviate = true; 62 abbreviate = true;
63 63
64 scopes = false;
65
64 selectedSymbol: RelationMetadata | undefined; 66 selectedSymbol: RelationMetadata | undefined;
65 67
66 constructor() { 68 constructor() {
@@ -145,6 +147,10 @@ export default class GraphStore {
145 this.abbreviate = !this.abbreviate; 147 this.abbreviate = !this.abbreviate;
146 } 148 }
147 149
150 toggleScopes(): void {
151 this.scopes = !this.scopes;
152 }
153
148 setSelectedSymbol(option: RelationMetadata | undefined): void { 154 setSelectedSymbol(option: RelationMetadata | undefined): void {
149 if (option === undefined) { 155 if (option === undefined) {
150 this.selectedSymbol = undefined; 156 this.selectedSymbol = undefined;