move 'selection' part of state into same object as rest of editor state

This commit is contained in:
Joeri Exelmans 2025-10-21 10:21:26 +02:00
parent 9e79537b6e
commit 297905a4af
8 changed files with 66 additions and 58 deletions

View file

@ -54,6 +54,7 @@ function ShowMode(props: {mode: Mode, statechart: Statechart}) {
function getActiveLeafs(mode: Mode, sc: Statechart) {
return new Set([...mode].filter(uid =>
// @ts-ignore
sc.uid2State.get(uid)?.children?.length === 0
));
}