mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-21 11:22:16 +08:00
opt: binary search fontsize (#1818)
* opt: permission * opt: opt: binary search fontsize * use transform Signed-off-by: dom <githubaccount56556@proton.me> * fix Signed-off-by: dom <githubaccount56556@proton.me> * opt: matrix * opt [skip ci] * tweaks [skip ci] Signed-off-by: dom <githubaccount56556@proton.me> --------- Co-authored-by: dom <githubaccount56556@proton.me>
This commit is contained in:
committed by
GitHub
parent
8964197b73
commit
77fff92939
@@ -1585,13 +1585,9 @@ class VideoDetailController extends GetxController
|
||||
response.viewPoints?.firstOrNull?.type == 2) {
|
||||
try {
|
||||
viewPointList.value = response.viewPoints!.map((item) {
|
||||
double start = (item.to! / (data.timeLength! / 1000)).clamp(
|
||||
0.0,
|
||||
1.0,
|
||||
);
|
||||
final end = (item.to! / (data.timeLength! / 1000)).clamp(0.0, 1.0);
|
||||
return ViewPointSegment(
|
||||
start: start,
|
||||
end: start,
|
||||
end: end,
|
||||
title: item.content,
|
||||
url: item.imgUrl,
|
||||
from: item.from,
|
||||
|
||||
Reference in New Issue
Block a user