Files
Umbraco-CMS/src/Umbraco.Core/PropertyEditors/ImageCropperConfiguration.cs
2018-02-08 16:08:52 +01:00

26 lines
686 B
C#

using Newtonsoft.Json;
namespace Umbraco.Core.PropertyEditors
{
/// <summary>
/// Represents the configuration for the image cropper value editor.
/// </summary>
public class ImageCropperConfiguration
{
[ConfigurationField("crops", "Crop sizes", "views/propertyeditors/imagecropper/imagecropper.prevalues.html")]
public Crop[] Crops { get; set; }
public class Crop
{
[JsonProperty("alias")]
public string Alias { get; set; }
[JsonProperty("width")]
public int Width { get; set; }
[JsonProperty("height")]
public int Height { get; set; }
}
}
}