Skip to content

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