Optimize the update process
This commit is contained in:
parent
c1881757a8
commit
5c52f9d6b0
|
@ -151,6 +151,8 @@ export default {
|
||||||
update () {
|
update () {
|
||||||
const { mergeConfig, mergeShape, getShape, getStyle, graph, mergedConfig } = this
|
const { mergeConfig, mergeShape, getShape, getStyle, graph, mergedConfig } = this
|
||||||
|
|
||||||
|
graph.animationEnd()
|
||||||
|
|
||||||
mergeConfig()
|
mergeConfig()
|
||||||
|
|
||||||
if (!graph) return
|
if (!graph) return
|
||||||
|
@ -165,8 +167,6 @@ export default {
|
||||||
graph.animationCurve = animationCurve
|
graph.animationCurve = animationCurve
|
||||||
graph.animationFrame = animationFrame
|
graph.animationFrame = animationFrame
|
||||||
|
|
||||||
graph.animationEnd()
|
|
||||||
|
|
||||||
graph.animation('style', style, true)
|
graph.animation('style', style, true)
|
||||||
graph.animation('shape', shape)
|
graph.animation('shape', shape)
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue