Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Click Link to Select, CTRL+Click to add a Point #319

Merged
merged 5 commits into from
Apr 23, 2024

Conversation

treo
Copy link
Contributor

@treo treo commented Apr 22, 2024

Description

The old click to add point functionality grew quite annoying very quickly. In particular if we want to modify the graph to add some component, using shift+click to select a link ended up also selecting the node, because that particular behavior is meant for selecting multiple things.

By moving the add-point-to-link functionality to ctrl+click, we free up the regular click to be just a select, exactly how one expects it to be.

This also enables figma-like pinch-to-zoom and two-finger panning.

Pull Request Type

  • Xircuits Core (Jupyterlab Related changes)
  • Xircuits Canvas (Custom RD Related changes)
  • Xircuits Component Library
  • Xircuits Project Template
  • Testing Automation
  • Documentation
  • Others (Please Specify)

Type of Change

  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Tests

1. Manual Test

1. Create a link between two nodes (Start to finish is fine)
2. Click the link to select it
3. Before: Link node gets created; After: Link is selected
4. CTRL+Click the link
5. Before: Add component menu opens; After: Link node gets created

Tested on?

  • Windows
  • Linux Ubuntu
  • Centos
  • Mac
  • Others (State here -> xxx )

The old click to add point functionality grew quite annoying very quickly. In particular if we want to modify the graph to add some component, using shift+click to select a link ended up also selecting the node, because that particular behavior is meant for selecting multiple things.

By moving the add-point-to-link functionality to ctrl+click, we free up the regular click to be just a select, exactly how one expects it to be.
@treo treo requested a review from MFA-X-AI April 22, 2024 06:37
Copy link

Binder 👈 Launch a binder notebook on branch XpressAI/xircuits/paul/click-link-to-select

@treo treo merged commit fa74116 into master Apr 23, 2024
8 checks passed
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