Selaa lähdekoodia

chore: update build

tags/1.3.2
Shivam Mishra 5 vuotta sitten
vanhempi
commit
80ef2437c0
9 muutettua tiedostoa jossa 16 lisäystä ja 10 poistoa
  1. +8
    -2
      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

+ 8
- 2
dist/frappe-charts.esm.js Näytä tiedosto

@@ -3220,6 +3220,13 @@ function getShortenedLabels(chartWidth, labels=[], isSeries=true) {
if(allowedSpace <= 0) allowedSpace = 1;
let allowedLetters = allowedSpace / DEFAULT_CHAR_WIDTH;

let seriesMultiple;
if(isSeries) {
// Find the maximum label length for spacing calculations
let maxLabelLength = Math.max(...labels.map(label => label.length));
seriesMultiple = Math.ceil(maxLabelLength/allowedLetters);
}

let calcLabels = labels.map((label, i) => {
label += "";
if(label.length > allowedLetters) {
@@ -3231,8 +3238,7 @@ function getShortenedLabels(chartWidth, labels=[], isSeries=true) {
label = label.slice(0, allowedLetters) + '..';
}
} else {
let multiple = Math.ceil(label.length/allowedLetters);
if(i % multiple !== 0) {
if(i % seriesMultiple !== 0) {
label = "";
}
}


+ 1
- 1
dist/frappe-charts.min.cjs.js
File diff suppressed because it is too large
Näytä tiedosto


+ 1
- 1
dist/frappe-charts.min.cjs.js.map
File diff suppressed because it is too large
Näytä tiedosto


+ 1
- 1
dist/frappe-charts.min.esm.js
File diff suppressed because it is too large
Näytä tiedosto


+ 1
- 1
dist/frappe-charts.min.esm.js.map
File diff suppressed because it is too large
Näytä tiedosto


+ 1
- 1
dist/frappe-charts.min.iife.js
File diff suppressed because it is too large
Näytä tiedosto


+ 1
- 1
dist/frappe-charts.min.iife.js.map
File diff suppressed because it is too large
Näytä tiedosto


+ 1
- 1
docs/assets/js/frappe-charts.min.js
File diff suppressed because it is too large
Näytä tiedosto


+ 1
- 1
docs/assets/js/frappe-charts.min.js.map
File diff suppressed because it is too large
Näytä tiedosto


Ladataan…
Peruuta
Tallenna