Sfoglia il codice sorgente

Changed legendDot signature, label truncated when required.

tags/1.3.0
rafael 5 anni fa
parent
commit
c6e46886f3
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. +3
    -1
      src/js/utils/draw.js

+ 3
- 1
src/js/utils/draw.js Vedi File

@@ -238,7 +238,9 @@ export function legendBar(x, y, size, fill='none', label, truncate=false) {
return group;
}

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

let args = {
className: 'legend-dot',
cx: 0,


Caricamento…
Annulla
Salva