线条动画支持大小切换

This commit is contained in:
艾竹
2023-04-29 18:36:50 +08:00
parent f4268b9fc2
commit 4a3f278a97
30 changed files with 1095 additions and 317 deletions

View File

@@ -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;
}