Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Fractalis
fractal.js
Commits
15b53963
Commit
15b53963
authored
Jul 13, 2017
by
Sascha Herzinger
Browse files
Changed annimation to improve performance
parent
30b6b704
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/vue/charts/Boxplot.vue
View file @
15b53963
...
...
@@ -274,11 +274,13 @@
watch
:
{
'
boxes
'
:
{
handler
:
function
(
newBoxes
)
{
Object
.
keys
(
newBoxes
).
forEach
(
label
=>
{
const
labels
=
Object
.
keys
(
newBoxes
)
labels
.
forEach
((
label
,
i
)
=>
{
if
(
typeof
this
.
tweened
.
boxes
[
label
]
===
'
undefined
'
)
{
this
.
$set
(
this
.
tweened
.
boxes
,
label
,
newBoxes
[
label
])
}
else
{
TweenLite
.
to
(
this
.
tweened
.
boxes
[
label
],
0.5
,
newBoxes
[
label
])
TweenLite
.
to
(
this
.
tweened
.
boxes
[
label
],
0.5
/
labels
.
length
,
Object
.
assign
(
newBoxes
[
label
],
{
delay
:
i
*
0.5
/
labels
.
length
}))
}
})
}
...
...
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