mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-03-18 22:28:23 +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={{
|
style={{
|
||||||
objectFit:
|
objectFit:
|
||||||
"var(--frigate-mse-object-fit, fill)" as CSSProperties["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
|
playsInline
|
||||||
preload="auto"
|
preload="auto"
|
||||||
|
|||||||
@ -670,6 +670,8 @@ export default function DraggableGridLayout({
|
|||||||
cameraRef={cameraRef}
|
cameraRef={cameraRef}
|
||||||
className={cn(
|
className={cn(
|
||||||
"draggable-live-grid-mse-cover size-full rounded-lg bg-black md:rounded-2xl",
|
"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 &&
|
isEditMode &&
|
||||||
showCircles &&
|
showCircles &&
|
||||||
"outline-2 outline-muted-foreground hover:cursor-grab hover:outline-4 active:cursor-grabbing",
|
"outline-2 outline-muted-foreground hover:cursor-grab hover:outline-4 active:cursor-grabbing",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user