Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
KADMOS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LR-FPP-MDO
KADMOS
Commits
02444b5b
Commit
02444b5b
authored
6 years ago
by
baigner
Browse files
Options
Downloads
Patches
Plain Diff
Manual merge of master into dev_vistoms_try_Benedikt
Former-commit-id: dc3651e753f0c54edee0d766230cfa6b2d422dd4
parent
9ebef393
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#192832
canceled
1 year ago
Stage: build
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
kadmos/vistoms/templates/VISTOMS.html
+43
-29
43 additions, 29 deletions
kadmos/vistoms/templates/VISTOMS.html
with
43 additions
and
29 deletions
kadmos/vistoms/templates/VISTOMS.html
+
43
−
29
View file @
02444b5b
...
@@ -50,6 +50,14 @@
...
@@ -50,6 +50,14 @@
}
}
});
});
};
};
/**
* Returns a random integer between min (inclusive) and max (inclusive)
* Using Math.round() will give you a non-uniform distribution!
*/
function getRandomInt(min, max) {
return Math.floor(Math.random() * (max - min + 1)) + min;
}
//aigner: General functions communicating with the user via bootbox after kadmos requests
//aigner: General functions communicating with the user via bootbox after kadmos requests
...
@@ -20066,14 +20074,15 @@
...
@@ -20066,14 +20074,15 @@
{
{
var headLine = "Tree Layout for category:\" " + category + "\", subcategory:\" " + sub_category + "\"";
var headLine = "Tree Layout for category:\" " + category + "\", subcategory:\" " + sub_category + "\"";
var d3_body = d3.select("body");
var d3_body = d3.select("body");
var lobiID = String(getRandomInt(0,1000))
var treeLayoutdiv = d3_body.append("div").attr("class","treeDiv panel-default")
var divClassName = "treeDiv" + lobiID;
var treeLayoutdiv = d3_body.append("div").attr("class",divClassName+ " panel-default")
.style("left","200px")
.style("left","200px")
.style("top","200px")
.style("top","200px")
.style("position", "absolute")
.style("position", "absolute")
treeLayoutdiv.append("div").attr("class","panel-heading")
treeLayoutdiv.append("div").attr("class","panel-heading")
.append("div").attr("class","panel_title").append("h4").text(headLine)
.append("div").attr("class","panel_title").append("h4").text(headLine)
$('.
treeDiv'
).lobiPanel({
$('.
' + divClassName
).lobiPanel({
reload: false,
reload: false,
editTitle: false,
editTitle: false,
unpin: false,
unpin: false,
...
@@ -20082,10 +20091,10 @@
...
@@ -20082,10 +20091,10 @@
minHeight: 200,
minHeight: 200,
maxHeight: 100000,
maxHeight: 100000,
});
});
$('.
treeDiv'
).lobiPanel('unpin');
$('.
'+divClassName
).lobiPanel('unpin');
var treeLayoutSVG = treeLayoutdiv.append("svg").attr("class","treeLayoutSVG")
var treeLayoutSVG = treeLayoutdiv.append("svg").attr("class","treeLayoutSVG")
var treeLayout = treeLayoutSVG.append("g").attr("class","treeLayout");
var treeLayout = treeLayoutSVG.append("g").attr("class","treeLayout");
maketreeLayout(array, treeLayout, treeLayoutSVG, treeLayoutdiv, headLine, varCategories[0].description);
maketreeLayout(array, treeLayout, treeLayoutSVG, treeLayoutdiv,
divClassName,
headLine, varCategories[0].description);
show_bootBox_listMessage(functions,nodeMenu);
show_bootBox_listMessage(functions,nodeMenu);
}
}
if (result.includes("List"))
if (result.includes("List"))
...
@@ -21282,14 +21291,15 @@
...
@@ -21282,14 +21291,15 @@
{
{
var headLine = "Full data model tree view; Categorization: " + categoryDescr;
var headLine = "Full data model tree view; Categorization: " + categoryDescr;
var d3_body = d3.select("body");
var d3_body = d3.select("body");
var lobiID = String(getRandomInt(0,1000))
var treeLayoutdiv = d3_body.append("div").attr("class","treeDiv panel-default")
var divClassName = 'treeDiv' + lobiID;
var treeLayoutdiv = d3_body.append("div").attr("class",divClassName+" panel-default")
.style("left",(d3.event.pageX) + "px")
.style("left",(d3.event.pageX) + "px")
.style("top",(d3.event.pageY - 28) + "px")
.style("top",(d3.event.pageY - 28) + "px")
.style("position", "absolute")
.style("position", "absolute")
treeLayoutdiv.append("div").attr("class","panel-heading")
treeLayoutdiv.append("div").attr("class","panel-heading")
.append("div").attr("class","panel_title").append("h4").text(headLine)
.append("div").attr("class","panel_title").append("h4").text(headLine)
$('.
treeDiv'
).lobiPanel({
$('.
' + divClassName
).lobiPanel({
reload: false,
reload: false,
editTitle: false,
editTitle: false,
unpin: false,
unpin: false,
...
@@ -21298,11 +21308,10 @@
...
@@ -21298,11 +21308,10 @@
minHeight: 200,
minHeight: 200,
maxHeight: 100000,
maxHeight: 100000,
});
});
$('.treeDiv').lobiPanel('unpin');
$('.'+divClassName).lobiPanel('unpin');
var treeLayoutSVG = treeLayoutdiv.append("svg").attr("class","treeLayoutSVG")
var treeLayoutSVG = treeLayoutdiv.append("svg").attr("class","treeLayoutSVG")
var treeLayout = treeLayoutSVG.append("g").attr("class","treeLayout");
var treeLayout = treeLayoutSVG.append("g").attr("class","treeLayout");
maketreeLayout(emptyArray, treeLayout, treeLayoutSVG, treeLayoutdiv, headLine, aCategory);
maketreeLayout(emptyArray, treeLayout, treeLayoutSVG, treeLayoutdiv,
divClassName,
headLine, aCategory);
}
}
var childrenItems = [];
var childrenItems = [];
...
@@ -21411,7 +21420,8 @@
...
@@ -21411,7 +21420,8 @@
var headLine = name;
var headLine = name;
var d3_body = d3.select("body");
var d3_body = d3.select("body");
var divClassName = "treeDiv";
var lobiID = String(getRandomInt(0,1000))
var divClassName = "treeDiv" + lobiID;
var treeLayoutdiv = d3_body.append("div").attr("class",divClassName + " panel-default")
var treeLayoutdiv = d3_body.append("div").attr("class",divClassName + " panel-default")
.style("left",(d3.event.pageX) + "px")
.style("left",(d3.event.pageX) + "px")
.style("top",(d3.event.pageY - 28) + "px")
.style("top",(d3.event.pageY - 28) + "px")
...
@@ -21430,7 +21440,7 @@
...
@@ -21430,7 +21440,7 @@
$('.'+divClassName).lobiPanel('unpin');
$('.'+divClassName).lobiPanel('unpin');
var treeLayoutSVG = treeLayoutdiv.append("svg").attr("class","treeLayoutSVG")
var treeLayoutSVG = treeLayoutdiv.append("svg").attr("class","treeLayoutSVG")
var treeLayout = treeLayoutSVG.append("g").attr("class","treeLayout");
var treeLayout = treeLayoutSVG.append("g").attr("class","treeLayout");
maketreeLayout(array, treeLayout, treeLayoutSVG, treeLayoutdiv, headLine, aCategory);
maketreeLayout(array, treeLayout, treeLayoutSVG, treeLayoutdiv,
divClassName,
headLine, aCategory);
}
}
//############################################################
//############################################################
...
@@ -21820,8 +21830,8 @@
...
@@ -21820,8 +21830,8 @@
{
{
var headLine = "Tree view: " + data.from + " → " + data.to + "; Categorization: " + categoryDescr;
var headLine = "Tree view: " + data.from + " → " + data.to + "; Categorization: " + categoryDescr;
var d3_body = d3.select("body");
var d3_body = d3.select("body");
var lobiID = String(getRandomInt(0,1000))
var divClassName = "treeDiv";
var divClassName = "treeDiv"
+ lobiID
;
var treeLayoutdiv = d3_body.append("div").attr("class",divClassName + " panel-default")
var treeLayoutdiv = d3_body.append("div").attr("class",divClassName + " panel-default")
.style("left",(d3.event.pageX) + "px")
.style("left",(d3.event.pageX) + "px")
.style("top",(d3.event.pageY - 28) + "px")
.style("top",(d3.event.pageY - 28) + "px")
...
@@ -21840,7 +21850,7 @@
...
@@ -21840,7 +21850,7 @@
$('.'+divClassName).lobiPanel('unpin');
$('.'+divClassName).lobiPanel('unpin');
var treeLayoutSVG = treeLayoutdiv.append("svg").attr("class","treeLayoutSVG")
var treeLayoutSVG = treeLayoutdiv.append("svg").attr("class","treeLayoutSVG")
var treeLayout = treeLayoutSVG.append("g").attr("class","treeLayout");
var treeLayout = treeLayoutSVG.append("g").attr("class","treeLayout");
maketreeLayout(data.name, treeLayout, treeLayoutSVG, treeLayoutdiv, headLine, aVarCategory);
maketreeLayout(data.name, treeLayout, treeLayoutSVG, treeLayoutdiv,
divClassName,
headLine, aVarCategory);
}
}
function showEdgeTable(anEdge)
function showEdgeTable(anEdge)
...
@@ -22040,7 +22050,7 @@
...
@@ -22040,7 +22050,7 @@
}
}
function maketreeLayout(pipeData, layout, svg, div, aName, aVarCategory)
function maketreeLayout(pipeData, layout, svg, div,
aLobiID,
aName, aVarCategory)
{
{
var treeData = (JSON.parse(JSON.stringify(currentGraph.variableSchemes[aVarCategory])));
var treeData = (JSON.parse(JSON.stringify(currentGraph.variableSchemes[aVarCategory])));
//aigner: Build the tree layout
//aigner: Build the tree layout
...
@@ -22283,8 +22293,8 @@
...
@@ -22283,8 +22293,8 @@
newWidth=Math.max(newWidth,getTextWidth(aName,"Arial 12pt"));
newWidth=Math.max(newWidth,getTextWidth(aName,"Arial 12pt"));
//aigner: Adjust height and width of the frame
//aigner: Adjust height and width of the frame
$('.
treeDiv'
).lobiPanel('setWidth', newWidth + margin.top + margin.bottom +400+maxLabelLength*25+offset_tmp);
$('.
' + aLobiID
).lobiPanel('setWidth', newWidth + margin.top + margin.bottom +400+maxLabelLength*25+offset_tmp);
$('.
treeDiv'
).lobiPanel('setHeight', newHeight + margin.top + 2*margin.bottom+offset_tmp);
$('.
' + aLobiID
).lobiPanel('setHeight', newHeight + margin.top + 2*margin.bottom+offset_tmp);
div = div.attr("height", newHeight + margin.top + margin.bottom+offset_tmp)
div = div.attr("height", newHeight + margin.top + margin.bottom+offset_tmp)
div = div.attr("width", newWidth + margin.top + margin.bottom +400+maxLabelLength*25+offset_tmp)
div = div.attr("width", newWidth + margin.top + margin.bottom +400+maxLabelLength*25+offset_tmp)
.on("mousedown", function(d) {
.on("mousedown", function(d) {
...
@@ -23619,13 +23629,15 @@
...
@@ -23619,13 +23629,15 @@
//aigner: Here the tree layout is created
//aigner: Here the tree layout is created
var d3_body = d3.select("body")
var d3_body = d3.select("body")
var treeLayoutdiv = d3_body.append("div").attr("class","treeDiv panel-default")
var lobiID = String(getRandomInt(0,1000))
var divClassName = "treeDiv"+lobiID
var treeLayoutdiv = d3_body.append("div").attr("class",divClassName+" panel-default")
.style("left","200px")
.style("left","200px")
.style("top","200px")
.style("top","200px")
.style("position", "absolute")
.style("position", "absolute")
treeLayoutdiv.append("div").attr("class","panel-heading")
treeLayoutdiv.append("div").attr("class","panel-heading")
.append("div").attr("class","panel_title").append("h4").text(theName)
.append("div").attr("class","panel_title").append("h4").text(theName)
$('.
treeDiv'
).lobiPanel({
$('.
'+divClassName
).lobiPanel({
reload: false,
reload: false,
editTitle: false,
editTitle: false,
unpin: false,
unpin: false,
...
@@ -23634,7 +23646,7 @@
...
@@ -23634,7 +23646,7 @@
minHeight: 200,
minHeight: 200,
maxHeight: 100000,
maxHeight: 100000,
});
});
$('.
treeDiv'
).lobiPanel('unpin');
$('.
'+divClassName
).lobiPanel('unpin');
var treeLayoutSVG = treeLayoutdiv.append("svg").attr("class","treeLayoutSVG")
var treeLayoutSVG = treeLayoutdiv.append("svg").attr("class","treeLayoutSVG")
var treeGroup = treeLayoutSVG.append("g").attr("class","treeGroup").style("position","absolute")
var treeGroup = treeLayoutSVG.append("g").attr("class","treeGroup").style("position","absolute")
.attr("transform", "translate(50,0)");
.attr("transform", "translate(50,0)");
...
@@ -23792,8 +23804,8 @@
...
@@ -23792,8 +23804,8 @@
newWidth=Math.max(newWidth,getTextWidth(theName,"Arial 12pt"));
newWidth=Math.max(newWidth,getTextWidth(theName,"Arial 12pt"));
//aigner: Adjust height and width of the frame
//aigner: Adjust height and width of the frame
$('.
treeDiv'
).lobiPanel('setWidth', newWidth + margin.top + margin.bottom +400+maxLabelLength*25+offset_tmp);
$('.
'+divClassName
).lobiPanel('setWidth', newWidth + margin.top + margin.bottom +400+maxLabelLength*25+offset_tmp);
$('.
treeDiv'
).lobiPanel('setHeight', newHeight + margin.top + 2*margin.bottom+offset_tmp);
$('.
'+divClassName
).lobiPanel('setHeight', newHeight + margin.top + 2*margin.bottom+offset_tmp);
treeLayoutSVG = treeLayoutSVG.attr("height", newHeight + margin.top + margin.bottom+offset_tmp)
treeLayoutSVG = treeLayoutSVG.attr("height", newHeight + margin.top + margin.bottom+offset_tmp)
treeLayoutSVG = treeLayoutSVG.attr("width", newWidth + margin.top + margin.bottom +300+maxLabelLength*25+offset_tmp)
treeLayoutSVG = treeLayoutSVG.attr("width", newWidth + margin.top + margin.bottom +300+maxLabelLength*25+offset_tmp)
frame = frame.attr("height", newHeight + margin.top + margin.bottom)
frame = frame.attr("height", newHeight + margin.top + margin.bottom)
...
@@ -26177,13 +26189,15 @@
...
@@ -26177,13 +26189,15 @@
//aigner: Here the tree layout is created
//aigner: Here the tree layout is created
var d3_body = d3.select("body")
var d3_body = d3.select("body")
var treeLayoutdiv = d3_body.append("div").attr("class","treeDiv panel-default")
var lobiID = String(getRandomInt(0,1000))
var divClassName = "treeDiv"+lobiID
var treeLayoutdiv = d3_body.append("div").attr("class",divClassName+" panel-default")
.style("left","200px")
.style("left","200px")
.style("top","200px")
.style("top","200px")
.style("position", "absolute")
.style("position", "absolute")
treeLayoutdiv.append("div").attr("class","panel-heading")
treeLayoutdiv.append("div").attr("class","panel-heading")
.append("div").attr("class","panel_title").append("h4").text(theName)
.append("div").attr("class","panel_title").append("h4").text(theName)
$('.
treeDiv'
).lobiPanel({
$('.
'+divClassName
).lobiPanel({
reload: false,
reload: false,
editTitle: false,
editTitle: false,
unpin: false,
unpin: false,
...
@@ -26192,7 +26206,7 @@
...
@@ -26192,7 +26206,7 @@
minHeight: 200,
minHeight: 200,
maxHeight: 100000,
maxHeight: 100000,
});
});
$('.
treeDiv'
).lobiPanel('unpin');
$('.
'+divClassName
).lobiPanel('unpin');
var treeLayoutSVG = treeLayoutdiv.append("svg").attr("class","treeLayoutSVG")
var treeLayoutSVG = treeLayoutdiv.append("svg").attr("class","treeLayoutSVG")
var treeGroup = treeLayoutSVG.append("g").attr("class","treeGroup").style("position","absolute")
var treeGroup = treeLayoutSVG.append("g").attr("class","treeGroup").style("position","absolute")
...
@@ -26351,8 +26365,8 @@
...
@@ -26351,8 +26365,8 @@
newWidth=Math.max(newWidth,getTextWidth(theName,"Arial 12pt"));
newWidth=Math.max(newWidth,getTextWidth(theName,"Arial 12pt"));
//aigner: Adjust height and width of the frame
//aigner: Adjust height and width of the frame
$('.
treeDiv'
).lobiPanel('setWidth', newWidth + margin.top + margin.bottom +400+maxLabelLength*25+offset_tmp);
$('.
'+divClassName
).lobiPanel('setWidth', newWidth + margin.top + margin.bottom +400+maxLabelLength*25+offset_tmp);
$('.
treeDiv'
).lobiPanel('setHeight', newHeight + margin.top + 2*margin.bottom+offset_tmp);
$('.
'+divClassName
).lobiPanel('setHeight', newHeight + margin.top + 2*margin.bottom+offset_tmp);
treeLayoutSVG = treeLayoutSVG.attr("height", newHeight + margin.top + margin.bottom+offset_tmp)
treeLayoutSVG = treeLayoutSVG.attr("height", newHeight + margin.top + margin.bottom+offset_tmp)
treeLayoutSVG = treeLayoutSVG.attr("width", newWidth + margin.top + margin.bottom +300+maxLabelLength*25+offset_tmp)
treeLayoutSVG = treeLayoutSVG.attr("width", newWidth + margin.top + margin.bottom +300+maxLabelLength*25+offset_tmp)
frame = frame.attr("height", newHeight + margin.top + margin.bottom)
frame = frame.attr("height", newHeight + margin.top + margin.bottom)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment