Make animation module only available in native
This commit is contained in:
parent
2753103942
commit
8fd87f94eb
2 changed files with 11 additions and 4 deletions
13
src/lib.rs
13
src/lib.rs
|
|
@ -498,20 +498,25 @@ pub mod window;
|
|||
pub mod advanced;
|
||||
|
||||
pub use crate::core::alignment;
|
||||
pub use crate::core::animation;
|
||||
pub use crate::core::border;
|
||||
pub use crate::core::color;
|
||||
pub use crate::core::gradient;
|
||||
pub use crate::core::padding;
|
||||
pub use crate::core::theme;
|
||||
pub use crate::core::{
|
||||
Alignment, Animation, Background, Border, Color, ContentFit, Degrees,
|
||||
Gradient, Length, Padding, Pixels, Point, Radians, Rectangle, Rotation,
|
||||
Settings, Shadow, Size, Theme, Transformation, Vector,
|
||||
Alignment, Background, Border, Color, ContentFit, Degrees, Gradient,
|
||||
Length, Padding, Pixels, Point, Radians, Rectangle, Rotation, Settings,
|
||||
Shadow, Size, Theme, Transformation, Vector,
|
||||
};
|
||||
pub use crate::runtime::exit;
|
||||
pub use iced_futures::Subscription;
|
||||
|
||||
#[cfg(not(target_arch = "wasm32"))]
|
||||
pub use crate::core::animation;
|
||||
|
||||
#[cfg(not(target_arch = "wasm32"))]
|
||||
pub use crate::core::Animation;
|
||||
|
||||
pub use alignment::Horizontal::{Left, Right};
|
||||
pub use alignment::Vertical::{Bottom, Top};
|
||||
pub use Alignment::Center;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue