1
0
mirror of https://github.com/lana-k/sqliteviz.git synced 2026-08-05 23:39:17 +08:00

tests for graph editor

This commit is contained in:
lana-k
2026-02-28 16:53:43 +01:00
parent 4f6efb5bda
commit 534b186d76
3 changed files with 326 additions and 5 deletions

View File

@@ -288,7 +288,7 @@ export default {
initOptions: Object,
showViewSettings: Boolean
},
emits: ['update', 'selectItem', 'deselectItem'],
emits: ['update', 'selectItem', 'clearSelection'],
data() {
return {
graph: new Graph({ multi: true, allowSelfLoops: true }),
@@ -572,7 +572,7 @@ export default {
clearSelection() {
this.selectedNodeId = undefined
this.selectedEdgeId = undefined
this.$emit('deselectItem')
this.$emit('clearSelection')
},
updateHighlightNodeMode(mode) {
this.settings.style.highlightMode = mode