2013-01-11 03:01:24 +00:00
|
|
|
/*
|
|
|
|
* @file
|
|
|
|
* This file holds the Model object that is referenced in other graphsettings
|
|
|
|
* files. It lists selected nodes, selected edges, and stores data about
|
|
|
|
* double clicks on the canvas
|
|
|
|
*/
|
|
|
|
|
|
|
|
var MetamapsModel = new Object();
|
2013-02-22 23:08:03 +00:00
|
|
|
|
2013-02-19 14:44:43 +00:00
|
|
|
MetamapsModel.embed = false;
|
2013-02-22 23:08:03 +00:00
|
|
|
|
2013-03-12 02:25:22 +00:00
|
|
|
//array of all selected edges, same for nodes
|
2013-01-11 03:01:24 +00:00
|
|
|
MetamapsModel.selectedEdges = new Array();
|
2013-03-12 02:25:22 +00:00
|
|
|
MetamapsModel.selectedNodes = new Array();
|
2013-02-22 23:08:03 +00:00
|
|
|
|
|
|
|
//is any showcard open right now? which one?
|
2013-02-15 03:23:14 +00:00
|
|
|
MetamapsModel.showcardInUse = null;
|
2013-02-22 23:08:03 +00:00
|
|
|
|
|
|
|
//is the mouse hovering over an edge? which one?
|
|
|
|
MetamapsModel.edgeHoveringOver = false;
|
|
|
|
|
|
|
|
//double clicking of nodes or canvas
|
|
|
|
MetamapsModel.lastNodeClick = 0;
|
2013-01-11 03:01:24 +00:00
|
|
|
MetamapsModel.lastCanvasClick = 0;
|
|
|
|
MetamapsModel.DOUBLE_CLICK_TOLERANCE = 300;
|
2013-02-22 23:08:03 +00:00
|
|
|
|
|
|
|
//pop-up permission editors timers
|
2013-01-27 22:21:19 +00:00
|
|
|
MetamapsModel.edgePermTimer1 = null;
|
|
|
|
MetamapsModel.edgePermTimer2 = null;
|
|
|
|
MetamapsModel.edgePermSliding = false;
|
|
|
|
MetamapsModel.topicPermTimer1 = null;
|
|
|
|
MetamapsModel.topicPermTimer2 = null;
|
|
|
|
MetamapsModel.topicPermSliding = false;
|