feat: tank tree svg first step

This commit is contained in:
Michael Shabanov committed 2022-07-20 17:41:30 +02:00
1 parent 486538acc0
commit 91f3213122
5 files changed
+83 -3

No files matched your search

@@ -5,5 +5,9 @@ namespace WotBlitzStatisticsPro.Blazor.Services
public interface IMediaQueriesService
{
ValueTask<bool> IsScreenWidthLessThen(long widthInPx);
ValueTask<int> WindowWidth();
ValueTask<int> WindowHeight();
}
}
@@ -16,5 +16,15 @@ namespace WotBlitzStatisticsPro.Blazor.Services
{
return _jsRuntime.InvokeAsync<bool>("mediaQueries.IsScreenWidthLessThen", widthInPx);
}
public ValueTask<int> WindowHeight()
{
return _jsRuntime.InvokeAsync<int>("mediaQueries.ScreenHeight");
}
public ValueTask<int> WindowWidth()
{
return _jsRuntime.InvokeAsync<int>("mediaQueries.ScreenWidth");
}
}
}