remove player object

This commit is contained in:
zhw2590582 committed 2022-01-07 17:38:10 +08:00
1 parent 59a8ccce81
commit 59400eb3bf
58 files changed
+295 -313

No files matched your search

+4 -4
View File
@@ -1,13 +1,13 @@
import { throttle } from '../utils';
export default function resizeInit(art, events) {
const { option, player } = art;
const { option } = art;
const resizeFn = throttle(() => {
if (player.normalSize) {
player.autoSize = option.autoSize;
if (art.normalSize) {
art.autoSize = option.autoSize;
}
player.aspectRatioReset = true;
art.aspectRatioReset = true;
art.emit('resize');
}, 500);