소스 검색

Merge pull request #241 from frappe/disable-animate

feat: allow disabling animations using 'animate' option
tags/1.3.0
Shivam Mishra 5 년 전
committed by GitHub
부모
커밋
96618fa8e2
No known key found for this signature in database GPG 키 ID: 4AEE18F83AFDEB23
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. +2
    -2
      src/js/charts/BaseChart.js

+ 2
- 2
src/js/charts/BaseChart.js 파일 보기

@@ -32,7 +32,7 @@ export default class BaseChart {
showTooltip: 1, // calculate
showLegend: 1, // calculate
isNavigable: options.isNavigable || 0,
animate: 1,
animate: (typeof options.animate !== 'undefined') ? options.animate : 1,
truncateLegends: options.truncateLegends || 0
};

@@ -225,7 +225,7 @@ export default class BaseChart {
}
this.data = this.prepareData(data);
this.calc(); // builds state
this.render();
this.render(this.components, this.config.animate);
}

render(components=this.components, animate=true) {


불러오는 중...
취소
저장