From 40d2c7fe045e757625c877ebc7ac15305f190dff Mon Sep 17 00:00:00 2001 From: Cole Lawrence Date: Tue, 7 Jun 2022 11:53:43 -0400 Subject: [PATCH] docs: absoluteDims --- theatre/studio/src/utils/absoluteDims.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/theatre/studio/src/utils/absoluteDims.tsx b/theatre/studio/src/utils/absoluteDims.tsx index 065b05d..a66ccc8 100644 --- a/theatre/studio/src/utils/absoluteDims.tsx +++ b/theatre/studio/src/utils/absoluteDims.tsx @@ -1,3 +1,4 @@ +/** Create CSS rule string for centered and give it this width and height */ export const absoluteDims = (w: number, h = w) => ` left: ${w * -0.5}px; top: ${h * -0.5}px;