From 8206852bc5a2fc7c9bc4a3a164652615c5957992 Mon Sep 17 00:00:00 2001 From: Erik Henningson Date: Thu, 4 Jan 2024 20:39:23 +0100 Subject: [PATCH] Make GetPictureData public as requested in #19 (#20) --- PictureRenderer/MediaImagesPictureData.cs | 4 ++-- PictureRenderer/PictureData.cs | 2 +- PictureRenderer/PictureRenderer.csproj | 2 +- PictureRenderer/PictureUtils.cs | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/PictureRenderer/MediaImagesPictureData.cs b/PictureRenderer/MediaImagesPictureData.cs index 7b8adb0..286b832 100644 --- a/PictureRenderer/MediaImagesPictureData.cs +++ b/PictureRenderer/MediaImagesPictureData.cs @@ -2,12 +2,12 @@ namespace PictureRenderer { - internal class MediaImagesPictureData : PictureData + public class MediaImagesPictureData : PictureData { public IEnumerable MediaImages { get; set; } } - internal class MediaImagePaths + public class MediaImagePaths { public string ImagePath { get; set; } public string ImagePathWebp { get; set; } diff --git a/PictureRenderer/PictureData.cs b/PictureRenderer/PictureData.cs index 2e6c514..56dcecb 100644 --- a/PictureRenderer/PictureData.cs +++ b/PictureRenderer/PictureData.cs @@ -1,6 +1,6 @@ namespace PictureRenderer { - internal class PictureData + public class PictureData { public string SrcSet { get; set; } public string SrcSetWebp { get; set; } diff --git a/PictureRenderer/PictureRenderer.csproj b/PictureRenderer/PictureRenderer.csproj index c526533..4b47a1e 100644 --- a/PictureRenderer/PictureRenderer.csproj +++ b/PictureRenderer/PictureRenderer.csproj @@ -2,7 +2,7 @@ netstandard2.0 - 3.10 + 3.11 Erik Henningson diff --git a/PictureRenderer/PictureUtils.cs b/PictureRenderer/PictureUtils.cs index 1f09401..2e4ed2e 100644 --- a/PictureRenderer/PictureUtils.cs +++ b/PictureRenderer/PictureUtils.cs @@ -9,7 +9,7 @@ namespace PictureRenderer { - internal static class PictureUtils + public static class PictureUtils { public static PictureData GetPictureData(string imagePath, PictureProfileBase profile, string altText, (double x, double y) focalPoint, string cssClass) {