You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Box selection should select lines with partially selected endpoints
Description: ⚠️ Cytoscape only checks if both (start and end points) or all endpoints (in the case of haystacks) are inside the user selection box to consider it selected.
Example of the issue:
Motivation for new feature
Users can only select lines when both endpoints fall within the selection box. This limits usability, especially when working with complex diagrams or densely connected nodes, where selecting precise points is difficult.
Proposed Solution:
✅ We bypass that by checking if at least one (start or end point) is inside the user selection box, which then selects the lines as well as the associated connected lines attached to that point.
This Feat: Box selection of partially selected lines #3360 introduces a new style parameter, box-select-lines: yes. When this attribute is included, line can be selected even if at least one (start or end point) is inside the user selection box.
Reviewers should ensure that the following tasks are carried out for incorporated issues:
Ensure that the reporter has adequately described their idea. If not, elicit more information about the use case. You should iteratively build a spec together.
Ensure that the issue is a good fit for the core library. Some things are best done in extensions (e.g. UI-related features that aren't style-related). Some things are best done by app authors themselves -- instead of in Cytoscape libraries.
The issue has been associated with a corresponding milestone.
The commits have been incorporated into the unstable branch via pull request. The corresponding pull request is cross-referenced.
The text was updated successfully, but these errors were encountered:
@maxkfranz, thanks for the suggestions. I have updated the PR, the default value is set to box-selection: contain which is more or less the current behaviour.
Box selection should select lines with partially selected endpoints
Description:
⚠️ Cytoscape only checks if both (start and end points) or all endpoints (in the case of haystacks) are inside the user selection box to consider it selected.
Example of the issue:

Motivation for new feature
Users can only select lines when both endpoints fall within the selection box. This limits usability, especially when working with complex diagrams or densely connected nodes, where selecting precise points is difficult.
Proposed Solution:
✅ We bypass that by checking if at least one (start or end point) is inside the user selection box, which then selects the lines as well as the associated connected lines attached to that point.
box-select-lines: yes
. When this attribute is included, line can be selected even if at least one (start or end point) is inside the user selection box.📸 Demo:

cc: @maxkfranz
For reviewers
Reviewers should ensure that the following tasks are carried out for incorporated issues:
unstable
branch via pull request. The corresponding pull request is cross-referenced.The text was updated successfully, but these errors were encountered: