Skip to content

Commit

Permalink
Merge branch 'new-2d-viewer' of https://github.com/rubenthoms/webviz
Browse files Browse the repository at this point in the history
…into new-2d-viewer
  • Loading branch information
rubenthoms committed Sep 20, 2024
2 parents e212918 + 2e092df commit 385f70a
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions frontend/src/modules/2DViewer/settings/settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ import { RealizationSurfaceLayer } from "../layers/implementations/layers/Realiz
import { StatisticalSurfaceLayer } from "../layers/implementations/layers/StatisticalSurfaceLayer/StatisticalSurfaceLayer";
import { Ensemble } from "../layers/implementations/settings/Ensemble";
import { Realization } from "../layers/implementations/settings/Realization";
import { SurfaceAttribute } from "../layers/implementations/settings/SurfaceAttribute";
import { SurfaceName } from "../layers/implementations/settings/SurfaceName";
import { TimeOrInterval } from "../layers/implementations/settings/TimeOrInterval";
import { Group, Item, instanceofGroup } from "../layers/interfaces";

export function Settings(props: ModuleSettingsProps<any>): React.ReactNode {
Expand Down Expand Up @@ -113,6 +115,12 @@ export function Settings(props: ModuleSettingsProps<any>): React.ReactNode {
case "surface_name":
groupDelegate.prependChild(new SharedSetting(new SurfaceName()));
return;
case "surface_attribute":
groupDelegate.prependChild(new SharedSetting(new SurfaceAttribute()));
return;
case "Date":
groupDelegate.prependChild(new SharedSetting(new TimeOrInterval()));
return;
}
}

Expand Down Expand Up @@ -338,6 +346,16 @@ const LAYER_ACTIONS: LayersActionGroup[] = [
icon: <Icon data={settings} fontSize="small" />,
label: "Surface Name",
},
{
identifier: "surface_attribute",
icon: <Icon data={settings} fontSize="small" />,
label: "Surface Attribute",
},
{
identifier: "Date",
icon: <Icon data={settings} fontSize="small" />,
label: "Date",
},
],
},
];

0 comments on commit 385f70a

Please sign in to comment.