From 8bdc9c17b8cb523ce4e34b8323ee45940dc74ca8 Mon Sep 17 00:00:00 2001 From: Erin McLaughlin Date: Sat, 18 May 2024 18:53:39 -0400 Subject: [PATCH] renamed dimensions --- src/HeadlessBlazor.Core/Utilities/DOM.cs | 4 ++-- src/HeadlessBlazor.Core/Utilities/Dimensions.cs | 3 +++ src/HeadlessBlazor.Core/Utilities/WindowDimensions.cs | 3 --- 3 files changed, 5 insertions(+), 5 deletions(-) create mode 100644 src/HeadlessBlazor.Core/Utilities/Dimensions.cs delete mode 100644 src/HeadlessBlazor.Core/Utilities/WindowDimensions.cs diff --git a/src/HeadlessBlazor.Core/Utilities/DOM.cs b/src/HeadlessBlazor.Core/Utilities/DOM.cs index d2291d0..ddce8f8 100644 --- a/src/HeadlessBlazor.Core/Utilities/DOM.cs +++ b/src/HeadlessBlazor.Core/Utilities/DOM.cs @@ -7,9 +7,9 @@ public sealed class DOM(IJSRuntime js) : IAsyncDisposable { private readonly Lazy> _module = new(() => js.InvokeAsync("import", "./_content/HeadlessBlazor.Core/utils.js")); - public async ValueTask GetWindowDimensionsAsync() + public async ValueTask GetWindowDimensionsAsync() { - return await InvokeAsync("getWindowDimensions"); + return await InvokeAsync("getWindowDimensions"); } public async ValueTask GetBoundingClientRect(ElementReference element) diff --git a/src/HeadlessBlazor.Core/Utilities/Dimensions.cs b/src/HeadlessBlazor.Core/Utilities/Dimensions.cs new file mode 100644 index 0000000..73d2e6c --- /dev/null +++ b/src/HeadlessBlazor.Core/Utilities/Dimensions.cs @@ -0,0 +1,3 @@ +namespace HeadlessBlazor.Utilities; + +public sealed record Dimensions(double Height, double Width); \ No newline at end of file diff --git a/src/HeadlessBlazor.Core/Utilities/WindowDimensions.cs b/src/HeadlessBlazor.Core/Utilities/WindowDimensions.cs deleted file mode 100644 index 24a7668..0000000 --- a/src/HeadlessBlazor.Core/Utilities/WindowDimensions.cs +++ /dev/null @@ -1,3 +0,0 @@ -namespace HeadlessBlazor.Utilities; - -public sealed record WindowDimensions(double Height, double Width); \ No newline at end of file