MockDocument.cs 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. using Drawie.Backend.Core.Surfaces.ImageData;
  2. using Drawie.Numerics;
  3. using PixiEditor.ChangeableDocument.Changeables.Graph.Interfaces;
  4. using PixiEditor.ChangeableDocument.Changeables.Interfaces;
  5. using PixiEditor.ChangeableDocument.Rendering;
  6. namespace PixiEditor.Backend.Tests;
  7. public class MockDocument : IReadOnlyDocument
  8. {
  9. public void Dispose()
  10. {
  11. throw new NotImplementedException();
  12. }
  13. public IReadOnlyNodeGraph NodeGraph { get; }
  14. public IReadOnlySelection Selection { get; }
  15. public IReadOnlyAnimationData AnimationData { get; }
  16. public VecI Size { get; } = new VecI(16, 16);
  17. public bool HorizontalSymmetryAxisEnabled { get; }
  18. public bool VerticalSymmetryAxisEnabled { get; }
  19. public double HorizontalSymmetryAxisY { get; }
  20. public double VerticalSymmetryAxisX { get; }
  21. public void ForEveryReadonlyMember(Action<IReadOnlyStructureNode> action)
  22. {
  23. throw new NotImplementedException();
  24. }
  25. public Image? GetLayerRasterizedImage(Guid layerGuid, int frame)
  26. {
  27. throw new NotImplementedException();
  28. }
  29. public RectI? GetChunkAlignedLayerBounds(Guid layerGuid, int frame)
  30. {
  31. throw new NotImplementedException();
  32. }
  33. public IReadOnlyNode FindNode(Guid guid)
  34. {
  35. throw new NotImplementedException();
  36. }
  37. public IReadOnlyStructureNode? FindMember(Guid guid)
  38. {
  39. throw new NotImplementedException();
  40. }
  41. public bool TryFindMember<T>(Guid guid, out T? member) where T : IReadOnlyStructureNode
  42. {
  43. throw new NotImplementedException();
  44. }
  45. public bool TryFindMember(Guid guid, out IReadOnlyStructureNode? member)
  46. {
  47. throw new NotImplementedException();
  48. }
  49. public IReadOnlyStructureNode FindMemberOrThrow(Guid guid)
  50. {
  51. throw new NotImplementedException();
  52. }
  53. public (IReadOnlyStructureNode, IReadOnlyNode) FindChildAndParentOrThrow(Guid childGuid)
  54. {
  55. throw new NotImplementedException();
  56. }
  57. public IReadOnlyList<IReadOnlyStructureNode> FindMemberPath(Guid guid)
  58. {
  59. throw new NotImplementedException();
  60. }
  61. public IReadOnlyReferenceLayer? ReferenceLayer { get; }
  62. public DocumentRenderer Renderer { get; }
  63. }