Skip to content

WIP: simplified link labels API#3186

Closed
kumilingus wants to merge 2 commits intoclientIO:devfrom
kumilingus:feat/link-labels
Closed

WIP: simplified link labels API#3186
kumilingus wants to merge 2 commits intoclientIO:devfrom
kumilingus:feat/link-labels

Conversation

@kumilingus
Copy link
Contributor

Summary

  • Added GraphLinkLabel interface with simplified properties (text, position, color, backgroundColor, backgroundPadding)
  • Added defaultLabel to ReactLink with labelText/labelBody selectors and ref-based auto-sizing
  • Added convertLabel() in link data mapper to convert simplified labels to JointJS dia.Link.Label format
  • Added "Link Labels" storybook example
  • Updated existing stories to use new label format

Test plan

  • Verify link labels render correctly in the Link Labels storybook
  • Verify existing built-in-shapes story labels still work
  • Confirm backgroundPadding option adjusts label rect sizing

🤖 Generated with Claude Code

kumilingus and others added 2 commits February 20, 2026 19:09
- Add GraphLinkLabel interface with text, position, color,
  backgroundColor, and backgroundPadding properties
- Add defaultLabel to ReactLink with labelText/labelBody selectors
  and ref-based auto-sizing
- Add convertLabel() in link mapper to convert simplified labels
  to JointJS dia.Link.Label format
- Add link-labels storybook example
- Update existing stories to use new label format

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@kumilingus kumilingus closed this Feb 26, 2026
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