This commit is contained in:
Harvey Zack committed 2022-05-01 15:02:30 +08:00
1 parent 5508660c19
commit 13e56aed01
3 files changed
+25 -11

No files matched your search

@@ -92,13 +92,21 @@ export default function getDanmuTop(ins, danmu) {
}
}
// const test = topMap.map((list) => {
// return list.map((item) => {
// return target.speed * item.time;
// });
const test = topMap.map((list) => {
return list.map((item) => {
return target.speed * item.time;
});
});
console.log(test);
// topMap.sort((prev, next) => {
// const nextMinRight = Math.min(...next.map((item) => target.speed * item.time));
// const prevMinRight = Math.min(...prev.map((item) => target.speed * item.time));
// return prevMinRight - nextMinRight;
// });
console.log(target);
// console.log(JSON.parse(JSON.stringify(topMap)));
if (antiOverlap) {
switch (target.mode) {