Rewrite marker culling for signage
This commit is contained in:
1 parent
439dec2efd
commit
2298904f2f
2 files changed
+119
-66
No files matched your search
+1
-4
@@ -34,14 +34,11 @@ export function rgba2hex(r,g,b,a=1.0){
|
||||
}
|
||||
|
||||
export function gradeToClass(grade){
|
||||
let result = '';
|
||||
for(let j=0; j<gradeIncrements.length; j++){
|
||||
if(grade > gradeIncrements[j]){
|
||||
result = `grade_${gradeIncrements.length-(j+1)}`;
|
||||
break;
|
||||
return gradeIncrements.length-(j+1);
|
||||
}
|
||||
}
|
||||
if(result) return result;
|
||||
}
|
||||
|
||||
export function radiusToSpeed(radius){
|
||||
|
||||
Reference in new issue
Block a user