MockDocument.cs 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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 Guid DocumentId { get; }
  14. public IReadOnlyNodeGraph NodeGraph { get; }
  15. public IReadOnlySelection Selection { get; }
  16. public IReadOnlyAnimationData AnimationData { get; }
  17. public VecI Size { get; } = new VecI(16, 16);
  18. public bool HorizontalSymmetryAxisEnabled { get; }
  19. public bool VerticalSymmetryAxisEnabled { get; }
  20. public double HorizontalSymmetryAxisY { get; }
  21. public double VerticalSymmetryAxisX { get; }
  22. public void ForEveryReadonlyMember(Action<IReadOnlyStructureNode> action)
  23. {
  24. throw new NotImplementedException();
  25. }
  26. public Image? GetLayerRasterizedImage(Guid layerGuid, int frame)
  27. {
  28. throw new NotImplementedException();
  29. }
  30. public RectI? GetChunkAlignedLayerBounds(Guid layerGuid, int frame)
  31. {
  32. throw new NotImplementedException();
  33. }
  34. public IReadOnlyNode FindNode(Guid guid)
  35. {
  36. throw new NotImplementedException();
  37. }
  38. public IReadOnlyStructureNode? FindMember(Guid guid)
  39. {
  40. throw new NotImplementedException();
  41. }
  42. public bool TryFindMember<T>(Guid guid, out T? member) where T : IReadOnlyStructureNode
  43. {
  44. throw new NotImplementedException();
  45. }
  46. public bool TryFindMember(Guid guid, out IReadOnlyStructureNode? member)
  47. {
  48. throw new NotImplementedException();
  49. }
  50. public IReadOnlyStructureNode FindMemberOrThrow(Guid guid)
  51. {
  52. throw new NotImplementedException();
  53. }
  54. public (IReadOnlyStructureNode, IReadOnlyNode) FindChildAndParentOrThrow(Guid childGuid)
  55. {
  56. throw new NotImplementedException();
  57. }
  58. public IReadOnlyList<IReadOnlyStructureNode> FindMemberPath(Guid guid)
  59. {
  60. throw new NotImplementedException();
  61. }
  62. public IReadOnlyReferenceLayer? ReferenceLayer { get; }
  63. public DocumentRenderer Renderer { get; }
  64. public ColorSpace ProcessingColorSpace { get; }
  65. public void InitProcessingColorSpace(ColorSpace processingColorSpace)
  66. {
  67. throw new NotImplementedException();
  68. }
  69. }