소스 검색

[fix] initial width bug

tags/1.2.0
Prateeksha Singh 7 년 전
부모
커밋
6e14dd45ee
9개의 변경된 파일12개의 추가작업 그리고 18개의 파일을 삭제
  1. +3
    -6
      dist/frappe-charts.esm.js
  2. +1
    -1
      dist/frappe-charts.min.cjs.js
  3. +1
    -1
      dist/frappe-charts.min.esm.js
  4. +1
    -1
      dist/frappe-charts.min.iife.js
  5. +1
    -1
      dist/frappe-charts.min.iife.js.map
  6. +1
    -1
      docs/assets/js/frappe-charts.min.js
  7. +1
    -1
      docs/assets/js/frappe-charts.min.js.map
  8. +2
    -1
      src/js/charts/BaseChart.js
  9. +1
    -5
      src/js/charts/PieChart.js

+ 3
- 6
dist/frappe-charts.esm.js 파일 보기

@@ -1281,6 +1281,7 @@ class BaseChart {

setup() {
this.makeContainer();
this.updateWidth();
this.makeTooltip();

this.draw(false, true);
@@ -1404,7 +1405,7 @@ class BaseChart {
);
this.svgDefs = makeSVGDefs(this.svg);

console.log(this.baseHeight, titleAreaHeight, legendAreaHeight);
// console.log(this.baseHeight, titleAreaHeight, legendAreaHeight);

if(this.title.length) {
this.titleEL = makeText(
@@ -2068,6 +2069,7 @@ class PieChart extends AggregationChart {
super(parent, args);
this.type = 'pie';
this.initTimeout = 0;
this.init = 1;

this.setup();
}
@@ -2083,11 +2085,6 @@ class PieChart extends AggregationChart {
this.clockWise = args.clockWise || false;
}

prepareFirstData(data=this.data) {
this.init = 1;
return data;
}

calc() {
super.calc();
let s = this.state;


+ 1
- 1
dist/frappe-charts.min.cjs.js
파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
파일 보기


+ 1
- 1
dist/frappe-charts.min.esm.js
파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
파일 보기


+ 1
- 1
dist/frappe-charts.min.iife.js
파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
파일 보기


+ 1
- 1
dist/frappe-charts.min.iife.js.map
파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
파일 보기


+ 1
- 1
docs/assets/js/frappe-charts.min.js
파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
파일 보기


+ 1
- 1
docs/assets/js/frappe-charts.min.js.map
파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
파일 보기


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

@@ -83,6 +83,7 @@ export default class BaseChart {

setup() {
this.makeContainer();
this.updateWidth();
this.makeTooltip();

this.draw(false, true);
@@ -206,7 +207,7 @@ export default class BaseChart {
);
this.svgDefs = makeSVGDefs(this.svg);

console.log(this.baseHeight, titleAreaHeight, legendAreaHeight);
// console.log(this.baseHeight, titleAreaHeight, legendAreaHeight);

if(this.title.length) {
this.titleEL = makeText(


+ 1
- 5
src/js/charts/PieChart.js 파일 보기

@@ -12,6 +12,7 @@ export default class PieChart extends AggregationChart {
super(parent, args);
this.type = 'pie';
this.initTimeout = 0;
this.init = 1;

this.setup();
}
@@ -27,11 +28,6 @@ export default class PieChart extends AggregationChart {
this.clockWise = args.clockWise || false;
}

prepareFirstData(data=this.data) {
this.init = 1;
return data;
}

calc() {
super.calc();
let s = this.state;


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