Skip to content

Commit

Permalink
feat(macros): 🎸 derive Declare will generate FatObj
Browse files Browse the repository at this point in the history
  • Loading branch information
M-Adoo committed Mar 4, 2024
1 parent 124e261 commit a5b2158
Show file tree
Hide file tree
Showing 29 changed files with 1,378 additions and 304 deletions.
2 changes: 1 addition & 1 deletion core/src/animation/animate.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use crate::{prelude::*, ticker::FrameMsg, window::WindowId};
use std::time::Instant;

#[derive(Declare)]
#[simple_declare]
pub struct Animate<S>
where
S: AnimateState + 'static,
Expand Down
4 changes: 2 additions & 2 deletions core/src/animation/stagger.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ impl<T: Transition + 'static> Stagger<T> {
A: AnimateState + 'static,
{
let transition = Box::new(self.transition.clone());
let animate = rdl! { Animate { transition, state, from } }.into_inner();
let animate = rdl! { Animate { transition, state, from } };
self.push_animation_with(stagger, animate.clone_writer().into_inner());
animate
}
Expand All @@ -116,7 +116,7 @@ impl<T: Transition + 'static> Stagger<T> {
/// Add an animation to the end of the stagger animation with a different
/// stagger duration.
///
/// **stagger**: the duration between the previous animation start and this
/// **stagger**: the duration between the previous animation start and this
/// animation start.
pub fn push_animation_with(
&mut self,
Expand Down
Loading

0 comments on commit a5b2158

Please sign in to comment.