diff --git a/src/components/video-editor/AnnotationOverlay.tsx b/src/components/video-editor/AnnotationOverlay.tsx
index 3260a542..00bad96f 100644
--- a/src/components/video-editor/AnnotationOverlay.tsx
+++ b/src/components/video-editor/AnnotationOverlay.tsx
@@ -1,219 +1,231 @@
import { useRef } from "react";
import { Rnd } from "react-rnd";
-import type { AnnotationRegion } from "./types";
import { cn } from "@/lib/utils";
import { getArrowComponent } from "./ArrowSvgs";
+import type { AnnotationRegion } from "./types";
interface AnnotationOverlayProps {
- annotation: AnnotationRegion;
- isSelected: boolean;
- containerWidth: number;
- containerHeight: number;
- onPositionChange: (id: string, position: { x: number; y: number }) => void;
- onSizeChange: (id: string, size: { width: number; height: number }) => void;
- onClick: (id: string) => void;
- zIndex: number;
- isSelectedBoost: boolean; // Boost z-index when selected for easy editing
+ annotation: AnnotationRegion;
+ isSelected: boolean;
+ containerWidth: number;
+ containerHeight: number;
+ onPositionChange: (id: string, position: { x: number; y: number }) => void;
+ onSizeChange: (id: string, size: { width: number; height: number }) => void;
+ onClick: (id: string) => void;
+ zIndex: number;
+ isSelectedBoost: boolean; // Boost z-index when selected for easy editing
}
export function AnnotationOverlay({
- annotation,
- isSelected,
- containerWidth,
- containerHeight,
- onPositionChange,
- onSizeChange,
- onClick,
- zIndex,
- isSelectedBoost,
+ annotation,
+ isSelected,
+ containerWidth,
+ containerHeight,
+ onPositionChange,
+ onSizeChange,
+ onClick,
+ zIndex,
+ isSelectedBoost,
}: AnnotationOverlayProps) {
- const x = (annotation.position.x / 100) * containerWidth;
- const y = (annotation.position.y / 100) * containerHeight;
- const width = (annotation.size.width / 100) * containerWidth;
- const height = (annotation.size.height / 100) * containerHeight;
+ const x = (annotation.position.x / 100) * containerWidth;
+ const y = (annotation.position.y / 100) * containerHeight;
+ const width = (annotation.size.width / 100) * containerWidth;
+ const height = (annotation.size.height / 100) * containerHeight;
- const isDraggingRef = useRef(false);
+ const isDraggingRef = useRef(false);
- const renderArrow = () => {
- const direction = annotation.figureData?.arrowDirection || 'right';
- const color = annotation.figureData?.color || '#2563EB';
- const strokeWidth = annotation.figureData?.strokeWidth || 4;
+ const renderArrow = () => {
+ const direction = annotation.figureData?.arrowDirection || "right";
+ const color = annotation.figureData?.color || "#2563EB";
+ const strokeWidth = annotation.figureData?.strokeWidth || 4;
- const ArrowComponent = getArrowComponent(direction);
- return
- {t('annotations.supportedFormats')} -
-+ {t("annotations.supportedFormats")} +
++ {t( + "annotations.blurDescription", + "Obscure sensitive information by blurring the underlying video content.", + )} +
+