remember active overlays

This commit is contained in:
vcoppe
2024-05-06 15:52:11 +02:00
parent 281b20249d
commit 86d941b00d
5 changed files with 60 additions and 16 deletions

View File

@@ -17,6 +17,8 @@
export let multiple: boolean = false;
export let open: CollapsedInfoTreeType<boolean>;
export let checked: LayerTreeType;
if (!Array.isArray(node)) {
Object.keys(node).forEach((id) => {
if (!open.children.hasOwnProperty(id)) {
@@ -27,8 +29,6 @@
}
});
}
export let checked: LayerTreeType;
Object.keys(node).forEach((id) => {
if (!checked.hasOwnProperty(id)) {
if (typeof node[id] == 'boolean') {