mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-30 03:51:25 -08:00
feat: Refactor global event handling in ArtPlayer
- Introduced a new globalInit function to manage document and window events. - Replaced direct event proxies with a unified bindGlobalEvents method. - Updated event handling in various modules to utilize the new global event system. - Removed the deprecated documentInit module. - Bumped version to 5.2.6 in package.json.
This commit is contained in:
1 parent
abd64e11f2
commit
8af6f7c322
18 files changed
+142
-62
No files matched your search
+2
-1
@@ -7,9 +7,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||
## [Unreleased]
|
||||
|
||||
- 移除 `svg` 默认的 `fill` 颜色值
|
||||
- 优化 `artplayer.d.ts`, 现在可以直接导入 `Option`
|
||||
- 优化 `autoOrientation` 逻辑
|
||||
- 添加 `artplayer-plugin-document-pip` 插件
|
||||
- 添加 `art.events.bindGlobalEvents` 方法,用于重新绑定全局方法
|
||||
- 优化 `artplayer.d.ts`, 现在可以直接导入 `Option`
|
||||
|
||||
```ts
|
||||
import type { Option } from 'artplayer'
|
||||
|
||||
Reference in new issue
Block a user