mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-03-03 00:00:57 +08:00
动画完成
This commit is contained in:
@@ -730,28 +730,28 @@ namespace AIStudio.Wpf.DiagramDesigner
|
||||
SinkConnectorInfo = sink;
|
||||
}
|
||||
|
||||
public void SetPathGeneratorParameter(double smoothMargin, double smoothAutoSlope, double orthogonalShapeMargin, double orthogonalGlobalBoundsMargin)
|
||||
public void SetPathGeneratorParameter(double? smoothMargin, double? smoothAutoSlope, double? orthogonalShapeMargin, double? orthogonalGlobalBoundsMargin)
|
||||
{
|
||||
bool hasChanged = false;
|
||||
if (SmoothMargin != smoothMargin)
|
||||
if (smoothMargin != null && SmoothMargin != smoothMargin)
|
||||
{
|
||||
hasChanged = true;
|
||||
SmoothMargin = smoothMargin;
|
||||
SmoothMargin = smoothMargin.Value;
|
||||
}
|
||||
if (SmoothAutoSlope != smoothAutoSlope)
|
||||
if (smoothAutoSlope != null && SmoothAutoSlope != smoothAutoSlope)
|
||||
{
|
||||
hasChanged = true;
|
||||
SmoothAutoSlope = smoothAutoSlope;
|
||||
SmoothAutoSlope = smoothAutoSlope.Value;
|
||||
}
|
||||
if (OrthogonalShapeMargin != orthogonalShapeMargin)
|
||||
if (orthogonalShapeMargin != null && OrthogonalShapeMargin != orthogonalShapeMargin)
|
||||
{
|
||||
hasChanged = true;
|
||||
OrthogonalShapeMargin = orthogonalShapeMargin;
|
||||
OrthogonalShapeMargin = orthogonalShapeMargin.Value;
|
||||
}
|
||||
if (OrthogonalGlobalBoundsMargin != orthogonalGlobalBoundsMargin)
|
||||
if (orthogonalGlobalBoundsMargin != null && OrthogonalGlobalBoundsMargin != orthogonalGlobalBoundsMargin)
|
||||
{
|
||||
hasChanged = true;
|
||||
OrthogonalGlobalBoundsMargin = orthogonalGlobalBoundsMargin;
|
||||
OrthogonalGlobalBoundsMargin = orthogonalGlobalBoundsMargin.Value;
|
||||
}
|
||||
if (hasChanged)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user