SvgExporter.cs 998 B

123456789101112131415161718192021222324252627
  1. // --------------------------------------------------------------------------------------------------------------------
  2. // <copyright file="SvgExporter.cs" company="OxyPlot">
  3. // Copyright (c) 2014 OxyPlot contributors
  4. // </copyright>
  5. // <summary>
  6. // Provides functionality to export plots to scalable vector graphics using text measuring in Avalonia.
  7. // </summary>
  8. // --------------------------------------------------------------------------------------------------------------------
  9. using Avalonia.Controls;
  10. namespace OxyPlot.Avalonia
  11. {
  12. /// <summary>
  13. /// Provides functionality to export plots to scalable vector graphics using text measuring in Avalonia.
  14. /// </summary>
  15. public class SvgExporter : OxyPlot.SvgExporter
  16. {
  17. /// <summary>
  18. /// Initializes a new instance of the <see cref="SvgExporter" /> class.
  19. /// </summary>
  20. public SvgExporter()
  21. {
  22. TextMeasurer = new CanvasRenderContext(new Canvas());
  23. }
  24. }
  25. }