diff options
| author | Alexis Jacomy <alexis.jacomy@gmail.com> | 2011-06-16 13:52:53 +0200 |
|---|---|---|
| committer | Alexis Jacomy <alexis.jacomy@gmail.com> | 2011-06-16 13:52:53 +0200 |
| commit | 713dea1ee1be5d8d8cf5ae8023cc2015b16463ae (patch) | |
| tree | 55232a57efa7143c02275bd1b7db8e832dc2ead7 /public/javascripts/sigma-connector.js | |
| parent | add app.psgi (diff) | |
| download | stargit-713dea1ee1be5d8d8cf5ae8023cc2015b16463ae.tar.gz | |
Interface update (WARNING: Flash to JS communication is currently broken, and JS to Flash does not work on Firefox, to be fixed soon)
Diffstat (limited to 'public/javascripts/sigma-connector.js')
| -rw-r--r-- | public/javascripts/sigma-connector.js | 125 |
1 files changed, 0 insertions, 125 deletions
diff --git a/public/javascripts/sigma-connector.js b/public/javascripts/sigma-connector.js deleted file mode 100644 index c511de9..0000000 --- a/public/javascripts/sigma-connector.js +++ /dev/null @@ -1,125 +0,0 @@ -// --- SiGMa (API version) JavaSCript connector --- -// Contains the functions to send data to a SiGMa.swf instance. - -// You have to initialize this parameter before using the -// different functions: -var sigmaDOM; -var outputFunction; - -// This function starts the layout algorithm: -function initForceAtlas(){ - try{ - sigmaDOM.initForceAtlas(); - }catch(e){ - if(outputFunction){ - outputFunction(e.description); - } - } -} - -// This function stops the layout algorithm: -function killForceAtlas(){ - try{ - sigmaDOM.killForceAtlas(); - }catch(e){ - if(outputFunction){ - outputFunction(e.description); - } - } -} - -// This function delete the whole graph in SiGMa: -function deleteGraph(){ - try{ - sigmaDOM.deleteGraph(); - }catch(e){ - if(outputFunction){ - outputFunction(e.description); - } - } -} - -// This function pushes each non-existing node and edge in the graph, -// and removes the ones that were in SiGMa: -function updateGraph(graph){ - try{ - sigmaDOM.updateGraph(graph); - }catch(e){ - if(outputFunction){ - outputFunction(e.description); - } - } -} - -// This function pushes each non-existing node and edge in the graph, -// and updates the ones that are already in SiGMa: -function pushGraph(graph){ - try{ - sigmaDOM.pushGraph(graph); - }catch(e){ - if(outputFunction){ - outputFunction(e.description); - } - } -} - -// This function activates the fish-eye zoom: -function activateFishEye(){ - try{ - sigmaDOM.activateFishEye(); - }catch(e){ - if(outputFunction){ - outputFunction(e.description); - } - } -} - -// This function desactivates the fish-eye zoom: -function deactivateFishEye(){ - try{ - sigmaDOM.deactivateFishEye(); - }catch(e){ - if(outputFunction){ - outputFunction(e.description); - } - } -} - -// This function sets the color of the nodes relatively to one -// attribute: -function setColor(field,attributes){ - try{ - sigmaDOM.setColor(field,attributes); - }catch(e){ - if(outputFunction){ - outputFunction(e.description); - } - } -} - -// This function sets the color of the nodes relatively to one -// attribute: -function setSize(field){ - try{ - sigmaDOM.setSize(field); - }catch(e){ - if(outputFunction){ - outputFunction(e.description); - } - } -} - -// This function recenters the graph in SiGMa (basically, it -// cancels each zooming action and every drag'n'drop): -function recenterGraph(){ - try{ - sigmaDOM.resetGraphPosition(); - }catch(e){ - if(outputFunction){ - outputFunction(e.description); - } - } -} - -// /!\ This script is just a draft, most of the methods might change -// soon, and a lot of missing features are already in development... |
