Enlarged embedding weight markers

main
CodeExplode 2022-11-07 18:55:45 +11:00 committed by GitHub
parent f9b19df666
commit 559bbeaef1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 7 deletions

View File

@ -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);
bg += ', ' + transparent + ' ' + previous + '%'; if (previous < start)
bg += ', ' + transparent + ' ' + start + '%'; bg += ', ' + transparent + ' ' + previous + '%';
//bg += ', ' + color + ' ' + start + '%'; bg += ', ' + transparent + ' ' + start + '%';
//bg += ', ' + color + ' ' + end + '%';
bg += ', ' + color + ' ' + weight + '%'; bg += ', ' + color + ' ' + Math.max(previous, weight-1) + '%';
bg += ', ' + color + ' ' + Math.max(previous, weight+1) + '%';
previous = end; previous = end;
} }