fmt(js): `npm run fix` on merge (#83132)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
hermes-seaeye[bot] 2026-08-10 10:44:00 +00:00 committed by GitHub
parent 338bca7968
commit c08b086013
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 6 deletions

View File

@ -18,7 +18,10 @@ export interface HudSnapShortcutController {
dispose(): void
}
export function createHudSnapShortcut(globalShortcut: GlobalShortcutLike, onSnap: () => void): HudSnapShortcutController {
export function createHudSnapShortcut(
globalShortcut: GlobalShortcutLike,
onSnap: () => void
): HudSnapShortcutController {
let active: null | string = null
const release = () => {

View File

@ -22,11 +22,7 @@ interface Rect {
* Window top-left in screen space (DIP) that places `anchor` a point in the
* window's CSS pixels under `cursor` (screen DIP).
*/
export function windowOriginForCursorAnchor(
cursor: Point,
anchor: Point,
zoomFactor: number
): Point {
export function windowOriginForCursorAnchor(cursor: Point, anchor: Point, zoomFactor: number): Point {
const scale = Number.isFinite(zoomFactor) && zoomFactor > 0 ? zoomFactor : 1
return {

View File

@ -9226,6 +9226,7 @@ function applyHudSnapToPointer() {
const display = screen.getDisplayNearestPoint(cursor)
const workArea = display?.workArea ?? bounds
const anchor = { x: Math.round(bounds.width / 2), y: HUD_SNAP_ANCHOR_Y }
const origin = snapHudBounds(
cursor,
anchor,