WIP on legend for goal

This commit is contained in:
Peter Cottle 2013-07-07 15:26:03 -07:00
parent ea30b42616
commit 264f245275
11 changed files with 217 additions and 17 deletions

View file

@ -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');