function chartSetTimeout()

in components/helper/sandbox.ts [9:31]


  function chartSetTimeout(cb: () => void, time: number) {
    const animator = chartInstance
      .getZr()
      .animation.animate({ val: 0 } as any, {
        loop: false
      })
      .when(time, {
        val: 1
      })
      .during(() => {
        // Please don't fall sleep.
        // TODO Can be configurable.
        chartInstance.getZr().wakeUp()
      })
      .done(() => {
        // NOTE: Must delay the callback. Or zrender flush will invoke the chartSetTimeout callback again.
        // TODO: This is something needs to be fixed in zrender.
        Vue.nextTick(cb)
      })
      .start()

    return animator
  }