Enlarged embedding weight markers
parent
f9b19df666
commit
559bbeaef1
|
|
@ -23,14 +23,15 @@ function embedding_editor_update_guidance(col_weights) {
|
||||||
let variant = variants[j],
|
let variant = variants[j],
|
||||||
color = variant.color,
|
color = variant.color,
|
||||||
weight = variant.weight * 100, // currently in decimal format
|
weight = variant.weight * 100, // currently in decimal format
|
||||||
start = Math.max(previous, weight-1),
|
start = Math.max(previous, weight-2),
|
||||||
end = Math.max(previous, weight+1);
|
end = Math.max(previous, weight+2);
|
||||||
|
|
||||||
|
if (previous < start)
|
||||||
bg += ', ' + transparent + ' ' + previous + '%';
|
bg += ', ' + transparent + ' ' + previous + '%';
|
||||||
bg += ', ' + transparent + ' ' + start + '%';
|
bg += ', ' + transparent + ' ' + start + '%';
|
||||||
//bg += ', ' + color + ' ' + start + '%';
|
|
||||||
//bg += ', ' + color + ' ' + end + '%';
|
bg += ', ' + color + ' ' + Math.max(previous, weight-1) + '%';
|
||||||
bg += ', ' + color + ' ' + weight + '%';
|
bg += ', ' + color + ' ' + Math.max(previous, weight+1) + '%';
|
||||||
|
|
||||||
previous = end;
|
previous = end;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue