mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-19 10:58:04 +08:00
Add Layers panel support for displaying multiple groups with instances of the same children layers (#3982)
* Add Layers panel support for displaying multiple groups with instances of the same children layers * Fix insert folder box drawing
This commit is contained in:
@@ -858,9 +858,9 @@ impl EditorWrapper {
|
||||
|
||||
/// Toggle expansions state of a layer from the layer list
|
||||
#[wasm_bindgen(js_name = toggleLayerExpansion)]
|
||||
pub fn toggle_layer_expansion(&self, id: u64, recursive: bool) {
|
||||
let id = NodeId(id);
|
||||
let message = DocumentMessage::ToggleLayerExpansion { id, recursive };
|
||||
pub fn toggle_layer_expansion(&self, instance_path: &[u64], recursive: bool) {
|
||||
let instance_path = instance_path.iter().map(|&id| NodeId(id)).collect();
|
||||
let message = DocumentMessage::ToggleLayerExpansion { instance_path, recursive };
|
||||
self.dispatch(message);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user