[BUG]: Some event payload types don't match what's actually emitted
Los mantenedores suelen responder en 1 día
@darshpatel1052 ya está trabajando en esto.
Desde el 3/11/2026.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 68/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- javascript, typescript
- Área
- data-visualization, frontend
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- JavaScript
- Estrellas
- 18.4k
- Forks
- 2.1k
- Merge medio
- 2 d 16 h
- PR fusionados (30 d)
- 11
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de plotly/plotly.js
-
[BUG]: `events` is required but not declared in dependenciesPosiblemente ocupada @KoolADE85 la tomó hace 6 días. Abiertobug P3 size: 1
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
plotly/plotly.js#8163 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
[BUG]: `sankey`: `node.x` / `node.y` of `0` is ignoredPosiblemente ocupada @adimalkar la tomó hace 11 días. Abiertobug P3 size: 1
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
plotly/plotly.js#8150 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
[BUG]: `scatterpolargl` drops points between 10000 and 100000 pointsPosiblemente ocupada @Tanishdete333 la tomó hace 11 días. Abiertobug P3 size: 1
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
plotly/plotly.js#8148 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
[BUG]: findEmpties throws "iterated with no new neighbors" for large NaN regions in contour (double-precision underflow)Posiblemente ocupada @davrens101 la tomó hace 10 días. Abiertobug P3 size: 3
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
plotly/plotly.js#8108 · 4 comentarios ·
Los mantenedores suelen responder en 1 día
-
chore P3 plotly-internal size: 3 task
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
plotly/plotly.js#8064 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de plotly/plotly.js
Issues similares
-
Enhancing the Issue TemplateAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
SasanLabs/VulnerableApp#912 ·
Los mantenedores suelen responder en 1 día
-
[chore]: Force minimatch 11.0.1 in the CI scripts' jest tooling (Dependabot #140)Posiblemente ocupada @alishair7071 la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
jaegertracing/jaeger#10133 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
accessibility
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
OREL-group/Project-Management#133 · 1 comentario ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
volcengine/OpenViking#7485 · 1 comentario ·
Los mantenedores suelen responder en 1 día