mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-04-28 20:23:25 +08:00
优化画形状
This commit is contained in:
@@ -60,7 +60,11 @@ namespace AIStudio.Wpf.DiagramDesigner
|
|||||||
{
|
{
|
||||||
pointList.Add(this.startPoint.Value);
|
pointList.Add(this.startPoint.Value);
|
||||||
}
|
}
|
||||||
pointList.Add(endPoint.Value);
|
//点不需要保存的太密集了
|
||||||
|
if ((endPoint.Value - pointList.Last()).Length >= 1)
|
||||||
|
{
|
||||||
|
pointList.Add(endPoint.Value);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
UpdateSelection();
|
UpdateSelection();
|
||||||
|
|||||||
@@ -12,6 +12,17 @@ namespace AIStudio.Wpf.DiagramDesigner
|
|||||||
{
|
{
|
||||||
public class ShapeDesignerItemViewModel : DesignerItemViewModelBase
|
public class ShapeDesignerItemViewModel : DesignerItemViewModelBase
|
||||||
{
|
{
|
||||||
|
public ShapeDesignerItemViewModel() : this(null)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public ShapeDesignerItemViewModel(IDiagramViewModel root) : base(root)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
public ShapeDesignerItemViewModel(DrawMode drawMode, List<Point> points) : this(null, drawMode, points)
|
public ShapeDesignerItemViewModel(DrawMode drawMode, List<Point> points) : this(null, drawMode, points)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user