mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-09 22:24:26 +02:00
WIP on legend for goal
This commit is contained in:
parent
ea30b42616
commit
264f245275
11 changed files with 217 additions and 17 deletions
|
@ -141,6 +141,14 @@ GitVisuals.prototype.getFlipPos = function() {
|
|||
return this.flipFraction * (max - min) + min;
|
||||
};
|
||||
|
||||
GitVisuals.prototype.getIsGoalVis = function() {
|
||||
return !!this.options.isGoalVis;
|
||||
};
|
||||
|
||||
GitVisuals.prototype.getLevelBlob = function() {
|
||||
return this.visualization.options.levelBlob || {};
|
||||
};
|
||||
|
||||
GitVisuals.prototype.toScreenCoords = function(pos) {
|
||||
if (!this.paper.width) {
|
||||
throw new Error('being called too early for screen coords');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue