From d2cb17038b8537a609be06be2ed7013dbe27117e Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Mon, 8 Mar 2021 22:11:55 +0100 Subject: beginning the BIG refactor. moving editor stuff into per-episode hierarchy --- .../components/timeline/cursorRegion.component.js | 28 ---------------------- 1 file changed, 28 deletions(-) delete mode 100644 animism-align/frontend/app/views/align/components/timeline/cursorRegion.component.js (limited to 'animism-align/frontend/app/views/align/components/timeline/cursorRegion.component.js') diff --git a/animism-align/frontend/app/views/align/components/timeline/cursorRegion.component.js b/animism-align/frontend/app/views/align/components/timeline/cursorRegion.component.js deleted file mode 100644 index a0c9bd7..0000000 --- a/animism-align/frontend/app/views/align/components/timeline/cursorRegion.component.js +++ /dev/null @@ -1,28 +0,0 @@ -import React from 'react' - -import { ZOOM_STEPS } from 'app/constants' -import { timestamp } from 'app/utils' - -const CursorRegion = ({ timeline }) => { - const { start_ts, zoom, cursor_region } = timeline - if (!cursor_region) return null - const secondsPerPixel = ZOOM_STEPS[zoom] * 0.1 - const duration = cursor_region.b_ts - cursor_region.a_ts - const y = (cursor_region.a_ts - start_ts) / secondsPerPixel - const height = (duration) / secondsPerPixel - return ( -
-
- {timestamp(duration, 1, true)} -
-
- ) -} - -export default CursorRegion \ No newline at end of file -- cgit v1.2.3-70-g09d2