14 files changed +37
-28
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " gitgraph.js" ,
3
- "version" : " 1.15.0 " ,
3
+ "version" : " 1.15.1 " ,
4
4
"main" : [" ./build/gitgraph.js" , " ./build/gitgraph.css" ],
5
5
"ignore" : [" **/.*" ]
6
6
}
Original file line number Diff line number Diff line change @@ -481,7 +481,7 @@ commit?: {
481
481
dot ?: {
482
482
483
483
/**
484
- * Commit dot color
484
+ * Commit dot font
485
485
*/
486
486
font ?: string ;
487
487
Original file line number Diff line number Diff line change 1
1
/* ==========================================================
2
- * GitGraph v1.15.0
2
+ * GitGraph v1.15.1
3
3
* https://github.com/nicoespeon/gitgraph.js
4
4
* ==========================================================
5
- * Copyright (c) 2018 Nicolas CARLO (@nicoespeon) ٩(^‿^)۶
6
- * Copyright (c) 2018 Fabien BERNARD (@fabien0102) ✌(✰‿✰)✌
5
+ * Copyright (c) 2019 Nicolas CARLO (@nicoespeon) ٩(^‿^)۶
6
+ * Copyright (c) 2019 Fabien BERNARD (@fabien0102) ✌(✰‿✰)✌
7
7
*
8
8
* GitGraph.js may be freely distributed under the MIT Licence
9
9
* ========================================================== */
1298
1298
}
1299
1299
1300
1300
alpha = rotate ( alphaY , alphaX ) ;
1301
+ }
1302
+
1303
+ if ( this . type === "mergeCommit" ) {
1301
1304
color = this . parentCommit . branch . color ;
1302
1305
}
1303
1306
1406
1409
* @param {number } [options.branch.spacingY] - Space between branches
1407
1410
* @param {number } [options.commit.spacingX] - Space between commits
1408
1411
* @param {number } [options.commit.spacingY] - Space between commits
1409
- * @param {number } [options.commit.widthExtension = 0] - Additional width to be added to the calculated width
1412
+ * @param {number } [options.commit.widthExtension = 0] - Additional width to be added to the calculated width
1410
1413
* @param {string } [options.commit.color] - Master commit color (dot & message)
1411
- * @param {string } [options.commit.dot.font] - Commit dot color
1414
+ * @param {string } [options.commit.dot.font] - Commit dot font
1412
1415
* @param {string } [options.commit.dot.color] - Commit dot color
1413
1416
* @param {number } [options.commit.dot.size] - Commit dot size
1414
1417
* @param {number } [options.commit.dot.strokeWidth] - Commit dot stroke width
Original file line number Diff line number Diff line change @@ -1928,7 +1928,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Branch.ht
1928
1928
< br class ="clear ">
1929
1929
1930
1930
< footer >
1931
- Documentation generated by < a href ="https://github.com/jsdoc3/jsdoc "> JSDoc 3.5.5</ a > on Sat Dec 29 2018 16:51:16 GMT-0500 (EST)
1931
+ Documentation generated by < a href ="https://github.com/jsdoc3/jsdoc "> JSDoc 3.5.5</ a > on Sun Jan 27 2019 14:02:18 GMT-0500 (EST)
1932
1932
</ footer >
1933
1933
1934
1934
< script > prettyPrint ( ) ; </ script >
Original file line number Diff line number Diff line change @@ -1713,7 +1713,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Branch.ht
1713
1713
< br class ="clear ">
1714
1714
1715
1715
< footer >
1716
- Documentation generated by < a href ="https://github.com/jsdoc3/jsdoc "> JSDoc 3.5.5</ a > on Sat Dec 29 2018 16:51:16 GMT-0500 (EST)
1716
+ Documentation generated by < a href ="https://github.com/jsdoc3/jsdoc "> JSDoc 3.5.5</ a > on Sun Jan 27 2019 14:02:18 GMT-0500 (EST)
1717
1717
</ footer >
1718
1718
1719
1719
< script > prettyPrint ( ) ; </ script >
Original file line number Diff line number Diff line change @@ -2107,7 +2107,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Branch.ht
2107
2107
< br class ="clear ">
2108
2108
2109
2109
< footer >
2110
- Documentation generated by < a href ="https://github.com/jsdoc3/jsdoc "> JSDoc 3.5.5</ a > on Sat Dec 29 2018 16:51:16 GMT-0500 (EST)
2110
+ Documentation generated by < a href ="https://github.com/jsdoc3/jsdoc "> JSDoc 3.5.5</ a > on Sun Jan 27 2019 14:02:18 GMT-0500 (EST)
2111
2111
</ footer >
2112
2112
2113
2113
< script > prettyPrint ( ) ; </ script >
Original file line number Diff line number Diff line change @@ -296,7 +296,7 @@ <h6>Properties</h6>
296
296
297
297
< dt class ="tag-source "> Source:</ dt >
298
298
< dd class ="tag-source "> < ul class ="dummy "> < li >
299
- < a href ="gitgraph.js.html "> gitgraph.js</ a > , < a href ="gitgraph.js.html#line1342 "> line 1342 </ a >
299
+ < a href ="gitgraph.js.html "> gitgraph.js</ a > , < a href ="gitgraph.js.html#line1345 "> line 1345 </ a >
300
300
</ li > </ ul > </ dd >
301
301
302
302
@@ -380,7 +380,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Branch.ht
380
380
< br class ="clear ">
381
381
382
382
< footer >
383
- Documentation generated by < a href ="https://github.com/jsdoc3/jsdoc "> JSDoc 3.5.5</ a > on Sat Dec 29 2018 16:51:16 GMT-0500 (EST)
383
+ Documentation generated by < a href ="https://github.com/jsdoc3/jsdoc "> JSDoc 3.5.5</ a > on Sun Jan 27 2019 14:02:18 GMT-0500 (EST)
384
384
</ footer >
385
385
386
386
< script > prettyPrint ( ) ; </ script >
Original file line number Diff line number Diff line change @@ -686,7 +686,7 @@ <h6>Properties</h6>
686
686
</ td >
687
687
688
688
689
- < td class ="description last "> < p > Commit dot color </ p > </ td >
689
+ < td class ="description last "> < p > Commit dot font </ p > </ td >
690
690
</ tr >
691
691
692
692
@@ -1219,7 +1219,7 @@ <h6>Properties</h6>
1219
1219
1220
1220
< dt class ="tag-source "> Source:</ dt >
1221
1221
< dd class ="tag-source "> < ul class ="dummy "> < li >
1222
- < a href ="gitgraph.js.html "> gitgraph.js</ a > , < a href ="gitgraph.js.html#line1418 "> line 1418 </ a >
1222
+ < a href ="gitgraph.js.html "> gitgraph.js</ a > , < a href ="gitgraph.js.html#line1421 "> line 1421 </ a >
1223
1223
</ li > </ ul > </ dd >
1224
1224
1225
1225
@@ -1374,7 +1374,7 @@ <h5>Parameters:</h5>
1374
1374
1375
1375
< dt class ="tag-source "> Source:</ dt >
1376
1376
< dd class ="tag-source "> < ul class ="dummy "> < li >
1377
- < a href ="gitgraph.js.html "> gitgraph.js</ a > , < a href ="gitgraph.js.html#line1507 "> line 1507 </ a >
1377
+ < a href ="gitgraph.js.html "> gitgraph.js</ a > , < a href ="gitgraph.js.html#line1510 "> line 1510 </ a >
1378
1378
</ li > </ ul > </ dd >
1379
1379
1380
1380
@@ -1446,7 +1446,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Branch.ht
1446
1446
< br class ="clear ">
1447
1447
1448
1448
< footer >
1449
- Documentation generated by < a href ="https://github.com/jsdoc3/jsdoc "> JSDoc 3.5.5</ a > on Sat Dec 29 2018 16:51:16 GMT-0500 (EST)
1449
+ Documentation generated by < a href ="https://github.com/jsdoc3/jsdoc "> JSDoc 3.5.5</ a > on Sun Jan 27 2019 14:02:18 GMT-0500 (EST)
1450
1450
</ footer >
1451
1451
1452
1452
< script > prettyPrint ( ) ; </ script >
Original file line number Diff line number Diff line change @@ -1316,6 +1316,9 @@ <h1 class="page-title">Source: gitgraph.js</h1>
1316
1316
}
1317
1317
1318
1318
alpha = rotate(alphaY, alphaX);
1319
+ }
1320
+
1321
+ if (this.type === "mergeCommit"){
1319
1322
color = this.parentCommit.branch.color;
1320
1323
}
1321
1324
@@ -1424,9 +1427,9 @@ <h1 class="page-title">Source: gitgraph.js</h1>
1424
1427
* @param {number} [options.branch.spacingY] - Space between branches
1425
1428
* @param {number} [options.commit.spacingX] - Space between commits
1426
1429
* @param {number} [options.commit.spacingY] - Space between commits
1427
- * @param {number} [options.commit.widthExtension = 0] - Additional width to be added to the calculated width
1430
+ * @param {number} [options.commit.widthExtension = 0] - Additional width to be added to the calculated width
1428
1431
* @param {string} [options.commit.color] - Master commit color (dot & message)
1429
- * @param {string} [options.commit.dot.font] - Commit dot color
1432
+ * @param {string} [options.commit.dot.font] - Commit dot font
1430
1433
* @param {string} [options.commit.dot.color] - Commit dot color
1431
1434
* @param {number} [options.commit.dot.size] - Commit dot size
1432
1435
* @param {number} [options.commit.dot.strokeWidth] - Commit dot stroke width
@@ -1905,7 +1908,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Branch.ht
1905
1908
< br class ="clear ">
1906
1909
1907
1910
< footer >
1908
- Documentation generated by < a href ="https://github.com/jsdoc3/jsdoc "> JSDoc 3.5.5</ a > on Sat Dec 29 2018 16:51:16 GMT-0500 (EST)
1911
+ Documentation generated by < a href ="https://github.com/jsdoc3/jsdoc "> JSDoc 3.5.5</ a > on Sun Jan 27 2019 14:02:18 GMT-0500 (EST)
1909
1912
</ footer >
1910
1913
1911
1914
< script > prettyPrint ( ) ; </ script >
Original file line number Diff line number Diff line change @@ -1561,7 +1561,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Branch.ht
1561
1561
< br class ="clear ">
1562
1562
1563
1563
< footer >
1564
- Documentation generated by < a href ="https://github.com/jsdoc3/jsdoc "> JSDoc 3.5.5</ a > on Sat Dec 29 2018 16:51:16 GMT-0500 (EST)
1564
+ Documentation generated by < a href ="https://github.com/jsdoc3/jsdoc "> JSDoc 3.5.5</ a > on Sun Jan 27 2019 14:02:18 GMT-0500 (EST)
1565
1565
</ footer >
1566
1566
1567
1567
< script > prettyPrint ( ) ; </ script >
Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Branch.ht
123
123
< br class ="clear ">
124
124
125
125
< footer >
126
- Documentation generated by < a href ="https://github.com/jsdoc3/jsdoc "> JSDoc 3.5.5</ a > on Sat Dec 29 2018 16:51:16 GMT-0500 (EST)
126
+ Documentation generated by < a href ="https://github.com/jsdoc3/jsdoc "> JSDoc 3.5.5</ a > on Sun Jan 27 2019 14:02:18 GMT-0500 (EST)
127
127
</ footer >
128
128
129
129
< script > prettyPrint ( ) ; </ script >
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " gitgraph.js" ,
3
- "version" : " 1.15.0 " ,
3
+ "version" : " 1.15.1 " ,
4
4
"author" : " Nicolas Carlo <nicolascarlo.espeon@gmail.com>" ,
5
5
"description" : " A JavaScript library to draw pretty git graphs in the browser" ,
6
6
"contributors" : [
Original file line number Diff line number Diff line change 1288
1288
}
1289
1289
1290
1290
alpha = rotate ( alphaY , alphaX ) ;
1291
+ }
1292
+
1293
+ if ( this . type === "mergeCommit" ) {
1291
1294
color = this . parentCommit . branch . color ;
1292
1295
}
1293
1296
1396
1399
* @param {number } [options.branch.spacingY] - Space between branches
1397
1400
* @param {number } [options.commit.spacingX] - Space between commits
1398
1401
* @param {number } [options.commit.spacingY] - Space between commits
1399
- * @param {number } [options.commit.widthExtension = 0] - Additional width to be added to the calculated width
1402
+ * @param {number } [options.commit.widthExtension = 0] - Additional width to be added to the calculated width
1400
1403
* @param {string } [options.commit.color] - Master commit color (dot & message)
1401
- * @param {string } [options.commit.dot.font] - Commit dot color
1404
+ * @param {string } [options.commit.dot.font] - Commit dot font
1402
1405
* @param {string } [options.commit.dot.color] - Commit dot color
1403
1406
* @param {number } [options.commit.dot.size] - Commit dot size
1404
1407
* @param {number } [options.commit.dot.strokeWidth] - Commit dot stroke width
0 commit comments