fix: connector not updating when node is unselected

This commit is contained in:
reschan 2022-06-26 16:04:02 +07:00
parent 5748af5f7d
commit 5992d5db7f

View file

@ -238,9 +238,7 @@ function atree_toggle_state(node) {
function atree_update_connector() {
atree_map.forEach((v) => {
if (v.active) {
atree_compute_highlight(v);
}
atree_compute_highlight(v);
});
}
@ -336,8 +334,6 @@ function atree_parse_connector(orient, type) {
"1111": {attrib: "", rotate: 0}
}
console.log(orient);
let res = ""
for (let i in orient) {
res += orient[i];