mirror of
https://github.com/DrMboga/WotBlitzStatisticsBlazor.git
synced 2026-10-23 19:30:06 +02:00
feat: tank tree svg first step
This commit is contained in:
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");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user