增加MarkLineonTop设置是否显示在最上层

This commit is contained in:
monitor1394
2023-11-01 22:41:47 +08:00
parent d8ecb94dd9
commit 304726debf
6 changed files with 26 additions and 1 deletions

View File

@@ -19,9 +19,16 @@ namespace XCharts.Runtime
InitMarkLine(component);
}
public override void DrawBase(VertexHelper vh)
{
if (!component.onTop)
DrawMarkLine(vh, component);
}
public override void DrawUpper(VertexHelper vh)
{
DrawMarkLine(vh, component);
if (component.onTop)
DrawMarkLine(vh, component);
}
public override void Update()