Skip to content

E01 · F01 — Rectangle with corner radius ​

Benefit hypothesis: the symbol designer types a width, a height and a radius, and sees an exact rounded rectangle, whatever the radius typed.

Acceptance criteria ​

  1. A rectangle of integer width and height renders as one <path> in the playground.
  2. A global corner radius rounds the four corners; the requested value is kept and the effective value is shown when they differ (Q8).
  3. Radii are clamped by local proportional reduction (ADR-0007): a 100 × 100 square with radius 50 is a circle; with radius 1000 it is the same circle; a 100 × 25 rectangle with radius 100 has effective radius 12.5.
  4. Output coordinates have at most 5 decimals (Q10); the contour is clockwise from the top-left vertex (Q11).

Stories ​

In delivery order.

IDTypeTitleStatus
EN-001EnablerWrite numbers with fixed precisiondone
US-001User storyRectangle contour from width and heightdone
EN-002EnablerPath data of a sharp contourdone
US-002User storyDraw a sharp rectangle in the playgrounddone
US-004User storyShow shapes at a fixed scale in the playgrounddone
EN-003EnablerTurning angle at a contour vertexdone
EN-004EnablerFillet setbackdone
SP-001SpikeResearch for the remaining stories of F01done
EN-005EnablerLocal proportional radius clampdone
EN-006EnablerRounded contour geometry: segments and arcsdone
CHK-001CheckpointCheckpoint in the middle of F01done
EN-007EnablerPath data with arcsdone
US-003User storyRound the rectangle's corners in the playgrounddone
AUD-001AuditAudit F01: rectangle with corner radiusdone
VAL-001ValidationValidate F01 on the reference casesdone

Feature plan ​

Acceptance criterionRealized byVerified by
1 — rectangle renderedUS-001, US-002 (sharp), EN-006, EN-007, US-003 (rounded)VAL-001 (playground test to write)
2 — global radius, requested vs effectiveEN-003 → EN-007, US-003[F01.AC2] tests (EN-007, US-003); display: US-003 card, VAL-001
3 — clamping reference casesEN-005, EN-006[F01.AC3] tests (EN-005, EN-006, EN-007), VAL-001
4 — precision and orientationEN-001, US-001, EN-006 and EN-007 (rounded output)[F01.AC4] tests (EN-001, US-001, AUD-001 properties)