pub struct SvgPathMorph {
pub target: String,
pub keyframes: Vec<SvgPathMorphKeyframe>,
pub easing: EasingType,
pub repeat: bool,
pub yoyo: bool,
}Expand description
Animates the d attribute of one <path> inside an inline svg
document between keyframe shapes, the svg counterpart to shape’s
path_morph. An SVG document typically holds several paths, unlike
shape’s single implicit path, so target names which one this track
drives.
Fields§
§target: StringThe id attribute of the <path> element inside the inline SVG
document this track drives, with or without a leading #. No match
inside the document is a validate-time error, not a silent no-op.
keyframes: Vec<SvgPathMorphKeyframe>At least one keyframe; a single keyframe holds that shape statically.
easing: EasingTypeApplied within each segment between two consecutive keyframes.
repeat: boolLoops back to the first keyframe once time passes the last one,
instead of holding the last shape forever.
yoyo: boolOnly with repeat: alternates direction each cycle instead of
snapping back to the first keyframe.
Trait Implementations§
Source§impl Clone for SvgPathMorph
impl Clone for SvgPathMorph
Source§impl Debug for SvgPathMorph
impl Debug for SvgPathMorph
Source§impl<'de> Deserialize<'de> for SvgPathMorph
impl<'de> Deserialize<'de> for SvgPathMorph
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for SvgPathMorph
impl JsonSchema for SvgPathMorph
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read moreSource§impl PartialEq for SvgPathMorph
impl PartialEq for SvgPathMorph
Source§impl Serialize for SvgPathMorph
impl Serialize for SvgPathMorph
impl StructuralPartialEq for SvgPathMorph
Auto Trait Implementations§
impl Freeze for SvgPathMorph
impl RefUnwindSafe for SvgPathMorph
impl Send for SvgPathMorph
impl Sync for SvgPathMorph
impl Unpin for SvgPathMorph
impl UnsafeUnpin for SvgPathMorph
impl UnwindSafe for SvgPathMorph
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more