Fase 2 stap B (backend): uitsnede per slide met eigen set, renderer, mapping en endpoints
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -34,6 +34,34 @@ public class HeroSlide
|
||||
public bool Decorative { get; set; }
|
||||
public int SortOrder { get; set; }
|
||||
public bool IsActive { get; set; } = true;
|
||||
|
||||
// The slide's OWN crop (phase 2, crop per use). All null = no override: the slide uses its photo's crop and set exactly
|
||||
// as before. FocusX/FocusY/Zoom set = the slide has its own crop (the wide and tall overrides are optional on top).
|
||||
public double? FocusX { get; set; }
|
||||
public double? FocusY { get; set; }
|
||||
public double? Zoom { get; set; }
|
||||
public double? WideFocusX { get; set; }
|
||||
public double? WideFocusY { get; set; }
|
||||
public double? WideZoom { get; set; }
|
||||
public double? TallFocusX { get; set; }
|
||||
public double? TallFocusY { get; set; }
|
||||
public double? TallZoom { get; set; }
|
||||
|
||||
/// <summary>The set cut for the slide's own crop; empty until it is complete (the photo's set stays live until then).</summary>
|
||||
public string? SetHash { get; set; }
|
||||
public List<HeroVariant>? Variants { get; set; }
|
||||
|
||||
/// <summary>True when the slide has a crop of its own.</summary>
|
||||
public bool HasOwnCrop => FocusX is not null && FocusY is not null;
|
||||
|
||||
public void ClearOwnCrop()
|
||||
{
|
||||
(FocusX, FocusY, Zoom) = (null, null, null);
|
||||
(WideFocusX, WideFocusY, WideZoom) = (null, null, null);
|
||||
(TallFocusX, TallFocusY, TallZoom) = (null, null, null);
|
||||
SetHash = null;
|
||||
Variants = null;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>A stored image: the original (never served), where the subject is, and the current set of variants.</summary>
|
||||
|
||||
Reference in New Issue
Block a user