1 Star 1 Fork 0

ghkeeping/wx-svga-parser

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
svga.d.ts 1.04 KB
一键复制 编辑 原始数据 按行查看 历史
ghkeeping 提交于 2023-05-09 19:56 . Feat:添加文档说明
import { IContentMode, IDynamicText, IRange } from './src/Types'
export class Player {
elId: string
component?: WechatMiniprogram.Component.TrivialInstance
url: string
loops?: number
clearAfterStop?: boolean
fillMode?: 'Forward' | 'Backward'
contentMode?: 'Fill' | 'AspectFit' | 'AspectFill'
mount(): void
async setVideo(): Promise<void>
start(reverse?: boolean): void
pause(): void
stop(clear?: boolean): void
clear(): void
startWidthRange(range: IRange, reverse?: boolean): void
setContentMode(mode: IContentMode): void
setText(dynamicText: IDynamicText, forKey: string): void
async setImage(src: Uint8Array | string, forKey: string): Promise<void>
clearDynamic(): void
onFrame(callback: (frame: number) => void): void
onFinished(callback: () => void): void
onPercentage(callback: (percentage: number) => void): void
stepToFrame(callback: (frame: number, isPlay?: boolean) => void): void
stepToPercentage(callback: (percentage: number, isPlay?: boolean) => void): void
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/ghkeeping/wx-svga-parser.git
git@gitee.com:ghkeeping/wx-svga-parser.git
ghkeeping
wx-svga-parser
wx-svga-parser
master

搜索帮助