diff options
Diffstat (limited to 'apps/web/src/lib/preview/element-bounds.ts')
| -rw-r--r-- | apps/web/src/lib/preview/element-bounds.ts | 15 |
1 files changed, 0 insertions, 15 deletions
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,
|
