MCPcopy Create free account
hub / github.com/GraphiteEditor/Graphite / get_selected_layer

Method get_selected_layer

editor/src/test_utils.rs:270–272  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

268 }
269
270 pub async fn get_selected_layer(&mut self) -> Option<LayerNodeIdentifier> {
271 self.active_document().network_interface.selected_nodes().selected_layers(self.active_document().metadata()).next()
272 }
273
274 pub async fn double_click(&mut self, position: DVec2) {
275 self.handle_message(InputPreprocessorMessage::DoubleClick {

Calls 5

metadataMethod · 0.80
nextMethod · 0.45
selected_layersMethod · 0.45
selected_nodesMethod · 0.45
active_documentMethod · 0.45

Tested by

no test coverage detected