Преглед на файлове

chore: update build

tags/1.3.0
Shivam Mishra преди 5 години
родител
ревизия
eb7925a789
променени са 10 файла, в които са добавени 20 реда и са изтрити 17 реда
  1. +11
    -8
      dist/frappe-charts.esm.js
  2. +1
    -1
      dist/frappe-charts.min.cjs.js
  3. +1
    -1
      dist/frappe-charts.min.cjs.js.map
  4. +1
    -1
      dist/frappe-charts.min.esm.js
  5. +1
    -1
      dist/frappe-charts.min.esm.js.map
  6. +1
    -1
      dist/frappe-charts.min.iife.js
  7. +1
    -1
      dist/frappe-charts.min.iife.js.map
  8. +1
    -1
      docs/assets/js/frappe-charts.min.js
  9. +1
    -1
      docs/assets/js/frappe-charts.min.js.map
  10. +1
    -1
      docs/assets/js/index.min.js.map

+ 11
- 8
dist/frappe-charts.esm.js Целия файл

@@ -412,7 +412,7 @@ function shortenLargeNumber(label) {
} }


// cubic bezier curve calculation (from example by François Romain) // cubic bezier curve calculation (from example by François Romain)
function createSplineCurve(xList, yList) {
function getSplineCurvePointsStr(xList, yList) {


let points=[]; let points=[];
for(let i=0;i<xList.length;i++){ for(let i=0;i<xList.length;i++){
@@ -730,7 +730,9 @@ function legendBar(x, y, size, fill='none', label, truncate=false) {
return group; return group;
} }


function legendDot(x, y, size, fill='none', label) {
function legendDot(x, y, size, fill='none', label, truncate=false) {
label = truncate ? truncateString(label, LABEL_MAX_CHARS) : label;

let args = { let args = {
className: 'legend-dot', className: 'legend-dot',
cx: 0, cx: 0,
@@ -1072,7 +1074,7 @@ function getPaths(xList, yList, color, options={}, meta={}) {


// Spline // Spline
if (options.spline) if (options.spline)
pointsStr = createSplineCurve(xList, yList);
pointsStr = getSplineCurvePointsStr(xList, yList);
let path = makePath("M"+pointsStr, 'line-graph-path', color); let path = makePath("M"+pointsStr, 'line-graph-path', color);


@@ -1286,9 +1288,9 @@ function animateDot(dot, x, y) {
function animatePath(paths, newXList, newYList, zeroLine, spline) { function animatePath(paths, newXList, newYList, zeroLine, spline) {
let pathComponents = []; let pathComponents = [];
let pointsStr = newYList.map((y, i) => (newXList[i] + ',' + y)).join("L"); let pointsStr = newYList.map((y, i) => (newXList[i] + ',' + y)).join("L");
if (spline) if (spline)
pointsStr = createSplineCurve(newXList, newYList);
pointsStr = getSplineCurvePointsStr(newXList, newYList);


const animPath = [paths.path, {d:"M" + pointsStr}, PATH_ANIM_DUR, STD_EASING]; const animPath = [paths.path, {d:"M" + pointsStr}, PATH_ANIM_DUR, STD_EASING];
pathComponents.push(animPath); pathComponents.push(animPath);
@@ -1486,7 +1488,7 @@ class BaseChart {
showTooltip: 1, // calculate showTooltip: 1, // calculate
showLegend: 1, // calculate showLegend: 1, // calculate
isNavigable: options.isNavigable || 0, isNavigable: options.isNavigable || 0,
animate: 1,
animate: (typeof options.animate !== 'undefined') ? options.animate : 1,
truncateLegends: options.truncateLegends || 0 truncateLegends: options.truncateLegends || 0
}; };


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


render(components=this.components, animate=true) { render(components=this.components, animate=true) {
@@ -1842,7 +1844,8 @@ class AggregationChart extends BaseChart {
y, y,
5, 5,
this.colors[i], this.colors[i],
`${s.labels[i]}: ${d}`
`${s.labels[i]}: ${d}`,
this.config.truncateLegends
); );
this.legendArea.appendChild(dot); this.legendArea.appendChild(dot);
count++; count++;


+ 1
- 1
dist/frappe-charts.min.cjs.js
Файловите разлики са ограничени, защото са твърде много
Целия файл


+ 1
- 1
dist/frappe-charts.min.cjs.js.map
Файловите разлики са ограничени, защото са твърде много
Целия файл


+ 1
- 1
dist/frappe-charts.min.esm.js
Файловите разлики са ограничени, защото са твърде много
Целия файл


+ 1
- 1
dist/frappe-charts.min.esm.js.map
Файловите разлики са ограничени, защото са твърде много
Целия файл


+ 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
Файловите разлики са ограничени, защото са твърде много
Целия файл


+ 1
- 1
docs/assets/js/index.min.js.map
Файловите разлики са ограничени, защото са твърде много
Целия файл


Зареждане…
Отказ
Запис