Skip to content

refactor(style): move ShapeOutline ring math into ShapeRings (file under 500 LOC)#182

Open
DemchaAV wants to merge 2 commits into
feat/svg-path-clipperfrom
chore/shaperings-extraction
Open

refactor(style): move ShapeOutline ring math into ShapeRings (file under 500 LOC)#182
DemchaAV wants to merge 2 commits into
feat/svg-path-clipperfrom
chore/shaperings-extraction

Conversation

@DemchaAV

Copy link
Copy Markdown
Owner

Hygiene follow-up to the Path-clipper PR (#181), which pushed ShapeOutline.java over the 500-LOC line. Discharges the senior-review flag.

  • star / regularPolygon / directional vertex generation and the toPoints / clampUnit helpers move to the existing package-private ShapeRings; the public ShapeOutline factories become thin wrappers.
  • Behaviour-preserving — the 22 vertex pins in ShapeOutlineTest stay green untouched.
  • ShapeOutline 560 → 490 LOC; ShapeRings gains 4 direct unit tests (star facing-up + outer>inner radius, regular polygon inscribed, directional mirror/transpose/null-default, toPoints clamp).

Pure internal refactor — no public API change, no CHANGELOG entry. Stacked on #181 (it touches the same file); merge after it.

./mvnw verify -pl . → BUILD SUCCESS.

DemchaAV added 2 commits June 13, 2026 03:48
…der 500 LOC)

- star / regularPolygon / directional vertex generation + the toPoints/clamp
  helpers move to the existing package-private ShapeRings; the public
  ShapeOutline factories become thin wrappers
- behaviour-preserving: the 22 ShapeOutlineTest vertex pins stay green
- ShapeOutline 560 -> 490 LOC; ShapeRings gains 4 direct unit tests
  (star, regularPolygon, directional, toPoints)

Follow-up to the Path-clipper PR which pushed the file over the 500 line.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant