feat(editor): visual crop, rotate/mirror/flip/straighten, colour looks (owner review 1 phase 4) (#26)
CI / Build and test (push) Successful in 8m19s
CI / Windows tests and installer (push) Skipped
CI / YAML check (push) Successful in 7s
Release / Build, test and publish (push) Successful in 12m9s
CI / PostgreSQL 16 integration (push) Successful in 7m49s
CI / PostgreSQL 17 integration (push) Successful in 7m19s
CI / Docker image (push) Successful in 46s
Release / Server image (push) Successful in 1m14s

Owner review 1 R5 + R6. Camera rotation, mirror, flip, straighten and crop handles locked to the output; an Exposure Look group; Export output size ("proportions win"); settings format 2 with older-node gates. Also fixes project text and hashes differing between Windows and Linux.

Closes #19
Closes #20

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Alberto Balbo <alberto.balbo.96@gmail.com>
This commit was merged in pull request #26.
This commit is contained in:
Alby96andClaude Opus 5.5 authored and Alby96 committed 2026-11-05 01:09:09 +01:00
1 parent db389a54f2
commit 188b2c2e55
355 files changed
+10549 -1061

No files matched your search

+24
View File
@@ -138,6 +138,30 @@ I["Triangle"] = (None, "M8 3 L13.5 12.5 H2.5 Z")
I["TriangleRight"] = (None, "M5 3 L12 8 L5 13 Z")
I["Cross"] = ("M4.5 4.5 L11.5 11.5 M11.5 4.5 L4.5 11.5", None)
# Owner review 1, R6: the Camera step's orientation controls. A turn is a picture under a quarter-circle arrow; mirror and
# flip are two triangles across a dashed axis, the outline one becoming the filled one; straighten levels a tilted line.
def head(tx, ty, angle, size=2.4, spread=40):
"""Arrowhead strokes ending at (tx, ty) for travel along angle degrees (0 = 12 o'clock, clockwise)."""
f = lambda v: f"{v:.2f}".rstrip("0").rstrip(".")
back = math.radians(angle + 180)
wing = lambda d: (tx + size * math.sin(back + math.radians(d)), ty - size * math.cos(back + math.radians(d)))
(ax, ay), (bx, by) = wing(-spread), wing(spread)
return f"M{f(ax)} {f(ay)} L{f(tx)} {f(ty)} L{f(bx)} {f(by)}"
def turn_arrow(clockwise):
# A lopsided arc, longer on the side the turn starts from, so the two directions read as mirror images at 16 px.
cx, cy, r = 8, 8.5, 5.5
a0, a1 = (250, 65) if clockwise else (295, 110)
x1, y1 = cx + r * math.sin(math.radians(a1)), cy - r * math.cos(math.radians(a1))
x0, y0 = cx + r * math.sin(math.radians(a0)), cy - r * math.cos(math.radians(a0))
return arc(cx, cy, r, a0, a1) + " " + (head(x1, y1, a1 + 90) if clockwise else head(x0, y0, a0 - 90))
I["RotateRight"] = (rr(4.5,9.5,7,5,1)+" "+turn_arrow(True), None)
I["RotateLeft"] = (rr(4.5,9.5,7,5,1)+" "+turn_arrow(False), None)
I["Mirror"] = ("M8 1.5 V3 M8 5.5 V7.5 M8 10 V12 M8 14 V14.5 M6 4 V12.5 H1.5 Z", "M10 4 L14.5 12.5 H10 Z")
I["Flip"] = ("M1.5 8 H3 M5.5 8 H7.5 M10 8 H12 M14 8 H14.5 M4 6 H12.5 V1.5 Z", "M4 10 L12.5 14.5 V10 Z")
I["Straighten"] = ("M1.5 12.5 H14.5 M2.5 12.5 L13 6 "+arc(2.5,12.5,7,58.2,90), None)
# Glyphs that point along the reading direction (arrows, chevrons, start-aligned text lines): mirrored in RTL.
# Everything else (clocks, media controls, the ▶ rendered status, symmetric shapes) never mirrors.
DIRECTIONAL = {"Back", "Forward", "ChevronLeft", "ChevronRight", "ExternalLink", "Jobs", "Logs", "ViewList"}