Skip to content

Commit

Permalink
version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
nongio committed Dec 18, 2024
1 parent 992829f commit 129c6cf
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 10 deletions.
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,31 @@ All notable changes to this project will be documented in this file.

## [unreleased]

### 🚀 Features

- Layer content clip to bounds

### 🐛 Bug Fixes

- Debugger assets path
- Increase spring animation tolerance
- Engine.mark_for_delete
- Engine.trigger_callback deadlock
- Buildlayertree get or create child

### ⚙️ Miscellaneous Tasks

- [**breaking**] Rename library to lay-rs
- [**breaking**] Layer content caching api + export layer as content
- [**breaking**] Storage using tokio:rwlock
- Bump rust-skia
- C api refactor
- Expose LayerTree anchor point
- [**breaking**] Replicate layer api

### Restore

- Layer.set_hidden

## [0.5.0] - 2024-10-27

Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "lay-rs"
version = "0.5.0"
version = "0.5.1"
edition = "2021"
build = "build.rs"
rust-version = "1.82.0"
Expand Down
11 changes: 5 additions & 6 deletions src/layers/layer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ impl Layer {

let mut style = self.engine.get_node_layout_style(self.layout_node_id);
style.display = display;

// self.engine.set_node_layout_style(self.layout_node_id, style);

if let Some(id) = self.id() {
Expand All @@ -114,18 +114,17 @@ impl Layer {
let node = node.get();
node.insert_flags(RenderableFlags::NEEDS_LAYOUT | RenderableFlags::NEEDS_PAINT);
}
let mut iter = id.ancestors(&arena);
let mut iter = id.ancestors(arena);
iter.next(); // skip self
if let Some(parent_id) = iter.next() {
if let Some(parent) = arena.get(parent_id) {
let parent = parent.get();
parent
.insert_flags(RenderableFlags::NEEDS_LAYOUT | RenderableFlags::NEEDS_PAINT);
parent.insert_flags(
RenderableFlags::NEEDS_LAYOUT | RenderableFlags::NEEDS_PAINT,
);
}
}

});

}
}
pub fn hidden(&self) -> bool {
Expand Down
3 changes: 1 addition & 2 deletions src/view/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,7 @@ impl<S: Hash + Clone> View<S> {
let viewlayer_node_map = self.viewlayer_node_map.read().unwrap();
viewlayer_node_map
.get(id)
.map(|v| v.front())
.flatten()
.and_then(|v| v.front())
.and_then(|node| {
if let Some(root) = &*self.layer.read().unwrap() {
if let Some(node) = root.engine.scene_get_node(node) {
Expand Down

0 comments on commit 129c6cf

Please sign in to comment.