update docs

This commit is contained in:
Harvey Zack committed 2023-04-23 15:11:08 +08:00
1 parent 3f1e033152
commit 55ca351b60
119 files changed
+1882 -1882

No files matched your search

+4 -2
View File
@@ -13,7 +13,8 @@
background-size: 100% var(--art-bottom-height);
.art-bottom-gradient();
.art-controls, .art-progress {
.art-controls,
.art-progress {
transform: translateY(var(--art-bottom-offset));
transition: transform var(--art-transition-duration) ease;
}
@@ -23,7 +24,8 @@
&.art-hover {
.art-bottom {
opacity: 1;
.art-controls, .art-progress {
.art-controls,
.art-progress {
transform: translateY(0);
}
}
+1 -1
View File
@@ -61,6 +61,6 @@ export type Events = {
screenshot: [dataUri: string];
seek: [currentTime: number];
subtitleOffset: [offset: number];
restart: [];
restart: [url: string];
loop: [start?: number, end?: number];
};
+1 -1
View File
@@ -6,7 +6,7 @@ import { CssVar } from './cssVar';
import { ComponentOption } from './component';
import Artplayer = require('./artplayer');
type CustomType = 'flv' | 'm3u8' | 'hls' | 'ts' | 'mpd' | 'torrent' | (string & Record<never, never>);
export type CustomType = 'flv' | 'm3u8' | 'hls' | 'ts' | 'mpd' | 'torrent' | (string & Record<never, never>);
export type Option = {
/**
+3
View File
@@ -1,4 +1,5 @@
import { CssVar } from './cssVar';
import { CustomType } from './option';
export type AspectRatio = 'default' | '4:3' | '16:9' | (`${number}:${number}` & Record<never, never>);
export type PlaybackRate = 0.5 | 0.75 | 1.0 | 1.25 | 1.5 | 1.75 | 2.0 | (number & Record<never, never>);
@@ -10,6 +11,8 @@ export declare class Player {
set aspectRatio(ratio: AspectRatio);
get state(): State;
set state(state: State);
get type(): CustomType;
set type(name: CustomType);
get playbackRate(): PlaybackRate;
set playbackRate(rate: PlaybackRate);
get autoSize(): boolean;