Add recursive folder expand/collapse to the Layers panel (#2419)

* added_recursion_fix

* Add tooltip and tidy up color visibility

---------

Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
0SlowPoke0 2025-03-11 02:31:00 +05:30 committed by GitHub
parent 7a3bb999a9
commit d2fc919ba6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 36 additions and 13 deletions

View file

@ -700,9 +700,9 @@ impl EditorHandle {
/// Toggle expansions state of a layer from the layer list
#[wasm_bindgen(js_name = toggleLayerExpansion)]
pub fn toggle_layer_expansion(&self, id: u64) {
pub fn toggle_layer_expansion(&self, id: u64, recursive: bool) {
let id = NodeId(id);
let message = DocumentMessage::ToggleLayerExpansion { id };
let message = DocumentMessage::ToggleLayerExpansion { id, recursive };
self.dispatch(message);
}