refactor(types)!: change node and edge types to extend element

* element type provides intersection interface of nodes and edges
* rename isHidden to hidden

Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
Braks
2021-12-20 19:29:52 +01:00
parent da54bc3316
commit fe0eeaeae9
6 changed files with 18 additions and 31 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ const updateNode = () => {
label: opts.value.name,
}
el.style = { backgroundColor: opts.value.bg }
el.isHidden = opts.value.hidden
el.hidden = opts.value.hidden
}
return el