diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2020-07-02 00:35:06 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2020-07-02 00:35:06 +0200 |
| commit | 3e2c1d432d73823e66e19d0081b498ace467b231 (patch) | |
| tree | 67a8b66eb8334b97e031f2c91da668591132ede3 /animism-align/frontend/views/align/components/cursor.component.js | |
| parent | 250527589e003420a84f36c4191d2e574f1ad28c (diff) | |
display the form
Diffstat (limited to 'animism-align/frontend/views/align/components/cursor.component.js')
| -rw-r--r-- | animism-align/frontend/views/align/components/cursor.component.js | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/animism-align/frontend/views/align/components/cursor.component.js b/animism-align/frontend/views/align/components/cursor.component.js deleted file mode 100644 index a5ad438..0000000 --- a/animism-align/frontend/views/align/components/cursor.component.js +++ /dev/null @@ -1,25 +0,0 @@ -import React, { Component } from 'react' - -import { ZOOM_STEPS } from '../constants' -import { timestamp } from '../../../util' - -const Cursor = ({ timeline }) => { - const { start_ts, zoom, cursor_ts, duration } = timeline - const secondsPerPixel = ZOOM_STEPS[zoom] * 0.1 - const y = (cursor_ts - start_ts) / secondsPerPixel - return ( - <div - className='cursor' - style={{ - top: y, - }} - > - <div className='line' /> - <div className='tickLabel'> - {timestamp(cursor_ts, 1)} - </div> - </div> - ) -} - -export default Cursor
\ No newline at end of file |
