Added size observer to enable auto-centering the editor at some point

This commit is contained in:
SpoinkyNL committed 2019-11-26 23:24:54 +01:00
1 parent 8161f19f6c
commit 079e88f91f
5 files changed
+85 -46

No files matched your search

@@ -20,6 +20,8 @@ namespace Artemis.UI.Screens.Shared
public double PanX { get; set; }
public double PanY { get; set; }
public double CanvasWidth { get; set; }
public double CanvasHeight { get; set; }
public Rect BackgroundViewport => new Rect(PanX, PanY, 20, 20);