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 event #1098

Open
wants to merge 5 commits into
base: pkerpedjiev/webpack5
Choose a base branch
from
Open

Click event #1098

wants to merge 5 commits into from

Conversation

pkerpedjiev
Copy link
Member

@pkerpedjiev pkerpedjiev commented Jun 5, 2022

Description

What was changed in this pull request?

  • Updated the click event to return a list of objects for each track under the event
  • I couldn't update the tests because they wouldn't run for some reason. See slack message here.
  • Updated a couple d3 packages which remove the use of the global event and switched clientPoint to pointer. It does the same thing but its parameters are reversed and pointer is newer.

Why is it necessary?

  • So that click events can cover combined tracks

Fixes #___

Checklist

  • Set proper GitHub labels (e.g. v1.6+, ignore if you don't know)
  • Unit tests added or updated
  • Documentation added or updated
  • [o] Example(s) added or updated
  • [o] Update schema.json if there are changes to the viewconf JSON structure format
  • [o] Screenshot for visual changes (e.g. new tracks or UI changes)
  • Updated CHANGELOG.md

@alexander-veit
Copy link
Member

I can't get this branch to work. The zooming seems broken. See https://gyazo.com/b0a561caa39223c9702a85dd61f0f965

Does it work for you? (The develop branch works for me)

@alexander-veit
Copy link
Member

alexander-veit commented Jun 13, 2022

Also, I needed to fix these versions in order to get it to run. But I assume that is unrelated to the problem above.

"webpack": "4.30.0",
"webpack-cli": "3.3.0",
"webpack-dev-server": "3.2.0"

@pkerpedjiev
Copy link
Member Author

Hey Alex, I've been slow on this but haven't forgotten. Will work on getting it fixed this week.

@alexander-veit
Copy link
Member

alexander-veit commented Jun 29, 2022 via email

@pkerpedjiev pkerpedjiev changed the base branch from develop to pkerpedjiev/webpack5 July 11, 2022 00:28
@pkerpedjiev
Copy link
Member Author

Mind trying again? I stacked this on top of #1102 which should fix the zoom issues.

@alexander-veit
Copy link
Member

Thanks, it works well now. I added the custom modal changes to this PR. Plugin tracks can now implement clickDialog() which returns a React component that will be displayed in a modal. If multiple overlaid tracks are clicked that all implement clickDialog(), the React components are stacked and displayed in the modal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants