🎨chore: 使用 oxlint, oxfmt&格式化代码
This commit is contained in:
@@ -51,7 +51,7 @@ const calculateScaledDimensions = (
|
||||
return { width: finalWidth, height: targetHeight }
|
||||
}
|
||||
|
||||
export type CompositingPhase =
|
||||
export type CompositingPhase =
|
||||
| 'loading'
|
||||
| 'analyzing'
|
||||
| 'preparing'
|
||||
@@ -90,9 +90,8 @@ export const useVideoBackgroundCompositing = async (
|
||||
const backgroundData = await fetchFile(backgroundImage)
|
||||
|
||||
progressCallback?.({ progress: 15, phase: 'analyzing' })
|
||||
const { width: bgWidth, height: bgHeight } = await getImageDimensions(
|
||||
backgroundData
|
||||
)
|
||||
const { width: bgWidth, height: bgHeight } =
|
||||
await getImageDimensions(backgroundData)
|
||||
console.log(
|
||||
`[Compositing] Background image dimensions: ${bgWidth}x${bgHeight}`
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user