Toggle navigation
Toggle navigation
This project
Loading...
Sign in
홍길동
/
onos
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Simon Hunt
2014-11-18 07:26:44 -0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
13bf9c80fb51af0e82a3d3c9d710b53af089e218
13bf9c80
1 parent
2fe6334c
GUI - Tweaked link-exit animation.
Change-Id: Ic0604c2492feef657665147202e5f346579a4a53
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
web/gui/src/main/webapp/topo2.js
web/gui/src/main/webapp/topo2.js
View file @
13bf9c8
...
...
@@ -70,8 +70,11 @@
}
},
topo
:
{
linkBaseColor
:
'#666'
,
linkInColor
:
'#66f'
,
linkInWidth
:
14
linkInWidth
:
14
,
linkOutColor
:
'#f00'
,
linkOutWidth
:
30
},
icons
:
{
w
:
28
,
...
...
@@ -529,7 +532,7 @@
el
.
transition
()
.
duration
(
1000
)
.
attr
(
'stroke-width'
,
linkScale
(
lw
))
.
attr
(
'stroke'
,
'#666'
);
// TODO: remove explicit stroke (use CSS)
.
attr
(
'stroke'
,
config
.
topo
.
linkBaseColor
);
}
// ==============================
...
...
@@ -1011,17 +1014,15 @@
// operate on exiting links:
link
.
exit
()
.
attr
({
'stroke-dasharray'
:
'3, 3'
})
.
style
(
'opacity'
,
0.4
)
.
attr
(
'stroke-dasharray'
,
'3, 3'
)
.
style
(
'opacity'
,
0.5
)
.
transition
()
.
duration
(
1500
)
.
attr
({
'stroke-dasharray'
:
'3, 12'
'stroke-dasharray'
:
'3, 12'
,
stroke
:
config
.
topo
.
linkOutColor
,
'stroke-width'
:
config
.
topo
.
linkOutWidth
})
.
transition
()
.
duration
(
500
)
.
style
(
'opacity'
,
0.0
)
.
remove
();
}
...
...
Please
register
or
login
to post a comment