mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-28 18:41:20 -08:00
chore: Update danmuku plugin configuration handling and improve performance
This commit is contained in:
1 parent
4971eaa17c
commit
fcef233746
4 files changed
+22
-7
No files matched your search
@@ -5,6 +5,16 @@ export as namespace artplayerPluginDanmuku;
|
||||
|
||||
type Mode = 0 | 1 | 2;
|
||||
|
||||
type Slider = {
|
||||
min: number;
|
||||
max: number;
|
||||
steps: {
|
||||
name: string;
|
||||
value: any;
|
||||
show?: boolean;
|
||||
}[];
|
||||
};
|
||||
|
||||
type Danmu = {
|
||||
/**
|
||||
* 弹幕文本
|
||||
@@ -155,6 +165,11 @@ type Option = {
|
||||
* 弹幕主题,只在自定义挂载时生效
|
||||
*/
|
||||
theme?: 'light' | 'dark';
|
||||
|
||||
OPACITY?: Slider;
|
||||
SPEED?: Slider;
|
||||
MARGIN?: Slider;
|
||||
FONT_SIZE?: Slider;
|
||||
};
|
||||
|
||||
type Danmuku = {
|
||||
|
||||
Reference in new issue
Block a user