mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-03-20 00:16:36 +08:00
30 lines
966 B
C#
30 lines
966 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using AIStudio.Wpf.DiagramDesigner.Geometrys;
|
|
|
|
namespace AIStudio.Wpf.DiagramDesigner
|
|
{
|
|
public struct ConnectorInfo
|
|
{
|
|
public double DesignerItemLeft { get; set; }
|
|
public double DesignerItemTop { get; set; }
|
|
public SizeBase DesignerItemSize { get; set; }
|
|
public PointBase Position { get; set; }
|
|
public ConnectorOrientation Orientation { get; set; }
|
|
|
|
public static ConnectorInfo GetConnectorInfo(ConnectorOrientation orientation, double left, double top, double width, double height, PointBase position)
|
|
{
|
|
return new ConnectorInfo()
|
|
{
|
|
Orientation = orientation,
|
|
DesignerItemSize = new SizeBase(width, height),
|
|
DesignerItemLeft = left,
|
|
DesignerItemTop = top,
|
|
Position = position
|
|
};
|
|
}
|
|
}
|
|
}
|