Optimize the update process
This commit is contained in:
parent
c1881757a8
commit
5c52f9d6b0
|
@ -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)
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue