Skip to content

Commit

Permalink
renamed dimensions
Browse files Browse the repository at this point in the history
  • Loading branch information
erinnmclaughlin committed May 18, 2024
1 parent f6aa7d2 commit 8bdc9c1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/HeadlessBlazor.Core/Utilities/DOM.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ public sealed class DOM(IJSRuntime js) : IAsyncDisposable
{
private readonly Lazy<ValueTask<IJSObjectReference>> _module = new(() => js.InvokeAsync<IJSObjectReference>("import", "./_content/HeadlessBlazor.Core/utils.js"));

public async ValueTask<WindowDimensions> GetWindowDimensionsAsync()
public async ValueTask<Dimensions> GetWindowDimensionsAsync()
{
return await InvokeAsync<WindowDimensions>("getWindowDimensions");
return await InvokeAsync<Dimensions>("getWindowDimensions");
}

public async ValueTask<ClientRect> GetBoundingClientRect(ElementReference element)
Expand Down
3 changes: 3 additions & 0 deletions src/HeadlessBlazor.Core/Utilities/Dimensions.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
namespace HeadlessBlazor.Utilities;

public sealed record Dimensions(double Height, double Width);
3 changes: 0 additions & 3 deletions src/HeadlessBlazor.Core/Utilities/WindowDimensions.cs

This file was deleted.

0 comments on commit 8bdc9c1

Please sign in to comment.