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-10 17:41:19 +01:00
parent da54bc3316
commit fe0eeaeae9
6 changed files with 18 additions and 31 deletions

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