Show outlines for all layers

Rotation fixes
Movement fixes
This commit is contained in:
Robert committed 2020-02-06 15:48:37 +01:00
1 parent 07d9a5f784
commit 5478c2531e
7 files changed
+53 -49

No files matched your search

@@ -18,8 +18,9 @@ namespace Artemis.UI.Services.Interfaces
/// Returns the layer's anchor, corrected for the current render scale.
/// </summary>
/// <param name="layer"></param>
/// <param name="positionOverride"></param>
/// <returns></returns>
Point GetLayerAnchorPosition(Layer layer);
Point GetLayerAnchorPosition(Layer layer, SKPoint? positionOverride = null);
/// <summary>
/// Creates a WPF transform group that contains all the transformations required to render the provided layer.
@@ -36,8 +37,9 @@ namespace Artemis.UI.Services.Interfaces
/// <param name="includeTranslation"></param>
/// <param name="includeScale"></param>
/// <param name="includeRotation"></param>
/// <param name="anchorOverride"></param>
/// <returns></returns>
SKPath GetLayerPath(Layer layer, bool includeTranslation, bool includeScale, bool includeRotation);
SKPath GetLayerPath(Layer layer, bool includeTranslation, bool includeScale, bool includeRotation, SKPoint? anchorOverride = null);
/// <summary>
/// Returns a new point scaled to the layer.
@@ -47,5 +49,7 @@ namespace Artemis.UI.Services.Interfaces
/// <param name="absolute"></param>
/// <returns></returns>
SKPoint GetScaledPoint(Layer layer, SKPoint point, bool absolute);
SKPoint GetDragOffset(Layer layer, SKPoint dragStart);
}
}