Skip to content

Commit

Permalink
Lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
laisspportugal committed Jan 9, 2025
1 parent ff391ec commit a88cef0
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 16 deletions.
2 changes: 1 addition & 1 deletion packages/suite-base/src/panels/Plot/VerticalBars.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import { useLatest } from "react-use";
import { toSec } from "@lichtblick/rostime";
import { useMessagePipelineSubscribe } from "@lichtblick/suite-base/components/MessagePipeline";
import { useHoverValue } from "@lichtblick/suite-base/context/TimelineInteractionStateContext";
import { useStyles } from "@lichtblick/suite-base/panels/Plot/verticalbars.style";

import type { VerticalBarsProps, Scale } from "./types";
import { useStyles } from "@lichtblick/suite-base/panels/Plot/verticalbars.style";

/** Get the canvas pixel x location for the plot x value */
function getPixelForXValue(
Expand Down
4 changes: 2 additions & 2 deletions packages/suite-base/src/panels/Plot/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ export type MouseBase = BaseInteractionEvent & {
export type WheelInteractionEvent = { type: "wheel" } & BaseInteractionEvent & MouseBase;

export type PanStartInteractionEvent = { type: "panstart" } & BaseInteractionEvent & {
center: { x: number; y: number };
};
center: { x: number; y: number };
};
export type PanMoveInteractionEvent = { type: "panmove" } & BaseInteractionEvent;

export type PanEndInteractionEvent = { type: "panend" } & BaseInteractionEvent;
Expand Down
29 changes: 16 additions & 13 deletions packages/suite-base/src/panels/Plot/verticalbars.style.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
// SPDX-FileCopyrightText: Copyright (C) 2023-2024 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)<[email protected]>
// SPDX-License-Identifier: MPL-2.0

import { makeStyles } from "tss-react/mui";

export const useStyles = makeStyles()(() => ({
verticalBar: {
position: "absolute",
top: 0,
bottom: 0,
left: 0,
width: 1,
marginLeft: -1,
display: "block",
pointerEvents: "none",
},
playbackBar: {
backgroundColor: "#aaa",
},
verticalBar: {
position: "absolute",
top: 0,
bottom: 0,
left: 0,
width: 1,
marginLeft: -1,
display: "block",
pointerEvents: "none",
},
playbackBar: {
backgroundColor: "#aaa",
},
}));

0 comments on commit a88cef0

Please sign in to comment.