Commit 15f8d25d authored by PkSM3's avatar PkSM3

multiple bugfix

parent 3ad22b68
......@@ -12,14 +12,15 @@ function changeType() {
pushSWClick("semantic");
RefreshState("B")
} else {
//From soc* to SocSem
if(is_empty(selections)) {
//soc to SocSem
changeToMacro("semantic");
pushSWClick("semantic");
RefreshState("B")
} else {
//soc* to SocSem
changeToMeso("sociosemantic");
pushSWClick("sociosemantic");
RefreshState("AaBb")
......@@ -246,7 +247,7 @@ function EdgeWeightFilter(sliderDivID , type_attrb , type , criteria) {
partialGraph.refresh()
partialGraph.draw()
fa2enabled=true; partialGraph.startForceAtlas2()
// fa2enabled=true; partialGraph.startForceAtlas2()
// });
}
......
......@@ -81,9 +81,6 @@ function sigmaLimits(){
function bringTheNoise(pathfile,type){
pr("printing the pathfile:")
pr(pathfile)
$("#semLoader").hide();
$('#modalloader').modal('show');
// === get width and height === //
......@@ -95,11 +92,8 @@ function bringTheNoise(pathfile,type){
.graphProperties(sigmaJsGraphProperties)
.mouseProperties(sigmaJsMouseProperties);
otherGraph = sigma.init(document.getElementById('sigma-othergraph'))
// .drawingProperties(sigmaJsDrawingProperties)
// .graphProperties(sigmaJsGraphProperties)
// .mouseProperties(sigmaJsMouseProperties);
//dummy graph (semantic layouting in background)
otherGraph = sigma.init(document.getElementById('sigma-othergraph'));
// === resize topbar and tweakbar === //
var body=document.getElementsByTagName('body')[0];
......@@ -284,8 +278,8 @@ function theListeners(){
$.ui.autocomplete.prototype._renderItem = function(ul, item) {
var searchVal = $("#searchinput").val();
var desc = extractContext(item.desc, searchVal);
pr("desc:")
pr(desc)
// pr("desc:")
// pr(desc)
return $('<li onclick=\'var s = "'+item.label+'"; search(s);$("#searchinput").val(strSearchBar);\'></li>')
.data('item.autocomplete', item)
.append("<a><span class=\"labelresult\">" + item.label + "</span></a>" )
......@@ -456,7 +450,7 @@ function theListeners(){
if(is_empty(actualSel) || i==0){
pr("cursor radius ON, mouseDown -> selecciones vacias");
cancelSelection(false);
LevelButtonDisable(true);
// $("#names").html("");
// $("#opossiteNodes").html("");
// $("#information").html("");
......
This diff is collapsed.
......@@ -788,5 +788,4 @@ function extractFromJson(data,seed){
//edge.hidden=false/**///should be commented
}
}
//for socialgraph
function showMeSomeLabels(N){
/*======= Show some labels at the beginning =======*/
minIn=50,
......@@ -112,6 +114,7 @@ function exactfind(label) {
return null;
}
//to general utils (not used btw)
function cloneObject(source) {
for (i in source) {
if (typeof source[i] == 'source') {
......@@ -284,7 +287,8 @@ function calculateFull(hex) {
return [r,g,b];
}
// function for calculating 3 letters hex value
// function for calculating 3 letters hex value
function calculatePartial(hex) {
var r = parseInt(hex.substring(0, 1) + hex.substring(0, 1), 16);
var g = parseInt(hex.substring(1, 2) + hex.substring(1, 2), 16);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment