Optimize the update process

This commit is contained in:
JiaMing 2019-10-25 10:56:37 +08:00
parent c1881757a8
commit 5c52f9d6b0
1 changed files with 2 additions and 2 deletions

View File

@ -151,6 +151,8 @@ export default {
update () {
const { mergeConfig, mergeShape, getShape, getStyle, graph, mergedConfig } = this
graph.animationEnd()
mergeConfig()
if (!graph) return
@ -165,8 +167,6 @@ export default {
graph.animationCurve = animationCurve
graph.animationFrame = animationFrame
graph.animationEnd()
graph.animation('style', style, true)
graph.animation('shape', shape)
},