[BUG]: Some event payload types don't match what's actually emitted
Maintainer antworten meist innerhalb von 1 Tag
@darshpatel1052 arbeitet bereits daran.
Seit 03.11.2026.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 68/100
- Issue-Typ
- Bug
- Klarheit
- Klar beschrieben
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- javascript, typescript
- Bereich
- data-visualization, frontend
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
- Vorherrschende Sprache
- JavaScript
- Sterne
- 18.4k
- Forks
- 2.1k
- Ø Merge
- 2 T. 16 Std.
- Gemergte PRs (30 T.)
- 11
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus plotly/plotly.js
-
[BUG]: `events` is required but not declared in dependenciesEvtl. vergeben @KoolADE85 hat das vor 6 Tagen übernommen. Offenbug P3 size: 1
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 83/100
plotly/plotly.js#8163 · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
[BUG]: `sankey`: `node.x` / `node.y` of `0` is ignoredEvtl. vergeben @adimalkar hat das vor 11 Tagen übernommen. Offenbug P3 size: 1
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
plotly/plotly.js#8150 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
[BUG]: `scatterpolargl` drops points between 10000 and 100000 pointsEvtl. vergeben @Tanishdete333 hat das vor 11 Tagen übernommen. Offenbug P3 size: 1
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
plotly/plotly.js#8148 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
[BUG]: findEmpties throws "iterated with no new neighbors" for large NaN regions in contour (double-precision underflow)Evtl. vergeben @davrens101 hat das vor 10 Tagen übernommen. Offenbug P3 size: 3
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 86/100
plotly/plotly.js#8108 · 4 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
chore P3 plotly-internal size: 3 task
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 77/100
plotly/plotly.js#8064 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in plotly/plotly.js
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 66/100
SasanLabs/VulnerableApp#912 ·
Maintainer antworten meist innerhalb von 1 Tag
-
[chore]: Force minimatch 11.0.1 in the CI scripts' jest tooling (Dependabot #140)Evtl. vergeben @alishair7071 hat das heute übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
jaegertracing/jaeger#10133 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
accessibility
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
OREL-group/Project-Management#133 · 1 Kommentar ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
volcengine/OpenViking#7485 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag