refactor(core): CORE-16 type display modes and own fullscreen lifetimes

This commit is contained in:
Harvey Zhao committed 2026-09-11 09:42:30 +08:00
1 parent 1b83081e8f
commit 88aef830df
81 files changed
+33897 -1503

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
import type { WebFullscreenHost } from '../../packages/artplayer/src/display/types'
import { capturePlacement, restorePlacement } from '../../packages/artplayer/src/display/placement'
import fullscreenWebMix from '../../packages/artplayer/src/player/fullscreenWebMix'
declare const host: WebFullscreenHost
fullscreenWebMix(host)
host.fullscreenWeb = true
const active: boolean = host.fullscreenWeb
const placement = capturePlacement(host.template.$player)
restorePlacement(placement)
// @ts-expect-error Display setters retain a boolean input.
host.fullscreenWeb = 'true'
// @ts-expect-error DOM placement cannot be constructed from a string.
capturePlacement('player')
export { active }