mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-13 16:14:27 +02:00
Resolves #147 Flip trees upside down with flip
This commit is contained in:
parent
108937aad5
commit
937977f232
12 changed files with 61 additions and 35 deletions
|
@ -5,11 +5,6 @@ var TIME = {
|
|||
betweenCommandsDelay: 400
|
||||
};
|
||||
|
||||
// useful for locks, etc
|
||||
var GLOBAL = {
|
||||
isAnimating: false
|
||||
};
|
||||
|
||||
var VIEWPORT = {
|
||||
minZoom: 0.55,
|
||||
maxZoom: 1.25,
|
||||
|
@ -53,7 +48,6 @@ var GRAPHICS = {
|
|||
orphanNodeFill: 'hsb(0.5,0.8,0.7)'
|
||||
};
|
||||
|
||||
exports.GLOBAL = GLOBAL;
|
||||
exports.TIME = TIME;
|
||||
exports.GRAPHICS = GRAPHICS;
|
||||
exports.VIEWPORT = VIEWPORT;
|
||||
|
|
11
src/js/util/globalState.js
Normal file
11
src/js/util/globalState.js
Normal file
|
@ -0,0 +1,11 @@
|
|||
/**
|
||||
* Random grab bag of global state variables so we
|
||||
* dont just straight up use window
|
||||
*/
|
||||
|
||||
var GlobalState = {
|
||||
flipTreeY: false,
|
||||
isAnimating: false
|
||||
};
|
||||
|
||||
module.exports = GlobalState;
|
Loading…
Add table
Add a link
Reference in a new issue