Skip to content

feat(etch): type_shapes provider for custom SVG node shapes#85

Open
avrabe wants to merge 1 commit intomainfrom
feat/etch-shape-provider
Open

feat(etch): type_shapes provider for custom SVG node shapes#85
avrabe wants to merge 1 commit intomainfrom
feat/etch-shape-provider

Conversation

@avrabe
Copy link
Contributor

@avrabe avrabe commented Mar 22, 2026

Enables AADL-standard graphical notation in spar by allowing custom SVG
shape functions per node type. Falls back to default rect when no
provider is registered.

Trace: skip

SvgOptions now accepts a type_shapes HashMap mapping node types to
custom SVG shape functions. The shape function receives (node_type,
x, y, width, height, fill, stroke) and returns raw SVG element string.
Falls back to default rect when no provider is registered.

Trace: skip

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@codecov
Copy link

codecov bot commented Mar 22, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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