[BUG]: Some event payload types don't match what's actually emitted
維護者通常 1 天內回覆
@darshpatel1052 已經在處理了。
開始於 2026年11月3日。
評估
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 新手友好度
- 68/100
- Issue 類型
- 缺陷
- 描述清晰度
- 描述清楚
- 活躍度
- 活躍
- 技術堆疊
- javascript, typescript
研究方向
Start with src/types/core/events.d.ts and compare the event interfaces with the emitted payloads listed in the issue, including the parcoords hover and unhover events. Check related tests or event definitions for these cases; done means the types represent the listed payload shapes and optional fields accurately.
由索引模型根據 Issue 內容生成。
描述
Description
Some event types in src/types/core/events.d.ts do not match the payload that plotly.js emits.
Steps to reproduce
- Register
gd.on('plotly_beforeplot', (event) => event.data)and callPlotly.newPlot. The code compiles, butevent.dataisundefined. - Register
gd.on('plotly_selected', (event) => event.points)and clear a selection. The code compiles, buteventisundefined. - Register
gd.on('plotly_click', (event) => event.event.clientX)on ascatter3dplot. The code compiles, butevent.eventisundefined.
Notes
- This is a follow-up to #8145
- Required changes:
plotly_beforeplot: the payload is the tuple[data, layout, config], butBeforePlotEventis an object.plotly_selected: the payload isundefinedwhen a selection is cleared, but the callback type does not allow it.PlotMouseEvent.event:gl3dtraces emit noevent, but the field is required.PlotHoverEvent.xvalsandyvals: only cartesian traces set them, but both fields are required.LegendClickEvent.node: the value is an SVG element, but the type isPlotlyHTMLElement.- Missing optional fields:
xaxes,yaxes,xvalsandyvalson click events,selectionsonplotly_selected,groupandlabelon legend clicks, andsubplotIdon annotation clicks. parcoordsemitsplotly_hoverandplotly_unhoverwith{x, y, clientX, clientY, dataIndex, curveNumber}, with nopointsorevent.
- Fixing
plotly_beforeplotandplotly_selectedis a changes existing types and could break existing code for some users. This wouldn't be a breaking change because it falls under a bug fix.
- 主要語言
- JavaScript
- 星號
- 18.4k
- 分支
- 2.1k
- 平均合併
- 2 天 16 小時
- 30 天內合併 PR
- 11
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
plotly/plotly.js 的其他 Issue
-
[BUG]: `events` is required but not declared in dependencies可能已有人在做 @KoolADE85 於 6 天前認領。 未關閉bug P3 size: 1
難度 2/5 1-3 小時 新手友好度 83/100
plotly/plotly.js#8163 · 已指派 1 人 ·
維護者通常 1 天內回覆
-
[BUG]: `sankey`: `node.x` / `node.y` of `0` is ignored可能已有人在做 @adimalkar 於 11 天前認領。 未關閉bug P3 size: 1
難度 2/5 1-3 小時 新手友好度 75/100
plotly/plotly.js#8150 · 1 則留言 ·
維護者通常 1 天內回覆
-
[BUG]: `scatterpolargl` drops points between 10000 and 100000 points可能已有人在做 @Tanishdete333 於 11 天前認領。 未關閉bug P3 size: 1
難度 2/5 1-3 小時 新手友好度 82/100
plotly/plotly.js#8148 · 1 則留言 ·
維護者通常 1 天內回覆
-
[BUG]: findEmpties throws "iterated with no new neighbors" for large NaN regions in contour (double-precision underflow)可能已有人在做 @davrens101 於 10 天前認領。 未關閉bug P3 size: 3
難度 2/5 1-3 小時 新手友好度 86/100
plotly/plotly.js#8108 · 4 則留言 ·
維護者通常 1 天內回覆
-
chore P3 plotly-internal size: 3 task
難度 2/5 1-3 小時 新手友好度 77/100
plotly/plotly.js#8064 · 1 則留言 ·
維護者通常 1 天內回覆
相似的 Issue
-
channels:add check:passed
難度 1/5 1 小時以內 新手友好度 82/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 83/100
-
難度 2/5 1-3 小時 新手友好度 66/100
SasanLabs/VulnerableApp#912 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 76/100
維護者通常 1 天內回覆
-
[chore]: Force minimatch 11.0.1 in the CI scripts' jest tooling (Dependabot #140)可能已有人在做 @alishair7071 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 78/100
jaegertracing/jaeger#10133 · 2 則留言 ·
維護者通常 1 天內回覆