mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-26 17:01:20 -08:00
添加静止弹幕
This commit is contained in:
1 parent
6056e7a0c6
commit
f4d097b918
14 files changed
+575
-581
No files matched your search
@@ -0,0 +1,8 @@
|
||||
export function filter(queue, state, callback) {
|
||||
return queue.filter(danmu => danmu.$state === state).map(callback);
|
||||
}
|
||||
|
||||
export function getRect(ref, key) {
|
||||
const result = ref.getBoundingClientRect();
|
||||
return key ? result[key] : result;
|
||||
}
|
||||
Reference in new issue
Block a user