pub struct Morph { /* private fields */ }Expand description
Prepared, replayable semantic tree morph. Leaf IDs take priority, followed by position and signed-curve-area magnitude. Unmatched parts grow/shrink at their own center. Fill/stroke/image geometry shares MorphPath’s original curves. Spatial paints and differing clipping/isolation crossfade the two retained hierarchies; solid colors interpolate in Oklab on the morphed geometry.
Implementations§
Source§impl Morph
impl Morph
Sourcepub fn new(
source: &VectorTree,
target: &VectorTree,
) -> Result<Self, ValidationError>
pub fn new( source: &VectorTree, target: &VectorTree, ) -> Result<Self, ValidationError>
Prepares bounded leaf matching and exact cubic path pairs once. Input trees remain immutable. Up to 1024 painted parts per side are admitted.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Morph
impl !UnwindSafe for Morph
impl Forget for Morph
impl Freeze for Morph
impl Send for Morph
impl Sync for Morph
impl Unpin for Morph
impl UnsafeUnpin for Morph
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
Mutably borrows from an owned value. Read more