mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-15 00:54:25 +02:00
converted flip treey
This commit is contained in:
parent
c7cede468b
commit
82c3e75394
3 changed files with 11 additions and 15 deletions
|
@ -3,7 +3,7 @@ var Backbone = require('backbone');
|
|||
var GRAPHICS = require('../util/constants').GRAPHICS;
|
||||
|
||||
var VisBase = require('../visuals/visBase').VisBase;
|
||||
var GlobalState = require('../util/globalState');
|
||||
var GlobalStateStore = require('../stores/GlobalStateStore');
|
||||
|
||||
var VisEdge = VisBase.extend({
|
||||
defaults: {
|
||||
|
@ -52,7 +52,7 @@ var VisEdge = VisBase.extend({
|
|||
// is M(move abs) C (curve to) (control point 1) (control point 2) (final point)
|
||||
// the control points have to be __below__ to get the curve starting off straight.
|
||||
|
||||
var flipFactor = (GlobalState.flipTreeY) ? -1 : 1;
|
||||
var flipFactor = (GlobalStateStore.getFlipTreeY()) ? -1 : 1;
|
||||
var coords = function(pos) {
|
||||
return String(Math.round(pos.x)) + ',' + String(Math.round(pos.y));
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue