marmelab/EventDrops
View on GitHubis there any way to trigger zoom event (to redraw drops by data changed)?
Open
#153 opened on May 22, 2017
2 comments (2 comments)0 reactions (0 reactions)0 assignees (0 assignees)JavaScript1,219 stars (1,219 stars)249 forks (249 forks)batch import
help wanted
Description
thank in advance.
Contributor guide
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- feature
- DifficultyEstimated implementation difficulty for a new contributor, from 1 for very small changes to 5 for expert-level work.
- 3
- Estimated timeA rough time range for an experienced contributor to investigate, implement, test, and prepare a pull request.
- half day
- Activity statusHow available the issue appears right now: fresh, active, stale, blocked, or waiting on maintainer input.
- stale
- ClarityHow clearly the issue explains the expected change, acceptance criteria, and next step.
- unclear
- Prerequisites
- basic understanding of d3.js zoom behavior
- Newbie friendlinessA 1-100 score estimating how approachable this issue is for first-time contributors.
- 20
- Research direction
- The issue requests a way to trigger a zoom event to redraw drops upon data change. To address this, first examine the EventDrops source code, particularly files handling zoom interactions (likely in src/ or lib/ directories). Identify how the drop rendering is tied to zoom transforms (e.g., via d3.zoom().on('zoom', ...) ). Then investigate where data changes are currently processed and whether they already trigger a redraw. If not, a new method or event emitter may need to be added to propagate data changes to the zoom behavior. Review any existing tests for zoom to understand expected behavior. The issue is old and lacks detail, so clarifications from maintainers may be needed on the desired API.