-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from rostam/master
Merging changes from rostam
- Loading branch information
Showing
7 changed files
with
210 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
function do_actions() { | ||
var action = $('#actions').find('option:selected').text(); | ||
if(action == "Load and Draw") { | ||
load_generator(true); | ||
} else if(action == "Load Only") { | ||
load_generator(false); | ||
} else if(action == "Fit Canvas") { | ||
cy.fit(); | ||
} else if(action == "Clear Canvas") { | ||
clearCanvas(); | ||
} else if(action == "Canvas to Image") { | ||
var jpg64 = cy.jpg(); | ||
window.open(jpg64); | ||
} | ||
} | ||
|
||
function do_saves() { | ||
var output = $('#output').find('option:selected').text(); | ||
if(output == "G6 Format") { | ||
server(serverAddr + 'save/g6--'+uuid,function (data) { | ||
$("#outputResults").html(data.results); | ||
}); | ||
} else if(output == "Adjacency List") { | ||
|
||
} else if(output == "Adjacency Matrix") { | ||
|
||
} else if(output == "GraphTea Format") { | ||
window.open(serverAddr + 'tea/currentGraph--'+uuid); | ||
// server(serverAddr + 'tea/currentGraph--'+uuid,function (data) { | ||
// }); | ||
} else if(output == "LaTeX") { | ||
window.open(serverAddr + 'tex/currentGraph--'+uuid); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters