Files
Umbraco-CMS/src/Umbraco.Core/PropertyEditors/ImageCropperConfiguration.cs

26 lines
686 B
C#
Raw Normal View History

2018-02-02 19:43:03 +01:00
using Newtonsoft.Json;
2018-01-24 11:44:44 +01:00
namespace Umbraco.Core.PropertyEditors
2018-01-24 11:44:44 +01:00
{
/// <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; }
2018-02-02 19:43:03 +01:00
public class Crop
2018-02-02 19:43:03 +01:00
{
[JsonProperty("alias")]
public string Alias { get; set; }
[JsonProperty("width")]
public int Width { get; set; }
[JsonProperty("height")]
public int Height { get; set; }
}
2018-01-24 11:44:44 +01:00
}
}