mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-24 23:51:20 -08:00
feat: Add getRect function to utils and update player and control modules to use it
This commit is contained in:
1 parent
2721f61b41
commit
232b8a3e17
10 files changed
+36
-27
No files matched your search
@@ -1,9 +1,9 @@
|
||||
import { def } from '../utils';
|
||||
import { def, getRect } from '../utils';
|
||||
|
||||
export default function rectMix(art) {
|
||||
def(art, 'rect', {
|
||||
get: () => {
|
||||
return art.template.$player.getBoundingClientRect();
|
||||
return getRect(art.template.$player);
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user