Skip to content

Commit

Permalink
Update v0.13.0 rc.2 (#262)
Browse files Browse the repository at this point in the history
* Update package version and dependencies

* Fix clippy lints

* Update `CHANGELOG.md`
  • Loading branch information
Nilirad authored Nov 13, 2024
1 parent b434b7d commit d8c28bc
Showing 3 changed files with 12 additions and 6 deletions.
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Changelog

## 0.13.0-rc.1
- Support for Bevy 0.15.0-rc.2.
## 0.13.0-rc.2
- Support for Bevy 0.15.0-rc.3.
- `Rectangle` now supports border radii (see `rectangle.rs` example).
- Removed deprecated `SpatialBundle` from `ShapeBundle`: `Transform` and `Visibility` are now added separately.

## 0.12.0
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -8,12 +8,12 @@ license = "MIT OR Apache-2.0"
name = "bevy_prototype_lyon"
readme = "README.md"
repository = "https://github.com/Nilirad/bevy_prototype_lyon/"
version = "0.13.0-rc.1"
version = "0.13.0-rc.2"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
bevy = { version = "0.15.0-rc.2", default-features = false, features = [
bevy = { version = "0.15.0-rc.3", default-features = false, features = [
"bevy_sprite",
"bevy_render",
"bevy_core_pipeline",
@@ -24,7 +24,7 @@ lyon_algorithms = "1"
svgtypes = "0.15"

[dev-dependencies]
bevy = { version = "0.15.0-rc.2", default-features = false, features = [
bevy = { version = "0.15.0-rc.3", default-features = false, features = [
"x11",
"bevy_asset",
] }
7 changes: 6 additions & 1 deletion src/shapes.rs
Original file line number Diff line number Diff line change
@@ -55,6 +55,7 @@ pub struct BorderRadii {

impl BorderRadii {
/// Use a single radius for all corners.
#[must_use]
pub fn single(radius: f32) -> Self {
Self {
top_left: radius,
@@ -65,6 +66,7 @@ impl BorderRadii {
}

/// Use a single radius for the top corners and zero for the bottom corners.
#[must_use]
pub fn top(radius: f32) -> Self {
Self {
top_left: radius,
@@ -74,6 +76,7 @@ impl BorderRadii {
}

/// Use a single radius for the bottom corners and zero for the top corners.
#[must_use]
pub fn bottom(radius: f32) -> Self {
Self {
bottom_left: radius,
@@ -83,6 +86,7 @@ impl BorderRadii {
}

/// Use a single radius for the left corners and zero for the right corners.
#[must_use]
pub fn left(radius: f32) -> Self {
Self {
top_left: radius,
@@ -92,6 +96,7 @@ impl BorderRadii {
}

/// Use a single radius for the right corners and zero for the left corners.
#[must_use]
pub fn right(radius: f32) -> Self {
Self {
top_right: radius,
@@ -104,7 +109,7 @@ impl BorderRadii {
impl From<BorderRadii> for LyonBorderRadii {
fn from(source: BorderRadii) -> Self {
// swap top and bottom
LyonBorderRadii {
Self {
top_left: source.bottom_left.abs(),
top_right: source.bottom_right.abs(),
bottom_left: source.top_left.abs(),

0 comments on commit d8c28bc

Please sign in to comment.