aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/animationtimeline
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2025-06-13 09:00:49 -0400
committerbobzel <zzzman@gmail.com>2025-06-13 09:00:49 -0400
commit2d6307f6eaa0803aefabae9e9232506611365b66 (patch)
tree7d77764b51a8dcfef4ed5554be6028fea815a4ae /src/client/views/animationtimeline
parentb91057d00512446339e48fb8488a97a1e5ef03d5 (diff)
updated css and project to HTML5 standards. fixed border rounding for images.
Diffstat (limited to 'src/client/views/animationtimeline')
-rw-r--r--src/client/views/animationtimeline/Timeline.scss4
-rw-r--r--src/client/views/animationtimeline/TimelineMenu.tsx4
-rw-r--r--src/client/views/animationtimeline/TimelineOverview.tsx5
3 files changed, 5 insertions, 8 deletions
diff --git a/src/client/views/animationtimeline/Timeline.scss b/src/client/views/animationtimeline/Timeline.scss
index e1d3b190c..3a50183d2 100644
--- a/src/client/views/animationtimeline/Timeline.scss
+++ b/src/client/views/animationtimeline/Timeline.scss
@@ -112,8 +112,8 @@ $timelineDark: #77a1aa;
input {
position: absolute;
opacity: 0;
- height: 0;
- width: 0;
+ height: 0px;
+ width: 0px;
}
.round-toggle-slider {
diff --git a/src/client/views/animationtimeline/TimelineMenu.tsx b/src/client/views/animationtimeline/TimelineMenu.tsx
index 0d7873931..79283479c 100644
--- a/src/client/views/animationtimeline/TimelineMenu.tsx
+++ b/src/client/views/animationtimeline/TimelineMenu.tsx
@@ -1,5 +1,3 @@
-/* eslint-disable jsx-a11y/no-noninteractive-element-interactions */
-/* eslint-disable jsx-a11y/click-events-have-key-events */
import { IconLookup } from '@fortawesome/fontawesome-svg-core';
import { faChartLine, faClipboard } from '@fortawesome/free-solid-svg-icons';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
@@ -19,7 +17,7 @@ export class TimelineMenu extends React.Component {
@observable private _y = 0;
@observable private _currentMenu: JSX.Element[] = [];
- constructor(props: any) {
+ constructor(props: object) {
super(props);
makeObservable(this);
TimelineMenu.Instance = this;
diff --git a/src/client/views/animationtimeline/TimelineOverview.tsx b/src/client/views/animationtimeline/TimelineOverview.tsx
index 7bf685c9e..fff756980 100644
--- a/src/client/views/animationtimeline/TimelineOverview.tsx
+++ b/src/client/views/animationtimeline/TimelineOverview.tsx
@@ -1,4 +1,3 @@
-/* eslint-disable react/no-unused-prop-types */
import { action, IReactionDisposer, observable, reaction, runInAction } from 'mobx';
import { observer } from 'mobx-react';
import * as React from 'react';
@@ -14,7 +13,7 @@ interface TimelineOverviewProps {
isAuthoring: boolean;
parent: Timeline;
changeCurrentBarX: (pixel: number) => void;
- movePanX: (pixel: number) => any;
+ movePanX: (pixel: number) => void;
time: number;
tickSpacing: number;
tickIncrement: number;
@@ -139,7 +138,7 @@ export class TimelineOverview extends React.Component<TimelineOverviewProps> {
const percentVisible = this.visibleTime / this.props.time;
const visibleBarWidth = percentVisible * this.activeOverviewWidth;
- const percentScrubberStart = this.currentX / this.props.time;
+ // const percentScrubberStart = this.currentX / this.props.time;
let scrubberStart = (this.props.currentBarX / this.props.totalLength) * this.activeOverviewWidth;
if (scrubberStart > this.activeOverviewWidth) scrubberStart = this.activeOverviewWidth;