Skip to content

Commit

Permalink
declare ColorChange interface locally
Browse files Browse the repository at this point in the history
  • Loading branch information
interim17 committed Sep 11, 2024
1 parent 43c5422 commit 912e82b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/ColorPicker/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import { Popover, Tooltip } from "antd";
import { HexColorInput, HexColorPicker } from "react-colorful";
import classNames from "classnames";
import { useDebounce } from "use-debounce";
import { ColorChange } from "@aics/simularium-viewer";

import { AGENT_COLORS } from "../../containers/ViewerPanel/constants";
import { ColorChange } from "../../constants/interfaces";
import {
SetColorChangeAction,
SetRecentColorsAction,
Expand Down
7 changes: 7 additions & 0 deletions src/constants/interfaces.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { SelectionEntry } from "@aics/simularium-viewer";

export interface TrajectoryDisplayData {
modelName: string;
id: string;
Expand Down Expand Up @@ -84,3 +86,8 @@ export interface MetadataDisplay {
label: JSX.Element;
value: () => JSX.Element | string;
}

export interface ColorChange {
agent: SelectionEntry;
color: string;
}
3 changes: 1 addition & 2 deletions src/state/selection/actions.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { ColorChange } from "@aics/simularium-viewer";
import { AgentMetadata } from "../../constants/interfaces";
import { AgentMetadata, ColorChange } from "../../constants/interfaces";
import {
SELECT_METADATA,
CHANGE_TIME_HEAD,
Expand Down
3 changes: 1 addition & 2 deletions src/state/selection/types.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { ColorChange } from "@aics/simularium-viewer";
import { AgentMetadata } from "../../constants/interfaces";
import { AgentMetadata, ColorChange } from "../../constants/interfaces";
import { TrajectoryStateBranch } from "../trajectory/types";

export interface SelectionStateBranch {
Expand Down

0 comments on commit 912e82b

Please sign in to comment.