mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-04-02 15:16:37 +08:00
箭头分离到独立的model中,方便自定义path
This commit is contained in:
@@ -17,8 +17,8 @@ namespace AIStudio.Wpf.DiagramDesigner
|
||||
|
||||
route = GetRouteWithCurvePoints(link, route);
|
||||
|
||||
double sourceAngle = SourceMarkerAdjustement(route, link.ColorViewModel.LeftArrowSize);
|
||||
double targetAngle = TargetMarkerAdjustement(route, link.ColorViewModel.RightArrowSize);
|
||||
double sourceAngle = SourceMarkerAdjustement(route, link.GetSourceMarkerWidth());
|
||||
double targetAngle = TargetMarkerAdjustement(route, link.GetSinkMarkerWidth());
|
||||
|
||||
DoShift(route, link);
|
||||
|
||||
@@ -28,8 +28,8 @@ namespace AIStudio.Wpf.DiagramDesigner
|
||||
|
||||
private static PathGeneratorResult CurveThroughPoints(PointBase[] route, ConnectionViewModel link)
|
||||
{
|
||||
double sourceAngle = SourceMarkerAdjustement(route, link.ColorViewModel.LeftArrowSize);
|
||||
double targetAngle = TargetMarkerAdjustement(route, link.ColorViewModel.RightArrowSize);
|
||||
double sourceAngle = SourceMarkerAdjustement(route, link.GetSourceMarkerWidth());
|
||||
double targetAngle = TargetMarkerAdjustement(route, link.GetSinkMarkerWidth());
|
||||
|
||||
BezierSpline.GetCurveControlPoints(route, out var firstControlPoints, out var secondControlPoints);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user