mirror of
https://github.com/lantean-code/qbtmud.git
synced 2025-10-23 04:52:22 +00:00
Add project files.
This commit is contained in:
12
Lantean.QBTMudBlade/Interop/InteropHelper.cs
Normal file
12
Lantean.QBTMudBlade/Interop/InteropHelper.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using Microsoft.JSInterop;
|
||||
|
||||
namespace Lantean.QBTMudBlade.Interop
|
||||
{
|
||||
public static class InteropHelper
|
||||
{
|
||||
public static async Task<BoundingClientRect?> GetBoundingClientRect(this IJSRuntime runtime, string id)
|
||||
{
|
||||
return await runtime.InvokeAsync<BoundingClientRect?>("qbt.getBoundingClientRect", id);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user