Merge branch 'development' into VisualScripting

This commit is contained in:
Robert committed 2021-08-23 20:42:36 +02:00
commit 3874078f16
35 files changed
+790 -506

No files matched your search

@@ -259,8 +259,14 @@ namespace Artemis.UI.Screens.ProfileEditor.Visualization
public void ResetZoomAndPan()
{
if (!Devices.Any())
{
PanZoomViewModel.Reset();
return;
}
// Create a rect surrounding all devices
SKRect rect = new SKRect(
SKRect rect = new(
Devices.Min(d => d.Rectangle.Left),
Devices.Min(d => d.Rectangle.Top),
Devices.Max(d => d.Rectangle.Right),