mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-22 13:21:20 -08:00
bugifx
This commit is contained in:
1 parent
5554849a9f
commit
d3d4114336
5 files changed
+7
-7
No files matched your search
@@ -12,7 +12,7 @@ export default function aspectRatioMix(art, player) {
|
||||
return $player.dataset.aspectRatio || '';
|
||||
},
|
||||
set(ratio) {
|
||||
if (ratio === false) ratio = 'default';
|
||||
if (!ratio) ratio = 'default';
|
||||
|
||||
const ratioList = ['default', '4:3', '16:9'];
|
||||
errorHandle(ratioList.includes(ratio), `'aspectRatio' only accept ${ratioList.toString()} as parameters`);
|
||||
|
||||
@@ -12,7 +12,7 @@ export default function flipMix(art, player) {
|
||||
return $player.dataset.flip;
|
||||
},
|
||||
set(flip) {
|
||||
if (flip === false) flip = 'normal';
|
||||
if (!flip) flip = 'normal';
|
||||
|
||||
const flipList = ['normal', 'horizontal', 'vertical'];
|
||||
errorHandle(flipList.includes(flip), `'flip' only accept ${flipList.toString()} as parameters`);
|
||||
|
||||
@@ -10,7 +10,7 @@ export default function rotateMix(art, player) {
|
||||
def(player, 'rotate', {
|
||||
get: () => Number($player.dataset.rotate) || 0,
|
||||
set: (deg) => {
|
||||
if (deg === false) deg = 0;
|
||||
if (!deg) deg = 0;
|
||||
|
||||
const degList = [-270, -180, -90, 0, 90, 180, 270];
|
||||
errorHandle(degList.includes(deg), `'rotate' only accept ${degList.toString()} as parameters`);
|
||||
|
||||
Reference in new issue
Block a user