Enable animation module for Wasm target
This commit is contained in:
parent
9b959d3e80
commit
a56c2f3d81
3 changed files with 5 additions and 12 deletions
|
|
@ -158,7 +158,7 @@ half = "2.2"
|
||||||
image = { version = "0.25", default-features = false }
|
image = { version = "0.25", default-features = false }
|
||||||
kamadak-exif = "0.5"
|
kamadak-exif = "0.5"
|
||||||
kurbo = "0.10"
|
kurbo = "0.10"
|
||||||
lilt = "0.7"
|
lilt = "0.8"
|
||||||
log = "0.4"
|
log = "0.4"
|
||||||
lyon = "1.0"
|
lyon = "1.0"
|
||||||
lyon_path = "1.0"
|
lyon_path = "1.0"
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,6 @@
|
||||||
html_logo_url = "https://raw.githubusercontent.com/iced-rs/iced/9ab6923e943f784985e9ef9ca28b10278297225d/docs/logo.svg"
|
html_logo_url = "https://raw.githubusercontent.com/iced-rs/iced/9ab6923e943f784985e9ef9ca28b10278297225d/docs/logo.svg"
|
||||||
)]
|
)]
|
||||||
pub mod alignment;
|
pub mod alignment;
|
||||||
#[cfg(not(target_arch = "wasm32"))]
|
|
||||||
pub mod animation;
|
pub mod animation;
|
||||||
pub mod border;
|
pub mod border;
|
||||||
pub mod clipboard;
|
pub mod clipboard;
|
||||||
|
|
@ -51,7 +50,6 @@ mod vector;
|
||||||
|
|
||||||
pub use alignment::Alignment;
|
pub use alignment::Alignment;
|
||||||
pub use angle::{Degrees, Radians};
|
pub use angle::{Degrees, Radians};
|
||||||
#[cfg(not(target_arch = "wasm32"))]
|
|
||||||
pub use animation::Animation;
|
pub use animation::Animation;
|
||||||
pub use background::Background;
|
pub use background::Background;
|
||||||
pub use border::Border;
|
pub use border::Border;
|
||||||
|
|
|
||||||
13
src/lib.rs
13
src/lib.rs
|
|
@ -498,25 +498,20 @@ pub mod window;
|
||||||
pub mod advanced;
|
pub mod advanced;
|
||||||
|
|
||||||
pub use crate::core::alignment;
|
pub use crate::core::alignment;
|
||||||
|
pub use crate::core::animation;
|
||||||
pub use crate::core::border;
|
pub use crate::core::border;
|
||||||
pub use crate::core::color;
|
pub use crate::core::color;
|
||||||
pub use crate::core::gradient;
|
pub use crate::core::gradient;
|
||||||
pub use crate::core::padding;
|
pub use crate::core::padding;
|
||||||
pub use crate::core::theme;
|
pub use crate::core::theme;
|
||||||
pub use crate::core::{
|
pub use crate::core::{
|
||||||
Alignment, Background, Border, Color, ContentFit, Degrees, Gradient,
|
Alignment, Animation, Background, Border, Color, ContentFit, Degrees,
|
||||||
Length, Padding, Pixels, Point, Radians, Rectangle, Rotation, Settings,
|
Gradient, Length, Padding, Pixels, Point, Radians, Rectangle, Rotation,
|
||||||
Shadow, Size, Theme, Transformation, Vector,
|
Settings, Shadow, Size, Theme, Transformation, Vector,
|
||||||
};
|
};
|
||||||
pub use crate::runtime::exit;
|
pub use crate::runtime::exit;
|
||||||
pub use iced_futures::Subscription;
|
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::Horizontal::{Left, Right};
|
||||||
pub use alignment::Vertical::{Bottom, Top};
|
pub use alignment::Vertical::{Bottom, Top};
|
||||||
pub use Alignment::Center;
|
pub use Alignment::Center;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue