Skip to content

Component | Graph: Update graph curve options - 1.8 - #973

Draft
lee00678 wants to merge 2 commits into
mainfrom
feat/update-graph-curve-options
Draft

lee00678 wants to merge 2 commits into
mainfrom
feat/update-graph-curve-options

Conversation

@lee00678

@lee00678 lee00678 commented Oct 22, 2026 •

Copy link
Copy Markdown
Collaborator

What & why

Adds a linkCurveType config option to the Graph component, letting user choose how link paths
are interpolated instead of always drawing the default cubic Bezier shaped by linkCurvature.

  • linkCurveType accepts any CurveType value (e.g. CurveType.Step, CurveType.Natural), which
    is passed straight through to d3-shape's line().curve(...).

  • It also accepts a new 'smoothStep' value — a custom curve (adapted from xyflow's smoothstep
    edge) that routes the link as a right-angle step with rounded corners. It picks a single fixed
    exit/entry side (and axis) for the whole set of links based on the graph's overall flow
    direction, so links still read as source -> target even when an individual node ends up on the
    "wrong" side after a drag or layout change.

  • Dev examples — graph-link-curve-type (ELK layout, dropdown to switch between all
    CurveType values and smoothStep)

  • Wrappers — no changes needed; linkCurveType flows through automatically via
    GraphConfigInterface

  • Gallery example

  • Docs

Checklist

  • Dev examples
  • Dev gallery examples (pnpm dev:gallery)
  • Wrappers (regenerated via pnpm generate)
  • Gallery example
  • Docs
  • Lint passes on the files I changed
  • Builds locally (pnpm build)
  • All commands pass (pnpm cmds-report)

Screenshots / recordings

elk_curve_Demo.mov

@lee00678
lee00678 force-pushed the feat/update-graph-curve-options branch from 784067e to ad04d02 Compare October 23, 2026 21:36
@lee00678 lee00678 changed the title Feat/update graph curve options Feat | Graph: Update graph curve options Oct 29, 2026
@lee00678 lee00678 changed the title Feat | Graph: Update graph curve options Component | Graph: Update graph curve options Oct 29, 2026
@lee00678
lee00678 force-pushed the feat/update-graph-curve-options branch from ad04d02 to af0c72e Compare October 29, 2026 22:22
@lee00678 lee00678 changed the title Component | Graph: Update graph curve options Component | Graph: Update graph curve options - 1.8 Oct 29, 2026
@lee00678

lee00678 commented Oct 29, 2026 •

Copy link
Copy Markdown
Collaborator Author

I will mark ready once #977 is merged, size check should be fixed after that.

This branch has not been deployed

No deployments
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.

2 participants