From cad88ee4d1c9e06e7529b88ef5e5d3fdf3f89149 Mon Sep 17 00:00:00 2001 From: Maze Winther Date: Mon, 13 Apr 2026 04:41:17 +0200 Subject: refactor: rendering pipeline Made-with: Cursor --- apps/web/src/lib/preview/element-bounds.ts | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'apps/web/src/lib/preview/element-bounds.ts') diff --git a/apps/web/src/lib/preview/element-bounds.ts b/apps/web/src/lib/preview/element-bounds.ts index 40145d02..0dc2d0d5 100644 --- a/apps/web/src/lib/preview/element-bounds.ts +++ b/apps/web/src/lib/preview/element-bounds.ts @@ -244,21 +244,6 @@ export function getEdgeHandlePosition({ }; } -export function getRotationHandlePosition({ - bounds, -}: { - bounds: ElementBounds; -}): { x: number; y: number } { - const angleRad = (bounds.rotation * Math.PI) / 180; - const cos = Math.cos(angleRad); - const sin = Math.sin(angleRad); - const localY = -bounds.height / 2 - ROTATION_HANDLE_OFFSET; - return { - x: bounds.cx - localY * sin, - y: bounds.cy + localY * cos, - }; -} - export function getVisibleElementsWithBounds({ tracks, currentTime, -- cgit v1.3.1