[BUG]: Some event payload types don't match what's actually emitted
I maintainer di solito rispondono entro 1 giorno
@darshpatel1052 ci sta già lavorando.
Dal 3/11/2026.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 68/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- javascript, typescript
- Ambito
- data-visualization, frontend
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- JavaScript
- Stelle
- 18.4k
- Fork
- 2.1k
- Merge medio
- 2g 16h
- PR unite (30g)
- 11
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di plotly/plotly.js
-
[BUG]: `events` is required but not declared in dependenciesForse già presa @KoolADE85 l’ha presa 6 giorni fa. Apertabug P3 size: 1
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
plotly/plotly.js#8163 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
[BUG]: `sankey`: `node.x` / `node.y` of `0` is ignoredForse già presa @adimalkar l’ha presa 11 giorni fa. Apertabug P3 size: 1
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
plotly/plotly.js#8150 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
[BUG]: `scatterpolargl` drops points between 10000 and 100000 pointsForse già presa @Tanishdete333 l’ha presa 11 giorni fa. Apertabug P3 size: 1
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
plotly/plotly.js#8148 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
[BUG]: findEmpties throws "iterated with no new neighbors" for large NaN regions in contour (double-precision underflow)Forse già presa @davrens101 l’ha presa 10 giorni fa. Apertabug P3 size: 3
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
plotly/plotly.js#8108 · 4 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
chore P3 plotly-internal size: 3 task
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
plotly/plotly.js#8064 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di plotly/plotly.js
Issue simili
-
Enhancing the Issue TemplateAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
SasanLabs/VulnerableApp#912 ·
I maintainer di solito rispondono entro 1 giorno
-
[chore]: Force minimatch 11.0.1 in the CI scripts' jest tooling (Dependabot #140)Forse già presa @alishair7071 l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
jaegertracing/jaeger#10133 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
accessibility
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
OREL-group/Project-Management#133 · 1 commento ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
volcengine/OpenViking#7485 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno