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

Update d3-selection #205

Merged
merged 25 commits into from
Aug 23, 2020
Merged

Update d3-selection #205

merged 25 commits into from
Aug 23, 2020

Conversation

Fil
Copy link
Member

@Fil Fil commented May 14, 2020

todo

  • test that functions such as zoom.transform() etc receive (event, datum).
  • update README
  • fix dbltap on iPad: see (dbl) Tap distance #216 & touch-action
  • fix the sourceEvent: event situation
  • allow event.on()? [removed]

Please also consider:

Fil added 2 commits May 14, 2020 12:19
(rationale: don't let people install @2 in a build system that will not alert them that we have moved to ES6, only to cause trouble with a later release.)
@Fil Fil marked this pull request as draft May 15, 2020 15:30
Fil added 13 commits May 17, 2020 17:43
(was a leftover from when I copied event code from d3-drag)
so that zoom.extent(function(event, d) {}) receives *null, datum*
…, …); and repair the calls that were mixed-up.

*event-based functions:*
- Gesture (hence event = this.args[0])
- filter
- wheelDelta

*selection-based functions:*
- extent
- transform
- schedule
- k,p (in scaleBy & scaleTo)
- x,y (in translateBy)

In addition, an event that triggers a transition (such as a zoom.dblclick) can be persisted throughout the transition as the zoomEvent.sourceEvent (fixes #202).
@Fil Fil marked this pull request as ready for review July 10, 2020 20:38
Fil added 3 commits July 13, 2020 09:37
fixes #204
An unintended consequence is that wheel-zooming with the ctrlKey pressed goes 10x faster, but it's rather agreeable.
@mbostock
Copy link
Member

Cross-referencing comment: d3/d3-brush#71 (comment).

@Fil Fil merged commit c2fa604 into master Aug 23, 2020
@mbostock mbostock deleted the two branch August 31, 2020 01:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants