remove Metamaps from filenames

This commit is contained in:
Devin Howard 2016-09-22 14:35:14 +08:00
parent a4d31241a8
commit d02c836805
29 changed files with 86 additions and 82 deletions

View file

@ -0,0 +1,57 @@
window.Metamaps = window.Metamaps || {}
// TODO eliminate these 5 top-level variables
Metamaps.panningInt = null
Metamaps.tempNode = null
Metamaps.tempInit = false
Metamaps.tempNode2 = null
Metamaps.Settings = {
embed: false, // indicates that the app is on a page that is optimized for embedding in iFrames on other web pages
sandbox: false, // puts the app into a mode (when true) where it only creates data locally, and isn't writing it to the database
colors: {
background: '#344A58',
synapses: {
normal: '#888888',
hover: '#888888',
selected: '#FFFFFF'
},
topics: {
selected: '#FFFFFF'
},
labels: {
background: '#18202E',
text: '#DDD'
}
},
}
Metamaps.Touch = {
touchPos: null, // this stores the x and y values of a current touch event
touchDragNode: null // this stores a reference to a JIT node that is being dragged
}
Metamaps.Mouse = {
didPan: false,
didBoxZoom: false,
changeInX: 0,
changeInY: 0,
edgeHoveringOver: false,
boxStartCoordinates: false,
boxEndCoordinates: false,
synapseStartCoordinates: [],
synapseEndCoordinates: null,
lastNodeClick: 0,
lastCanvasClick: 0,
DOUBLE_CLICK_TOLERANCE: 300
}
Metamaps.Selected = {
reset: function () {
var self = Metamaps.Selected
self.Nodes = []
self.Edges = []
},
Nodes: [],
Edges: []
}

View file

@ -1,4 +1,5 @@
window.Metamaps = window.Metamaps || {}
Metamaps.JIT = {
events: {
topicDrag: 'Metamaps:JIT:events:topicDrag',

View file

@ -1,87 +1,33 @@
window.Metamaps = window.Metamaps || {}
// TODO eliminate these 5 top-level variables
Metamaps.panningInt = null
Metamaps.tempNode = null
Metamaps.tempInit = false
Metamaps.tempNode2 = null
import './Constants'
Metamaps.Settings = {
embed: false, // indicates that the app is on a page that is optimized for embedding in iFrames on other web pages
sandbox: false, // puts the app into a mode (when true) where it only creates data locally, and isn't writing it to the database
colors: {
background: '#344A58',
synapses: {
normal: '#888888',
hover: '#888888',
selected: '#FFFFFF'
},
topics: {
selected: '#FFFFFF'
},
labels: {
background: '#18202E',
text: '#DDD'
}
},
}
Metamaps.Touch = {
touchPos: null, // this stores the x and y values of a current touch event
touchDragNode: null // this stores a reference to a JIT node that is being dragged
}
Metamaps.Mouse = {
didPan: false,
didBoxZoom: false,
changeInX: 0,
changeInY: 0,
edgeHoveringOver: false,
boxStartCoordinates: false,
boxEndCoordinates: false,
synapseStartCoordinates: [],
synapseEndCoordinates: null,
lastNodeClick: 0,
lastCanvasClick: 0,
DOUBLE_CLICK_TOLERANCE: 300
}
Metamaps.Selected = {
reset: function () {
var self = Metamaps.Selected
self.Nodes = []
self.Edges = []
},
Nodes: [],
Edges: []
}
require('./Metamaps.Account')
require('./Metamaps.Admin')
require('./Metamaps.AutoLayout')
require('./Metamaps.Backbone')
require('./Metamaps.Control')
require('./Metamaps.Create')
require('./Metamaps.Debug')
require('./Metamaps.Filter')
require('./Metamaps.GlobalUI')
require('./Metamaps.Import')
require('./Metamaps.JIT')
require('./Metamaps.Listeners')
require('./Metamaps.Map')
require('./Metamaps.Mapper')
require('./Metamaps.Mobile')
require('./Metamaps.Organize')
require('./Metamaps.PasteInput')
require('./Metamaps.Realtime')
require('./Metamaps.Router')
require('./Metamaps.Synapse')
require('./Metamaps.SynapseCard')
require('./Metamaps.Topic')
require('./Metamaps.TopicCard')
require('./Metamaps.Util')
require('./Metamaps.Views')
require('./Metamaps.Visualize')
require('./Metamaps.ReactComponents')
import './Account'
import './Admin'
import './AutoLayout'
import './Backbone'
import './Control'
import './Create'
import './Debug'
import './Filter'
import './GlobalUI'
import './Import'
import './JIT'
import './Listeners'
import './Map'
import './Mapper'
import './Mobile'
import './Organize'
import './PasteInput'
import './Realtime'
import './Router'
import './Synapse'
import './SynapseCard'
import './Topic'
import './TopicCard'
import './Util'
import './Views'
import './Visualize'
import './ReactComponents'
export default window.Metamaps