|
626 | 626 | * @property {string} [tagFont = this.template.commit.tag.font] - Font of the tag
|
627 | 627 | * @property {string} [displayTagBox = true] - If true, display a box around the tag
|
628 | 628 | *
|
| 629 | + * @property {string} [fotFont = this.template.commit.dot.font] - Font of the dot |
629 | 630 | * @property {string} [dotColor = color] - Specific dot color
|
630 | 631 | * @property {number} [dotSize = this.template.commit.dot.size] - Dot size
|
631 | 632 | * @property {number} [dotStrokeWidth = this.template.commit.dot.strokeWidth] - Dot stroke width
|
|
1046 | 1047 | * @param {string} [options.tagFont = this.template.commit.tag.font] - Font of the tag
|
1047 | 1048 | * @param {string} [options.displayTagBox = true] - If true, display a box around the tag
|
1048 | 1049 | *
|
| 1050 | +
|
| 1051 | + * @param {string} [options.dotFont = this.template.commit.dot.font] - Font of the dot |
1049 | 1052 | * @param {string} [options.dotColor = options.color] - Specific dot color
|
1050 | 1053 | * @param {number} [options.dotSize = this.template.commit.dot.size] - Dot size
|
1051 | 1054 | * @param {number} [options.dotStrokeWidth = this.template.commit.dot.strokeWidth] - Dot stroke width
|
|
1095 | 1098 | this.messageHashDisplay = _booleanOptionOr(options.messageHashDisplay, this.template.commit.message.displayHash);
|
1096 | 1099 | this.messageColor = options.messageColor || options.color;
|
1097 | 1100 | this.messageFont = options.messageFont || this.template.commit.message.font;
|
| 1101 | + this.dotFont = options.dotFont || this.template.commit.dot.font; |
1098 | 1102 | this.dotColor = options.dotColor || options.color;
|
1099 | 1103 | this.dotSize = options.dotSize || this.template.commit.dot.size;
|
1100 | 1104 | this.dotStrokeWidth = options.dotStrokeWidth || this.template.commit.dot.strokeWidth;
|
|
1212 | 1216 | var previousTextBaseline = this.context.textBaseline;
|
1213 | 1217 | var previousTextAlign = this.context.textAlign;
|
1214 | 1218 |
|
| 1219 | + this.context.font = this.dotFont; |
1215 | 1220 | this.context.fillStyle = "#000";
|
1216 | 1221 | this.context.textAlign = "center";
|
1217 | 1222 | this.context.textBaseline = "middle";
|
|
1392 | 1397 | * @param {number} [options.commit.spacingY] - Space between commits
|
1393 | 1398 | * @param {number} [options.commit.widthExtension = 0] - Additional width to be added to the calculated width
|
1394 | 1399 | * @param {string} [options.commit.color] - Master commit color (dot & message)
|
| 1400 | + * @param {string} [options.commit.dot.font] - Commit dot color |
1395 | 1401 | * @param {string} [options.commit.dot.color] - Commit dot color
|
1396 | 1402 | * @param {number} [options.commit.dot.size] - Commit dot size
|
1397 | 1403 | * @param {number} [options.commit.dot.strokeWidth] - Commit dot stroke width
|
|
1466 | 1472 | this.commit.dot = {};
|
1467 | 1473 |
|
1468 | 1474 | // Only one color, if null message takes branch color (only dot)
|
| 1475 | + this.commit.dot.font = options.commit.dot.font || "normal 10pt Calibri"; |
1469 | 1476 | this.commit.dot.color = options.commit.dot.color || null;
|
1470 | 1477 | this.commit.dot.size = options.commit.dot.size || 3;
|
1471 | 1478 | this.commit.dot.strokeWidth = options.commit.dot.strokeWidth || null;
|
|
0 commit comments