Skip to content

v6.6.3

Choose a tag to compare

@freegroup freegroup released this 16 Feb 23:10
· 23 commits to master since this release

🎯 Connection Selection Feedback Examples

✨ New Features

  • Added connection_selection_feedback_canvas example demonstrating canvas-level SelectionPolicy
  • Added connection_selection_feedback_figure example demonstrating figure-level SelectionFeedbackPolicy via custom router

🔧 Improvements

  • Made installEditPolicy() and uninstallEditPolicy() chainable in Canvas.js, Figure.js, and Line.js
  • Added helpful console warning in Line.js when incorrect SelectionFeedbackPolicy type is used
  • Improved code quality with ES6 spread operator for config merging

📚 Examples

Both examples show visual feedback for selected connections:

  • Stroke width doubles
  • Color becomes lighter (60%)
  • Black outline appears (3px)

Canvas approach: Global policy affecting all connections
Figure approach: Per-connection policy for granular control