mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-03-18 14:18:21 +03:00
Merge pull request #23 from ibs0d/codex/add-visual-camera-rotation-to-draggable-grid
Add grid-only MSE camera rotation for cameras with ui.rotate
This commit is contained in:
commit
58ae23a6bf
@ -803,6 +803,10 @@ function MSEPlayer({
|
||||
style={{
|
||||
objectFit:
|
||||
"var(--frigate-mse-object-fit, fill)" as CSSProperties["objectFit"],
|
||||
transform:
|
||||
"var(--frigate-mse-grid-rotation, none)" as CSSProperties["transform"],
|
||||
transformOrigin:
|
||||
"var(--frigate-mse-grid-rotation-origin, center center)" as CSSProperties["transformOrigin"],
|
||||
}}
|
||||
playsInline
|
||||
preload="auto"
|
||||
|
||||
@ -670,6 +670,8 @@ export default function DraggableGridLayout({
|
||||
cameraRef={cameraRef}
|
||||
className={cn(
|
||||
"draggable-live-grid-mse-cover size-full rounded-lg bg-black md:rounded-2xl",
|
||||
camera.ui?.rotate &&
|
||||
"draggable-live-grid-rotated [--frigate-mse-grid-rotation:rotate(90deg)]",
|
||||
isEditMode &&
|
||||
showCircles &&
|
||||
"outline-2 outline-muted-foreground hover:cursor-grab hover:outline-4 active:cursor-grabbing",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user