Add persistence to the collapsed state of Properties panel node sections (#4300)

* Add persistence to the collapsed state of Properties panel node sections

* Improve comments

* Fix generator node handling with #4299
This commit is contained in:
Keavon Chambers
2026-07-01 04:54:39 -07:00
committed by GitHub
parent 1648e33c1f
commit 7ae7bda3d3
10 changed files with 86 additions and 18 deletions

View File

@@ -931,6 +931,12 @@ impl EditorWrapper {
self.dispatch(DocumentMessage::SetNodePinned { node_id: NodeId(id), pinned });
}
/// Collapse or expand a node's section in the Properties panel
#[wasm_bindgen(js_name = toggleNodePropertiesSectionExpanded)]
pub fn toggle_node_properties_section_expanded(&self, id: u64) {
self.dispatch(DocumentMessage::ToggleNodePropertiesSectionExpanded { node_id: NodeId(id) });
}
/// Delete a layer or node given its node ID
#[wasm_bindgen(js_name = deleteNode)]
pub fn delete_node(&self, id: u64) {