Skip to content

Commit

Permalink
chore: upgrade to newest subsurface-viewer version
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenthoms committed Nov 18, 2024
1 parent 74164ca commit 04579cf
Show file tree
Hide file tree
Showing 7 changed files with 2,628 additions and 951 deletions.
3,558 changes: 2,615 additions & 943 deletions frontend/package-lock.json

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
"test:ct:ui": "playwright test -c playwright.ct.config.ts --ui"
},
"dependencies": {
"@equinor/eds-core-react": "^0.42.0",
"@equinor/eds-icons": "^0.21.0",
"@equinor/esv-intersection": "^3.0.10",
"@headlessui/react": "^1.7.8",
"@mui/base": "^5.0.0-beta.3",
Expand All @@ -28,7 +30,7 @@
"@tanstack/react-query-devtools": "^5.4.2",
"@types/geojson": "^7946.0.14",
"@webviz/group-tree-plot": "^1.1.14",
"@webviz/subsurface-viewer": "^0.25.2",
"@webviz/subsurface-viewer": "^1.1.1",
"@webviz/well-completions-plot": "^1.5.11",
"animate.css": "^4.1.1",
"axios": "^1.6.5",
Expand Down
4 changes: 3 additions & 1 deletion frontend/src/framework/WorkbenchServices.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import React from "react";

import { Point2D, Point3D } from "@webviz/subsurface-viewer";

import { isEqual } from "lodash";

import { EnsembleIdent } from "./EnsembleIdent";
Expand Down Expand Up @@ -27,7 +29,7 @@ export type GlobalTopicDefinitions = {
"global.syncValue.timeSeries": { vectorName: string };
"global.syncValue.surface": { name: string; attribute: string };
"global.syncValue.cameraPositionMap": {
target: number[];
target: Point2D | Point3D | undefined;
zoom: number;
rotationX: number;
rotationOrbit: number;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from "react";

import { GeoJsonLayer } from "@deck.gl/layers/typed";
import { GeoJsonLayer } from "@deck.gl/layers";
import { IntersectionReferenceSystem } from "@equinor/esv-intersection";
import { ViewContext } from "@framework/ModuleContext";
import { GlobalTopicDefinitions, WorkbenchServices, useSubscribedValue } from "@framework/WorkbenchServices";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { useId } from "react";
import React from "react";

import { Layer, PickingInfo } from "@deck.gl/core/typed";
import { ColumnLayer, SolidPolygonLayer } from "@deck.gl/layers/typed";
import { Layer, PickingInfo } from "@deck.gl/core";
import { ColumnLayer, SolidPolygonLayer } from "@deck.gl/layers";
import { IntersectionPolyline, IntersectionPolylineWithoutId } from "@framework/userCreatedItems/IntersectionPolylines";
import { Button } from "@lib/components/Button";
import { HoldPressedIntervalCallbackButton } from "@lib/components/HoldPressedIntervalCallbackButton/holdPressedIntervalCallbackButton";
Expand Down Expand Up @@ -640,6 +640,7 @@ export function SubsurfaceViewerWrapper(props: SubsurfaceViewerWrapperProps): Re
}}
getTooltip={makeTooltip}
verticalScale={verticalScale}
pickingRadius={10}
/>
<div className="absolute bottom-0 right-0 z-30 bg-white bg-opacity-50 p-2 pointer-events-none">
{makeHelperText()}
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/modules/3DViewer/view/utils/layers.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { BoundingBox3d_api, WellboreTrajectory_api } from "@api";
import { Layer } from "@deck.gl/core/typed";
import { Layer } from "@deck.gl/core";
import { ColorScale } from "@lib/utils/ColorScale";
import { TGrid3DColoringMode } from "@webviz/subsurface-viewer";
import { AxesLayer, Grid3DLayer, WellsLayer } from "@webviz/subsurface-viewer/dist/layers";
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/modules/3DViewer/view/view.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from "react";

import { Layer } from "@deck.gl/core/typed";
import { Layer } from "@deck.gl/core";
import { IntersectionReferenceSystem } from "@equinor/esv-intersection";
import { ModuleViewProps } from "@framework/Module";
import { useViewStatusWriter } from "@framework/StatusWriter";
Expand Down

0 comments on commit 04579cf

Please sign in to comment.