mirror of https://codeberg.org/topola/topola.git
fix(layout): rename center_of_high_level_node -> center_of_compoundless_node
This commit is contained in:
parent
41468d51c3
commit
d1be9e753e
|
|
@ -344,8 +344,8 @@ impl<R: AccessRules> Layout<R> {
|
|||
}
|
||||
}
|
||||
|
||||
/// Checks if a node is "high-level", and if yes, returns its center
|
||||
pub fn center_of_high_level_node(&self, node: NodeIndex) -> Option<Point> {
|
||||
/// Checks if a node is not a primitive part of a compound, and if yes, returns its center
|
||||
pub fn center_of_compoundless_node(&self, node: NodeIndex) -> Option<Point> {
|
||||
match node {
|
||||
NodeIndex::Primitive(primitive) => {
|
||||
if self
|
||||
|
|
|
|||
Loading…
Reference in New Issue