From d88001dfb76d44517dc73bb5a57a19d9a579f4fe Mon Sep 17 00:00:00 2001 From: Joe Heffernan Date: Tue, 10 Oct 2023 08:31:10 -0700 Subject: [PATCH 1/2] fix type exports --- src/simularium/index.ts | 2 ++ src/simularium/types.ts | 10 ++++++++++ 2 files changed, 12 insertions(+) diff --git a/src/simularium/index.ts b/src/simularium/index.ts index 3f291ce2..e69f1bb3 100644 --- a/src/simularium/index.ts +++ b/src/simularium/index.ts @@ -5,6 +5,8 @@ export type { TrajectoryFileInfo, EncodedTypeMapping, SimulariumFileFormat, + SelectionEntry, + ColorChanges, } from "./types"; export type { SelectionStateInfo, UIDisplayData } from "./SelectionInterface"; export { ErrorLevel, FrontEndError } from "./FrontEndError"; diff --git a/src/simularium/types.ts b/src/simularium/types.ts index a1eb2b8d..8f0e87e8 100644 --- a/src/simularium/types.ts +++ b/src/simularium/types.ts @@ -177,3 +177,13 @@ export interface PlotConfig { metricsIdy?: number; scatterPlotMode?: string; } + +export interface SelectionEntry { + name: string; + tags: string[]; +} + +export interface ColorChanges { + agents: SelectionEntry[]; + color: string; +} From c63b365aa17eede142cb4a471cf91b80cee7a0bd Mon Sep 17 00:00:00 2001 From: Joe Heffernan Date: Tue, 10 Oct 2023 09:39:05 -0700 Subject: [PATCH 2/2] export from selectioninterface --- src/simularium/index.ts | 7 +++++-- src/simularium/types.ts | 10 ---------- 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/src/simularium/index.ts b/src/simularium/index.ts index e69f1bb3..d541b09a 100644 --- a/src/simularium/index.ts +++ b/src/simularium/index.ts @@ -5,10 +5,13 @@ export type { TrajectoryFileInfo, EncodedTypeMapping, SimulariumFileFormat, +} from "./types"; +export type { + SelectionStateInfo, + UIDisplayData, SelectionEntry, ColorChanges, -} from "./types"; -export type { SelectionStateInfo, UIDisplayData } from "./SelectionInterface"; +} from "./SelectionInterface"; export { ErrorLevel, FrontEndError } from "./FrontEndError"; export { NetMessageEnum } from "./WebsocketClient"; export { RemoteSimulator } from "./RemoteSimulator"; diff --git a/src/simularium/types.ts b/src/simularium/types.ts index 8f0e87e8..a1eb2b8d 100644 --- a/src/simularium/types.ts +++ b/src/simularium/types.ts @@ -177,13 +177,3 @@ export interface PlotConfig { metricsIdy?: number; scatterPlotMode?: string; } - -export interface SelectionEntry { - name: string; - tags: string[]; -} - -export interface ColorChanges { - agents: SelectionEntry[]; - color: string; -}