MCPcopy
hub / github.com/apache/echarts / isAnimationEnabled

Method isAnimationEnabled

src/model/Series.ts:548–562  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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`.

Callers

nothing calls this directly

Calls 3

getDataMethod · 0.95
getShallowMethod · 0.80
countMethod · 0.65

Tested by

no test coverage detected