mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-30 20:21:20 -08:00
update docs
This commit is contained in:
1 parent
e34e186085
commit
0fac6ba017
56 files changed
+334
-253
No files matched your search
@@ -60,6 +60,8 @@ export default class Danmuku {
|
||||
maxLength: 100,
|
||||
minWidth: 200,
|
||||
maxWidth: 400,
|
||||
mount: undefined,
|
||||
beforeEmit: () => true,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -80,6 +82,8 @@ export default class Danmuku {
|
||||
maxLength: 'number',
|
||||
minWidth: 'number',
|
||||
maxWidth: 'number',
|
||||
mount: 'undefined|htmldivelement',
|
||||
beforeEmit: 'function',
|
||||
};
|
||||
}
|
||||
|
||||
@@ -264,7 +268,7 @@ export default class Danmuku {
|
||||
|
||||
this.option.speed = clamp(this.option.speed, 1, 10);
|
||||
this.option.opacity = clamp(this.option.opacity, 0, 1);
|
||||
this.option.lockTime = clamp(this.option.lockTime, 0, 60);
|
||||
this.option.lockTime = clamp(Math.floor(this.option.lockTime), 0, 60);
|
||||
this.option.maxLength = clamp(this.option.maxLength, 0, 500);
|
||||
this.option.minWidth = clamp(this.option.minWidth, 0, 500);
|
||||
this.option.maxWidth = clamp(this.option.maxWidth, 0, Infinity);
|
||||
|
||||
Reference in new issue
Block a user