MockCanvas.cs 996 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. using QuestPDF.Infrastructure;
  2. using SkiaSharp;
  3. namespace QuestPDF.LayoutTests.TestEngine;
  4. internal class MockCanvas : ICanvas
  5. {
  6. private SKPictureRecorder PictureRecorder { get; }
  7. private SKCanvas Canvas { get; }
  8. public MockCanvas()
  9. {
  10. }
  11. public void Translate(Position vector)
  12. {
  13. }
  14. public void DrawRectangle(Position vector, Size size, string color)
  15. {
  16. }
  17. public void DrawText(SKTextBlob skTextBlob, Position position, TextStyle style)
  18. {
  19. }
  20. public void DrawImage(SKImage image, Position position, Size size)
  21. {
  22. }
  23. public void DrawHyperlink(string url, Size size)
  24. {
  25. }
  26. public void DrawSectionLink(string sectionName, Size size)
  27. {
  28. }
  29. public void DrawSection(string sectionName)
  30. {
  31. }
  32. public void Rotate(float angle)
  33. {
  34. }
  35. public void Scale(float scaleX, float scaleY)
  36. {
  37. }
  38. }