mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-03-19 16:06:35 +08:00
几个小bug
This commit is contained in:
@@ -1804,7 +1804,7 @@
|
||||
</Fluent:SplitButton>
|
||||
</Fluent:RibbonGroupBox>
|
||||
</Fluent:RibbonTabItem>
|
||||
<Fluent:RibbonTabItem Header="脑图" Visibility="{Binding PageViewModel.DiagramType,Converter={dd:ConverterValueMapSetToVisibility},ConverterParameter='Mind'}">
|
||||
<Fluent:RibbonTabItem Header="思维导图" Visibility="{Binding PageViewModel.DiagramType,Converter={dd:ConverterValueMapSetToVisibility},ConverterParameter='Mind'}">
|
||||
<Fluent:RibbonGroupBox Header="思路" IsLauncherVisible="True">
|
||||
<Fluent:Button Header="插入下级主题" SizeDefinition="Middle" Width="110" VerticalAlignment="Top" Command="{Binding PageViewModel.DiagramViewModel.AddChildCommand}">
|
||||
<Fluent:Button.Icon>
|
||||
|
||||
@@ -658,7 +658,9 @@ namespace AIStudio.Wpf.DiagramDesigner
|
||||
_viewModel.AddItemCommand.Execute(itemBase);
|
||||
}
|
||||
}
|
||||
e.Handled = true;
|
||||
e.Handled = true;
|
||||
|
||||
this.Focus();
|
||||
}
|
||||
|
||||
public FullyCreatedConnectorInfo FindNearPortToAttachTo()
|
||||
|
||||
@@ -198,6 +198,7 @@ namespace AIStudio.Wpf.DiagramDesigner
|
||||
xOffset += vector.X;
|
||||
yOffset += vector.Y;
|
||||
}
|
||||
this.ScrollViewer.ScrollToHorizontalOffset(xOffset);
|
||||
this.ScrollViewer.ScrollToVerticalOffset(yOffset);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,10 +10,33 @@ namespace AIStudio.Wpf.Mind.Helpers
|
||||
{
|
||||
public interface IMindLayout
|
||||
{
|
||||
/// <summary>
|
||||
/// 默认节点样式设置
|
||||
/// </summary>
|
||||
/// <param name="mindNode"></param>
|
||||
void Appearance(MindNode mindNode);
|
||||
|
||||
/// <summary>
|
||||
/// 节点样式设置
|
||||
/// </summary>
|
||||
/// <param name="mindNode"></param>
|
||||
/// <param name="mindTheme"></param>
|
||||
/// <param name="initAppearance"></param>
|
||||
void Appearance(MindNode mindNode, MindTheme mindTheme, bool initAppearance);
|
||||
|
||||
/// <summary>
|
||||
/// 连线类型设置
|
||||
/// </summary>
|
||||
/// <param name="source"></param>
|
||||
/// <param name="sink"></param>
|
||||
/// <param name="connector"></param>
|
||||
/// <returns></returns>
|
||||
ConnectionViewModel GetOrSetConnectionViewModel(MindNode source, MindNode sink, ConnectionViewModel connector = null);
|
||||
void UpdatedLayout(MindNode mindNode);
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 更新布局
|
||||
/// </summary>
|
||||
/// <param name="mindNode"></param>
|
||||
void UpdatedLayout(MindNode mindNode);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user