docs(layout): rename cassowary-rs references to cassowary (#1448)

closes #1423
This commit is contained in:
miro 2024-10-22 17:15:36 +08:00 committed by GitHub
parent 28732176e1
commit 04e1b32cd2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -114,7 +114,7 @@ impl From<i16> for Spacing {
/// - a flex option
/// - a spacing option
///
/// The algorithm used to compute the layout is based on the [`cassowary-rs`] solver. It is a simple
/// The algorithm used to compute the layout is based on the [`cassowary`] solver. It is a simple
/// linear solver that can be used to solve linear equations and inequalities. In our case, we
/// define a set of constraints that are applied to split the provided area into Rects aligned in a
/// single direction, and the solver computes the values of the position and sizes that satisfy as
@ -171,7 +171,7 @@ impl From<i16> for Spacing {
/// ![layout
/// example](https://camo.githubusercontent.com/77d22f3313b782a81e5e033ef82814bb48d786d2598699c27f8e757ccee62021/68747470733a2f2f7668732e636861726d2e73682f7668732d315a4e6f4e4c4e6c4c746b4a58706767396e435635652e676966)
///
/// [`cassowary-rs`]: https://crates.io/crates/cassowary
/// [`cassowary`]: https://crates.io/crates/cassowary
/// [Examples]: https://github.com/ratatui/ratatui/blob/main/examples/README.md
#[derive(Debug, Default, Clone, Eq, PartialEq, Hash)]
pub struct Layout {
@ -567,7 +567,7 @@ impl Layout {
.expect("invalid number of rects")
}
/// Wrapper function around the cassowary-rs solver to be able to split a given area into
/// Wrapper function around the cassowary solver to be able to split a given area into
/// smaller ones based on the preferred widths or heights and the direction.
///
/// Note that the constraints are applied to the whole area that is to be split, so using
@ -605,7 +605,7 @@ impl Layout {
self.split_with_spacers(area).0
}
/// Wrapper function around the cassowary-rs solver that splits the given area into smaller ones
/// Wrapper function around the cassowary solver that splits the given area into smaller ones
/// based on the preferred widths or heights and the direction, with the ability to include
/// spacers between the areas.
///