feat(style): add register helper per built-in edge style#1077
Conversation
Introduce one register*EdgeStyle helper per built-in edge style (Elbow, EntityRelation, Loop, Manhattan,
Orthogonal, Segment, SideToSide, TopToBottom) so BaseGraph users can register only what they need without having
to know the associated EdgeStyleMetaData. registerDefaultEdgeStyles now simply calls the 8 helpers.
Update doc to point users at the new helpers:
- EdgeStyleRegistryInterface.add gets a jsdoc (previously undocumented) linking every helper via {@link ...}.
- Each built-in edge style class jsdoc points at its dedicated helper before the existing "register manually
with this metadata" reference block.
- The edge-styles usage page lists the 8 helpers in a tip.
- The Graph usage page samples and the ts-example-selected-features now use registerOrthogonalEdgeStyle().
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
✅ Files skipped from review due to trivial changes (1)
WalkthroughThis PR adds eight per-edge registration helpers that register built-in edge styles with explicit metadata, refactors registerDefaultEdgeStyles to call these helpers, and updates JSDoc, examples, website docs, and the changelog to recommend the new helpers over manual EdgeStyleRegistry.add usage. ChangesEdge Style Registration Helpers
Sequence Diagram(s)No sequence diagram generated: the changes are local registration helpers and documentation updates without multi-component sequential interactions suitable for visualization. Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…ange The unreleased EntityRelation breaking change now points to the new registerEntityRelationEdgeStyle() helper as the simplest way to register the style with the correct allowIntermediateHandles metadata.
|



Introduce one
register*EdgeStylehelper per built-in edge style (Elbow, EntityRelation, Loop, Manhattan, Orthogonal, Segment, SideToSide, TopToBottom) soBaseGraphusers can register only what they need without having to know the associatedEdgeStyleMetaData.registerDefaultEdgeStylesnow simply calls the 8 helpers.Update doc to point users at the new helpers:
EdgeStyleRegistryInterface.addgets a jsdoc (previously undocumented) linking every helper via{@link ...}.ts-example-selected-featuresnow useregisterOrthogonalEdgeStyle().Summary by CodeRabbit
New Features
Documentation