Enable smooth panning between past/live.

This commit is contained in:
Dermot Duffy
2023-04-09 19:23:34 -07:00
parent b3bb56298a
commit e1d74dc35a
26 changed files with 474 additions and 339 deletions
+2 -12
View File
@@ -7,11 +7,6 @@ import { View } from '../view/view';
import './surround.js';
import './timeline-core.js';
// This file is kept separate from timeline-core.ts to avoid a circular dependency:
// FrigateCardTimeline ->
// FrigateCardSurround ->
// FrigateCardTimelineCore
@customElement('frigate-card-timeline')
export class FrigateCardTimeline extends LitElement {
@property({ attribute: false })
@@ -38,12 +33,7 @@ export class FrigateCardTimeline extends LitElement {
return html``;
}
return html` <frigate-card-surround
.hass=${this.hass}
.view=${this.view}
.thumbnailConfig=${this.timelineConfig.controls.thumbnails}
.cameraManager=${this.cameraManager}
>
return html`
<frigate-card-timeline-core
.hass=${this.hass}
.view=${this.view}
@@ -56,7 +46,7 @@ export class FrigateCardTimeline extends LitElement {
: 'select'}
>
</frigate-card-timeline-core>
</frigate-card-surround>`;
`;
}
/**