mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-26 16:08:34 +02:00
random hues for branches
This commit is contained in:
parent
7d88e5564c
commit
ea6844ae04
5 changed files with 38 additions and 41 deletions
|
@ -246,7 +246,7 @@ GitVisuals.prototype.calcDepth = function() {
|
|||
// issue warning
|
||||
events.trigger('issueWarning',
|
||||
'Max Depth Exceeded! Visuals may degrade here. ' +
|
||||
'Please start fresh or use reset to reduce the max depth'
|
||||
'Please start fresh'
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -454,33 +454,6 @@ function randomGradient() {
|
|||
return gradient;
|
||||
};
|
||||
|
||||
function cutePath(paper, pathString, options) {
|
||||
options = options || {};
|
||||
var wantsToFill = options.wantsToFill;
|
||||
var strokeColor = options.strokeColor;
|
||||
var fillColor = options.fillColor;
|
||||
|
||||
var path = paper.path(pathString);
|
||||
|
||||
if (!strokeColor) {
|
||||
strokeColor = randomHueString();
|
||||
}
|
||||
if (!fillColor) {
|
||||
fillColor = randomHueString();
|
||||
}
|
||||
path.attr({
|
||||
'stroke-width': 2,
|
||||
'stroke': strokeColor,
|
||||
'stroke-linecap': 'round',
|
||||
'stroke-linejoin': 'round'
|
||||
});
|
||||
|
||||
if (wantsToFill) {
|
||||
path.attr('fill',fillColor);
|
||||
}
|
||||
return path;
|
||||
};
|
||||
|
||||
function cuteSmallCircle(paper, x, y, options) {
|
||||
var options = options || {};
|
||||
var wantsSameColor = options.sameColor;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue