分离逻辑与常规连接点

This commit is contained in:
艾竹
2023-01-31 22:45:50 +08:00
parent 5ee0c1ce26
commit 50eab5e091
18 changed files with 292 additions and 235 deletions

View File

@@ -21,7 +21,7 @@ namespace AIStudio.Wpf.DiagramDesigner
this.Parent = dataItem;
this.IsInnerPoint = isInnerPoint;
this.IsPortless = IsPortless;
this.ValueTypePoint = valueTypePoint;
if (IsInnerPoint == true)
{
BuildMenuOptions();
@@ -71,7 +71,6 @@ namespace AIStudio.Wpf.DiagramDesigner
YRatio = designer.YRatio;
IsInnerPoint = designer.IsInnerPoint;
IsPortless = designer.IsPortless;
ValueTypePoint = designer.ValueTypePoint;
}
}
@@ -150,19 +149,6 @@ namespace AIStudio.Wpf.DiagramDesigner
get; set;
}
public ValueTypePoint _valueTypePoint;
public ValueTypePoint ValueTypePoint
{
get
{
return _valueTypePoint;
}
set
{
SetProperty(ref _valueTypePoint, value);
}
}
private Style _style;
public Style Style
{
@@ -191,6 +177,8 @@ namespace AIStudio.Wpf.DiagramDesigner
public void ExecuteMenuItemCommand(object arg)
{
Orientation = (ConnectorOrientation)arg;
DataItem.Left += 0.1;
DataItem.Left -= 0.1;
}
public void ExecuteDeleteCommand(object arg)