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

Add configuration of mouse actions #461

Open
wants to merge 17 commits into
base: develop
Choose a base branch
from

Conversation

shams-azam-wtg
Copy link

@shams-azam-wtg shams-azam-wtg commented Jul 18, 2024

PR for: Mouse actions configuration

  • Created Base folder inside Behavior folder and moved Behavior class there.
  • Added DragBehavior and WheelBehavior as Base Behaviors.
  • Modified PanBehavior to inherit DragBehavior.
  • Added ScrollBehavior which inherites WheelBehavior to scroll the diagram using mouse wheel.
  • Added SelectionBoxBevavior which inherits DragBehavior to box select the diagram.
  • Modified ZoomBehavior to inherit WheelBehavior.
  • Added DiagramBehaviorOptions to configure behavior on mouse actions.
  • Added documentation for BehaviorOptions
  • Fixed scrolling of page with diagram when scrolling inside a diagrm by adding a js function in script.js to implement preventDefault.
  • Added related tests.

@shams-azam-wtg shams-azam-wtg changed the title Shams/mouseconfiguration Add configuration of mouse actions Jul 18, 2024
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.

2 participants