重构Title相关代码

This commit is contained in:
monitor1394
2025-04-17 22:10:47 +08:00
parent e124d38d3e
commit a0dba26318
7 changed files with 160 additions and 50 deletions

View File

@@ -219,5 +219,10 @@ namespace XCharts.Runtime
yield return new WaitForEndOfFrame();
ChartHelper.SaveAsImage(rectTransform, canvas, imageType, path);
}
public Vector3 GetTitlePosition(Title title)
{
return graphPosition + title.location.GetPosition(graphWidth, graphHeight);
}
}
}