From d40155df398a48142e7630bda074cdf7941620ed Mon Sep 17 00:00:00 2001 From: Pujan Joshi Date: Wed, 3 Feb 2016 11:23:31 -0500 Subject: [PATCH 1/2] not needed anymore --- VQI_Observable1.js | 57 - VQI_PathwayEditor.js | 2444 ------------------------------------------ 2 files changed, 2501 deletions(-) delete mode 100644 VQI_Observable1.js delete mode 100755 VQI_PathwayEditor.js diff --git a/VQI_Observable1.js b/VQI_Observable1.js deleted file mode 100644 index 9f1527d..0000000 --- a/VQI_Observable1.js +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Class VQIObservable - * @author Pujan Joshi - * @Date April 21, 2014 - * This is a generic Observable class - * This class has basic methods to deal with observers - * This class is also observer so it can subscribe to another obvervable class. - * - */ - -var VQI_Observable = function() { - this.subscribers = { - any: [] // event type: subscribers - }; - this.subscribe = function(fn, type) { - type = type || 'any'; - if (typeof this.subscribers[type] === "undefined") { - this.subscribers[type] = []; - } - this.subscribers[type].push(fn); - }; - this.unsubscribe = function(fn, type) { - this.visitSubscribers('unsubscribe', fn, type); - }; - this.publish = function(fn, type) { - this.visitSubscribers('publish', fn, type); - }; - this.loading = function(fn, type) { - this.visitSubscribers('loading', fn, type); - }; - this.visitSubscribers = function(action, fn, type) { - var pubtype = type || 'any'; - var subscribers = this.subscribers[pubtype]; - subscribers = subscribers || 0; - var i; - var max = subscribers.length; - - for (i = 0; i < max; i += 1) { - if (action === 'publish') { -// console.log(this); - subscribers[i].update(fn, type); - } else if (action === 'loading') { - - subscribers[i].loading(); - - } else { - if (subscribers[i] === fn) { - subscribers.splice(i, 1); - } - } - } - }; - - this.subscribeTo = function(observable, type){ - observable.subscribe(this, type); - }; -}; \ No newline at end of file diff --git a/VQI_PathwayEditor.js b/VQI_PathwayEditor.js deleted file mode 100755 index 41f73fa..0000000 --- a/VQI_PathwayEditor.js +++ /dev/null @@ -1,2444 +0,0 @@ -var VQI_PathwayEditorGUI = function (parent) { - - //Web services -// var serverURL = "http://cardinal3.engr.uconn.edu/pathwayVisual/"; - var services = {}; - - /*Local Services*/ - services["pathwayFinderUrl"] = "http://bibci.engr.uconn.edu/puj07001/pathway_services/find_path_and_score/find_path_and_score.php"; - - /* Yue's Local Server*/ - services['pathwayFinder'] = 'http://cardinal3.engr.uconn.edu/pathwayVisual/PathwayParser/ajaxJSON.php'; - services['pathwaySaver'] = 'http://cardinal3.engr.uconn.edu/pathwayVisual/PathwayParser/updateDB_json.php'; - services['pathwayScorer'] = 'http://cardinal3.engr.uconn.edu/pathwayVisual/ScoreSystem/getScore.php'; - /* Yue's local server URLs end here */ - - /* Tham's local server */ - services['pathwayWeightedScorer'] = 'http://137.99.11.122/pathway2/pathwayweightedscorer.php'; - services['objectFinder'] = 'http://137.99.11.122/pathway2/qsys_json.php'; - /* Tham's local server URL end here */ - - /* BIBCI Server */ -// services['pathwayFinder'] = 'http://bibci.engr.uconn.edu/yuz12012/pathwayVisual//PathwayParser/ajaxJSON.php'; -// services['pathwaySaver'] = 'http://bibci.engr.uconn.edu/yuz12012/pathwayVisual//PathwayParser/updateDB_json.php'; -// services['pathwayScorer'] = 'http://bibci.engr.uconn.edu/yuz12012/pathwayVisual/ScoreSystem/getScore.php'; -// services['pathwayWeightedScorer'] = 'http://bibci.engr.uconn.edu/thh13003/pathway2/pathwayweightedscorer.php'; -// services['objectFinder'] = 'http://bibci.engr.uconn.edu/thh13003/pathway2/qsys_json.php'; - - - // Globals - var self = this; - var types = ["bundleOne", "bundleTwo", "gene", "geneProduct", "protein", "rna", "microRNA", "kinase", "ligand", "receptor", "biologicalProcess", "triangle", "rectangle", "circle", "ellipse", "pentagon", "hexagon", "heptagon", "octagon", "star", "diamond", "vee", "rhomboid", "label"]; - var personId = ""; - var pathName = ""; - var states = []; - var stateRecycle = []; - var selectedForQueryNodes = []; - var selectedForEditNodes = []; - var selectedForEditEdges = []; - var orderedSelectedNodes = []; - var grabbedCollapsedForEditNodes = []; - var coloredNodes = []; - var edgeCounter = 0; - var nodeCounter = 0; - var loadCounts = 0; - var target = 0; - var header = ""; - var counts = {}; - var strInfo; - var highestZOrder = 999; - - var strVar = ""; - strVar += "