Skip to content
GitLab
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
489f37d8
Commit
489f37d8
authored
Mar 30, 2020
by
maxchaza
Browse files
Init interactions buttons
parent
15624210
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/view/panel/viz/VizController.js
View file @
489f37d8
...
...
@@ -12,6 +12,7 @@ Ext.define('metExploreViz.view.panel.viz.VizController', {
view
.
on
({
initiateViz
:
me
.
initiateViz
,
initAnimationButton
:
me
.
initAnimationButton
,
scope
:
me
});
...
...
@@ -32,6 +33,14 @@ Ext.define('metExploreViz.view.panel.viz.VizController', {
view
.
lookupReference
(
'
handcursor
'
).
on
({
click
:
function
()
{
metExploreD3
.
GraphNetwork
.
moveGraph
();
if
(
view
.
lookupReference
(
'
handcursor
'
).
hasCls
(
'
focus
'
)){
view
.
lookupReference
(
'
handcursor
'
).
removeCls
(
'
focus
'
);
}
else
{
view
.
lookupReference
(
'
handcursor
'
).
addCls
(
'
focus
'
);
}
},
scope
:
me
});
...
...
@@ -39,6 +48,7 @@ Ext.define('metExploreViz.view.panel.viz.VizController', {
view
.
lookupReference
(
'
rescale
'
).
on
({
click
:
function
()
{
metExploreD3
.
GraphNetwork
.
rescale
(
"
viz
"
);
},
scope
:
me
});
...
...
@@ -711,6 +721,24 @@ Ext.define('metExploreViz.view.panel.viz.VizController', {
viz
.
CtxMenu
.
showAt
(
e
.
clientX
,
e
.
clientY
);
});
},
/*****************************************************
* Initialization of visualization
* @param {} vizEngine : library used to make the visualization
*/
initAnimationButton
:
function
()
{
var
me
=
this
,
viewModel
=
me
.
getViewModel
(),
view
=
me
.
getView
();
if
(
!
metExploreD3
.
GraphNetwork
.
isAnimated
(
"
viz
"
)){
view
.
lookupReference
(
'
animation
'
).
setIconCls
(
'
play
'
);
}
else
{
view
.
lookupReference
(
'
animation
'
).
setIconCls
(
"
pause
"
);
}
},
enterEditMode
:
function
()
{
metExploreD3
.
GraphStyleEdition
.
toggleEditMode
();
//(metExploreD3.GraphStyleEdition.editMode) ? Ext.getCmp('editModePanel').show() : Ext.getCmp('editModePanel').hide();
...
...
resources/lib/functions/GraphNetwork.js
View file @
489f37d8
...
...
@@ -1468,6 +1468,7 @@ metExploreD3.GraphNetwork = {
metExploreD3
.
hideMask
(
mask
);
metExploreD3
.
fireEvent
(
'
allStylesForm
'
,
"
refreshAllStyles
"
);
metExploreD3
.
fireEvent
(
'
viz
'
,
"
initAnimationButton
"
);
}
catch
(
e
)
{
e
.
functionUsed
=
"
refreshViz
"
;
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment