namespace EGFramework.Code{ public class EGSvgGenerator : IGenerateToolsInterface { public string SvgHeader { get ; private set;} public const string SvgFooter = ""; public int Width { get; set; } public int Height { get; set; } public EGSvgViewBox ViewBox { get; set; } public EGSvgGenerator(int width, int height, EGSvgViewBox viewBox) { Width = width; Height = height; ViewBox = viewBox; SvgHeader = $""; } public void DrawCircle(float x, float y, float radius, string color) { // Implementation for drawing a circle in SVG format string svgCircle = $""; } public void DrawEllipse(float cx, float cy, float rx, float ry, string color) { // Implementation for drawing an ellipse in SVG format string svgEllipse = $""; } public void DrawPolygon(float[] points, string color) { // Implementation for drawing a polygon in SVG format string svgPolygon = ""; } public void DrawPolyline(float[] points, string color) { // Implementation for drawing a polyline in SVG format string svgPolyline = ""; } public void DrawPath(string d, string color) { // Implementation for drawing a path in SVG format string svgPath = $""; } public void DrawRectangle(float x, float y, float width, float height, string color) { // Implementation for drawing a rectangle in SVG format string svgRectangle = $""; } public void DrawLine(float x1, float y1, float x2, float y2, string color) { // Implementation for drawing a line in SVG format string svgLine = $""; } public void DrawText(float x, float y, string text, string color) { // Implementation for drawing text in SVG format string svgText = $"{text}"; } public string GenerateCode() { return typeof(T).Name; } } public struct EGSvgViewBox { public float X { get; set; } public float Y { get; set; } public float Width { get; set; } public float Height { get; set; } public EGSvgViewBox(float x, float y, float width, float height) { X = x; Y = y; Width = width; Height = height; } } }