feat(project): settle phase 4 contracts: conditional settings format, transforms, look, output size
Groundwork for owner review 1, phase 4, so the parallel packages build on fixed contracts and strings. - Settings: camera rotate/mirror/flip/straighten and a look, declared after the existing members and omitted at default. ToJson writes the lowest format that renders the same (2 only while a transform or look is used), so projects without them keep byte-identical text and hash; an old-build simulation test proves the order survives an older build's round trip. - RenderSize and RenderRules: proportions win over a fixed preset box, and the routing format a job needs. - FrameOrientation, CropFrame, OrientationEdit, LookFilter (identity) and FrameFinish (look, then knee) wired into the render pipeline and preview; RenderGeometry gains view-frame members equivalent to today. - Protocol trailing members for node, job and server formats; SyncText keys; EditPath counts transforms and the look as hand values. - New en/it strings and tooltips, five icons, test fixtures moved to v3 as the first unread format, and the 18 DECISIONS rows. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
4ad29977b9
commit
e4364c4f25
43 files changed
+1544
-178
No files matched your search
@@ -138,6 +138,28 @@ 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):
|
||||
cx, cy, r, a0, a1 = 8, 8.5, 5.5, 295, 65
|
||||
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"}
|
||||
|
||||
Reference in new issue
Block a user