marmelab/EventDrops
在 GitHub 查看is there any way to trigger zoom event (to redraw drops by data changed)?
Open
#153 建立於 2017年5月22日
2 留言 (2 留言)0 反應 (0 反應)0 負責人 (0 負責人)JavaScript1,219 star (1,219 star)249 fork (249 fork)batch import
help wanted
描述
thank in advance.
貢獻者指南
- 技術棧
- javascript
- 領域
- frontend
- 議題類型
- feature
- 難度面向新貢獻者的預計實作難度,1 表示很小改動,5 表示專家級工作。
- 3
- 預計時間有經驗貢獻者完成調查、實作、測試並準備 pull request 的粗略時間範圍。
- half day
- 活動狀態議題目前的可參與程度:新鮮、活躍、陳舊、阻塞或等待維護者輸入。
- stale
- 清晰度議題是否清楚說明預期改動、驗收標準和下一步。
- unclear
- 前置要求
- basic understanding of d3.js zoom behavior
- 新手友善度1-100 的估計分數,表示該議題對首次貢獻者的友善程度。
- 20
- 研究方向
- 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.