live preview: Implement drop marker mapping for elements

... so we know what to do when dropping near tghe border of elements that
accept drops in a layout.
This commit is contained in:
Tobias Hunger 2024-03-27 20:55:47 +01:00 committed by Tobias Hunger
parent 1bb0a8638c
commit 69b8e8d57c
4 changed files with 824 additions and 51 deletions

View file

@ -75,6 +75,10 @@ impl ElementRcNode {
(n.source_file.path().to_owned(), u32::from(n.text_range().start()))
})
}
pub fn as_element(&self) -> &ElementRc {
&self.element
}
}
pub fn create_workspace_edit(