Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
2e40f0bd
Commit
2e40f0bd
authored
Mar 30, 2017
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hide tooltips during chart animation
parent
9847f60e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
app/assets/javascripts/burndown_chart/burndown_chart.js
app/assets/javascripts/burndown_chart/burndown_chart.js
+12
-3
No files found.
app/assets/javascripts/burndown_chart/burndown_chart.js
View file @
2e40f0bd
...
...
@@ -305,7 +305,13 @@ export default class BurndownChart {
if
(
this
.
queueLineAnimation
===
true
)
{
this
.
queueLineAnimation
=
false
;
this
.
constructor
.
animateLinePath
(
this
.
actualLinePath
,
800
);
// hide tooltips until animation is finished
this
.
chartFocus
.
attr
(
'
opacity
'
,
0
);
this
.
constructor
.
animateLinePath
(
this
.
actualLinePath
,
800
,
()
=>
{
this
.
chartFocus
.
attr
(
'
opacity
'
,
null
);
});
}
}
}
...
...
@@ -328,7 +334,7 @@ export default class BurndownChart {
this
.
ticksLeft
=
seconds
*
50
;
}
static
animateLinePath
(
path
,
duration
=
1000
)
{
static
animateLinePath
(
path
,
duration
=
1000
,
cb
)
{
// hack to run a callback at transition end
function
after
(
transition
,
callback
)
{
let
i
=
0
;
...
...
@@ -350,6 +356,9 @@ export default class BurndownChart {
.
duration
(
duration
)
.
ease
(
'
linear
'
)
.
attr
(
'
stroke-dashoffset
'
,
0
)
.
call
(
after
,
()
=>
path
.
attr
(
'
stroke-dasharray
'
,
null
));
.
call
(
after
,
()
=>
{
path
.
attr
(
'
stroke-dasharray
'
,
null
);
if
(
cb
)
cb
();
});
}
}
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