mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-05 10:45:21 +03:00
Fix lint
This commit is contained in:
parent
0b2053d159
commit
437765b434
@ -1,6 +1,5 @@
|
||||
import { Fragment, h } from 'preact';
|
||||
import { useCallback, useState } from 'preact/hooks';
|
||||
import Heading from './Heading';
|
||||
import { useState } from 'preact/hooks';
|
||||
|
||||
export default function TimelineEventOverlay({ event, eventOverlay, cameraConfig }) {
|
||||
const boxLeftEdge = Math.round(eventOverlay.data.box[0] * 100);
|
||||
@ -31,9 +30,9 @@ export default function TimelineEventOverlay({ event, eventOverlay, cameraConfig
|
||||
};
|
||||
|
||||
const getObjectRatio = () => {
|
||||
const width = eventOverlay.data.box[2];
|
||||
const height = eventOverlay.data.box[3];
|
||||
return Math.round(100 * width / height) / 100;
|
||||
const width = eventOverlay.data.box[2] * 100;
|
||||
const height = eventOverlay.data.box[3] * 100;
|
||||
return Math.round(100 * (width / height)) / 100;
|
||||
};
|
||||
|
||||
return (
|
||||
|
||||
Loading…
Reference in New Issue
Block a user