Assets 2

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

For example:

gitGraph.canvas.addEventListener("commit:mouseover", function (event) {
  // event.data.commit represents the commit being hovered
});
Assets 2

Thanks to @raul-benito you can now pass an HTMLElement in options.details for commit operations.

This way you can provide a workaround in contexts where document.getElementById is not working (e.g. shadow-dom in web components).

See #211 for details.

@nicoespeon nicoespeon released this Aug 24, 2018 · 12 commits to master since this release

Assets 2

Thanks to @prudy, you can now specify a font for the dot text. Font defaults to commit message font.

See #201.

@nicoespeon nicoespeon released this Jul 9, 2018 · 16 commits to master since this release

Assets 2

Add the ability to put some text in the commit dot:

image

branch.commit({
  message: "Do something awesome",
  commitDotText: "A1"
});

See #196.

Thx @carlorivera 🎉

@nicoespeon nicoespeon released this Aug 8, 2017 · 23 commits to master since this release

Assets 2

Fix #159 with #171, credits to @yodalee 🎉 👏

@nicoespeon nicoespeon released this Jun 13, 2017 · 28 commits to master since this release

Assets 2

See #166 (fixed by #168).

Thanks @csombok for fixing this one 🎉 👍

@nicoespeon nicoespeon released this May 25, 2017 · 33 commits to master since this release

Assets 2

See #164, thanks @moore3071 for this one 👍

Thanks also to @cardil for improving the gitflowsupport.html example − see #163.

@nicoespeon nicoespeon released this Apr 21, 2017 · 46 commits to master since this release

Assets 2

See #139.

Now you can define a line dash to your commits and branches:

var gitGraph = new GitGraph();

var master = gitGraph.branch({
  name: "master",
  color: "#F00",
  lineDash: [5]
});

master.commit({
  lineDash: [3, 2],
  dotStrokeWidth: 5,
  message: "This commit stroke is dashed"
});

The lineDash option expects a list of segments to pass to CanvasRenderingContext2D.setLineDash(). These segments are numbers that specifies distances to alternately draw a line and a gap.

Finally, you can specify a lineDash value to the branch and commit options of your custom template.

@nicoespeon nicoespeon released this Apr 19, 2017 · 49 commits to master since this release

Assets 2

See #145.

Also includes:

  • add types definition to package.json
  • fix incorrect font height in labels and tags when graph is in a floating container (#155)