GitDiagram.js: include label when centering
commitfbd0409cb204b3639c39f980662b54bb1159674d
authorKyle J. McKay <mackyle@gmail.com>
Sun, 9 Aug 2020 22:46:42 +0000 (9 15:46 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Sun, 9 Aug 2020 22:46:42 +0000 (9 15:46 -0700)
treee463e6a016f818367c4465f2584b95ffe0e91b03
parent6ba1e8a06e0767a71446e65df1d69265a8c325c6
GitDiagram.js: include label when centering

When the entire diagram fits in the window and it's being centered,
be sure to consider the width of the label of the rightmost node
when centering to avoid it being left partially out of view.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
GitDiagram.js