feat(editor): integrate the phase 4 crop, orientation and look packages
Joins the preview crop interaction (P3) and the step controls (P4): - "Optimise" on the Camera step now advises on the turned view (SequenceContext.ForCamera) when the camera is turned or flipped, so it keeps the transposed aspect a quarter turn wrote instead of putting the unturned one back. - The capture gains edit-camera-crop (a moved 9:16 box with its handles), edit-camera-straighten (turned right, straightened 3°, with the grid) and edit-exposure-look (Sepia at 60 % with the compare wipe), each undone after; SampleData holds the three project changes. - The crop-margin, offset X and crop tooltip strings and Export.Render.AspectFromPreset are no longer used: removed from en/it and pruned from the other cultures. Editor.Camera.OffsetY stays, as the advisor's horizon placement still names it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
b06f5aa852
commit
2a8344aee0
118 files changed
+112
-344
No files matched your search
@@ -450,6 +450,24 @@ public sealed class EditorSessionTests
|
||||
}
|
||||
}
|
||||
|
||||
[Test]
|
||||
public async Task OptimiseAfterATurnAdvisesTheAspectOfTheTurnedView()
|
||||
{
|
||||
var (session, _) = Open();
|
||||
await using (session)
|
||||
{
|
||||
session.Edit(p => Advisor.Apply(p, session.Advice));
|
||||
var advised = EditorSettings.Aspect.Effective(session.Project, null);
|
||||
Assert.True(advised is "16:9" or "9:16", "the analysis advises a video aspect");
|
||||
Assert.True(session.Orient(OrientationOp.RotateRight));
|
||||
var turned = EditorSettings.Aspect.Effective(session.Project, null);
|
||||
Assert.NotEqual(advised, turned, "the turn transposes the advised aspect");
|
||||
|
||||
session.Optimise(AdvisorSection.Camera);
|
||||
Assert.Equal(turned, EditorSettings.Aspect.Effective(session.Project, null), "the advice is worked out on the turned view");
|
||||
}
|
||||
}
|
||||
|
||||
[Test]
|
||||
public async Task ATurnSeenThroughAMirrorTurnsThePictureTheWayTheUserPressed()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user