feat(api): addPath DSL builder for free-form Bezier design shapes#169
Merged
Conversation
W2 of the path workstream: PathBuilder (fluent moveTo/lineTo/curveTo/closePath + fill/stroke/padding/margin, mirroring EllipseBuilder) and addPath(Consumer) on AbstractFlowBuilder, so every flow surface authors vector design shapes against the W1 PathNode primitive. Ships the full example ritual: VectorPathExample (wave/blob/ribbon through the DSL) registered in GenerateAllExamples and ShowcaseMetadata, examples README row + section, committed vector-path.pdf preview. 3 PathBuilderTest cases (assembly, validation passthrough, end-to-end flow placement). Full gate: 1257 tests, BUILD SUCCESS.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
W2 of the path workstream (#168 shipped the primitive): the canonical DSL surface for design shapes.
PathBuilder— fluentmoveTo/lineTo/curveTo/closePath+fillColor/stroke/padding/margin, mirroringEllipseBuilder; validation flows throughPathNode.addPath(Consumer<PathBuilder>)onAbstractFlowBuilder— available on every flow surface (page flow, sections, modules).VectorPathExample(stroked wave, filled overshoot blob, mixed line/curve ribbon — all through the DSL), gallery registration, examples README row + section, committedassets/readme/examples/vector-path.pdfpreview (rendered and eyeballed: curves perfectly smooth).Verification
PathBuilderTest: node assembly,IllegalArgumentExceptionpassthrough frombuild(), end-to-endaddPathplacement + valid PDF../mvnw verify -pl .— 1257 tests, 0 failures, BUILD SUCCESS.Next: W3 — smooth chart lines + curved area fills through the primitive.