Home / v1.15.0
Name Modified Size InfoDownloads / Week
Parent folder
Add commit object to the mouseEventOptions object.tar.gz 2018-12-29 641.7 kB
Add commit object to the mouseEventOptions object.zip 2018-12-29 650.5 kB
README.md 2018-12-29 267 Bytes
Totals: 3 Items   1.3 MB 0

Thanks to @srangos, you now have access to the Commit object in mouse event callbacks.

For example:

:::js
gitGraph.canvas.addEventListener("commit:mouseover", function (event) {
  // event.data.commit represents the commit being hovered
});
Source: README.md, updated 2018-12-29