-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support both mouse selection with the left mouse button and pan…
…ning with the middle mouse button in the graph (#3965) * feat(selection): add the eventTypes option which allows specifying selection listening buttons * feat(panning): add a new eventType 'mouseWheelDown' * test(selection): allow panning with mouseWheelDown in the selection example * docs(selection): add document for new option 'eventTypes' * docs(panning): add document for 'mouseWheelDown' of 'eventType' * fix: improve code style * fix: move eventTypes to Selection.CommonOptions & add into the default option * fix: put mouse button check log inside callback to enable dynamically change eventTypes * fix: optimize code style
- Loading branch information
Showing
6 changed files
with
75 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters