Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
metexplore
MetExploreViz
Commits
6055c056
Commit
6055c056
authored
Jan 07, 2020
by
maxchaza
Browse files
remove focus variable
parent
3ab51e03
Changes
1
Hide whitespace changes
Inline
Side-by-side
resources/lib/functions/GraphNetwork.js
View file @
6055c056
...
...
@@ -1004,26 +1004,26 @@ metExploreD3.GraphNetwork = {
var
activesession
=
_metExploreViz
.
getSessionById
(
_MyThisGraphNode
.
activePanel
);
//H 72
if
(
_MyThisGraphNode
.
charKey
==
72
&&
!
_MyThisGraphNode
.
altKey
&&
activesession
.
getSelectedNodes
().
length
>
0
&&
metExploreD3
.
GraphNetwork
.
focus
)
{
if
(
_MyThisGraphNode
.
charKey
==
72
&&
!
_MyThisGraphNode
.
altKey
&&
activesession
.
getSelectedNodes
().
length
>
0
)
{
metExploreD3
.
GraphFunction
.
horizontalAlign
(
_MyThisGraphNode
.
activePanel
);
}
if
(
_MyThisGraphNode
.
charKey
==
72
&&
_MyThisGraphNode
.
altKey
&&
activesession
.
getSelectedNodes
().
length
>
0
&&
metExploreD3
.
GraphNetwork
.
focus
)
{
if
(
_MyThisGraphNode
.
charKey
==
72
&&
_MyThisGraphNode
.
altKey
&&
activesession
.
getSelectedNodes
().
length
>
0
)
{
metExploreD3
.
GraphFunction
.
horizontalReverse
(
_MyThisGraphNode
.
activePanel
);
}
//V 86
if
(
_MyThisGraphNode
.
charKey
==
86
&&
!
_MyThisGraphNode
.
altKey
&&
activesession
.
getSelectedNodes
().
length
>
0
&&
metExploreD3
.
GraphNetwork
.
focus
)
{
if
(
_MyThisGraphNode
.
charKey
==
86
&&
!
_MyThisGraphNode
.
altKey
&&
activesession
.
getSelectedNodes
().
length
>
0
)
{
metExploreD3
.
GraphFunction
.
verticalAlign
(
_MyThisGraphNode
.
activePanel
);
}
if
(
_MyThisGraphNode
.
charKey
==
86
&&
_MyThisGraphNode
.
altKey
&&
activesession
.
getSelectedNodes
().
length
>
0
&&
metExploreD3
.
GraphNetwork
.
focus
)
{
if
(
_MyThisGraphNode
.
charKey
==
86
&&
_MyThisGraphNode
.
altKey
&&
activesession
.
getSelectedNodes
().
length
>
0
)
{
metExploreD3
.
GraphFunction
.
verticalReverse
(
_MyThisGraphNode
.
activePanel
);
}
// 65=A
if
(
_MyThisGraphNode
.
charKey
==
65
&&
_MyThisGraphNode
.
ctrlKey
&&
metExploreD3
.
GraphNetwork
.
focus
)
{
if
(
_MyThisGraphNode
.
charKey
==
65
&&
_MyThisGraphNode
.
ctrlKey
)
{
d3
.
select
(
"
#
"
+
_MyThisGraphNode
.
activePanel
).
select
(
"
#D3viz
"
).
select
(
"
#graphComponent
"
).
selectAll
(
"
g.node
"
)
.
each
(
function
(
node
)
{
if
(
!
node
.
isSelected
())
{
...
...
Maxime Chazalviel
@maxchaza
mentioned in commit
8bb44085
·
Jan 07, 2020
mentioned in commit
8bb44085
mentioned in commit 8bb44085a786f3f34a7090c55cc32ef140148efc
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment