Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Svg Displaying #309

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open

Svg Displaying #309

wants to merge 9 commits into from

Conversation

DasLixou
Copy link
Contributor

@DasLixou DasLixou commented Feb 14, 2023

image

Before this gets merged, theres some ToDo's:

  • Setting all params for stroke
  • Override Color
  • Make the whole impl Res<SvgTree> thing and especially in self.tree.result.clone() more performant and simpler. currently not possible
  • Make the Svg in the Size of the SvgDisplay Component (how do i scale a path? idk)

@DasLixou DasLixou marked this pull request as ready for review February 15, 2023 13:28
Comment on lines +70 to +76
if let Some(event) = event.take::<SvgEvent>() {
match event {
SvgEvent::TreeChanged(new_tree) => {
self.tree.replace(new_tree);
}
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could be

Suggested change
if let Some(event) = event.take::<SvgEvent>() {
match event {
SvgEvent::TreeChanged(new_tree) => {
self.tree.replace(new_tree);
}
}
}
if let Some(SvgEvent::TreeChanged(new_tree)) = event.take::<SvgEvent>() {
self.tree.replace(new_tree);
}

@DasLixou
Copy link
Contributor Author

Thanks for the review, I will take note of that but currently this pr is blocked for #312

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants