()
| 546 | } |
| 547 | |
| 548 | isAnimationEnabled(): boolean { |
| 549 | const ecModel = this.ecModel; |
| 550 | // Disable animation if using echarts in node but not give ssr flag. |
| 551 | // In ssr mode, renderToString will generate svg with css animation. |
| 552 | if (env.node && !(ecModel && ecModel.ssr)) { |
| 553 | return false; |
| 554 | } |
| 555 | let animationEnabled = this.getShallow('animation'); |
| 556 | if (animationEnabled) { |
| 557 | if (this.getData().count() > this.getShallow('animationThreshold')) { |
| 558 | animationEnabled = false; |
| 559 | } |
| 560 | } |
| 561 | return !!animationEnabled; |
| 562 | } |
| 563 | |
| 564 | restoreData() { |
| 565 | // See `dataTaskReset`. |
nothing calls this directly
no test coverage detected