mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-04-05 08:46:34 +08:00
线条动画支持大小切换
This commit is contained in:
@@ -223,12 +223,14 @@ namespace AIStudio.Wpf.DiagramDesigner
|
||||
public static IAnimationViewModel Mapper(IAnimationViewModel s)
|
||||
{
|
||||
var d = CopyHelper.Mapper<AnimationViewModel, IAnimationViewModel>(s);
|
||||
d.AnimationPath = CopyHelper.Mapper<SharpPath, ISharpPath>(s.AnimationPath);
|
||||
return d;
|
||||
}
|
||||
|
||||
public static T Mapper<T>(IAnimationViewModel s) where T : IAnimationViewModel
|
||||
{
|
||||
var d = CopyHelper.Mapper<T, IAnimationViewModel>(s);
|
||||
d.AnimationPath = CopyHelper.Mapper<SharpPathItem, ISharpPath>(s.AnimationPath);
|
||||
return d;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user